Imported Upstream version 1.6.4
[platform/upstream/openfst.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.6.4.
4 #
5 # Report bugs to <help@www.openfst.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: help@www.openfst.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenFst'
592 PACKAGE_TARNAME='openfst'
593 PACKAGE_VERSION='1.6.4'
594 PACKAGE_STRING='OpenFst 1.6.4'
595 PACKAGE_BUGREPORT='help@www.openfst.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_unique_file="src/lib/fst.cc"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 DL_LIBS
640 libfstdir
641 HAVE_GRM_FALSE
642 HAVE_GRM_TRUE
643 HAVE_SCRIPT_FALSE
644 HAVE_SCRIPT_TRUE
645 HAVE_BIN_FALSE
646 HAVE_BIN_TRUE
647 HAVE_SPECIAL_FALSE
648 HAVE_SPECIAL_TRUE
649 PYTHON_EXTRA_LDFLAGS
650 PYTHON_EXTRA_LIBS
651 PYTHON_SITE_PKG
652 PYTHON_LDFLAGS
653 PYTHON_CPPFLAGS
654 pkgpyexecdir
655 pyexecdir
656 pkgpythondir
657 pythondir
658 PYTHON_PLATFORM
659 PYTHON_EXEC_PREFIX
660 PYTHON_PREFIX
661 PYTHON_VERSION
662 PYTHON
663 HAVE_PYTHON_FALSE
664 HAVE_PYTHON_TRUE
665 HAVE_PDT_FALSE
666 HAVE_PDT_TRUE
667 HAVE_NGRAM_FALSE
668 HAVE_NGRAM_TRUE
669 HAVE_MPDT_FALSE
670 HAVE_MPDT_TRUE
671 HAVE_LOOKAHEAD_FALSE
672 HAVE_LOOKAHEAD_TRUE
673 HAVE_LINEAR_FALSE
674 HAVE_LINEAR_TRUE
675 HAVE_FAR_FALSE
676 HAVE_FAR_TRUE
677 HAVE_CONST_FALSE
678 HAVE_CONST_TRUE
679 HAVE_COMPRESS_FALSE
680 HAVE_COMPRESS_TRUE
681 HAVE_COMPACT_FALSE
682 HAVE_COMPACT_TRUE
683 CXXCPP
684 CPP
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 am__fastdepCXX_FALSE
714 am__fastdepCXX_TRUE
715 CXXDEPMODE
716 ac_ct_CXX
717 CXXFLAGS
718 CXX
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__quote
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 ac_ct_AR
737 AR
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 runstatedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_dependency_tracking
809 enable_static
810 enable_shared
811 with_pic
812 enable_fast_install
813 with_aix_soname
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_compact_fsts
818 enable_compress
819 enable_const_fsts
820 enable_far
821 enable_linear_fsts
822 enable_lookahead_fsts
823 enable_mpdt
824 enable_ngram_fsts
825 enable_pdt
826 enable_python
827 enable_special
828 enable_bin
829 enable_grm
830 with_libfstdir
831 '
832       ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 LT_SYS_LIBRARY_PATH
844 CPP
845 CXXCPP
846 PYTHON
847 PYTHON_VERSION'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 runstatedir='${localstatedir}/run'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903   # If the previous option needs an argument, assign it.
904   if test -n "$ac_prev"; then
905     eval $ac_prev=\$ac_option
906     ac_prev=
907     continue
908   fi
909
910   case $ac_option in
911   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912   *=)   ac_optarg= ;;
913   *)    ac_optarg=yes ;;
914   esac
915
916   # Accept the important Cygnus configure options, so we can diagnose typos.
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error $? "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=no ;;
969
970   -docdir | --docdir | --docdi | --doc | --do)
971     ac_prev=docdir ;;
972   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973     docdir=$ac_optarg ;;
974
975   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976     ac_prev=dvidir ;;
977   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978     dvidir=$ac_optarg ;;
979
980   -enable-* | --enable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: $ac_useropt"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=\$ac_optarg ;;
995
996   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998   | --exec | --exe | --ex)
999     ac_prev=exec_prefix ;;
1000   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002   | --exec=* | --exe=* | --ex=*)
1003     exec_prefix=$ac_optarg ;;
1004
1005   -gas | --gas | --ga | --g)
1006     # Obsolete; use --with-gas.
1007     with_gas=yes ;;
1008
1009   -help | --help | --hel | --he | -h)
1010     ac_init_help=long ;;
1011   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012     ac_init_help=recursive ;;
1013   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014     ac_init_help=short ;;
1015
1016   -host | --host | --hos | --ho)
1017     ac_prev=host_alias ;;
1018   -host=* | --host=* | --hos=* | --ho=*)
1019     host_alias=$ac_optarg ;;
1020
1021   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022     ac_prev=htmldir ;;
1023   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024   | --ht=*)
1025     htmldir=$ac_optarg ;;
1026
1027   -includedir | --includedir | --includedi | --included | --include \
1028   | --includ | --inclu | --incl | --inc)
1029     ac_prev=includedir ;;
1030   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031   | --includ=* | --inclu=* | --incl=* | --inc=*)
1032     includedir=$ac_optarg ;;
1033
1034   -infodir | --infodir | --infodi | --infod | --info | --inf)
1035     ac_prev=infodir ;;
1036   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037     infodir=$ac_optarg ;;
1038
1039   -libdir | --libdir | --libdi | --libd)
1040     ac_prev=libdir ;;
1041   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042     libdir=$ac_optarg ;;
1043
1044   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045   | --libexe | --libex | --libe)
1046     ac_prev=libexecdir ;;
1047   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048   | --libexe=* | --libex=* | --libe=*)
1049     libexecdir=$ac_optarg ;;
1050
1051   -localedir | --localedir | --localedi | --localed | --locale)
1052     ac_prev=localedir ;;
1053   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054     localedir=$ac_optarg ;;
1055
1056   -localstatedir | --localstatedir | --localstatedi | --localstated \
1057   | --localstate | --localstat | --localsta | --localst | --locals)
1058     ac_prev=localstatedir ;;
1059   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061     localstatedir=$ac_optarg ;;
1062
1063   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064     ac_prev=mandir ;;
1065   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066     mandir=$ac_optarg ;;
1067
1068   -nfp | --nfp | --nf)
1069     # Obsolete; use --without-fp.
1070     with_fp=no ;;
1071
1072   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073   | --no-cr | --no-c | -n)
1074     no_create=yes ;;
1075
1076   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078     no_recursion=yes ;;
1079
1080   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082   | --oldin | --oldi | --old | --ol | --o)
1083     ac_prev=oldincludedir ;;
1084   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087     oldincludedir=$ac_optarg ;;
1088
1089   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090     ac_prev=prefix ;;
1091   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092     prefix=$ac_optarg ;;
1093
1094   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095   | --program-pre | --program-pr | --program-p)
1096     ac_prev=program_prefix ;;
1097   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099     program_prefix=$ac_optarg ;;
1100
1101   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102   | --program-suf | --program-su | --program-s)
1103     ac_prev=program_suffix ;;
1104   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106     program_suffix=$ac_optarg ;;
1107
1108   -program-transform-name | --program-transform-name \
1109   | --program-transform-nam | --program-transform-na \
1110   | --program-transform-n | --program-transform- \
1111   | --program-transform | --program-transfor \
1112   | --program-transfo | --program-transf \
1113   | --program-trans | --program-tran \
1114   | --progr-tra | --program-tr | --program-t)
1115     ac_prev=program_transform_name ;;
1116   -program-transform-name=* | --program-transform-name=* \
1117   | --program-transform-nam=* | --program-transform-na=* \
1118   | --program-transform-n=* | --program-transform-=* \
1119   | --program-transform=* | --program-transfor=* \
1120   | --program-transfo=* | --program-transf=* \
1121   | --program-trans=* | --program-tran=* \
1122   | --progr-tra=* | --program-tr=* | --program-t=*)
1123     program_transform_name=$ac_optarg ;;
1124
1125   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126     ac_prev=pdfdir ;;
1127   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128     pdfdir=$ac_optarg ;;
1129
1130   -psdir | --psdir | --psdi | --psd | --ps)
1131     ac_prev=psdir ;;
1132   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133     psdir=$ac_optarg ;;
1134
1135   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136   | -silent | --silent | --silen | --sile | --sil)
1137     silent=yes ;;
1138
1139   -runstatedir | --runstatedir | --runstatedi | --runstated \
1140   | --runstate | --runstat | --runsta | --runst | --runs \
1141   | --run | --ru | --r)
1142     ac_prev=runstatedir ;;
1143   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145   | --run=* | --ru=* | --r=*)
1146     runstatedir=$ac_optarg ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     case $ac_envvar in #(
1251       '' | [0-9]* | *[!_$as_cr_alnum]* )
1252       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253     esac
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274   case $enable_option_checking in
1275     no) ;;
1276     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278   esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir runstatedir
1286 do
1287   eval ac_val=\$$ac_var
1288   # Remove trailing slashes.
1289   case $ac_val in
1290     */ )
1291       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292       eval $ac_var=\$ac_val;;
1293   esac
1294   # Be sure to have absolute directory names.
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329   as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334   ac_srcdir_defaulted=yes
1335   # Try the directory containing this script, then the parent directory.
1336   ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338          X"$as_myself" : 'X\(//\)[^/]' \| \
1339          X"$as_myself" : 'X\(//\)$' \| \
1340          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)[^/].*/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\).*/{
1355             s//\1/
1356             q
1357           }
1358           s/.*/./; q'`
1359   srcdir=$ac_confdir
1360   if test ! -r "$srcdir/$ac_unique_file"; then
1361     srcdir=..
1362   fi
1363 else
1364   ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373         pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376   srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_env_${ac_var}_value=\$${ac_var}
1387   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395   # Omit some internal or obsolete options to make the list less imposing.
1396   # This message is too long to be a string in the A/UX 3.1 sh.
1397   cat <<_ACEOF
1398 \`configure' configures OpenFst 1.6.4 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408   -h, --help              display this help and exit
1409       --help=short        display options specific to this package
1410       --help=recursive    display the short help of all the included packages
1411   -V, --version           display version information and exit
1412   -q, --quiet, --silent   do not print \`checking ...' messages
1413       --cache-file=FILE   cache test results in FILE [disabled]
1414   -C, --config-cache      alias for \`--cache-file=config.cache'
1415   -n, --no-create         do not create output files
1416       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419   --prefix=PREFIX         install architecture-independent files in PREFIX
1420                           [$ac_default_prefix]
1421   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                           [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432   --bindir=DIR            user executables [EPREFIX/bin]
1433   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434   --libexecdir=DIR        program executables [EPREFIX/libexec]
1435   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439   --libdir=DIR            object code libraries [EPREFIX/lib]
1440   --includedir=DIR        C header files [PREFIX/include]
1441   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR           info documentation [DATAROOTDIR/info]
1445   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR            man documentation [DATAROOTDIR/man]
1447   --docdir=DIR            documentation root [DATAROOTDIR/doc/openfst]
1448   --htmldir=DIR           html documentation [DOCDIR]
1449   --dvidir=DIR            dvi documentation [DOCDIR]
1450   --pdfdir=DIR            pdf documentation [DOCDIR]
1451   --psdir=DIR             ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 Program names:
1457   --program-prefix=PREFIX            prepend PREFIX to installed program names
1458   --program-suffix=SUFFIX            append SUFFIX to installed program names
1459   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461 System types:
1462   --build=BUILD     configure for building on BUILD [guessed]
1463   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468   case $ac_init_help in
1469      short | recursive ) echo "Configuration of OpenFst 1.6.4:";;
1470    esac
1471   cat <<\_ACEOF
1472
1473 Optional Features:
1474   --disable-option-checking  ignore unrecognized --enable/--with options
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --enable-silent-rules   less verbose build output (undo: "make V=1")
1478   --disable-silent-rules  verbose build output (undo: "make V=0")
1479   --enable-dependency-tracking
1480                           do not reject slow dependency extractors
1481   --disable-dependency-tracking
1482                           speeds up one-time build
1483   --enable-static[=PKGS]  build static libraries [default=no]
1484   --enable-shared[=PKGS]  build shared libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --enable-compact-fsts   enable CompactFst extensions
1489   --enable-compress       enable compression extension
1490   --enable-const-fsts     enable ConstFst extensions
1491   --enable-far            enable FAR extensions
1492   --enable-linear-fsts    enable LinearTagger/ClassifierFst extensions
1493   --enable-lookahead-fsts enable LookAheadFst extensions
1494   --enable-mpdt           enable MPDT extensions
1495   --enable-ngram-fsts     enable NGramFst extension
1496   --enable-pdt            enable PDT extensions
1497   --enable-python         enable Python extensions
1498   --enable-special        enable special-matcher extensions
1499   --enable-bin            enable fst::script and command-line binaries
1500   --enable-grm            enable all dependencies of OpenGrm
1501
1502 Optional Packages:
1503   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1506                           both]
1507   --with-aix-soname=aix|svr4|both
1508                           shared library versioning (aka "SONAME") variant to
1509                           provide on AIX, [default=aix].
1510   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1511   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1512                           compiler's sysroot if not specified).
1513 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1514
1515 Some influential environment variables:
1516   CC          C compiler command
1517   CFLAGS      C compiler flags
1518   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519               nonstandard directory <lib dir>
1520   LIBS        libraries to pass to the linker, e.g. -l<library>
1521   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522               you have headers in a nonstandard directory <include dir>
1523   CXX         C++ compiler command
1524   CXXFLAGS    C++ compiler flags
1525   LT_SYS_LIBRARY_PATH
1526               User-defined run-time library search path.
1527   CPP         C preprocessor
1528   CXXCPP      C++ preprocessor
1529   PYTHON      the Python interpreter
1530   PYTHON_VERSION
1531               The installed Python version to use, for example '2.3'. This
1532               string will be appended to the Python interpreter canonical
1533               name.
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <help@www.openfst.org>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544   # If there are subdirs, report their specific --help.
1545   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546     test -d "$ac_dir" ||
1547       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548       continue
1549     ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555   # A ".." for each directory in $ac_dir_suffix.
1556   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557   case $ac_top_builddir_sub in
1558   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560   esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568   .)  # We are building in place.
1569     ac_srcdir=.
1570     ac_top_srcdir=$ac_top_builddir_sub
1571     ac_abs_top_srcdir=$ac_pwd ;;
1572   [\\/]* | ?:[\\/]* )  # Absolute name.
1573     ac_srcdir=$srcdir$ac_dir_suffix;
1574     ac_top_srcdir=$srcdir
1575     ac_abs_top_srcdir=$srcdir ;;
1576   *) # Relative name.
1577     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578     ac_top_srcdir=$ac_top_build_prefix$srcdir
1579     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583     cd "$ac_dir" || { ac_status=$?; continue; }
1584     # Check for guested configure.
1585     if test -f "$ac_srcdir/configure.gnu"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588     elif test -f "$ac_srcdir/configure"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure" --help=recursive
1591     else
1592       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593     fi || ac_status=$?
1594     cd "$ac_pwd" || { ac_status=$?; break; }
1595   done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600   cat <<\_ACEOF
1601 OpenFst configure 1.6.4
1602 generated by GNU Autoconf 2.69
1603
1604 Copyright (C) 2012 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608   exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   rm -f conftest.$ac_objext
1622   if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_compile") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } && {
1638          test -z "$ac_c_werror_flag" ||
1639          test ! -s conftest.err
1640        } && test -s conftest.$ac_objext; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646         ac_retval=1
1647 fi
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649   as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_cxx_try_compile LINENO
1654 # ----------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_cxx_try_compile ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext
1660   if { { ac_try="$ac_compile"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_compile") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_cxx_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest.$ac_objext; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684         ac_retval=1
1685 fi
1686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_cxx_try_compile
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   rm -f conftest.$ac_objext conftest$ac_exeext
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && {
1714          test -z "$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        } && test -s conftest$ac_exeext && {
1717          test "$cross_compiling" = yes ||
1718          test -x conftest$ac_exeext
1719        }; then :
1720   ac_retval=0
1721 else
1722   $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725         ac_retval=1
1726 fi
1727   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729   # interfere with the next link command; also delete a directory that is
1730   # left behind by Apple's compiler.  We do this before executing the actions.
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_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_cpp ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782   ac_status=$?
1783   if test -s conftest.err; then
1784     grep -v '^ *+' conftest.err >conftest.er1
1785     cat conftest.er1 >&5
1786     mv -f conftest.er1 conftest.err
1787   fi
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } > conftest.i && {
1790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791          test ! -s conftest.err
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798     ac_retval=1
1799 fi
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801   as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_cpp
1804
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1809 ac_fn_c_try_run ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_link") 2>&5
1820   ac_status=$?
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823   { { case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_try") 2>&5
1830   ac_status=$?
1831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832   test $ac_status = 0; }; }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: program exited with status $ac_status" >&5
1836        $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839        ac_retval=$ac_status
1840 fi
1841   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843   as_fn_set_status $ac_retval
1844
1845 } # ac_fn_c_try_run
1846
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1862 #define $2 innocuous_$2
1863
1864 /* System header to define __stub macros and hopefully few prototypes,
1865     which can conflict with char $2 (); below.
1866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867     <limits.h> exists even on freestanding compilers.  */
1868
1869 #ifdef __STDC__
1870 # include <limits.h>
1871 #else
1872 # include <assert.h>
1873 #endif
1874
1875 #undef $2
1876
1877 /* Override any GCC internal prototype to avoid an error.
1878    Use char because int might match the return type of a GCC
1879    builtin and then its argument prototype would still apply.  */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885     to always fail with ENOSYS.  Some functions are actually named
1886     something starting with __ and the normal name is an alias.  */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1890
1891 int
1892 main ()
1893 {
1894 return $2 ();
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"; then :
1900   eval "$3=yes"
1901 else
1902   eval "$3=no"
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext \
1905     conftest$ac_exeext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_func
1913
1914 # ac_fn_cxx_try_cpp LINENO
1915 # ------------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_cpp ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928   ac_status=$?
1929   if test -s conftest.err; then
1930     grep -v '^ *+' conftest.err >conftest.er1
1931     cat conftest.er1 >&5
1932     mv -f conftest.er1 conftest.err
1933   fi
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; } > conftest.i && {
1936          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937          test ! -s conftest.err
1938        }; then :
1939   ac_retval=0
1940 else
1941   $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944     ac_retval=1
1945 fi
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947   as_fn_set_status $ac_retval
1948
1949 } # ac_fn_cxx_try_cpp
1950
1951 # ac_fn_cxx_try_link LINENO
1952 # -------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_link ()
1955 {
1956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957   rm -f conftest.$ac_objext conftest$ac_exeext
1958   if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_link") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } && {
1974          test -z "$ac_cxx_werror_flag" ||
1975          test ! -s conftest.err
1976        } && test -s conftest$ac_exeext && {
1977          test "$cross_compiling" = yes ||
1978          test -x conftest$ac_exeext
1979        }; then :
1980   ac_retval=0
1981 else
1982   $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985         ac_retval=1
1986 fi
1987   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989   # interfere with the next link command; also delete a directory that is
1990   # left behind by Apple's compiler.  We do this before executing the actions.
1991   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993   as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_link
1996 cat >config.log <<_ACEOF
1997 This file contains any messages produced by compilers while
1998 running configure, to aid debugging if configure makes a mistake.
1999
2000 It was created by OpenFst $as_me 1.6.4, which was
2001 generated by GNU Autoconf 2.69.  Invocation command line was
2002
2003   $ $0 $@
2004
2005 _ACEOF
2006 exec 5>>config.log
2007 {
2008 cat <<_ASUNAME
2009 ## --------- ##
2010 ## Platform. ##
2011 ## --------- ##
2012
2013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2018
2019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2021
2022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2025 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2029
2030 _ASUNAME
2031
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037     $as_echo "PATH: $as_dir"
2038   done
2039 IFS=$as_save_IFS
2040
2041 } >&5
2042
2043 cat >&5 <<_ACEOF
2044
2045
2046 ## ----------- ##
2047 ## Core tests. ##
2048 ## ----------- ##
2049
2050 _ACEOF
2051
2052
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2058 ac_configure_args=
2059 ac_configure_args0=
2060 ac_configure_args1=
2061 ac_must_keep_next=false
2062 for ac_pass in 1 2
2063 do
2064   for ac_arg
2065   do
2066     case $ac_arg in
2067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2069     | -silent | --silent | --silen | --sile | --sil)
2070       continue ;;
2071     *\'*)
2072       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073     esac
2074     case $ac_pass in
2075     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076     2)
2077       as_fn_append ac_configure_args1 " '$ac_arg'"
2078       if test $ac_must_keep_next = true; then
2079         ac_must_keep_next=false # Got value, back to normal.
2080       else
2081         case $ac_arg in
2082           *=* | --config-cache | -C | -disable-* | --disable-* \
2083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2085           | -with-* | --with-* | -without-* | --without-* | --x)
2086             case "$ac_configure_args0 " in
2087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088             esac
2089             ;;
2090           -* ) ac_must_keep_next=true ;;
2091         esac
2092       fi
2093       as_fn_append ac_configure_args " '$ac_arg'"
2094       ;;
2095     esac
2096   done
2097 done
2098 { ac_configure_args0=; unset ac_configure_args0;}
2099 { ac_configure_args1=; unset ac_configure_args1;}
2100
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log.  We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107   # Save into config.log some information that might help in debugging.
2108   {
2109     echo
2110
2111     $as_echo "## ---------------- ##
2112 ## Cache variables. ##
2113 ## ---------------- ##"
2114     echo
2115     # The following way of writing the cache mishandles newlines in values,
2116 (
2117   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2118     eval ac_val=\$$ac_var
2119     case $ac_val in #(
2120     *${as_nl}*)
2121       case $ac_var in #(
2122       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2124       esac
2125       case $ac_var in #(
2126       _ | IFS | as_nl) ;; #(
2127       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2128       *) { eval $ac_var=; unset $ac_var;} ;;
2129       esac ;;
2130     esac
2131   done
2132   (set) 2>&1 |
2133     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2134     *${as_nl}ac_space=\ *)
2135       sed -n \
2136         "s/'\''/'\''\\\\'\'''\''/g;
2137           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2138       ;; #(
2139     *)
2140       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141       ;;
2142     esac |
2143     sort
2144 )
2145     echo
2146
2147     $as_echo "## ----------------- ##
2148 ## Output variables. ##
2149 ## ----------------- ##"
2150     echo
2151     for ac_var in $ac_subst_vars
2152     do
2153       eval ac_val=\$$ac_var
2154       case $ac_val in
2155       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156       esac
2157       $as_echo "$ac_var='\''$ac_val'\''"
2158     done | sort
2159     echo
2160
2161     if test -n "$ac_subst_files"; then
2162       $as_echo "## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##"
2165       echo
2166       for ac_var in $ac_subst_files
2167       do
2168         eval ac_val=\$$ac_var
2169         case $ac_val in
2170         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171         esac
2172         $as_echo "$ac_var='\''$ac_val'\''"
2173       done | sort
2174       echo
2175     fi
2176
2177     if test -s confdefs.h; then
2178       $as_echo "## ----------- ##
2179 ## confdefs.h. ##
2180 ## ----------- ##"
2181       echo
2182       cat confdefs.h
2183       echo
2184     fi
2185     test "$ac_signal" != 0 &&
2186       $as_echo "$as_me: caught signal $ac_signal"
2187     $as_echo "$as_me: exit $exit_status"
2188   } >&5
2189   rm -f core *.core core.conftest.* &&
2190     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2191     exit $exit_status
2192 ' 0
2193 for ac_signal in 1 2 13 15; do
2194   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2195 done
2196 ac_signal=0
2197
2198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2199 rm -f -r conftest* confdefs.h
2200
2201 $as_echo "/* confdefs.h */" > confdefs.h
2202
2203 # Predefined preprocessor variables.
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_NAME "$PACKAGE_NAME"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_STRING "$PACKAGE_STRING"
2219 _ACEOF
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_URL "$PACKAGE_URL"
2227 _ACEOF
2228
2229
2230 # Let the site file select an alternate cache file if it wants to.
2231 # Prefer an explicitly selected file to automatically selected ones.
2232 ac_site_file1=NONE
2233 ac_site_file2=NONE
2234 if test -n "$CONFIG_SITE"; then
2235   # We do not want a PATH search for config.site.
2236   case $CONFIG_SITE in #((
2237     -*)  ac_site_file1=./$CONFIG_SITE;;
2238     */*) ac_site_file1=$CONFIG_SITE;;
2239     *)   ac_site_file1=./$CONFIG_SITE;;
2240   esac
2241 elif test "x$prefix" != xNONE; then
2242   ac_site_file1=$prefix/share/config.site
2243   ac_site_file2=$prefix/etc/config.site
2244 else
2245   ac_site_file1=$ac_default_prefix/share/config.site
2246   ac_site_file2=$ac_default_prefix/etc/config.site
2247 fi
2248 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2249 do
2250   test "x$ac_site_file" = xNONE && continue
2251   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2252     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2253 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2254     sed 's/^/| /' "$ac_site_file" >&5
2255     . "$ac_site_file" \
2256       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error $? "failed to load site script $ac_site_file
2259 See \`config.log' for more details" "$LINENO" 5; }
2260   fi
2261 done
2262
2263 if test -r "$cache_file"; then
2264   # Some versions of bash will fail to source /dev/null (special files
2265   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2266   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268 $as_echo "$as_me: loading cache $cache_file" >&6;}
2269     case $cache_file in
2270       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2271       *)                      . "./$cache_file";;
2272     esac
2273   fi
2274 else
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276 $as_echo "$as_me: creating cache $cache_file" >&6;}
2277   >$cache_file
2278 fi
2279
2280 # Check that the precious variables saved in the cache have kept the same
2281 # value.
2282 ac_cache_corrupted=false
2283 for ac_var in $ac_precious_vars; do
2284   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2285   eval ac_new_set=\$ac_env_${ac_var}_set
2286   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2287   eval ac_new_val=\$ac_env_${ac_var}_value
2288   case $ac_old_set,$ac_new_set in
2289     set,)
2290       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2292       ac_cache_corrupted=: ;;
2293     ,set)
2294       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2296       ac_cache_corrupted=: ;;
2297     ,);;
2298     *)
2299       if test "x$ac_old_val" != "x$ac_new_val"; then
2300         # differences in whitespace do not lead to failure.
2301         ac_old_val_w=`echo x $ac_old_val`
2302         ac_new_val_w=`echo x $ac_new_val`
2303         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306           ac_cache_corrupted=:
2307         else
2308           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310           eval $ac_var=\$ac_old_val
2311         fi
2312         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2313 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2314         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2315 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2316       fi;;
2317   esac
2318   # Pass precious variables to config.status.
2319   if test "$ac_new_set" = set; then
2320     case $ac_new_val in
2321     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2322     *) ac_arg=$ac_var=$ac_new_val ;;
2323     esac
2324     case " $ac_configure_args " in
2325       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2326       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2327     esac
2328   fi
2329 done
2330 if $ac_cache_corrupted; then
2331   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2336 fi
2337 ## -------------------- ##
2338 ## Main body of script. ##
2339 ## -------------------- ##
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
2347
2348 am__api_version='1.15'
2349
2350 ac_aux_dir=
2351 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2352   if test -f "$ac_dir/install-sh"; then
2353     ac_aux_dir=$ac_dir
2354     ac_install_sh="$ac_aux_dir/install-sh -c"
2355     break
2356   elif test -f "$ac_dir/install.sh"; then
2357     ac_aux_dir=$ac_dir
2358     ac_install_sh="$ac_aux_dir/install.sh -c"
2359     break
2360   elif test -f "$ac_dir/shtool"; then
2361     ac_aux_dir=$ac_dir
2362     ac_install_sh="$ac_aux_dir/shtool install -c"
2363     break
2364   fi
2365 done
2366 if test -z "$ac_aux_dir"; then
2367   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2368 fi
2369
2370 # These three variables are undocumented and unsupported,
2371 # and are intended to be withdrawn in a future Autoconf release.
2372 # They can cause serious problems if a builder's source tree is in a directory
2373 # whose full name contains unusual characters.
2374 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2375 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2376 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2377
2378
2379 # Find a good install program.  We prefer a C program (faster),
2380 # so one script is as good as another.  But avoid the broken or
2381 # incompatible versions:
2382 # SysV /etc/install, /usr/sbin/install
2383 # SunOS /usr/etc/install
2384 # IRIX /sbin/install
2385 # AIX /bin/install
2386 # AmigaOS /C/install, which installs bootblocks on floppy discs
2387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2390 # OS/2's system install, which has a completely different semantic
2391 # ./install, which can be erroneously created by make from ./install.sh.
2392 # Reject install programs that cannot install multiple files.
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2394 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2395 if test -z "$INSTALL"; then
2396 if ${ac_cv_path_install+:} false; then :
2397   $as_echo_n "(cached) " >&6
2398 else
2399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402   IFS=$as_save_IFS
2403   test -z "$as_dir" && as_dir=.
2404     # Account for people who put trailing slashes in PATH elements.
2405 case $as_dir/ in #((
2406   ./ | .// | /[cC]/* | \
2407   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2408   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2409   /usr/ucb/* ) ;;
2410   *)
2411     # OSF1 and SCO ODT 3.0 have their own names for install.
2412     # Don't use installbsd from OSF since it installs stuff as root
2413     # by default.
2414     for ac_prog in ginstall scoinst install; do
2415       for ac_exec_ext in '' $ac_executable_extensions; do
2416         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2417           if test $ac_prog = install &&
2418             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419             # AIX install.  It has an incompatible calling convention.
2420             :
2421           elif test $ac_prog = install &&
2422             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423             # program-specific install script used by HP pwplus--don't use.
2424             :
2425           else
2426             rm -rf conftest.one conftest.two conftest.dir
2427             echo one > conftest.one
2428             echo two > conftest.two
2429             mkdir conftest.dir
2430             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2431               test -s conftest.one && test -s conftest.two &&
2432               test -s conftest.dir/conftest.one &&
2433               test -s conftest.dir/conftest.two
2434             then
2435               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2436               break 3
2437             fi
2438           fi
2439         fi
2440       done
2441     done
2442     ;;
2443 esac
2444
2445   done
2446 IFS=$as_save_IFS
2447
2448 rm -rf conftest.one conftest.two conftest.dir
2449
2450 fi
2451   if test "${ac_cv_path_install+set}" = set; then
2452     INSTALL=$ac_cv_path_install
2453   else
2454     # As a last resort, use the slow shell script.  Don't cache a
2455     # value for INSTALL within a source directory, because that will
2456     # break other packages using the cache if that directory is
2457     # removed, or if the value is a relative name.
2458     INSTALL=$ac_install_sh
2459   fi
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2462 $as_echo "$INSTALL" >&6; }
2463
2464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2465 # It thinks the first close brace ends the variable substitution.
2466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2467
2468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2469
2470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2473 $as_echo_n "checking whether build environment is sane... " >&6; }
2474 # Reject unsafe characters in $srcdir or the absolute working directory
2475 # name.  Accept space and tab only in the latter.
2476 am_lf='
2477 '
2478 case `pwd` in
2479   *[\\\"\#\$\&\'\`$am_lf]*)
2480     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2481 esac
2482 case $srcdir in
2483   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2484     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2485 esac
2486
2487 # Do 'set' in a subshell so we don't clobber the current shell's
2488 # arguments.  Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2491 # directory).
2492 if (
2493    am_has_slept=no
2494    for am_try in 1 2; do
2495      echo "timestamp, slept: $am_has_slept" > conftest.file
2496      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2497      if test "$*" = "X"; then
2498         # -L didn't work.
2499         set X `ls -t "$srcdir/configure" conftest.file`
2500      fi
2501      if test "$*" != "X $srcdir/configure conftest.file" \
2502         && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504         # If neither matched, then we have a broken ls.  This can happen
2505         # if, for instance, CONFIG_SHELL is bash and it inherits a
2506         # broken ls alias from the environment.  This has actually
2507         # happened.  Such a system could not be considered "sane".
2508         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2509   alias in your environment" "$LINENO" 5
2510      fi
2511      if test "$2" = conftest.file || test $am_try -eq 2; then
2512        break
2513      fi
2514      # Just in case.
2515      sleep 1
2516      am_has_slept=yes
2517    done
2518    test "$2" = conftest.file
2519    )
2520 then
2521    # Ok.
2522    :
2523 else
2524    as_fn_error $? "newly created file is older than distributed files!
2525 Check your system clock" "$LINENO" 5
2526 fi
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528 $as_echo "yes" >&6; }
2529 # If we didn't sleep, we still need to ensure time stamps of config.status and
2530 # generated files are strictly newer.
2531 am_sleep_pid=
2532 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2533   ( sleep 1 ) &
2534   am_sleep_pid=$!
2535 fi
2536
2537 rm -f conftest.file
2538
2539 test "$program_prefix" != NONE &&
2540   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE &&
2543   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548
2549 # Expand $ac_aux_dir to an absolute path.
2550 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2551
2552 if test x"${MISSING+set}" != xset; then
2553   case $am_aux_dir in
2554   *\ * | *\     *)
2555     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2556   *)
2557     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2558   esac
2559 fi
2560 # Use eval to expand $SHELL
2561 if eval "$MISSING --is-lightweight"; then
2562   am_missing_run="$MISSING "
2563 else
2564   am_missing_run=
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2566 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2567 fi
2568
2569 if test x"${install_sh+set}" != xset; then
2570   case $am_aux_dir in
2571   *\ * | *\     *)
2572     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2573   *)
2574     install_sh="\${SHELL} $am_aux_dir/install-sh"
2575   esac
2576 fi
2577
2578 # Installed binaries are usually stripped using 'strip' when the user
2579 # run "make install-strip".  However 'strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the 'STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583   if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_STRIP+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$STRIP"; then
2592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2614 $as_echo "$STRIP" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_STRIP"; then
2623   ac_ct_STRIP=$STRIP
2624   # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$ac_ct_STRIP"; then
2632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_ac_ct_STRIP="strip"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2654 $as_echo "$ac_ct_STRIP" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_STRIP" = x; then
2661     STRIP=":"
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     STRIP=$ac_ct_STRIP
2670   fi
2671 else
2672   STRIP="$ac_cv_prog_STRIP"
2673 fi
2674
2675 fi
2676 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2679 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2680 if test -z "$MKDIR_P"; then
2681   if ${ac_cv_path_mkdir+:} false; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_prog in mkdir gmkdir; do
2690          for ac_exec_ext in '' $ac_executable_extensions; do
2691            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2692            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2693              'mkdir (GNU coreutils) '* | \
2694              'mkdir (coreutils) '* | \
2695              'mkdir (fileutils) '4.1*)
2696                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2697                break 3;;
2698            esac
2699          done
2700        done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705
2706   test -d ./--version && rmdir ./--version
2707   if test "${ac_cv_path_mkdir+set}" = set; then
2708     MKDIR_P="$ac_cv_path_mkdir -p"
2709   else
2710     # As a last resort, use the slow shell script.  Don't cache a
2711     # value for MKDIR_P within a source directory, because that will
2712     # break other packages using the cache if that directory is
2713     # removed, or if the value is a relative name.
2714     MKDIR_P="$ac_install_sh -d"
2715   fi
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2718 $as_echo "$MKDIR_P" >&6; }
2719
2720 for ac_prog in gawk mawk nawk awk
2721 do
2722   # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_AWK+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$AWK"; then
2730   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739     ac_cv_prog_AWK="$ac_prog"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 AWK=$ac_cv_prog_AWK
2750 if test -n "$AWK"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752 $as_echo "$AWK" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759   test -n "$AWK" && break
2760 done
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2763 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2764 set x ${MAKE-make}
2765 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2766 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   cat >conftest.make <<\_ACEOF
2770 SHELL = /bin/sh
2771 all:
2772         @echo '@@@%%%=$(MAKE)=@@@%%%'
2773 _ACEOF
2774 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2775 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2776   *@@@%%%=?*=@@@%%%*)
2777     eval ac_cv_prog_make_${ac_make}_set=yes;;
2778   *)
2779     eval ac_cv_prog_make_${ac_make}_set=no;;
2780 esac
2781 rm -f conftest.make
2782 fi
2783 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785 $as_echo "yes" >&6; }
2786   SET_MAKE=
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790   SET_MAKE="MAKE=${MAKE-make}"
2791 fi
2792
2793 rm -rf .tst 2>/dev/null
2794 mkdir .tst 2>/dev/null
2795 if test -d .tst; then
2796   am__leading_dot=.
2797 else
2798   am__leading_dot=_
2799 fi
2800 rmdir .tst 2>/dev/null
2801
2802 # Check whether --enable-silent-rules was given.
2803 if test "${enable_silent_rules+set}" = set; then :
2804   enableval=$enable_silent_rules;
2805 fi
2806
2807 case $enable_silent_rules in # (((
2808   yes) AM_DEFAULT_VERBOSITY=0;;
2809    no) AM_DEFAULT_VERBOSITY=1;;
2810     *) AM_DEFAULT_VERBOSITY=1;;
2811 esac
2812 am_make=${MAKE-make}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2814 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2815 if ${am_cv_make_support_nested_variables+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if $as_echo 'TRUE=$(BAR$(V))
2819 BAR0=false
2820 BAR1=true
2821 V=1
2822 am__doit:
2823         @$(TRUE)
2824 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2825   am_cv_make_support_nested_variables=yes
2826 else
2827   am_cv_make_support_nested_variables=no
2828 fi
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2831 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2832 if test $am_cv_make_support_nested_variables = yes; then
2833     AM_V='$(V)'
2834   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2835 else
2836   AM_V=$AM_DEFAULT_VERBOSITY
2837   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2838 fi
2839 AM_BACKSLASH='\'
2840
2841 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2842   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2843   # is not polluted with repeated "-I."
2844   am__isrc=' -I$(srcdir)'
2845   # test to see if srcdir already configured
2846   if test -f $srcdir/config.status; then
2847     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2848   fi
2849 fi
2850
2851 # test whether we have cygpath
2852 if test -z "$CYGPATH_W"; then
2853   if (cygpath --version) >/dev/null 2>/dev/null; then
2854     CYGPATH_W='cygpath -w'
2855   else
2856     CYGPATH_W=echo
2857   fi
2858 fi
2859
2860
2861 # Define the identity of the package.
2862  PACKAGE='openfst'
2863  VERSION='1.6.4'
2864
2865
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE "$PACKAGE"
2868 _ACEOF
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define VERSION "$VERSION"
2873 _ACEOF
2874
2875 # Some tools Automake needs.
2876
2877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2878
2879
2880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2881
2882
2883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2884
2885
2886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2887
2888
2889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2890
2891 # For better backward compatibility.  To be removed once Automake 1.9.x
2892 # dies out for good.  For more background, see:
2893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2895 mkdir_p='$(MKDIR_P)'
2896
2897 # We need awk for the "check" target (and possibly the TAP driver).  The
2898 # system "awk" is bad on some platforms.
2899 # Always define AMTAR for backward compatibility.  Yes, it's still used
2900 # in the wild :-(  We should find a proper way to deprecate it ...
2901 AMTAR='$${TAR-tar}'
2902
2903
2904 # We'll loop over all known methods to create a tar archive until one works.
2905 _am_tools='gnutar  pax cpio none'
2906
2907 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2908
2909
2910
2911
2912
2913
2914 # POSIX will say in a future version that running "rm -f" with no argument
2915 # is OK; and we want to be able to make that assumption in our Makefile
2916 # recipes.  So use an aggressive probe to check that the usage we want is
2917 # actually supported "in the wild" to an acceptable degree.
2918 # See automake bug#10828.
2919 # To make any issue more visible, cause the running configure to be aborted
2920 # by default if the 'rm' program in use doesn't match our expectations; the
2921 # user can still override this though.
2922 if rm -f && rm -fr && rm -rf; then : OK; else
2923   cat >&2 <<'END'
2924 Oops!
2925
2926 Your 'rm' program seems unable to run without file operands specified
2927 on the command line, even when the '-f' option is present.  This is contrary
2928 to the behaviour of most rm programs out there, and not conforming with
2929 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2930
2931 Please tell bug-automake@gnu.org about your system, including the value
2932 of your $PATH and any error possibly output before this message.  This
2933 can help us improve future automake versions.
2934
2935 END
2936   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2937     echo 'Configuration will proceed anyway, since you have set the' >&2
2938     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2939     echo >&2
2940   else
2941     cat >&2 <<'END'
2942 Aborting the configuration process, to ensure you take notice of the issue.
2943
2944 You can download and install GNU coreutils to get an 'rm' implementation
2945 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2946
2947 If you want to complete the configuration process using your problematic
2948 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2949 to "yes", and re-run configure.
2950
2951 END
2952     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2953   fi
2954 fi
2955
2956 DEPDIR="${am__leading_dot}deps"
2957
2958 ac_config_commands="$ac_config_commands depfiles"
2959
2960
2961 am_make=${MAKE-make}
2962 cat > confinc << 'END'
2963 am__doit:
2964         @echo this is the am__doit target
2965 .PHONY: am__doit
2966 END
2967 # If we don't find an include directive, just comment out the code.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2970 am__include="#"
2971 am__quote=
2972 _am_result=none
2973 # First try GNU make style include.
2974 echo "include confinc" > confmf
2975 # Ignore all kinds of additional output from 'make'.
2976 case `$am_make -s -f confmf 2> /dev/null` in #(
2977 *the\ am__doit\ target*)
2978   am__include=include
2979   am__quote=
2980   _am_result=GNU
2981   ;;
2982 esac
2983 # Now try BSD make style include.
2984 if test "$am__include" = "#"; then
2985    echo '.include "confinc"' > confmf
2986    case `$am_make -s -f confmf 2> /dev/null` in #(
2987    *the\ am__doit\ target*)
2988      am__include=.include
2989      am__quote="\""
2990      _am_result=BSD
2991      ;;
2992    esac
2993 fi
2994
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2997 $as_echo "$_am_result" >&6; }
2998 rm -f confinc confmf
2999
3000 # Check whether --enable-dependency-tracking was given.
3001 if test "${enable_dependency_tracking+set}" = set; then :
3002   enableval=$enable_dependency_tracking;
3003 fi
3004
3005 if test "x$enable_dependency_tracking" != xno; then
3006   am_depcomp="$ac_aux_dir/depcomp"
3007   AMDEPBACKSLASH='\'
3008   am__nodep='_no'
3009 fi
3010  if test "x$enable_dependency_tracking" != xno; then
3011   AMDEP_TRUE=
3012   AMDEP_FALSE='#'
3013 else
3014   AMDEP_TRUE='#'
3015   AMDEP_FALSE=
3016 fi
3017
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$CC"; then
3033   ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_exec_ext in '' $ac_executable_extensions; do
3041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044     break 2
3045   fi
3046 done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_CC"; then
3064   ac_ct_CC=$CC
3065   # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$ac_ct_CC"; then
3073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     ac_cv_prog_ac_ct_CC="gcc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101   if test "x$ac_ct_CC" = x; then
3102     CC=""
3103   else
3104     case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110     CC=$ac_ct_CC
3111   fi
3112 else
3113   CC="$ac_cv_prog_CC"
3114 fi
3115
3116 if test -z "$CC"; then
3117           if test -n "$ac_tool_prefix"; then
3118     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -n "$CC"; then
3126   ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_exec_ext in '' $ac_executable_extensions; do
3134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135     ac_cv_prog_CC="${ac_tool_prefix}cc"
3136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137     break 2
3138   fi
3139 done
3140   done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155   fi
3156 fi
3157 if test -z "$CC"; then
3158   # Extract the first word of "cc", so it can be a program name with args.
3159 set dummy cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if test -n "$CC"; then
3166   ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168   ac_prog_rejected=no
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177        ac_prog_rejected=yes
3178        continue
3179      fi
3180     ac_cv_prog_CC="cc"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 if test $ac_prog_rejected = yes; then
3189   # We found a bogon in the path, so make sure we never use it.
3190   set dummy $ac_cv_prog_CC
3191   shift
3192   if test $# != 0; then
3193     # We chose a different compiler from the bogus one.
3194     # However, it has the same basename, so the bogon will be chosen
3195     # first if we set CC to just the basename; use the full file name.
3196     shift
3197     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198   fi
3199 fi
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 if test -z "$CC"; then
3214   if test -n "$ac_tool_prefix"; then
3215   for ac_prog in cl.exe
3216   do
3217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222   $as_echo_n "(cached) " >&6
3223 else
3224   if test -n "$CC"; then
3225   ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232     for ac_exec_ext in '' $ac_executable_extensions; do
3233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239   done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254     test -n "$CC" && break
3255   done
3256 fi
3257 if test -z "$CC"; then
3258   ac_ct_CC=$CC
3259   for ac_prog in cl.exe
3260 do
3261   # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   if test -n "$ac_ct_CC"; then
3269   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276     for ac_exec_ext in '' $ac_executable_extensions; do
3277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278     ac_cv_prog_ac_ct_CC="$ac_prog"
3279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283   done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291 $as_echo "$ac_ct_CC" >&6; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298   test -n "$ac_ct_CC" && break
3299 done
3300
3301   if test "x$ac_ct_CC" = x; then
3302     CC=""
3303   else
3304     case $cross_compiling:$ac_tool_warned in
3305 yes:)
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3309 esac
3310     CC=$ac_ct_CC
3311   fi
3312 fi
3313
3314 fi
3315
3316
3317 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details" "$LINENO" 5; }
3321
3322 # Provide some information about the compiler.
3323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3324 set X $ac_compile
3325 ac_compiler=$2
3326 for ac_option in --version -v -V -qversion; do
3327   { { ac_try="$ac_compiler $ac_option >&5"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335   ac_status=$?
3336   if test -s conftest.err; then
3337     sed '10a\
3338 ... rest of stderr output deleted ...
3339          10q' conftest.err >conftest.er1
3340     cat conftest.er1 >&5
3341   fi
3342   rm -f conftest.er1 conftest.err
3343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344   test $ac_status = 0; }
3345 done
3346
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h.  */
3349
3350 int
3351 main ()
3352 {
3353
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 ac_clean_files_save=$ac_clean_files
3359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3362 # of exeext.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 $as_echo_n "checking whether the C compiler works... " >&6; }
3365 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3366
3367 # The possible output files:
3368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3369
3370 ac_rmfiles=
3371 for ac_file in $ac_files
3372 do
3373   case $ac_file in
3374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376   esac
3377 done
3378 rm -f $ac_rmfiles
3379
3380 if { { ac_try="$ac_link_default"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387   (eval "$ac_link_default") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }; then :
3391   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3392 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3393 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3394 # so that the user can short-circuit this test for compilers unknown to
3395 # Autoconf.
3396 for ac_file in $ac_files ''
3397 do
3398   test -f "$ac_file" || continue
3399   case $ac_file in
3400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3401         ;;
3402     [ab].out )
3403         # We found the default executable, but exeext='' is most
3404         # certainly right.
3405         break;;
3406     *.* )
3407         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3408         then :; else
3409            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410         fi
3411         # We set ac_cv_exeext here because the later test for it is not
3412         # safe: cross compilers may not add the suffix if given an `-o'
3413         # argument, so we may need to know it at that point already.
3414         # Even if this section looks crufty: it has the advantage of
3415         # actually working.
3416         break;;
3417     * )
3418         break;;
3419   esac
3420 done
3421 test "$ac_cv_exeext" = no && ac_cv_exeext=
3422
3423 else
3424   ac_file=''
3425 fi
3426 if test -z "$ac_file"; then :
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error 77 "C compiler cannot create executables
3435 See \`config.log' for more details" "$LINENO" 5; }
3436 else
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441 $as_echo_n "checking for C compiler default output file name... " >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3443 $as_echo "$ac_file" >&6; }
3444 ac_exeext=$ac_cv_exeext
3445
3446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3449 $as_echo_n "checking for suffix of executables... " >&6; }
3450 if { { ac_try="$ac_link"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457   (eval "$ac_link") 2>&5
3458   ac_status=$?
3459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460   test $ac_status = 0; }; then :
3461   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe'), while it won't with
3464 # `rm'.
3465 for ac_file in conftest.exe conftest conftest.*; do
3466   test -f "$ac_file" || continue
3467   case $ac_file in
3468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470           break;;
3471     * ) break;;
3472   esac
3473 done
3474 else
3475   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3478 See \`config.log' for more details" "$LINENO" 5; }
3479 fi
3480 rm -f conftest conftest$ac_cv_exeext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3482 $as_echo "$ac_cv_exeext" >&6; }
3483
3484 rm -f conftest.$ac_ext
3485 EXEEXT=$ac_cv_exeext
3486 ac_exeext=$EXEEXT
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489 #include <stdio.h>
3490 int
3491 main ()
3492 {
3493 FILE *f = fopen ("conftest.out", "w");
3494  return ferror (f) || fclose (f) != 0;
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 ac_clean_files="$ac_clean_files conftest.out"
3501 # Check that the compiler produces executables we can run.  If not, either
3502 # the compiler is broken, or we cross compile.
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3504 $as_echo_n "checking whether we are cross compiling... " >&6; }
3505 if test "$cross_compiling" != yes; then
3506   { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }
3517   if { ac_try='./conftest$ac_cv_exeext'
3518   { { case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524   (eval "$ac_try") 2>&5
3525   ac_status=$?
3526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527   test $ac_status = 0; }; }; then
3528     cross_compiling=no
3529   else
3530     if test "$cross_compiling" = maybe; then
3531         cross_compiling=yes
3532     else
3533         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot run C compiled programs.
3536 If you meant to cross compile, use \`--host'.
3537 See \`config.log' for more details" "$LINENO" 5; }
3538     fi
3539   fi
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3542 $as_echo "$cross_compiling" >&6; }
3543
3544 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3547 $as_echo_n "checking for suffix of object files... " >&6; }
3548 if ${ac_cv_objext+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.o conftest.obj
3563 if { { ac_try="$ac_compile"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_compile") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; then :
3574   for ac_file in conftest.o conftest.obj conftest.*; do
3575   test -f "$ac_file" || continue;
3576   case $ac_file in
3577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3578     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579        break;;
3580   esac
3581 done
3582 else
3583   $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot compute suffix of object files: cannot compile
3589 See \`config.log' for more details" "$LINENO" 5; }
3590 fi
3591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3594 $as_echo "$ac_cv_objext" >&6; }
3595 OBJEXT=$ac_cv_objext
3596 ac_objext=$OBJEXT
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3598 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3599 if ${ac_cv_c_compiler_gnu+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608 #ifndef __GNUC__
3609        choke me
3610 #endif
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617   ac_compiler_gnu=yes
3618 else
3619   ac_compiler_gnu=no
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3623
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3627 if test $ac_compiler_gnu = yes; then
3628   GCC=yes
3629 else
3630   GCC=
3631 fi
3632 ac_test_CFLAGS=${CFLAGS+set}
3633 ac_save_CFLAGS=$CFLAGS
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3636 if ${ac_cv_prog_cc_g+:} false; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   ac_save_c_werror_flag=$ac_c_werror_flag
3640    ac_c_werror_flag=yes
3641    ac_cv_prog_cc_g=no
3642    CFLAGS="-g"
3643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h.  */
3645
3646 int
3647 main ()
3648 {
3649
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655   ac_cv_prog_cc_g=yes
3656 else
3657   CFLAGS=""
3658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660
3661 int
3662 main ()
3663 {
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670
3671 else
3672   ac_c_werror_flag=$ac_save_c_werror_flag
3673          CFLAGS="-g"
3674          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h.  */
3676
3677 int
3678 main ()
3679 {
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686   ac_cv_prog_cc_g=yes
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693    ac_c_werror_flag=$ac_save_c_werror_flag
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3696 $as_echo "$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698   CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700   if test "$GCC" = yes; then
3701     CFLAGS="-g -O2"
3702   else
3703     CFLAGS="-g"
3704   fi
3705 else
3706   if test "$GCC" = yes; then
3707     CFLAGS="-O2"
3708   else
3709     CFLAGS=
3710   fi
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3713 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3714 if ${ac_cv_prog_cc_c89+:} false; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   ac_cv_prog_cc_c89=no
3718 ac_save_CC=$CC
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721 #include <stdarg.h>
3722 #include <stdio.h>
3723 struct stat;
3724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3725 struct buf { int x; };
3726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727 static char *e (p, i)
3728      char **p;
3729      int i;
3730 {
3731   return p[i];
3732 }
3733 static char *f (char * (*g) (char **, int), char **p, ...)
3734 {
3735   char *s;
3736   va_list v;
3737   va_start (v,p);
3738   s = g (p, va_arg (v,int));
3739   va_end (v);
3740   return s;
3741 }
3742
3743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3744    function prototypes and stuff, but not '\xHH' hex character constants.
3745    These don't provoke an error unfortunately, instead are silently treated
3746    as 'x'.  The following induces an error, until -std is added to get
3747    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3748    array size at least.  It's necessary to write '\x00'==0 to get something
3749    that's true only with -std.  */
3750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3751
3752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753    inside strings and character constants.  */
3754 #define FOO(x) 'x'
3755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3756
3757 int test (int i, double x);
3758 struct s1 {int (*f) (int a);};
3759 struct s2 {int (*f) (double a);};
3760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761 int argc;
3762 char **argv;
3763 int
3764 main ()
3765 {
3766 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3773 do
3774   CC="$ac_save_CC $ac_arg"
3775   if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_cv_prog_cc_c89=$ac_arg
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext
3779   test "x$ac_cv_prog_cc_c89" != "xno" && break
3780 done
3781 rm -f conftest.$ac_ext
3782 CC=$ac_save_CC
3783
3784 fi
3785 # AC_CACHE_VAL
3786 case "x$ac_cv_prog_cc_c89" in
3787   x)
3788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 $as_echo "none needed" >&6; } ;;
3790   xno)
3791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792 $as_echo "unsupported" >&6; } ;;
3793   *)
3794     CC="$CC $ac_cv_prog_cc_c89"
3795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3797 esac
3798 if test "x$ac_cv_prog_cc_c89" != xno; then :
3799
3800 fi
3801
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3814 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3815 if ${am_cv_prog_cc_c_o+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829   # Make sure it works both with $CC and with simple cc.
3830   # Following AC_PROG_CC_C_O, we do the test twice because some
3831   # compilers refuse to overwrite an existing .o file with -o,
3832   # though they will create one.
3833   am_cv_prog_cc_c_o=yes
3834   for am_i in 1 2; do
3835     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3836    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3837    ac_status=$?
3838    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839    (exit $ac_status); } \
3840          && test -f conftest2.$ac_objext; then
3841       : OK
3842     else
3843       am_cv_prog_cc_c_o=no
3844       break
3845     fi
3846   done
3847   rm -f core conftest*
3848   unset am_i
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3851 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3852 if test "$am_cv_prog_cc_c_o" != yes; then
3853    # Losing compiler, so override with the script.
3854    # FIXME: It is wrong to rewrite CC.
3855    # But if we don't then we get into trouble of one sort or another.
3856    # A longer-term fix would be to have automake use am__CC in this case,
3857    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3858    CC="$am_aux_dir/compile $CC"
3859 fi
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866
3867 depcc="$CC"   am_compiler_list=
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3870 $as_echo_n "checking dependency style of $depcc... " >&6; }
3871 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875   # We make a subdir and do the tests there.  Otherwise we can end up
3876   # making bogus files that we don't know about and never remove.  For
3877   # instance it was reported that on HP-UX the gcc test will end up
3878   # making a dummy file named 'D' -- because '-MD' means "put the output
3879   # in D".
3880   rm -rf conftest.dir
3881   mkdir conftest.dir
3882   # Copy depcomp to subdir because otherwise we won't find it if we're
3883   # using a relative directory.
3884   cp "$am_depcomp" conftest.dir
3885   cd conftest.dir
3886   # We will build objects and dependencies in a subdirectory because
3887   # it helps to detect inapplicable dependency modes.  For instance
3888   # both Tru64's cc and ICC support -MD to output dependencies as a
3889   # side effect of compilation, but ICC will put the dependencies in
3890   # the current directory while Tru64 will put them in the object
3891   # directory.
3892   mkdir sub
3893
3894   am_cv_CC_dependencies_compiler_type=none
3895   if test "$am_compiler_list" = ""; then
3896      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3897   fi
3898   am__universal=false
3899   case " $depcc " in #(
3900      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3901      esac
3902
3903   for depmode in $am_compiler_list; do
3904     # Setup a source with many dependencies, because some compilers
3905     # like to wrap large dependency lists on column 80 (with \), and
3906     # we should not choose a depcomp mode which is confused by this.
3907     #
3908     # We need to recreate these files for each test, as the compiler may
3909     # overwrite some of them when testing with obscure command lines.
3910     # This happens at least with the AIX C compiler.
3911     : > sub/conftest.c
3912     for i in 1 2 3 4 5 6; do
3913       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3914       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3915       # Solaris 10 /bin/sh.
3916       echo '/* dummy */' > sub/conftst$i.h
3917     done
3918     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3919
3920     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3921     # mode.  It turns out that the SunPro C++ compiler does not properly
3922     # handle '-M -o', and we need to detect this.  Also, some Intel
3923     # versions had trouble with output in subdirs.
3924     am__obj=sub/conftest.${OBJEXT-o}
3925     am__minus_obj="-o $am__obj"
3926     case $depmode in
3927     gcc)
3928       # This depmode causes a compiler race in universal mode.
3929       test "$am__universal" = false || continue
3930       ;;
3931     nosideeffect)
3932       # After this tag, mechanisms are not by side-effect, so they'll
3933       # only be used when explicitly requested.
3934       if test "x$enable_dependency_tracking" = xyes; then
3935         continue
3936       else
3937         break
3938       fi
3939       ;;
3940     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3941       # This compiler won't grok '-c -o', but also, the minuso test has
3942       # not run yet.  These depmodes are late enough in the game, and
3943       # so weak that their functioning should not be impacted.
3944       am__obj=conftest.${OBJEXT-o}
3945       am__minus_obj=
3946       ;;
3947     none) break ;;
3948     esac
3949     if depmode=$depmode \
3950        source=sub/conftest.c object=$am__obj \
3951        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3952        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3953          >/dev/null 2>conftest.err &&
3954        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3955        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3956        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3957        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3958       # icc doesn't choke on unknown options, it will just issue warnings
3959       # or remarks (even with -Werror).  So we grep stderr for any message
3960       # that says an option was ignored or not supported.
3961       # When given -MP, icc 7.0 and 7.1 complain thusly:
3962       #   icc: Command line warning: ignoring option '-M'; no argument required
3963       # The diagnosis changed in icc 8.0:
3964       #   icc: Command line remark: option '-MP' not supported
3965       if (grep 'ignoring option' conftest.err ||
3966           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3967         am_cv_CC_dependencies_compiler_type=$depmode
3968         break
3969       fi
3970     fi
3971   done
3972
3973   cd ..
3974   rm -rf conftest.dir
3975 else
3976   am_cv_CC_dependencies_compiler_type=none
3977 fi
3978
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3981 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3982 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3983
3984  if
3985   test "x$enable_dependency_tracking" != xno \
3986   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3987   am__fastdepCC_TRUE=
3988   am__fastdepCC_FALSE='#'
3989 else
3990   am__fastdepCC_TRUE='#'
3991   am__fastdepCC_FALSE=
3992 fi
3993
3994
3995
3996 if test -n "$ac_tool_prefix"; then
3997   for ac_prog in ar lib "link -lib"
3998   do
3999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_prog_AR+:} false; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   if test -n "$AR"; then
4007   ac_cv_prog_AR="$AR" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014     for ac_exec_ext in '' $ac_executable_extensions; do
4015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021   done
4022 IFS=$as_save_IFS
4023
4024 fi
4025 fi
4026 AR=$ac_cv_prog_AR
4027 if test -n "$AR"; then
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4029 $as_echo "$AR" >&6; }
4030 else
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4033 fi
4034
4035
4036     test -n "$AR" && break
4037   done
4038 fi
4039 if test -z "$AR"; then
4040   ac_ct_AR=$AR
4041   for ac_prog in ar lib "link -lib"
4042 do
4043   # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050   if test -n "$ac_ct_AR"; then
4051   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058     for ac_exec_ext in '' $ac_executable_extensions; do
4059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_ac_ct_AR="$ac_prog"
4061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065   done
4066 IFS=$as_save_IFS
4067
4068 fi
4069 fi
4070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071 if test -n "$ac_ct_AR"; then
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4073 $as_echo "$ac_ct_AR" >&6; }
4074 else
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4077 fi
4078
4079
4080   test -n "$ac_ct_AR" && break
4081 done
4082
4083   if test "x$ac_ct_AR" = x; then
4084     AR="false"
4085   else
4086     case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092     AR=$ac_ct_AR
4093   fi
4094 fi
4095
4096 : ${AR=ar}
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4099 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4100 if ${am_cv_ar_interface+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109    am_cv_ar_interface=ar
4110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h.  */
4112 int some_variable = 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4116       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4117   (eval $am_ar_try) 2>&5
4118   ac_status=$?
4119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120   test $ac_status = 0; }
4121       if test "$ac_status" -eq 0; then
4122         am_cv_ar_interface=ar
4123       else
4124         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4125         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4126   (eval $am_ar_try) 2>&5
4127   ac_status=$?
4128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129   test $ac_status = 0; }
4130         if test "$ac_status" -eq 0; then
4131           am_cv_ar_interface=lib
4132         else
4133           am_cv_ar_interface=unknown
4134         fi
4135       fi
4136       rm -f conftest.lib libconftest.a
4137
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140    ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4148 $as_echo "$am_cv_ar_interface" >&6; }
4149
4150 case $am_cv_ar_interface in
4151 ar)
4152   ;;
4153 lib)
4154   # Microsoft lib, so override with the ar-lib wrapper script.
4155   # FIXME: It is wrong to rewrite AR.
4156   # But if we don't then we get into trouble of one sort or another.
4157   # A longer-term fix would be to have automake use am__AR in this case,
4158   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4159   # similar.
4160   AR="$am_aux_dir/ar-lib $AR"
4161   ;;
4162 unknown)
4163   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4164   ;;
4165 esac
4166
4167
4168 # OpenFst does not throw exceptions, so we do not generate exception handling
4169 # code. However, users are free to re-enable exception handling.
4170 # OpenFst assumes char is unsigned; -fsigned-char is likely unsafe.
4171 CPPFLAGS="$CPPFLAGS -fno-exceptions -funsigned-char"
4172 CXXFLAGS="$CXXFLAGS -std=c++11"
4173
4174 ac_ext=cpp
4175 ac_cpp='$CXXCPP $CPPFLAGS'
4176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4179 if test -z "$CXX"; then
4180   if test -n "$CCC"; then
4181     CXX=$CCC
4182   else
4183     if test -n "$ac_tool_prefix"; then
4184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4185   do
4186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CXX+:} false; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -n "$CXX"; then
4194   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208   done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 CXX=$ac_cv_prog_CXX
4214 if test -n "$CXX"; then
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4216 $as_echo "$CXX" >&6; }
4217 else
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223     test -n "$CXX" && break
4224   done
4225 fi
4226 if test -z "$CXX"; then
4227   ac_ct_CXX=$CXX
4228   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4229 do
4230   # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -n "$ac_ct_CXX"; then
4238   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245     for ac_exec_ext in '' $ac_executable_extensions; do
4246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_ac_ct_CXX="$ac_prog"
4248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252   done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4258 if test -n "$ac_ct_CXX"; then
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4260 $as_echo "$ac_ct_CXX" >&6; }
4261 else
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267   test -n "$ac_ct_CXX" && break
4268 done
4269
4270   if test "x$ac_ct_CXX" = x; then
4271     CXX="g++"
4272   else
4273     case $cross_compiling:$ac_tool_warned in
4274 yes:)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4278 esac
4279     CXX=$ac_ct_CXX
4280   fi
4281 fi
4282
4283   fi
4284 fi
4285 # Provide some information about the compiler.
4286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4287 set X $ac_compile
4288 ac_compiler=$2
4289 for ac_option in --version -v -V -qversion; do
4290   { { ac_try="$ac_compiler $ac_option >&5"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4298   ac_status=$?
4299   if test -s conftest.err; then
4300     sed '10a\
4301 ... rest of stderr output deleted ...
4302          10q' conftest.err >conftest.er1
4303     cat conftest.er1 >&5
4304   fi
4305   rm -f conftest.er1 conftest.err
4306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307   test $ac_status = 0; }
4308 done
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4311 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4312 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321 #ifndef __GNUC__
4322        choke me
4323 #endif
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4330   ac_compiler_gnu=yes
4331 else
4332   ac_compiler_gnu=no
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4336
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4339 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4340 if test $ac_compiler_gnu = yes; then
4341   GXX=yes
4342 else
4343   GXX=
4344 fi
4345 ac_test_CXXFLAGS=${CXXFLAGS+set}
4346 ac_save_CXXFLAGS=$CXXFLAGS
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4348 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4349 if ${ac_cv_prog_cxx_g+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4353    ac_cxx_werror_flag=yes
4354    ac_cv_prog_cxx_g=no
4355    CXXFLAGS="-g"
4356    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 if ac_fn_cxx_try_compile "$LINENO"; then :
4368   ac_cv_prog_cxx_g=yes
4369 else
4370   CXXFLAGS=""
4371       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_cxx_try_compile "$LINENO"; then :
4383
4384 else
4385   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386          CXXFLAGS="-g"
4387          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_cxx_try_compile "$LINENO"; then :
4399   ac_cv_prog_cxx_g=yes
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4409 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4410 if test "$ac_test_CXXFLAGS" = set; then
4411   CXXFLAGS=$ac_save_CXXFLAGS
4412 elif test $ac_cv_prog_cxx_g = yes; then
4413   if test "$GXX" = yes; then
4414     CXXFLAGS="-g -O2"
4415   else
4416     CXXFLAGS="-g"
4417   fi
4418 else
4419   if test "$GXX" = yes; then
4420     CXXFLAGS="-O2"
4421   else
4422     CXXFLAGS=
4423   fi
4424 fi
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431 depcc="$CXX"  am_compiler_list=
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4434 $as_echo_n "checking dependency style of $depcc... " >&6; }
4435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439   # We make a subdir and do the tests there.  Otherwise we can end up
4440   # making bogus files that we don't know about and never remove.  For
4441   # instance it was reported that on HP-UX the gcc test will end up
4442   # making a dummy file named 'D' -- because '-MD' means "put the output
4443   # in D".
4444   rm -rf conftest.dir
4445   mkdir conftest.dir
4446   # Copy depcomp to subdir because otherwise we won't find it if we're
4447   # using a relative directory.
4448   cp "$am_depcomp" conftest.dir
4449   cd conftest.dir
4450   # We will build objects and dependencies in a subdirectory because
4451   # it helps to detect inapplicable dependency modes.  For instance
4452   # both Tru64's cc and ICC support -MD to output dependencies as a
4453   # side effect of compilation, but ICC will put the dependencies in
4454   # the current directory while Tru64 will put them in the object
4455   # directory.
4456   mkdir sub
4457
4458   am_cv_CXX_dependencies_compiler_type=none
4459   if test "$am_compiler_list" = ""; then
4460      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4461   fi
4462   am__universal=false
4463   case " $depcc " in #(
4464      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465      esac
4466
4467   for depmode in $am_compiler_list; do
4468     # Setup a source with many dependencies, because some compilers
4469     # like to wrap large dependency lists on column 80 (with \), and
4470     # we should not choose a depcomp mode which is confused by this.
4471     #
4472     # We need to recreate these files for each test, as the compiler may
4473     # overwrite some of them when testing with obscure command lines.
4474     # This happens at least with the AIX C compiler.
4475     : > sub/conftest.c
4476     for i in 1 2 3 4 5 6; do
4477       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4479       # Solaris 10 /bin/sh.
4480       echo '/* dummy */' > sub/conftst$i.h
4481     done
4482     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4483
4484     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4485     # mode.  It turns out that the SunPro C++ compiler does not properly
4486     # handle '-M -o', and we need to detect this.  Also, some Intel
4487     # versions had trouble with output in subdirs.
4488     am__obj=sub/conftest.${OBJEXT-o}
4489     am__minus_obj="-o $am__obj"
4490     case $depmode in
4491     gcc)
4492       # This depmode causes a compiler race in universal mode.
4493       test "$am__universal" = false || continue
4494       ;;
4495     nosideeffect)
4496       # After this tag, mechanisms are not by side-effect, so they'll
4497       # only be used when explicitly requested.
4498       if test "x$enable_dependency_tracking" = xyes; then
4499         continue
4500       else
4501         break
4502       fi
4503       ;;
4504     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4505       # This compiler won't grok '-c -o', but also, the minuso test has
4506       # not run yet.  These depmodes are late enough in the game, and
4507       # so weak that their functioning should not be impacted.
4508       am__obj=conftest.${OBJEXT-o}
4509       am__minus_obj=
4510       ;;
4511     none) break ;;
4512     esac
4513     if depmode=$depmode \
4514        source=sub/conftest.c object=$am__obj \
4515        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517          >/dev/null 2>conftest.err &&
4518        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522       # icc doesn't choke on unknown options, it will just issue warnings
4523       # or remarks (even with -Werror).  So we grep stderr for any message
4524       # that says an option was ignored or not supported.
4525       # When given -MP, icc 7.0 and 7.1 complain thusly:
4526       #   icc: Command line warning: ignoring option '-M'; no argument required
4527       # The diagnosis changed in icc 8.0:
4528       #   icc: Command line remark: option '-MP' not supported
4529       if (grep 'ignoring option' conftest.err ||
4530           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531         am_cv_CXX_dependencies_compiler_type=$depmode
4532         break
4533       fi
4534     fi
4535   done
4536
4537   cd ..
4538   rm -rf conftest.dir
4539 else
4540   am_cv_CXX_dependencies_compiler_type=none
4541 fi
4542
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4547
4548  if
4549   test "x$enable_dependency_tracking" != xno \
4550   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4551   am__fastdepCXX_TRUE=
4552   am__fastdepCXX_FALSE='#'
4553 else
4554   am__fastdepCXX_TRUE='#'
4555   am__fastdepCXX_FALSE=
4556 fi
4557
4558
4559 # Check whether --enable-static was given.
4560 if test "${enable_static+set}" = set; then :
4561   enableval=$enable_static; p=${PACKAGE-default}
4562     case $enableval in
4563     yes) enable_static=yes ;;
4564     no) enable_static=no ;;
4565     *)
4566      enable_static=no
4567       # Look at the argument we got.  We use all the common list separators.
4568       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4569       for pkg in $enableval; do
4570         IFS=$lt_save_ifs
4571         if test "X$pkg" = "X$p"; then
4572           enable_static=yes
4573         fi
4574       done
4575       IFS=$lt_save_ifs
4576       ;;
4577     esac
4578 else
4579   enable_static=no
4580 fi
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 case `pwd` in
4591   *\ * | *\     *)
4592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4593 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4594 esac
4595
4596
4597
4598 macro_version='2.4.6'
4599 macro_revision='2.4.6'
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 ltmain=$ac_aux_dir/ltmain.sh
4614
4615 # Make sure we can run config.sub.
4616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4617   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4620 $as_echo_n "checking build system type... " >&6; }
4621 if ${ac_cv_build+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   ac_build_alias=$build_alias
4625 test "x$ac_build_alias" = x &&
4626   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4627 test "x$ac_build_alias" = x &&
4628   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4630   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4631
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4634 $as_echo "$ac_cv_build" >&6; }
4635 case $ac_cv_build in
4636 *-*-*) ;;
4637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4638 esac
4639 build=$ac_cv_build
4640 ac_save_IFS=$IFS; IFS='-'
4641 set x $ac_cv_build
4642 shift
4643 build_cpu=$1
4644 build_vendor=$2
4645 shift; shift
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4648 build_os=$*
4649 IFS=$ac_save_IFS
4650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4654 $as_echo_n "checking host system type... " >&6; }
4655 if ${ac_cv_host+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if test "x$host_alias" = x; then
4659   ac_cv_host=$ac_cv_build
4660 else
4661   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4662     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4663 fi
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4667 $as_echo "$ac_cv_host" >&6; }
4668 case $ac_cv_host in
4669 *-*-*) ;;
4670 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4671 esac
4672 host=$ac_cv_host
4673 ac_save_IFS=$IFS; IFS='-'
4674 set x $ac_cv_host
4675 shift
4676 host_cpu=$1
4677 host_vendor=$2
4678 shift; shift
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4681 host_os=$*
4682 IFS=$ac_save_IFS
4683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4684
4685
4686 # Backslashify metacharacters that are still active within
4687 # double-quoted strings.
4688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4689
4690 # Same as above, but do not quote variable references.
4691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4692
4693 # Sed substitution to delay expansion of an escaped shell variable in a
4694 # double_quote_subst'ed string.
4695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4696
4697 # Sed substitution to delay expansion of an escaped single quote.
4698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4699
4700 # Sed substitution to avoid accidental globbing in evaled expressions
4701 no_glob_subst='s/\*/\\\*/g'
4702
4703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4708 $as_echo_n "checking how to print strings... " >&6; }
4709 # Test print first, because it will be a builtin if present.
4710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4711    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4712   ECHO='print -r --'
4713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4714   ECHO='printf %s\n'
4715 else
4716   # Use this function as a fallback that always works.
4717   func_fallback_echo ()
4718   {
4719     eval 'cat <<_LTECHO_EOF
4720 $1
4721 _LTECHO_EOF'
4722   }
4723   ECHO='func_fallback_echo'
4724 fi
4725
4726 # func_echo_all arg...
4727 # Invoke $ECHO with all args, space-separated.
4728 func_echo_all ()
4729 {
4730     $ECHO ""
4731 }
4732
4733 case $ECHO in
4734   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4735 $as_echo "printf" >&6; } ;;
4736   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4737 $as_echo "print -r" >&6; } ;;
4738   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4739 $as_echo "cat" >&6; } ;;
4740 esac
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4757 if ${ac_cv_path_SED+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4761      for ac_i in 1 2 3 4 5 6 7; do
4762        ac_script="$ac_script$as_nl$ac_script"
4763      done
4764      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4765      { ac_script=; unset ac_script;}
4766      if test -z "$SED"; then
4767   ac_path_SED_found=false
4768   # Loop through the user's path and test for each of PROGNAME-LIST
4769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     for ac_prog in sed gsed; do
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4777       as_fn_executable_p "$ac_path_SED" || continue
4778 # Check for GNU ac_path_SED and select it if it is found.
4779   # Check for GNU $ac_path_SED
4780 case `"$ac_path_SED" --version 2>&1` in
4781 *GNU*)
4782   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4783 *)
4784   ac_count=0
4785   $as_echo_n 0123456789 >"conftest.in"
4786   while :
4787   do
4788     cat "conftest.in" "conftest.in" >"conftest.tmp"
4789     mv "conftest.tmp" "conftest.in"
4790     cp "conftest.in" "conftest.nl"
4791     $as_echo '' >> "conftest.nl"
4792     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794     as_fn_arith $ac_count + 1 && ac_count=$as_val
4795     if test $ac_count -gt ${ac_path_SED_max-0}; then
4796       # Best one so far, save it but keep looking for a better one
4797       ac_cv_path_SED="$ac_path_SED"
4798       ac_path_SED_max=$ac_count
4799     fi
4800     # 10*(2^10) chars as input seems more than enough
4801     test $ac_count -gt 10 && break
4802   done
4803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804 esac
4805
4806       $ac_path_SED_found && break 3
4807     done
4808   done
4809   done
4810 IFS=$as_save_IFS
4811   if test -z "$ac_cv_path_SED"; then
4812     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4813   fi
4814 else
4815   ac_cv_path_SED=$SED
4816 fi
4817
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4820 $as_echo "$ac_cv_path_SED" >&6; }
4821  SED="$ac_cv_path_SED"
4822   rm -f conftest.sed
4823
4824 test -z "$SED" && SED=sed
4825 Xsed="$SED -e 1s/^X//"
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4839 if ${ac_cv_path_GREP+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   if test -z "$GREP"; then
4843   ac_path_GREP_found=false
4844   # Loop through the user's path and test for each of PROGNAME-LIST
4845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_prog in grep ggrep; do
4851     for ac_exec_ext in '' $ac_executable_extensions; do
4852       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4853       as_fn_executable_p "$ac_path_GREP" || continue
4854 # Check for GNU ac_path_GREP and select it if it is found.
4855   # Check for GNU $ac_path_GREP
4856 case `"$ac_path_GREP" --version 2>&1` in
4857 *GNU*)
4858   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4859 *)
4860   ac_count=0
4861   $as_echo_n 0123456789 >"conftest.in"
4862   while :
4863   do
4864     cat "conftest.in" "conftest.in" >"conftest.tmp"
4865     mv "conftest.tmp" "conftest.in"
4866     cp "conftest.in" "conftest.nl"
4867     $as_echo 'GREP' >> "conftest.nl"
4868     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870     as_fn_arith $ac_count + 1 && ac_count=$as_val
4871     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4872       # Best one so far, save it but keep looking for a better one
4873       ac_cv_path_GREP="$ac_path_GREP"
4874       ac_path_GREP_max=$ac_count
4875     fi
4876     # 10*(2^10) chars as input seems more than enough
4877     test $ac_count -gt 10 && break
4878   done
4879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 esac
4881
4882       $ac_path_GREP_found && break 3
4883     done
4884   done
4885   done
4886 IFS=$as_save_IFS
4887   if test -z "$ac_cv_path_GREP"; then
4888     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889   fi
4890 else
4891   ac_cv_path_GREP=$GREP
4892 fi
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4896 $as_echo "$ac_cv_path_GREP" >&6; }
4897  GREP="$ac_cv_path_GREP"
4898
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4901 $as_echo_n "checking for egrep... " >&6; }
4902 if ${ac_cv_path_EGREP+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4906    then ac_cv_path_EGREP="$GREP -E"
4907    else
4908      if test -z "$EGREP"; then
4909   ac_path_EGREP_found=false
4910   # Loop through the user's path and test for each of PROGNAME-LIST
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_prog in egrep; do
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4919       as_fn_executable_p "$ac_path_EGREP" || continue
4920 # Check for GNU ac_path_EGREP and select it if it is found.
4921   # Check for GNU $ac_path_EGREP
4922 case `"$ac_path_EGREP" --version 2>&1` in
4923 *GNU*)
4924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4925 *)
4926   ac_count=0
4927   $as_echo_n 0123456789 >"conftest.in"
4928   while :
4929   do
4930     cat "conftest.in" "conftest.in" >"conftest.tmp"
4931     mv "conftest.tmp" "conftest.in"
4932     cp "conftest.in" "conftest.nl"
4933     $as_echo 'EGREP' >> "conftest.nl"
4934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936     as_fn_arith $ac_count + 1 && ac_count=$as_val
4937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4938       # Best one so far, save it but keep looking for a better one
4939       ac_cv_path_EGREP="$ac_path_EGREP"
4940       ac_path_EGREP_max=$ac_count
4941     fi
4942     # 10*(2^10) chars as input seems more than enough
4943     test $ac_count -gt 10 && break
4944   done
4945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946 esac
4947
4948       $ac_path_EGREP_found && break 3
4949     done
4950   done
4951   done
4952 IFS=$as_save_IFS
4953   if test -z "$ac_cv_path_EGREP"; then
4954     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4955   fi
4956 else
4957   ac_cv_path_EGREP=$EGREP
4958 fi
4959
4960    fi
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4963 $as_echo "$ac_cv_path_EGREP" >&6; }
4964  EGREP="$ac_cv_path_EGREP"
4965
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4968 $as_echo_n "checking for fgrep... " >&6; }
4969 if ${ac_cv_path_FGREP+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4973    then ac_cv_path_FGREP="$GREP -F"
4974    else
4975      if test -z "$FGREP"; then
4976   ac_path_FGREP_found=false
4977   # Loop through the user's path and test for each of PROGNAME-LIST
4978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983     for ac_prog in fgrep; do
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4986       as_fn_executable_p "$ac_path_FGREP" || continue
4987 # Check for GNU ac_path_FGREP and select it if it is found.
4988   # Check for GNU $ac_path_FGREP
4989 case `"$ac_path_FGREP" --version 2>&1` in
4990 *GNU*)
4991   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4992 *)
4993   ac_count=0
4994   $as_echo_n 0123456789 >"conftest.in"
4995   while :
4996   do
4997     cat "conftest.in" "conftest.in" >"conftest.tmp"
4998     mv "conftest.tmp" "conftest.in"
4999     cp "conftest.in" "conftest.nl"
5000     $as_echo 'FGREP' >> "conftest.nl"
5001     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003     as_fn_arith $ac_count + 1 && ac_count=$as_val
5004     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5005       # Best one so far, save it but keep looking for a better one
5006       ac_cv_path_FGREP="$ac_path_FGREP"
5007       ac_path_FGREP_max=$ac_count
5008     fi
5009     # 10*(2^10) chars as input seems more than enough
5010     test $ac_count -gt 10 && break
5011   done
5012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5013 esac
5014
5015       $ac_path_FGREP_found && break 3
5016     done
5017   done
5018   done
5019 IFS=$as_save_IFS
5020   if test -z "$ac_cv_path_FGREP"; then
5021     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022   fi
5023 else
5024   ac_cv_path_FGREP=$FGREP
5025 fi
5026
5027    fi
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5030 $as_echo "$ac_cv_path_FGREP" >&6; }
5031  FGREP="$ac_cv_path_FGREP"
5032
5033
5034 test -z "$GREP" && GREP=grep
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 # Check whether --with-gnu-ld was given.
5055 if test "${with_gnu_ld+set}" = set; then :
5056   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5057 else
5058   with_gnu_ld=no
5059 fi
5060
5061 ac_prog=ld
5062 if test yes = "$GCC"; then
5063   # Check if gcc -print-prog-name=ld gives a path.
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5065 $as_echo_n "checking for ld used by $CC... " >&6; }
5066   case $host in
5067   *-*-mingw*)
5068     # gcc leaves a trailing carriage return, which upsets mingw
5069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5070   *)
5071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5072   esac
5073   case $ac_prog in
5074     # Accept absolute paths.
5075     [\\/]* | ?:[\\/]*)
5076       re_direlt='/[^/][^/]*/\.\./'
5077       # Canonicalize the pathname of ld
5078       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5079       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5080         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5081       done
5082       test -z "$LD" && LD=$ac_prog
5083       ;;
5084   "")
5085     # If it fails, then pretend we aren't using GCC.
5086     ac_prog=ld
5087     ;;
5088   *)
5089     # If it is relative, then search for the first ld in PATH.
5090     with_gnu_ld=unknown
5091     ;;
5092   esac
5093 elif test yes = "$with_gnu_ld"; then
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5095 $as_echo_n "checking for GNU ld... " >&6; }
5096 else
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5098 $as_echo_n "checking for non-GNU ld... " >&6; }
5099 fi
5100 if ${lt_cv_path_LD+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   if test -z "$LD"; then
5104   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5105   for ac_dir in $PATH; do
5106     IFS=$lt_save_ifs
5107     test -z "$ac_dir" && ac_dir=.
5108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5109       lt_cv_path_LD=$ac_dir/$ac_prog
5110       # Check to see if the program is GNU ld.  I'd rather use --version,
5111       # but apparently some variants of GNU ld only accept -v.
5112       # Break only if it was the GNU/non-GNU ld that we prefer.
5113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5114       *GNU* | *'with BFD'*)
5115         test no != "$with_gnu_ld" && break
5116         ;;
5117       *)
5118         test yes != "$with_gnu_ld" && break
5119         ;;
5120       esac
5121     fi
5122   done
5123   IFS=$lt_save_ifs
5124 else
5125   lt_cv_path_LD=$LD # Let the user override the test with a path.
5126 fi
5127 fi
5128
5129 LD=$lt_cv_path_LD
5130 if test -n "$LD"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5132 $as_echo "$LD" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5140 if ${lt_cv_prog_gnu_ld+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5144 case `$LD -v 2>&1 </dev/null` in
5145 *GNU* | *'with BFD'*)
5146   lt_cv_prog_gnu_ld=yes
5147   ;;
5148 *)
5149   lt_cv_prog_gnu_ld=no
5150   ;;
5151 esac
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5155 with_gnu_ld=$lt_cv_prog_gnu_ld
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5167 if ${lt_cv_path_NM+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test -n "$NM"; then
5171   # Let the user override the test.
5172   lt_cv_path_NM=$NM
5173 else
5174   lt_nm_to_check=${ac_tool_prefix}nm
5175   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5176     lt_nm_to_check="$lt_nm_to_check nm"
5177   fi
5178   for lt_tmp_nm in $lt_nm_to_check; do
5179     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5180     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5181       IFS=$lt_save_ifs
5182       test -z "$ac_dir" && ac_dir=.
5183       tmp_nm=$ac_dir/$lt_tmp_nm
5184       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5185         # Check to see if the nm accepts a BSD-compat flag.
5186         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5187         #   nm: unknown option "B" ignored
5188         # Tru64's nm complains that /dev/null is an invalid object file
5189         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5190         case $build_os in
5191         mingw*) lt_bad_file=conftest.nm/nofile ;;
5192         *) lt_bad_file=/dev/null ;;
5193         esac
5194         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5195         *$lt_bad_file* | *'Invalid file or object type'*)
5196           lt_cv_path_NM="$tmp_nm -B"
5197           break 2
5198           ;;
5199         *)
5200           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5201           */dev/null*)
5202             lt_cv_path_NM="$tmp_nm -p"
5203             break 2
5204             ;;
5205           *)
5206             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5207             continue # so that we can try to find one that supports BSD flags
5208             ;;
5209           esac
5210           ;;
5211         esac
5212       fi
5213     done
5214     IFS=$lt_save_ifs
5215   done
5216   : ${lt_cv_path_NM=no}
5217 fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5220 $as_echo "$lt_cv_path_NM" >&6; }
5221 if test no != "$lt_cv_path_NM"; then
5222   NM=$lt_cv_path_NM
5223 else
5224   # Didn't find any BSD compatible name lister, look for dumpbin.
5225   if test -n "$DUMPBIN"; then :
5226     # Let the user override the test.
5227   else
5228     if test -n "$ac_tool_prefix"; then
5229   for ac_prog in dumpbin "link -dump"
5230   do
5231     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_DUMPBIN+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   if test -n "$DUMPBIN"; then
5239   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246     for ac_exec_ext in '' $ac_executable_extensions; do
5247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250     break 2
5251   fi
5252 done
5253   done
5254 IFS=$as_save_IFS
5255
5256 fi
5257 fi
5258 DUMPBIN=$ac_cv_prog_DUMPBIN
5259 if test -n "$DUMPBIN"; then
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5261 $as_echo "$DUMPBIN" >&6; }
5262 else
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267
5268     test -n "$DUMPBIN" && break
5269   done
5270 fi
5271 if test -z "$DUMPBIN"; then
5272   ac_ct_DUMPBIN=$DUMPBIN
5273   for ac_prog in dumpbin "link -dump"
5274 do
5275   # Extract the first word of "$ac_prog", so it can be a program name with args.
5276 set dummy $ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$ac_ct_DUMPBIN"; then
5283   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297   done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5303 if test -n "$ac_ct_DUMPBIN"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5305 $as_echo "$ac_ct_DUMPBIN" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312   test -n "$ac_ct_DUMPBIN" && break
5313 done
5314
5315   if test "x$ac_ct_DUMPBIN" = x; then
5316     DUMPBIN=":"
5317   else
5318     case $cross_compiling:$ac_tool_warned in
5319 yes:)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5323 esac
5324     DUMPBIN=$ac_ct_DUMPBIN
5325   fi
5326 fi
5327
5328     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5329     *COFF*)
5330       DUMPBIN="$DUMPBIN -symbols -headers"
5331       ;;
5332     *)
5333       DUMPBIN=:
5334       ;;
5335     esac
5336   fi
5337
5338   if test : != "$DUMPBIN"; then
5339     NM=$DUMPBIN
5340   fi
5341 fi
5342 test -z "$NM" && NM=nm
5343
5344
5345
5346
5347
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5350 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5351 if ${lt_cv_nm_interface+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   lt_cv_nm_interface="BSD nm"
5355   echo "int some_variable = 0;" > conftest.$ac_ext
5356   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5357   (eval "$ac_compile" 2>conftest.err)
5358   cat conftest.err >&5
5359   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5360   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5361   cat conftest.err >&5
5362   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5363   cat conftest.out >&5
5364   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5365     lt_cv_nm_interface="MS dumpbin"
5366   fi
5367   rm -f conftest*
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5370 $as_echo "$lt_cv_nm_interface" >&6; }
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5373 $as_echo_n "checking whether ln -s works... " >&6; }
5374 LN_S=$as_ln_s
5375 if test "$LN_S" = "ln -s"; then
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5377 $as_echo "yes" >&6; }
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5380 $as_echo "no, using $LN_S" >&6; }
5381 fi
5382
5383 # find the maximum length of command line arguments
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5385 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5386 if ${lt_cv_sys_max_cmd_len+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389     i=0
5390   teststring=ABCD
5391
5392   case $build_os in
5393   msdosdjgpp*)
5394     # On DJGPP, this test can blow up pretty badly due to problems in libc
5395     # (any single argument exceeding 2000 bytes causes a buffer overrun
5396     # during glob expansion).  Even if it were fixed, the result of this
5397     # check would be larger than it should be.
5398     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5399     ;;
5400
5401   gnu*)
5402     # Under GNU Hurd, this test is not required because there is
5403     # no limit to the length of command line arguments.
5404     # Libtool will interpret -1 as no limit whatsoever
5405     lt_cv_sys_max_cmd_len=-1;
5406     ;;
5407
5408   cygwin* | mingw* | cegcc*)
5409     # On Win9x/ME, this test blows up -- it succeeds, but takes
5410     # about 5 minutes as the teststring grows exponentially.
5411     # Worse, since 9x/ME are not pre-emptively multitasking,
5412     # you end up with a "frozen" computer, even though with patience
5413     # the test eventually succeeds (with a max line length of 256k).
5414     # Instead, let's just punt: use the minimum linelength reported by
5415     # all of the supported platforms: 8192 (on NT/2K/XP).
5416     lt_cv_sys_max_cmd_len=8192;
5417     ;;
5418
5419   mint*)
5420     # On MiNT this can take a long time and run out of memory.
5421     lt_cv_sys_max_cmd_len=8192;
5422     ;;
5423
5424   amigaos*)
5425     # On AmigaOS with pdksh, this test takes hours, literally.
5426     # So we just punt and use a minimum line length of 8192.
5427     lt_cv_sys_max_cmd_len=8192;
5428     ;;
5429
5430   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5431     # This has been around since 386BSD, at least.  Likely further.
5432     if test -x /sbin/sysctl; then
5433       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5434     elif test -x /usr/sbin/sysctl; then
5435       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5436     else
5437       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5438     fi
5439     # And add a safety zone
5440     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5441     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5442     ;;
5443
5444   interix*)
5445     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5446     lt_cv_sys_max_cmd_len=196608
5447     ;;
5448
5449   os2*)
5450     # The test takes a long time on OS/2.
5451     lt_cv_sys_max_cmd_len=8192
5452     ;;
5453
5454   osf*)
5455     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5456     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5457     # nice to cause kernel panics so lets avoid the loop below.
5458     # First set a reasonable default.
5459     lt_cv_sys_max_cmd_len=16384
5460     #
5461     if test -x /sbin/sysconfig; then
5462       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5463         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5464       esac
5465     fi
5466     ;;
5467   sco3.2v5*)
5468     lt_cv_sys_max_cmd_len=102400
5469     ;;
5470   sysv5* | sco5v6* | sysv4.2uw2*)
5471     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5472     if test -n "$kargmax"; then
5473       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5474     else
5475       lt_cv_sys_max_cmd_len=32768
5476     fi
5477     ;;
5478   *)
5479     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5480     if test -n "$lt_cv_sys_max_cmd_len" && \
5481        test undefined != "$lt_cv_sys_max_cmd_len"; then
5482       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484     else
5485       # Make teststring a little bigger before we do anything with it.
5486       # a 1K string should be a reasonable start.
5487       for i in 1 2 3 4 5 6 7 8; do
5488         teststring=$teststring$teststring
5489       done
5490       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5491       # If test is not a shell built-in, we'll probably end up computing a
5492       # maximum length that is only half of the actual maximum length, but
5493       # we can't tell.
5494       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5495                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5496               test 17 != "$i" # 1/2 MB should be enough
5497       do
5498         i=`expr $i + 1`
5499         teststring=$teststring$teststring
5500       done
5501       # Only check the string length outside the loop.
5502       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5503       teststring=
5504       # Add a significant safety factor because C++ compilers can tack on
5505       # massive amounts of additional arguments before passing them to the
5506       # linker.  It appears as though 1/2 is a usable value.
5507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5508     fi
5509     ;;
5510   esac
5511
5512 fi
5513
5514 if test -n "$lt_cv_sys_max_cmd_len"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5516 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5519 $as_echo "none" >&6; }
5520 fi
5521 max_cmd_len=$lt_cv_sys_max_cmd_len
5522
5523
5524
5525
5526
5527
5528 : ${CP="cp -f"}
5529 : ${MV="mv -f"}
5530 : ${RM="rm -f"}
5531
5532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5533   lt_unset=unset
5534 else
5535   lt_unset=false
5536 fi
5537
5538
5539
5540
5541
5542 # test EBCDIC or ASCII
5543 case `echo X|tr X '\101'` in
5544  A) # ASCII based system
5545     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5546   lt_SP2NL='tr \040 \012'
5547   lt_NL2SP='tr \015\012 \040\040'
5548   ;;
5549  *) # EBCDIC based system
5550   lt_SP2NL='tr \100 \n'
5551   lt_NL2SP='tr \r\n \100\100'
5552   ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5564 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5565 if ${lt_cv_to_host_file_cmd+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $host in
5569   *-*-mingw* )
5570     case $build in
5571       *-*-mingw* ) # actually msys
5572         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5573         ;;
5574       *-*-cygwin* )
5575         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5576         ;;
5577       * ) # otherwise, assume *nix
5578         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5579         ;;
5580     esac
5581     ;;
5582   *-*-cygwin* )
5583     case $build in
5584       *-*-mingw* ) # actually msys
5585         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5586         ;;
5587       *-*-cygwin* )
5588         lt_cv_to_host_file_cmd=func_convert_file_noop
5589         ;;
5590       * ) # otherwise, assume *nix
5591         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5592         ;;
5593     esac
5594     ;;
5595   * ) # unhandled hosts (and "normal" native builds)
5596     lt_cv_to_host_file_cmd=func_convert_file_noop
5597     ;;
5598 esac
5599
5600 fi
5601
5602 to_host_file_cmd=$lt_cv_to_host_file_cmd
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5604 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5605
5606
5607
5608
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5611 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5612 if ${lt_cv_to_tool_file_cmd+:} false; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   #assume ordinary cross tools, or native build.
5616 lt_cv_to_tool_file_cmd=func_convert_file_noop
5617 case $host in
5618   *-*-mingw* )
5619     case $build in
5620       *-*-mingw* ) # actually msys
5621         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5622         ;;
5623     esac
5624     ;;
5625 esac
5626
5627 fi
5628
5629 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5631 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5632
5633
5634
5635
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5639 if ${lt_cv_ld_reload_flag+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   lt_cv_ld_reload_flag='-r'
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5646 reload_flag=$lt_cv_ld_reload_flag
5647 case $reload_flag in
5648 "" | " "*) ;;
5649 *) reload_flag=" $reload_flag" ;;
5650 esac
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652 case $host_os in
5653   cygwin* | mingw* | pw32* | cegcc*)
5654     if test yes != "$GCC"; then
5655       reload_cmds=false
5656     fi
5657     ;;
5658   darwin*)
5659     if test yes = "$GCC"; then
5660       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5661     else
5662       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5663     fi
5664     ;;
5665 esac
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 if test -n "$ac_tool_prefix"; then
5676   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_OBJDUMP+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$OBJDUMP"; then
5684   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 OBJDUMP=$ac_cv_prog_OBJDUMP
5704 if test -n "$OBJDUMP"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5706 $as_echo "$OBJDUMP" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 fi
5714 if test -z "$ac_cv_prog_OBJDUMP"; then
5715   ac_ct_OBJDUMP=$OBJDUMP
5716   # Extract the first word of "objdump", so it can be a program name with args.
5717 set dummy objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$ac_ct_OBJDUMP"; then
5724   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5744 if test -n "$ac_ct_OBJDUMP"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5746 $as_echo "$ac_ct_OBJDUMP" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752   if test "x$ac_ct_OBJDUMP" = x; then
5753     OBJDUMP="false"
5754   else
5755     case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761     OBJDUMP=$ac_ct_OBJDUMP
5762   fi
5763 else
5764   OBJDUMP="$ac_cv_prog_OBJDUMP"
5765 fi
5766
5767 test -z "$OBJDUMP" && OBJDUMP=objdump
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5779 if ${lt_cv_deplibs_check_method+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   lt_cv_file_magic_cmd='$MAGIC_CMD'
5783 lt_cv_file_magic_test_file=
5784 lt_cv_deplibs_check_method='unknown'
5785 # Need to set the preceding variable on all platforms that support
5786 # interlibrary dependencies.
5787 # 'none' -- dependencies not supported.
5788 # 'unknown' -- same as none, but documents that we really don't know.
5789 # 'pass_all' -- all dependencies passed with no checks.
5790 # 'test_compile' -- check by making test program.
5791 # 'file_magic [[regex]]' -- check by looking for files in library path
5792 # that responds to the $file_magic_cmd with a given extended regex.
5793 # If you have 'file' or equivalent on your system and you're not sure
5794 # whether 'pass_all' will *always* work, you probably want this one.
5795
5796 case $host_os in
5797 aix[4-9]*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800
5801 beos*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 bsdi[45]*)
5806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5807   lt_cv_file_magic_cmd='/usr/bin/file -L'
5808   lt_cv_file_magic_test_file=/shlib/libc.so
5809   ;;
5810
5811 cygwin*)
5812   # func_win32_libid is a shell function defined in ltmain.sh
5813   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5814   lt_cv_file_magic_cmd='func_win32_libid'
5815   ;;
5816
5817 mingw* | pw32*)
5818   # Base MSYS/MinGW do not provide the 'file' command needed by
5819   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5820   # unless we find 'file', for example because we are cross-compiling.
5821   if ( file / ) >/dev/null 2>&1; then
5822     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5823     lt_cv_file_magic_cmd='func_win32_libid'
5824   else
5825     # Keep this pattern in sync with the one in func_win32_libid.
5826     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5827     lt_cv_file_magic_cmd='$OBJDUMP -f'
5828   fi
5829   ;;
5830
5831 cegcc*)
5832   # use the weaker test based on 'objdump'. See mingw*.
5833   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5834   lt_cv_file_magic_cmd='$OBJDUMP -f'
5835   ;;
5836
5837 darwin* | rhapsody*)
5838   lt_cv_deplibs_check_method=pass_all
5839   ;;
5840
5841 freebsd* | dragonfly*)
5842   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5843     case $host_cpu in
5844     i*86 )
5845       # Not sure whether the presence of OpenBSD here was a mistake.
5846       # Let's accept both of them until this is cleared up.
5847       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5848       lt_cv_file_magic_cmd=/usr/bin/file
5849       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5850       ;;
5851     esac
5852   else
5853     lt_cv_deplibs_check_method=pass_all
5854   fi
5855   ;;
5856
5857 haiku*)
5858   lt_cv_deplibs_check_method=pass_all
5859   ;;
5860
5861 hpux10.20* | hpux11*)
5862   lt_cv_file_magic_cmd=/usr/bin/file
5863   case $host_cpu in
5864   ia64*)
5865     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5866     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5867     ;;
5868   hppa*64*)
5869     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]'
5870     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5871     ;;
5872   *)
5873     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5874     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5875     ;;
5876   esac
5877   ;;
5878
5879 interix[3-9]*)
5880   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5881   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5882   ;;
5883
5884 irix5* | irix6* | nonstopux*)
5885   case $LD in
5886   *-32|*"-32 ") libmagic=32-bit;;
5887   *-n32|*"-n32 ") libmagic=N32;;
5888   *-64|*"-64 ") libmagic=64-bit;;
5889   *) libmagic=never-match;;
5890   esac
5891   lt_cv_deplibs_check_method=pass_all
5892   ;;
5893
5894 # This must be glibc/ELF.
5895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 netbsd* | netbsdelf*-gnu)
5900   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5901     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5902   else
5903     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5904   fi
5905   ;;
5906
5907 newos6*)
5908   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5909   lt_cv_file_magic_cmd=/usr/bin/file
5910   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5911   ;;
5912
5913 *nto* | *qnx*)
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916
5917 openbsd* | bitrig*)
5918   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5920   else
5921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5922   fi
5923   ;;
5924
5925 osf3* | osf4* | osf5*)
5926   lt_cv_deplibs_check_method=pass_all
5927   ;;
5928
5929 rdos*)
5930   lt_cv_deplibs_check_method=pass_all
5931   ;;
5932
5933 solaris*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5938   lt_cv_deplibs_check_method=pass_all
5939   ;;
5940
5941 sysv4 | sysv4.3*)
5942   case $host_vendor in
5943   motorola)
5944     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]'
5945     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5946     ;;
5947   ncr)
5948     lt_cv_deplibs_check_method=pass_all
5949     ;;
5950   sequent)
5951     lt_cv_file_magic_cmd='/bin/file'
5952     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5953     ;;
5954   sni)
5955     lt_cv_file_magic_cmd='/bin/file'
5956     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5957     lt_cv_file_magic_test_file=/lib/libc.so
5958     ;;
5959   siemens)
5960     lt_cv_deplibs_check_method=pass_all
5961     ;;
5962   pc)
5963     lt_cv_deplibs_check_method=pass_all
5964     ;;
5965   esac
5966   ;;
5967
5968 tpf*)
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971 os2*)
5972   lt_cv_deplibs_check_method=pass_all
5973   ;;
5974 esac
5975
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5978 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5979
5980 file_magic_glob=
5981 want_nocaseglob=no
5982 if test "$build" = "$host"; then
5983   case $host_os in
5984   mingw* | pw32*)
5985     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5986       want_nocaseglob=yes
5987     else
5988       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5989     fi
5990     ;;
5991   esac
5992 fi
5993
5994 file_magic_cmd=$lt_cv_file_magic_cmd
5995 deplibs_check_method=$lt_cv_deplibs_check_method
5996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 if test -n "$ac_tool_prefix"; then
6020   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6021 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_DLLTOOL+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   if test -n "$DLLTOOL"; then
6028   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035     for ac_exec_ext in '' $ac_executable_extensions; do
6036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042   done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 DLLTOOL=$ac_cv_prog_DLLTOOL
6048 if test -n "$DLLTOOL"; then
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6050 $as_echo "$DLLTOOL" >&6; }
6051 else
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056
6057 fi
6058 if test -z "$ac_cv_prog_DLLTOOL"; then
6059   ac_ct_DLLTOOL=$DLLTOOL
6060   # Extract the first word of "dlltool", so it can be a program name with args.
6061 set dummy dlltool; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   if test -n "$ac_ct_DLLTOOL"; then
6068   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082   done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6088 if test -n "$ac_ct_DLLTOOL"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6090 $as_echo "$ac_ct_DLLTOOL" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096   if test "x$ac_ct_DLLTOOL" = x; then
6097     DLLTOOL="false"
6098   else
6099     case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105     DLLTOOL=$ac_ct_DLLTOOL
6106   fi
6107 else
6108   DLLTOOL="$ac_cv_prog_DLLTOOL"
6109 fi
6110
6111 test -z "$DLLTOOL" && DLLTOOL=dlltool
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   lt_cv_sharedlib_from_linklib_cmd='unknown'
6128
6129 case $host_os in
6130 cygwin* | mingw* | pw32* | cegcc*)
6131   # two different shell functions defined in ltmain.sh;
6132   # decide which one to use based on capabilities of $DLLTOOL
6133   case `$DLLTOOL --help 2>&1` in
6134   *--identify-strict*)
6135     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6136     ;;
6137   *)
6138     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6139     ;;
6140   esac
6141   ;;
6142 *)
6143   # fallback: assume linklib IS sharedlib
6144   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6145   ;;
6146 esac
6147
6148 fi
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6153
6154
6155
6156
6157
6158
6159
6160 if test -n "$ac_tool_prefix"; then
6161   for ac_prog in ar
6162   do
6163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_AR+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   if test -n "$AR"; then
6171   ac_cv_prog_AR="$AR" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_exec_ext in '' $ac_executable_extensions; do
6179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182     break 2
6183   fi
6184 done
6185   done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 AR=$ac_cv_prog_AR
6191 if test -n "$AR"; then
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6193 $as_echo "$AR" >&6; }
6194 else
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200     test -n "$AR" && break
6201   done
6202 fi
6203 if test -z "$AR"; then
6204   ac_ct_AR=$AR
6205   for ac_prog in ar
6206 do
6207   # Extract the first word of "$ac_prog", so it can be a program name with args.
6208 set dummy $ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   if test -n "$ac_ct_AR"; then
6215   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222     for ac_exec_ext in '' $ac_executable_extensions; do
6223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224     ac_cv_prog_ac_ct_AR="$ac_prog"
6225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229   done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6235 if test -n "$ac_ct_AR"; then
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6237 $as_echo "$ac_ct_AR" >&6; }
6238 else
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244   test -n "$ac_ct_AR" && break
6245 done
6246
6247   if test "x$ac_ct_AR" = x; then
6248     AR="false"
6249   else
6250     case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256     AR=$ac_ct_AR
6257   fi
6258 fi
6259
6260 : ${AR=ar}
6261 : ${AR_FLAGS=cru}
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6274 $as_echo_n "checking for archiver @FILE support... " >&6; }
6275 if ${lt_cv_ar_at_file+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   lt_cv_ar_at_file=no
6279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h.  */
6281
6282 int
6283 main ()
6284 {
6285
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291   echo conftest.$ac_objext > conftest.lst
6292       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6293       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294   (eval $lt_ar_try) 2>&5
6295   ac_status=$?
6296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297   test $ac_status = 0; }
6298       if test 0 -eq "$ac_status"; then
6299         # Ensure the archiver fails upon bogus file names.
6300         rm -f conftest.$ac_objext libconftest.a
6301         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6302   (eval $lt_ar_try) 2>&5
6303   ac_status=$?
6304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305   test $ac_status = 0; }
6306         if test 0 -ne "$ac_status"; then
6307           lt_cv_ar_at_file=@
6308         fi
6309       fi
6310       rm -f conftest.* libconftest.a
6311
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6317 $as_echo "$lt_cv_ar_at_file" >&6; }
6318
6319 if test no = "$lt_cv_ar_at_file"; then
6320   archiver_list_spec=
6321 else
6322   archiver_list_spec=$lt_cv_ar_at_file
6323 fi
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_STRIP+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   if test -n "$STRIP"; then
6340   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354   done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 STRIP=$ac_cv_prog_STRIP
6360 if test -n "$STRIP"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362 $as_echo "$STRIP" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_STRIP"; then
6371   ac_ct_STRIP=$STRIP
6372   # Extract the first word of "strip", so it can be a program name with args.
6373 set dummy strip; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$ac_ct_STRIP"; then
6380   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389     ac_cv_prog_ac_ct_STRIP="strip"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400 if test -n "$ac_ct_STRIP"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402 $as_echo "$ac_ct_STRIP" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408   if test "x$ac_ct_STRIP" = x; then
6409     STRIP=":"
6410   else
6411     case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417     STRIP=$ac_ct_STRIP
6418   fi
6419 else
6420   STRIP="$ac_cv_prog_STRIP"
6421 fi
6422
6423 test -z "$STRIP" && STRIP=:
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_RANLIB+:} false; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   if test -n "$RANLIB"; then
6439   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 RANLIB=$ac_cv_prog_RANLIB
6459 if test -n "$RANLIB"; then
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461 $as_echo "$RANLIB" >&6; }
6462 else
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 fi
6469 if test -z "$ac_cv_prog_RANLIB"; then
6470   ac_ct_RANLIB=$RANLIB
6471   # Extract the first word of "ranlib", so it can be a program name with args.
6472 set dummy ranlib; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$ac_ct_RANLIB"; then
6479   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_prog_ac_ct_RANLIB="ranlib"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499 if test -n "$ac_ct_RANLIB"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501 $as_echo "$ac_ct_RANLIB" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507   if test "x$ac_ct_RANLIB" = x; then
6508     RANLIB=":"
6509   else
6510     case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516     RANLIB=$ac_ct_RANLIB
6517   fi
6518 else
6519   RANLIB="$ac_cv_prog_RANLIB"
6520 fi
6521
6522 test -z "$RANLIB" && RANLIB=:
6523
6524
6525
6526
6527
6528
6529 # Determine commands to create old-style static archives.
6530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531 old_postinstall_cmds='chmod 644 $oldlib'
6532 old_postuninstall_cmds=
6533
6534 if test -n "$RANLIB"; then
6535   case $host_os in
6536   bitrig* | openbsd*)
6537     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6538     ;;
6539   *)
6540     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6541     ;;
6542   esac
6543   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6544 fi
6545
6546 case $host_os in
6547   darwin*)
6548     lock_old_archive_extraction=yes ;;
6549   *)
6550     lock_old_archive_extraction=no ;;
6551 esac
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 # If no C compiler was specified, use CC.
6592 LTCC=${LTCC-"$CC"}
6593
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596
6597 # Allow CC to be a program name with arguments.
6598 compiler=$CC
6599
6600
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6610
6611 # Character class describing NM global symbol codes.
6612 symcode='[BCDEGRST]'
6613
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
6617 # Define system-specific variables.
6618 case $host_os in
6619 aix*)
6620   symcode='[BCDT]'
6621   ;;
6622 cygwin* | mingw* | pw32* | cegcc*)
6623   symcode='[ABCDGISTW]'
6624   ;;
6625 hpux*)
6626   if test ia64 = "$host_cpu"; then
6627     symcode='[ABCDEGRST]'
6628   fi
6629   ;;
6630 irix* | nonstopux*)
6631   symcode='[BCDEGRST]'
6632   ;;
6633 osf*)
6634   symcode='[BCDEGQRST]'
6635   ;;
6636 solaris*)
6637   symcode='[BDRT]'
6638   ;;
6639 sco3.2v5*)
6640   symcode='[DT]'
6641   ;;
6642 sysv4.2uw2*)
6643   symcode='[DT]'
6644   ;;
6645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646   symcode='[ABDT]'
6647   ;;
6648 sysv4)
6649   symcode='[DFNSTU]'
6650   ;;
6651 esac
6652
6653 # If we're using GNU nm, then use its standard symbol codes.
6654 case `$NM -V 2>&1` in
6655 *GNU* | *'with BFD'*)
6656   symcode='[ABCDGIRSTW]' ;;
6657 esac
6658
6659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6660   # Gets list of data symbols to import.
6661   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6662   # Adjust the below global symbol transforms to fixup imported variables.
6663   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6664   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6665   lt_c_name_lib_hook="\
6666   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6667   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6668 else
6669   # Disable hooks by default.
6670   lt_cv_sys_global_symbol_to_import=
6671   lt_cdecl_hook=
6672   lt_c_name_hook=
6673   lt_c_name_lib_hook=
6674 fi
6675
6676 # Transform an extracted symbol line into a proper C declaration.
6677 # Some systems (esp. on ia64) link data and code symbols differently,
6678 # so use this general approach.
6679 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6680 $lt_cdecl_hook\
6681 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6682 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6683
6684 # Transform an extracted symbol line into symbol name and symbol address
6685 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6686 $lt_c_name_hook\
6687 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6688 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6689
6690 # Transform an extracted symbol line into symbol name with lib prefix and
6691 # symbol address.
6692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6693 $lt_c_name_lib_hook\
6694 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6695 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6696 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6697
6698 # Handle CRLF in mingw tool chain
6699 opt_cr=
6700 case $build_os in
6701 mingw*)
6702   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6703   ;;
6704 esac
6705
6706 # Try without a prefix underscore, then with it.
6707 for ac_symprfx in "" "_"; do
6708
6709   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6710   symxfrm="\\1 $ac_symprfx\\2 \\2"
6711
6712   # Write the raw and C identifiers.
6713   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6714     # Fake it for dumpbin and say T for any non-static function,
6715     # D for any global variable and I for any imported variable.
6716     # Also find C++ and __fastcall symbols from MSVC++,
6717     # which start with @ or ?.
6718     lt_cv_sys_global_symbol_pipe="$AWK '"\
6719 "     {last_section=section; section=\$ 3};"\
6720 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6721 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6722 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6723 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6724 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6725 "     \$ 0!~/External *\|/{next};"\
6726 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6727 "     {if(hide[section]) next};"\
6728 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6729 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6730 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6731 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6732 "     ' prfx=^$ac_symprfx"
6733   else
6734     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6735   fi
6736   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6737
6738   # Check to see that the pipe works correctly.
6739   pipe_works=no
6740
6741   rm -f conftest*
6742   cat > conftest.$ac_ext <<_LT_EOF
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6746 char nm_test_var;
6747 void nm_test_func(void);
6748 void nm_test_func(void){}
6749 #ifdef __cplusplus
6750 }
6751 #endif
6752 int main(){nm_test_var='a';nm_test_func();return(0);}
6753 _LT_EOF
6754
6755   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756   (eval $ac_compile) 2>&5
6757   ac_status=$?
6758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759   test $ac_status = 0; }; then
6760     # Now try to grab the symbols.
6761     nlist=conftest.nm
6762     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6763   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6764   ac_status=$?
6765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766   test $ac_status = 0; } && test -s "$nlist"; then
6767       # Try sorting and uniquifying the output.
6768       if sort "$nlist" | uniq > "$nlist"T; then
6769         mv -f "$nlist"T "$nlist"
6770       else
6771         rm -f "$nlist"T
6772       fi
6773
6774       # Make sure that we snagged all the symbols we need.
6775       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6776         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6777           cat <<_LT_EOF > conftest.$ac_ext
6778 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6779 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6780 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6781    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6782 # define LT_DLSYM_CONST
6783 #elif defined __osf__
6784 /* This system does not cope well with relocations in const data.  */
6785 # define LT_DLSYM_CONST
6786 #else
6787 # define LT_DLSYM_CONST const
6788 #endif
6789
6790 #ifdef __cplusplus
6791 extern "C" {
6792 #endif
6793
6794 _LT_EOF
6795           # Now generate the symbol file.
6796           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6797
6798           cat <<_LT_EOF >> conftest.$ac_ext
6799
6800 /* The mapping between symbol names and symbols.  */
6801 LT_DLSYM_CONST struct {
6802   const char *name;
6803   void       *address;
6804 }
6805 lt__PROGRAM__LTX_preloaded_symbols[] =
6806 {
6807   { "@PROGRAM@", (void *) 0 },
6808 _LT_EOF
6809           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6810           cat <<\_LT_EOF >> conftest.$ac_ext
6811   {0, (void *) 0}
6812 };
6813
6814 /* This works around a problem in FreeBSD linker */
6815 #ifdef FREEBSD_WORKAROUND
6816 static const void *lt_preloaded_setup() {
6817   return lt__PROGRAM__LTX_preloaded_symbols;
6818 }
6819 #endif
6820
6821 #ifdef __cplusplus
6822 }
6823 #endif
6824 _LT_EOF
6825           # Now try linking the two files.
6826           mv conftest.$ac_objext conftstm.$ac_objext
6827           lt_globsym_save_LIBS=$LIBS
6828           lt_globsym_save_CFLAGS=$CFLAGS
6829           LIBS=conftstm.$ac_objext
6830           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6831           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6832   (eval $ac_link) 2>&5
6833   ac_status=$?
6834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6836             pipe_works=yes
6837           fi
6838           LIBS=$lt_globsym_save_LIBS
6839           CFLAGS=$lt_globsym_save_CFLAGS
6840         else
6841           echo "cannot find nm_test_func in $nlist" >&5
6842         fi
6843       else
6844         echo "cannot find nm_test_var in $nlist" >&5
6845       fi
6846     else
6847       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6848     fi
6849   else
6850     echo "$progname: failed program was:" >&5
6851     cat conftest.$ac_ext >&5
6852   fi
6853   rm -rf conftest* conftst*
6854
6855   # Do not use the global_symbol_pipe unless it works.
6856   if test yes = "$pipe_works"; then
6857     break
6858   else
6859     lt_cv_sys_global_symbol_pipe=
6860   fi
6861 done
6862
6863 fi
6864
6865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6866   lt_cv_sys_global_symbol_to_cdecl=
6867 fi
6868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6870 $as_echo "failed" >&6; }
6871 else
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6873 $as_echo "ok" >&6; }
6874 fi
6875
6876 # Response file support.
6877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6878   nm_file_list_spec='@'
6879 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6880   nm_file_list_spec='@'
6881 fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6920 $as_echo_n "checking for sysroot... " >&6; }
6921
6922 # Check whether --with-sysroot was given.
6923 if test "${with_sysroot+set}" = set; then :
6924   withval=$with_sysroot;
6925 else
6926   with_sysroot=no
6927 fi
6928
6929
6930 lt_sysroot=
6931 case $with_sysroot in #(
6932  yes)
6933    if test yes = "$GCC"; then
6934      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6935    fi
6936    ;; #(
6937  /*)
6938    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6939    ;; #(
6940  no|'')
6941    ;; #(
6942  *)
6943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6944 $as_echo "$with_sysroot" >&6; }
6945    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6946    ;;
6947 esac
6948
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6950 $as_echo "${lt_sysroot:-no}" >&6; }
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6957 $as_echo_n "checking for a working dd... " >&6; }
6958 if ${ac_cv_path_lt_DD+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   printf 0123456789abcdef0123456789abcdef >conftest.i
6962 cat conftest.i conftest.i >conftest2.i
6963 : ${lt_DD:=$DD}
6964 if test -z "$lt_DD"; then
6965   ac_path_lt_DD_found=false
6966   # Loop through the user's path and test for each of PROGNAME-LIST
6967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972     for ac_prog in dd; do
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6975       as_fn_executable_p "$ac_path_lt_DD" || continue
6976 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6977   cmp -s conftest.i conftest.out \
6978   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6979 fi
6980       $ac_path_lt_DD_found && break 3
6981     done
6982   done
6983   done
6984 IFS=$as_save_IFS
6985   if test -z "$ac_cv_path_lt_DD"; then
6986     :
6987   fi
6988 else
6989   ac_cv_path_lt_DD=$lt_DD
6990 fi
6991
6992 rm -f conftest.i conftest2.i conftest.out
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6995 $as_echo "$ac_cv_path_lt_DD" >&6; }
6996
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6999 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7000 if ${lt_cv_truncate_bin+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   printf 0123456789abcdef0123456789abcdef >conftest.i
7004 cat conftest.i conftest.i >conftest2.i
7005 lt_cv_truncate_bin=
7006 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7007   cmp -s conftest.i conftest.out \
7008   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7009 fi
7010 rm -f conftest.i conftest2.i conftest.out
7011 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7014 $as_echo "$lt_cv_truncate_bin" >&6; }
7015
7016
7017
7018
7019
7020
7021
7022 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7023 func_cc_basename ()
7024 {
7025     for cc_temp in $*""; do
7026       case $cc_temp in
7027         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7028         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7029         \-*) ;;
7030         *) break;;
7031       esac
7032     done
7033     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7034 }
7035
7036 # Check whether --enable-libtool-lock was given.
7037 if test "${enable_libtool_lock+set}" = set; then :
7038   enableval=$enable_libtool_lock;
7039 fi
7040
7041 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7042
7043 # Some flags need to be propagated to the compiler or linker for good
7044 # libtool support.
7045 case $host in
7046 ia64-*-hpux*)
7047   # Find out what ABI is being produced by ac_compile, and set mode
7048   # options accordingly.
7049   echo 'int i;' > conftest.$ac_ext
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     case `/usr/bin/file conftest.$ac_objext` in
7056       *ELF-32*)
7057         HPUX_IA64_MODE=32
7058         ;;
7059       *ELF-64*)
7060         HPUX_IA64_MODE=64
7061         ;;
7062     esac
7063   fi
7064   rm -rf conftest*
7065   ;;
7066 *-*-irix6*)
7067   # Find out what ABI is being produced by ac_compile, and set linker
7068   # options accordingly.
7069   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7071   (eval $ac_compile) 2>&5
7072   ac_status=$?
7073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074   test $ac_status = 0; }; then
7075     if test yes = "$lt_cv_prog_gnu_ld"; then
7076       case `/usr/bin/file conftest.$ac_objext` in
7077         *32-bit*)
7078           LD="${LD-ld} -melf32bsmip"
7079           ;;
7080         *N32*)
7081           LD="${LD-ld} -melf32bmipn32"
7082           ;;
7083         *64-bit*)
7084           LD="${LD-ld} -melf64bmip"
7085         ;;
7086       esac
7087     else
7088       case `/usr/bin/file conftest.$ac_objext` in
7089         *32-bit*)
7090           LD="${LD-ld} -32"
7091           ;;
7092         *N32*)
7093           LD="${LD-ld} -n32"
7094           ;;
7095         *64-bit*)
7096           LD="${LD-ld} -64"
7097           ;;
7098       esac
7099     fi
7100   fi
7101   rm -rf conftest*
7102   ;;
7103
7104 mips64*-*linux*)
7105   # Find out what ABI is being produced by ac_compile, and set linker
7106   # options accordingly.
7107   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7108   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109   (eval $ac_compile) 2>&5
7110   ac_status=$?
7111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112   test $ac_status = 0; }; then
7113     emul=elf
7114     case `/usr/bin/file conftest.$ac_objext` in
7115       *32-bit*)
7116         emul="${emul}32"
7117         ;;
7118       *64-bit*)
7119         emul="${emul}64"
7120         ;;
7121     esac
7122     case `/usr/bin/file conftest.$ac_objext` in
7123       *MSB*)
7124         emul="${emul}btsmip"
7125         ;;
7126       *LSB*)
7127         emul="${emul}ltsmip"
7128         ;;
7129     esac
7130     case `/usr/bin/file conftest.$ac_objext` in
7131       *N32*)
7132         emul="${emul}n32"
7133         ;;
7134     esac
7135     LD="${LD-ld} -m $emul"
7136   fi
7137   rm -rf conftest*
7138   ;;
7139
7140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7142   # Find out what ABI is being produced by ac_compile, and set linker
7143   # options accordingly.  Note that the listed cases only cover the
7144   # situations where additional linker options are needed (such as when
7145   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7146   # vice versa); the common cases where no linker options are needed do
7147   # not appear in the list.
7148   echo 'int i;' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     case `/usr/bin/file conftest.o` in
7155       *32-bit*)
7156         case $host in
7157           x86_64-*kfreebsd*-gnu)
7158             LD="${LD-ld} -m elf_i386_fbsd"
7159             ;;
7160           x86_64-*linux*)
7161             case `/usr/bin/file conftest.o` in
7162               *x86-64*)
7163                 LD="${LD-ld} -m elf32_x86_64"
7164                 ;;
7165               *)
7166                 LD="${LD-ld} -m elf_i386"
7167                 ;;
7168             esac
7169             ;;
7170           powerpc64le-*linux*)
7171             LD="${LD-ld} -m elf32lppclinux"
7172             ;;
7173           powerpc64-*linux*)
7174             LD="${LD-ld} -m elf32ppclinux"
7175             ;;
7176           s390x-*linux*)
7177             LD="${LD-ld} -m elf_s390"
7178             ;;
7179           sparc64-*linux*)
7180             LD="${LD-ld} -m elf32_sparc"
7181             ;;
7182         esac
7183         ;;
7184       *64-bit*)
7185         case $host in
7186           x86_64-*kfreebsd*-gnu)
7187             LD="${LD-ld} -m elf_x86_64_fbsd"
7188             ;;
7189           x86_64-*linux*)
7190             LD="${LD-ld} -m elf_x86_64"
7191             ;;
7192           powerpcle-*linux*)
7193             LD="${LD-ld} -m elf64lppc"
7194             ;;
7195           powerpc-*linux*)
7196             LD="${LD-ld} -m elf64ppc"
7197             ;;
7198           s390*-*linux*|s390*-*tpf*)
7199             LD="${LD-ld} -m elf64_s390"
7200             ;;
7201           sparc*-*linux*)
7202             LD="${LD-ld} -m elf64_sparc"
7203             ;;
7204         esac
7205         ;;
7206     esac
7207   fi
7208   rm -rf conftest*
7209   ;;
7210
7211 *-*-sco3.2v5*)
7212   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7213   SAVE_CFLAGS=$CFLAGS
7214   CFLAGS="$CFLAGS -belf"
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7217 if ${lt_cv_cc_needs_belf+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228
7229 int
7230 main ()
7231 {
7232
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238   lt_cv_cc_needs_belf=yes
7239 else
7240   lt_cv_cc_needs_belf=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243     conftest$ac_exeext conftest.$ac_ext
7244      ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7253   if test yes != "$lt_cv_cc_needs_belf"; then
7254     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7255     CFLAGS=$SAVE_CFLAGS
7256   fi
7257   ;;
7258 *-*solaris*)
7259   # Find out what ABI is being produced by ac_compile, and set linker
7260   # options accordingly.
7261   echo 'int i;' > conftest.$ac_ext
7262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7263   (eval $ac_compile) 2>&5
7264   ac_status=$?
7265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7266   test $ac_status = 0; }; then
7267     case `/usr/bin/file conftest.o` in
7268     *64-bit*)
7269       case $lt_cv_prog_gnu_ld in
7270       yes*)
7271         case $host in
7272         i?86-*-solaris*|x86_64-*-solaris*)
7273           LD="${LD-ld} -m elf_x86_64"
7274           ;;
7275         sparc*-*-solaris*)
7276           LD="${LD-ld} -m elf64_sparc"
7277           ;;
7278         esac
7279         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7280         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7281           LD=${LD-ld}_sol2
7282         fi
7283         ;;
7284       *)
7285         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7286           LD="${LD-ld} -64"
7287         fi
7288         ;;
7289       esac
7290       ;;
7291     esac
7292   fi
7293   rm -rf conftest*
7294   ;;
7295 esac
7296
7297 need_locks=$enable_libtool_lock
7298
7299 if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}mt; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$MANIFEST_TOOL"; then
7308   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7328 if test -n "$MANIFEST_TOOL"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7330 $as_echo "$MANIFEST_TOOL" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7339   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7340   # Extract the first word of "mt", so it can be a program name with args.
7341 set dummy mt; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$ac_ct_MANIFEST_TOOL"; then
7348   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7368 if test -n "$ac_ct_MANIFEST_TOOL"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7370 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7377     MANIFEST_TOOL=":"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7386   fi
7387 else
7388   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7389 fi
7390
7391 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7393 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7394 if ${lt_cv_path_mainfest_tool+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   lt_cv_path_mainfest_tool=no
7398   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7399   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7400   cat conftest.err >&5
7401   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7402     lt_cv_path_mainfest_tool=yes
7403   fi
7404   rm -f conftest*
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7407 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7408 if test yes != "$lt_cv_path_mainfest_tool"; then
7409   MANIFEST_TOOL=:
7410 fi
7411
7412
7413
7414
7415
7416
7417   case $host_os in
7418     rhapsody* | darwin*)
7419     if test -n "$ac_tool_prefix"; then
7420   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425   $as_echo_n "(cached) " >&6
7426 else
7427   if test -n "$DSYMUTIL"; then
7428   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435     for ac_exec_ext in '' $ac_executable_extensions; do
7436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442   done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448 if test -n "$DSYMUTIL"; then
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7450 $as_echo "$DSYMUTIL" >&6; }
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457 fi
7458 if test -z "$ac_cv_prog_DSYMUTIL"; then
7459   ac_ct_DSYMUTIL=$DSYMUTIL
7460   # Extract the first word of "dsymutil", so it can be a program name with args.
7461 set dummy dsymutil; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$ac_ct_DSYMUTIL"; then
7468   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496   if test "x$ac_ct_DSYMUTIL" = x; then
7497     DSYMUTIL=":"
7498   else
7499     case $cross_compiling:$ac_tool_warned in
7500 yes:)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505     DSYMUTIL=$ac_ct_DSYMUTIL
7506   fi
7507 else
7508   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7509 fi
7510
7511     if test -n "$ac_tool_prefix"; then
7512   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_NMEDIT+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   if test -n "$NMEDIT"; then
7520   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527     for ac_exec_ext in '' $ac_executable_extensions; do
7528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534   done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7542 $as_echo "$NMEDIT" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551   ac_ct_NMEDIT=$NMEDIT
7552   # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$ac_ct_NMEDIT"; then
7560   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574   done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7582 $as_echo "$ac_ct_NMEDIT" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588   if test "x$ac_ct_NMEDIT" = x; then
7589     NMEDIT=":"
7590   else
7591     case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597     NMEDIT=$ac_ct_NMEDIT
7598   fi
7599 else
7600   NMEDIT="$ac_cv_prog_NMEDIT"
7601 fi
7602
7603     if test -n "$ac_tool_prefix"; then
7604   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_LIPO+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   if test -n "$LIPO"; then
7612   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619     for ac_exec_ext in '' $ac_executable_extensions; do
7620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626   done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7634 $as_echo "$LIPO" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 fi
7642 if test -z "$ac_cv_prog_LIPO"; then
7643   ac_ct_LIPO=$LIPO
7644   # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$ac_ct_LIPO"; then
7652   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661     ac_cv_prog_ac_ct_LIPO="lipo"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7674 $as_echo "$ac_ct_LIPO" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680   if test "x$ac_ct_LIPO" = x; then
7681     LIPO=":"
7682   else
7683     case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689     LIPO=$ac_ct_LIPO
7690   fi
7691 else
7692   LIPO="$ac_cv_prog_LIPO"
7693 fi
7694
7695     if test -n "$ac_tool_prefix"; then
7696   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   if test -n "$OTOOL"; then
7704   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711     for ac_exec_ext in '' $ac_executable_extensions; do
7712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718   done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 OTOOL=$ac_cv_prog_OTOOL
7724 if test -n "$OTOOL"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7726 $as_echo "$OTOOL" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_OTOOL"; then
7735   ac_ct_OTOOL=$OTOOL
7736   # Extract the first word of "otool", so it can be a program name with args.
7737 set dummy otool; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   if test -n "$ac_ct_OTOOL"; then
7744   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751     for ac_exec_ext in '' $ac_executable_extensions; do
7752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753     ac_cv_prog_ac_ct_OTOOL="otool"
7754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758   done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764 if test -n "$ac_ct_OTOOL"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7766 $as_echo "$ac_ct_OTOOL" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772   if test "x$ac_ct_OTOOL" = x; then
7773     OTOOL=":"
7774   else
7775     case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781     OTOOL=$ac_ct_OTOOL
7782   fi
7783 else
7784   OTOOL="$ac_cv_prog_OTOOL"
7785 fi
7786
7787     if test -n "$ac_tool_prefix"; then
7788   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_OTOOL64+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   if test -n "$OTOOL64"; then
7796   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803     for ac_exec_ext in '' $ac_executable_extensions; do
7804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810   done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7818 $as_echo "$OTOOL64" >&6; }
7819 else
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827   ac_ct_OTOOL64=$OTOOL64
7828   # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   if test -n "$ac_ct_OTOOL64"; then
7836   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845     ac_cv_prog_ac_ct_OTOOL64="otool64"
7846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7858 $as_echo "$ac_ct_OTOOL64" >&6; }
7859 else
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864   if test "x$ac_ct_OTOOL64" = x; then
7865     OTOOL64=":"
7866   else
7867     case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7872 esac
7873     OTOOL64=$ac_ct_OTOOL64
7874   fi
7875 else
7876   OTOOL64="$ac_cv_prog_OTOOL64"
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7906 $as_echo_n "checking for -single_module linker flag... " >&6; }
7907 if ${lt_cv_apple_cc_single_mod+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   lt_cv_apple_cc_single_mod=no
7911       if test -z "$LT_MULTI_MODULE"; then
7912         # By default we will add the -single_module flag. You can override
7913         # by either setting the environment variable LT_MULTI_MODULE
7914         # non-empty at configure time, or by adding -multi_module to the
7915         # link flags.
7916         rm -rf libconftest.dylib*
7917         echo "int foo(void){return 1;}" > conftest.c
7918         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919 -dynamiclib -Wl,-single_module conftest.c" >&5
7920         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7922         _lt_result=$?
7923         # If there is a non-empty error log, and "single_module"
7924         # appears in it, assume the flag caused a linker warning
7925         if test -s conftest.err && $GREP single_module conftest.err; then
7926           cat conftest.err >&5
7927         # Otherwise, if the output was created with a 0 exit code from
7928         # the compiler, it worked.
7929         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7930           lt_cv_apple_cc_single_mod=yes
7931         else
7932           cat conftest.err >&5
7933         fi
7934         rm -rf libconftest.dylib*
7935         rm -f conftest.*
7936       fi
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7940
7941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7942 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7943 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   lt_cv_ld_exported_symbols_list=no
7947       save_LDFLAGS=$LDFLAGS
7948       echo "_main" > conftest.sym
7949       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7950       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h.  */
7952
7953 int
7954 main ()
7955 {
7956
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 if ac_fn_c_try_link "$LINENO"; then :
7962   lt_cv_ld_exported_symbols_list=yes
7963 else
7964   lt_cv_ld_exported_symbols_list=no
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext \
7967     conftest$ac_exeext conftest.$ac_ext
7968         LDFLAGS=$save_LDFLAGS
7969
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7973
7974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7975 $as_echo_n "checking for -force_load linker flag... " >&6; }
7976 if ${lt_cv_ld_force_load+:} false; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   lt_cv_ld_force_load=no
7980       cat > conftest.c << _LT_EOF
7981 int forced_loaded() { return 2;}
7982 _LT_EOF
7983       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7984       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7985       echo "$AR cru libconftest.a conftest.o" >&5
7986       $AR cru libconftest.a conftest.o 2>&5
7987       echo "$RANLIB libconftest.a" >&5
7988       $RANLIB libconftest.a 2>&5
7989       cat > conftest.c << _LT_EOF
7990 int main() { return 0;}
7991 _LT_EOF
7992       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7993       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7994       _lt_result=$?
7995       if test -s conftest.err && $GREP force_load conftest.err; then
7996         cat conftest.err >&5
7997       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7998         lt_cv_ld_force_load=yes
7999       else
8000         cat conftest.err >&5
8001       fi
8002         rm -f conftest.err libconftest.a conftest conftest.c
8003         rm -rf conftest.dSYM
8004
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8007 $as_echo "$lt_cv_ld_force_load" >&6; }
8008     case $host_os in
8009     rhapsody* | darwin1.[012])
8010       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8011     darwin1.*)
8012       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8013     darwin*) # darwin 5.x on
8014       # if running on 10.5 or later, the deployment target defaults
8015       # to the OS version, if on x86, and 10.4, the deployment
8016       # target defaults to 10.4. Don't you love it?
8017       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8018         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8019           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8020         10.[012][,.]*)
8021           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8022         10.*)
8023           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8024       esac
8025     ;;
8026   esac
8027     if test yes = "$lt_cv_apple_cc_single_mod"; then
8028       _lt_dar_single_mod='$single_module'
8029     fi
8030     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8031       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8032     else
8033       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8034     fi
8035     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8036       _lt_dsymutil='~$DSYMUTIL $lib || :'
8037     else
8038       _lt_dsymutil=
8039     fi
8040     ;;
8041   esac
8042
8043 # func_munge_path_list VARIABLE PATH
8044 # -----------------------------------
8045 # VARIABLE is name of variable containing _space_ separated list of
8046 # directories to be munged by the contents of PATH, which is string
8047 # having a format:
8048 # "DIR[:DIR]:"
8049 #       string "DIR[ DIR]" will be prepended to VARIABLE
8050 # ":DIR[:DIR]"
8051 #       string "DIR[ DIR]" will be appended to VARIABLE
8052 # "DIRP[:DIRP]::[DIRA:]DIRA"
8053 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8054 #       "DIRA[ DIRA]" will be appended to VARIABLE
8055 # "DIR[:DIR]"
8056 #       VARIABLE will be replaced by "DIR[ DIR]"
8057 func_munge_path_list ()
8058 {
8059     case x$2 in
8060     x)
8061         ;;
8062     *:)
8063         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8064         ;;
8065     x:*)
8066         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8067         ;;
8068     *::*)
8069         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8070         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8071         ;;
8072     *)
8073         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8074         ;;
8075     esac
8076 }
8077
8078 ac_ext=c
8079 ac_cpp='$CPP $CPPFLAGS'
8080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8085 # On Suns, sometimes $CPP names a directory.
8086 if test -n "$CPP" && test -d "$CPP"; then
8087   CPP=
8088 fi
8089 if test -z "$CPP"; then
8090   if ${ac_cv_prog_CPP+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093       # Double quotes because CPP needs to be expanded
8094     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8095     do
8096       ac_preproc_ok=false
8097 for ac_c_preproc_warn_flag in '' yes
8098 do
8099   # Use a header file that comes with gcc, so configuring glibc
8100   # with a fresh cross-compiler works.
8101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8102   # <limits.h> exists even on freestanding compilers.
8103   # On the NeXT, cc -E runs the code through the compiler's parser,
8104   # not just through cpp. "Syntax error" is here to catch this case.
8105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h.  */
8107 #ifdef __STDC__
8108 # include <limits.h>
8109 #else
8110 # include <assert.h>
8111 #endif
8112                      Syntax error
8113 _ACEOF
8114 if ac_fn_c_try_cpp "$LINENO"; then :
8115
8116 else
8117   # Broken: fails on valid input.
8118 continue
8119 fi
8120 rm -f conftest.err conftest.i conftest.$ac_ext
8121
8122   # OK, works on sane cases.  Now check whether nonexistent headers
8123   # can be detected and how.
8124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h.  */
8126 #include <ac_nonexistent.h>
8127 _ACEOF
8128 if ac_fn_c_try_cpp "$LINENO"; then :
8129   # Broken: success on invalid input.
8130 continue
8131 else
8132   # Passes both tests.
8133 ac_preproc_ok=:
8134 break
8135 fi
8136 rm -f conftest.err conftest.i conftest.$ac_ext
8137
8138 done
8139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8140 rm -f conftest.i conftest.err conftest.$ac_ext
8141 if $ac_preproc_ok; then :
8142   break
8143 fi
8144
8145     done
8146     ac_cv_prog_CPP=$CPP
8147
8148 fi
8149   CPP=$ac_cv_prog_CPP
8150 else
8151   ac_cv_prog_CPP=$CPP
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8154 $as_echo "$CPP" >&6; }
8155 ac_preproc_ok=false
8156 for ac_c_preproc_warn_flag in '' yes
8157 do
8158   # Use a header file that comes with gcc, so configuring glibc
8159   # with a fresh cross-compiler works.
8160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161   # <limits.h> exists even on freestanding compilers.
8162   # On the NeXT, cc -E runs the code through the compiler's parser,
8163   # not just through cpp. "Syntax error" is here to catch this case.
8164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166 #ifdef __STDC__
8167 # include <limits.h>
8168 #else
8169 # include <assert.h>
8170 #endif
8171                      Syntax error
8172 _ACEOF
8173 if ac_fn_c_try_cpp "$LINENO"; then :
8174
8175 else
8176   # Broken: fails on valid input.
8177 continue
8178 fi
8179 rm -f conftest.err conftest.i conftest.$ac_ext
8180
8181   # OK, works on sane cases.  Now check whether nonexistent headers
8182   # can be detected and how.
8183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h.  */
8185 #include <ac_nonexistent.h>
8186 _ACEOF
8187 if ac_fn_c_try_cpp "$LINENO"; then :
8188   # Broken: success on invalid input.
8189 continue
8190 else
8191   # Passes both tests.
8192 ac_preproc_ok=:
8193 break
8194 fi
8195 rm -f conftest.err conftest.i conftest.$ac_ext
8196
8197 done
8198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8199 rm -f conftest.i conftest.err conftest.$ac_ext
8200 if $ac_preproc_ok; then :
8201
8202 else
8203   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8206 See \`config.log' for more details" "$LINENO" 5; }
8207 fi
8208
8209 ac_ext=c
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8217 $as_echo_n "checking for ANSI C header files... " >&6; }
8218 if ${ac_cv_header_stdc+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223 #include <stdlib.h>
8224 #include <stdarg.h>
8225 #include <string.h>
8226 #include <float.h>
8227
8228 int
8229 main ()
8230 {
8231
8232   ;
8233   return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237   ac_cv_header_stdc=yes
8238 else
8239   ac_cv_header_stdc=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242
8243 if test $ac_cv_header_stdc = yes; then
8244   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h.  */
8247 #include <string.h>
8248
8249 _ACEOF
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251   $EGREP "memchr" >/dev/null 2>&1; then :
8252
8253 else
8254   ac_cv_header_stdc=no
8255 fi
8256 rm -f conftest*
8257
8258 fi
8259
8260 if test $ac_cv_header_stdc = yes; then
8261   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264 #include <stdlib.h>
8265
8266 _ACEOF
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268   $EGREP "free" >/dev/null 2>&1; then :
8269
8270 else
8271   ac_cv_header_stdc=no
8272 fi
8273 rm -f conftest*
8274
8275 fi
8276
8277 if test $ac_cv_header_stdc = yes; then
8278   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8279   if test "$cross_compiling" = yes; then :
8280   :
8281 else
8282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h.  */
8284 #include <ctype.h>
8285 #include <stdlib.h>
8286 #if ((' ' & 0x0FF) == 0x020)
8287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8289 #else
8290 # define ISLOWER(c) \
8291                    (('a' <= (c) && (c) <= 'i') \
8292                      || ('j' <= (c) && (c) <= 'r') \
8293                      || ('s' <= (c) && (c) <= 'z'))
8294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8295 #endif
8296
8297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8298 int
8299 main ()
8300 {
8301   int i;
8302   for (i = 0; i < 256; i++)
8303     if (XOR (islower (i), ISLOWER (i))
8304         || toupper (i) != TOUPPER (i))
8305       return 2;
8306   return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_run "$LINENO"; then :
8310
8311 else
8312   ac_cv_header_stdc=no
8313 fi
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315   conftest.$ac_objext conftest.beam conftest.$ac_ext
8316 fi
8317
8318 fi
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8321 $as_echo "$ac_cv_header_stdc" >&6; }
8322 if test $ac_cv_header_stdc = yes; then
8323
8324 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8325
8326 fi
8327
8328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8330                   inttypes.h stdint.h unistd.h
8331 do :
8332   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8333 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8334 "
8335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8336   cat >>confdefs.h <<_ACEOF
8337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338 _ACEOF
8339
8340 fi
8341
8342 done
8343
8344
8345 for ac_header in dlfcn.h
8346 do :
8347   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8348 "
8349 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8350   cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DLFCN_H 1
8352 _ACEOF
8353
8354 fi
8355
8356 done
8357
8358
8359
8360
8361 func_stripname_cnf ()
8362 {
8363   case $2 in
8364   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8365   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8366   esac
8367 } # func_stripname_cnf
8368
8369
8370
8371
8372
8373 # Set options
8374
8375
8376
8377         enable_dlopen=no
8378
8379
8380   enable_win32_dll=no
8381
8382
8383             # Check whether --enable-shared was given.
8384 if test "${enable_shared+set}" = set; then :
8385   enableval=$enable_shared; p=${PACKAGE-default}
8386     case $enableval in
8387     yes) enable_shared=yes ;;
8388     no) enable_shared=no ;;
8389     *)
8390       enable_shared=no
8391       # Look at the argument we got.  We use all the common list separators.
8392       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8393       for pkg in $enableval; do
8394         IFS=$lt_save_ifs
8395         if test "X$pkg" = "X$p"; then
8396           enable_shared=yes
8397         fi
8398       done
8399       IFS=$lt_save_ifs
8400       ;;
8401     esac
8402 else
8403   enable_shared=yes
8404 fi
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416 # Check whether --with-pic was given.
8417 if test "${with_pic+set}" = set; then :
8418   withval=$with_pic; lt_p=${PACKAGE-default}
8419     case $withval in
8420     yes|no) pic_mode=$withval ;;
8421     *)
8422       pic_mode=default
8423       # Look at the argument we got.  We use all the common list separators.
8424       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8425       for lt_pkg in $withval; do
8426         IFS=$lt_save_ifs
8427         if test "X$lt_pkg" = "X$lt_p"; then
8428           pic_mode=yes
8429         fi
8430       done
8431       IFS=$lt_save_ifs
8432       ;;
8433     esac
8434 else
8435   pic_mode=default
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444
8445   # Check whether --enable-fast-install was given.
8446 if test "${enable_fast_install+set}" = set; then :
8447   enableval=$enable_fast_install; p=${PACKAGE-default}
8448     case $enableval in
8449     yes) enable_fast_install=yes ;;
8450     no) enable_fast_install=no ;;
8451     *)
8452       enable_fast_install=no
8453       # Look at the argument we got.  We use all the common list separators.
8454       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8455       for pkg in $enableval; do
8456         IFS=$lt_save_ifs
8457         if test "X$pkg" = "X$p"; then
8458           enable_fast_install=yes
8459         fi
8460       done
8461       IFS=$lt_save_ifs
8462       ;;
8463     esac
8464 else
8465   enable_fast_install=yes
8466 fi
8467
8468
8469
8470
8471
8472
8473
8474
8475   shared_archive_member_spec=
8476 case $host,$enable_shared in
8477 power*-*-aix[5-9]*,yes)
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8479 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8480
8481 # Check whether --with-aix-soname was given.
8482 if test "${with_aix_soname+set}" = set; then :
8483   withval=$with_aix_soname; case $withval in
8484     aix|svr4|both)
8485       ;;
8486     *)
8487       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8488       ;;
8489     esac
8490     lt_cv_with_aix_soname=$with_aix_soname
8491 else
8492   if ${lt_cv_with_aix_soname+:} false; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   lt_cv_with_aix_soname=aix
8496 fi
8497
8498     with_aix_soname=$lt_cv_with_aix_soname
8499 fi
8500
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8502 $as_echo "$with_aix_soname" >&6; }
8503   if test aix != "$with_aix_soname"; then
8504     # For the AIX way of multilib, we name the shared archive member
8505     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8506     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8507     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8508     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8509     if test 64 = "${OBJECT_MODE-32}"; then
8510       shared_archive_member_spec=shr_64
8511     else
8512       shared_archive_member_spec=shr
8513     fi
8514   fi
8515   ;;
8516 *)
8517   with_aix_soname=aix
8518   ;;
8519 esac
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 # This can be used to rebuild libtool when needed
8531 LIBTOOL_DEPS=$ltmain
8532
8533 # Always use our own libtool.
8534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 test -z "$LN_S" && LN_S="ln -s"
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580 if test -n "${ZSH_VERSION+set}"; then
8581    setopt NO_GLOB_SUBST
8582 fi
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8585 $as_echo_n "checking for objdir... " >&6; }
8586 if ${lt_cv_objdir+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   rm -f .libs 2>/dev/null
8590 mkdir .libs 2>/dev/null
8591 if test -d .libs; then
8592   lt_cv_objdir=.libs
8593 else
8594   # MS-DOS does not allow filenames that begin with a dot.
8595   lt_cv_objdir=_libs
8596 fi
8597 rmdir .libs 2>/dev/null
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8600 $as_echo "$lt_cv_objdir" >&6; }
8601 objdir=$lt_cv_objdir
8602
8603
8604
8605
8606
8607 cat >>confdefs.h <<_ACEOF
8608 #define LT_OBJDIR "$lt_cv_objdir/"
8609 _ACEOF
8610
8611
8612
8613
8614 case $host_os in
8615 aix3*)
8616   # AIX sometimes has problems with the GCC collect2 program.  For some
8617   # reason, if we set the COLLECT_NAMES environment variable, the problems
8618   # vanish in a puff of smoke.
8619   if test set != "${COLLECT_NAMES+set}"; then
8620     COLLECT_NAMES=
8621     export COLLECT_NAMES
8622   fi
8623   ;;
8624 esac
8625
8626 # Global variables:
8627 ofile=libtool
8628 can_build_shared=yes
8629
8630 # All known linkers require a '.a' archive for static linking (except MSVC,
8631 # which needs '.lib').
8632 libext=a
8633
8634 with_gnu_ld=$lt_cv_prog_gnu_ld
8635
8636 old_CC=$CC
8637 old_CFLAGS=$CFLAGS
8638
8639 # Set sane defaults for various variables
8640 test -z "$CC" && CC=cc
8641 test -z "$LTCC" && LTCC=$CC
8642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8643 test -z "$LD" && LD=ld
8644 test -z "$ac_objext" && ac_objext=o
8645
8646 func_cc_basename $compiler
8647 cc_basename=$func_cc_basename_result
8648
8649
8650 # Only perform the check for file, if the check method requires it
8651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8652 case $deplibs_check_method in
8653 file_magic*)
8654   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8657 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   case $MAGIC_CMD in
8661 [\\/*] |  ?:[\\/]*)
8662   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8663   ;;
8664 *)
8665   lt_save_MAGIC_CMD=$MAGIC_CMD
8666   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8668   for ac_dir in $ac_dummy; do
8669     IFS=$lt_save_ifs
8670     test -z "$ac_dir" && ac_dir=.
8671     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8672       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8673       if test -n "$file_magic_test_file"; then
8674         case $deplibs_check_method in
8675         "file_magic "*)
8676           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8677           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8679             $EGREP "$file_magic_regex" > /dev/null; then
8680             :
8681           else
8682             cat <<_LT_EOF 1>&2
8683
8684 *** Warning: the command libtool uses to detect shared libraries,
8685 *** $file_magic_cmd, produces output that libtool cannot recognize.
8686 *** The result is that libtool may fail to recognize shared libraries
8687 *** as such.  This will affect the creation of libtool libraries that
8688 *** depend on shared libraries, but programs linked with such libtool
8689 *** libraries will work regardless of this problem.  Nevertheless, you
8690 *** may want to report the problem to your system manager and/or to
8691 *** bug-libtool@gnu.org
8692
8693 _LT_EOF
8694           fi ;;
8695         esac
8696       fi
8697       break
8698     fi
8699   done
8700   IFS=$lt_save_ifs
8701   MAGIC_CMD=$lt_save_MAGIC_CMD
8702   ;;
8703 esac
8704 fi
8705
8706 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8707 if test -n "$MAGIC_CMD"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8709 $as_echo "$MAGIC_CMD" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716
8717
8718
8719 if test -z "$lt_cv_path_MAGIC_CMD"; then
8720   if test -n "$ac_tool_prefix"; then
8721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8722 $as_echo_n "checking for file... " >&6; }
8723 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   case $MAGIC_CMD in
8727 [\\/*] |  ?:[\\/]*)
8728   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8729   ;;
8730 *)
8731   lt_save_MAGIC_CMD=$MAGIC_CMD
8732   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8733   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8734   for ac_dir in $ac_dummy; do
8735     IFS=$lt_save_ifs
8736     test -z "$ac_dir" && ac_dir=.
8737     if test -f "$ac_dir/file"; then
8738       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8739       if test -n "$file_magic_test_file"; then
8740         case $deplibs_check_method in
8741         "file_magic "*)
8742           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8743           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8744           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8745             $EGREP "$file_magic_regex" > /dev/null; then
8746             :
8747           else
8748             cat <<_LT_EOF 1>&2
8749
8750 *** Warning: the command libtool uses to detect shared libraries,
8751 *** $file_magic_cmd, produces output that libtool cannot recognize.
8752 *** The result is that libtool may fail to recognize shared libraries
8753 *** as such.  This will affect the creation of libtool libraries that
8754 *** depend on shared libraries, but programs linked with such libtool
8755 *** libraries will work regardless of this problem.  Nevertheless, you
8756 *** may want to report the problem to your system manager and/or to
8757 *** bug-libtool@gnu.org
8758
8759 _LT_EOF
8760           fi ;;
8761         esac
8762       fi
8763       break
8764     fi
8765   done
8766   IFS=$lt_save_ifs
8767   MAGIC_CMD=$lt_save_MAGIC_CMD
8768   ;;
8769 esac
8770 fi
8771
8772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8773 if test -n "$MAGIC_CMD"; then
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8775 $as_echo "$MAGIC_CMD" >&6; }
8776 else
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782   else
8783     MAGIC_CMD=:
8784   fi
8785 fi
8786
8787   fi
8788   ;;
8789 esac
8790
8791 # Use C for the default configuration in the libtool script
8792
8793 lt_save_CC=$CC
8794 ac_ext=c
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799
8800
8801 # Source file extension for C test sources.
8802 ac_ext=c
8803
8804 # Object file extension for compiled C test sources.
8805 objext=o
8806 objext=$objext
8807
8808 # Code to be used in simple compile tests
8809 lt_simple_compile_test_code="int some_variable = 0;"
8810
8811 # Code to be used in simple link tests
8812 lt_simple_link_test_code='int main(){return(0);}'
8813
8814
8815
8816
8817
8818
8819
8820 # If no C compiler was specified, use CC.
8821 LTCC=${LTCC-"$CC"}
8822
8823 # If no C compiler flags were specified, use CFLAGS.
8824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8825
8826 # Allow CC to be a program name with arguments.
8827 compiler=$CC
8828
8829 # Save the default compiler, since it gets overwritten when the other
8830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8831 compiler_DEFAULT=$CC
8832
8833 # save warnings/boilerplate of simple test code
8834 ac_outfile=conftest.$ac_objext
8835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837 _lt_compiler_boilerplate=`cat conftest.err`
8838 $RM conftest*
8839
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8843 _lt_linker_boilerplate=`cat conftest.err`
8844 $RM -r conftest*
8845
8846
8847 ## CAVEAT EMPTOR:
8848 ## There is no encapsulation within the following macros, do not change
8849 ## the running order or otherwise move them around unless you know exactly
8850 ## what you are doing...
8851 if test -n "$compiler"; then
8852
8853 lt_prog_compiler_no_builtin_flag=
8854
8855 if test yes = "$GCC"; then
8856   case $cc_basename in
8857   nvcc*)
8858     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8859   *)
8860     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8861   esac
8862
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8864 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8865 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_rtti_exceptions=no
8869    ac_outfile=conftest.$ac_objext
8870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8872    # Insert the option either (1) after the last *FLAGS variable, or
8873    # (2) before a word containing "conftest.", or (3) at the end.
8874    # Note that $ac_compile itself does not contain backslashes and begins
8875    # with a dollar sign (not a hyphen), so the echo should work correctly.
8876    # The option is referenced via a variable to avoid confusing sed.
8877    lt_compile=`echo "$ac_compile" | $SED \
8878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880    -e 's:$: $lt_compiler_flag:'`
8881    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882    (eval "$lt_compile" 2>conftest.err)
8883    ac_status=$?
8884    cat conftest.err >&5
8885    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886    if (exit $ac_status) && test -s "$ac_outfile"; then
8887      # The compiler can only warn and ignore the option if not recognized
8888      # So say no if there are warnings other than the usual output.
8889      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8890      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892        lt_cv_prog_compiler_rtti_exceptions=yes
8893      fi
8894    fi
8895    $RM conftest*
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8899 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8900
8901 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8902     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8903 else
8904     :
8905 fi
8906
8907 fi
8908
8909
8910
8911
8912
8913
8914   lt_prog_compiler_wl=
8915 lt_prog_compiler_pic=
8916 lt_prog_compiler_static=
8917
8918
8919   if test yes = "$GCC"; then
8920     lt_prog_compiler_wl='-Wl,'
8921     lt_prog_compiler_static='-static'
8922
8923     case $host_os in
8924       aix*)
8925       # All AIX code is PIC.
8926       if test ia64 = "$host_cpu"; then
8927         # AIX 5 now supports IA64 processor
8928         lt_prog_compiler_static='-Bstatic'
8929       fi
8930       lt_prog_compiler_pic='-fPIC'
8931       ;;
8932
8933     amigaos*)
8934       case $host_cpu in
8935       powerpc)
8936             # see comment about AmigaOS4 .so support
8937             lt_prog_compiler_pic='-fPIC'
8938         ;;
8939       m68k)
8940             # FIXME: we need at least 68020 code to build shared libraries, but
8941             # adding the '-m68020' flag to GCC prevents building anything better,
8942             # like '-m68040'.
8943             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8944         ;;
8945       esac
8946       ;;
8947
8948     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8949       # PIC is the default for these OSes.
8950       ;;
8951
8952     mingw* | cygwin* | pw32* | os2* | cegcc*)
8953       # This hack is so that the source file can tell whether it is being
8954       # built for inclusion in a dll (and should export symbols for example).
8955       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8956       # (--disable-auto-import) libraries
8957       lt_prog_compiler_pic='-DDLL_EXPORT'
8958       case $host_os in
8959       os2*)
8960         lt_prog_compiler_static='$wl-static'
8961         ;;
8962       esac
8963       ;;
8964
8965     darwin* | rhapsody*)
8966       # PIC is the default on this platform
8967       # Common symbols not allowed in MH_DYLIB files
8968       lt_prog_compiler_pic='-fno-common'
8969       ;;
8970
8971     haiku*)
8972       # PIC is the default for Haiku.
8973       # The "-static" flag exists, but is broken.
8974       lt_prog_compiler_static=
8975       ;;
8976
8977     hpux*)
8978       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8979       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8980       # sets the default TLS model and affects inlining.
8981       case $host_cpu in
8982       hppa*64*)
8983         # +Z the default
8984         ;;
8985       *)
8986         lt_prog_compiler_pic='-fPIC'
8987         ;;
8988       esac
8989       ;;
8990
8991     interix[3-9]*)
8992       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8993       # Instead, we relocate shared libraries at runtime.
8994       ;;
8995
8996     msdosdjgpp*)
8997       # Just because we use GCC doesn't mean we suddenly get shared libraries
8998       # on systems that don't support them.
8999       lt_prog_compiler_can_build_shared=no
9000       enable_shared=no
9001       ;;
9002
9003     *nto* | *qnx*)
9004       # QNX uses GNU C++, but need to define -shared option too, otherwise
9005       # it will coredump.
9006       lt_prog_compiler_pic='-fPIC -shared'
9007       ;;
9008
9009     sysv4*MP*)
9010       if test -d /usr/nec; then
9011         lt_prog_compiler_pic=-Kconform_pic
9012       fi
9013       ;;
9014
9015     *)
9016       lt_prog_compiler_pic='-fPIC'
9017       ;;
9018     esac
9019
9020     case $cc_basename in
9021     nvcc*) # Cuda Compiler Driver 2.2
9022       lt_prog_compiler_wl='-Xlinker '
9023       if test -n "$lt_prog_compiler_pic"; then
9024         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9025       fi
9026       ;;
9027     esac
9028   else
9029     # PORTME Check for flag to pass linker flags through the system compiler.
9030     case $host_os in
9031     aix*)
9032       lt_prog_compiler_wl='-Wl,'
9033       if test ia64 = "$host_cpu"; then
9034         # AIX 5 now supports IA64 processor
9035         lt_prog_compiler_static='-Bstatic'
9036       else
9037         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9038       fi
9039       ;;
9040
9041     darwin* | rhapsody*)
9042       # PIC is the default on this platform
9043       # Common symbols not allowed in MH_DYLIB files
9044       lt_prog_compiler_pic='-fno-common'
9045       case $cc_basename in
9046       nagfor*)
9047         # NAG Fortran compiler
9048         lt_prog_compiler_wl='-Wl,-Wl,,'
9049         lt_prog_compiler_pic='-PIC'
9050         lt_prog_compiler_static='-Bstatic'
9051         ;;
9052       esac
9053       ;;
9054
9055     mingw* | cygwin* | pw32* | os2* | cegcc*)
9056       # This hack is so that the source file can tell whether it is being
9057       # built for inclusion in a dll (and should export symbols for example).
9058       lt_prog_compiler_pic='-DDLL_EXPORT'
9059       case $host_os in
9060       os2*)
9061         lt_prog_compiler_static='$wl-static'
9062         ;;
9063       esac
9064       ;;
9065
9066     hpux9* | hpux10* | hpux11*)
9067       lt_prog_compiler_wl='-Wl,'
9068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9069       # not for PA HP-UX.
9070       case $host_cpu in
9071       hppa*64*|ia64*)
9072         # +Z the default
9073         ;;
9074       *)
9075         lt_prog_compiler_pic='+Z'
9076         ;;
9077       esac
9078       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9079       lt_prog_compiler_static='$wl-a ${wl}archive'
9080       ;;
9081
9082     irix5* | irix6* | nonstopux*)
9083       lt_prog_compiler_wl='-Wl,'
9084       # PIC (with -KPIC) is the default.
9085       lt_prog_compiler_static='-non_shared'
9086       ;;
9087
9088     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9089       case $cc_basename in
9090       # old Intel for x86_64, which still supported -KPIC.
9091       ecc*)
9092         lt_prog_compiler_wl='-Wl,'
9093         lt_prog_compiler_pic='-KPIC'
9094         lt_prog_compiler_static='-static'
9095         ;;
9096       # icc used to be incompatible with GCC.
9097       # ICC 10 doesn't accept -KPIC any more.
9098       icc* | ifort*)
9099         lt_prog_compiler_wl='-Wl,'
9100         lt_prog_compiler_pic='-fPIC'
9101         lt_prog_compiler_static='-static'
9102         ;;
9103       # Lahey Fortran 8.1.
9104       lf95*)
9105         lt_prog_compiler_wl='-Wl,'
9106         lt_prog_compiler_pic='--shared'
9107         lt_prog_compiler_static='--static'
9108         ;;
9109       nagfor*)
9110         # NAG Fortran compiler
9111         lt_prog_compiler_wl='-Wl,-Wl,,'
9112         lt_prog_compiler_pic='-PIC'
9113         lt_prog_compiler_static='-Bstatic'
9114         ;;
9115       tcc*)
9116         # Fabrice Bellard et al's Tiny C Compiler
9117         lt_prog_compiler_wl='-Wl,'
9118         lt_prog_compiler_pic='-fPIC'
9119         lt_prog_compiler_static='-static'
9120         ;;
9121       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9122         # Portland Group compilers (*not* the Pentium gcc compiler,
9123         # which looks to be a dead project)
9124         lt_prog_compiler_wl='-Wl,'
9125         lt_prog_compiler_pic='-fpic'
9126         lt_prog_compiler_static='-Bstatic'
9127         ;;
9128       ccc*)
9129         lt_prog_compiler_wl='-Wl,'
9130         # All Alpha code is PIC.
9131         lt_prog_compiler_static='-non_shared'
9132         ;;
9133       xl* | bgxl* | bgf* | mpixl*)
9134         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9135         lt_prog_compiler_wl='-Wl,'
9136         lt_prog_compiler_pic='-qpic'
9137         lt_prog_compiler_static='-qstaticlink'
9138         ;;
9139       *)
9140         case `$CC -V 2>&1 | sed 5q` in
9141         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9142           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9143           lt_prog_compiler_pic='-KPIC'
9144           lt_prog_compiler_static='-Bstatic'
9145           lt_prog_compiler_wl=''
9146           ;;
9147         *Sun\ F* | *Sun*Fortran*)
9148           lt_prog_compiler_pic='-KPIC'
9149           lt_prog_compiler_static='-Bstatic'
9150           lt_prog_compiler_wl='-Qoption ld '
9151           ;;
9152         *Sun\ C*)
9153           # Sun C 5.9
9154           lt_prog_compiler_pic='-KPIC'
9155           lt_prog_compiler_static='-Bstatic'
9156           lt_prog_compiler_wl='-Wl,'
9157           ;;
9158         *Intel*\ [CF]*Compiler*)
9159           lt_prog_compiler_wl='-Wl,'
9160           lt_prog_compiler_pic='-fPIC'
9161           lt_prog_compiler_static='-static'
9162           ;;
9163         *Portland\ Group*)
9164           lt_prog_compiler_wl='-Wl,'
9165           lt_prog_compiler_pic='-fpic'
9166           lt_prog_compiler_static='-Bstatic'
9167           ;;
9168         esac
9169         ;;
9170       esac
9171       ;;
9172
9173     newsos6)
9174       lt_prog_compiler_pic='-KPIC'
9175       lt_prog_compiler_static='-Bstatic'
9176       ;;
9177
9178     *nto* | *qnx*)
9179       # QNX uses GNU C++, but need to define -shared option too, otherwise
9180       # it will coredump.
9181       lt_prog_compiler_pic='-fPIC -shared'
9182       ;;
9183
9184     osf3* | osf4* | osf5*)
9185       lt_prog_compiler_wl='-Wl,'
9186       # All OSF/1 code is PIC.
9187       lt_prog_compiler_static='-non_shared'
9188       ;;
9189
9190     rdos*)
9191       lt_prog_compiler_static='-non_shared'
9192       ;;
9193
9194     solaris*)
9195       lt_prog_compiler_pic='-KPIC'
9196       lt_prog_compiler_static='-Bstatic'
9197       case $cc_basename in
9198       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9199         lt_prog_compiler_wl='-Qoption ld ';;
9200       *)
9201         lt_prog_compiler_wl='-Wl,';;
9202       esac
9203       ;;
9204
9205     sunos4*)
9206       lt_prog_compiler_wl='-Qoption ld '
9207       lt_prog_compiler_pic='-PIC'
9208       lt_prog_compiler_static='-Bstatic'
9209       ;;
9210
9211     sysv4 | sysv4.2uw2* | sysv4.3*)
9212       lt_prog_compiler_wl='-Wl,'
9213       lt_prog_compiler_pic='-KPIC'
9214       lt_prog_compiler_static='-Bstatic'
9215       ;;
9216
9217     sysv4*MP*)
9218       if test -d /usr/nec; then
9219         lt_prog_compiler_pic='-Kconform_pic'
9220         lt_prog_compiler_static='-Bstatic'
9221       fi
9222       ;;
9223
9224     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9225       lt_prog_compiler_wl='-Wl,'
9226       lt_prog_compiler_pic='-KPIC'
9227       lt_prog_compiler_static='-Bstatic'
9228       ;;
9229
9230     unicos*)
9231       lt_prog_compiler_wl='-Wl,'
9232       lt_prog_compiler_can_build_shared=no
9233       ;;
9234
9235     uts4*)
9236       lt_prog_compiler_pic='-pic'
9237       lt_prog_compiler_static='-Bstatic'
9238       ;;
9239
9240     *)
9241       lt_prog_compiler_can_build_shared=no
9242       ;;
9243     esac
9244   fi
9245
9246 case $host_os in
9247   # For platforms that do not support PIC, -DPIC is meaningless:
9248   *djgpp*)
9249     lt_prog_compiler_pic=
9250     ;;
9251   *)
9252     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9253     ;;
9254 esac
9255
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9257 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9258 if ${lt_cv_prog_compiler_pic+:} false; then :
9259   $as_echo_n "(cached) " >&6
9260 else
9261   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9264 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9265 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9266
9267 #
9268 # Check to make sure the PIC flag actually works.
9269 #
9270 if test -n "$lt_prog_compiler_pic"; then
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9272 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9273 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9274   $as_echo_n "(cached) " >&6
9275 else
9276   lt_cv_prog_compiler_pic_works=no
9277    ac_outfile=conftest.$ac_objext
9278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9280    # Insert the option either (1) after the last *FLAGS variable, or
9281    # (2) before a word containing "conftest.", or (3) at the end.
9282    # Note that $ac_compile itself does not contain backslashes and begins
9283    # with a dollar sign (not a hyphen), so the echo should work correctly.
9284    # The option is referenced via a variable to avoid confusing sed.
9285    lt_compile=`echo "$ac_compile" | $SED \
9286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288    -e 's:$: $lt_compiler_flag:'`
9289    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290    (eval "$lt_compile" 2>conftest.err)
9291    ac_status=$?
9292    cat conftest.err >&5
9293    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294    if (exit $ac_status) && test -s "$ac_outfile"; then
9295      # The compiler can only warn and ignore the option if not recognized
9296      # So say no if there are warnings other than the usual output.
9297      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300        lt_cv_prog_compiler_pic_works=yes
9301      fi
9302    fi
9303    $RM conftest*
9304
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9307 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9308
9309 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9310     case $lt_prog_compiler_pic in
9311      "" | " "*) ;;
9312      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9313      esac
9314 else
9315     lt_prog_compiler_pic=
9316      lt_prog_compiler_can_build_shared=no
9317 fi
9318
9319 fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331 #
9332 # Check to make sure the static flag actually works.
9333 #
9334 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9336 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9337 if ${lt_cv_prog_compiler_static_works+:} false; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   lt_cv_prog_compiler_static_works=no
9341    save_LDFLAGS=$LDFLAGS
9342    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9343    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9344    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9345      # The linker can only warn and ignore the option if not recognized
9346      # So say no if there are warnings
9347      if test -s conftest.err; then
9348        # Append any errors to the config.log.
9349        cat conftest.err 1>&5
9350        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9351        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352        if diff conftest.exp conftest.er2 >/dev/null; then
9353          lt_cv_prog_compiler_static_works=yes
9354        fi
9355      else
9356        lt_cv_prog_compiler_static_works=yes
9357      fi
9358    fi
9359    $RM -r conftest*
9360    LDFLAGS=$save_LDFLAGS
9361
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9364 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9365
9366 if test yes = "$lt_cv_prog_compiler_static_works"; then
9367     :
9368 else
9369     lt_prog_compiler_static=
9370 fi
9371
9372
9373
9374
9375
9376
9377
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9379 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9380 if ${lt_cv_prog_compiler_c_o+:} false; then :
9381   $as_echo_n "(cached) " >&6
9382 else
9383   lt_cv_prog_compiler_c_o=no
9384    $RM -r conftest 2>/dev/null
9385    mkdir conftest
9386    cd conftest
9387    mkdir out
9388    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9389
9390    lt_compiler_flag="-o out/conftest2.$ac_objext"
9391    # Insert the option either (1) after the last *FLAGS variable, or
9392    # (2) before a word containing "conftest.", or (3) at the end.
9393    # Note that $ac_compile itself does not contain backslashes and begins
9394    # with a dollar sign (not a hyphen), so the echo should work correctly.
9395    lt_compile=`echo "$ac_compile" | $SED \
9396    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398    -e 's:$: $lt_compiler_flag:'`
9399    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9400    (eval "$lt_compile" 2>out/conftest.err)
9401    ac_status=$?
9402    cat out/conftest.err >&5
9403    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9405    then
9406      # The compiler can only warn and ignore the option if not recognized
9407      # So say no if there are warnings
9408      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9409      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9410      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9411        lt_cv_prog_compiler_c_o=yes
9412      fi
9413    fi
9414    chmod u+w . 2>&5
9415    $RM conftest*
9416    # SGI C++ compiler will create directory out/ii_files/ for
9417    # template instantiation
9418    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9419    $RM out/* && rmdir out
9420    cd ..
9421    $RM -r conftest
9422    $RM conftest*
9423
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9426 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9427
9428
9429
9430
9431
9432
9433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9434 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9435 if ${lt_cv_prog_compiler_c_o+:} false; then :
9436   $as_echo_n "(cached) " >&6
9437 else
9438   lt_cv_prog_compiler_c_o=no
9439    $RM -r conftest 2>/dev/null
9440    mkdir conftest
9441    cd conftest
9442    mkdir out
9443    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444
9445    lt_compiler_flag="-o out/conftest2.$ac_objext"
9446    # Insert the option either (1) after the last *FLAGS variable, or
9447    # (2) before a word containing "conftest.", or (3) at the end.
9448    # Note that $ac_compile itself does not contain backslashes and begins
9449    # with a dollar sign (not a hyphen), so the echo should work correctly.
9450    lt_compile=`echo "$ac_compile" | $SED \
9451    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453    -e 's:$: $lt_compiler_flag:'`
9454    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455    (eval "$lt_compile" 2>out/conftest.err)
9456    ac_status=$?
9457    cat out/conftest.err >&5
9458    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9460    then
9461      # The compiler can only warn and ignore the option if not recognized
9462      # So say no if there are warnings
9463      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9464      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9465      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9466        lt_cv_prog_compiler_c_o=yes
9467      fi
9468    fi
9469    chmod u+w . 2>&5
9470    $RM conftest*
9471    # SGI C++ compiler will create directory out/ii_files/ for
9472    # template instantiation
9473    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9474    $RM out/* && rmdir out
9475    cd ..
9476    $RM -r conftest
9477    $RM conftest*
9478
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9481 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9482
9483
9484
9485
9486 hard_links=nottested
9487 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9488   # do not overwrite the value of need_locks provided by the user
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9490 $as_echo_n "checking if we can lock with hard links... " >&6; }
9491   hard_links=yes
9492   $RM conftest*
9493   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9494   touch conftest.a
9495   ln conftest.a conftest.b 2>&5 || hard_links=no
9496   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9498 $as_echo "$hard_links" >&6; }
9499   if test no = "$hard_links"; then
9500     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9501 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9502     need_locks=warn
9503   fi
9504 else
9505   need_locks=no
9506 fi
9507
9508
9509
9510
9511
9512
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9515
9516   runpath_var=
9517   allow_undefined_flag=
9518   always_export_symbols=no
9519   archive_cmds=
9520   archive_expsym_cmds=
9521   compiler_needs_object=no
9522   enable_shared_with_static_runtimes=no
9523   export_dynamic_flag_spec=
9524   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9525   hardcode_automatic=no
9526   hardcode_direct=no
9527   hardcode_direct_absolute=no
9528   hardcode_libdir_flag_spec=
9529   hardcode_libdir_separator=
9530   hardcode_minus_L=no
9531   hardcode_shlibpath_var=unsupported
9532   inherit_rpath=no
9533   link_all_deplibs=unknown
9534   module_cmds=
9535   module_expsym_cmds=
9536   old_archive_from_new_cmds=
9537   old_archive_from_expsyms_cmds=
9538   thread_safe_flag_spec=
9539   whole_archive_flag_spec=
9540   # include_expsyms should be a list of space-separated symbols to be *always*
9541   # included in the symbol list
9542   include_expsyms=
9543   # exclude_expsyms can be an extended regexp of symbols to exclude
9544   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9545   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9546   # as well as any symbol that contains 'd'.
9547   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9548   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9549   # platforms (ab)use it in PIC code, but their linkers get confused if
9550   # the symbol is explicitly referenced.  Since portable code cannot
9551   # rely on this symbol name, it's probably fine to never include it in
9552   # preloaded symbol tables.
9553   # Exclude shared library initialization/finalization symbols.
9554   extract_expsyms_cmds=
9555
9556   case $host_os in
9557   cygwin* | mingw* | pw32* | cegcc*)
9558     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9559     # When not using gcc, we currently assume that we are using
9560     # Microsoft Visual C++.
9561     if test yes != "$GCC"; then
9562       with_gnu_ld=no
9563     fi
9564     ;;
9565   interix*)
9566     # we just hope/assume this is gcc and not c89 (= MSVC++)
9567     with_gnu_ld=yes
9568     ;;
9569   openbsd* | bitrig*)
9570     with_gnu_ld=no
9571     ;;
9572   linux* | k*bsd*-gnu | gnu*)
9573     link_all_deplibs=no
9574     ;;
9575   esac
9576
9577   ld_shlibs=yes
9578
9579   # On some targets, GNU ld is compatible enough with the native linker
9580   # that we're better off using the native interface for both.
9581   lt_use_gnu_ld_interface=no
9582   if test yes = "$with_gnu_ld"; then
9583     case $host_os in
9584       aix*)
9585         # The AIX port of GNU ld has always aspired to compatibility
9586         # with the native linker.  However, as the warning in the GNU ld
9587         # block says, versions before 2.19.5* couldn't really create working
9588         # shared libraries, regardless of the interface used.
9589         case `$LD -v 2>&1` in
9590           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9591           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9592           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9593           *)
9594             lt_use_gnu_ld_interface=yes
9595             ;;
9596         esac
9597         ;;
9598       *)
9599         lt_use_gnu_ld_interface=yes
9600         ;;
9601     esac
9602   fi
9603
9604   if test yes = "$lt_use_gnu_ld_interface"; then
9605     # If archive_cmds runs LD, not CC, wlarc should be empty
9606     wlarc='$wl'
9607
9608     # Set some defaults for GNU ld with shared library support. These
9609     # are reset later if shared libraries are not supported. Putting them
9610     # here allows them to be overridden if necessary.
9611     runpath_var=LD_RUN_PATH
9612     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9613     export_dynamic_flag_spec='$wl--export-dynamic'
9614     # ancient GNU ld didn't support --whole-archive et. al.
9615     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9616       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9617     else
9618       whole_archive_flag_spec=
9619     fi
9620     supports_anon_versioning=no
9621     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9622       *GNU\ gold*) supports_anon_versioning=yes ;;
9623       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9624       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9625       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9626       *\ 2.11.*) ;; # other 2.11 versions
9627       *) supports_anon_versioning=yes ;;
9628     esac
9629
9630     # See if GNU ld supports shared libraries.
9631     case $host_os in
9632     aix[3-9]*)
9633       # On AIX/PPC, the GNU linker is very broken
9634       if test ia64 != "$host_cpu"; then
9635         ld_shlibs=no
9636         cat <<_LT_EOF 1>&2
9637
9638 *** Warning: the GNU linker, at least up to release 2.19, is reported
9639 *** to be unable to reliably create shared libraries on AIX.
9640 *** Therefore, libtool is disabling shared libraries support.  If you
9641 *** really care for shared libraries, you may want to install binutils
9642 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9643 *** You will then need to restart the configuration process.
9644
9645 _LT_EOF
9646       fi
9647       ;;
9648
9649     amigaos*)
9650       case $host_cpu in
9651       powerpc)
9652             # see comment about AmigaOS4 .so support
9653             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9654             archive_expsym_cmds=''
9655         ;;
9656       m68k)
9657             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)'
9658             hardcode_libdir_flag_spec='-L$libdir'
9659             hardcode_minus_L=yes
9660         ;;
9661       esac
9662       ;;
9663
9664     beos*)
9665       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9666         allow_undefined_flag=unsupported
9667         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9668         # support --undefined.  This deserves some investigation.  FIXME
9669         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9670       else
9671         ld_shlibs=no
9672       fi
9673       ;;
9674
9675     cygwin* | mingw* | pw32* | cegcc*)
9676       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9677       # as there is no search path for DLLs.
9678       hardcode_libdir_flag_spec='-L$libdir'
9679       export_dynamic_flag_spec='$wl--export-all-symbols'
9680       allow_undefined_flag=unsupported
9681       always_export_symbols=no
9682       enable_shared_with_static_runtimes=yes
9683       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'
9684       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9685
9686       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9687         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688         # If the export-symbols file already is a .def file, use it as
9689         # is; otherwise, prepend EXPORTS...
9690         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9691           cp $export_symbols $output_objdir/$soname.def;
9692         else
9693           echo EXPORTS > $output_objdir/$soname.def;
9694           cat $export_symbols >> $output_objdir/$soname.def;
9695         fi~
9696         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697       else
9698         ld_shlibs=no
9699       fi
9700       ;;
9701
9702     haiku*)
9703       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9704       link_all_deplibs=yes
9705       ;;
9706
9707     os2*)
9708       hardcode_libdir_flag_spec='-L$libdir'
9709       hardcode_minus_L=yes
9710       allow_undefined_flag=unsupported
9711       shrext_cmds=.dll
9712       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9713         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9714         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9715         $ECHO EXPORTS >> $output_objdir/$libname.def~
9716         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9717         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9718         emximp -o $lib $output_objdir/$libname.def'
9719       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9720         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9721         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9722         $ECHO EXPORTS >> $output_objdir/$libname.def~
9723         prefix_cmds="$SED"~
9724         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9725           prefix_cmds="$prefix_cmds -e 1d";
9726         fi~
9727         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9728         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9729         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9730         emximp -o $lib $output_objdir/$libname.def'
9731       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9732       enable_shared_with_static_runtimes=yes
9733       ;;
9734
9735     interix[3-9]*)
9736       hardcode_direct=no
9737       hardcode_shlibpath_var=no
9738       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9739       export_dynamic_flag_spec='$wl-E'
9740       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9741       # Instead, shared libraries are loaded at an image base (0x10000000 by
9742       # default) and relocated if they conflict, which is a slow very memory
9743       # consuming and fragmenting process.  To avoid this, we pick a random,
9744       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9745       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9746       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9747       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'
9748       ;;
9749
9750     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9751       tmp_diet=no
9752       if test linux-dietlibc = "$host_os"; then
9753         case $cc_basename in
9754           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9755         esac
9756       fi
9757       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9758          && test no = "$tmp_diet"
9759       then
9760         tmp_addflag=' $pic_flag'
9761         tmp_sharedflag='-shared'
9762         case $cc_basename,$host_cpu in
9763         pgcc*)                          # Portland Group C compiler
9764           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'
9765           tmp_addflag=' $pic_flag'
9766           ;;
9767         pgf77* | pgf90* | pgf95* | pgfortran*)
9768                                         # Portland Group f77 and f90 compilers
9769           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'
9770           tmp_addflag=' $pic_flag -Mnomain' ;;
9771         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9772           tmp_addflag=' -i_dynamic' ;;
9773         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9774           tmp_addflag=' -i_dynamic -nofor_main' ;;
9775         ifc* | ifort*)                  # Intel Fortran compiler
9776           tmp_addflag=' -nofor_main' ;;
9777         lf95*)                          # Lahey Fortran 8.1
9778           whole_archive_flag_spec=
9779           tmp_sharedflag='--shared' ;;
9780         nagfor*)                        # NAGFOR 5.3
9781           tmp_sharedflag='-Wl,-shared' ;;
9782         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9783           tmp_sharedflag='-qmkshrobj'
9784           tmp_addflag= ;;
9785         nvcc*)  # Cuda Compiler Driver 2.2
9786           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'
9787           compiler_needs_object=yes
9788           ;;
9789         esac
9790         case `$CC -V 2>&1 | sed 5q` in
9791         *Sun\ C*)                       # Sun C 5.9
9792           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'
9793           compiler_needs_object=yes
9794           tmp_sharedflag='-G' ;;
9795         *Sun\ F*)                       # Sun Fortran 8.3
9796           tmp_sharedflag='-G' ;;
9797         esac
9798         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9799
9800         if test yes = "$supports_anon_versioning"; then
9801           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9802             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9803             echo "local: *; };" >> $output_objdir/$libname.ver~
9804             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9805         fi
9806
9807         case $cc_basename in
9808         tcc*)
9809           export_dynamic_flag_spec='-rdynamic'
9810           ;;
9811         xlf* | bgf* | bgxlf* | mpixlf*)
9812           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9813           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9814           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9815           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9816           if test yes = "$supports_anon_versioning"; then
9817             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9818               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9819               echo "local: *; };" >> $output_objdir/$libname.ver~
9820               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9821           fi
9822           ;;
9823         esac
9824       else
9825         ld_shlibs=no
9826       fi
9827       ;;
9828
9829     netbsd* | netbsdelf*-gnu)
9830       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9832         wlarc=
9833       else
9834         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9835         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9836       fi
9837       ;;
9838
9839     solaris*)
9840       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9841         ld_shlibs=no
9842         cat <<_LT_EOF 1>&2
9843
9844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9845 *** create shared libraries on Solaris systems.  Therefore, libtool
9846 *** is disabling shared libraries support.  We urge you to upgrade GNU
9847 *** binutils to release 2.9.1 or newer.  Another option is to modify
9848 *** your PATH or compiler configuration so that the native linker is
9849 *** used, and then restart.
9850
9851 _LT_EOF
9852       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9853         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9855       else
9856         ld_shlibs=no
9857       fi
9858       ;;
9859
9860     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9861       case `$LD -v 2>&1` in
9862         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9863         ld_shlibs=no
9864         cat <<_LT_EOF 1>&2
9865
9866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9867 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9868 *** is disabling shared libraries support.  We urge you to upgrade GNU
9869 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9870 *** your PATH or compiler configuration so that the native linker is
9871 *** used, and then restart.
9872
9873 _LT_EOF
9874         ;;
9875         *)
9876           # For security reasons, it is highly recommended that you always
9877           # use absolute paths for naming shared libraries, and exclude the
9878           # DT_RUNPATH tag from executables and libraries.  But doing so
9879           # requires that you compile everything twice, which is a pain.
9880           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9881             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9882             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9884           else
9885             ld_shlibs=no
9886           fi
9887         ;;
9888       esac
9889       ;;
9890
9891     sunos4*)
9892       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9893       wlarc=
9894       hardcode_direct=yes
9895       hardcode_shlibpath_var=no
9896       ;;
9897
9898     *)
9899       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902       else
9903         ld_shlibs=no
9904       fi
9905       ;;
9906     esac
9907
9908     if test no = "$ld_shlibs"; then
9909       runpath_var=
9910       hardcode_libdir_flag_spec=
9911       export_dynamic_flag_spec=
9912       whole_archive_flag_spec=
9913     fi
9914   else
9915     # PORTME fill in a description of your system's linker (not GNU ld)
9916     case $host_os in
9917     aix3*)
9918       allow_undefined_flag=unsupported
9919       always_export_symbols=yes
9920       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'
9921       # Note: this linker hardcodes the directories in LIBPATH if there
9922       # are no directories specified by -L.
9923       hardcode_minus_L=yes
9924       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9925         # Neither direct hardcoding nor static linking is supported with a
9926         # broken collect2.
9927         hardcode_direct=unsupported
9928       fi
9929       ;;
9930
9931     aix[4-9]*)
9932       if test ia64 = "$host_cpu"; then
9933         # On IA64, the linker does run time linking by default, so we don't
9934         # have to do anything special.
9935         aix_use_runtimelinking=no
9936         exp_sym_flag='-Bexport'
9937         no_entry_flag=
9938       else
9939         # If we're using GNU nm, then we don't want the "-C" option.
9940         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9941         # Without the "-l" option, or with the "-B" option, AIX nm treats
9942         # weak defined symbols like other global defined symbols, whereas
9943         # GNU nm marks them as "W".
9944         # While the 'weak' keyword is ignored in the Export File, we need
9945         # it in the Import File for the 'aix-soname' feature, so we have
9946         # to replace the "-B" option with "-P" for AIX nm.
9947         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9948           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9949         else
9950           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9951         fi
9952         aix_use_runtimelinking=no
9953
9954         # Test if we are trying to use run time linking or normal
9955         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9956         # have runtime linking enabled, and use it for executables.
9957         # For shared libraries, we enable/disable runtime linking
9958         # depending on the kind of the shared library created -
9959         # when "with_aix_soname,aix_use_runtimelinking" is:
9960         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9961         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9962         #            lib.a           static archive
9963         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9964         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9965         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9966         #            lib.a(lib.so.V) shared, rtl:no
9967         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9968         #            lib.a           static archive
9969         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9970           for ld_flag in $LDFLAGS; do
9971           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9972             aix_use_runtimelinking=yes
9973             break
9974           fi
9975           done
9976           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9977             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9978             # so we don't have lib.a shared libs to link our executables.
9979             # We have to force runtime linking in this case.
9980             aix_use_runtimelinking=yes
9981             LDFLAGS="$LDFLAGS -Wl,-brtl"
9982           fi
9983           ;;
9984         esac
9985
9986         exp_sym_flag='-bexport'
9987         no_entry_flag='-bnoentry'
9988       fi
9989
9990       # When large executables or shared objects are built, AIX ld can
9991       # have problems creating the table of contents.  If linking a library
9992       # or program results in "error TOC overflow" add -mminimal-toc to
9993       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9994       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9995
9996       archive_cmds=''
9997       hardcode_direct=yes
9998       hardcode_direct_absolute=yes
9999       hardcode_libdir_separator=':'
10000       link_all_deplibs=yes
10001       file_list_spec='$wl-f,'
10002       case $with_aix_soname,$aix_use_runtimelinking in
10003       aix,*) ;; # traditional, no import file
10004       svr4,* | *,yes) # use import file
10005         # The Import File defines what to hardcode.
10006         hardcode_direct=no
10007         hardcode_direct_absolute=no
10008         ;;
10009       esac
10010
10011       if test yes = "$GCC"; then
10012         case $host_os in aix4.[012]|aix4.[012].*)
10013         # We only want to do this on AIX 4.2 and lower, the check
10014         # below for broken collect2 doesn't work under 4.3+
10015           collect2name=`$CC -print-prog-name=collect2`
10016           if test -f "$collect2name" &&
10017            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10018           then
10019           # We have reworked collect2
10020           :
10021           else
10022           # We have old collect2
10023           hardcode_direct=unsupported
10024           # It fails to find uninstalled libraries when the uninstalled
10025           # path is not listed in the libpath.  Setting hardcode_minus_L
10026           # to unsupported forces relinking
10027           hardcode_minus_L=yes
10028           hardcode_libdir_flag_spec='-L$libdir'
10029           hardcode_libdir_separator=
10030           fi
10031           ;;
10032         esac
10033         shared_flag='-shared'
10034         if test yes = "$aix_use_runtimelinking"; then
10035           shared_flag="$shared_flag "'$wl-G'
10036         fi
10037         # Need to ensure runtime linking is disabled for the traditional
10038         # shared library, or the linker may eventually find shared libraries
10039         # /with/ Import File - we do not want to mix them.
10040         shared_flag_aix='-shared'
10041         shared_flag_svr4='-shared $wl-G'
10042       else
10043         # not using gcc
10044         if test ia64 = "$host_cpu"; then
10045         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10046         # chokes on -Wl,-G. The following line is correct:
10047           shared_flag='-G'
10048         else
10049           if test yes = "$aix_use_runtimelinking"; then
10050             shared_flag='$wl-G'
10051           else
10052             shared_flag='$wl-bM:SRE'
10053           fi
10054           shared_flag_aix='$wl-bM:SRE'
10055           shared_flag_svr4='$wl-G'
10056         fi
10057       fi
10058
10059       export_dynamic_flag_spec='$wl-bexpall'
10060       # It seems that -bexpall does not export symbols beginning with
10061       # underscore (_), so it is better to generate a list of symbols to export.
10062       always_export_symbols=yes
10063       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10064         # Warning - without using the other runtime loading flags (-brtl),
10065         # -berok will link without error, but may produce a broken library.
10066         allow_undefined_flag='-berok'
10067         # Determine the default libpath from the value encoded in an
10068         # empty executable.
10069         if test set = "${lt_cv_aix_libpath+set}"; then
10070   aix_libpath=$lt_cv_aix_libpath
10071 else
10072   if ${lt_cv_aix_libpath_+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077
10078 int
10079 main ()
10080 {
10081
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 if ac_fn_c_try_link "$LINENO"; then :
10087
10088   lt_aix_libpath_sed='
10089       /Import File Strings/,/^$/ {
10090           /^0/ {
10091               s/^0  *\([^ ]*\) *$/\1/
10092               p
10093           }
10094       }'
10095   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096   # Check for a 64-bit object if we didn't find anything.
10097   if test -z "$lt_cv_aix_libpath_"; then
10098     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099   fi
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102     conftest$ac_exeext conftest.$ac_ext
10103   if test -z "$lt_cv_aix_libpath_"; then
10104     lt_cv_aix_libpath_=/usr/lib:/lib
10105   fi
10106
10107 fi
10108
10109   aix_libpath=$lt_cv_aix_libpath_
10110 fi
10111
10112         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10113         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10114       else
10115         if test ia64 = "$host_cpu"; then
10116           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10117           allow_undefined_flag="-z nodefs"
10118           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"
10119         else
10120          # Determine the default libpath from the value encoded in an
10121          # empty executable.
10122          if test set = "${lt_cv_aix_libpath+set}"; then
10123   aix_libpath=$lt_cv_aix_libpath
10124 else
10125   if ${lt_cv_aix_libpath_+:} false; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h.  */
10130
10131 int
10132 main ()
10133 {
10134
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140
10141   lt_aix_libpath_sed='
10142       /Import File Strings/,/^$/ {
10143           /^0/ {
10144               s/^0  *\([^ ]*\) *$/\1/
10145               p
10146           }
10147       }'
10148   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149   # Check for a 64-bit object if we didn't find anything.
10150   if test -z "$lt_cv_aix_libpath_"; then
10151     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152   fi
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext \
10155     conftest$ac_exeext conftest.$ac_ext
10156   if test -z "$lt_cv_aix_libpath_"; then
10157     lt_cv_aix_libpath_=/usr/lib:/lib
10158   fi
10159
10160 fi
10161
10162   aix_libpath=$lt_cv_aix_libpath_
10163 fi
10164
10165          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10166           # Warning - without using the other run time loading flags,
10167           # -berok will link without error, but may produce a broken library.
10168           no_undefined_flag=' $wl-bernotok'
10169           allow_undefined_flag=' $wl-berok'
10170           if test yes = "$with_gnu_ld"; then
10171             # We only use this code for GNU lds that support --whole-archive.
10172             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10173           else
10174             # Exported symbols can be pulled into shared objects from archives
10175             whole_archive_flag_spec='$convenience'
10176           fi
10177           archive_cmds_need_lc=yes
10178           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10179           # -brtl affects multiple linker settings, -berok does not and is overridden later
10180           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10181           if test svr4 != "$with_aix_soname"; then
10182             # This is similar to how AIX traditionally builds its shared libraries.
10183             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10184           fi
10185           if test aix != "$with_aix_soname"; then
10186             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10187           else
10188             # used by -dlpreopen to get the symbols
10189             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10190           fi
10191           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10192         fi
10193       fi
10194       ;;
10195
10196     amigaos*)
10197       case $host_cpu in
10198       powerpc)
10199             # see comment about AmigaOS4 .so support
10200             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10201             archive_expsym_cmds=''
10202         ;;
10203       m68k)
10204             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)'
10205             hardcode_libdir_flag_spec='-L$libdir'
10206             hardcode_minus_L=yes
10207         ;;
10208       esac
10209       ;;
10210
10211     bsdi[45]*)
10212       export_dynamic_flag_spec=-rdynamic
10213       ;;
10214
10215     cygwin* | mingw* | pw32* | cegcc*)
10216       # When not using gcc, we currently assume that we are using
10217       # Microsoft Visual C++.
10218       # hardcode_libdir_flag_spec is actually meaningless, as there is
10219       # no search path for DLLs.
10220       case $cc_basename in
10221       cl*)
10222         # Native MSVC
10223         hardcode_libdir_flag_spec=' '
10224         allow_undefined_flag=unsupported
10225         always_export_symbols=yes
10226         file_list_spec='@'
10227         # Tell ltmain to make .lib files, not .a files.
10228         libext=lib
10229         # Tell ltmain to make .dll files, not .so files.
10230         shrext_cmds=.dll
10231         # FIXME: Setting linknames here is a bad hack.
10232         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10233         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10234             cp "$export_symbols" "$output_objdir/$soname.def";
10235             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10236           else
10237             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10238           fi~
10239           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10240           linknames='
10241         # The linker will not automatically build a static lib if we build a DLL.
10242         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10243         enable_shared_with_static_runtimes=yes
10244         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10245         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10246         # Don't use ranlib
10247         old_postinstall_cmds='chmod 644 $oldlib'
10248         postlink_cmds='lt_outputfile="@OUTPUT@"~
10249           lt_tool_outputfile="@TOOL_OUTPUT@"~
10250           case $lt_outputfile in
10251             *.exe|*.EXE) ;;
10252             *)
10253               lt_outputfile=$lt_outputfile.exe
10254               lt_tool_outputfile=$lt_tool_outputfile.exe
10255               ;;
10256           esac~
10257           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10258             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10259             $RM "$lt_outputfile.manifest";
10260           fi'
10261         ;;
10262       *)
10263         # Assume MSVC wrapper
10264         hardcode_libdir_flag_spec=' '
10265         allow_undefined_flag=unsupported
10266         # Tell ltmain to make .lib files, not .a files.
10267         libext=lib
10268         # Tell ltmain to make .dll files, not .so files.
10269         shrext_cmds=.dll
10270         # FIXME: Setting linknames here is a bad hack.
10271         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10272         # The linker will automatically build a .lib file if we build a DLL.
10273         old_archive_from_new_cmds='true'
10274         # FIXME: Should let the user specify the lib program.
10275         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10276         enable_shared_with_static_runtimes=yes
10277         ;;
10278       esac
10279       ;;
10280
10281     darwin* | rhapsody*)
10282
10283
10284   archive_cmds_need_lc=no
10285   hardcode_direct=no
10286   hardcode_automatic=yes
10287   hardcode_shlibpath_var=unsupported
10288   if test yes = "$lt_cv_ld_force_load"; then
10289     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\"`'
10290
10291   else
10292     whole_archive_flag_spec=''
10293   fi
10294   link_all_deplibs=yes
10295   allow_undefined_flag=$_lt_dar_allow_undefined
10296   case $cc_basename in
10297      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10298      *) _lt_dar_can_shared=$GCC ;;
10299   esac
10300   if test yes = "$_lt_dar_can_shared"; then
10301     output_verbose_link_cmd=func_echo_all
10302     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10303     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10304     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"
10305     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"
10306
10307   else
10308   ld_shlibs=no
10309   fi
10310
10311       ;;
10312
10313     dgux*)
10314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315       hardcode_libdir_flag_spec='-L$libdir'
10316       hardcode_shlibpath_var=no
10317       ;;
10318
10319     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10320     # support.  Future versions do this automatically, but an explicit c++rt0.o
10321     # does not break anything, and helps significantly (at the cost of a little
10322     # extra space).
10323     freebsd2.2*)
10324       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10325       hardcode_libdir_flag_spec='-R$libdir'
10326       hardcode_direct=yes
10327       hardcode_shlibpath_var=no
10328       ;;
10329
10330     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10331     freebsd2.*)
10332       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10333       hardcode_direct=yes
10334       hardcode_minus_L=yes
10335       hardcode_shlibpath_var=no
10336       ;;
10337
10338     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10339     freebsd* | dragonfly*)
10340       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10341       hardcode_libdir_flag_spec='-R$libdir'
10342       hardcode_direct=yes
10343       hardcode_shlibpath_var=no
10344       ;;
10345
10346     hpux9*)
10347       if test yes = "$GCC"; then
10348         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10349       else
10350         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10351       fi
10352       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10353       hardcode_libdir_separator=:
10354       hardcode_direct=yes
10355
10356       # hardcode_minus_L: Not really in the search PATH,
10357       # but as the default location of the library.
10358       hardcode_minus_L=yes
10359       export_dynamic_flag_spec='$wl-E'
10360       ;;
10361
10362     hpux10*)
10363       if test yes,no = "$GCC,$with_gnu_ld"; then
10364         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10365       else
10366         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10367       fi
10368       if test no = "$with_gnu_ld"; then
10369         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10370         hardcode_libdir_separator=:
10371         hardcode_direct=yes
10372         hardcode_direct_absolute=yes
10373         export_dynamic_flag_spec='$wl-E'
10374         # hardcode_minus_L: Not really in the search PATH,
10375         # but as the default location of the library.
10376         hardcode_minus_L=yes
10377       fi
10378       ;;
10379
10380     hpux11*)
10381       if test yes,no = "$GCC,$with_gnu_ld"; then
10382         case $host_cpu in
10383         hppa*64*)
10384           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10385           ;;
10386         ia64*)
10387           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10388           ;;
10389         *)
10390           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391           ;;
10392         esac
10393       else
10394         case $host_cpu in
10395         hppa*64*)
10396           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10397           ;;
10398         ia64*)
10399           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10400           ;;
10401         *)
10402
10403           # Older versions of the 11.00 compiler do not understand -b yet
10404           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10405           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10406 $as_echo_n "checking if $CC understands -b... " >&6; }
10407 if ${lt_cv_prog_compiler__b+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   lt_cv_prog_compiler__b=no
10411    save_LDFLAGS=$LDFLAGS
10412    LDFLAGS="$LDFLAGS -b"
10413    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10415      # The linker can only warn and ignore the option if not recognized
10416      # So say no if there are warnings
10417      if test -s conftest.err; then
10418        # Append any errors to the config.log.
10419        cat conftest.err 1>&5
10420        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422        if diff conftest.exp conftest.er2 >/dev/null; then
10423          lt_cv_prog_compiler__b=yes
10424        fi
10425      else
10426        lt_cv_prog_compiler__b=yes
10427      fi
10428    fi
10429    $RM -r conftest*
10430    LDFLAGS=$save_LDFLAGS
10431
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10434 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10435
10436 if test yes = "$lt_cv_prog_compiler__b"; then
10437     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10438 else
10439     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10440 fi
10441
10442           ;;
10443         esac
10444       fi
10445       if test no = "$with_gnu_ld"; then
10446         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10447         hardcode_libdir_separator=:
10448
10449         case $host_cpu in
10450         hppa*64*|ia64*)
10451           hardcode_direct=no
10452           hardcode_shlibpath_var=no
10453           ;;
10454         *)
10455           hardcode_direct=yes
10456           hardcode_direct_absolute=yes
10457           export_dynamic_flag_spec='$wl-E'
10458
10459           # hardcode_minus_L: Not really in the search PATH,
10460           # but as the default location of the library.
10461           hardcode_minus_L=yes
10462           ;;
10463         esac
10464       fi
10465       ;;
10466
10467     irix5* | irix6* | nonstopux*)
10468       if test yes = "$GCC"; then
10469         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'
10470         # Try to use the -exported_symbol ld option, if it does not
10471         # work, assume that -exports_file does not work either and
10472         # implicitly export all symbols.
10473         # This should be the same for all languages, so no per-tag cache variable.
10474         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10475 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10476 if ${lt_cv_irix_exported_symbol+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   save_LDFLAGS=$LDFLAGS
10480            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10481            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h.  */
10483 int foo (void) { return 0; }
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486   lt_cv_irix_exported_symbol=yes
10487 else
10488   lt_cv_irix_exported_symbol=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext \
10491     conftest$ac_exeext conftest.$ac_ext
10492            LDFLAGS=$save_LDFLAGS
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10495 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10496         if test yes = "$lt_cv_irix_exported_symbol"; then
10497           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'
10498         fi
10499         link_all_deplibs=no
10500       else
10501         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'
10502         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'
10503       fi
10504       archive_cmds_need_lc='no'
10505       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10506       hardcode_libdir_separator=:
10507       inherit_rpath=yes
10508       link_all_deplibs=yes
10509       ;;
10510
10511     linux*)
10512       case $cc_basename in
10513       tcc*)
10514         # Fabrice Bellard et al's Tiny C Compiler
10515         ld_shlibs=yes
10516         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10517         ;;
10518       esac
10519       ;;
10520
10521     netbsd* | netbsdelf*-gnu)
10522       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10523         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10524       else
10525         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10526       fi
10527       hardcode_libdir_flag_spec='-R$libdir'
10528       hardcode_direct=yes
10529       hardcode_shlibpath_var=no
10530       ;;
10531
10532     newsos6)
10533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_direct=yes
10535       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10536       hardcode_libdir_separator=:
10537       hardcode_shlibpath_var=no
10538       ;;
10539
10540     *nto* | *qnx*)
10541       ;;
10542
10543     openbsd* | bitrig*)
10544       if test -f /usr/libexec/ld.so; then
10545         hardcode_direct=yes
10546         hardcode_shlibpath_var=no
10547         hardcode_direct_absolute=yes
10548         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10549           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10550           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10551           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10552           export_dynamic_flag_spec='$wl-E'
10553         else
10554           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556         fi
10557       else
10558         ld_shlibs=no
10559       fi
10560       ;;
10561
10562     os2*)
10563       hardcode_libdir_flag_spec='-L$libdir'
10564       hardcode_minus_L=yes
10565       allow_undefined_flag=unsupported
10566       shrext_cmds=.dll
10567       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10568         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10569         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10570         $ECHO EXPORTS >> $output_objdir/$libname.def~
10571         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10572         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10573         emximp -o $lib $output_objdir/$libname.def'
10574       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10575         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10576         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10577         $ECHO EXPORTS >> $output_objdir/$libname.def~
10578         prefix_cmds="$SED"~
10579         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10580           prefix_cmds="$prefix_cmds -e 1d";
10581         fi~
10582         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10583         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10584         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10585         emximp -o $lib $output_objdir/$libname.def'
10586       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10587       enable_shared_with_static_runtimes=yes
10588       ;;
10589
10590     osf3*)
10591       if test yes = "$GCC"; then
10592         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10593         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'
10594       else
10595         allow_undefined_flag=' -expect_unresolved \*'
10596         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'
10597       fi
10598       archive_cmds_need_lc='no'
10599       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10600       hardcode_libdir_separator=:
10601       ;;
10602
10603     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10604       if test yes = "$GCC"; then
10605         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10606         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'
10607         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10608       else
10609         allow_undefined_flag=' -expect_unresolved \*'
10610         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'
10611         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~
10612           $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'
10613
10614         # Both c and cxx compiler support -rpath directly
10615         hardcode_libdir_flag_spec='-rpath $libdir'
10616       fi
10617       archive_cmds_need_lc='no'
10618       hardcode_libdir_separator=:
10619       ;;
10620
10621     solaris*)
10622       no_undefined_flag=' -z defs'
10623       if test yes = "$GCC"; then
10624         wlarc='$wl'
10625         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10626         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627           $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'
10628       else
10629         case `$CC -V 2>&1` in
10630         *"Compilers 5.0"*)
10631           wlarc=''
10632           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10634             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10635           ;;
10636         *)
10637           wlarc='$wl'
10638           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10639           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10640             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10641           ;;
10642         esac
10643       fi
10644       hardcode_libdir_flag_spec='-R$libdir'
10645       hardcode_shlibpath_var=no
10646       case $host_os in
10647       solaris2.[0-5] | solaris2.[0-5].*) ;;
10648       *)
10649         # The compiler driver will combine and reorder linker options,
10650         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10651         # but is careful enough not to reorder.
10652         # Supported since Solaris 2.6 (maybe 2.5.1?)
10653         if test yes = "$GCC"; then
10654           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10655         else
10656           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10657         fi
10658         ;;
10659       esac
10660       link_all_deplibs=yes
10661       ;;
10662
10663     sunos4*)
10664       if test sequent = "$host_vendor"; then
10665         # Use $CC to link under sequent, because it throws in some extra .o
10666         # files that make .init and .fini sections work.
10667         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10668       else
10669         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10670       fi
10671       hardcode_libdir_flag_spec='-L$libdir'
10672       hardcode_direct=yes
10673       hardcode_minus_L=yes
10674       hardcode_shlibpath_var=no
10675       ;;
10676
10677     sysv4)
10678       case $host_vendor in
10679         sni)
10680           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681           hardcode_direct=yes # is this really true???
10682         ;;
10683         siemens)
10684           ## LD is ld it makes a PLAMLIB
10685           ## CC just makes a GrossModule.
10686           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10687           reload_cmds='$CC -r -o $output$reload_objs'
10688           hardcode_direct=no
10689         ;;
10690         motorola)
10691           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10693         ;;
10694       esac
10695       runpath_var='LD_RUN_PATH'
10696       hardcode_shlibpath_var=no
10697       ;;
10698
10699     sysv4.3*)
10700       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701       hardcode_shlibpath_var=no
10702       export_dynamic_flag_spec='-Bexport'
10703       ;;
10704
10705     sysv4*MP*)
10706       if test -d /usr/nec; then
10707         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10708         hardcode_shlibpath_var=no
10709         runpath_var=LD_RUN_PATH
10710         hardcode_runpath_var=yes
10711         ld_shlibs=yes
10712       fi
10713       ;;
10714
10715     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10716       no_undefined_flag='$wl-z,text'
10717       archive_cmds_need_lc=no
10718       hardcode_shlibpath_var=no
10719       runpath_var='LD_RUN_PATH'
10720
10721       if test yes = "$GCC"; then
10722         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10724       else
10725         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10727       fi
10728       ;;
10729
10730     sysv5* | sco3.2v5* | sco5v6*)
10731       # Note: We CANNOT use -z defs as we might desire, because we do not
10732       # link with -lc, and that would cause any symbols used from libc to
10733       # always be unresolved, which means just about no library would
10734       # ever link correctly.  If we're not using GNU ld we use -z text
10735       # though, which does catch some bad symbols but isn't as heavy-handed
10736       # as -z defs.
10737       no_undefined_flag='$wl-z,text'
10738       allow_undefined_flag='$wl-z,nodefs'
10739       archive_cmds_need_lc=no
10740       hardcode_shlibpath_var=no
10741       hardcode_libdir_flag_spec='$wl-R,$libdir'
10742       hardcode_libdir_separator=':'
10743       link_all_deplibs=yes
10744       export_dynamic_flag_spec='$wl-Bexport'
10745       runpath_var='LD_RUN_PATH'
10746
10747       if test yes = "$GCC"; then
10748         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750       else
10751         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753       fi
10754       ;;
10755
10756     uts4*)
10757       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758       hardcode_libdir_flag_spec='-L$libdir'
10759       hardcode_shlibpath_var=no
10760       ;;
10761
10762     *)
10763       ld_shlibs=no
10764       ;;
10765     esac
10766
10767     if test sni = "$host_vendor"; then
10768       case $host in
10769       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10770         export_dynamic_flag_spec='$wl-Blargedynsym'
10771         ;;
10772       esac
10773     fi
10774   fi
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10777 $as_echo "$ld_shlibs" >&6; }
10778 test no = "$ld_shlibs" && can_build_shared=no
10779
10780 with_gnu_ld=$with_gnu_ld
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 #
10797 # Do we need to explicitly link libc?
10798 #
10799 case "x$archive_cmds_need_lc" in
10800 x|xyes)
10801   # Assume -lc should be added
10802   archive_cmds_need_lc=yes
10803
10804   if test yes,yes = "$GCC,$enable_shared"; then
10805     case $archive_cmds in
10806     *'~'*)
10807       # FIXME: we may have to deal with multi-command sequences.
10808       ;;
10809     '$CC '*)
10810       # Test whether the compiler implicitly links with -lc since on some
10811       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10812       # to ld, don't add -lc before -lgcc.
10813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10814 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10815 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10816   $as_echo_n "(cached) " >&6
10817 else
10818   $RM conftest*
10819         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10820
10821         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10822   (eval $ac_compile) 2>&5
10823   ac_status=$?
10824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825   test $ac_status = 0; } 2>conftest.err; then
10826           soname=conftest
10827           lib=conftest
10828           libobjs=conftest.$ac_objext
10829           deplibs=
10830           wl=$lt_prog_compiler_wl
10831           pic_flag=$lt_prog_compiler_pic
10832           compiler_flags=-v
10833           linker_flags=-v
10834           verstring=
10835           output_objdir=.
10836           libname=conftest
10837           lt_save_allow_undefined_flag=$allow_undefined_flag
10838           allow_undefined_flag=
10839           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10840   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10841   ac_status=$?
10842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10843   test $ac_status = 0; }
10844           then
10845             lt_cv_archive_cmds_need_lc=no
10846           else
10847             lt_cv_archive_cmds_need_lc=yes
10848           fi
10849           allow_undefined_flag=$lt_save_allow_undefined_flag
10850         else
10851           cat conftest.err 1>&5
10852         fi
10853         $RM conftest*
10854
10855 fi
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10857 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10858       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10859       ;;
10860     esac
10861   fi
10862   ;;
10863 esac
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
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11017 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11018
11019 if test yes = "$GCC"; then
11020   case $host_os in
11021     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11022     *) lt_awk_arg='/^libraries:/' ;;
11023   esac
11024   case $host_os in
11025     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11026     *) lt_sed_strip_eq='s|=/|/|g' ;;
11027   esac
11028   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11029   case $lt_search_path_spec in
11030   *\;*)
11031     # if the path contains ";" then we assume it to be the separator
11032     # otherwise default to the standard path separator (i.e. ":") - it is
11033     # assumed that no part of a normal pathname contains ";" but that should
11034     # okay in the real world where ";" in dirpaths is itself problematic.
11035     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11036     ;;
11037   *)
11038     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11039     ;;
11040   esac
11041   # Ok, now we have the path, separated by spaces, we can step through it
11042   # and add multilib dir if necessary...
11043   lt_tmp_lt_search_path_spec=
11044   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11045   # ...but if some path component already ends with the multilib dir we assume
11046   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11047   case "$lt_multi_os_dir; $lt_search_path_spec " in
11048   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11049     lt_multi_os_dir=
11050     ;;
11051   esac
11052   for lt_sys_path in $lt_search_path_spec; do
11053     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11054       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11055     elif test -n "$lt_multi_os_dir"; then
11056       test -d "$lt_sys_path" && \
11057         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11058     fi
11059   done
11060   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11061 BEGIN {RS = " "; FS = "/|\n";} {
11062   lt_foo = "";
11063   lt_count = 0;
11064   for (lt_i = NF; lt_i > 0; lt_i--) {
11065     if ($lt_i != "" && $lt_i != ".") {
11066       if ($lt_i == "..") {
11067         lt_count++;
11068       } else {
11069         if (lt_count == 0) {
11070           lt_foo = "/" $lt_i lt_foo;
11071         } else {
11072           lt_count--;
11073         }
11074       }
11075     }
11076   }
11077   if (lt_foo != "") { lt_freq[lt_foo]++; }
11078   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11079 }'`
11080   # AWK program above erroneously prepends '/' to C:/dos/paths
11081   # for these hosts.
11082   case $host_os in
11083     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11084       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11085   esac
11086   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11087 else
11088   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089 fi
11090 library_names_spec=
11091 libname_spec='lib$name'
11092 soname_spec=
11093 shrext_cmds=.so
11094 postinstall_cmds=
11095 postuninstall_cmds=
11096 finish_cmds=
11097 finish_eval=
11098 shlibpath_var=
11099 shlibpath_overrides_runpath=unknown
11100 version_type=none
11101 dynamic_linker="$host_os ld.so"
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11105
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11109
11110
11111
11112 case $host_os in
11113 aix3*)
11114   version_type=linux # correct to gnu/linux during the next big refactor
11115   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11116   shlibpath_var=LIBPATH
11117
11118   # AIX 3 has no versioning support, so we append a major version to the name.
11119   soname_spec='$libname$release$shared_ext$major'
11120   ;;
11121
11122 aix[4-9]*)
11123   version_type=linux # correct to gnu/linux during the next big refactor
11124   need_lib_prefix=no
11125   need_version=no
11126   hardcode_into_libs=yes
11127   if test ia64 = "$host_cpu"; then
11128     # AIX 5 supports IA64
11129     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11130     shlibpath_var=LD_LIBRARY_PATH
11131   else
11132     # With GCC up to 2.95.x, collect2 would create an import file
11133     # for dependence libraries.  The import file would start with
11134     # the line '#! .'.  This would cause the generated library to
11135     # depend on '.', always an invalid library.  This was fixed in
11136     # development snapshots of GCC prior to 3.0.
11137     case $host_os in
11138       aix4 | aix4.[01] | aix4.[01].*)
11139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11140            echo ' yes '
11141            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11142         :
11143       else
11144         can_build_shared=no
11145       fi
11146       ;;
11147     esac
11148     # Using Import Files as archive members, it is possible to support
11149     # filename-based versioning of shared library archives on AIX. While
11150     # this would work for both with and without runtime linking, it will
11151     # prevent static linking of such archives. So we do filename-based
11152     # shared library versioning with .so extension only, which is used
11153     # when both runtime linking and shared linking is enabled.
11154     # Unfortunately, runtime linking may impact performance, so we do
11155     # not want this to be the default eventually. Also, we use the
11156     # versioned .so libs for executables only if there is the -brtl
11157     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11158     # To allow for filename-based versioning support, we need to create
11159     # libNAME.so.V as an archive file, containing:
11160     # *) an Import File, referring to the versioned filename of the
11161     #    archive as well as the shared archive member, telling the
11162     #    bitwidth (32 or 64) of that shared object, and providing the
11163     #    list of exported symbols of that shared object, eventually
11164     #    decorated with the 'weak' keyword
11165     # *) the shared object with the F_LOADONLY flag set, to really avoid
11166     #    it being seen by the linker.
11167     # At run time we better use the real file rather than another symlink,
11168     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11169
11170     case $with_aix_soname,$aix_use_runtimelinking in
11171     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11172     # soname into executable. Probably we can add versioning support to
11173     # collect2, so additional links can be useful in future.
11174     aix,yes) # traditional libtool
11175       dynamic_linker='AIX unversionable lib.so'
11176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177       # instead of lib<name>.a to let people know that these are not
11178       # typical AIX shared libraries.
11179       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11180       ;;
11181     aix,no) # traditional AIX only
11182       dynamic_linker='AIX lib.a(lib.so.V)'
11183       # We preserve .a as extension for shared libraries through AIX4.2
11184       # and later when we are not doing run time linking.
11185       library_names_spec='$libname$release.a $libname.a'
11186       soname_spec='$libname$release$shared_ext$major'
11187       ;;
11188     svr4,*) # full svr4 only
11189       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11190       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11191       # We do not specify a path in Import Files, so LIBPATH fires.
11192       shlibpath_overrides_runpath=yes
11193       ;;
11194     *,yes) # both, prefer svr4
11195       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11196       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11197       # unpreferred sharedlib libNAME.a needs extra handling
11198       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11199       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11200       # We do not specify a path in Import Files, so LIBPATH fires.
11201       shlibpath_overrides_runpath=yes
11202       ;;
11203     *,no) # both, prefer aix
11204       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11205       library_names_spec='$libname$release.a $libname.a'
11206       soname_spec='$libname$release$shared_ext$major'
11207       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11208       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11209       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11210       ;;
11211     esac
11212     shlibpath_var=LIBPATH
11213   fi
11214   ;;
11215
11216 amigaos*)
11217   case $host_cpu in
11218   powerpc)
11219     # Since July 2007 AmigaOS4 officially supports .so libraries.
11220     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11221     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222     ;;
11223   m68k)
11224     library_names_spec='$libname.ixlibrary $libname.a'
11225     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11226     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11227     ;;
11228   esac
11229   ;;
11230
11231 beos*)
11232   library_names_spec='$libname$shared_ext'
11233   dynamic_linker="$host_os ld.so"
11234   shlibpath_var=LIBRARY_PATH
11235   ;;
11236
11237 bsdi[45]*)
11238   version_type=linux # correct to gnu/linux during the next big refactor
11239   need_version=no
11240   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241   soname_spec='$libname$release$shared_ext$major'
11242   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11243   shlibpath_var=LD_LIBRARY_PATH
11244   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11245   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11246   # the default ld.so.conf also contains /usr/contrib/lib and
11247   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11248   # libtool to hard-code these into programs
11249   ;;
11250
11251 cygwin* | mingw* | pw32* | cegcc*)
11252   version_type=windows
11253   shrext_cmds=.dll
11254   need_version=no
11255   need_lib_prefix=no
11256
11257   case $GCC,$cc_basename in
11258   yes,*)
11259     # gcc
11260     library_names_spec='$libname.dll.a'
11261     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11262     postinstall_cmds='base_file=`basename \$file`~
11263       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11264       dldir=$destdir/`dirname \$dlpath`~
11265       test -d \$dldir || mkdir -p \$dldir~
11266       $install_prog $dir/$dlname \$dldir/$dlname~
11267       chmod a+x \$dldir/$dlname~
11268       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11269         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11270       fi'
11271     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11272       dlpath=$dir/\$dldll~
11273        $RM \$dlpath'
11274     shlibpath_overrides_runpath=yes
11275
11276     case $host_os in
11277     cygwin*)
11278       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11279       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11280
11281       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11282       ;;
11283     mingw* | cegcc*)
11284       # MinGW DLLs use traditional 'lib' prefix
11285       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11286       ;;
11287     pw32*)
11288       # pw32 DLLs use 'pw' prefix rather than 'lib'
11289       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11290       ;;
11291     esac
11292     dynamic_linker='Win32 ld.exe'
11293     ;;
11294
11295   *,cl*)
11296     # Native MSVC
11297     libname_spec='$name'
11298     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11299     library_names_spec='$libname.dll.lib'
11300
11301     case $build_os in
11302     mingw*)
11303       sys_lib_search_path_spec=
11304       lt_save_ifs=$IFS
11305       IFS=';'
11306       for lt_path in $LIB
11307       do
11308         IFS=$lt_save_ifs
11309         # Let DOS variable expansion print the short 8.3 style file name.
11310         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11311         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11312       done
11313       IFS=$lt_save_ifs
11314       # Convert to MSYS style.
11315       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11316       ;;
11317     cygwin*)
11318       # Convert to unix form, then to dos form, then back to unix form
11319       # but this time dos style (no spaces!) so that the unix form looks
11320       # like /cygdrive/c/PROGRA~1:/cygdr...
11321       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11322       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11323       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11324       ;;
11325     *)
11326       sys_lib_search_path_spec=$LIB
11327       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11328         # It is most probably a Windows format PATH.
11329         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11330       else
11331         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332       fi
11333       # FIXME: find the short name or the path components, as spaces are
11334       # common. (e.g. "Program Files" -> "PROGRA~1")
11335       ;;
11336     esac
11337
11338     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11339     postinstall_cmds='base_file=`basename \$file`~
11340       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11341       dldir=$destdir/`dirname \$dlpath`~
11342       test -d \$dldir || mkdir -p \$dldir~
11343       $install_prog $dir/$dlname \$dldir/$dlname'
11344     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11345       dlpath=$dir/\$dldll~
11346        $RM \$dlpath'
11347     shlibpath_overrides_runpath=yes
11348     dynamic_linker='Win32 link.exe'
11349     ;;
11350
11351   *)
11352     # Assume MSVC wrapper
11353     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11354     dynamic_linker='Win32 ld.exe'
11355     ;;
11356   esac
11357   # FIXME: first we should search . and the directory the executable is in
11358   shlibpath_var=PATH
11359   ;;
11360
11361 darwin* | rhapsody*)
11362   dynamic_linker="$host_os dyld"
11363   version_type=darwin
11364   need_lib_prefix=no
11365   need_version=no
11366   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11367   soname_spec='$libname$release$major$shared_ext'
11368   shlibpath_overrides_runpath=yes
11369   shlibpath_var=DYLD_LIBRARY_PATH
11370   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11371
11372   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11374   ;;
11375
11376 dgux*)
11377   version_type=linux # correct to gnu/linux during the next big refactor
11378   need_lib_prefix=no
11379   need_version=no
11380   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381   soname_spec='$libname$release$shared_ext$major'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   ;;
11384
11385 freebsd* | dragonfly*)
11386   # DragonFly does not have aout.  When/if they implement a new
11387   # versioning mechanism, adjust this.
11388   if test -x /usr/bin/objformat; then
11389     objformat=`/usr/bin/objformat`
11390   else
11391     case $host_os in
11392     freebsd[23].*) objformat=aout ;;
11393     *) objformat=elf ;;
11394     esac
11395   fi
11396   version_type=freebsd-$objformat
11397   case $version_type in
11398     freebsd-elf*)
11399       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400       soname_spec='$libname$release$shared_ext$major'
11401       need_version=no
11402       need_lib_prefix=no
11403       ;;
11404     freebsd-*)
11405       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406       need_version=yes
11407       ;;
11408   esac
11409   shlibpath_var=LD_LIBRARY_PATH
11410   case $host_os in
11411   freebsd2.*)
11412     shlibpath_overrides_runpath=yes
11413     ;;
11414   freebsd3.[01]* | freebsdelf3.[01]*)
11415     shlibpath_overrides_runpath=yes
11416     hardcode_into_libs=yes
11417     ;;
11418   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11419   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11420     shlibpath_overrides_runpath=no
11421     hardcode_into_libs=yes
11422     ;;
11423   *) # from 4.6 on, and DragonFly
11424     shlibpath_overrides_runpath=yes
11425     hardcode_into_libs=yes
11426     ;;
11427   esac
11428   ;;
11429
11430 haiku*)
11431   version_type=linux # correct to gnu/linux during the next big refactor
11432   need_lib_prefix=no
11433   need_version=no
11434   dynamic_linker="$host_os runtime_loader"
11435   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436   soname_spec='$libname$release$shared_ext$major'
11437   shlibpath_var=LIBRARY_PATH
11438   shlibpath_overrides_runpath=no
11439   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11440   hardcode_into_libs=yes
11441   ;;
11442
11443 hpux9* | hpux10* | hpux11*)
11444   # Give a soname corresponding to the major version so that dld.sl refuses to
11445   # link against other versions.
11446   version_type=sunos
11447   need_lib_prefix=no
11448   need_version=no
11449   case $host_cpu in
11450   ia64*)
11451     shrext_cmds='.so'
11452     hardcode_into_libs=yes
11453     dynamic_linker="$host_os dld.so"
11454     shlibpath_var=LD_LIBRARY_PATH
11455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457     soname_spec='$libname$release$shared_ext$major'
11458     if test 32 = "$HPUX_IA64_MODE"; then
11459       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11460       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11461     else
11462       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11463       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11464     fi
11465     ;;
11466   hppa*64*)
11467     shrext_cmds='.sl'
11468     hardcode_into_libs=yes
11469     dynamic_linker="$host_os dld.sl"
11470     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11472     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473     soname_spec='$libname$release$shared_ext$major'
11474     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11476     ;;
11477   *)
11478     shrext_cmds='.sl'
11479     dynamic_linker="$host_os dld.sl"
11480     shlibpath_var=SHLIB_PATH
11481     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11482     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483     soname_spec='$libname$release$shared_ext$major'
11484     ;;
11485   esac
11486   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11487   postinstall_cmds='chmod 555 $lib'
11488   # or fails outright, so override atomically:
11489   install_override_mode=555
11490   ;;
11491
11492 interix[3-9]*)
11493   version_type=linux # correct to gnu/linux during the next big refactor
11494   need_lib_prefix=no
11495   need_version=no
11496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497   soname_spec='$libname$release$shared_ext$major'
11498   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   shlibpath_overrides_runpath=no
11501   hardcode_into_libs=yes
11502   ;;
11503
11504 irix5* | irix6* | nonstopux*)
11505   case $host_os in
11506     nonstopux*) version_type=nonstopux ;;
11507     *)
11508         if test yes = "$lt_cv_prog_gnu_ld"; then
11509                 version_type=linux # correct to gnu/linux during the next big refactor
11510         else
11511                 version_type=irix
11512         fi ;;
11513   esac
11514   need_lib_prefix=no
11515   need_version=no
11516   soname_spec='$libname$release$shared_ext$major'
11517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11518   case $host_os in
11519   irix5* | nonstopux*)
11520     libsuff= shlibsuff=
11521     ;;
11522   *)
11523     case $LD in # libtool.m4 will add one of these switches to LD
11524     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11525       libsuff= shlibsuff= libmagic=32-bit;;
11526     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11527       libsuff=32 shlibsuff=N32 libmagic=N32;;
11528     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11529       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11530     *) libsuff= shlibsuff= libmagic=never-match;;
11531     esac
11532     ;;
11533   esac
11534   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11535   shlibpath_overrides_runpath=no
11536   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11537   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11538   hardcode_into_libs=yes
11539   ;;
11540
11541 # No shared lib support for Linux oldld, aout, or coff.
11542 linux*oldld* | linux*aout* | linux*coff*)
11543   dynamic_linker=no
11544   ;;
11545
11546 linux*android*)
11547   version_type=none # Android doesn't support versioned libraries.
11548   need_lib_prefix=no
11549   need_version=no
11550   library_names_spec='$libname$release$shared_ext'
11551   soname_spec='$libname$release$shared_ext'
11552   finish_cmds=
11553   shlibpath_var=LD_LIBRARY_PATH
11554   shlibpath_overrides_runpath=yes
11555
11556   # This implies no fast_install, which is unacceptable.
11557   # Some rework will be needed to allow for fast_install
11558   # before this can be enabled.
11559   hardcode_into_libs=yes
11560
11561   dynamic_linker='Android linker'
11562   # Don't embed -rpath directories since the linker doesn't support them.
11563   hardcode_libdir_flag_spec='-L$libdir'
11564   ;;
11565
11566 # This must be glibc/ELF.
11567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11568   version_type=linux # correct to gnu/linux during the next big refactor
11569   need_lib_prefix=no
11570   need_version=no
11571   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572   soname_spec='$libname$release$shared_ext$major'
11573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11574   shlibpath_var=LD_LIBRARY_PATH
11575   shlibpath_overrides_runpath=no
11576
11577   # Some binutils ld are patched to set DT_RUNPATH
11578   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   lt_cv_shlibpath_overrides_runpath=no
11582     save_LDFLAGS=$LDFLAGS
11583     save_libdir=$libdir
11584     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11585          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h.  */
11588
11589 int
11590 main ()
11591 {
11592
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11599   lt_cv_shlibpath_overrides_runpath=yes
11600 fi
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603     conftest$ac_exeext conftest.$ac_ext
11604     LDFLAGS=$save_LDFLAGS
11605     libdir=$save_libdir
11606
11607 fi
11608
11609   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11610
11611   # This implies no fast_install, which is unacceptable.
11612   # Some rework will be needed to allow for fast_install
11613   # before this can be enabled.
11614   hardcode_into_libs=yes
11615
11616   # Ideally, we could use ldconfig to report *all* directores which are
11617   # searched for libraries, however this is still not possible.  Aside from not
11618   # being certain /sbin/ldconfig is available, command
11619   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11620   # even though it is searched at run-time.  Try to do the best guess by
11621   # appending ld.so.conf contents (and includes) to the search path.
11622   if test -f /etc/ld.so.conf; then
11623     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' ' '`
11624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11625   fi
11626
11627   # We used to test for /lib/ld.so.1 and disable shared libraries on
11628   # powerpc, because MkLinux only supported shared libraries with the
11629   # GNU dynamic linker.  Since this was broken with cross compilers,
11630   # most powerpc-linux boxes support dynamic linking these days and
11631   # people can always --disable-shared, the test was removed, and we
11632   # assume the GNU/Linux dynamic linker is in use.
11633   dynamic_linker='GNU/Linux ld.so'
11634   ;;
11635
11636 netbsdelf*-gnu)
11637   version_type=linux
11638   need_lib_prefix=no
11639   need_version=no
11640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11641   soname_spec='${libname}${release}${shared_ext}$major'
11642   shlibpath_var=LD_LIBRARY_PATH
11643   shlibpath_overrides_runpath=no
11644   hardcode_into_libs=yes
11645   dynamic_linker='NetBSD ld.elf_so'
11646   ;;
11647
11648 netbsd*)
11649   version_type=sunos
11650   need_lib_prefix=no
11651   need_version=no
11652   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11653     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655     dynamic_linker='NetBSD (a.out) ld.so'
11656   else
11657     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11658     soname_spec='$libname$release$shared_ext$major'
11659     dynamic_linker='NetBSD ld.elf_so'
11660   fi
11661   shlibpath_var=LD_LIBRARY_PATH
11662   shlibpath_overrides_runpath=yes
11663   hardcode_into_libs=yes
11664   ;;
11665
11666 newsos6)
11667   version_type=linux # correct to gnu/linux during the next big refactor
11668   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669   shlibpath_var=LD_LIBRARY_PATH
11670   shlibpath_overrides_runpath=yes
11671   ;;
11672
11673 *nto* | *qnx*)
11674   version_type=qnx
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678   soname_spec='$libname$release$shared_ext$major'
11679   shlibpath_var=LD_LIBRARY_PATH
11680   shlibpath_overrides_runpath=no
11681   hardcode_into_libs=yes
11682   dynamic_linker='ldqnx.so'
11683   ;;
11684
11685 openbsd* | bitrig*)
11686   version_type=sunos
11687   sys_lib_dlsearch_path_spec=/usr/lib
11688   need_lib_prefix=no
11689   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11690     need_version=no
11691   else
11692     need_version=yes
11693   fi
11694   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11696   shlibpath_var=LD_LIBRARY_PATH
11697   shlibpath_overrides_runpath=yes
11698   ;;
11699
11700 os2*)
11701   libname_spec='$name'
11702   version_type=windows
11703   shrext_cmds=.dll
11704   need_version=no
11705   need_lib_prefix=no
11706   # OS/2 can only load a DLL with a base name of 8 characters or less.
11707   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11708     v=$($ECHO $release$versuffix | tr -d .-);
11709     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11710     $ECHO $n$v`$shared_ext'
11711   library_names_spec='${libname}_dll.$libext'
11712   dynamic_linker='OS/2 ld.exe'
11713   shlibpath_var=BEGINLIBPATH
11714   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11715   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716   postinstall_cmds='base_file=`basename \$file`~
11717     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11718     dldir=$destdir/`dirname \$dlpath`~
11719     test -d \$dldir || mkdir -p \$dldir~
11720     $install_prog $dir/$dlname \$dldir/$dlname~
11721     chmod a+x \$dldir/$dlname~
11722     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11723       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11724     fi'
11725   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11726     dlpath=$dir/\$dldll~
11727     $RM \$dlpath'
11728   ;;
11729
11730 osf3* | osf4* | osf5*)
11731   version_type=osf
11732   need_lib_prefix=no
11733   need_version=no
11734   soname_spec='$libname$release$shared_ext$major'
11735   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11739   ;;
11740
11741 rdos*)
11742   dynamic_linker=no
11743   ;;
11744
11745 solaris*)
11746   version_type=linux # correct to gnu/linux during the next big refactor
11747   need_lib_prefix=no
11748   need_version=no
11749   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750   soname_spec='$libname$release$shared_ext$major'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   hardcode_into_libs=yes
11754   # ldd complains unless libraries are executable
11755   postinstall_cmds='chmod +x $lib'
11756   ;;
11757
11758 sunos4*)
11759   version_type=sunos
11760   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=yes
11764   if test yes = "$with_gnu_ld"; then
11765     need_lib_prefix=no
11766   fi
11767   need_version=yes
11768   ;;
11769
11770 sysv4 | sysv4.3*)
11771   version_type=linux # correct to gnu/linux during the next big refactor
11772   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773   soname_spec='$libname$release$shared_ext$major'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   case $host_vendor in
11776     sni)
11777       shlibpath_overrides_runpath=no
11778       need_lib_prefix=no
11779       runpath_var=LD_RUN_PATH
11780       ;;
11781     siemens)
11782       need_lib_prefix=no
11783       ;;
11784     motorola)
11785       need_lib_prefix=no
11786       need_version=no
11787       shlibpath_overrides_runpath=no
11788       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11789       ;;
11790   esac
11791   ;;
11792
11793 sysv4*MP*)
11794   if test -d /usr/nec; then
11795     version_type=linux # correct to gnu/linux during the next big refactor
11796     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11797     soname_spec='$libname$shared_ext.$major'
11798     shlibpath_var=LD_LIBRARY_PATH
11799   fi
11800   ;;
11801
11802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11803   version_type=sco
11804   need_lib_prefix=no
11805   need_version=no
11806   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11807   soname_spec='$libname$release$shared_ext$major'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   hardcode_into_libs=yes
11811   if test yes = "$with_gnu_ld"; then
11812     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11813   else
11814     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11815     case $host_os in
11816       sco3.2v5*)
11817         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11818         ;;
11819     esac
11820   fi
11821   sys_lib_dlsearch_path_spec='/usr/lib'
11822   ;;
11823
11824 tpf*)
11825   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11826   version_type=linux # correct to gnu/linux during the next big refactor
11827   need_lib_prefix=no
11828   need_version=no
11829   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=no
11832   hardcode_into_libs=yes
11833   ;;
11834
11835 uts4*)
11836   version_type=linux # correct to gnu/linux during the next big refactor
11837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838   soname_spec='$libname$release$shared_ext$major'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   ;;
11841
11842 *)
11843   dynamic_linker=no
11844   ;;
11845 esac
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11847 $as_echo "$dynamic_linker" >&6; }
11848 test no = "$dynamic_linker" && can_build_shared=no
11849
11850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11851 if test yes = "$GCC"; then
11852   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11853 fi
11854
11855 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11856   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11857 fi
11858
11859 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11860   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11861 fi
11862
11863 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11864 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11865
11866 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11867 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11868
11869 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11870 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11969 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11970 hardcode_action=
11971 if test -n "$hardcode_libdir_flag_spec" ||
11972    test -n "$runpath_var" ||
11973    test yes = "$hardcode_automatic"; then
11974
11975   # We can hardcode non-existent directories.
11976   if test no != "$hardcode_direct" &&
11977      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11978      # have to relink, otherwise we might link with an installed library
11979      # when we should be linking with a yet-to-be-installed one
11980      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11981      test no != "$hardcode_minus_L"; then
11982     # Linking always hardcodes the temporary library directory.
11983     hardcode_action=relink
11984   else
11985     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11986     hardcode_action=immediate
11987   fi
11988 else
11989   # We cannot hardcode anything, or else we can only hardcode existing
11990   # directories.
11991   hardcode_action=unsupported
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11994 $as_echo "$hardcode_action" >&6; }
11995
11996 if test relink = "$hardcode_action" ||
11997    test yes = "$inherit_rpath"; then
11998   # Fast installation is not supported
11999   enable_fast_install=no
12000 elif test yes = "$shlibpath_overrides_runpath" ||
12001      test no = "$enable_shared"; then
12002   # Fast installation is not necessary
12003   enable_fast_install=needless
12004 fi
12005
12006
12007
12008
12009
12010
12011   if test yes != "$enable_dlopen"; then
12012   enable_dlopen=unknown
12013   enable_dlopen_self=unknown
12014   enable_dlopen_self_static=unknown
12015 else
12016   lt_cv_dlopen=no
12017   lt_cv_dlopen_libs=
12018
12019   case $host_os in
12020   beos*)
12021     lt_cv_dlopen=load_add_on
12022     lt_cv_dlopen_libs=
12023     lt_cv_dlopen_self=yes
12024     ;;
12025
12026   mingw* | pw32* | cegcc*)
12027     lt_cv_dlopen=LoadLibrary
12028     lt_cv_dlopen_libs=
12029     ;;
12030
12031   cygwin*)
12032     lt_cv_dlopen=dlopen
12033     lt_cv_dlopen_libs=
12034     ;;
12035
12036   darwin*)
12037     # if libdl is installed we need to link against it
12038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12040 if ${ac_cv_lib_dl_dlopen+:} false; then :
12041   $as_echo_n "(cached) " >&6
12042 else
12043   ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-ldl  $LIBS"
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h.  */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049    Use char because int might match the return type of a GCC
12050    builtin and then its argument prototype would still apply.  */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char dlopen ();
12055 int
12056 main ()
12057 {
12058 return dlopen ();
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064   ac_cv_lib_dl_dlopen=yes
12065 else
12066   ac_cv_lib_dl_dlopen=no
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069     conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12073 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12074 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12075   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12076 else
12077
12078     lt_cv_dlopen=dyld
12079     lt_cv_dlopen_libs=
12080     lt_cv_dlopen_self=yes
12081
12082 fi
12083
12084     ;;
12085
12086   tpf*)
12087     # Don't try to run any link tests for TPF.  We know it's impossible
12088     # because TPF is a cross-compiler, and we know how we open DSOs.
12089     lt_cv_dlopen=dlopen
12090     lt_cv_dlopen_libs=
12091     lt_cv_dlopen_self=no
12092     ;;
12093
12094   *)
12095     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12096 if test "x$ac_cv_func_shl_load" = xyes; then :
12097   lt_cv_dlopen=shl_load
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12100 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12101 if ${ac_cv_lib_dld_shl_load+:} false; then :
12102   $as_echo_n "(cached) " >&6
12103 else
12104   ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-ldld  $LIBS"
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h.  */
12108
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char shl_load ();
12116 int
12117 main ()
12118 {
12119 return shl_load ();
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"; then :
12125   ac_cv_lib_dld_shl_load=yes
12126 else
12127   ac_cv_lib_dld_shl_load=no
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext \
12130     conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12134 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12135 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12136   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12137 else
12138   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12139 if test "x$ac_cv_func_dlopen" = xyes; then :
12140   lt_cv_dlopen=dlopen
12141 else
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12144 if ${ac_cv_lib_dl_dlopen+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-ldl  $LIBS"
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h.  */
12151
12152 /* Override any GCC internal prototype to avoid an error.
12153    Use char because int might match the return type of a GCC
12154    builtin and then its argument prototype would still apply.  */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char dlopen ();
12159 int
12160 main ()
12161 {
12162 return dlopen ();
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168   ac_cv_lib_dl_dlopen=yes
12169 else
12170   ac_cv_lib_dl_dlopen=no
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext \
12173     conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12179   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12180 else
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12182 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12183 if ${ac_cv_lib_svld_dlopen+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lsvld  $LIBS"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h.  */
12190
12191 /* Override any GCC internal prototype to avoid an error.
12192    Use char because int might match the return type of a GCC
12193    builtin and then its argument prototype would still apply.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char dlopen ();
12198 int
12199 main ()
12200 {
12201 return dlopen ();
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207   ac_cv_lib_svld_dlopen=yes
12208 else
12209   ac_cv_lib_svld_dlopen=no
12210 fi
12211 rm -f core conftest.err conftest.$ac_objext \
12212     conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12217 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12218   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12219 else
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12222 if ${ac_cv_lib_dld_dld_link+:} false; then :
12223   $as_echo_n "(cached) " >&6
12224 else
12225   ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-ldld  $LIBS"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h.  */
12229
12230 /* Override any GCC internal prototype to avoid an error.
12231    Use char because int might match the return type of a GCC
12232    builtin and then its argument prototype would still apply.  */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char dld_link ();
12237 int
12238 main ()
12239 {
12240 return dld_link ();
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246   ac_cv_lib_dld_dld_link=yes
12247 else
12248   ac_cv_lib_dld_dld_link=no
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext \
12251     conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12255 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12256 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12257   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12258 fi
12259
12260
12261 fi
12262
12263
12264 fi
12265
12266
12267 fi
12268
12269
12270 fi
12271
12272
12273 fi
12274
12275     ;;
12276   esac
12277
12278   if test no = "$lt_cv_dlopen"; then
12279     enable_dlopen=no
12280   else
12281     enable_dlopen=yes
12282   fi
12283
12284   case $lt_cv_dlopen in
12285   dlopen)
12286     save_CPPFLAGS=$CPPFLAGS
12287     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12288
12289     save_LDFLAGS=$LDFLAGS
12290     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12291
12292     save_LIBS=$LIBS
12293     LIBS="$lt_cv_dlopen_libs $LIBS"
12294
12295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12296 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12297 if ${lt_cv_dlopen_self+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300           if test yes = "$cross_compiling"; then :
12301   lt_cv_dlopen_self=cross
12302 else
12303   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12304   lt_status=$lt_dlunknown
12305   cat > conftest.$ac_ext <<_LT_EOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308
12309 #if HAVE_DLFCN_H
12310 #include <dlfcn.h>
12311 #endif
12312
12313 #include <stdio.h>
12314
12315 #ifdef RTLD_GLOBAL
12316 #  define LT_DLGLOBAL           RTLD_GLOBAL
12317 #else
12318 #  ifdef DL_GLOBAL
12319 #    define LT_DLGLOBAL         DL_GLOBAL
12320 #  else
12321 #    define LT_DLGLOBAL         0
12322 #  endif
12323 #endif
12324
12325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12326    find out it does not work in some platform. */
12327 #ifndef LT_DLLAZY_OR_NOW
12328 #  ifdef RTLD_LAZY
12329 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12330 #  else
12331 #    ifdef DL_LAZY
12332 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12333 #    else
12334 #      ifdef RTLD_NOW
12335 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12336 #      else
12337 #        ifdef DL_NOW
12338 #          define LT_DLLAZY_OR_NOW      DL_NOW
12339 #        else
12340 #          define LT_DLLAZY_OR_NOW      0
12341 #        endif
12342 #      endif
12343 #    endif
12344 #  endif
12345 #endif
12346
12347 /* When -fvisibility=hidden is used, assume the code has been annotated
12348    correspondingly for the symbols needed.  */
12349 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12350 int fnord () __attribute__((visibility("default")));
12351 #endif
12352
12353 int fnord () { return 42; }
12354 int main ()
12355 {
12356   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12357   int status = $lt_dlunknown;
12358
12359   if (self)
12360     {
12361       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12362       else
12363         {
12364           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12365           else puts (dlerror ());
12366         }
12367       /* dlclose (self); */
12368     }
12369   else
12370     puts (dlerror ());
12371
12372   return status;
12373 }
12374 _LT_EOF
12375   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12376   (eval $ac_link) 2>&5
12377   ac_status=$?
12378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12379   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12380     (./conftest; exit; ) >&5 2>/dev/null
12381     lt_status=$?
12382     case x$lt_status in
12383       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12384       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12385       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12386     esac
12387   else :
12388     # compilation failed
12389     lt_cv_dlopen_self=no
12390   fi
12391 fi
12392 rm -fr conftest*
12393
12394
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12397 $as_echo "$lt_cv_dlopen_self" >&6; }
12398
12399     if test yes = "$lt_cv_dlopen_self"; then
12400       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12401       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12402 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12403 if ${lt_cv_dlopen_self_static+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406           if test yes = "$cross_compiling"; then :
12407   lt_cv_dlopen_self_static=cross
12408 else
12409   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12410   lt_status=$lt_dlunknown
12411   cat > conftest.$ac_ext <<_LT_EOF
12412 #line $LINENO "configure"
12413 #include "confdefs.h"
12414
12415 #if HAVE_DLFCN_H
12416 #include <dlfcn.h>
12417 #endif
12418
12419 #include <stdio.h>
12420
12421 #ifdef RTLD_GLOBAL
12422 #  define LT_DLGLOBAL           RTLD_GLOBAL
12423 #else
12424 #  ifdef DL_GLOBAL
12425 #    define LT_DLGLOBAL         DL_GLOBAL
12426 #  else
12427 #    define LT_DLGLOBAL         0
12428 #  endif
12429 #endif
12430
12431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12432    find out it does not work in some platform. */
12433 #ifndef LT_DLLAZY_OR_NOW
12434 #  ifdef RTLD_LAZY
12435 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12436 #  else
12437 #    ifdef DL_LAZY
12438 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12439 #    else
12440 #      ifdef RTLD_NOW
12441 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12442 #      else
12443 #        ifdef DL_NOW
12444 #          define LT_DLLAZY_OR_NOW      DL_NOW
12445 #        else
12446 #          define LT_DLLAZY_OR_NOW      0
12447 #        endif
12448 #      endif
12449 #    endif
12450 #  endif
12451 #endif
12452
12453 /* When -fvisibility=hidden is used, assume the code has been annotated
12454    correspondingly for the symbols needed.  */
12455 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12456 int fnord () __attribute__((visibility("default")));
12457 #endif
12458
12459 int fnord () { return 42; }
12460 int main ()
12461 {
12462   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12463   int status = $lt_dlunknown;
12464
12465   if (self)
12466     {
12467       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12468       else
12469         {
12470           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12471           else puts (dlerror ());
12472         }
12473       /* dlclose (self); */
12474     }
12475   else
12476     puts (dlerror ());
12477
12478   return status;
12479 }
12480 _LT_EOF
12481   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12482   (eval $ac_link) 2>&5
12483   ac_status=$?
12484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12486     (./conftest; exit; ) >&5 2>/dev/null
12487     lt_status=$?
12488     case x$lt_status in
12489       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12490       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12491       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12492     esac
12493   else :
12494     # compilation failed
12495     lt_cv_dlopen_self_static=no
12496   fi
12497 fi
12498 rm -fr conftest*
12499
12500
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12503 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12504     fi
12505
12506     CPPFLAGS=$save_CPPFLAGS
12507     LDFLAGS=$save_LDFLAGS
12508     LIBS=$save_LIBS
12509     ;;
12510   esac
12511
12512   case $lt_cv_dlopen_self in
12513   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12514   *) enable_dlopen_self=unknown ;;
12515   esac
12516
12517   case $lt_cv_dlopen_self_static in
12518   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12519   *) enable_dlopen_self_static=unknown ;;
12520   esac
12521 fi
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539 striplib=
12540 old_striplib=
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12542 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12543 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12544   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12545   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547 $as_echo "yes" >&6; }
12548 else
12549 # FIXME - insert some real tests, host_os isn't really good enough
12550   case $host_os in
12551   darwin*)
12552     if test -n "$STRIP"; then
12553       striplib="$STRIP -x"
12554       old_striplib="$STRIP -S"
12555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 $as_echo "yes" >&6; }
12557     else
12558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560     fi
12561     ;;
12562   *)
12563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565     ;;
12566   esac
12567 fi
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580   # Report what library types will actually be built
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12582 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12584 $as_echo "$can_build_shared" >&6; }
12585
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12587 $as_echo_n "checking whether to build shared libraries... " >&6; }
12588   test no = "$can_build_shared" && enable_shared=no
12589
12590   # On AIX, shared libraries and static libraries use the same namespace, and
12591   # are all built from PIC.
12592   case $host_os in
12593   aix3*)
12594     test yes = "$enable_shared" && enable_static=no
12595     if test -n "$RANLIB"; then
12596       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12597       postinstall_cmds='$RANLIB $lib'
12598     fi
12599     ;;
12600
12601   aix[4-9]*)
12602     if test ia64 != "$host_cpu"; then
12603       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12604       yes,aix,yes) ;;                   # shared object as lib.so file only
12605       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12606       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12607       esac
12608     fi
12609     ;;
12610   esac
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12612 $as_echo "$enable_shared" >&6; }
12613
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12615 $as_echo_n "checking whether to build static libraries... " >&6; }
12616   # Make sure either enable_shared or enable_static is yes.
12617   test yes = "$enable_shared" || enable_static=yes
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12619 $as_echo "$enable_static" >&6; }
12620
12621
12622
12623
12624 fi
12625 ac_ext=c
12626 ac_cpp='$CPP $CPPFLAGS'
12627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12630
12631 CC=$lt_save_CC
12632
12633       if test -n "$CXX" && ( test no != "$CXX" &&
12634     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12635     (test g++ != "$CXX"))); then
12636   ac_ext=cpp
12637 ac_cpp='$CXXCPP $CPPFLAGS'
12638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12642 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12643 if test -z "$CXXCPP"; then
12644   if ${ac_cv_prog_CXXCPP+:} false; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647       # Double quotes because CXXCPP needs to be expanded
12648     for CXXCPP in "$CXX -E" "/lib/cpp"
12649     do
12650       ac_preproc_ok=false
12651 for ac_cxx_preproc_warn_flag in '' yes
12652 do
12653   # Use a header file that comes with gcc, so configuring glibc
12654   # with a fresh cross-compiler works.
12655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656   # <limits.h> exists even on freestanding compilers.
12657   # On the NeXT, cc -E runs the code through the compiler's parser,
12658   # not just through cpp. "Syntax error" is here to catch this case.
12659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661 #ifdef __STDC__
12662 # include <limits.h>
12663 #else
12664 # include <assert.h>
12665 #endif
12666                      Syntax error
12667 _ACEOF
12668 if ac_fn_cxx_try_cpp "$LINENO"; then :
12669
12670 else
12671   # Broken: fails on valid input.
12672 continue
12673 fi
12674 rm -f conftest.err conftest.i conftest.$ac_ext
12675
12676   # OK, works on sane cases.  Now check whether nonexistent headers
12677   # can be detected and how.
12678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680 #include <ac_nonexistent.h>
12681 _ACEOF
12682 if ac_fn_cxx_try_cpp "$LINENO"; then :
12683   # Broken: success on invalid input.
12684 continue
12685 else
12686   # Passes both tests.
12687 ac_preproc_ok=:
12688 break
12689 fi
12690 rm -f conftest.err conftest.i conftest.$ac_ext
12691
12692 done
12693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12694 rm -f conftest.i conftest.err conftest.$ac_ext
12695 if $ac_preproc_ok; then :
12696   break
12697 fi
12698
12699     done
12700     ac_cv_prog_CXXCPP=$CXXCPP
12701
12702 fi
12703   CXXCPP=$ac_cv_prog_CXXCPP
12704 else
12705   ac_cv_prog_CXXCPP=$CXXCPP
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12708 $as_echo "$CXXCPP" >&6; }
12709 ac_preproc_ok=false
12710 for ac_cxx_preproc_warn_flag in '' yes
12711 do
12712   # Use a header file that comes with gcc, so configuring glibc
12713   # with a fresh cross-compiler works.
12714   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12715   # <limits.h> exists even on freestanding compilers.
12716   # On the NeXT, cc -E runs the code through the compiler's parser,
12717   # not just through cpp. "Syntax error" is here to catch this case.
12718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h.  */
12720 #ifdef __STDC__
12721 # include <limits.h>
12722 #else
12723 # include <assert.h>
12724 #endif
12725                      Syntax error
12726 _ACEOF
12727 if ac_fn_cxx_try_cpp "$LINENO"; then :
12728
12729 else
12730   # Broken: fails on valid input.
12731 continue
12732 fi
12733 rm -f conftest.err conftest.i conftest.$ac_ext
12734
12735   # OK, works on sane cases.  Now check whether nonexistent headers
12736   # can be detected and how.
12737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739 #include <ac_nonexistent.h>
12740 _ACEOF
12741 if ac_fn_cxx_try_cpp "$LINENO"; then :
12742   # Broken: success on invalid input.
12743 continue
12744 else
12745   # Passes both tests.
12746 ac_preproc_ok=:
12747 break
12748 fi
12749 rm -f conftest.err conftest.i conftest.$ac_ext
12750
12751 done
12752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12753 rm -f conftest.i conftest.err conftest.$ac_ext
12754 if $ac_preproc_ok; then :
12755
12756 else
12757   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12759 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12760 See \`config.log' for more details" "$LINENO" 5; }
12761 fi
12762
12763 ac_ext=c
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769 else
12770   _lt_caught_CXX_error=yes
12771 fi
12772
12773 ac_ext=cpp
12774 ac_cpp='$CXXCPP $CPPFLAGS'
12775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12778
12779 archive_cmds_need_lc_CXX=no
12780 allow_undefined_flag_CXX=
12781 always_export_symbols_CXX=no
12782 archive_expsym_cmds_CXX=
12783 compiler_needs_object_CXX=no
12784 export_dynamic_flag_spec_CXX=
12785 hardcode_direct_CXX=no
12786 hardcode_direct_absolute_CXX=no
12787 hardcode_libdir_flag_spec_CXX=
12788 hardcode_libdir_separator_CXX=
12789 hardcode_minus_L_CXX=no
12790 hardcode_shlibpath_var_CXX=unsupported
12791 hardcode_automatic_CXX=no
12792 inherit_rpath_CXX=no
12793 module_cmds_CXX=
12794 module_expsym_cmds_CXX=
12795 link_all_deplibs_CXX=unknown
12796 old_archive_cmds_CXX=$old_archive_cmds
12797 reload_flag_CXX=$reload_flag
12798 reload_cmds_CXX=$reload_cmds
12799 no_undefined_flag_CXX=
12800 whole_archive_flag_spec_CXX=
12801 enable_shared_with_static_runtimes_CXX=no
12802
12803 # Source file extension for C++ test sources.
12804 ac_ext=cpp
12805
12806 # Object file extension for compiled C++ test sources.
12807 objext=o
12808 objext_CXX=$objext
12809
12810 # No sense in running all these tests if we already determined that
12811 # the CXX compiler isn't working.  Some variables (like enable_shared)
12812 # are currently assumed to apply to all compilers on this platform,
12813 # and will be corrupted by setting them based on a non-working compiler.
12814 if test yes != "$_lt_caught_CXX_error"; then
12815   # Code to be used in simple compile tests
12816   lt_simple_compile_test_code="int some_variable = 0;"
12817
12818   # Code to be used in simple link tests
12819   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12820
12821   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12822
12823
12824
12825
12826
12827
12828 # If no C compiler was specified, use CC.
12829 LTCC=${LTCC-"$CC"}
12830
12831 # If no C compiler flags were specified, use CFLAGS.
12832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12833
12834 # Allow CC to be a program name with arguments.
12835 compiler=$CC
12836
12837
12838   # save warnings/boilerplate of simple test code
12839   ac_outfile=conftest.$ac_objext
12840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12842 _lt_compiler_boilerplate=`cat conftest.err`
12843 $RM conftest*
12844
12845   ac_outfile=conftest.$ac_objext
12846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12848 _lt_linker_boilerplate=`cat conftest.err`
12849 $RM -r conftest*
12850
12851
12852   # Allow CC to be a program name with arguments.
12853   lt_save_CC=$CC
12854   lt_save_CFLAGS=$CFLAGS
12855   lt_save_LD=$LD
12856   lt_save_GCC=$GCC
12857   GCC=$GXX
12858   lt_save_with_gnu_ld=$with_gnu_ld
12859   lt_save_path_LD=$lt_cv_path_LD
12860   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12861     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12862   else
12863     $as_unset lt_cv_prog_gnu_ld
12864   fi
12865   if test -n "${lt_cv_path_LDCXX+set}"; then
12866     lt_cv_path_LD=$lt_cv_path_LDCXX
12867   else
12868     $as_unset lt_cv_path_LD
12869   fi
12870   test -z "${LDCXX+set}" || LD=$LDCXX
12871   CC=${CXX-"c++"}
12872   CFLAGS=$CXXFLAGS
12873   compiler=$CC
12874   compiler_CXX=$CC
12875   func_cc_basename $compiler
12876 cc_basename=$func_cc_basename_result
12877
12878
12879   if test -n "$compiler"; then
12880     # We don't want -fno-exception when compiling C++ code, so set the
12881     # no_builtin_flag separately
12882     if test yes = "$GXX"; then
12883       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12884     else
12885       lt_prog_compiler_no_builtin_flag_CXX=
12886     fi
12887
12888     if test yes = "$GXX"; then
12889       # Set up default GNU C++ configuration
12890
12891
12892
12893 # Check whether --with-gnu-ld was given.
12894 if test "${with_gnu_ld+set}" = set; then :
12895   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12896 else
12897   with_gnu_ld=no
12898 fi
12899
12900 ac_prog=ld
12901 if test yes = "$GCC"; then
12902   # Check if gcc -print-prog-name=ld gives a path.
12903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12904 $as_echo_n "checking for ld used by $CC... " >&6; }
12905   case $host in
12906   *-*-mingw*)
12907     # gcc leaves a trailing carriage return, which upsets mingw
12908     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12909   *)
12910     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12911   esac
12912   case $ac_prog in
12913     # Accept absolute paths.
12914     [\\/]* | ?:[\\/]*)
12915       re_direlt='/[^/][^/]*/\.\./'
12916       # Canonicalize the pathname of ld
12917       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12918       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12919         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12920       done
12921       test -z "$LD" && LD=$ac_prog
12922       ;;
12923   "")
12924     # If it fails, then pretend we aren't using GCC.
12925     ac_prog=ld
12926     ;;
12927   *)
12928     # If it is relative, then search for the first ld in PATH.
12929     with_gnu_ld=unknown
12930     ;;
12931   esac
12932 elif test yes = "$with_gnu_ld"; then
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12934 $as_echo_n "checking for GNU ld... " >&6; }
12935 else
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12937 $as_echo_n "checking for non-GNU ld... " >&6; }
12938 fi
12939 if ${lt_cv_path_LD+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   if test -z "$LD"; then
12943   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12944   for ac_dir in $PATH; do
12945     IFS=$lt_save_ifs
12946     test -z "$ac_dir" && ac_dir=.
12947     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12948       lt_cv_path_LD=$ac_dir/$ac_prog
12949       # Check to see if the program is GNU ld.  I'd rather use --version,
12950       # but apparently some variants of GNU ld only accept -v.
12951       # Break only if it was the GNU/non-GNU ld that we prefer.
12952       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12953       *GNU* | *'with BFD'*)
12954         test no != "$with_gnu_ld" && break
12955         ;;
12956       *)
12957         test yes != "$with_gnu_ld" && break
12958         ;;
12959       esac
12960     fi
12961   done
12962   IFS=$lt_save_ifs
12963 else
12964   lt_cv_path_LD=$LD # Let the user override the test with a path.
12965 fi
12966 fi
12967
12968 LD=$lt_cv_path_LD
12969 if test -n "$LD"; then
12970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12971 $as_echo "$LD" >&6; }
12972 else
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974 $as_echo "no" >&6; }
12975 fi
12976 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12978 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12979 if ${lt_cv_prog_gnu_ld+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12983 case `$LD -v 2>&1 </dev/null` in
12984 *GNU* | *'with BFD'*)
12985   lt_cv_prog_gnu_ld=yes
12986   ;;
12987 *)
12988   lt_cv_prog_gnu_ld=no
12989   ;;
12990 esac
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12993 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12994 with_gnu_ld=$lt_cv_prog_gnu_ld
12995
12996
12997
12998
12999
13000
13001
13002       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13003       # archiving commands below assume that GNU ld is being used.
13004       if test yes = "$with_gnu_ld"; then
13005         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13006         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'
13007
13008         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13009         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13010
13011         # If archive_cmds runs LD, not CC, wlarc should be empty
13012         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13013         #     investigate it a little bit more. (MM)
13014         wlarc='$wl'
13015
13016         # ancient GNU ld didn't support --whole-archive et. al.
13017         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13018           $GREP 'no-whole-archive' > /dev/null; then
13019           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13020         else
13021           whole_archive_flag_spec_CXX=
13022         fi
13023       else
13024         with_gnu_ld=no
13025         wlarc=
13026
13027         # A generic and very simple default shared library creation
13028         # command for GNU C++ for the case where it uses the native
13029         # linker, instead of GNU ld.  If possible, this setting should
13030         # overridden to take advantage of the native linker features on
13031         # the platform it is being used on.
13032         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13033       fi
13034
13035       # Commands to make compiler produce verbose output that lists
13036       # what "hidden" libraries, object files and flags are used when
13037       # linking a shared library.
13038       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13039
13040     else
13041       GXX=no
13042       with_gnu_ld=no
13043       wlarc=
13044     fi
13045
13046     # PORTME: fill in a description of your system's C++ link characteristics
13047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13049     ld_shlibs_CXX=yes
13050     case $host_os in
13051       aix3*)
13052         # FIXME: insert proper C++ library support
13053         ld_shlibs_CXX=no
13054         ;;
13055       aix[4-9]*)
13056         if test ia64 = "$host_cpu"; then
13057           # On IA64, the linker does run time linking by default, so we don't
13058           # have to do anything special.
13059           aix_use_runtimelinking=no
13060           exp_sym_flag='-Bexport'
13061           no_entry_flag=
13062         else
13063           aix_use_runtimelinking=no
13064
13065           # Test if we are trying to use run time linking or normal
13066           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067           # have runtime linking enabled, and use it for executables.
13068           # For shared libraries, we enable/disable runtime linking
13069           # depending on the kind of the shared library created -
13070           # when "with_aix_soname,aix_use_runtimelinking" is:
13071           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13072           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13073           #            lib.a           static archive
13074           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13075           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13076           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13077           #            lib.a(lib.so.V) shared, rtl:no
13078           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13079           #            lib.a           static archive
13080           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13081             for ld_flag in $LDFLAGS; do
13082               case $ld_flag in
13083               *-brtl*)
13084                 aix_use_runtimelinking=yes
13085                 break
13086                 ;;
13087               esac
13088             done
13089             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13090               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13091               # so we don't have lib.a shared libs to link our executables.
13092               # We have to force runtime linking in this case.
13093               aix_use_runtimelinking=yes
13094               LDFLAGS="$LDFLAGS -Wl,-brtl"
13095             fi
13096             ;;
13097           esac
13098
13099           exp_sym_flag='-bexport'
13100           no_entry_flag='-bnoentry'
13101         fi
13102
13103         # When large executables or shared objects are built, AIX ld can
13104         # have problems creating the table of contents.  If linking a library
13105         # or program results in "error TOC overflow" add -mminimal-toc to
13106         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13107         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13108
13109         archive_cmds_CXX=''
13110         hardcode_direct_CXX=yes
13111         hardcode_direct_absolute_CXX=yes
13112         hardcode_libdir_separator_CXX=':'
13113         link_all_deplibs_CXX=yes
13114         file_list_spec_CXX='$wl-f,'
13115         case $with_aix_soname,$aix_use_runtimelinking in
13116         aix,*) ;;       # no import file
13117         svr4,* | *,yes) # use import file
13118           # The Import File defines what to hardcode.
13119           hardcode_direct_CXX=no
13120           hardcode_direct_absolute_CXX=no
13121           ;;
13122         esac
13123
13124         if test yes = "$GXX"; then
13125           case $host_os in aix4.[012]|aix4.[012].*)
13126           # We only want to do this on AIX 4.2 and lower, the check
13127           # below for broken collect2 doesn't work under 4.3+
13128           collect2name=`$CC -print-prog-name=collect2`
13129           if test -f "$collect2name" &&
13130              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13131           then
13132             # We have reworked collect2
13133             :
13134           else
13135             # We have old collect2
13136             hardcode_direct_CXX=unsupported
13137             # It fails to find uninstalled libraries when the uninstalled
13138             # path is not listed in the libpath.  Setting hardcode_minus_L
13139             # to unsupported forces relinking
13140             hardcode_minus_L_CXX=yes
13141             hardcode_libdir_flag_spec_CXX='-L$libdir'
13142             hardcode_libdir_separator_CXX=
13143           fi
13144           esac
13145           shared_flag='-shared'
13146           if test yes = "$aix_use_runtimelinking"; then
13147             shared_flag=$shared_flag' $wl-G'
13148           fi
13149           # Need to ensure runtime linking is disabled for the traditional
13150           # shared library, or the linker may eventually find shared libraries
13151           # /with/ Import File - we do not want to mix them.
13152           shared_flag_aix='-shared'
13153           shared_flag_svr4='-shared $wl-G'
13154         else
13155           # not using gcc
13156           if test ia64 = "$host_cpu"; then
13157           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13158           # chokes on -Wl,-G. The following line is correct:
13159           shared_flag='-G'
13160           else
13161             if test yes = "$aix_use_runtimelinking"; then
13162               shared_flag='$wl-G'
13163             else
13164               shared_flag='$wl-bM:SRE'
13165             fi
13166             shared_flag_aix='$wl-bM:SRE'
13167             shared_flag_svr4='$wl-G'
13168           fi
13169         fi
13170
13171         export_dynamic_flag_spec_CXX='$wl-bexpall'
13172         # It seems that -bexpall does not export symbols beginning with
13173         # underscore (_), so it is better to generate a list of symbols to
13174         # export.
13175         always_export_symbols_CXX=yes
13176         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13177           # Warning - without using the other runtime loading flags (-brtl),
13178           # -berok will link without error, but may produce a broken library.
13179           # The "-G" linker flag allows undefined symbols.
13180           no_undefined_flag_CXX='-bernotok'
13181           # Determine the default libpath from the value encoded in an empty
13182           # executable.
13183           if test set = "${lt_cv_aix_libpath+set}"; then
13184   aix_libpath=$lt_cv_aix_libpath
13185 else
13186   if ${lt_cv_aix_libpath__CXX+:} false; then :
13187   $as_echo_n "(cached) " >&6
13188 else
13189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191
13192 int
13193 main ()
13194 {
13195
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_cxx_try_link "$LINENO"; then :
13201
13202   lt_aix_libpath_sed='
13203       /Import File Strings/,/^$/ {
13204           /^0/ {
13205               s/^0  *\([^ ]*\) *$/\1/
13206               p
13207           }
13208       }'
13209   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210   # Check for a 64-bit object if we didn't find anything.
13211   if test -z "$lt_cv_aix_libpath__CXX"; then
13212     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213   fi
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext \
13216     conftest$ac_exeext conftest.$ac_ext
13217   if test -z "$lt_cv_aix_libpath__CXX"; then
13218     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13219   fi
13220
13221 fi
13222
13223   aix_libpath=$lt_cv_aix_libpath__CXX
13224 fi
13225
13226           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13227
13228           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13229         else
13230           if test ia64 = "$host_cpu"; then
13231             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13232             allow_undefined_flag_CXX="-z nodefs"
13233             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"
13234           else
13235             # Determine the default libpath from the value encoded in an
13236             # empty executable.
13237             if test set = "${lt_cv_aix_libpath+set}"; then
13238   aix_libpath=$lt_cv_aix_libpath
13239 else
13240   if ${lt_cv_aix_libpath__CXX+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245
13246 int
13247 main ()
13248 {
13249
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_cxx_try_link "$LINENO"; then :
13255
13256   lt_aix_libpath_sed='
13257       /Import File Strings/,/^$/ {
13258           /^0/ {
13259               s/^0  *\([^ ]*\) *$/\1/
13260               p
13261           }
13262       }'
13263   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264   # Check for a 64-bit object if we didn't find anything.
13265   if test -z "$lt_cv_aix_libpath__CXX"; then
13266     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267   fi
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext \
13270     conftest$ac_exeext conftest.$ac_ext
13271   if test -z "$lt_cv_aix_libpath__CXX"; then
13272     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13273   fi
13274
13275 fi
13276
13277   aix_libpath=$lt_cv_aix_libpath__CXX
13278 fi
13279
13280             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13281             # Warning - without using the other run time loading flags,
13282             # -berok will link without error, but may produce a broken library.
13283             no_undefined_flag_CXX=' $wl-bernotok'
13284             allow_undefined_flag_CXX=' $wl-berok'
13285             if test yes = "$with_gnu_ld"; then
13286               # We only use this code for GNU lds that support --whole-archive.
13287               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13288             else
13289               # Exported symbols can be pulled into shared objects from archives
13290               whole_archive_flag_spec_CXX='$convenience'
13291             fi
13292             archive_cmds_need_lc_CXX=yes
13293             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13294             # -brtl affects multiple linker settings, -berok does not and is overridden later
13295             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13296             if test svr4 != "$with_aix_soname"; then
13297               # This is similar to how AIX traditionally builds its shared
13298               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13299               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13300             fi
13301             if test aix != "$with_aix_soname"; then
13302               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13303             else
13304               # used by -dlpreopen to get the symbols
13305               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13306             fi
13307             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13308           fi
13309         fi
13310         ;;
13311
13312       beos*)
13313         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13314           allow_undefined_flag_CXX=unsupported
13315           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13316           # support --undefined.  This deserves some investigation.  FIXME
13317           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13318         else
13319           ld_shlibs_CXX=no
13320         fi
13321         ;;
13322
13323       chorus*)
13324         case $cc_basename in
13325           *)
13326           # FIXME: insert proper C++ library support
13327           ld_shlibs_CXX=no
13328           ;;
13329         esac
13330         ;;
13331
13332       cygwin* | mingw* | pw32* | cegcc*)
13333         case $GXX,$cc_basename in
13334         ,cl* | no,cl*)
13335           # Native MSVC
13336           # hardcode_libdir_flag_spec is actually meaningless, as there is
13337           # no search path for DLLs.
13338           hardcode_libdir_flag_spec_CXX=' '
13339           allow_undefined_flag_CXX=unsupported
13340           always_export_symbols_CXX=yes
13341           file_list_spec_CXX='@'
13342           # Tell ltmain to make .lib files, not .a files.
13343           libext=lib
13344           # Tell ltmain to make .dll files, not .so files.
13345           shrext_cmds=.dll
13346           # FIXME: Setting linknames here is a bad hack.
13347           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13348           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13349               cp "$export_symbols" "$output_objdir/$soname.def";
13350               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13351             else
13352               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13353             fi~
13354             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13355             linknames='
13356           # The linker will not automatically build a static lib if we build a DLL.
13357           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13358           enable_shared_with_static_runtimes_CXX=yes
13359           # Don't use ranlib
13360           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13361           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13362             lt_tool_outputfile="@TOOL_OUTPUT@"~
13363             case $lt_outputfile in
13364               *.exe|*.EXE) ;;
13365               *)
13366                 lt_outputfile=$lt_outputfile.exe
13367                 lt_tool_outputfile=$lt_tool_outputfile.exe
13368                 ;;
13369             esac~
13370             func_to_tool_file "$lt_outputfile"~
13371             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13372               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13373               $RM "$lt_outputfile.manifest";
13374             fi'
13375           ;;
13376         *)
13377           # g++
13378           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13379           # as there is no search path for DLLs.
13380           hardcode_libdir_flag_spec_CXX='-L$libdir'
13381           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13382           allow_undefined_flag_CXX=unsupported
13383           always_export_symbols_CXX=no
13384           enable_shared_with_static_runtimes_CXX=yes
13385
13386           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13387             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'
13388             # If the export-symbols file already is a .def file, use it as
13389             # is; otherwise, prepend EXPORTS...
13390             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13391               cp $export_symbols $output_objdir/$soname.def;
13392             else
13393               echo EXPORTS > $output_objdir/$soname.def;
13394               cat $export_symbols >> $output_objdir/$soname.def;
13395             fi~
13396             $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'
13397           else
13398             ld_shlibs_CXX=no
13399           fi
13400           ;;
13401         esac
13402         ;;
13403       darwin* | rhapsody*)
13404
13405
13406   archive_cmds_need_lc_CXX=no
13407   hardcode_direct_CXX=no
13408   hardcode_automatic_CXX=yes
13409   hardcode_shlibpath_var_CXX=unsupported
13410   if test yes = "$lt_cv_ld_force_load"; then
13411     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\"`'
13412
13413   else
13414     whole_archive_flag_spec_CXX=''
13415   fi
13416   link_all_deplibs_CXX=yes
13417   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13418   case $cc_basename in
13419      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13420      *) _lt_dar_can_shared=$GCC ;;
13421   esac
13422   if test yes = "$_lt_dar_can_shared"; then
13423     output_verbose_link_cmd=func_echo_all
13424     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"
13425     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13426     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"
13427     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"
13428        if test yes != "$lt_cv_apple_cc_single_mod"; then
13429       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"
13430       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"
13431     fi
13432
13433   else
13434   ld_shlibs_CXX=no
13435   fi
13436
13437         ;;
13438
13439       os2*)
13440         hardcode_libdir_flag_spec_CXX='-L$libdir'
13441         hardcode_minus_L_CXX=yes
13442         allow_undefined_flag_CXX=unsupported
13443         shrext_cmds=.dll
13444         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13445           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13446           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13447           $ECHO EXPORTS >> $output_objdir/$libname.def~
13448           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13449           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13450           emximp -o $lib $output_objdir/$libname.def'
13451         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13452           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13453           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13454           $ECHO EXPORTS >> $output_objdir/$libname.def~
13455           prefix_cmds="$SED"~
13456           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13457             prefix_cmds="$prefix_cmds -e 1d";
13458           fi~
13459           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13460           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13461           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13462           emximp -o $lib $output_objdir/$libname.def'
13463         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13464         enable_shared_with_static_runtimes_CXX=yes
13465         ;;
13466
13467       dgux*)
13468         case $cc_basename in
13469           ec++*)
13470             # FIXME: insert proper C++ library support
13471             ld_shlibs_CXX=no
13472             ;;
13473           ghcx*)
13474             # Green Hills C++ Compiler
13475             # FIXME: insert proper C++ library support
13476             ld_shlibs_CXX=no
13477             ;;
13478           *)
13479             # FIXME: insert proper C++ library support
13480             ld_shlibs_CXX=no
13481             ;;
13482         esac
13483         ;;
13484
13485       freebsd2.*)
13486         # C++ shared libraries reported to be fairly broken before
13487         # switch to ELF
13488         ld_shlibs_CXX=no
13489         ;;
13490
13491       freebsd-elf*)
13492         archive_cmds_need_lc_CXX=no
13493         ;;
13494
13495       freebsd* | dragonfly*)
13496         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13497         # conventions
13498         ld_shlibs_CXX=yes
13499         ;;
13500
13501       haiku*)
13502         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13503         link_all_deplibs_CXX=yes
13504         ;;
13505
13506       hpux9*)
13507         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13508         hardcode_libdir_separator_CXX=:
13509         export_dynamic_flag_spec_CXX='$wl-E'
13510         hardcode_direct_CXX=yes
13511         hardcode_minus_L_CXX=yes # Not in the search PATH,
13512                                              # but as the default
13513                                              # location of the library.
13514
13515         case $cc_basename in
13516           CC*)
13517             # FIXME: insert proper C++ library support
13518             ld_shlibs_CXX=no
13519             ;;
13520           aCC*)
13521             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13522             # Commands to make compiler produce verbose output that lists
13523             # what "hidden" libraries, object files and flags are used when
13524             # linking a shared library.
13525             #
13526             # There doesn't appear to be a way to prevent this compiler from
13527             # explicitly linking system object files so we need to strip them
13528             # from the output so that they don't get included in the library
13529             # dependencies.
13530             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"'
13531             ;;
13532           *)
13533             if test yes = "$GXX"; then
13534               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13535             else
13536               # FIXME: insert proper C++ library support
13537               ld_shlibs_CXX=no
13538             fi
13539             ;;
13540         esac
13541         ;;
13542
13543       hpux10*|hpux11*)
13544         if test no = "$with_gnu_ld"; then
13545           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13546           hardcode_libdir_separator_CXX=:
13547
13548           case $host_cpu in
13549             hppa*64*|ia64*)
13550               ;;
13551             *)
13552               export_dynamic_flag_spec_CXX='$wl-E'
13553               ;;
13554           esac
13555         fi
13556         case $host_cpu in
13557           hppa*64*|ia64*)
13558             hardcode_direct_CXX=no
13559             hardcode_shlibpath_var_CXX=no
13560             ;;
13561           *)
13562             hardcode_direct_CXX=yes
13563             hardcode_direct_absolute_CXX=yes
13564             hardcode_minus_L_CXX=yes # Not in the search PATH,
13565                                                  # but as the default
13566                                                  # location of the library.
13567             ;;
13568         esac
13569
13570         case $cc_basename in
13571           CC*)
13572             # FIXME: insert proper C++ library support
13573             ld_shlibs_CXX=no
13574             ;;
13575           aCC*)
13576             case $host_cpu in
13577               hppa*64*)
13578                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13579                 ;;
13580               ia64*)
13581                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13582                 ;;
13583               *)
13584                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13585                 ;;
13586             esac
13587             # Commands to make compiler produce verbose output that lists
13588             # what "hidden" libraries, object files and flags are used when
13589             # linking a shared library.
13590             #
13591             # There doesn't appear to be a way to prevent this compiler from
13592             # explicitly linking system object files so we need to strip them
13593             # from the output so that they don't get included in the library
13594             # dependencies.
13595             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"'
13596             ;;
13597           *)
13598             if test yes = "$GXX"; then
13599               if test no = "$with_gnu_ld"; then
13600                 case $host_cpu in
13601                   hppa*64*)
13602                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13603                     ;;
13604                   ia64*)
13605                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13606                     ;;
13607                   *)
13608                     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'
13609                     ;;
13610                 esac
13611               fi
13612             else
13613               # FIXME: insert proper C++ library support
13614               ld_shlibs_CXX=no
13615             fi
13616             ;;
13617         esac
13618         ;;
13619
13620       interix[3-9]*)
13621         hardcode_direct_CXX=no
13622         hardcode_shlibpath_var_CXX=no
13623         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13624         export_dynamic_flag_spec_CXX='$wl-E'
13625         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13626         # Instead, shared libraries are loaded at an image base (0x10000000 by
13627         # default) and relocated if they conflict, which is a slow very memory
13628         # consuming and fragmenting process.  To avoid this, we pick a random,
13629         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13630         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13631         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'
13632         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'
13633         ;;
13634       irix5* | irix6*)
13635         case $cc_basename in
13636           CC*)
13637             # SGI C++
13638             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'
13639
13640             # Archives containing C++ object files must be created using
13641             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13642             # necessary to make sure instantiated templates are included
13643             # in the archive.
13644             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13645             ;;
13646           *)
13647             if test yes = "$GXX"; then
13648               if test no = "$with_gnu_ld"; then
13649                 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'
13650               else
13651                 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'
13652               fi
13653             fi
13654             link_all_deplibs_CXX=yes
13655             ;;
13656         esac
13657         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13658         hardcode_libdir_separator_CXX=:
13659         inherit_rpath_CXX=yes
13660         ;;
13661
13662       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13663         case $cc_basename in
13664           KCC*)
13665             # Kuck and Associates, Inc. (KAI) C++ Compiler
13666
13667             # KCC will only create a shared library if the output file
13668             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13669             # to its proper name (with version) after linking.
13670             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'
13671             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'
13672             # Commands to make compiler produce verbose output that lists
13673             # what "hidden" libraries, object files and flags are used when
13674             # linking a shared library.
13675             #
13676             # There doesn't appear to be a way to prevent this compiler from
13677             # explicitly linking system object files so we need to strip them
13678             # from the output so that they don't get included in the library
13679             # dependencies.
13680             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"'
13681
13682             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13683             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13684
13685             # Archives containing C++ object files must be created using
13686             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13687             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13688             ;;
13689           icpc* | ecpc* )
13690             # Intel C++
13691             with_gnu_ld=yes
13692             # version 8.0 and above of icpc choke on multiply defined symbols
13693             # if we add $predep_objects and $postdep_objects, however 7.1 and
13694             # earlier do not add the objects themselves.
13695             case `$CC -V 2>&1` in
13696               *"Version 7."*)
13697                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13698                 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'
13699                 ;;
13700               *)  # Version 8.0 or newer
13701                 tmp_idyn=
13702                 case $host_cpu in
13703                   ia64*) tmp_idyn=' -i_dynamic';;
13704                 esac
13705                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13706                 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'
13707                 ;;
13708             esac
13709             archive_cmds_need_lc_CXX=no
13710             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13711             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13712             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13713             ;;
13714           pgCC* | pgcpp*)
13715             # Portland Group C++ compiler
13716             case `$CC -V` in
13717             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13718               prelink_cmds_CXX='tpldir=Template.dir~
13719                rm -rf $tpldir~
13720                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13721                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13722               old_archive_cmds_CXX='tpldir=Template.dir~
13723                 rm -rf $tpldir~
13724                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13725                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13726                 $RANLIB $oldlib'
13727               archive_cmds_CXX='tpldir=Template.dir~
13728                 rm -rf $tpldir~
13729                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13730                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13731               archive_expsym_cmds_CXX='tpldir=Template.dir~
13732                 rm -rf $tpldir~
13733                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13734                 $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'
13735               ;;
13736             *) # Version 6 and above use weak symbols
13737               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13738               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'
13739               ;;
13740             esac
13741
13742             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13743             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13744             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'
13745             ;;
13746           cxx*)
13747             # Compaq C++
13748             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13749             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'
13750
13751             runpath_var=LD_RUN_PATH
13752             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13753             hardcode_libdir_separator_CXX=:
13754
13755             # Commands to make compiler produce verbose output that lists
13756             # what "hidden" libraries, object files and flags are used when
13757             # linking a shared library.
13758             #
13759             # There doesn't appear to be a way to prevent this compiler from
13760             # explicitly linking system object files so we need to strip them
13761             # from the output so that they don't get included in the library
13762             # dependencies.
13763             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'
13764             ;;
13765           xl* | mpixl* | bgxl*)
13766             # IBM XL 8.0 on PPC, with GNU ld
13767             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13768             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13769             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13770             if test yes = "$supports_anon_versioning"; then
13771               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13772                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13773                 echo "local: *; };" >> $output_objdir/$libname.ver~
13774                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13775             fi
13776             ;;
13777           *)
13778             case `$CC -V 2>&1 | sed 5q` in
13779             *Sun\ C*)
13780               # Sun C++ 5.9
13781               no_undefined_flag_CXX=' -zdefs'
13782               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13783               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'
13784               hardcode_libdir_flag_spec_CXX='-R$libdir'
13785               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'
13786               compiler_needs_object_CXX=yes
13787
13788               # Not sure whether something based on
13789               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13790               # would be better.
13791               output_verbose_link_cmd='func_echo_all'
13792
13793               # Archives containing C++ object files must be created using
13794               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13795               # necessary to make sure instantiated templates are included
13796               # in the archive.
13797               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13798               ;;
13799             esac
13800             ;;
13801         esac
13802         ;;
13803
13804       lynxos*)
13805         # FIXME: insert proper C++ library support
13806         ld_shlibs_CXX=no
13807         ;;
13808
13809       m88k*)
13810         # FIXME: insert proper C++ library support
13811         ld_shlibs_CXX=no
13812         ;;
13813
13814       mvs*)
13815         case $cc_basename in
13816           cxx*)
13817             # FIXME: insert proper C++ library support
13818             ld_shlibs_CXX=no
13819             ;;
13820           *)
13821             # FIXME: insert proper C++ library support
13822             ld_shlibs_CXX=no
13823             ;;
13824         esac
13825         ;;
13826
13827       netbsd*)
13828         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13829           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13830           wlarc=
13831           hardcode_libdir_flag_spec_CXX='-R$libdir'
13832           hardcode_direct_CXX=yes
13833           hardcode_shlibpath_var_CXX=no
13834         fi
13835         # Workaround some broken pre-1.5 toolchains
13836         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13837         ;;
13838
13839       *nto* | *qnx*)
13840         ld_shlibs_CXX=yes
13841         ;;
13842
13843       openbsd* | bitrig*)
13844         if test -f /usr/libexec/ld.so; then
13845           hardcode_direct_CXX=yes
13846           hardcode_shlibpath_var_CXX=no
13847           hardcode_direct_absolute_CXX=yes
13848           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13849           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13850           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13851             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13852             export_dynamic_flag_spec_CXX='$wl-E'
13853             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13854           fi
13855           output_verbose_link_cmd=func_echo_all
13856         else
13857           ld_shlibs_CXX=no
13858         fi
13859         ;;
13860
13861       osf3* | osf4* | osf5*)
13862         case $cc_basename in
13863           KCC*)
13864             # Kuck and Associates, Inc. (KAI) C++ Compiler
13865
13866             # KCC will only create a shared library if the output file
13867             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13868             # to its proper name (with version) after linking.
13869             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'
13870
13871             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13872             hardcode_libdir_separator_CXX=:
13873
13874             # Archives containing C++ object files must be created using
13875             # the KAI C++ compiler.
13876             case $host in
13877               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13878               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13879             esac
13880             ;;
13881           RCC*)
13882             # Rational C++ 2.4.1
13883             # FIXME: insert proper C++ library support
13884             ld_shlibs_CXX=no
13885             ;;
13886           cxx*)
13887             case $host in
13888               osf3*)
13889                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13890                 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'
13891                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13892                 ;;
13893               *)
13894                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13895                 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'
13896                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13897                   echo "-hidden">> $lib.exp~
13898                   $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~
13899                   $RM $lib.exp'
13900                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13901                 ;;
13902             esac
13903
13904             hardcode_libdir_separator_CXX=:
13905
13906             # Commands to make compiler produce verbose output that lists
13907             # what "hidden" libraries, object files and flags are used when
13908             # linking a shared library.
13909             #
13910             # There doesn't appear to be a way to prevent this compiler from
13911             # explicitly linking system object files so we need to strip them
13912             # from the output so that they don't get included in the library
13913             # dependencies.
13914             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"'
13915             ;;
13916           *)
13917             if test yes,no = "$GXX,$with_gnu_ld"; then
13918               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13919               case $host in
13920                 osf3*)
13921                   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'
13922                   ;;
13923                 *)
13924                   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'
13925                   ;;
13926               esac
13927
13928               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13929               hardcode_libdir_separator_CXX=:
13930
13931               # Commands to make compiler produce verbose output that lists
13932               # what "hidden" libraries, object files and flags are used when
13933               # linking a shared library.
13934               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13935
13936             else
13937               # FIXME: insert proper C++ library support
13938               ld_shlibs_CXX=no
13939             fi
13940             ;;
13941         esac
13942         ;;
13943
13944       psos*)
13945         # FIXME: insert proper C++ library support
13946         ld_shlibs_CXX=no
13947         ;;
13948
13949       sunos4*)
13950         case $cc_basename in
13951           CC*)
13952             # Sun C++ 4.x
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           lcc*)
13957             # Lucid
13958             # FIXME: insert proper C++ library support
13959             ld_shlibs_CXX=no
13960             ;;
13961           *)
13962             # FIXME: insert proper C++ library support
13963             ld_shlibs_CXX=no
13964             ;;
13965         esac
13966         ;;
13967
13968       solaris*)
13969         case $cc_basename in
13970           CC* | sunCC*)
13971             # Sun C++ 4.2, 5.x and Centerline C++
13972             archive_cmds_need_lc_CXX=yes
13973             no_undefined_flag_CXX=' -zdefs'
13974             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13975             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13976               $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'
13977
13978             hardcode_libdir_flag_spec_CXX='-R$libdir'
13979             hardcode_shlibpath_var_CXX=no
13980             case $host_os in
13981               solaris2.[0-5] | solaris2.[0-5].*) ;;
13982               *)
13983                 # The compiler driver will combine and reorder linker options,
13984                 # but understands '-z linker_flag'.
13985                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13986                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13987                 ;;
13988             esac
13989             link_all_deplibs_CXX=yes
13990
13991             output_verbose_link_cmd='func_echo_all'
13992
13993             # Archives containing C++ object files must be created using
13994             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13995             # necessary to make sure instantiated templates are included
13996             # in the archive.
13997             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13998             ;;
13999           gcx*)
14000             # Green Hills C++ Compiler
14001             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14002
14003             # The C++ compiler must be used to create the archive.
14004             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14005             ;;
14006           *)
14007             # GNU C++ compiler with Solaris linker
14008             if test yes,no = "$GXX,$with_gnu_ld"; then
14009               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14010               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14011                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14012                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14013                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14014
14015                 # Commands to make compiler produce verbose output that lists
14016                 # what "hidden" libraries, object files and flags are used when
14017                 # linking a shared library.
14018                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14019               else
14020                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14021                 # platform.
14022                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14023                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14024                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14025
14026                 # Commands to make compiler produce verbose output that lists
14027                 # what "hidden" libraries, object files and flags are used when
14028                 # linking a shared library.
14029                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14030               fi
14031
14032               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14033               case $host_os in
14034                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14035                 *)
14036                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14037                   ;;
14038               esac
14039             fi
14040             ;;
14041         esac
14042         ;;
14043
14044     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045       no_undefined_flag_CXX='$wl-z,text'
14046       archive_cmds_need_lc_CXX=no
14047       hardcode_shlibpath_var_CXX=no
14048       runpath_var='LD_RUN_PATH'
14049
14050       case $cc_basename in
14051         CC*)
14052           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054           ;;
14055         *)
14056           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058           ;;
14059       esac
14060       ;;
14061
14062       sysv5* | sco3.2v5* | sco5v6*)
14063         # Note: We CANNOT use -z defs as we might desire, because we do not
14064         # link with -lc, and that would cause any symbols used from libc to
14065         # always be unresolved, which means just about no library would
14066         # ever link correctly.  If we're not using GNU ld we use -z text
14067         # though, which does catch some bad symbols but isn't as heavy-handed
14068         # as -z defs.
14069         no_undefined_flag_CXX='$wl-z,text'
14070         allow_undefined_flag_CXX='$wl-z,nodefs'
14071         archive_cmds_need_lc_CXX=no
14072         hardcode_shlibpath_var_CXX=no
14073         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14074         hardcode_libdir_separator_CXX=':'
14075         link_all_deplibs_CXX=yes
14076         export_dynamic_flag_spec_CXX='$wl-Bexport'
14077         runpath_var='LD_RUN_PATH'
14078
14079         case $cc_basename in
14080           CC*)
14081             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14084               '"$old_archive_cmds_CXX"
14085             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14086               '"$reload_cmds_CXX"
14087             ;;
14088           *)
14089             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091             ;;
14092         esac
14093       ;;
14094
14095       tandem*)
14096         case $cc_basename in
14097           NCC*)
14098             # NonStop-UX NCC 3.20
14099             # FIXME: insert proper C++ library support
14100             ld_shlibs_CXX=no
14101             ;;
14102           *)
14103             # FIXME: insert proper C++ library support
14104             ld_shlibs_CXX=no
14105             ;;
14106         esac
14107         ;;
14108
14109       vxworks*)
14110         # FIXME: insert proper C++ library support
14111         ld_shlibs_CXX=no
14112         ;;
14113
14114       *)
14115         # FIXME: insert proper C++ library support
14116         ld_shlibs_CXX=no
14117         ;;
14118     esac
14119
14120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14121 $as_echo "$ld_shlibs_CXX" >&6; }
14122     test no = "$ld_shlibs_CXX" && can_build_shared=no
14123
14124     GCC_CXX=$GXX
14125     LD_CXX=$LD
14126
14127     ## CAVEAT EMPTOR:
14128     ## There is no encapsulation within the following macros, do not change
14129     ## the running order or otherwise move them around unless you know exactly
14130     ## what you are doing...
14131     # Dependencies to place before and after the object being linked:
14132 predep_objects_CXX=
14133 postdep_objects_CXX=
14134 predeps_CXX=
14135 postdeps_CXX=
14136 compiler_lib_search_path_CXX=
14137
14138 cat > conftest.$ac_ext <<_LT_EOF
14139 class Foo
14140 {
14141 public:
14142   Foo (void) { a = 0; }
14143 private:
14144   int a;
14145 };
14146 _LT_EOF
14147
14148
14149 _lt_libdeps_save_CFLAGS=$CFLAGS
14150 case "$CC $CFLAGS " in #(
14151 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14152 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14153 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14154 esac
14155
14156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14157   (eval $ac_compile) 2>&5
14158   ac_status=$?
14159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160   test $ac_status = 0; }; then
14161   # Parse the compiler output and extract the necessary
14162   # objects, libraries and library flags.
14163
14164   # Sentinel used to keep track of whether or not we are before
14165   # the conftest object file.
14166   pre_test_object_deps_done=no
14167
14168   for p in `eval "$output_verbose_link_cmd"`; do
14169     case $prev$p in
14170
14171     -L* | -R* | -l*)
14172        # Some compilers place space between "-{L,R}" and the path.
14173        # Remove the space.
14174        if test x-L = "$p" ||
14175           test x-R = "$p"; then
14176          prev=$p
14177          continue
14178        fi
14179
14180        # Expand the sysroot to ease extracting the directories later.
14181        if test -z "$prev"; then
14182          case $p in
14183          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14184          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14185          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14186          esac
14187        fi
14188        case $p in
14189        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14190        esac
14191        if test no = "$pre_test_object_deps_done"; then
14192          case $prev in
14193          -L | -R)
14194            # Internal compiler library paths should come after those
14195            # provided the user.  The postdeps already come after the
14196            # user supplied libs so there is no need to process them.
14197            if test -z "$compiler_lib_search_path_CXX"; then
14198              compiler_lib_search_path_CXX=$prev$p
14199            else
14200              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14201            fi
14202            ;;
14203          # The "-l" case would never come before the object being
14204          # linked, so don't bother handling this case.
14205          esac
14206        else
14207          if test -z "$postdeps_CXX"; then
14208            postdeps_CXX=$prev$p
14209          else
14210            postdeps_CXX="${postdeps_CXX} $prev$p"
14211          fi
14212        fi
14213        prev=
14214        ;;
14215
14216     *.lto.$objext) ;; # Ignore GCC LTO objects
14217     *.$objext)
14218        # This assumes that the test object file only shows up
14219        # once in the compiler output.
14220        if test "$p" = "conftest.$objext"; then
14221          pre_test_object_deps_done=yes
14222          continue
14223        fi
14224
14225        if test no = "$pre_test_object_deps_done"; then
14226          if test -z "$predep_objects_CXX"; then
14227            predep_objects_CXX=$p
14228          else
14229            predep_objects_CXX="$predep_objects_CXX $p"
14230          fi
14231        else
14232          if test -z "$postdep_objects_CXX"; then
14233            postdep_objects_CXX=$p
14234          else
14235            postdep_objects_CXX="$postdep_objects_CXX $p"
14236          fi
14237        fi
14238        ;;
14239
14240     *) ;; # Ignore the rest.
14241
14242     esac
14243   done
14244
14245   # Clean up.
14246   rm -f a.out a.exe
14247 else
14248   echo "libtool.m4: error: problem compiling CXX test program"
14249 fi
14250
14251 $RM -f confest.$objext
14252 CFLAGS=$_lt_libdeps_save_CFLAGS
14253
14254 # PORTME: override above test on systems where it is broken
14255 case $host_os in
14256 interix[3-9]*)
14257   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14258   # hack all around it, let's just trust "g++" to DTRT.
14259   predep_objects_CXX=
14260   postdep_objects_CXX=
14261   postdeps_CXX=
14262   ;;
14263 esac
14264
14265
14266 case " $postdeps_CXX " in
14267 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14268 esac
14269  compiler_lib_search_dirs_CXX=
14270 if test -n "${compiler_lib_search_path_CXX}"; then
14271  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14272 fi
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304     lt_prog_compiler_wl_CXX=
14305 lt_prog_compiler_pic_CXX=
14306 lt_prog_compiler_static_CXX=
14307
14308
14309   # C++ specific cases for pic, static, wl, etc.
14310   if test yes = "$GXX"; then
14311     lt_prog_compiler_wl_CXX='-Wl,'
14312     lt_prog_compiler_static_CXX='-static'
14313
14314     case $host_os in
14315     aix*)
14316       # All AIX code is PIC.
14317       if test ia64 = "$host_cpu"; then
14318         # AIX 5 now supports IA64 processor
14319         lt_prog_compiler_static_CXX='-Bstatic'
14320       fi
14321       lt_prog_compiler_pic_CXX='-fPIC'
14322       ;;
14323
14324     amigaos*)
14325       case $host_cpu in
14326       powerpc)
14327             # see comment about AmigaOS4 .so support
14328             lt_prog_compiler_pic_CXX='-fPIC'
14329         ;;
14330       m68k)
14331             # FIXME: we need at least 68020 code to build shared libraries, but
14332             # adding the '-m68020' flag to GCC prevents building anything better,
14333             # like '-m68040'.
14334             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14335         ;;
14336       esac
14337       ;;
14338
14339     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14340       # PIC is the default for these OSes.
14341       ;;
14342     mingw* | cygwin* | os2* | pw32* | cegcc*)
14343       # This hack is so that the source file can tell whether it is being
14344       # built for inclusion in a dll (and should export symbols for example).
14345       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14346       # (--disable-auto-import) libraries
14347       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14348       case $host_os in
14349       os2*)
14350         lt_prog_compiler_static_CXX='$wl-static'
14351         ;;
14352       esac
14353       ;;
14354     darwin* | rhapsody*)
14355       # PIC is the default on this platform
14356       # Common symbols not allowed in MH_DYLIB files
14357       lt_prog_compiler_pic_CXX='-fno-common'
14358       ;;
14359     *djgpp*)
14360       # DJGPP does not support shared libraries at all
14361       lt_prog_compiler_pic_CXX=
14362       ;;
14363     haiku*)
14364       # PIC is the default for Haiku.
14365       # The "-static" flag exists, but is broken.
14366       lt_prog_compiler_static_CXX=
14367       ;;
14368     interix[3-9]*)
14369       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14370       # Instead, we relocate shared libraries at runtime.
14371       ;;
14372     sysv4*MP*)
14373       if test -d /usr/nec; then
14374         lt_prog_compiler_pic_CXX=-Kconform_pic
14375       fi
14376       ;;
14377     hpux*)
14378       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14379       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14380       # sets the default TLS model and affects inlining.
14381       case $host_cpu in
14382       hppa*64*)
14383         ;;
14384       *)
14385         lt_prog_compiler_pic_CXX='-fPIC'
14386         ;;
14387       esac
14388       ;;
14389     *qnx* | *nto*)
14390       # QNX uses GNU C++, but need to define -shared option too, otherwise
14391       # it will coredump.
14392       lt_prog_compiler_pic_CXX='-fPIC -shared'
14393       ;;
14394     *)
14395       lt_prog_compiler_pic_CXX='-fPIC'
14396       ;;
14397     esac
14398   else
14399     case $host_os in
14400       aix[4-9]*)
14401         # All AIX code is PIC.
14402         if test ia64 = "$host_cpu"; then
14403           # AIX 5 now supports IA64 processor
14404           lt_prog_compiler_static_CXX='-Bstatic'
14405         else
14406           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14407         fi
14408         ;;
14409       chorus*)
14410         case $cc_basename in
14411         cxch68*)
14412           # Green Hills C++ Compiler
14413           # _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"
14414           ;;
14415         esac
14416         ;;
14417       mingw* | cygwin* | os2* | pw32* | cegcc*)
14418         # This hack is so that the source file can tell whether it is being
14419         # built for inclusion in a dll (and should export symbols for example).
14420         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14421         ;;
14422       dgux*)
14423         case $cc_basename in
14424           ec++*)
14425             lt_prog_compiler_pic_CXX='-KPIC'
14426             ;;
14427           ghcx*)
14428             # Green Hills C++ Compiler
14429             lt_prog_compiler_pic_CXX='-pic'
14430             ;;
14431           *)
14432             ;;
14433         esac
14434         ;;
14435       freebsd* | dragonfly*)
14436         # FreeBSD uses GNU C++
14437         ;;
14438       hpux9* | hpux10* | hpux11*)
14439         case $cc_basename in
14440           CC*)
14441             lt_prog_compiler_wl_CXX='-Wl,'
14442             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14443             if test ia64 != "$host_cpu"; then
14444               lt_prog_compiler_pic_CXX='+Z'
14445             fi
14446             ;;
14447           aCC*)
14448             lt_prog_compiler_wl_CXX='-Wl,'
14449             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14450             case $host_cpu in
14451             hppa*64*|ia64*)
14452               # +Z the default
14453               ;;
14454             *)
14455               lt_prog_compiler_pic_CXX='+Z'
14456               ;;
14457             esac
14458             ;;
14459           *)
14460             ;;
14461         esac
14462         ;;
14463       interix*)
14464         # This is c89, which is MS Visual C++ (no shared libs)
14465         # Anyone wants to do a port?
14466         ;;
14467       irix5* | irix6* | nonstopux*)
14468         case $cc_basename in
14469           CC*)
14470             lt_prog_compiler_wl_CXX='-Wl,'
14471             lt_prog_compiler_static_CXX='-non_shared'
14472             # CC pic flag -KPIC is the default.
14473             ;;
14474           *)
14475             ;;
14476         esac
14477         ;;
14478       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14479         case $cc_basename in
14480           KCC*)
14481             # KAI C++ Compiler
14482             lt_prog_compiler_wl_CXX='--backend -Wl,'
14483             lt_prog_compiler_pic_CXX='-fPIC'
14484             ;;
14485           ecpc* )
14486             # old Intel C++ for x86_64, which still supported -KPIC.
14487             lt_prog_compiler_wl_CXX='-Wl,'
14488             lt_prog_compiler_pic_CXX='-KPIC'
14489             lt_prog_compiler_static_CXX='-static'
14490             ;;
14491           icpc* )
14492             # Intel C++, used to be incompatible with GCC.
14493             # ICC 10 doesn't accept -KPIC any more.
14494             lt_prog_compiler_wl_CXX='-Wl,'
14495             lt_prog_compiler_pic_CXX='-fPIC'
14496             lt_prog_compiler_static_CXX='-static'
14497             ;;
14498           pgCC* | pgcpp*)
14499             # Portland Group C++ compiler
14500             lt_prog_compiler_wl_CXX='-Wl,'
14501             lt_prog_compiler_pic_CXX='-fpic'
14502             lt_prog_compiler_static_CXX='-Bstatic'
14503             ;;
14504           cxx*)
14505             # Compaq C++
14506             # Make sure the PIC flag is empty.  It appears that all Alpha
14507             # Linux and Compaq Tru64 Unix objects are PIC.
14508             lt_prog_compiler_pic_CXX=
14509             lt_prog_compiler_static_CXX='-non_shared'
14510             ;;
14511           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14512             # IBM XL 8.0, 9.0 on PPC and BlueGene
14513             lt_prog_compiler_wl_CXX='-Wl,'
14514             lt_prog_compiler_pic_CXX='-qpic'
14515             lt_prog_compiler_static_CXX='-qstaticlink'
14516             ;;
14517           *)
14518             case `$CC -V 2>&1 | sed 5q` in
14519             *Sun\ C*)
14520               # Sun C++ 5.9
14521               lt_prog_compiler_pic_CXX='-KPIC'
14522               lt_prog_compiler_static_CXX='-Bstatic'
14523               lt_prog_compiler_wl_CXX='-Qoption ld '
14524               ;;
14525             esac
14526             ;;
14527         esac
14528         ;;
14529       lynxos*)
14530         ;;
14531       m88k*)
14532         ;;
14533       mvs*)
14534         case $cc_basename in
14535           cxx*)
14536             lt_prog_compiler_pic_CXX='-W c,exportall'
14537             ;;
14538           *)
14539             ;;
14540         esac
14541         ;;
14542       netbsd* | netbsdelf*-gnu)
14543         ;;
14544       *qnx* | *nto*)
14545         # QNX uses GNU C++, but need to define -shared option too, otherwise
14546         # it will coredump.
14547         lt_prog_compiler_pic_CXX='-fPIC -shared'
14548         ;;
14549       osf3* | osf4* | osf5*)
14550         case $cc_basename in
14551           KCC*)
14552             lt_prog_compiler_wl_CXX='--backend -Wl,'
14553             ;;
14554           RCC*)
14555             # Rational C++ 2.4.1
14556             lt_prog_compiler_pic_CXX='-pic'
14557             ;;
14558           cxx*)
14559             # Digital/Compaq C++
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             # Make sure the PIC flag is empty.  It appears that all Alpha
14562             # Linux and Compaq Tru64 Unix objects are PIC.
14563             lt_prog_compiler_pic_CXX=
14564             lt_prog_compiler_static_CXX='-non_shared'
14565             ;;
14566           *)
14567             ;;
14568         esac
14569         ;;
14570       psos*)
14571         ;;
14572       solaris*)
14573         case $cc_basename in
14574           CC* | sunCC*)
14575             # Sun C++ 4.2, 5.x and Centerline C++
14576             lt_prog_compiler_pic_CXX='-KPIC'
14577             lt_prog_compiler_static_CXX='-Bstatic'
14578             lt_prog_compiler_wl_CXX='-Qoption ld '
14579             ;;
14580           gcx*)
14581             # Green Hills C++ Compiler
14582             lt_prog_compiler_pic_CXX='-PIC'
14583             ;;
14584           *)
14585             ;;
14586         esac
14587         ;;
14588       sunos4*)
14589         case $cc_basename in
14590           CC*)
14591             # Sun C++ 4.x
14592             lt_prog_compiler_pic_CXX='-pic'
14593             lt_prog_compiler_static_CXX='-Bstatic'
14594             ;;
14595           lcc*)
14596             # Lucid
14597             lt_prog_compiler_pic_CXX='-pic'
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14604         case $cc_basename in
14605           CC*)
14606             lt_prog_compiler_wl_CXX='-Wl,'
14607             lt_prog_compiler_pic_CXX='-KPIC'
14608             lt_prog_compiler_static_CXX='-Bstatic'
14609             ;;
14610         esac
14611         ;;
14612       tandem*)
14613         case $cc_basename in
14614           NCC*)
14615             # NonStop-UX NCC 3.20
14616             lt_prog_compiler_pic_CXX='-KPIC'
14617             ;;
14618           *)
14619             ;;
14620         esac
14621         ;;
14622       vxworks*)
14623         ;;
14624       *)
14625         lt_prog_compiler_can_build_shared_CXX=no
14626         ;;
14627     esac
14628   fi
14629
14630 case $host_os in
14631   # For platforms that do not support PIC, -DPIC is meaningless:
14632   *djgpp*)
14633     lt_prog_compiler_pic_CXX=
14634     ;;
14635   *)
14636     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14637     ;;
14638 esac
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14641 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14642 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14643   $as_echo_n "(cached) " >&6
14644 else
14645   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14648 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14649 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14650
14651 #
14652 # Check to make sure the PIC flag actually works.
14653 #
14654 if test -n "$lt_prog_compiler_pic_CXX"; then
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14656 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14657 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14658   $as_echo_n "(cached) " >&6
14659 else
14660   lt_cv_prog_compiler_pic_works_CXX=no
14661    ac_outfile=conftest.$ac_objext
14662    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14663    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14664    # Insert the option either (1) after the last *FLAGS variable, or
14665    # (2) before a word containing "conftest.", or (3) at the end.
14666    # Note that $ac_compile itself does not contain backslashes and begins
14667    # with a dollar sign (not a hyphen), so the echo should work correctly.
14668    # The option is referenced via a variable to avoid confusing sed.
14669    lt_compile=`echo "$ac_compile" | $SED \
14670    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14671    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672    -e 's:$: $lt_compiler_flag:'`
14673    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14674    (eval "$lt_compile" 2>conftest.err)
14675    ac_status=$?
14676    cat conftest.err >&5
14677    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678    if (exit $ac_status) && test -s "$ac_outfile"; then
14679      # The compiler can only warn and ignore the option if not recognized
14680      # So say no if there are warnings other than the usual output.
14681      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14682      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14683      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14684        lt_cv_prog_compiler_pic_works_CXX=yes
14685      fi
14686    fi
14687    $RM conftest*
14688
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14691 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14692
14693 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14694     case $lt_prog_compiler_pic_CXX in
14695      "" | " "*) ;;
14696      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14697      esac
14698 else
14699     lt_prog_compiler_pic_CXX=
14700      lt_prog_compiler_can_build_shared_CXX=no
14701 fi
14702
14703 fi
14704
14705
14706
14707
14708
14709 #
14710 # Check to make sure the static flag actually works.
14711 #
14712 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14715 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14716   $as_echo_n "(cached) " >&6
14717 else
14718   lt_cv_prog_compiler_static_works_CXX=no
14719    save_LDFLAGS=$LDFLAGS
14720    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14721    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14722    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14723      # The linker can only warn and ignore the option if not recognized
14724      # So say no if there are warnings
14725      if test -s conftest.err; then
14726        # Append any errors to the config.log.
14727        cat conftest.err 1>&5
14728        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14729        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14730        if diff conftest.exp conftest.er2 >/dev/null; then
14731          lt_cv_prog_compiler_static_works_CXX=yes
14732        fi
14733      else
14734        lt_cv_prog_compiler_static_works_CXX=yes
14735      fi
14736    fi
14737    $RM -r conftest*
14738    LDFLAGS=$save_LDFLAGS
14739
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14742 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14743
14744 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14745     :
14746 else
14747     lt_prog_compiler_static_CXX=
14748 fi
14749
14750
14751
14752
14753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14755 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14756   $as_echo_n "(cached) " >&6
14757 else
14758   lt_cv_prog_compiler_c_o_CXX=no
14759    $RM -r conftest 2>/dev/null
14760    mkdir conftest
14761    cd conftest
14762    mkdir out
14763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14764
14765    lt_compiler_flag="-o out/conftest2.$ac_objext"
14766    # Insert the option either (1) after the last *FLAGS variable, or
14767    # (2) before a word containing "conftest.", or (3) at the end.
14768    # Note that $ac_compile itself does not contain backslashes and begins
14769    # with a dollar sign (not a hyphen), so the echo should work correctly.
14770    lt_compile=`echo "$ac_compile" | $SED \
14771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773    -e 's:$: $lt_compiler_flag:'`
14774    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14775    (eval "$lt_compile" 2>out/conftest.err)
14776    ac_status=$?
14777    cat out/conftest.err >&5
14778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14780    then
14781      # The compiler can only warn and ignore the option if not recognized
14782      # So say no if there are warnings
14783      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14784      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14785      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14786        lt_cv_prog_compiler_c_o_CXX=yes
14787      fi
14788    fi
14789    chmod u+w . 2>&5
14790    $RM conftest*
14791    # SGI C++ compiler will create directory out/ii_files/ for
14792    # template instantiation
14793    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14794    $RM out/* && rmdir out
14795    cd ..
14796    $RM -r conftest
14797    $RM conftest*
14798
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14801 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14802
14803
14804
14805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14807 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14808   $as_echo_n "(cached) " >&6
14809 else
14810   lt_cv_prog_compiler_c_o_CXX=no
14811    $RM -r conftest 2>/dev/null
14812    mkdir conftest
14813    cd conftest
14814    mkdir out
14815    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816
14817    lt_compiler_flag="-o out/conftest2.$ac_objext"
14818    # Insert the option either (1) after the last *FLAGS variable, or
14819    # (2) before a word containing "conftest.", or (3) at the end.
14820    # Note that $ac_compile itself does not contain backslashes and begins
14821    # with a dollar sign (not a hyphen), so the echo should work correctly.
14822    lt_compile=`echo "$ac_compile" | $SED \
14823    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14824    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14825    -e 's:$: $lt_compiler_flag:'`
14826    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14827    (eval "$lt_compile" 2>out/conftest.err)
14828    ac_status=$?
14829    cat out/conftest.err >&5
14830    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14832    then
14833      # The compiler can only warn and ignore the option if not recognized
14834      # So say no if there are warnings
14835      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14836      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14837      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14838        lt_cv_prog_compiler_c_o_CXX=yes
14839      fi
14840    fi
14841    chmod u+w . 2>&5
14842    $RM conftest*
14843    # SGI C++ compiler will create directory out/ii_files/ for
14844    # template instantiation
14845    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14846    $RM out/* && rmdir out
14847    cd ..
14848    $RM -r conftest
14849    $RM conftest*
14850
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14853 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14854
14855
14856
14857
14858 hard_links=nottested
14859 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14860   # do not overwrite the value of need_locks provided by the user
14861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14862 $as_echo_n "checking if we can lock with hard links... " >&6; }
14863   hard_links=yes
14864   $RM conftest*
14865   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14866   touch conftest.a
14867   ln conftest.a conftest.b 2>&5 || hard_links=no
14868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14870 $as_echo "$hard_links" >&6; }
14871   if test no = "$hard_links"; then
14872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14873 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14874     need_locks=warn
14875   fi
14876 else
14877   need_locks=no
14878 fi
14879
14880
14881
14882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14884
14885   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14886   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14887   case $host_os in
14888   aix[4-9]*)
14889     # If we're using GNU nm, then we don't want the "-C" option.
14890     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14891     # Without the "-l" option, or with the "-B" option, AIX nm treats
14892     # weak defined symbols like other global defined symbols, whereas
14893     # GNU nm marks them as "W".
14894     # While the 'weak' keyword is ignored in the Export File, we need
14895     # it in the Import File for the 'aix-soname' feature, so we have
14896     # to replace the "-B" option with "-P" for AIX nm.
14897     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14898       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14899     else
14900       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14901     fi
14902     ;;
14903   pw32*)
14904     export_symbols_cmds_CXX=$ltdll_cmds
14905     ;;
14906   cygwin* | mingw* | cegcc*)
14907     case $cc_basename in
14908     cl*)
14909       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14910       ;;
14911     *)
14912       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'
14913       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14914       ;;
14915     esac
14916     ;;
14917   linux* | k*bsd*-gnu | gnu*)
14918     link_all_deplibs_CXX=no
14919     ;;
14920   *)
14921     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14922     ;;
14923   esac
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14926 $as_echo "$ld_shlibs_CXX" >&6; }
14927 test no = "$ld_shlibs_CXX" && can_build_shared=no
14928
14929 with_gnu_ld_CXX=$with_gnu_ld
14930
14931
14932
14933
14934
14935
14936 #
14937 # Do we need to explicitly link libc?
14938 #
14939 case "x$archive_cmds_need_lc_CXX" in
14940 x|xyes)
14941   # Assume -lc should be added
14942   archive_cmds_need_lc_CXX=yes
14943
14944   if test yes,yes = "$GCC,$enable_shared"; then
14945     case $archive_cmds_CXX in
14946     *'~'*)
14947       # FIXME: we may have to deal with multi-command sequences.
14948       ;;
14949     '$CC '*)
14950       # Test whether the compiler implicitly links with -lc since on some
14951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14952       # to ld, don't add -lc before -lgcc.
14953       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14954 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14955 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   $RM conftest*
14959         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14960
14961         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14962   (eval $ac_compile) 2>&5
14963   ac_status=$?
14964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965   test $ac_status = 0; } 2>conftest.err; then
14966           soname=conftest
14967           lib=conftest
14968           libobjs=conftest.$ac_objext
14969           deplibs=
14970           wl=$lt_prog_compiler_wl_CXX
14971           pic_flag=$lt_prog_compiler_pic_CXX
14972           compiler_flags=-v
14973           linker_flags=-v
14974           verstring=
14975           output_objdir=.
14976           libname=conftest
14977           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14978           allow_undefined_flag_CXX=
14979           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14980   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14981   ac_status=$?
14982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983   test $ac_status = 0; }
14984           then
14985             lt_cv_archive_cmds_need_lc_CXX=no
14986           else
14987             lt_cv_archive_cmds_need_lc_CXX=yes
14988           fi
14989           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14990         else
14991           cat conftest.err 1>&5
14992         fi
14993         $RM conftest*
14994
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14997 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14998       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14999       ;;
15000     esac
15001   fi
15002   ;;
15003 esac
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15067 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15068
15069 library_names_spec=
15070 libname_spec='lib$name'
15071 soname_spec=
15072 shrext_cmds=.so
15073 postinstall_cmds=
15074 postuninstall_cmds=
15075 finish_cmds=
15076 finish_eval=
15077 shlibpath_var=
15078 shlibpath_overrides_runpath=unknown
15079 version_type=none
15080 dynamic_linker="$host_os ld.so"
15081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15082 need_lib_prefix=unknown
15083 hardcode_into_libs=no
15084
15085 # when you set need_version to no, make sure it does not cause -set_version
15086 # flags to be left without arguments
15087 need_version=unknown
15088
15089
15090
15091 case $host_os in
15092 aix3*)
15093   version_type=linux # correct to gnu/linux during the next big refactor
15094   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15095   shlibpath_var=LIBPATH
15096
15097   # AIX 3 has no versioning support, so we append a major version to the name.
15098   soname_spec='$libname$release$shared_ext$major'
15099   ;;
15100
15101 aix[4-9]*)
15102   version_type=linux # correct to gnu/linux during the next big refactor
15103   need_lib_prefix=no
15104   need_version=no
15105   hardcode_into_libs=yes
15106   if test ia64 = "$host_cpu"; then
15107     # AIX 5 supports IA64
15108     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15109     shlibpath_var=LD_LIBRARY_PATH
15110   else
15111     # With GCC up to 2.95.x, collect2 would create an import file
15112     # for dependence libraries.  The import file would start with
15113     # the line '#! .'.  This would cause the generated library to
15114     # depend on '.', always an invalid library.  This was fixed in
15115     # development snapshots of GCC prior to 3.0.
15116     case $host_os in
15117       aix4 | aix4.[01] | aix4.[01].*)
15118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15119            echo ' yes '
15120            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15121         :
15122       else
15123         can_build_shared=no
15124       fi
15125       ;;
15126     esac
15127     # Using Import Files as archive members, it is possible to support
15128     # filename-based versioning of shared library archives on AIX. While
15129     # this would work for both with and without runtime linking, it will
15130     # prevent static linking of such archives. So we do filename-based
15131     # shared library versioning with .so extension only, which is used
15132     # when both runtime linking and shared linking is enabled.
15133     # Unfortunately, runtime linking may impact performance, so we do
15134     # not want this to be the default eventually. Also, we use the
15135     # versioned .so libs for executables only if there is the -brtl
15136     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15137     # To allow for filename-based versioning support, we need to create
15138     # libNAME.so.V as an archive file, containing:
15139     # *) an Import File, referring to the versioned filename of the
15140     #    archive as well as the shared archive member, telling the
15141     #    bitwidth (32 or 64) of that shared object, and providing the
15142     #    list of exported symbols of that shared object, eventually
15143     #    decorated with the 'weak' keyword
15144     # *) the shared object with the F_LOADONLY flag set, to really avoid
15145     #    it being seen by the linker.
15146     # At run time we better use the real file rather than another symlink,
15147     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15148
15149     case $with_aix_soname,$aix_use_runtimelinking in
15150     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15151     # soname into executable. Probably we can add versioning support to
15152     # collect2, so additional links can be useful in future.
15153     aix,yes) # traditional libtool
15154       dynamic_linker='AIX unversionable lib.so'
15155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15156       # instead of lib<name>.a to let people know that these are not
15157       # typical AIX shared libraries.
15158       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15159       ;;
15160     aix,no) # traditional AIX only
15161       dynamic_linker='AIX lib.a(lib.so.V)'
15162       # We preserve .a as extension for shared libraries through AIX4.2
15163       # and later when we are not doing run time linking.
15164       library_names_spec='$libname$release.a $libname.a'
15165       soname_spec='$libname$release$shared_ext$major'
15166       ;;
15167     svr4,*) # full svr4 only
15168       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15169       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15170       # We do not specify a path in Import Files, so LIBPATH fires.
15171       shlibpath_overrides_runpath=yes
15172       ;;
15173     *,yes) # both, prefer svr4
15174       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15175       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15176       # unpreferred sharedlib libNAME.a needs extra handling
15177       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15178       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15179       # We do not specify a path in Import Files, so LIBPATH fires.
15180       shlibpath_overrides_runpath=yes
15181       ;;
15182     *,no) # both, prefer aix
15183       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15184       library_names_spec='$libname$release.a $libname.a'
15185       soname_spec='$libname$release$shared_ext$major'
15186       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15187       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15188       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15189       ;;
15190     esac
15191     shlibpath_var=LIBPATH
15192   fi
15193   ;;
15194
15195 amigaos*)
15196   case $host_cpu in
15197   powerpc)
15198     # Since July 2007 AmigaOS4 officially supports .so libraries.
15199     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15200     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15201     ;;
15202   m68k)
15203     library_names_spec='$libname.ixlibrary $libname.a'
15204     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15205     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15206     ;;
15207   esac
15208   ;;
15209
15210 beos*)
15211   library_names_spec='$libname$shared_ext'
15212   dynamic_linker="$host_os ld.so"
15213   shlibpath_var=LIBRARY_PATH
15214   ;;
15215
15216 bsdi[45]*)
15217   version_type=linux # correct to gnu/linux during the next big refactor
15218   need_version=no
15219   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15220   soname_spec='$libname$release$shared_ext$major'
15221   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15222   shlibpath_var=LD_LIBRARY_PATH
15223   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15224   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15225   # the default ld.so.conf also contains /usr/contrib/lib and
15226   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15227   # libtool to hard-code these into programs
15228   ;;
15229
15230 cygwin* | mingw* | pw32* | cegcc*)
15231   version_type=windows
15232   shrext_cmds=.dll
15233   need_version=no
15234   need_lib_prefix=no
15235
15236   case $GCC,$cc_basename in
15237   yes,*)
15238     # gcc
15239     library_names_spec='$libname.dll.a'
15240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15241     postinstall_cmds='base_file=`basename \$file`~
15242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15243       dldir=$destdir/`dirname \$dlpath`~
15244       test -d \$dldir || mkdir -p \$dldir~
15245       $install_prog $dir/$dlname \$dldir/$dlname~
15246       chmod a+x \$dldir/$dlname~
15247       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15248         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15249       fi'
15250     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15251       dlpath=$dir/\$dldll~
15252        $RM \$dlpath'
15253     shlibpath_overrides_runpath=yes
15254
15255     case $host_os in
15256     cygwin*)
15257       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15258       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15259
15260       ;;
15261     mingw* | cegcc*)
15262       # MinGW DLLs use traditional 'lib' prefix
15263       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15264       ;;
15265     pw32*)
15266       # pw32 DLLs use 'pw' prefix rather than 'lib'
15267       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15268       ;;
15269     esac
15270     dynamic_linker='Win32 ld.exe'
15271     ;;
15272
15273   *,cl*)
15274     # Native MSVC
15275     libname_spec='$name'
15276     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15277     library_names_spec='$libname.dll.lib'
15278
15279     case $build_os in
15280     mingw*)
15281       sys_lib_search_path_spec=
15282       lt_save_ifs=$IFS
15283       IFS=';'
15284       for lt_path in $LIB
15285       do
15286         IFS=$lt_save_ifs
15287         # Let DOS variable expansion print the short 8.3 style file name.
15288         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15289         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15290       done
15291       IFS=$lt_save_ifs
15292       # Convert to MSYS style.
15293       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15294       ;;
15295     cygwin*)
15296       # Convert to unix form, then to dos form, then back to unix form
15297       # but this time dos style (no spaces!) so that the unix form looks
15298       # like /cygdrive/c/PROGRA~1:/cygdr...
15299       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15300       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15301       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15302       ;;
15303     *)
15304       sys_lib_search_path_spec=$LIB
15305       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15306         # It is most probably a Windows format PATH.
15307         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15308       else
15309         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15310       fi
15311       # FIXME: find the short name or the path components, as spaces are
15312       # common. (e.g. "Program Files" -> "PROGRA~1")
15313       ;;
15314     esac
15315
15316     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15317     postinstall_cmds='base_file=`basename \$file`~
15318       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15319       dldir=$destdir/`dirname \$dlpath`~
15320       test -d \$dldir || mkdir -p \$dldir~
15321       $install_prog $dir/$dlname \$dldir/$dlname'
15322     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15323       dlpath=$dir/\$dldll~
15324        $RM \$dlpath'
15325     shlibpath_overrides_runpath=yes
15326     dynamic_linker='Win32 link.exe'
15327     ;;
15328
15329   *)
15330     # Assume MSVC wrapper
15331     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15332     dynamic_linker='Win32 ld.exe'
15333     ;;
15334   esac
15335   # FIXME: first we should search . and the directory the executable is in
15336   shlibpath_var=PATH
15337   ;;
15338
15339 darwin* | rhapsody*)
15340   dynamic_linker="$host_os dyld"
15341   version_type=darwin
15342   need_lib_prefix=no
15343   need_version=no
15344   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15345   soname_spec='$libname$release$major$shared_ext'
15346   shlibpath_overrides_runpath=yes
15347   shlibpath_var=DYLD_LIBRARY_PATH
15348   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15349
15350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15351   ;;
15352
15353 dgux*)
15354   version_type=linux # correct to gnu/linux during the next big refactor
15355   need_lib_prefix=no
15356   need_version=no
15357   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15358   soname_spec='$libname$release$shared_ext$major'
15359   shlibpath_var=LD_LIBRARY_PATH
15360   ;;
15361
15362 freebsd* | dragonfly*)
15363   # DragonFly does not have aout.  When/if they implement a new
15364   # versioning mechanism, adjust this.
15365   if test -x /usr/bin/objformat; then
15366     objformat=`/usr/bin/objformat`
15367   else
15368     case $host_os in
15369     freebsd[23].*) objformat=aout ;;
15370     *) objformat=elf ;;
15371     esac
15372   fi
15373   version_type=freebsd-$objformat
15374   case $version_type in
15375     freebsd-elf*)
15376       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15377       soname_spec='$libname$release$shared_ext$major'
15378       need_version=no
15379       need_lib_prefix=no
15380       ;;
15381     freebsd-*)
15382       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15383       need_version=yes
15384       ;;
15385   esac
15386   shlibpath_var=LD_LIBRARY_PATH
15387   case $host_os in
15388   freebsd2.*)
15389     shlibpath_overrides_runpath=yes
15390     ;;
15391   freebsd3.[01]* | freebsdelf3.[01]*)
15392     shlibpath_overrides_runpath=yes
15393     hardcode_into_libs=yes
15394     ;;
15395   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15396   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15397     shlibpath_overrides_runpath=no
15398     hardcode_into_libs=yes
15399     ;;
15400   *) # from 4.6 on, and DragonFly
15401     shlibpath_overrides_runpath=yes
15402     hardcode_into_libs=yes
15403     ;;
15404   esac
15405   ;;
15406
15407 haiku*)
15408   version_type=linux # correct to gnu/linux during the next big refactor
15409   need_lib_prefix=no
15410   need_version=no
15411   dynamic_linker="$host_os runtime_loader"
15412   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15413   soname_spec='$libname$release$shared_ext$major'
15414   shlibpath_var=LIBRARY_PATH
15415   shlibpath_overrides_runpath=no
15416   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15417   hardcode_into_libs=yes
15418   ;;
15419
15420 hpux9* | hpux10* | hpux11*)
15421   # Give a soname corresponding to the major version so that dld.sl refuses to
15422   # link against other versions.
15423   version_type=sunos
15424   need_lib_prefix=no
15425   need_version=no
15426   case $host_cpu in
15427   ia64*)
15428     shrext_cmds='.so'
15429     hardcode_into_libs=yes
15430     dynamic_linker="$host_os dld.so"
15431     shlibpath_var=LD_LIBRARY_PATH
15432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15434     soname_spec='$libname$release$shared_ext$major'
15435     if test 32 = "$HPUX_IA64_MODE"; then
15436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15438     else
15439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15441     fi
15442     ;;
15443   hppa*64*)
15444     shrext_cmds='.sl'
15445     hardcode_into_libs=yes
15446     dynamic_linker="$host_os dld.sl"
15447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15450     soname_spec='$libname$release$shared_ext$major'
15451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454   *)
15455     shrext_cmds='.sl'
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=SHLIB_PATH
15458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460     soname_spec='$libname$release$shared_ext$major'
15461     ;;
15462   esac
15463   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15464   postinstall_cmds='chmod 555 $lib'
15465   # or fails outright, so override atomically:
15466   install_override_mode=555
15467   ;;
15468
15469 interix[3-9]*)
15470   version_type=linux # correct to gnu/linux during the next big refactor
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15474   soname_spec='$libname$release$shared_ext$major'
15475   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   shlibpath_overrides_runpath=no
15478   hardcode_into_libs=yes
15479   ;;
15480
15481 irix5* | irix6* | nonstopux*)
15482   case $host_os in
15483     nonstopux*) version_type=nonstopux ;;
15484     *)
15485         if test yes = "$lt_cv_prog_gnu_ld"; then
15486                 version_type=linux # correct to gnu/linux during the next big refactor
15487         else
15488                 version_type=irix
15489         fi ;;
15490   esac
15491   need_lib_prefix=no
15492   need_version=no
15493   soname_spec='$libname$release$shared_ext$major'
15494   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15495   case $host_os in
15496   irix5* | nonstopux*)
15497     libsuff= shlibsuff=
15498     ;;
15499   *)
15500     case $LD in # libtool.m4 will add one of these switches to LD
15501     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15502       libsuff= shlibsuff= libmagic=32-bit;;
15503     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15504       libsuff=32 shlibsuff=N32 libmagic=N32;;
15505     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15506       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15507     *) libsuff= shlibsuff= libmagic=never-match;;
15508     esac
15509     ;;
15510   esac
15511   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15512   shlibpath_overrides_runpath=no
15513   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15514   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15515   hardcode_into_libs=yes
15516   ;;
15517
15518 # No shared lib support for Linux oldld, aout, or coff.
15519 linux*oldld* | linux*aout* | linux*coff*)
15520   dynamic_linker=no
15521   ;;
15522
15523 linux*android*)
15524   version_type=none # Android doesn't support versioned libraries.
15525   need_lib_prefix=no
15526   need_version=no
15527   library_names_spec='$libname$release$shared_ext'
15528   soname_spec='$libname$release$shared_ext'
15529   finish_cmds=
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=yes
15532
15533   # This implies no fast_install, which is unacceptable.
15534   # Some rework will be needed to allow for fast_install
15535   # before this can be enabled.
15536   hardcode_into_libs=yes
15537
15538   dynamic_linker='Android linker'
15539   # Don't embed -rpath directories since the linker doesn't support them.
15540   hardcode_libdir_flag_spec_CXX='-L$libdir'
15541   ;;
15542
15543 # This must be glibc/ELF.
15544 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15545   version_type=linux # correct to gnu/linux during the next big refactor
15546   need_lib_prefix=no
15547   need_version=no
15548   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15549   soname_spec='$libname$release$shared_ext$major'
15550   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15551   shlibpath_var=LD_LIBRARY_PATH
15552   shlibpath_overrides_runpath=no
15553
15554   # Some binutils ld are patched to set DT_RUNPATH
15555   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   lt_cv_shlibpath_overrides_runpath=no
15559     save_LDFLAGS=$LDFLAGS
15560     save_libdir=$libdir
15561     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15562          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h.  */
15565
15566 int
15567 main ()
15568 {
15569
15570   ;
15571   return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_cxx_try_link "$LINENO"; then :
15575   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15576   lt_cv_shlibpath_overrides_runpath=yes
15577 fi
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext \
15580     conftest$ac_exeext conftest.$ac_ext
15581     LDFLAGS=$save_LDFLAGS
15582     libdir=$save_libdir
15583
15584 fi
15585
15586   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15587
15588   # This implies no fast_install, which is unacceptable.
15589   # Some rework will be needed to allow for fast_install
15590   # before this can be enabled.
15591   hardcode_into_libs=yes
15592
15593   # Ideally, we could use ldconfig to report *all* directores which are
15594   # searched for libraries, however this is still not possible.  Aside from not
15595   # being certain /sbin/ldconfig is available, command
15596   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15597   # even though it is searched at run-time.  Try to do the best guess by
15598   # appending ld.so.conf contents (and includes) to the search path.
15599   if test -f /etc/ld.so.conf; then
15600     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' ' '`
15601     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602   fi
15603
15604   # We used to test for /lib/ld.so.1 and disable shared libraries on
15605   # powerpc, because MkLinux only supported shared libraries with the
15606   # GNU dynamic linker.  Since this was broken with cross compilers,
15607   # most powerpc-linux boxes support dynamic linking these days and
15608   # people can always --disable-shared, the test was removed, and we
15609   # assume the GNU/Linux dynamic linker is in use.
15610   dynamic_linker='GNU/Linux ld.so'
15611   ;;
15612
15613 netbsdelf*-gnu)
15614   version_type=linux
15615   need_lib_prefix=no
15616   need_version=no
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   shlibpath_var=LD_LIBRARY_PATH
15620   shlibpath_overrides_runpath=no
15621   hardcode_into_libs=yes
15622   dynamic_linker='NetBSD ld.elf_so'
15623   ;;
15624
15625 netbsd*)
15626   version_type=sunos
15627   need_lib_prefix=no
15628   need_version=no
15629   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15630     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15631     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15632     dynamic_linker='NetBSD (a.out) ld.so'
15633   else
15634     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15635     soname_spec='$libname$release$shared_ext$major'
15636     dynamic_linker='NetBSD ld.elf_so'
15637   fi
15638   shlibpath_var=LD_LIBRARY_PATH
15639   shlibpath_overrides_runpath=yes
15640   hardcode_into_libs=yes
15641   ;;
15642
15643 newsos6)
15644   version_type=linux # correct to gnu/linux during the next big refactor
15645   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   shlibpath_overrides_runpath=yes
15648   ;;
15649
15650 *nto* | *qnx*)
15651   version_type=qnx
15652   need_lib_prefix=no
15653   need_version=no
15654   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15655   soname_spec='$libname$release$shared_ext$major'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=no
15658   hardcode_into_libs=yes
15659   dynamic_linker='ldqnx.so'
15660   ;;
15661
15662 openbsd* | bitrig*)
15663   version_type=sunos
15664   sys_lib_dlsearch_path_spec=/usr/lib
15665   need_lib_prefix=no
15666   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15667     need_version=no
15668   else
15669     need_version=yes
15670   fi
15671   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   shlibpath_overrides_runpath=yes
15675   ;;
15676
15677 os2*)
15678   libname_spec='$name'
15679   version_type=windows
15680   shrext_cmds=.dll
15681   need_version=no
15682   need_lib_prefix=no
15683   # OS/2 can only load a DLL with a base name of 8 characters or less.
15684   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15685     v=$($ECHO $release$versuffix | tr -d .-);
15686     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15687     $ECHO $n$v`$shared_ext'
15688   library_names_spec='${libname}_dll.$libext'
15689   dynamic_linker='OS/2 ld.exe'
15690   shlibpath_var=BEGINLIBPATH
15691   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15692   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15693   postinstall_cmds='base_file=`basename \$file`~
15694     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15695     dldir=$destdir/`dirname \$dlpath`~
15696     test -d \$dldir || mkdir -p \$dldir~
15697     $install_prog $dir/$dlname \$dldir/$dlname~
15698     chmod a+x \$dldir/$dlname~
15699     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15700       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15701     fi'
15702   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15703     dlpath=$dir/\$dldll~
15704     $RM \$dlpath'
15705   ;;
15706
15707 osf3* | osf4* | osf5*)
15708   version_type=osf
15709   need_lib_prefix=no
15710   need_version=no
15711   soname_spec='$libname$release$shared_ext$major'
15712   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15715   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15716   ;;
15717
15718 rdos*)
15719   dynamic_linker=no
15720   ;;
15721
15722 solaris*)
15723   version_type=linux # correct to gnu/linux during the next big refactor
15724   need_lib_prefix=no
15725   need_version=no
15726   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15727   soname_spec='$libname$release$shared_ext$major'
15728   shlibpath_var=LD_LIBRARY_PATH
15729   shlibpath_overrides_runpath=yes
15730   hardcode_into_libs=yes
15731   # ldd complains unless libraries are executable
15732   postinstall_cmds='chmod +x $lib'
15733   ;;
15734
15735 sunos4*)
15736   version_type=sunos
15737   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15738   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   shlibpath_overrides_runpath=yes
15741   if test yes = "$with_gnu_ld"; then
15742     need_lib_prefix=no
15743   fi
15744   need_version=yes
15745   ;;
15746
15747 sysv4 | sysv4.3*)
15748   version_type=linux # correct to gnu/linux during the next big refactor
15749   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15750   soname_spec='$libname$release$shared_ext$major'
15751   shlibpath_var=LD_LIBRARY_PATH
15752   case $host_vendor in
15753     sni)
15754       shlibpath_overrides_runpath=no
15755       need_lib_prefix=no
15756       runpath_var=LD_RUN_PATH
15757       ;;
15758     siemens)
15759       need_lib_prefix=no
15760       ;;
15761     motorola)
15762       need_lib_prefix=no
15763       need_version=no
15764       shlibpath_overrides_runpath=no
15765       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15766       ;;
15767   esac
15768   ;;
15769
15770 sysv4*MP*)
15771   if test -d /usr/nec; then
15772     version_type=linux # correct to gnu/linux during the next big refactor
15773     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15774     soname_spec='$libname$shared_ext.$major'
15775     shlibpath_var=LD_LIBRARY_PATH
15776   fi
15777   ;;
15778
15779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15780   version_type=sco
15781   need_lib_prefix=no
15782   need_version=no
15783   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15784   soname_spec='$libname$release$shared_ext$major'
15785   shlibpath_var=LD_LIBRARY_PATH
15786   shlibpath_overrides_runpath=yes
15787   hardcode_into_libs=yes
15788   if test yes = "$with_gnu_ld"; then
15789     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15790   else
15791     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15792     case $host_os in
15793       sco3.2v5*)
15794         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15795         ;;
15796     esac
15797   fi
15798   sys_lib_dlsearch_path_spec='/usr/lib'
15799   ;;
15800
15801 tpf*)
15802   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15803   version_type=linux # correct to gnu/linux during the next big refactor
15804   need_lib_prefix=no
15805   need_version=no
15806   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15807   shlibpath_var=LD_LIBRARY_PATH
15808   shlibpath_overrides_runpath=no
15809   hardcode_into_libs=yes
15810   ;;
15811
15812 uts4*)
15813   version_type=linux # correct to gnu/linux during the next big refactor
15814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815   soname_spec='$libname$release$shared_ext$major'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   ;;
15818
15819 *)
15820   dynamic_linker=no
15821   ;;
15822 esac
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15824 $as_echo "$dynamic_linker" >&6; }
15825 test no = "$dynamic_linker" && can_build_shared=no
15826
15827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15828 if test yes = "$GCC"; then
15829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15830 fi
15831
15832 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15833   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15834 fi
15835
15836 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15837   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15838 fi
15839
15840 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15841 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15842
15843 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15844 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15845
15846 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15847 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15889 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15890 hardcode_action_CXX=
15891 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15892    test -n "$runpath_var_CXX" ||
15893    test yes = "$hardcode_automatic_CXX"; then
15894
15895   # We can hardcode non-existent directories.
15896   if test no != "$hardcode_direct_CXX" &&
15897      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15898      # have to relink, otherwise we might link with an installed library
15899      # when we should be linking with a yet-to-be-installed one
15900      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15901      test no != "$hardcode_minus_L_CXX"; then
15902     # Linking always hardcodes the temporary library directory.
15903     hardcode_action_CXX=relink
15904   else
15905     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15906     hardcode_action_CXX=immediate
15907   fi
15908 else
15909   # We cannot hardcode anything, or else we can only hardcode existing
15910   # directories.
15911   hardcode_action_CXX=unsupported
15912 fi
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15914 $as_echo "$hardcode_action_CXX" >&6; }
15915
15916 if test relink = "$hardcode_action_CXX" ||
15917    test yes = "$inherit_rpath_CXX"; then
15918   # Fast installation is not supported
15919   enable_fast_install=no
15920 elif test yes = "$shlibpath_overrides_runpath" ||
15921      test no = "$enable_shared"; then
15922   # Fast installation is not necessary
15923   enable_fast_install=needless
15924 fi
15925
15926
15927
15928
15929
15930
15931
15932   fi # test -n "$compiler"
15933
15934   CC=$lt_save_CC
15935   CFLAGS=$lt_save_CFLAGS
15936   LDCXX=$LD
15937   LD=$lt_save_LD
15938   GCC=$lt_save_GCC
15939   with_gnu_ld=$lt_save_with_gnu_ld
15940   lt_cv_path_LDCXX=$lt_cv_path_LD
15941   lt_cv_path_LD=$lt_save_path_LD
15942   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15943   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15944 fi # test yes != "$_lt_caught_CXX_error"
15945
15946 ac_ext=c
15947 ac_cpp='$CPP $CPPFLAGS'
15948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966         ac_config_commands="$ac_config_commands libtool"
15967
15968
15969
15970
15971 # Only expand once:
15972
15973
15974
15975 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15976
15977
15978 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/lib/Makefile src/bin/Makefile src/test/Makefile src/extensions/Makefile src/extensions/compact/Makefile src/extensions/compress/Makefile src/extensions/const/Makefile src/extensions/far/Makefile src/extensions/linear/Makefile src/extensions/lookahead/Makefile src/extensions/mpdt/Makefile src/extensions/ngram/Makefile src/extensions/pdt/Makefile src/extensions/python/Makefile src/extensions/special/Makefile src/script/Makefile"
15979
15980
15981 ac_ext=cpp
15982 ac_cpp='$CXXCPP $CPPFLAGS'
15983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15986
15987
15988 # Check whether --enable-compact-fsts was given.
15989 if test "${enable_compact_fsts+set}" = set; then :
15990   enableval=$enable_compact_fsts;
15991 else
15992   enable_compact_fsts=no
15993 fi
15994
15995  if test "x$enable_compact_fsts" != xno; then
15996   HAVE_COMPACT_TRUE=
15997   HAVE_COMPACT_FALSE='#'
15998 else
15999   HAVE_COMPACT_TRUE='#'
16000   HAVE_COMPACT_FALSE=
16001 fi
16002
16003
16004 # Check whether --enable-compress was given.
16005 if test "${enable_compress+set}" = set; then :
16006   enableval=$enable_compress;
16007 else
16008   enable_compress=no
16009 fi
16010
16011  if test "x$enable_compress" != xno; then
16012   HAVE_COMPRESS_TRUE=
16013   HAVE_COMPRESS_FALSE='#'
16014 else
16015   HAVE_COMPRESS_TRUE='#'
16016   HAVE_COMPRESS_FALSE=
16017 fi
16018
16019
16020 # Check whether --enable-const-fsts was given.
16021 if test "${enable_const_fsts+set}" = set; then :
16022   enableval=$enable_const_fsts;
16023 else
16024   enable_const_fsts=no
16025 fi
16026
16027  if test "x$enable_const_fsts" != xno; then
16028   HAVE_CONST_TRUE=
16029   HAVE_CONST_FALSE='#'
16030 else
16031   HAVE_CONST_TRUE='#'
16032   HAVE_CONST_FALSE=
16033 fi
16034
16035
16036 # Check whether --enable-far was given.
16037 if test "${enable_far+set}" = set; then :
16038   enableval=$enable_far;
16039 else
16040   enable_far=no
16041 fi
16042
16043  if test "x$enable_far" != xno; then
16044   HAVE_FAR_TRUE=
16045   HAVE_FAR_FALSE='#'
16046 else
16047   HAVE_FAR_TRUE='#'
16048   HAVE_FAR_FALSE=
16049 fi
16050
16051
16052 # Check whether --enable-linear-fsts was given.
16053 if test "${enable_linear_fsts+set}" = set; then :
16054   enableval=$enable_linear_fsts;
16055 else
16056   enable_linear_fsts=no
16057 fi
16058
16059  if test "x$enable_linear_fsts" != xno; then
16060   HAVE_LINEAR_TRUE=
16061   HAVE_LINEAR_FALSE='#'
16062 else
16063   HAVE_LINEAR_TRUE='#'
16064   HAVE_LINEAR_FALSE=
16065 fi
16066
16067
16068 # Check whether --enable-lookahead-fsts was given.
16069 if test "${enable_lookahead_fsts+set}" = set; then :
16070   enableval=$enable_lookahead_fsts;
16071 else
16072   enable_lookahead_fsts=no
16073 fi
16074
16075  if test "x$enable_lookahead_fsts" != xno; then
16076   HAVE_LOOKAHEAD_TRUE=
16077   HAVE_LOOKAHEAD_FALSE='#'
16078 else
16079   HAVE_LOOKAHEAD_TRUE='#'
16080   HAVE_LOOKAHEAD_FALSE=
16081 fi
16082
16083
16084 # Check whether --enable-mpdt was given.
16085 if test "${enable_mpdt+set}" = set; then :
16086   enableval=$enable_mpdt;
16087 else
16088   enable_mpdt=no
16089 fi
16090
16091  if test "x$enable_mpdt" != xno; then
16092   HAVE_MPDT_TRUE=
16093   HAVE_MPDT_FALSE='#'
16094 else
16095   HAVE_MPDT_TRUE='#'
16096   HAVE_MPDT_FALSE=
16097 fi
16098
16099
16100 # Check whether --enable-ngram-fsts was given.
16101 if test "${enable_ngram_fsts+set}" = set; then :
16102   enableval=$enable_ngram_fsts;
16103 else
16104   enable_ngram_fsts=no
16105 fi
16106
16107  if test "x$enable_ngram_fsts" != xno; then
16108   HAVE_NGRAM_TRUE=
16109   HAVE_NGRAM_FALSE='#'
16110 else
16111   HAVE_NGRAM_TRUE='#'
16112   HAVE_NGRAM_FALSE=
16113 fi
16114
16115
16116 # Check whether --enable-pdt was given.
16117 if test "${enable_pdt+set}" = set; then :
16118   enableval=$enable_pdt;
16119 else
16120   enable_pdt=no
16121 fi
16122
16123  if test "x$enable_pdt" != xno; then
16124   HAVE_PDT_TRUE=
16125   HAVE_PDT_FALSE='#'
16126 else
16127   HAVE_PDT_TRUE='#'
16128   HAVE_PDT_FALSE=
16129 fi
16130
16131
16132 # Check whether --enable-python was given.
16133 if test "${enable_python+set}" = set; then :
16134   enableval=$enable_python;
16135 else
16136   enable_python=no
16137 fi
16138
16139  if test "x$enable_python" != xno; then
16140   HAVE_PYTHON_TRUE=
16141   HAVE_PYTHON_FALSE='#'
16142 else
16143   HAVE_PYTHON_TRUE='#'
16144   HAVE_PYTHON_FALSE=
16145 fi
16146
16147 if test "x$enable_python" != xno; then
16148
16149
16150
16151
16152
16153
16154         if test -n "$PYTHON"; then
16155       # If the user set $PYTHON, use it and don't search something else.
16156       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16157 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16158       prog="import sys
16159 # split strings by '.' and convert to numeric.  Append some zeros
16160 # because we need at least 4 digits for the hex conversion.
16161 # map returns an iterator in Python 3.0 and a list in 2.x
16162 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16163 minverhex = 0
16164 # xrange is not present in Python 3.0 and range returns an iterator
16165 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16166 sys.exit(sys.hexversion < minverhex)"
16167   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16168    ($PYTHON -c "$prog") >&5 2>&5
16169    ac_status=$?
16170    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171    (exit $ac_status); }; then :
16172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173 $as_echo "yes" >&6; }
16174 else
16175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16177                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16178 fi
16179       am_display_PYTHON=$PYTHON
16180     else
16181       # Otherwise, try each interpreter until we find one that satisfies
16182       # VERSION.
16183       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16184 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16185 if ${am_cv_pathless_PYTHON+:} false; then :
16186   $as_echo_n "(cached) " >&6
16187 else
16188
16189         for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16190           test "$am_cv_pathless_PYTHON" = none && break
16191           prog="import sys
16192 # split strings by '.' and convert to numeric.  Append some zeros
16193 # because we need at least 4 digits for the hex conversion.
16194 # map returns an iterator in Python 3.0 and a list in 2.x
16195 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16196 minverhex = 0
16197 # xrange is not present in Python 3.0 and range returns an iterator
16198 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16199 sys.exit(sys.hexversion < minverhex)"
16200   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16201    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16202    ac_status=$?
16203    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204    (exit $ac_status); }; then :
16205   break
16206 fi
16207         done
16208 fi
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16210 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16211       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16212       if test "$am_cv_pathless_PYTHON" = none; then
16213         PYTHON=:
16214       else
16215         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16216 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_path_PYTHON+:} false; then :
16220   $as_echo_n "(cached) " >&6
16221 else
16222   case $PYTHON in
16223   [\\/]* | ?:[\\/]*)
16224   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16225   ;;
16226   *)
16227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16229 do
16230   IFS=$as_save_IFS
16231   test -z "$as_dir" && as_dir=.
16232     for ac_exec_ext in '' $ac_executable_extensions; do
16233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16236     break 2
16237   fi
16238 done
16239   done
16240 IFS=$as_save_IFS
16241
16242   ;;
16243 esac
16244 fi
16245 PYTHON=$ac_cv_path_PYTHON
16246 if test -n "$PYTHON"; then
16247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16248 $as_echo "$PYTHON" >&6; }
16249 else
16250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16252 fi
16253
16254
16255       fi
16256       am_display_PYTHON=$am_cv_pathless_PYTHON
16257     fi
16258
16259
16260   if test "$PYTHON" = :; then
16261       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16262   else
16263
16264
16265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16266 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16267 if ${am_cv_python_version+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16271 fi
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16273 $as_echo "$am_cv_python_version" >&6; }
16274   PYTHON_VERSION=$am_cv_python_version
16275
16276
16277
16278   PYTHON_PREFIX='${prefix}'
16279
16280   PYTHON_EXEC_PREFIX='${exec_prefix}'
16281
16282
16283
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16285 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16286 if ${am_cv_python_platform+:} false; then :
16287   $as_echo_n "(cached) " >&6
16288 else
16289   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16292 $as_echo "$am_cv_python_platform" >&6; }
16293   PYTHON_PLATFORM=$am_cv_python_platform
16294
16295
16296   # Just factor out some code duplication.
16297   am_python_setup_sysconfig="\
16298 import sys
16299 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16300 # with python 3.x.  See automake bug#10227.
16301 try:
16302     import sysconfig
16303 except ImportError:
16304     can_use_sysconfig = 0
16305 else:
16306     can_use_sysconfig = 1
16307 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16308 # <https://github.com/pypa/virtualenv/issues/118>
16309 try:
16310     from platform import python_implementation
16311     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16312         can_use_sysconfig = 0
16313 except ImportError:
16314     pass"
16315
16316
16317             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16318 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16319 if ${am_cv_python_pythondir+:} false; then :
16320   $as_echo_n "(cached) " >&6
16321 else
16322   if test "x$prefix" = xNONE
16323      then
16324        am_py_prefix=$ac_default_prefix
16325      else
16326        am_py_prefix=$prefix
16327      fi
16328      am_cv_python_pythondir=`$PYTHON -c "
16329 $am_python_setup_sysconfig
16330 if can_use_sysconfig:
16331     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16332 else:
16333     from distutils import sysconfig
16334     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16335 sys.stdout.write(sitedir)"`
16336      case $am_cv_python_pythondir in
16337      $am_py_prefix*)
16338        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16339        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16340        ;;
16341      *)
16342        case $am_py_prefix in
16343          /usr|/System*) ;;
16344          *)
16345           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16346           ;;
16347        esac
16348        ;;
16349      esac
16350
16351 fi
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16353 $as_echo "$am_cv_python_pythondir" >&6; }
16354   pythondir=$am_cv_python_pythondir
16355
16356
16357
16358   pkgpythondir=\${pythondir}/$PACKAGE
16359
16360
16361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16362 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16363 if ${am_cv_python_pyexecdir+:} false; then :
16364   $as_echo_n "(cached) " >&6
16365 else
16366   if test "x$exec_prefix" = xNONE
16367      then
16368        am_py_exec_prefix=$am_py_prefix
16369      else
16370        am_py_exec_prefix=$exec_prefix
16371      fi
16372      am_cv_python_pyexecdir=`$PYTHON -c "
16373 $am_python_setup_sysconfig
16374 if can_use_sysconfig:
16375     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16376 else:
16377     from distutils import sysconfig
16378     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16379 sys.stdout.write(sitedir)"`
16380      case $am_cv_python_pyexecdir in
16381      $am_py_exec_prefix*)
16382        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16383        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16384        ;;
16385      *)
16386        case $am_py_exec_prefix in
16387          /usr|/System*) ;;
16388          *)
16389            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16390            ;;
16391        esac
16392        ;;
16393      esac
16394
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16397 $as_echo "$am_cv_python_pyexecdir" >&6; }
16398   pyexecdir=$am_cv_python_pyexecdir
16399
16400
16401
16402   pkgpyexecdir=\${pyexecdir}/$PACKAGE
16403
16404
16405
16406   fi
16407
16408
16409
16410         #
16411         # Allow the use of a (user set) custom python version
16412         #
16413
16414
16415         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16416 set dummy python$PYTHON_VERSION; ac_word=$2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418 $as_echo_n "checking for $ac_word... " >&6; }
16419 if ${ac_cv_path_PYTHON+:} false; then :
16420   $as_echo_n "(cached) " >&6
16421 else
16422   case $PYTHON in
16423   [\\/]* | ?:[\\/]*)
16424   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16425   ;;
16426   *)
16427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16429 do
16430   IFS=$as_save_IFS
16431   test -z "$as_dir" && as_dir=.
16432     for ac_exec_ext in '' $ac_executable_extensions; do
16433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436     break 2
16437   fi
16438 done
16439   done
16440 IFS=$as_save_IFS
16441
16442   ;;
16443 esac
16444 fi
16445 PYTHON=$ac_cv_path_PYTHON
16446 if test -n "$PYTHON"; then
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16448 $as_echo "$PYTHON" >&6; }
16449 else
16450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16452 fi
16453
16454
16455         if test -z "$PYTHON"; then
16456            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16457            PYTHON_VERSION=""
16458         fi
16459
16460         #
16461         # Check for a version of Python >= 2.1.0
16462         #
16463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16464 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16465         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
16466                 ver = string.split(sys.version)[0]; \
16467                 print ver >= '2.1.0'"`
16468         if test "$ac_supports_python_ver" != "True"; then
16469                 if test -z "$PYTHON_NOVERSIONCHECK"; then
16470                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471 $as_echo "no" >&6; }
16472                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16474 as_fn_error $? "
16475 This version of the AC_PYTHON_DEVEL macro
16476 doesn't work properly with versions of Python before
16477 2.1.0. You may need to re-run configure, setting the
16478 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
16479 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16480 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16481 to something else than an empty string.
16482
16483 See \`config.log' for more details" "$LINENO" 5; }
16484                 else
16485                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16486 $as_echo "skip at user request" >&6; }
16487                 fi
16488         else
16489                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16491         fi
16492
16493         #
16494         # if the macro parameter ``version'' is set, honour it
16495         #
16496         if test -n ">= '2.7'"; then
16497                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16498 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16499                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
16500                         ver = string.split(sys.version)[0]; \
16501                         print ver >= '2.7'"`
16502                 if test "$ac_supports_python_ver" = "True"; then
16503                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16504 $as_echo "yes" >&6; }
16505                 else
16506                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16508                         as_fn_error $? "this package requires Python >= '2.7'.
16509 If you have it installed, but it isn't the default Python
16510 interpreter in your system path, please pass the PYTHON_VERSION
16511 variable to configure. See \`\`configure --help'' for reference.
16512 " "$LINENO" 5
16513                         PYTHON_VERSION=""
16514                 fi
16515         fi
16516
16517         #
16518         # Check if you have distutils, else fail
16519         #
16520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16521 $as_echo_n "checking for the distutils Python package... " >&6; }
16522         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16523         if test -z "$ac_distutils_result"; then
16524                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16525 $as_echo "yes" >&6; }
16526         else
16527                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528 $as_echo "no" >&6; }
16529                 as_fn_error $? "cannot import Python module \"distutils\".
16530 Please check your Python installation. The error was:
16531 $ac_distutils_result" "$LINENO" 5
16532                 PYTHON_VERSION=""
16533         fi
16534
16535         #
16536         # Check for Python include path
16537         #
16538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16539 $as_echo_n "checking for Python include path... " >&6; }
16540         if test -z "$PYTHON_CPPFLAGS"; then
16541                 python_path=`$PYTHON -c "import distutils.sysconfig; \
16542                         print distutils.sysconfig.get_python_inc();"`
16543                 if test -n "${python_path}"; then
16544                         python_path="-I$python_path"
16545                 fi
16546                 PYTHON_CPPFLAGS=$python_path
16547         fi
16548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16549 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16550
16551
16552         #
16553         # Check for Python library path
16554         #
16555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16556 $as_echo_n "checking for Python library path... " >&6; }
16557         if test -z "$PYTHON_LDFLAGS"; then
16558                 # (makes two attempts to ensure we've got a version number
16559                 # from the interpreter)
16560                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
16561                         from string import join; \
16562                         print join(get_config_vars('VERSION'))"`
16563                 if test "$py_version" == "None"; then
16564                         if test -n "$PYTHON_VERSION"; then
16565                                 py_version=$PYTHON_VERSION
16566                         else
16567                                 py_version=`$PYTHON -c "import sys; \
16568                                         print sys.version[:3]"`
16569                         fi
16570                 fi
16571
16572                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16573                         from string import join; \
16574                         print '-L' + get_python_lib(0,1), \
16575                         '-lpython';"`$py_version
16576         fi
16577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16578 $as_echo "$PYTHON_LDFLAGS" >&6; }
16579
16580
16581         #
16582         # Check for site packages
16583         #
16584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16585 $as_echo_n "checking for Python site-packages path... " >&6; }
16586         if test -z "$PYTHON_SITE_PKG"; then
16587                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16588                         print distutils.sysconfig.get_python_lib(0,0);"`
16589         fi
16590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16591 $as_echo "$PYTHON_SITE_PKG" >&6; }
16592
16593
16594         #
16595         # libraries which must be linked in when embedding
16596         #
16597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16598 $as_echo_n "checking python extra libraries... " >&6; }
16599         if test -z "$PYTHON_EXTRA_LIBS"; then
16600            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16601                 conf = distutils.sysconfig.get_config_var; \
16602                 print conf('LOCALMODLIBS'), conf('LIBS')"`
16603         fi
16604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16605 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16606
16607
16608         #
16609         # linking flags needed when embedding
16610         #
16611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16612 $as_echo_n "checking python extra linking flags... " >&6; }
16613         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16614                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16615                         conf = distutils.sysconfig.get_config_var; \
16616                         print conf('LINKFORSHARED')"`
16617         fi
16618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16619 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16620
16621
16622         #
16623         # final check to see if everything compiles alright
16624         #
16625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16626 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16627         ac_ext=c
16628 ac_cpp='$CPP $CPPFLAGS'
16629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16632
16633         # save current global flags
16634         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
16635         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16636         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h.  */
16638
16639                 #include <Python.h>
16640
16641 int
16642 main ()
16643 {
16644
16645                 Py_Initialize();
16646
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_link "$LINENO"; then :
16652   pythonexists=yes
16653 else
16654   pythonexists=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext \
16657     conftest$ac_exeext conftest.$ac_ext
16658
16659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16660 $as_echo "$pythonexists" >&6; }
16661
16662         if test ! "$pythonexists" = "yes"; then
16663            as_fn_error $? "
16664   Could not link test program to Python. Maybe the main Python library has been
16665   installed in some non-standard library path. If so, pass it to configure,
16666   via the LDFLAGS environment variable.
16667   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16668   ============================================================================
16669    ERROR!
16670    You probably have to install the development version of the Python package
16671    for your distribution.  The exact name of this package varies among them.
16672   ============================================================================
16673            " "$LINENO" 5
16674           PYTHON_VERSION=""
16675         fi
16676         ac_ext=cpp
16677 ac_cpp='$CXXCPP $CPPFLAGS'
16678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16681
16682         # turn back to default flags
16683         CPPFLAGS="$ac_save_CPPFLAGS"
16684         LIBS="$ac_save_LIBS"
16685
16686         #
16687         # all done!
16688         #
16689
16690 fi
16691
16692 # Check whether --enable-special was given.
16693 if test "${enable_special+set}" = set; then :
16694   enableval=$enable_special;
16695 else
16696   enable_special=no
16697 fi
16698
16699  if test "x$enable_special" != xno; then
16700   HAVE_SPECIAL_TRUE=
16701   HAVE_SPECIAL_FALSE='#'
16702 else
16703   HAVE_SPECIAL_TRUE='#'
16704   HAVE_SPECIAL_FALSE=
16705 fi
16706
16707
16708 # --enable-bin enables script and bin "extensions".
16709 # Check whether --enable-bin was given.
16710 if test "${enable_bin+set}" = set; then :
16711   enableval=$enable_bin;
16712 else
16713   enable_bin=yes
16714 fi
16715
16716  if test "x$enable_bin" != xno; then
16717   HAVE_BIN_TRUE=
16718   HAVE_BIN_FALSE='#'
16719 else
16720   HAVE_BIN_TRUE='#'
16721   HAVE_BIN_FALSE=
16722 fi
16723
16724  if test "x$enable_bin" != xno; then
16725   HAVE_SCRIPT_TRUE=
16726   HAVE_SCRIPT_FALSE='#'
16727 else
16728   HAVE_SCRIPT_TRUE='#'
16729   HAVE_SCRIPT_FALSE=
16730 fi
16731
16732
16733 # --enable-grm enables dependencies of OpenGrm: far, mpdt, and pdt.
16734 # Check whether --enable-grm was given.
16735 if test "${enable_grm+set}" = set; then :
16736   enableval=$enable_grm;
16737 else
16738   enable_grm=no
16739 fi
16740
16741  if test "x$enable_grm" != xno; then
16742   HAVE_GRM_TRUE=
16743   HAVE_GRM_FALSE='#'
16744 else
16745   HAVE_GRM_TRUE='#'
16746   HAVE_GRM_FALSE=
16747 fi
16748
16749
16750
16751 # Check whether --with-libfstdir was given.
16752 if test "${with_libfstdir+set}" = set; then :
16753   withval=$with_libfstdir;
16754 else
16755   with_libfstdir=${libdir}/fst
16756 fi
16757
16758
16759 libfstdir=$with_libfstdir
16760
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16764 if ${ac_cv_lib_dl_dlopen+:} false; then :
16765   $as_echo_n "(cached) " >&6
16766 else
16767   ac_check_lib_save_LIBS=$LIBS
16768 LIBS="-ldl  $LIBS"
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h.  */
16771
16772 /* Override any GCC internal prototype to avoid an error.
16773    Use char because int might match the return type of a GCC
16774    builtin and then its argument prototype would still apply.  */
16775 #ifdef __cplusplus
16776 extern "C"
16777 #endif
16778 char dlopen ();
16779 int
16780 main ()
16781 {
16782 return dlopen ();
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_cxx_try_link "$LINENO"; then :
16788   ac_cv_lib_dl_dlopen=yes
16789 else
16790   ac_cv_lib_dl_dlopen=no
16791 fi
16792 rm -f core conftest.err conftest.$ac_objext \
16793     conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16795 fi
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16799   DL_LIBS=-ldl
16800 fi
16801
16802
16803
16804 cat >confcache <<\_ACEOF
16805 # This file is a shell script that caches the results of configure
16806 # tests run on this system so they can be shared between configure
16807 # scripts and configure runs, see configure's option --config-cache.
16808 # It is not useful on other systems.  If it contains results you don't
16809 # want to keep, you may remove or edit it.
16810 #
16811 # config.status only pays attention to the cache file if you give it
16812 # the --recheck option to rerun configure.
16813 #
16814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16816 # following values.
16817
16818 _ACEOF
16819
16820 # The following way of writing the cache mishandles newlines in values,
16821 # but we know of no workaround that is simple, portable, and efficient.
16822 # So, we kill variables containing newlines.
16823 # Ultrix sh set writes to stderr and can't be redirected directly,
16824 # and sets the high bit in the cache file unless we assign to the vars.
16825 (
16826   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16827     eval ac_val=\$$ac_var
16828     case $ac_val in #(
16829     *${as_nl}*)
16830       case $ac_var in #(
16831       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16833       esac
16834       case $ac_var in #(
16835       _ | IFS | as_nl) ;; #(
16836       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16837       *) { eval $ac_var=; unset $ac_var;} ;;
16838       esac ;;
16839     esac
16840   done
16841
16842   (set) 2>&1 |
16843     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16844     *${as_nl}ac_space=\ *)
16845       # `set' does not quote correctly, so add quotes: double-quote
16846       # substitution turns \\\\ into \\, and sed turns \\ into \.
16847       sed -n \
16848         "s/'/'\\\\''/g;
16849           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16850       ;; #(
16851     *)
16852       # `set' quotes correctly as required by POSIX, so do not add quotes.
16853       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16854       ;;
16855     esac |
16856     sort
16857 ) |
16858   sed '
16859      /^ac_cv_env_/b end
16860      t clear
16861      :clear
16862      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16863      t end
16864      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16865      :end' >>confcache
16866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16867   if test -w "$cache_file"; then
16868     if test "x$cache_file" != "x/dev/null"; then
16869       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16870 $as_echo "$as_me: updating cache $cache_file" >&6;}
16871       if test ! -f "$cache_file" || test -h "$cache_file"; then
16872         cat confcache >"$cache_file"
16873       else
16874         case $cache_file in #(
16875         */* | ?:*)
16876           mv -f confcache "$cache_file"$$ &&
16877           mv -f "$cache_file"$$ "$cache_file" ;; #(
16878         *)
16879           mv -f confcache "$cache_file" ;;
16880         esac
16881       fi
16882     fi
16883   else
16884     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16885 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16886   fi
16887 fi
16888 rm -f confcache
16889
16890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16891 # Let make expand exec_prefix.
16892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16893
16894 DEFS=-DHAVE_CONFIG_H
16895
16896 ac_libobjs=
16897 ac_ltlibobjs=
16898 U=
16899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16900   # 1. Remove the extension, and $U if already installed.
16901   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16902   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16903   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16904   #    will be set to the directory where LIBOBJS objects are built.
16905   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16906   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16907 done
16908 LIBOBJS=$ac_libobjs
16909
16910 LTLIBOBJS=$ac_ltlibobjs
16911
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16914 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16915    if test -n "$am_sleep_pid"; then
16916      # Hide warnings about reused PIDs.
16917      wait $am_sleep_pid 2>/dev/null
16918    fi
16919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16920 $as_echo "done" >&6; }
16921  if test -n "$EXEEXT"; then
16922   am__EXEEXT_TRUE=
16923   am__EXEEXT_FALSE='#'
16924 else
16925   am__EXEEXT_TRUE='#'
16926   am__EXEEXT_FALSE=
16927 fi
16928
16929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16930   as_fn_error $? "conditional \"AMDEP\" was never defined.
16931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932 fi
16933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16934   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16936 fi
16937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16938   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16940 fi
16941 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
16942   as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
16943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16944 fi
16945 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
16946   as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
16947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16948 fi
16949 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
16950   as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
16951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16952 fi
16953 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
16954   as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16956 fi
16957 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
16958   as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
16959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16960 fi
16961 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
16962   as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
16963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16964 fi
16965 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
16966   as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
16967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16968 fi
16969 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
16970   as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
16971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16972 fi
16973 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
16974   as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
16975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16976 fi
16977 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16978   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16980 fi
16981 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
16982   as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
16983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16984 fi
16985 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
16986   as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
16987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16988 fi
16989 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
16990   as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
16991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16992 fi
16993 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
16994   as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
16995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16996 fi
16997
16998 : "${CONFIG_STATUS=./config.status}"
16999 ac_write_fail=0
17000 ac_clean_files_save=$ac_clean_files
17001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17004 as_write_fail=0
17005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17006 #! $SHELL
17007 # Generated by $as_me.
17008 # Run this file to recreate the current configuration.
17009 # Compiler output produced by configure, useful for debugging
17010 # configure, is in config.log if it exists.
17011
17012 debug=false
17013 ac_cs_recheck=false
17014 ac_cs_silent=false
17015
17016 SHELL=\${CONFIG_SHELL-$SHELL}
17017 export SHELL
17018 _ASEOF
17019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17020 ## -------------------- ##
17021 ## M4sh Initialization. ##
17022 ## -------------------- ##
17023
17024 # Be more Bourne compatible
17025 DUALCASE=1; export DUALCASE # for MKS sh
17026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17027   emulate sh
17028   NULLCMD=:
17029   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17030   # is contrary to our usage.  Disable this feature.
17031   alias -g '${1+"$@"}'='"$@"'
17032   setopt NO_GLOB_SUBST
17033 else
17034   case `(set -o) 2>/dev/null` in #(
17035   *posix*) :
17036     set -o posix ;; #(
17037   *) :
17038      ;;
17039 esac
17040 fi
17041
17042
17043 as_nl='
17044 '
17045 export as_nl
17046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17050 # Prefer a ksh shell builtin over an external printf program on Solaris,
17051 # but without wasting forks for bash or zsh.
17052 if test -z "$BASH_VERSION$ZSH_VERSION" \
17053     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17054   as_echo='print -r --'
17055   as_echo_n='print -rn --'
17056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17057   as_echo='printf %s\n'
17058   as_echo_n='printf %s'
17059 else
17060   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17061     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17062     as_echo_n='/usr/ucb/echo -n'
17063   else
17064     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17065     as_echo_n_body='eval
17066       arg=$1;
17067       case $arg in #(
17068       *"$as_nl"*)
17069         expr "X$arg" : "X\\(.*\\)$as_nl";
17070         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17071       esac;
17072       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17073     '
17074     export as_echo_n_body
17075     as_echo_n='sh -c $as_echo_n_body as_echo'
17076   fi
17077   export as_echo_body
17078   as_echo='sh -c $as_echo_body as_echo'
17079 fi
17080
17081 # The user is always right.
17082 if test "${PATH_SEPARATOR+set}" != set; then
17083   PATH_SEPARATOR=:
17084   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17085     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17086       PATH_SEPARATOR=';'
17087   }
17088 fi
17089
17090
17091 # IFS
17092 # We need space, tab and new line, in precisely that order.  Quoting is
17093 # there to prevent editors from complaining about space-tab.
17094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17095 # splitting by setting IFS to empty value.)
17096 IFS=" ""        $as_nl"
17097
17098 # Find who we are.  Look in the path if we contain no directory separator.
17099 as_myself=
17100 case $0 in #((
17101   *[\\/]* ) as_myself=$0 ;;
17102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17103 for as_dir in $PATH
17104 do
17105   IFS=$as_save_IFS
17106   test -z "$as_dir" && as_dir=.
17107     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17108   done
17109 IFS=$as_save_IFS
17110
17111      ;;
17112 esac
17113 # We did not find ourselves, most probably we were run as `sh COMMAND'
17114 # in which case we are not to be found in the path.
17115 if test "x$as_myself" = x; then
17116   as_myself=$0
17117 fi
17118 if test ! -f "$as_myself"; then
17119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17120   exit 1
17121 fi
17122
17123 # Unset variables that we do not need and which cause bugs (e.g. in
17124 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17125 # suppresses any "Segmentation fault" message there.  '((' could
17126 # trigger a bug in pdksh 5.2.14.
17127 for as_var in BASH_ENV ENV MAIL MAILPATH
17128 do eval test x\${$as_var+set} = xset \
17129   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17130 done
17131 PS1='$ '
17132 PS2='> '
17133 PS4='+ '
17134
17135 # NLS nuisances.
17136 LC_ALL=C
17137 export LC_ALL
17138 LANGUAGE=C
17139 export LANGUAGE
17140
17141 # CDPATH.
17142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17143
17144
17145 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17146 # ----------------------------------------
17147 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17148 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17149 # script with STATUS, using 1 if that was 0.
17150 as_fn_error ()
17151 {
17152   as_status=$1; test $as_status -eq 0 && as_status=1
17153   if test "$4"; then
17154     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17155     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17156   fi
17157   $as_echo "$as_me: error: $2" >&2
17158   as_fn_exit $as_status
17159 } # as_fn_error
17160
17161
17162 # as_fn_set_status STATUS
17163 # -----------------------
17164 # Set $? to STATUS, without forking.
17165 as_fn_set_status ()
17166 {
17167   return $1
17168 } # as_fn_set_status
17169
17170 # as_fn_exit STATUS
17171 # -----------------
17172 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17173 as_fn_exit ()
17174 {
17175   set +e
17176   as_fn_set_status $1
17177   exit $1
17178 } # as_fn_exit
17179
17180 # as_fn_unset VAR
17181 # ---------------
17182 # Portably unset VAR.
17183 as_fn_unset ()
17184 {
17185   { eval $1=; unset $1;}
17186 }
17187 as_unset=as_fn_unset
17188 # as_fn_append VAR VALUE
17189 # ----------------------
17190 # Append the text in VALUE to the end of the definition contained in VAR. Take
17191 # advantage of any shell optimizations that allow amortized linear growth over
17192 # repeated appends, instead of the typical quadratic growth present in naive
17193 # implementations.
17194 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17195   eval 'as_fn_append ()
17196   {
17197     eval $1+=\$2
17198   }'
17199 else
17200   as_fn_append ()
17201   {
17202     eval $1=\$$1\$2
17203   }
17204 fi # as_fn_append
17205
17206 # as_fn_arith ARG...
17207 # ------------------
17208 # Perform arithmetic evaluation on the ARGs, and store the result in the
17209 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17210 # must be portable across $(()) and expr.
17211 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17212   eval 'as_fn_arith ()
17213   {
17214     as_val=$(( $* ))
17215   }'
17216 else
17217   as_fn_arith ()
17218   {
17219     as_val=`expr "$@" || test $? -eq 1`
17220   }
17221 fi # as_fn_arith
17222
17223
17224 if expr a : '\(a\)' >/dev/null 2>&1 &&
17225    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17226   as_expr=expr
17227 else
17228   as_expr=false
17229 fi
17230
17231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17232   as_basename=basename
17233 else
17234   as_basename=false
17235 fi
17236
17237 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17238   as_dirname=dirname
17239 else
17240   as_dirname=false
17241 fi
17242
17243 as_me=`$as_basename -- "$0" ||
17244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17245          X"$0" : 'X\(//\)$' \| \
17246          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17247 $as_echo X/"$0" |
17248     sed '/^.*\/\([^/][^/]*\)\/*$/{
17249             s//\1/
17250             q
17251           }
17252           /^X\/\(\/\/\)$/{
17253             s//\1/
17254             q
17255           }
17256           /^X\/\(\/\).*/{
17257             s//\1/
17258             q
17259           }
17260           s/.*/./; q'`
17261
17262 # Avoid depending upon Character Ranges.
17263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17266 as_cr_digits='0123456789'
17267 as_cr_alnum=$as_cr_Letters$as_cr_digits
17268
17269 ECHO_C= ECHO_N= ECHO_T=
17270 case `echo -n x` in #(((((
17271 -n*)
17272   case `echo 'xy\c'` in
17273   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17274   xy)  ECHO_C='\c';;
17275   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17276        ECHO_T=' ';;
17277   esac;;
17278 *)
17279   ECHO_N='-n';;
17280 esac
17281
17282 rm -f conf$$ conf$$.exe conf$$.file
17283 if test -d conf$$.dir; then
17284   rm -f conf$$.dir/conf$$.file
17285 else
17286   rm -f conf$$.dir
17287   mkdir conf$$.dir 2>/dev/null
17288 fi
17289 if (echo >conf$$.file) 2>/dev/null; then
17290   if ln -s conf$$.file conf$$ 2>/dev/null; then
17291     as_ln_s='ln -s'
17292     # ... but there are two gotchas:
17293     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17294     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17295     # In both cases, we have to default to `cp -pR'.
17296     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17297       as_ln_s='cp -pR'
17298   elif ln conf$$.file conf$$ 2>/dev/null; then
17299     as_ln_s=ln
17300   else
17301     as_ln_s='cp -pR'
17302   fi
17303 else
17304   as_ln_s='cp -pR'
17305 fi
17306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17307 rmdir conf$$.dir 2>/dev/null
17308
17309
17310 # as_fn_mkdir_p
17311 # -------------
17312 # Create "$as_dir" as a directory, including parents if necessary.
17313 as_fn_mkdir_p ()
17314 {
17315
17316   case $as_dir in #(
17317   -*) as_dir=./$as_dir;;
17318   esac
17319   test -d "$as_dir" || eval $as_mkdir_p || {
17320     as_dirs=
17321     while :; do
17322       case $as_dir in #(
17323       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17324       *) as_qdir=$as_dir;;
17325       esac
17326       as_dirs="'$as_qdir' $as_dirs"
17327       as_dir=`$as_dirname -- "$as_dir" ||
17328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329          X"$as_dir" : 'X\(//\)[^/]' \| \
17330          X"$as_dir" : 'X\(//\)$' \| \
17331          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17332 $as_echo X"$as_dir" |
17333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334             s//\1/
17335             q
17336           }
17337           /^X\(\/\/\)[^/].*/{
17338             s//\1/
17339             q
17340           }
17341           /^X\(\/\/\)$/{
17342             s//\1/
17343             q
17344           }
17345           /^X\(\/\).*/{
17346             s//\1/
17347             q
17348           }
17349           s/.*/./; q'`
17350       test -d "$as_dir" && break
17351     done
17352     test -z "$as_dirs" || eval "mkdir $as_dirs"
17353   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17354
17355
17356 } # as_fn_mkdir_p
17357 if mkdir -p . 2>/dev/null; then
17358   as_mkdir_p='mkdir -p "$as_dir"'
17359 else
17360   test -d ./-p && rmdir ./-p
17361   as_mkdir_p=false
17362 fi
17363
17364
17365 # as_fn_executable_p FILE
17366 # -----------------------
17367 # Test if FILE is an executable regular file.
17368 as_fn_executable_p ()
17369 {
17370   test -f "$1" && test -x "$1"
17371 } # as_fn_executable_p
17372 as_test_x='test -x'
17373 as_executable_p=as_fn_executable_p
17374
17375 # Sed expression to map a string onto a valid CPP name.
17376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17377
17378 # Sed expression to map a string onto a valid variable name.
17379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17380
17381
17382 exec 6>&1
17383 ## ----------------------------------- ##
17384 ## Main body of $CONFIG_STATUS script. ##
17385 ## ----------------------------------- ##
17386 _ASEOF
17387 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390 # Save the log message, to keep $0 and so on meaningful, and to
17391 # report actual input values of CONFIG_FILES etc. instead of their
17392 # values after options handling.
17393 ac_log="
17394 This file was extended by OpenFst $as_me 1.6.4, which was
17395 generated by GNU Autoconf 2.69.  Invocation command line was
17396
17397   CONFIG_FILES    = $CONFIG_FILES
17398   CONFIG_HEADERS  = $CONFIG_HEADERS
17399   CONFIG_LINKS    = $CONFIG_LINKS
17400   CONFIG_COMMANDS = $CONFIG_COMMANDS
17401   $ $0 $@
17402
17403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17404 "
17405
17406 _ACEOF
17407
17408 case $ac_config_files in *"
17409 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17410 esac
17411
17412 case $ac_config_headers in *"
17413 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17414 esac
17415
17416
17417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418 # Files that config.status was made for.
17419 config_files="$ac_config_files"
17420 config_headers="$ac_config_headers"
17421 config_commands="$ac_config_commands"
17422
17423 _ACEOF
17424
17425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17426 ac_cs_usage="\
17427 \`$as_me' instantiates files and other configuration actions
17428 from templates according to the current configuration.  Unless the files
17429 and actions are specified as TAGs, all are instantiated by default.
17430
17431 Usage: $0 [OPTION]... [TAG]...
17432
17433   -h, --help       print this help, then exit
17434   -V, --version    print version number and configuration settings, then exit
17435       --config     print configuration, then exit
17436   -q, --quiet, --silent
17437                    do not print progress messages
17438   -d, --debug      don't remove temporary files
17439       --recheck    update $as_me by reconfiguring in the same conditions
17440       --file=FILE[:TEMPLATE]
17441                    instantiate the configuration file FILE
17442       --header=FILE[:TEMPLATE]
17443                    instantiate the configuration header FILE
17444
17445 Configuration files:
17446 $config_files
17447
17448 Configuration headers:
17449 $config_headers
17450
17451 Configuration commands:
17452 $config_commands
17453
17454 Report bugs to <help@www.openfst.org>."
17455
17456 _ACEOF
17457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17458 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17459 ac_cs_version="\\
17460 OpenFst config.status 1.6.4
17461 configured by $0, generated by GNU Autoconf 2.69,
17462   with options \\"\$ac_cs_config\\"
17463
17464 Copyright (C) 2012 Free Software Foundation, Inc.
17465 This config.status script is free software; the Free Software Foundation
17466 gives unlimited permission to copy, distribute and modify it."
17467
17468 ac_pwd='$ac_pwd'
17469 srcdir='$srcdir'
17470 INSTALL='$INSTALL'
17471 MKDIR_P='$MKDIR_P'
17472 AWK='$AWK'
17473 test -n "\$AWK" || AWK=awk
17474 _ACEOF
17475
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477 # The default lists apply if the user does not specify any file.
17478 ac_need_defaults=:
17479 while test $# != 0
17480 do
17481   case $1 in
17482   --*=?*)
17483     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17484     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17485     ac_shift=:
17486     ;;
17487   --*=)
17488     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17489     ac_optarg=
17490     ac_shift=:
17491     ;;
17492   *)
17493     ac_option=$1
17494     ac_optarg=$2
17495     ac_shift=shift
17496     ;;
17497   esac
17498
17499   case $ac_option in
17500   # Handling of the options.
17501   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17502     ac_cs_recheck=: ;;
17503   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17504     $as_echo "$ac_cs_version"; exit ;;
17505   --config | --confi | --conf | --con | --co | --c )
17506     $as_echo "$ac_cs_config"; exit ;;
17507   --debug | --debu | --deb | --de | --d | -d )
17508     debug=: ;;
17509   --file | --fil | --fi | --f )
17510     $ac_shift
17511     case $ac_optarg in
17512     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17513     '') as_fn_error $? "missing file argument" ;;
17514     esac
17515     as_fn_append CONFIG_FILES " '$ac_optarg'"
17516     ac_need_defaults=false;;
17517   --header | --heade | --head | --hea )
17518     $ac_shift
17519     case $ac_optarg in
17520     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17521     esac
17522     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17523     ac_need_defaults=false;;
17524   --he | --h)
17525     # Conflict between --help and --header
17526     as_fn_error $? "ambiguous option: \`$1'
17527 Try \`$0 --help' for more information.";;
17528   --help | --hel | -h )
17529     $as_echo "$ac_cs_usage"; exit ;;
17530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17532     ac_cs_silent=: ;;
17533
17534   # This is an error.
17535   -*) as_fn_error $? "unrecognized option: \`$1'
17536 Try \`$0 --help' for more information." ;;
17537
17538   *) as_fn_append ac_config_targets " $1"
17539      ac_need_defaults=false ;;
17540
17541   esac
17542   shift
17543 done
17544
17545 ac_configure_extra_args=
17546
17547 if $ac_cs_silent; then
17548   exec 6>/dev/null
17549   ac_configure_extra_args="$ac_configure_extra_args --silent"
17550 fi
17551
17552 _ACEOF
17553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17554 if \$ac_cs_recheck; then
17555   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17556   shift
17557   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17558   CONFIG_SHELL='$SHELL'
17559   export CONFIG_SHELL
17560   exec "\$@"
17561 fi
17562
17563 _ACEOF
17564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565 exec 5>>config.log
17566 {
17567   echo
17568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17569 ## Running $as_me. ##
17570 _ASBOX
17571   $as_echo "$ac_log"
17572 } >&5
17573
17574 _ACEOF
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 #
17577 # INIT-COMMANDS
17578 #
17579 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17580
17581
17582 # The HP-UX ksh and POSIX shell print the target directory to stdout
17583 # if CDPATH is set.
17584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17585
17586 sed_quote_subst='$sed_quote_subst'
17587 double_quote_subst='$double_quote_subst'
17588 delay_variable_subst='$delay_variable_subst'
17589 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17590 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17591 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17592 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17593 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17594 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17595 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17596 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17597 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17598 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17619 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17620 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17621 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17622 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17624 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17625 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17626 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17627 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17628 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17629 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17645 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17646 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17647 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"`'
17648 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17649 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17650 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17651 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17716 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17717 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17718 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17719 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17720 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17721 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17722 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17723 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17724 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17725 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17726 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17727 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17728 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17729 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17730 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17731 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17732 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17733 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17734 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17735 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17740 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17741 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17742 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17743 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17744 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17745 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17747 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17748 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17749 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17752 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17753 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17756 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17758 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17759 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17760 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17761 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17762 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17763 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17764 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17765 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17766 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17767 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17768 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17770 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17771 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17772 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17773 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17774 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17775 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17776 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17777 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17778
17779 LTCC='$LTCC'
17780 LTCFLAGS='$LTCFLAGS'
17781 compiler='$compiler_DEFAULT'
17782
17783 # A function that is used when there is no print builtin or printf.
17784 func_fallback_echo ()
17785 {
17786   eval 'cat <<_LTECHO_EOF
17787 \$1
17788 _LTECHO_EOF'
17789 }
17790
17791 # Quote evaled strings.
17792 for var in SHELL \
17793 ECHO \
17794 PATH_SEPARATOR \
17795 SED \
17796 GREP \
17797 EGREP \
17798 FGREP \
17799 LD \
17800 NM \
17801 LN_S \
17802 lt_SP2NL \
17803 lt_NL2SP \
17804 reload_flag \
17805 OBJDUMP \
17806 deplibs_check_method \
17807 file_magic_cmd \
17808 file_magic_glob \
17809 want_nocaseglob \
17810 DLLTOOL \
17811 sharedlib_from_linklib_cmd \
17812 AR \
17813 AR_FLAGS \
17814 archiver_list_spec \
17815 STRIP \
17816 RANLIB \
17817 CC \
17818 CFLAGS \
17819 compiler \
17820 lt_cv_sys_global_symbol_pipe \
17821 lt_cv_sys_global_symbol_to_cdecl \
17822 lt_cv_sys_global_symbol_to_import \
17823 lt_cv_sys_global_symbol_to_c_name_address \
17824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17825 lt_cv_nm_interface \
17826 nm_file_list_spec \
17827 lt_cv_truncate_bin \
17828 lt_prog_compiler_no_builtin_flag \
17829 lt_prog_compiler_pic \
17830 lt_prog_compiler_wl \
17831 lt_prog_compiler_static \
17832 lt_cv_prog_compiler_c_o \
17833 need_locks \
17834 MANIFEST_TOOL \
17835 DSYMUTIL \
17836 NMEDIT \
17837 LIPO \
17838 OTOOL \
17839 OTOOL64 \
17840 shrext_cmds \
17841 export_dynamic_flag_spec \
17842 whole_archive_flag_spec \
17843 compiler_needs_object \
17844 with_gnu_ld \
17845 allow_undefined_flag \
17846 no_undefined_flag \
17847 hardcode_libdir_flag_spec \
17848 hardcode_libdir_separator \
17849 exclude_expsyms \
17850 include_expsyms \
17851 file_list_spec \
17852 variables_saved_for_relink \
17853 libname_spec \
17854 library_names_spec \
17855 soname_spec \
17856 install_override_mode \
17857 finish_eval \
17858 old_striplib \
17859 striplib \
17860 compiler_lib_search_dirs \
17861 predep_objects \
17862 postdep_objects \
17863 predeps \
17864 postdeps \
17865 compiler_lib_search_path \
17866 LD_CXX \
17867 reload_flag_CXX \
17868 compiler_CXX \
17869 lt_prog_compiler_no_builtin_flag_CXX \
17870 lt_prog_compiler_pic_CXX \
17871 lt_prog_compiler_wl_CXX \
17872 lt_prog_compiler_static_CXX \
17873 lt_cv_prog_compiler_c_o_CXX \
17874 export_dynamic_flag_spec_CXX \
17875 whole_archive_flag_spec_CXX \
17876 compiler_needs_object_CXX \
17877 with_gnu_ld_CXX \
17878 allow_undefined_flag_CXX \
17879 no_undefined_flag_CXX \
17880 hardcode_libdir_flag_spec_CXX \
17881 hardcode_libdir_separator_CXX \
17882 exclude_expsyms_CXX \
17883 include_expsyms_CXX \
17884 file_list_spec_CXX \
17885 compiler_lib_search_dirs_CXX \
17886 predep_objects_CXX \
17887 postdep_objects_CXX \
17888 predeps_CXX \
17889 postdeps_CXX \
17890 compiler_lib_search_path_CXX; do
17891     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17892     *[\\\\\\\`\\"\\\$]*)
17893       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17894       ;;
17895     *)
17896       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17897       ;;
17898     esac
17899 done
17900
17901 # Double-quote double-evaled strings.
17902 for var in reload_cmds \
17903 old_postinstall_cmds \
17904 old_postuninstall_cmds \
17905 old_archive_cmds \
17906 extract_expsyms_cmds \
17907 old_archive_from_new_cmds \
17908 old_archive_from_expsyms_cmds \
17909 archive_cmds \
17910 archive_expsym_cmds \
17911 module_cmds \
17912 module_expsym_cmds \
17913 export_symbols_cmds \
17914 prelink_cmds \
17915 postlink_cmds \
17916 postinstall_cmds \
17917 postuninstall_cmds \
17918 finish_cmds \
17919 sys_lib_search_path_spec \
17920 configure_time_dlsearch_path \
17921 configure_time_lt_sys_library_path \
17922 reload_cmds_CXX \
17923 old_archive_cmds_CXX \
17924 old_archive_from_new_cmds_CXX \
17925 old_archive_from_expsyms_cmds_CXX \
17926 archive_cmds_CXX \
17927 archive_expsym_cmds_CXX \
17928 module_cmds_CXX \
17929 module_expsym_cmds_CXX \
17930 export_symbols_cmds_CXX \
17931 prelink_cmds_CXX \
17932 postlink_cmds_CXX; do
17933     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17934     *[\\\\\\\`\\"\\\$]*)
17935       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17936       ;;
17937     *)
17938       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17939       ;;
17940     esac
17941 done
17942
17943 ac_aux_dir='$ac_aux_dir'
17944
17945 # See if we are running on zsh, and set the options that allow our
17946 # commands through without removal of \ escapes INIT.
17947 if test -n "\${ZSH_VERSION+set}"; then
17948    setopt NO_GLOB_SUBST
17949 fi
17950
17951
17952     PACKAGE='$PACKAGE'
17953     VERSION='$VERSION'
17954     RM='$RM'
17955     ofile='$ofile'
17956
17957
17958
17959
17960
17961
17962 _ACEOF
17963
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965
17966 # Handling of arguments.
17967 for ac_config_target in $ac_config_targets
17968 do
17969   case $ac_config_target in
17970     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17971     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17972     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17973     "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
17974     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17975     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17976     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17977     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17978     "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
17979     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17980     "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
17981     "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
17982     "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
17983     "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
17984     "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
17985     "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
17986     "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
17987     "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
17988     "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
17989     "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
17990     "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
17991     "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
17992     "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
17993
17994   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17995   esac
17996 done
17997
17998
17999 # If the user did not use the arguments to specify the items to instantiate,
18000 # then the envvar interface is used.  Set only those that are not.
18001 # We use the long form for the default assignment because of an extremely
18002 # bizarre bug on SunOS 4.1.3.
18003 if $ac_need_defaults; then
18004   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18005   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18006   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18007 fi
18008
18009 # Have a temporary directory for convenience.  Make it in the build tree
18010 # simply because there is no reason against having it here, and in addition,
18011 # creating and moving files from /tmp can sometimes cause problems.
18012 # Hook for its removal unless debugging.
18013 # Note that there is a small window in which the directory will not be cleaned:
18014 # after its creation but before its name has been assigned to `$tmp'.
18015 $debug ||
18016 {
18017   tmp= ac_tmp=
18018   trap 'exit_status=$?
18019   : "${ac_tmp:=$tmp}"
18020   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18021 ' 0
18022   trap 'as_fn_exit 1' 1 2 13 15
18023 }
18024 # Create a (secure) tmp directory for tmp files.
18025
18026 {
18027   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18028   test -d "$tmp"
18029 }  ||
18030 {
18031   tmp=./conf$$-$RANDOM
18032   (umask 077 && mkdir "$tmp")
18033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18034 ac_tmp=$tmp
18035
18036 # Set up the scripts for CONFIG_FILES section.
18037 # No need to generate them if there are no CONFIG_FILES.
18038 # This happens for instance with `./config.status config.h'.
18039 if test -n "$CONFIG_FILES"; then
18040
18041
18042 ac_cr=`echo X | tr X '\015'`
18043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18044 # But we know of no other shell where ac_cr would be empty at this
18045 # point, so we can use a bashism as a fallback.
18046 if test "x$ac_cr" = x; then
18047   eval ac_cr=\$\'\\r\'
18048 fi
18049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18051   ac_cs_awk_cr='\\r'
18052 else
18053   ac_cs_awk_cr=$ac_cr
18054 fi
18055
18056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18057 _ACEOF
18058
18059
18060 {
18061   echo "cat >conf$$subs.awk <<_ACEOF" &&
18062   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18063   echo "_ACEOF"
18064 } >conf$$subs.sh ||
18065   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18067 ac_delim='%!_!# '
18068 for ac_last_try in false false false false false :; do
18069   . ./conf$$subs.sh ||
18070     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18071
18072   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18073   if test $ac_delim_n = $ac_delim_num; then
18074     break
18075   elif $ac_last_try; then
18076     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18077   else
18078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18079   fi
18080 done
18081 rm -f conf$$subs.sh
18082
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18085 _ACEOF
18086 sed -n '
18087 h
18088 s/^/S["/; s/!.*/"]=/
18089 p
18090 g
18091 s/^[^!]*!//
18092 :repl
18093 t repl
18094 s/'"$ac_delim"'$//
18095 t delim
18096 :nl
18097 h
18098 s/\(.\{148\}\)..*/\1/
18099 t more1
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18101 p
18102 n
18103 b repl
18104 :more1
18105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18106 p
18107 g
18108 s/.\{148\}//
18109 t nl
18110 :delim
18111 h
18112 s/\(.\{148\}\)..*/\1/
18113 t more2
18114 s/["\\]/\\&/g; s/^/"/; s/$/"/
18115 p
18116 b
18117 :more2
18118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18119 p
18120 g
18121 s/.\{148\}//
18122 t delim
18123 ' <conf$$subs.awk | sed '
18124 /^[^""]/{
18125   N
18126   s/\n//
18127 }
18128 ' >>$CONFIG_STATUS || ac_write_fail=1
18129 rm -f conf$$subs.awk
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 _ACAWK
18132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18133   for (key in S) S_is_set[key] = 1
18134   FS = "\a"
18135
18136 }
18137 {
18138   line = $ 0
18139   nfields = split(line, field, "@")
18140   substed = 0
18141   len = length(field[1])
18142   for (i = 2; i < nfields; i++) {
18143     key = field[i]
18144     keylen = length(key)
18145     if (S_is_set[key]) {
18146       value = S[key]
18147       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18148       len += length(value) + length(field[++i])
18149       substed = 1
18150     } else
18151       len += 1 + keylen
18152   }
18153
18154   print line
18155 }
18156
18157 _ACAWK
18158 _ACEOF
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18161   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18162 else
18163   cat
18164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18165   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18166 _ACEOF
18167
18168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18174 h
18175 s///
18176 s/^/:/
18177 s/[      ]*$/:/
18178 s/:\$(srcdir):/:/g
18179 s/:\${srcdir}:/:/g
18180 s/:@srcdir@:/:/g
18181 s/^:*//
18182 s/:*$//
18183 x
18184 s/\(=[   ]*\).*/\1/
18185 G
18186 s/\n//
18187 s/^[^=]*=[       ]*$//
18188 }'
18189 fi
18190
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 fi # test -n "$CONFIG_FILES"
18193
18194 # Set up the scripts for CONFIG_HEADERS section.
18195 # No need to generate them if there are no CONFIG_HEADERS.
18196 # This happens for instance with `./config.status Makefile'.
18197 if test -n "$CONFIG_HEADERS"; then
18198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18199 BEGIN {
18200 _ACEOF
18201
18202 # Transform confdefs.h into an awk script `defines.awk', embedded as
18203 # here-document in config.status, that substitutes the proper values into
18204 # config.h.in to produce config.h.
18205
18206 # Create a delimiter string that does not exist in confdefs.h, to ease
18207 # handling of long lines.
18208 ac_delim='%!_!# '
18209 for ac_last_try in false false :; do
18210   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18211   if test -z "$ac_tt"; then
18212     break
18213   elif $ac_last_try; then
18214     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18215   else
18216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18217   fi
18218 done
18219
18220 # For the awk script, D is an array of macro values keyed by name,
18221 # likewise P contains macro parameters if any.  Preserve backslash
18222 # newline sequences.
18223
18224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18225 sed -n '
18226 s/.\{148\}/&'"$ac_delim"'/g
18227 t rset
18228 :rset
18229 s/^[     ]*#[    ]*define[       ][      ]*/ /
18230 t def
18231 d
18232 :def
18233 s/\\$//
18234 t bsnl
18235 s/["\\]/\\&/g
18236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18237 D["\1"]=" \3"/p
18238 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18239 d
18240 :bsnl
18241 s/["\\]/\\&/g
18242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18243 D["\1"]=" \3\\\\\\n"\\/p
18244 t cont
18245 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18246 t cont
18247 d
18248 :cont
18249 n
18250 s/.\{148\}/&'"$ac_delim"'/g
18251 t clear
18252 :clear
18253 s/\\$//
18254 t bsnlc
18255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18256 d
18257 :bsnlc
18258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18259 b cont
18260 ' <confdefs.h | sed '
18261 s/'"$ac_delim"'/"\\\
18262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18263
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265   for (key in D) D_is_set[key] = 1
18266   FS = "\a"
18267 }
18268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18269   line = \$ 0
18270   split(line, arg, " ")
18271   if (arg[1] == "#") {
18272     defundef = arg[2]
18273     mac1 = arg[3]
18274   } else {
18275     defundef = substr(arg[1], 2)
18276     mac1 = arg[2]
18277   }
18278   split(mac1, mac2, "(") #)
18279   macro = mac2[1]
18280   prefix = substr(line, 1, index(line, defundef) - 1)
18281   if (D_is_set[macro]) {
18282     # Preserve the white space surrounding the "#".
18283     print prefix "define", macro P[macro] D[macro]
18284     next
18285   } else {
18286     # Replace #undef with comments.  This is necessary, for example,
18287     # in the case of _POSIX_SOURCE, which is predefined and required
18288     # on some systems where configure will not decide to define it.
18289     if (defundef == "undef") {
18290       print "/*", prefix defundef, macro, "*/"
18291       next
18292     }
18293   }
18294 }
18295 { print }
18296 _ACAWK
18297 _ACEOF
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_HEADERS"
18301
18302
18303 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18304 shift
18305 for ac_tag
18306 do
18307   case $ac_tag in
18308   :[FHLC]) ac_mode=$ac_tag; continue;;
18309   esac
18310   case $ac_mode$ac_tag in
18311   :[FHL]*:*);;
18312   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18313   :[FH]-) ac_tag=-:-;;
18314   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18315   esac
18316   ac_save_IFS=$IFS
18317   IFS=:
18318   set x $ac_tag
18319   IFS=$ac_save_IFS
18320   shift
18321   ac_file=$1
18322   shift
18323
18324   case $ac_mode in
18325   :L) ac_source=$1;;
18326   :[FH])
18327     ac_file_inputs=
18328     for ac_f
18329     do
18330       case $ac_f in
18331       -) ac_f="$ac_tmp/stdin";;
18332       *) # Look for the file first in the build tree, then in the source tree
18333          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18334          # because $ac_f cannot contain `:'.
18335          test -f "$ac_f" ||
18336            case $ac_f in
18337            [\\/$]*) false;;
18338            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18339            esac ||
18340            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18341       esac
18342       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18343       as_fn_append ac_file_inputs " '$ac_f'"
18344     done
18345
18346     # Let's still pretend it is `configure' which instantiates (i.e., don't
18347     # use $as_me), people would be surprised to read:
18348     #    /* config.h.  Generated by config.status.  */
18349     configure_input='Generated from '`
18350           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18351         `' by configure.'
18352     if test x"$ac_file" != x-; then
18353       configure_input="$ac_file.  $configure_input"
18354       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18355 $as_echo "$as_me: creating $ac_file" >&6;}
18356     fi
18357     # Neutralize special characters interpreted by sed in replacement strings.
18358     case $configure_input in #(
18359     *\&* | *\|* | *\\* )
18360        ac_sed_conf_input=`$as_echo "$configure_input" |
18361        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18362     *) ac_sed_conf_input=$configure_input;;
18363     esac
18364
18365     case $ac_tag in
18366     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18367       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18368     esac
18369     ;;
18370   esac
18371
18372   ac_dir=`$as_dirname -- "$ac_file" ||
18373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374          X"$ac_file" : 'X\(//\)[^/]' \| \
18375          X"$ac_file" : 'X\(//\)$' \| \
18376          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$ac_file" |
18378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18379             s//\1/
18380             q
18381           }
18382           /^X\(\/\/\)[^/].*/{
18383             s//\1/
18384             q
18385           }
18386           /^X\(\/\/\)$/{
18387             s//\1/
18388             q
18389           }
18390           /^X\(\/\).*/{
18391             s//\1/
18392             q
18393           }
18394           s/.*/./; q'`
18395   as_dir="$ac_dir"; as_fn_mkdir_p
18396   ac_builddir=.
18397
18398 case "$ac_dir" in
18399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18400 *)
18401   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18402   # A ".." for each directory in $ac_dir_suffix.
18403   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18404   case $ac_top_builddir_sub in
18405   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18406   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18407   esac ;;
18408 esac
18409 ac_abs_top_builddir=$ac_pwd
18410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18411 # for backward compatibility:
18412 ac_top_builddir=$ac_top_build_prefix
18413
18414 case $srcdir in
18415   .)  # We are building in place.
18416     ac_srcdir=.
18417     ac_top_srcdir=$ac_top_builddir_sub
18418     ac_abs_top_srcdir=$ac_pwd ;;
18419   [\\/]* | ?:[\\/]* )  # Absolute name.
18420     ac_srcdir=$srcdir$ac_dir_suffix;
18421     ac_top_srcdir=$srcdir
18422     ac_abs_top_srcdir=$srcdir ;;
18423   *) # Relative name.
18424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18425     ac_top_srcdir=$ac_top_build_prefix$srcdir
18426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18427 esac
18428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18429
18430
18431   case $ac_mode in
18432   :F)
18433   #
18434   # CONFIG_FILE
18435   #
18436
18437   case $INSTALL in
18438   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18439   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18440   esac
18441   ac_MKDIR_P=$MKDIR_P
18442   case $MKDIR_P in
18443   [\\/$]* | ?:[\\/]* ) ;;
18444   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18445   esac
18446 _ACEOF
18447
18448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18449 # If the template does not know about datarootdir, expand it.
18450 # FIXME: This hack should be removed a few years after 2.60.
18451 ac_datarootdir_hack=; ac_datarootdir_seen=
18452 ac_sed_dataroot='
18453 /datarootdir/ {
18454   p
18455   q
18456 }
18457 /@datadir@/p
18458 /@docdir@/p
18459 /@infodir@/p
18460 /@localedir@/p
18461 /@mandir@/p'
18462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18463 *datarootdir*) ac_datarootdir_seen=yes;;
18464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18465   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469   ac_datarootdir_hack='
18470   s&@datadir@&$datadir&g
18471   s&@docdir@&$docdir&g
18472   s&@infodir@&$infodir&g
18473   s&@localedir@&$localedir&g
18474   s&@mandir@&$mandir&g
18475   s&\\\${datarootdir}&$datarootdir&g' ;;
18476 esac
18477 _ACEOF
18478
18479 # Neutralize VPATH when `$srcdir' = `.'.
18480 # Shell code in configure.ac might set extrasub.
18481 # FIXME: do we really want to maintain this feature?
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 ac_sed_extra="$ac_vpsub
18484 $extrasub
18485 _ACEOF
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 :t
18488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18489 s|@configure_input@|$ac_sed_conf_input|;t t
18490 s&@top_builddir@&$ac_top_builddir_sub&;t t
18491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18492 s&@srcdir@&$ac_srcdir&;t t
18493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18494 s&@top_srcdir@&$ac_top_srcdir&;t t
18495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18496 s&@builddir@&$ac_builddir&;t t
18497 s&@abs_builddir@&$ac_abs_builddir&;t t
18498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18499 s&@INSTALL@&$ac_INSTALL&;t t
18500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18501 $ac_datarootdir_hack
18502 "
18503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18504   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18505
18506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18507   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18508   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18509       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18511 which seems to be undefined.  Please make sure it is defined" >&5
18512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513 which seems to be undefined.  Please make sure it is defined" >&2;}
18514
18515   rm -f "$ac_tmp/stdin"
18516   case $ac_file in
18517   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18518   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18519   esac \
18520   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18521  ;;
18522   :H)
18523   #
18524   # CONFIG_HEADER
18525   #
18526   if test x"$ac_file" != x-; then
18527     {
18528       $as_echo "/* $configure_input  */" \
18529       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18530     } >"$ac_tmp/config.h" \
18531       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18532     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18533       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18535     else
18536       rm -f "$ac_file"
18537       mv "$ac_tmp/config.h" "$ac_file" \
18538         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18539     fi
18540   else
18541     $as_echo "/* $configure_input  */" \
18542       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18543       || as_fn_error $? "could not create -" "$LINENO" 5
18544   fi
18545 # Compute "$ac_file"'s index in $config_headers.
18546 _am_arg="$ac_file"
18547 _am_stamp_count=1
18548 for _am_header in $config_headers :; do
18549   case $_am_header in
18550     $_am_arg | $_am_arg:* )
18551       break ;;
18552     * )
18553       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18554   esac
18555 done
18556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558          X"$_am_arg" : 'X\(//\)[^/]' \| \
18559          X"$_am_arg" : 'X\(//\)$' \| \
18560          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$_am_arg" |
18562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18563             s//\1/
18564             q
18565           }
18566           /^X\(\/\/\)[^/].*/{
18567             s//\1/
18568             q
18569           }
18570           /^X\(\/\/\)$/{
18571             s//\1/
18572             q
18573           }
18574           /^X\(\/\).*/{
18575             s//\1/
18576             q
18577           }
18578           s/.*/./; q'`/stamp-h$_am_stamp_count
18579  ;;
18580
18581   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18582 $as_echo "$as_me: executing $ac_file commands" >&6;}
18583  ;;
18584   esac
18585
18586
18587   case $ac_file$ac_mode in
18588     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18589   # Older Autoconf quotes --file arguments for eval, but not when files
18590   # are listed without --file.  Let's play safe and only enable the eval
18591   # if we detect the quoting.
18592   case $CONFIG_FILES in
18593   *\'*) eval set x "$CONFIG_FILES" ;;
18594   *)   set x $CONFIG_FILES ;;
18595   esac
18596   shift
18597   for mf
18598   do
18599     # Strip MF so we end up with the name of the file.
18600     mf=`echo "$mf" | sed -e 's/:.*$//'`
18601     # Check whether this is an Automake generated Makefile or not.
18602     # We used to match only the files named 'Makefile.in', but
18603     # some people rename them; so instead we look at the file content.
18604     # Grep'ing the first line is not enough: some people post-process
18605     # each Makefile.in and add a new line on top of each file to say so.
18606     # Grep'ing the whole file is not good either: AIX grep has a line
18607     # limit of 2048, but all sed's we know have understand at least 4000.
18608     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18609       dirpart=`$as_dirname -- "$mf" ||
18610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611          X"$mf" : 'X\(//\)[^/]' \| \
18612          X"$mf" : 'X\(//\)$' \| \
18613          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18614 $as_echo X"$mf" |
18615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18616             s//\1/
18617             q
18618           }
18619           /^X\(\/\/\)[^/].*/{
18620             s//\1/
18621             q
18622           }
18623           /^X\(\/\/\)$/{
18624             s//\1/
18625             q
18626           }
18627           /^X\(\/\).*/{
18628             s//\1/
18629             q
18630           }
18631           s/.*/./; q'`
18632     else
18633       continue
18634     fi
18635     # Extract the definition of DEPDIR, am__include, and am__quote
18636     # from the Makefile without running 'make'.
18637     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18638     test -z "$DEPDIR" && continue
18639     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18640     test -z "$am__include" && continue
18641     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18642     # Find all dependency output files, they are included files with
18643     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18644     # simplest approach to changing $(DEPDIR) to its actual value in the
18645     # expansion.
18646     for file in `sed -n "
18647       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18648          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18649       # Make sure the directory exists.
18650       test -f "$dirpart/$file" && continue
18651       fdir=`$as_dirname -- "$file" ||
18652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18653          X"$file" : 'X\(//\)[^/]' \| \
18654          X"$file" : 'X\(//\)$' \| \
18655          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18656 $as_echo X"$file" |
18657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18658             s//\1/
18659             q
18660           }
18661           /^X\(\/\/\)[^/].*/{
18662             s//\1/
18663             q
18664           }
18665           /^X\(\/\/\)$/{
18666             s//\1/
18667             q
18668           }
18669           /^X\(\/\).*/{
18670             s//\1/
18671             q
18672           }
18673           s/.*/./; q'`
18674       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18675       # echo "creating $dirpart/$file"
18676       echo '# dummy' > "$dirpart/$file"
18677     done
18678   done
18679 }
18680  ;;
18681     "libtool":C)
18682
18683     # See if we are running on zsh, and set the options that allow our
18684     # commands through without removal of \ escapes.
18685     if test -n "${ZSH_VERSION+set}"; then
18686       setopt NO_GLOB_SUBST
18687     fi
18688
18689     cfgfile=${ofile}T
18690     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18691     $RM "$cfgfile"
18692
18693     cat <<_LT_EOF >> "$cfgfile"
18694 #! $SHELL
18695 # Generated automatically by $as_me ($PACKAGE) $VERSION
18696 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18697
18698 # Provide generalized library-building support services.
18699 # Written by Gordon Matzigkeit, 1996
18700
18701 # Copyright (C) 2014 Free Software Foundation, Inc.
18702 # This is free software; see the source for copying conditions.  There is NO
18703 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18704
18705 # GNU Libtool is free software; you can redistribute it and/or modify
18706 # it under the terms of the GNU General Public License as published by
18707 # the Free Software Foundation; either version 2 of of the License, or
18708 # (at your option) any later version.
18709 #
18710 # As a special exception to the GNU General Public License, if you
18711 # distribute this file as part of a program or library that is built
18712 # using GNU Libtool, you may include this file under the  same
18713 # distribution terms that you use for the rest of that program.
18714 #
18715 # GNU Libtool is distributed in the hope that it will be useful, but
18716 # WITHOUT ANY WARRANTY; without even the implied warranty of
18717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18718 # GNU General Public License for more details.
18719 #
18720 # You should have received a copy of the GNU General Public License
18721 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18722
18723
18724 # The names of the tagged configurations supported by this script.
18725 available_tags='CXX '
18726
18727 # Configured defaults for sys_lib_dlsearch_path munging.
18728 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18729
18730 # ### BEGIN LIBTOOL CONFIG
18731
18732 # Whether or not to build static libraries.
18733 build_old_libs=$enable_static
18734
18735 # Which release of libtool.m4 was used?
18736 macro_version=$macro_version
18737 macro_revision=$macro_revision
18738
18739 # Whether or not to build shared libraries.
18740 build_libtool_libs=$enable_shared
18741
18742 # What type of objects to build.
18743 pic_mode=$pic_mode
18744
18745 # Whether or not to optimize for fast installation.
18746 fast_install=$enable_fast_install
18747
18748 # Shared archive member basename,for filename based shared library versioning on AIX.
18749 shared_archive_member_spec=$shared_archive_member_spec
18750
18751 # Shell to use when invoking shell scripts.
18752 SHELL=$lt_SHELL
18753
18754 # An echo program that protects backslashes.
18755 ECHO=$lt_ECHO
18756
18757 # The PATH separator for the build system.
18758 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18759
18760 # The host system.
18761 host_alias=$host_alias
18762 host=$host
18763 host_os=$host_os
18764
18765 # The build system.
18766 build_alias=$build_alias
18767 build=$build
18768 build_os=$build_os
18769
18770 # A sed program that does not truncate output.
18771 SED=$lt_SED
18772
18773 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18774 Xsed="\$SED -e 1s/^X//"
18775
18776 # A grep program that handles long lines.
18777 GREP=$lt_GREP
18778
18779 # An ERE matcher.
18780 EGREP=$lt_EGREP
18781
18782 # A literal string matcher.
18783 FGREP=$lt_FGREP
18784
18785 # A BSD- or MS-compatible name lister.
18786 NM=$lt_NM
18787
18788 # Whether we need soft or hard links.
18789 LN_S=$lt_LN_S
18790
18791 # What is the maximum length of a command?
18792 max_cmd_len=$max_cmd_len
18793
18794 # Object file suffix (normally "o").
18795 objext=$ac_objext
18796
18797 # Executable file suffix (normally "").
18798 exeext=$exeext
18799
18800 # whether the shell understands "unset".
18801 lt_unset=$lt_unset
18802
18803 # turn spaces into newlines.
18804 SP2NL=$lt_lt_SP2NL
18805
18806 # turn newlines into spaces.
18807 NL2SP=$lt_lt_NL2SP
18808
18809 # convert \$build file names to \$host format.
18810 to_host_file_cmd=$lt_cv_to_host_file_cmd
18811
18812 # convert \$build files to toolchain format.
18813 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18814
18815 # An object symbol dumper.
18816 OBJDUMP=$lt_OBJDUMP
18817
18818 # Method to check whether dependent libraries are shared objects.
18819 deplibs_check_method=$lt_deplibs_check_method
18820
18821 # Command to use when deplibs_check_method = "file_magic".
18822 file_magic_cmd=$lt_file_magic_cmd
18823
18824 # How to find potential files when deplibs_check_method = "file_magic".
18825 file_magic_glob=$lt_file_magic_glob
18826
18827 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18828 want_nocaseglob=$lt_want_nocaseglob
18829
18830 # DLL creation program.
18831 DLLTOOL=$lt_DLLTOOL
18832
18833 # Command to associate shared and link libraries.
18834 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18835
18836 # The archiver.
18837 AR=$lt_AR
18838
18839 # Flags to create an archive.
18840 AR_FLAGS=$lt_AR_FLAGS
18841
18842 # How to feed a file listing to the archiver.
18843 archiver_list_spec=$lt_archiver_list_spec
18844
18845 # A symbol stripping program.
18846 STRIP=$lt_STRIP
18847
18848 # Commands used to install an old-style archive.
18849 RANLIB=$lt_RANLIB
18850 old_postinstall_cmds=$lt_old_postinstall_cmds
18851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18852
18853 # Whether to use a lock for old archive extraction.
18854 lock_old_archive_extraction=$lock_old_archive_extraction
18855
18856 # A C compiler.
18857 LTCC=$lt_CC
18858
18859 # LTCC compiler flags.
18860 LTCFLAGS=$lt_CFLAGS
18861
18862 # Take the output of nm and produce a listing of raw symbols and C names.
18863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18864
18865 # Transform the output of nm in a proper C declaration.
18866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18867
18868 # Transform the output of nm into a list of symbols to manually relocate.
18869 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18870
18871 # Transform the output of nm in a C name address pair.
18872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18873
18874 # Transform the output of nm in a C name address pair when lib prefix is needed.
18875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18876
18877 # The name lister interface.
18878 nm_interface=$lt_lt_cv_nm_interface
18879
18880 # Specify filename containing input files for \$NM.
18881 nm_file_list_spec=$lt_nm_file_list_spec
18882
18883 # The root where to search for dependent libraries,and where our libraries should be installed.
18884 lt_sysroot=$lt_sysroot
18885
18886 # Command to truncate a binary pipe.
18887 lt_truncate_bin=$lt_lt_cv_truncate_bin
18888
18889 # The name of the directory that contains temporary libtool files.
18890 objdir=$objdir
18891
18892 # Used to examine libraries when file_magic_cmd begins with "file".
18893 MAGIC_CMD=$MAGIC_CMD
18894
18895 # Must we lock files when doing compilation?
18896 need_locks=$lt_need_locks
18897
18898 # Manifest tool.
18899 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18900
18901 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18902 DSYMUTIL=$lt_DSYMUTIL
18903
18904 # Tool to change global to local symbols on Mac OS X.
18905 NMEDIT=$lt_NMEDIT
18906
18907 # Tool to manipulate fat objects and archives on Mac OS X.
18908 LIPO=$lt_LIPO
18909
18910 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18911 OTOOL=$lt_OTOOL
18912
18913 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18914 OTOOL64=$lt_OTOOL64
18915
18916 # Old archive suffix (normally "a").
18917 libext=$libext
18918
18919 # Shared library suffix (normally ".so").
18920 shrext_cmds=$lt_shrext_cmds
18921
18922 # The commands to extract the exported symbol list from a shared archive.
18923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18924
18925 # Variables whose values should be saved in libtool wrapper scripts and
18926 # restored at link time.
18927 variables_saved_for_relink=$lt_variables_saved_for_relink
18928
18929 # Do we need the "lib" prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18931
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18934
18935 # Library versioning type.
18936 version_type=$version_type
18937
18938 # Shared library runtime path variable.
18939 runpath_var=$runpath_var
18940
18941 # Shared library path variable.
18942 shlibpath_var=$shlibpath_var
18943
18944 # Is shlibpath searched before the hard-coded library search path?
18945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18946
18947 # Format of library name prefix.
18948 libname_spec=$lt_libname_spec
18949
18950 # List of archive names.  First name is the real one, the rest are links.
18951 # The last name is the one that the linker finds with -lNAME
18952 library_names_spec=$lt_library_names_spec
18953
18954 # The coded name of the library, if different from the real name.
18955 soname_spec=$lt_soname_spec
18956
18957 # Permission mode override for installation of shared libraries.
18958 install_override_mode=$lt_install_override_mode
18959
18960 # Command to use after installation of a shared archive.
18961 postinstall_cmds=$lt_postinstall_cmds
18962
18963 # Command to use after uninstallation of a shared archive.
18964 postuninstall_cmds=$lt_postuninstall_cmds
18965
18966 # Commands used to finish a libtool library installation in a directory.
18967 finish_cmds=$lt_finish_cmds
18968
18969 # As "finish_cmds", except a single script fragment to be evaled but
18970 # not shown.
18971 finish_eval=$lt_finish_eval
18972
18973 # Whether we should hardcode library paths into libraries.
18974 hardcode_into_libs=$hardcode_into_libs
18975
18976 # Compile-time system search path for libraries.
18977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18978
18979 # Detected run-time system search path for libraries.
18980 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18981
18982 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18983 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18984
18985 # Whether dlopen is supported.
18986 dlopen_support=$enable_dlopen
18987
18988 # Whether dlopen of programs is supported.
18989 dlopen_self=$enable_dlopen_self
18990
18991 # Whether dlopen of statically linked programs is supported.
18992 dlopen_self_static=$enable_dlopen_self_static
18993
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18997
18998
18999 # The linker used to build libraries.
19000 LD=$lt_LD
19001
19002 # How to create reloadable object files.
19003 reload_flag=$lt_reload_flag
19004 reload_cmds=$lt_reload_cmds
19005
19006 # Commands used to build an old-style archive.
19007 old_archive_cmds=$lt_old_archive_cmds
19008
19009 # A language specific compiler.
19010 CC=$lt_compiler
19011
19012 # Is the compiler the GNU compiler?
19013 with_gcc=$GCC
19014
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19017
19018 # Additional compiler flags for building library objects.
19019 pic_flag=$lt_lt_prog_compiler_pic
19020
19021 # How to pass a linker flag through the compiler.
19022 wl=$lt_lt_prog_compiler_wl
19023
19024 # Compiler flag to prevent dynamic linking.
19025 link_static_flag=$lt_lt_prog_compiler_static
19026
19027 # Does compiler simultaneously support -c and -o options?
19028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19029
19030 # Whether or not to add -lc for building shared libraries.
19031 build_libtool_need_lc=$archive_cmds_need_lc
19032
19033 # Whether or not to disallow shared libs when runtime libs are static.
19034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19035
19036 # Compiler flag to allow reflexive dlopens.
19037 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19038
19039 # Compiler flag to generate shared objects directly from archives.
19040 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19041
19042 # Whether the compiler copes with passing no objects directly.
19043 compiler_needs_object=$lt_compiler_needs_object
19044
19045 # Create an old-style archive from a shared archive.
19046 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19047
19048 # Create a temporary old-style archive to link instead of a shared archive.
19049 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19050
19051 # Commands used to build a shared archive.
19052 archive_cmds=$lt_archive_cmds
19053 archive_expsym_cmds=$lt_archive_expsym_cmds
19054
19055 # Commands used to build a loadable module if different from building
19056 # a shared archive.
19057 module_cmds=$lt_module_cmds
19058 module_expsym_cmds=$lt_module_expsym_cmds
19059
19060 # Whether we are building with GNU ld or not.
19061 with_gnu_ld=$lt_with_gnu_ld
19062
19063 # Flag that allows shared libraries with undefined symbols to be built.
19064 allow_undefined_flag=$lt_allow_undefined_flag
19065
19066 # Flag that enforces no undefined symbols.
19067 no_undefined_flag=$lt_no_undefined_flag
19068
19069 # Flag to hardcode \$libdir into a binary during linking.
19070 # This must work even if \$libdir does not exist
19071 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19072
19073 # Whether we need a single "-rpath" flag with a separated argument.
19074 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19075
19076 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19077 # DIR into the resulting binary.
19078 hardcode_direct=$hardcode_direct
19079
19080 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19081 # DIR into the resulting binary and the resulting library dependency is
19082 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19083 # library is relocated.
19084 hardcode_direct_absolute=$hardcode_direct_absolute
19085
19086 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19087 # into the resulting binary.
19088 hardcode_minus_L=$hardcode_minus_L
19089
19090 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19091 # into the resulting binary.
19092 hardcode_shlibpath_var=$hardcode_shlibpath_var
19093
19094 # Set to "yes" if building a shared library automatically hardcodes DIR
19095 # into the library and all subsequent libraries and executables linked
19096 # against it.
19097 hardcode_automatic=$hardcode_automatic
19098
19099 # Set to yes if linker adds runtime paths of dependent libraries
19100 # to runtime path list.
19101 inherit_rpath=$inherit_rpath
19102
19103 # Whether libtool must link a program against all its dependency libraries.
19104 link_all_deplibs=$link_all_deplibs
19105
19106 # Set to "yes" if exported symbols are required.
19107 always_export_symbols=$always_export_symbols
19108
19109 # The commands to list exported symbols.
19110 export_symbols_cmds=$lt_export_symbols_cmds
19111
19112 # Symbols that should not be listed in the preloaded symbols.
19113 exclude_expsyms=$lt_exclude_expsyms
19114
19115 # Symbols that must always be exported.
19116 include_expsyms=$lt_include_expsyms
19117
19118 # Commands necessary for linking programs (against libraries) with templates.
19119 prelink_cmds=$lt_prelink_cmds
19120
19121 # Commands necessary for finishing linking programs.
19122 postlink_cmds=$lt_postlink_cmds
19123
19124 # Specify filename containing input files.
19125 file_list_spec=$lt_file_list_spec
19126
19127 # How to hardcode a shared library path into an executable.
19128 hardcode_action=$hardcode_action
19129
19130 # The directories searched by this compiler when creating a shared library.
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19132
19133 # Dependencies to place before and after the objects being linked to
19134 # create a shared library.
19135 predep_objects=$lt_predep_objects
19136 postdep_objects=$lt_postdep_objects
19137 predeps=$lt_predeps
19138 postdeps=$lt_postdeps
19139
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path
19143
19144 # ### END LIBTOOL CONFIG
19145
19146 _LT_EOF
19147
19148     cat <<'_LT_EOF' >> "$cfgfile"
19149
19150 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19151
19152 # func_munge_path_list VARIABLE PATH
19153 # -----------------------------------
19154 # VARIABLE is name of variable containing _space_ separated list of
19155 # directories to be munged by the contents of PATH, which is string
19156 # having a format:
19157 # "DIR[:DIR]:"
19158 #       string "DIR[ DIR]" will be prepended to VARIABLE
19159 # ":DIR[:DIR]"
19160 #       string "DIR[ DIR]" will be appended to VARIABLE
19161 # "DIRP[:DIRP]::[DIRA:]DIRA"
19162 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19163 #       "DIRA[ DIRA]" will be appended to VARIABLE
19164 # "DIR[:DIR]"
19165 #       VARIABLE will be replaced by "DIR[ DIR]"
19166 func_munge_path_list ()
19167 {
19168     case x$2 in
19169     x)
19170         ;;
19171     *:)
19172         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19173         ;;
19174     x:*)
19175         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19176         ;;
19177     *::*)
19178         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19179         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19180         ;;
19181     *)
19182         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19183         ;;
19184     esac
19185 }
19186
19187
19188 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19189 func_cc_basename ()
19190 {
19191     for cc_temp in $*""; do
19192       case $cc_temp in
19193         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19194         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19195         \-*) ;;
19196         *) break;;
19197       esac
19198     done
19199     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19200 }
19201
19202
19203 # ### END FUNCTIONS SHARED WITH CONFIGURE
19204
19205 _LT_EOF
19206
19207   case $host_os in
19208   aix3*)
19209     cat <<\_LT_EOF >> "$cfgfile"
19210 # AIX sometimes has problems with the GCC collect2 program.  For some
19211 # reason, if we set the COLLECT_NAMES environment variable, the problems
19212 # vanish in a puff of smoke.
19213 if test set != "${COLLECT_NAMES+set}"; then
19214   COLLECT_NAMES=
19215   export COLLECT_NAMES
19216 fi
19217 _LT_EOF
19218     ;;
19219   esac
19220
19221
19222 ltmain=$ac_aux_dir/ltmain.sh
19223
19224
19225   # We use sed instead of cat because bash on DJGPP gets confused if
19226   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19227   # text mode, it properly converts lines to CR/LF.  This bash problem
19228   # is reportedly fixed, but why not run on old versions too?
19229   sed '$q' "$ltmain" >> "$cfgfile" \
19230      || (rm -f "$cfgfile"; exit 1)
19231
19232    mv -f "$cfgfile" "$ofile" ||
19233     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19234   chmod +x "$ofile"
19235
19236
19237     cat <<_LT_EOF >> "$ofile"
19238
19239 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19240
19241 # The linker used to build libraries.
19242 LD=$lt_LD_CXX
19243
19244 # How to create reloadable object files.
19245 reload_flag=$lt_reload_flag_CXX
19246 reload_cmds=$lt_reload_cmds_CXX
19247
19248 # Commands used to build an old-style archive.
19249 old_archive_cmds=$lt_old_archive_cmds_CXX
19250
19251 # A language specific compiler.
19252 CC=$lt_compiler_CXX
19253
19254 # Is the compiler the GNU compiler?
19255 with_gcc=$GCC_CXX
19256
19257 # Compiler flag to turn off builtin functions.
19258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19259
19260 # Additional compiler flags for building library objects.
19261 pic_flag=$lt_lt_prog_compiler_pic_CXX
19262
19263 # How to pass a linker flag through the compiler.
19264 wl=$lt_lt_prog_compiler_wl_CXX
19265
19266 # Compiler flag to prevent dynamic linking.
19267 link_static_flag=$lt_lt_prog_compiler_static_CXX
19268
19269 # Does compiler simultaneously support -c and -o options?
19270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19271
19272 # Whether or not to add -lc for building shared libraries.
19273 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19274
19275 # Whether or not to disallow shared libs when runtime libs are static.
19276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19277
19278 # Compiler flag to allow reflexive dlopens.
19279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19280
19281 # Compiler flag to generate shared objects directly from archives.
19282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19283
19284 # Whether the compiler copes with passing no objects directly.
19285 compiler_needs_object=$lt_compiler_needs_object_CXX
19286
19287 # Create an old-style archive from a shared archive.
19288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19289
19290 # Create a temporary old-style archive to link instead of a shared archive.
19291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19292
19293 # Commands used to build a shared archive.
19294 archive_cmds=$lt_archive_cmds_CXX
19295 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19296
19297 # Commands used to build a loadable module if different from building
19298 # a shared archive.
19299 module_cmds=$lt_module_cmds_CXX
19300 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19301
19302 # Whether we are building with GNU ld or not.
19303 with_gnu_ld=$lt_with_gnu_ld_CXX
19304
19305 # Flag that allows shared libraries with undefined symbols to be built.
19306 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19307
19308 # Flag that enforces no undefined symbols.
19309 no_undefined_flag=$lt_no_undefined_flag_CXX
19310
19311 # Flag to hardcode \$libdir into a binary during linking.
19312 # This must work even if \$libdir does not exist
19313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19314
19315 # Whether we need a single "-rpath" flag with a separated argument.
19316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19317
19318 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19319 # DIR into the resulting binary.
19320 hardcode_direct=$hardcode_direct_CXX
19321
19322 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19323 # DIR into the resulting binary and the resulting library dependency is
19324 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19325 # library is relocated.
19326 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19327
19328 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19329 # into the resulting binary.
19330 hardcode_minus_L=$hardcode_minus_L_CXX
19331
19332 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19333 # into the resulting binary.
19334 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19335
19336 # Set to "yes" if building a shared library automatically hardcodes DIR
19337 # into the library and all subsequent libraries and executables linked
19338 # against it.
19339 hardcode_automatic=$hardcode_automatic_CXX
19340
19341 # Set to yes if linker adds runtime paths of dependent libraries
19342 # to runtime path list.
19343 inherit_rpath=$inherit_rpath_CXX
19344
19345 # Whether libtool must link a program against all its dependency libraries.
19346 link_all_deplibs=$link_all_deplibs_CXX
19347
19348 # Set to "yes" if exported symbols are required.
19349 always_export_symbols=$always_export_symbols_CXX
19350
19351 # The commands to list exported symbols.
19352 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19353
19354 # Symbols that should not be listed in the preloaded symbols.
19355 exclude_expsyms=$lt_exclude_expsyms_CXX
19356
19357 # Symbols that must always be exported.
19358 include_expsyms=$lt_include_expsyms_CXX
19359
19360 # Commands necessary for linking programs (against libraries) with templates.
19361 prelink_cmds=$lt_prelink_cmds_CXX
19362
19363 # Commands necessary for finishing linking programs.
19364 postlink_cmds=$lt_postlink_cmds_CXX
19365
19366 # Specify filename containing input files.
19367 file_list_spec=$lt_file_list_spec_CXX
19368
19369 # How to hardcode a shared library path into an executable.
19370 hardcode_action=$hardcode_action_CXX
19371
19372 # The directories searched by this compiler when creating a shared library.
19373 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19374
19375 # Dependencies to place before and after the objects being linked to
19376 # create a shared library.
19377 predep_objects=$lt_predep_objects_CXX
19378 postdep_objects=$lt_postdep_objects_CXX
19379 predeps=$lt_predeps_CXX
19380 postdeps=$lt_postdeps_CXX
19381
19382 # The library search path used internally by the compiler when linking
19383 # a shared library.
19384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19385
19386 # ### END LIBTOOL TAG CONFIG: CXX
19387 _LT_EOF
19388
19389  ;;
19390
19391   esac
19392 done # for ac_tag
19393
19394
19395 as_fn_exit 0
19396 _ACEOF
19397 ac_clean_files=$ac_clean_files_save
19398
19399 test $ac_write_fail = 0 ||
19400   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19401
19402
19403 # configure is writing to config.log, and then calls config.status.
19404 # config.status does its own redirection, appending to config.log.
19405 # Unfortunately, on DOS this fails, as config.log is still kept open
19406 # by configure, so config.status won't be able to write to it; its
19407 # output is simply discarded.  So we exec the FD to /dev/null,
19408 # effectively closing config.log, so it can be properly (re)opened and
19409 # appended to by config.status.  When coming back to configure, we
19410 # need to make the FD available again.
19411 if test "$no_create" != yes; then
19412   ac_cs_success=:
19413   ac_config_status_args=
19414   test "$silent" = yes &&
19415     ac_config_status_args="$ac_config_status_args --quiet"
19416   exec 5>/dev/null
19417   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19418   exec 5>>config.log
19419   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19420   # would make configure fail if this is the last instruction.
19421   $ac_cs_success || as_fn_exit 1
19422 fi
19423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19426 fi
19427