bd784a30a8fbe7ead50e795485c7087f18022d13
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.8.1.
4 #
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='1.8.1'
594 PACKAGE_STRING='HarfBuzz 1.8.1'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
597
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_CORETEXT_FALSE
640 HAVE_CORETEXT_TRUE
641 CORETEXT_LIBS
642 CORETEXT_CFLAGS
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
645 DIRECTWRITE_LIBS
646 DIRECTWRITE_CXXFLAGS
647 HAVE_UNISCRIBE_FALSE
648 HAVE_UNISCRIBE_TRUE
649 UNISCRIBE_LIBS
650 UNISCRIBE_CFLAGS
651 HAVE_FREETYPE_FALSE
652 HAVE_FREETYPE_TRUE
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 FREETYPE_DEPS
656 HAVE_GRAPHITE2_FALSE
657 HAVE_GRAPHITE2_TRUE
658 GRAPHITE2_LIBS
659 GRAPHITE2_CFLAGS
660 GRAPHITE2_DEPS
661 HAVE_UCDN_FALSE
662 HAVE_UCDN_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
665 HAVE_ICU_FALSE
666 HAVE_ICU_TRUE
667 ICU_CONFIG
668 ICU_LIBS
669 ICU_CFLAGS
670 HAVE_FONTCONFIG_FALSE
671 HAVE_FONTCONFIG_TRUE
672 FONTCONFIG_LIBS
673 FONTCONFIG_CFLAGS
674 HAVE_CAIRO_FT_FALSE
675 HAVE_CAIRO_FT_TRUE
676 CAIRO_FT_LIBS
677 CAIRO_FT_CFLAGS
678 HAVE_CAIRO_FALSE
679 HAVE_CAIRO_TRUE
680 CAIRO_LIBS
681 CAIRO_CFLAGS
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
685 INTROSPECTION_LIBS
686 INTROSPECTION_CFLAGS
687 INTROSPECTION_TYPELIBDIR
688 INTROSPECTION_GIRDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
692 have_gobject
693 HAVE_GOBJECT_FALSE
694 HAVE_GOBJECT_TRUE
695 GLIB_MKENUMS
696 GOBJECT_LIBS
697 GOBJECT_CFLAGS
698 HAVE_GLIB_FALSE
699 HAVE_GLIB_TRUE
700 GLIB_LIBS
701 GLIB_CFLAGS
702 GLIB_DEPS
703 HAVE_FALLBACK_FALSE
704 HAVE_FALLBACK_TRUE
705 HAVE_OT_FALSE
706 HAVE_OT_TRUE
707 HAVE_PTHREAD_FALSE
708 HAVE_PTHREAD_TRUE
709 PTHREAD_CFLAGS
710 PTHREAD_LIBS
711 PTHREAD_CC
712 ax_pthread_config
713 OS_WIN32_FALSE
714 OS_WIN32_TRUE
715 HAVE_GCC_FALSE
716 HAVE_GCC_TRUE
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
725 ENABLE_GTK_DOC_FALSE
726 ENABLE_GTK_DOC_TRUE
727 HAVE_GTK_DOC_FALSE
728 HAVE_GTK_DOC_TRUE
729 GTKDOC_DEPS_LIBS
730 GTKDOC_DEPS_CFLAGS
731 HTML_DIR
732 GTKDOC_MKPDF
733 GTKDOC_REBASE
734 GTKDOC_CHECK_PATH
735 GTKDOC_CHECK
736 WITH_LIBSTDCXX_FALSE
737 WITH_LIBSTDCXX_TRUE
738 HB_LIBTOOL_VERSION_INFO
739 HB_VERSION
740 HB_VERSION_MICRO
741 HB_VERSION_MINOR
742 HB_VERSION_MAJOR
743 GIT
744 RAGEL
745 PKG_CONFIG
746 CXXCPP
747 am__fastdepCXX_FALSE
748 am__fastdepCXX_TRUE
749 CXXDEPMODE
750 ac_ct_CXX
751 CXXFLAGS
752 CXX
753 CPP
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 DLLTOOL
763 OBJDUMP
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 EGREP
771 GREP
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__quote
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 ac_ct_AR
799 AR
800 CODE_COVERAGE_RULES
801 CODE_COVERAGE_LDFLAGS
802 CODE_COVERAGE_LIBS
803 CODE_COVERAGE_CXXFLAGS
804 CODE_COVERAGE_CFLAGS
805 CODE_COVERAGE_CPPFLAGS
806 GENHTML
807 LCOV
808 GCOV
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
812 SED
813 AM_BACKSLASH
814 AM_DEFAULT_VERBOSITY
815 AM_DEFAULT_V
816 AM_V
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 runstatedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files=''
880 ac_user_opts='
881 enable_option_checking
882 enable_silent_rules
883 with_gcov
884 enable_code_coverage
885 enable_dependency_tracking
886 enable_static
887 enable_shared
888 with_pic
889 enable_fast_install
890 with_aix_soname
891 with_gnu_ld
892 with_sysroot
893 enable_libtool_lock
894 enable_largefile
895 with_libstdc__
896 with_html_dir
897 enable_gtk_doc
898 enable_gtk_doc_html
899 enable_gtk_doc_pdf
900 with_glib
901 with_gobject
902 enable_introspection
903 with_cairo
904 with_fontconfig
905 with_icu
906 with_ucdn
907 with_graphite2
908 with_freetype
909 with_uniscribe
910 with_directwrite
911 with_coretext
912 '
913       ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 LT_SYS_LIBRARY_PATH
922 CPP
923 CXX
924 CXXFLAGS
925 CCC
926 CXXCPP
927 PKG_CONFIG
928 GTKDOC_DEPS_CFLAGS
929 GTKDOC_DEPS_LIBS
930 GLIB_CFLAGS
931 GLIB_LIBS
932 GOBJECT_CFLAGS
933 GOBJECT_LIBS
934 CAIRO_CFLAGS
935 CAIRO_LIBS
936 CAIRO_FT_CFLAGS
937 CAIRO_FT_LIBS
938 FONTCONFIG_CFLAGS
939 FONTCONFIG_LIBS
940 ICU_CFLAGS
941 ICU_LIBS
942 GRAPHITE2_CFLAGS
943 GRAPHITE2_LIBS
944 FREETYPE_CFLAGS
945 FREETYPE_LIBS'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *=)   ac_optarg= ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082       as_fn_error $? "invalid feature name: $ac_useropt"
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096   | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100   | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102
1103   -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106
1107   -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113
1114   -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116   -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118
1119   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122   | --ht=*)
1123     htmldir=$ac_optarg ;;
1124
1125   -includedir | --includedir | --includedi | --included | --include \
1126   | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129   | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131
1132   -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136
1137   -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141
1142   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143   | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146   | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148
1149   -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153
1154   -localstatedir | --localstatedir | --localstatedi | --localstated \
1155   | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160
1161   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165
1166   -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169
1170   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171   | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173
1174   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177
1178   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180   | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186
1187   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191
1192   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193   | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198
1199   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200   | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205
1206   -program-transform-name | --program-transform-name \
1207   | --program-transform-nam | --program-transform-na \
1208   | --program-transform-n | --program-transform- \
1209   | --program-transform | --program-transfor \
1210   | --program-transfo | --program-transf \
1211   | --program-trans | --program-tran \
1212   | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214   -program-transform-name=* | --program-transform-name=* \
1215   | --program-transform-nam=* | --program-transform-na=* \
1216   | --program-transform-n=* | --program-transform-=* \
1217   | --program-transform=* | --program-transfor=* \
1218   | --program-transfo=* | --program-transf=* \
1219   | --program-trans=* | --program-tran=* \
1220   | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222
1223   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227
1228   -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232
1233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234   | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236
1237   -runstatedir | --runstatedir | --runstatedi | --runstated \
1238   | --runstate | --runstat | --runsta | --runst | --runs \
1239   | --run | --ru | --r)
1240     ac_prev=runstatedir ;;
1241   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243   | --run=* | --ru=* | --r=*)
1244     runstatedir=$ac_optarg ;;
1245
1246   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247     ac_prev=sbindir ;;
1248   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249   | --sbi=* | --sb=*)
1250     sbindir=$ac_optarg ;;
1251
1252   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254   | --sharedst | --shareds | --shared | --share | --shar \
1255   | --sha | --sh)
1256     ac_prev=sharedstatedir ;;
1257   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260   | --sha=* | --sh=*)
1261     sharedstatedir=$ac_optarg ;;
1262
1263   -site | --site | --sit)
1264     ac_prev=site ;;
1265   -site=* | --site=* | --sit=*)
1266     site=$ac_optarg ;;
1267
1268   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269     ac_prev=srcdir ;;
1270   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271     srcdir=$ac_optarg ;;
1272
1273   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274   | --syscon | --sysco | --sysc | --sys | --sy)
1275     ac_prev=sysconfdir ;;
1276   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278     sysconfdir=$ac_optarg ;;
1279
1280   -target | --target | --targe | --targ | --tar | --ta | --t)
1281     ac_prev=target_alias ;;
1282   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283     target_alias=$ac_optarg ;;
1284
1285   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286     verbose=yes ;;
1287
1288   -version | --version | --versio | --versi | --vers | -V)
1289     ac_init_version=: ;;
1290
1291   -with-* | --with-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error $? "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=\$ac_optarg ;;
1306
1307   -without-* | --without-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid package name: $ac_useropt"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval with_$ac_useropt=no ;;
1322
1323   --x)
1324     # Obsolete; use --with-x.
1325     with_x=yes ;;
1326
1327   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328   | --x-incl | --x-inc | --x-in | --x-i)
1329     ac_prev=x_includes ;;
1330   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332     x_includes=$ac_optarg ;;
1333
1334   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336     ac_prev=x_libraries ;;
1337   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339     x_libraries=$ac_optarg ;;
1340
1341   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1343     ;;
1344
1345   *=*)
1346     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347     # Reject names that are not valid shell variable names.
1348     case $ac_envvar in #(
1349       '' | [0-9]* | *[!_$as_cr_alnum]* )
1350       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351     esac
1352     eval $ac_envvar=\$ac_optarg
1353     export $ac_envvar ;;
1354
1355   *)
1356     # FIXME: should be removed in autoconf 3.0.
1357     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361     ;;
1362
1363   esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368   as_fn_error $? "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372   case $enable_option_checking in
1373     no) ;;
1374     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376   esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381                 datadir sysconfdir sharedstatedir localstatedir includedir \
1382                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383                 libdir localedir mandir runstatedir
1384 do
1385   eval ac_val=\$$ac_var
1386   # Remove trailing slashes.
1387   case $ac_val in
1388     */ )
1389       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390       eval $ac_var=\$ac_val;;
1391   esac
1392   # Be sure to have absolute directory names.
1393   case $ac_val in
1394     [\\/$]* | ?:[\\/]* )  continue;;
1395     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396   esac
1397   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409   if test "x$build_alias" = x; then
1410     cross_compiling=maybe
1411   elif test "x$build_alias" != "x$host_alias"; then
1412     cross_compiling=yes
1413   fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425   as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427   as_fn_error $? "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432   ac_srcdir_defaulted=yes
1433   # Try the directory containing this script, then the parent directory.
1434   ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436          X"$as_myself" : 'X\(//\)[^/]' \| \
1437          X"$as_myself" : 'X\(//\)$' \| \
1438          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)[^/].*/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)$/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\).*/{
1453             s//\1/
1454             q
1455           }
1456           s/.*/./; q'`
1457   srcdir=$ac_confdir
1458   if test ! -r "$srcdir/$ac_unique_file"; then
1459     srcdir=..
1460   fi
1461 else
1462   ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471         pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474   srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_env_${ac_var}_value=\$${ac_var}
1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493   # Omit some internal or obsolete options to make the list less imposing.
1494   # This message is too long to be a string in the A/UX 3.1 sh.
1495   cat <<_ACEOF
1496 \`configure' configures HarfBuzz 1.8.1 to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506   -h, --help              display this help and exit
1507       --help=short        display options specific to this package
1508       --help=recursive    display the short help of all the included packages
1509   -V, --version           display version information and exit
1510   -q, --quiet, --silent   do not print \`checking ...' messages
1511       --cache-file=FILE   cache test results in FILE [disabled]
1512   -C, --config-cache      alias for \`--cache-file=config.cache'
1513   -n, --no-create         do not create output files
1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517   --prefix=PREFIX         install architecture-independent files in PREFIX
1518                           [$ac_default_prefix]
1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                           [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530   --bindir=DIR            user executables [EPREFIX/bin]
1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1537   --libdir=DIR            object code libraries [EPREFIX/lib]
1538   --includedir=DIR        C header files [PREFIX/include]
1539   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542   --infodir=DIR           info documentation [DATAROOTDIR/info]
1543   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544   --mandir=DIR            man documentation [DATAROOTDIR/man]
1545   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1546   --htmldir=DIR           html documentation [DOCDIR]
1547   --dvidir=DIR            dvi documentation [DOCDIR]
1548   --pdfdir=DIR            pdf documentation [DOCDIR]
1549   --psdir=DIR             ps documentation [DOCDIR]
1550 _ACEOF
1551
1552   cat <<\_ACEOF
1553
1554 Program names:
1555   --program-prefix=PREFIX            prepend PREFIX to installed program names
1556   --program-suffix=SUFFIX            append SUFFIX to installed program names
1557   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559 System types:
1560   --build=BUILD     configure for building on BUILD [guessed]
1561   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566   case $ac_init_help in
1567      short | recursive ) echo "Configuration of HarfBuzz 1.8.1:";;
1568    esac
1569   cat <<\_ACEOF
1570
1571 Optional Features:
1572   --disable-option-checking  ignore unrecognized --enable/--with options
1573   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575   --enable-silent-rules   less verbose build output (undo: "make V=1")
1576   --disable-silent-rules  verbose build output (undo: "make V=0")
1577   --enable-code-coverage  Whether to enable code coverage support
1578   --enable-dependency-tracking
1579                           do not reject slow dependency extractors
1580   --disable-dependency-tracking
1581                           speeds up one-time build
1582   --enable-static[=PKGS]  build static libraries [default=no]
1583   --enable-shared[=PKGS]  build shared libraries [default=yes]
1584   --enable-fast-install[=PKGS]
1585                           optimize for fast installation [default=yes]
1586   --disable-libtool-lock  avoid locking (might break parallel builds)
1587   --disable-largefile     omit support for large files
1588   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1589   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1590   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1591   --enable-introspection=[no/auto/yes]
1592                           Enable introspection for this build
1593
1594 Optional Packages:
1595   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1598   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1599                           both]
1600   --with-aix-soname=aix|svr4|both
1601                           shared library versioning (aka "SONAME") variant to
1602                           provide on AIX, [default=aix].
1603   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1604   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1605                           compiler's sysroot if not specified).
1606   --with-libstdc++=[yes/no]
1607                           Allow linking with libstdc++ [default=no]
1608   --with-html-dir=PATH    path to installed docs
1609   --with-glib=[yes/no/auto]
1610                           Use glib [default=auto]
1611   --with-gobject=[yes/no/auto]
1612                           Use gobject [default=no]
1613   --with-cairo=[yes/no/auto]
1614                           Use cairo [default=auto]
1615   --with-fontconfig=[yes/no/auto]
1616                           Use fontconfig [default=auto]
1617   --with-icu=[yes/no/builtin/auto]
1618                           Use ICU [default=auto]
1619   --with-ucdn=[yes/no]    Use builtin UCDN library [default=yes]
1620   --with-graphite2=[yes/no/auto]
1621                           Use the graphite2 library [default=no]
1622   --with-freetype=[yes/no/auto]
1623                           Use the FreeType library [default=auto]
1624   --with-uniscribe=[yes/no/auto]
1625                           Use the Uniscribe library [default=no]
1626   --with-directwrite=[yes/no/auto]
1627                           Use the DirectWrite library (experimental)
1628                           [default=no]
1629   --with-coretext=[yes/no/auto]
1630                           Use CoreText [default=no]
1631
1632 Some influential environment variables:
1633   CC          C compiler command
1634   CFLAGS      C compiler flags
1635   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636               nonstandard directory <lib dir>
1637   LIBS        libraries to pass to the linker, e.g. -l<library>
1638   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639               you have headers in a nonstandard directory <include dir>
1640   LT_SYS_LIBRARY_PATH
1641               User-defined run-time library search path.
1642   CPP         C preprocessor
1643   CXX         C++ compiler command
1644   CXXFLAGS    C++ compiler flags
1645   CXXCPP      C++ preprocessor
1646   PKG_CONFIG  path to pkg-config utility
1647   GTKDOC_DEPS_CFLAGS
1648               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1649   GTKDOC_DEPS_LIBS
1650               linker flags for GTKDOC_DEPS, overriding pkg-config
1651   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1652   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1653   GOBJECT_CFLAGS
1654               C compiler flags for GOBJECT, overriding pkg-config
1655   GOBJECT_LIBS
1656               linker flags for GOBJECT, overriding pkg-config
1657   CAIRO_CFLAGS
1658               C compiler flags for CAIRO, overriding pkg-config
1659   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1660   CAIRO_FT_CFLAGS
1661               C compiler flags for CAIRO_FT, overriding pkg-config
1662   CAIRO_FT_LIBS
1663               linker flags for CAIRO_FT, overriding pkg-config
1664   FONTCONFIG_CFLAGS
1665               C compiler flags for FONTCONFIG, overriding pkg-config
1666   FONTCONFIG_LIBS
1667               linker flags for FONTCONFIG, overriding pkg-config
1668   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1669   ICU_LIBS    linker flags for ICU, overriding pkg-config
1670   GRAPHITE2_CFLAGS
1671               C compiler flags for GRAPHITE2, overriding pkg-config
1672   GRAPHITE2_LIBS
1673               linker flags for GRAPHITE2, overriding pkg-config
1674   FREETYPE_CFLAGS
1675               C compiler flags for FREETYPE, overriding pkg-config
1676   FREETYPE_LIBS
1677               linker flags for FREETYPE, overriding pkg-config
1678
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1681
1682 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1683 HarfBuzz home page: <http://harfbuzz.org/>.
1684 _ACEOF
1685 ac_status=$?
1686 fi
1687
1688 if test "$ac_init_help" = "recursive"; then
1689   # If there are subdirs, report their specific --help.
1690   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691     test -d "$ac_dir" ||
1692       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693       continue
1694     ac_builddir=.
1695
1696 case "$ac_dir" in
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *)
1699   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700   # A ".." for each directory in $ac_dir_suffix.
1701   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702   case $ac_top_builddir_sub in
1703   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705   esac ;;
1706 esac
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1711
1712 case $srcdir in
1713   .)  # We are building in place.
1714     ac_srcdir=.
1715     ac_top_srcdir=$ac_top_builddir_sub
1716     ac_abs_top_srcdir=$ac_pwd ;;
1717   [\\/]* | ?:[\\/]* )  # Absolute name.
1718     ac_srcdir=$srcdir$ac_dir_suffix;
1719     ac_top_srcdir=$srcdir
1720     ac_abs_top_srcdir=$srcdir ;;
1721   *) # Relative name.
1722     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723     ac_top_srcdir=$ac_top_build_prefix$srcdir
1724     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 esac
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728     cd "$ac_dir" || { ac_status=$?; continue; }
1729     # Check for guested configure.
1730     if test -f "$ac_srcdir/configure.gnu"; then
1731       echo &&
1732       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733     elif test -f "$ac_srcdir/configure"; then
1734       echo &&
1735       $SHELL "$ac_srcdir/configure" --help=recursive
1736     else
1737       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738     fi || ac_status=$?
1739     cd "$ac_pwd" || { ac_status=$?; break; }
1740   done
1741 fi
1742
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745   cat <<\_ACEOF
1746 HarfBuzz configure 1.8.1
1747 generated by GNU Autoconf 2.69
1748
1749 Copyright (C) 2012 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1759
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   rm -f conftest.$ac_objext
1767   if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_compile") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && {
1783          test -z "$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        } && test -s conftest.$ac_objext; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext conftest$ac_exeext
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest$ac_exeext && {
1824          test "$cross_compiling" = yes ||
1825          test -x conftest$ac_exeext
1826        }; then :
1827   ac_retval=0
1828 else
1829   $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832         ac_retval=1
1833 fi
1834   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836   # interfere with the next link command; also delete a directory that is
1837   # left behind by Apple's compiler.  We do this before executing the actions.
1838   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889   ac_status=$?
1890   if test -s conftest.err; then
1891     grep -v '^ *+' conftest.err >conftest.er1
1892     cat conftest.er1 >&5
1893     mv -f conftest.er1 conftest.err
1894   fi
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } > conftest.i && {
1897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898          test ! -s conftest.err
1899        }; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905     ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926   (eval "$ac_link") 2>&5
1927   ac_status=$?
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930   { { case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_try") 2>&5
1937   ac_status=$?
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; }; }; then :
1940   ac_retval=0
1941 else
1942   $as_echo "$as_me: program exited with status $ac_status" >&5
1943        $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946        ac_retval=$ac_status
1947 fi
1948   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950   as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_run
1953
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969 #define $2 innocuous_$2
1970
1971 /* System header to define __stub macros and hopefully few prototypes,
1972     which can conflict with char $2 (); below.
1973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974     <limits.h> exists even on freestanding compilers.  */
1975
1976 #ifdef __STDC__
1977 # include <limits.h>
1978 #else
1979 # include <assert.h>
1980 #endif
1981
1982 #undef $2
1983
1984 /* Override any GCC internal prototype to avoid an error.
1985    Use char because int might match the return type of a GCC
1986    builtin and then its argument prototype would still apply.  */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992     to always fail with ENOSYS.  Some functions are actually named
1993     something starting with __ and the normal name is an alias.  */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1997
1998 int
1999 main ()
2000 {
2001 return $2 ();
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"; then :
2007   eval "$3=yes"
2008 else
2009   eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext \
2012     conftest$ac_exeext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$3
2015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_func
2020
2021 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2024 # the include files in INCLUDES and setting the cache variable VAR
2025 # accordingly.
2026 ac_fn_c_check_header_mongrel ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   if eval \${$3+:} false; then :
2030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033   $as_echo_n "(cached) " >&6
2034 fi
2035 eval ac_res=\$$3
2036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 else
2039   # Is the header compilable?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2041 $as_echo_n "checking $2 usability... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 #include <$2>
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   ac_header_compiler=yes
2049 else
2050   ac_header_compiler=no
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2054 $as_echo "$ac_header_compiler" >&6; }
2055
2056 # Is the header present?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2058 $as_echo_n "checking $2 presence... " >&6; }
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 #include <$2>
2062 _ACEOF
2063 if ac_fn_c_try_cpp "$LINENO"; then :
2064   ac_header_preproc=yes
2065 else
2066   ac_header_preproc=no
2067 fi
2068 rm -f conftest.err conftest.i conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2070 $as_echo "$ac_header_preproc" >&6; }
2071
2072 # So?  What about this header?
2073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2074   yes:no: )
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2076 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079     ;;
2080   no:yes:* )
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2082 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2083     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2084 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2086 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2088 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ( $as_echo "## -------------------------------------------------------------- ##
2092 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2093 ## -------------------------------------------------------------- ##"
2094      ) | sed "s/^/$as_me: WARNING:     /" >&2
2095     ;;
2096 esac
2097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100   $as_echo_n "(cached) " >&6
2101 else
2102   eval "$3=\$ac_header_compiler"
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 fi
2108   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_header_mongrel
2111
2112 # ac_fn_cxx_try_compile LINENO
2113 # ----------------------------
2114 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_compile ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   rm -f conftest.$ac_objext
2119   if { { ac_try="$ac_compile"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_compile") 2>conftest.err
2127   ac_status=$?
2128   if test -s conftest.err; then
2129     grep -v '^ *+' conftest.err >conftest.er1
2130     cat conftest.er1 >&5
2131     mv -f conftest.er1 conftest.err
2132   fi
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; } && {
2135          test -z "$ac_cxx_werror_flag" ||
2136          test ! -s conftest.err
2137        } && test -s conftest.$ac_objext; then :
2138   ac_retval=0
2139 else
2140   $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143         ac_retval=1
2144 fi
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_cxx_try_compile
2149
2150 # ac_fn_cxx_try_cpp LINENO
2151 # ------------------------
2152 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_cxx_try_cpp ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   if { { ac_try="$ac_cpp conftest.$ac_ext"
2157 case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2164   ac_status=$?
2165   if test -s conftest.err; then
2166     grep -v '^ *+' conftest.err >conftest.er1
2167     cat conftest.er1 >&5
2168     mv -f conftest.er1 conftest.err
2169   fi
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } > conftest.i && {
2172          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2173          test ! -s conftest.err
2174        }; then :
2175   ac_retval=0
2176 else
2177   $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180     ac_retval=1
2181 fi
2182   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183   as_fn_set_status $ac_retval
2184
2185 } # ac_fn_cxx_try_cpp
2186
2187 # ac_fn_cxx_try_link LINENO
2188 # -------------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_cxx_try_link ()
2191 {
2192   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193   rm -f conftest.$ac_objext conftest$ac_exeext
2194   if { { ac_try="$ac_link"
2195 case "(($ac_try" in
2196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197   *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201   (eval "$ac_link") 2>conftest.err
2202   ac_status=$?
2203   if test -s conftest.err; then
2204     grep -v '^ *+' conftest.err >conftest.er1
2205     cat conftest.er1 >&5
2206     mv -f conftest.er1 conftest.err
2207   fi
2208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209   test $ac_status = 0; } && {
2210          test -z "$ac_cxx_werror_flag" ||
2211          test ! -s conftest.err
2212        } && test -s conftest$ac_exeext && {
2213          test "$cross_compiling" = yes ||
2214          test -x conftest$ac_exeext
2215        }; then :
2216   ac_retval=0
2217 else
2218   $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221         ac_retval=1
2222 fi
2223   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225   # interfere with the next link command; also delete a directory that is
2226   # left behind by Apple's compiler.  We do this before executing the actions.
2227   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229   as_fn_set_status $ac_retval
2230
2231 } # ac_fn_cxx_try_link
2232
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 # accordingly.
2237 ac_fn_c_check_decl ()
2238 {
2239   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240   as_decl_name=`echo $2|sed 's/ *(.*//'`
2241   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval \${$3+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 int
2251 main ()
2252 {
2253 #ifndef $as_decl_name
2254 #ifdef __cplusplus
2255   (void) $as_decl_use;
2256 #else
2257   (void) $as_decl_name;
2258 #endif
2259 #endif
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   eval "$3=yes"
2267 else
2268   eval "$3=no"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_decl
2278
2279 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2280 # --------------------------------------------
2281 # Tries to find the compile-time value of EXPR in a program that includes
2282 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2283 # computed
2284 ac_fn_c_compute_int ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   if test "$cross_compiling" = yes; then
2288     # Depending upon the size, compute the lo and hi bounds.
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 int
2293 main ()
2294 {
2295 static int test_array [1 - 2 * !(($2) >= 0)];
2296 test_array [0] = 0;
2297 return test_array [0];
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   ac_lo=0 ac_mid=0
2305   while :; do
2306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h.  */
2308 $4
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2313 test_array [0] = 0;
2314 return test_array [0];
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321   ac_hi=$ac_mid; break
2322 else
2323   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324                         if test $ac_lo -le $ac_mid; then
2325                           ac_lo= ac_hi=
2326                           break
2327                         fi
2328                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331   done
2332 else
2333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h.  */
2335 $4
2336 int
2337 main ()
2338 {
2339 static int test_array [1 - 2 * !(($2) < 0)];
2340 test_array [0] = 0;
2341 return test_array [0];
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348   ac_hi=-1 ac_mid=-1
2349   while :; do
2350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h.  */
2352 $4
2353 int
2354 main ()
2355 {
2356 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2357 test_array [0] = 0;
2358 return test_array [0];
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365   ac_lo=$ac_mid; break
2366 else
2367   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368                         if test $ac_mid -le $ac_hi; then
2369                           ac_lo= ac_hi=
2370                           break
2371                         fi
2372                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2373 fi
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375   done
2376 else
2377   ac_lo= ac_hi=
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 # Binary search between lo and hi bounds.
2383 while test "x$ac_lo" != "x$ac_hi"; do
2384   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h.  */
2387 $4
2388 int
2389 main ()
2390 {
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 test_array [0] = 0;
2393 return test_array [0];
2394
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400   ac_hi=$ac_mid
2401 else
2402   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406 case $ac_lo in #((
2407 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2408 '') ac_retval=1 ;;
2409 esac
2410   else
2411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $4
2414 static long int longval () { return $2; }
2415 static unsigned long int ulongval () { return $2; }
2416 #include <stdio.h>
2417 #include <stdlib.h>
2418 int
2419 main ()
2420 {
2421
2422   FILE *f = fopen ("conftest.val", "w");
2423   if (! f)
2424     return 1;
2425   if (($2) < 0)
2426     {
2427       long int i = longval ();
2428       if (i != ($2))
2429         return 1;
2430       fprintf (f, "%ld", i);
2431     }
2432   else
2433     {
2434       unsigned long int i = ulongval ();
2435       if (i != ($2))
2436         return 1;
2437       fprintf (f, "%lu", i);
2438     }
2439   /* Do not output a trailing newline, as this causes \r\n confusion
2440      on some platforms.  */
2441   return ferror (f) || fclose (f) != 0;
2442
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_run "$LINENO"; then :
2448   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2449 else
2450   ac_retval=1
2451 fi
2452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453   conftest.$ac_objext conftest.beam conftest.$ac_ext
2454 rm -f conftest.val
2455
2456   fi
2457   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458   as_fn_set_status $ac_retval
2459
2460 } # ac_fn_c_compute_int
2461
2462 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # ---------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2466 # accordingly.
2467 ac_fn_cxx_check_header_mongrel ()
2468 {
2469   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470   if eval \${$3+:} false; then :
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if eval \${$3+:} false; then :
2474   $as_echo_n "(cached) " >&6
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 else
2480   # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_cxx_try_compile "$LINENO"; then :
2489   ac_header_compiler=yes
2490 else
2491   ac_header_compiler=no
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2496
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_cxx_try_cpp "$LINENO"; then :
2505   ac_header_preproc=yes
2506 else
2507   ac_header_preproc=no
2508 fi
2509 rm -f conftest.err conftest.i conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2512
2513 # So?  What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2515   yes:no: )
2516     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2520     ;;
2521   no:yes:* )
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532 ( $as_echo "## -------------------------------------------------------------- ##
2533 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2534 ## -------------------------------------------------------------- ##"
2535      ) | sed "s/^/$as_me: WARNING:     /" >&2
2536     ;;
2537 esac
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   eval "$3=\$ac_header_compiler"
2544 fi
2545 eval ac_res=\$$3
2546                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548 fi
2549   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550
2551 } # ac_fn_cxx_check_header_mongrel
2552
2553 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2554 # -------------------------------------------
2555 # Tests whether TYPE exists after having included INCLUDES, setting cache
2556 # variable VAR accordingly.
2557 ac_fn_c_check_type ()
2558 {
2559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2561 $as_echo_n "checking for $2... " >&6; }
2562 if eval \${$3+:} false; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   eval "$3=no"
2566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h.  */
2568 $4
2569 int
2570 main ()
2571 {
2572 if (sizeof ($2))
2573          return 0;
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 if (sizeof (($2)))
2586             return 0;
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592
2593 else
2594   eval "$3=yes"
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 eval ac_res=\$$3
2601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2602 $as_echo "$ac_res" >&6; }
2603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604
2605 } # ac_fn_c_check_type
2606 cat >config.log <<_ACEOF
2607 This file contains any messages produced by compilers while
2608 running configure, to aid debugging if configure makes a mistake.
2609
2610 It was created by HarfBuzz $as_me 1.8.1, which was
2611 generated by GNU Autoconf 2.69.  Invocation command line was
2612
2613   $ $0 $@
2614
2615 _ACEOF
2616 exec 5>>config.log
2617 {
2618 cat <<_ASUNAME
2619 ## --------- ##
2620 ## Platform. ##
2621 ## --------- ##
2622
2623 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2624 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2625 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2626 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2627 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2628
2629 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2630 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2631
2632 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2633 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2634 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2635 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2636 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2637 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2638 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2639
2640 _ASUNAME
2641
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     $as_echo "PATH: $as_dir"
2648   done
2649 IFS=$as_save_IFS
2650
2651 } >&5
2652
2653 cat >&5 <<_ACEOF
2654
2655
2656 ## ----------- ##
2657 ## Core tests. ##
2658 ## ----------- ##
2659
2660 _ACEOF
2661
2662
2663 # Keep a trace of the command line.
2664 # Strip out --no-create and --no-recursion so they do not pile up.
2665 # Strip out --silent because we don't want to record it for future runs.
2666 # Also quote any args containing shell meta-characters.
2667 # Make two passes to allow for proper duplicate-argument suppression.
2668 ac_configure_args=
2669 ac_configure_args0=
2670 ac_configure_args1=
2671 ac_must_keep_next=false
2672 for ac_pass in 1 2
2673 do
2674   for ac_arg
2675   do
2676     case $ac_arg in
2677     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2678     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2679     | -silent | --silent | --silen | --sile | --sil)
2680       continue ;;
2681     *\'*)
2682       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2683     esac
2684     case $ac_pass in
2685     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2686     2)
2687       as_fn_append ac_configure_args1 " '$ac_arg'"
2688       if test $ac_must_keep_next = true; then
2689         ac_must_keep_next=false # Got value, back to normal.
2690       else
2691         case $ac_arg in
2692           *=* | --config-cache | -C | -disable-* | --disable-* \
2693           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2694           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2695           | -with-* | --with-* | -without-* | --without-* | --x)
2696             case "$ac_configure_args0 " in
2697               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2698             esac
2699             ;;
2700           -* ) ac_must_keep_next=true ;;
2701         esac
2702       fi
2703       as_fn_append ac_configure_args " '$ac_arg'"
2704       ;;
2705     esac
2706   done
2707 done
2708 { ac_configure_args0=; unset ac_configure_args0;}
2709 { ac_configure_args1=; unset ac_configure_args1;}
2710
2711 # When interrupted or exit'd, cleanup temporary files, and complete
2712 # config.log.  We remove comments because anyway the quotes in there
2713 # would cause problems or look ugly.
2714 # WARNING: Use '\'' to represent an apostrophe within the trap.
2715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2716 trap 'exit_status=$?
2717   # Save into config.log some information that might help in debugging.
2718   {
2719     echo
2720
2721     $as_echo "## ---------------- ##
2722 ## Cache variables. ##
2723 ## ---------------- ##"
2724     echo
2725     # The following way of writing the cache mishandles newlines in values,
2726 (
2727   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2728     eval ac_val=\$$ac_var
2729     case $ac_val in #(
2730     *${as_nl}*)
2731       case $ac_var in #(
2732       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2734       esac
2735       case $ac_var in #(
2736       _ | IFS | as_nl) ;; #(
2737       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2738       *) { eval $ac_var=; unset $ac_var;} ;;
2739       esac ;;
2740     esac
2741   done
2742   (set) 2>&1 |
2743     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2744     *${as_nl}ac_space=\ *)
2745       sed -n \
2746         "s/'\''/'\''\\\\'\'''\''/g;
2747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2748       ;; #(
2749     *)
2750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2751       ;;
2752     esac |
2753     sort
2754 )
2755     echo
2756
2757     $as_echo "## ----------------- ##
2758 ## Output variables. ##
2759 ## ----------------- ##"
2760     echo
2761     for ac_var in $ac_subst_vars
2762     do
2763       eval ac_val=\$$ac_var
2764       case $ac_val in
2765       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2766       esac
2767       $as_echo "$ac_var='\''$ac_val'\''"
2768     done | sort
2769     echo
2770
2771     if test -n "$ac_subst_files"; then
2772       $as_echo "## ------------------- ##
2773 ## File substitutions. ##
2774 ## ------------------- ##"
2775       echo
2776       for ac_var in $ac_subst_files
2777       do
2778         eval ac_val=\$$ac_var
2779         case $ac_val in
2780         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781         esac
2782         $as_echo "$ac_var='\''$ac_val'\''"
2783       done | sort
2784       echo
2785     fi
2786
2787     if test -s confdefs.h; then
2788       $as_echo "## ----------- ##
2789 ## confdefs.h. ##
2790 ## ----------- ##"
2791       echo
2792       cat confdefs.h
2793       echo
2794     fi
2795     test "$ac_signal" != 0 &&
2796       $as_echo "$as_me: caught signal $ac_signal"
2797     $as_echo "$as_me: exit $exit_status"
2798   } >&5
2799   rm -f core *.core core.conftest.* &&
2800     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2801     exit $exit_status
2802 ' 0
2803 for ac_signal in 1 2 13 15; do
2804   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2805 done
2806 ac_signal=0
2807
2808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2809 rm -f -r conftest* confdefs.h
2810
2811 $as_echo "/* confdefs.h */" > confdefs.h
2812
2813 # Predefined preprocessor variables.
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_NAME "$PACKAGE_NAME"
2817 _ACEOF
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821 _ACEOF
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2825 _ACEOF
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_STRING "$PACKAGE_STRING"
2829 _ACEOF
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_URL "$PACKAGE_URL"
2837 _ACEOF
2838
2839
2840 # Let the site file select an alternate cache file if it wants to.
2841 # Prefer an explicitly selected file to automatically selected ones.
2842 ac_site_file1=NONE
2843 ac_site_file2=NONE
2844 if test -n "$CONFIG_SITE"; then
2845   # We do not want a PATH search for config.site.
2846   case $CONFIG_SITE in #((
2847     -*)  ac_site_file1=./$CONFIG_SITE;;
2848     */*) ac_site_file1=$CONFIG_SITE;;
2849     *)   ac_site_file1=./$CONFIG_SITE;;
2850   esac
2851 elif test "x$prefix" != xNONE; then
2852   ac_site_file1=$prefix/share/config.site
2853   ac_site_file2=$prefix/etc/config.site
2854 else
2855   ac_site_file1=$ac_default_prefix/share/config.site
2856   ac_site_file2=$ac_default_prefix/etc/config.site
2857 fi
2858 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2859 do
2860   test "x$ac_site_file" = xNONE && continue
2861   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2862     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2863 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2864     sed 's/^/| /' "$ac_site_file" >&5
2865     . "$ac_site_file" \
2866       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error $? "failed to load site script $ac_site_file
2869 See \`config.log' for more details" "$LINENO" 5; }
2870   fi
2871 done
2872
2873 if test -r "$cache_file"; then
2874   # Some versions of bash will fail to source /dev/null (special files
2875   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2876   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2878 $as_echo "$as_me: loading cache $cache_file" >&6;}
2879     case $cache_file in
2880       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2881       *)                      . "./$cache_file";;
2882     esac
2883   fi
2884 else
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2886 $as_echo "$as_me: creating cache $cache_file" >&6;}
2887   >$cache_file
2888 fi
2889
2890 # Check that the precious variables saved in the cache have kept the same
2891 # value.
2892 ac_cache_corrupted=false
2893 for ac_var in $ac_precious_vars; do
2894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2895   eval ac_new_set=\$ac_env_${ac_var}_set
2896   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2897   eval ac_new_val=\$ac_env_${ac_var}_value
2898   case $ac_old_set,$ac_new_set in
2899     set,)
2900       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2902       ac_cache_corrupted=: ;;
2903     ,set)
2904       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2906       ac_cache_corrupted=: ;;
2907     ,);;
2908     *)
2909       if test "x$ac_old_val" != "x$ac_new_val"; then
2910         # differences in whitespace do not lead to failure.
2911         ac_old_val_w=`echo x $ac_old_val`
2912         ac_new_val_w=`echo x $ac_new_val`
2913         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2914           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2916           ac_cache_corrupted=:
2917         else
2918           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2920           eval $ac_var=\$ac_old_val
2921         fi
2922         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2923 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2924         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2925 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2926       fi;;
2927   esac
2928   # Pass precious variables to config.status.
2929   if test "$ac_new_set" = set; then
2930     case $ac_new_val in
2931     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2932     *) ac_arg=$ac_var=$ac_new_val ;;
2933     esac
2934     case " $ac_configure_args " in
2935       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2936       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2937     esac
2938   fi
2939 done
2940 if $ac_cache_corrupted; then
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2945   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2946 fi
2947 ## -------------------- ##
2948 ## Main body of script. ##
2949 ## -------------------- ##
2950
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956
2957
2958
2959
2960
2961 ac_config_headers="$ac_config_headers config.h"
2962
2963
2964 am__api_version='1.15'
2965
2966 ac_aux_dir=
2967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968   if test -f "$ac_dir/install-sh"; then
2969     ac_aux_dir=$ac_dir
2970     ac_install_sh="$ac_aux_dir/install-sh -c"
2971     break
2972   elif test -f "$ac_dir/install.sh"; then
2973     ac_aux_dir=$ac_dir
2974     ac_install_sh="$ac_aux_dir/install.sh -c"
2975     break
2976   elif test -f "$ac_dir/shtool"; then
2977     ac_aux_dir=$ac_dir
2978     ac_install_sh="$ac_aux_dir/shtool install -c"
2979     break
2980   fi
2981 done
2982 if test -z "$ac_aux_dir"; then
2983   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2984 fi
2985
2986 # These three variables are undocumented and unsupported,
2987 # and are intended to be withdrawn in a future Autoconf release.
2988 # They can cause serious problems if a builder's source tree is in a directory
2989 # whose full name contains unusual characters.
2990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2992 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2993
2994
2995 # Find a good install program.  We prefer a C program (faster),
2996 # so one script is as good as another.  But avoid the broken or
2997 # incompatible versions:
2998 # SysV /etc/install, /usr/sbin/install
2999 # SunOS /usr/etc/install
3000 # IRIX /sbin/install
3001 # AIX /bin/install
3002 # AmigaOS /C/install, which installs bootblocks on floppy discs
3003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3006 # OS/2's system install, which has a completely different semantic
3007 # ./install, which can be erroneously created by make from ./install.sh.
3008 # Reject install programs that cannot install multiple files.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3010 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3011 if test -z "$INSTALL"; then
3012 if ${ac_cv_path_install+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     # Account for people who put trailing slashes in PATH elements.
3021 case $as_dir/ in #((
3022   ./ | .// | /[cC]/* | \
3023   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3024   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3025   /usr/ucb/* ) ;;
3026   *)
3027     # OSF1 and SCO ODT 3.0 have their own names for install.
3028     # Don't use installbsd from OSF since it installs stuff as root
3029     # by default.
3030     for ac_prog in ginstall scoinst install; do
3031       for ac_exec_ext in '' $ac_executable_extensions; do
3032         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3033           if test $ac_prog = install &&
3034             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035             # AIX install.  It has an incompatible calling convention.
3036             :
3037           elif test $ac_prog = install &&
3038             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039             # program-specific install script used by HP pwplus--don't use.
3040             :
3041           else
3042             rm -rf conftest.one conftest.two conftest.dir
3043             echo one > conftest.one
3044             echo two > conftest.two
3045             mkdir conftest.dir
3046             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3047               test -s conftest.one && test -s conftest.two &&
3048               test -s conftest.dir/conftest.one &&
3049               test -s conftest.dir/conftest.two
3050             then
3051               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052               break 3
3053             fi
3054           fi
3055         fi
3056       done
3057     done
3058     ;;
3059 esac
3060
3061   done
3062 IFS=$as_save_IFS
3063
3064 rm -rf conftest.one conftest.two conftest.dir
3065
3066 fi
3067   if test "${ac_cv_path_install+set}" = set; then
3068     INSTALL=$ac_cv_path_install
3069   else
3070     # As a last resort, use the slow shell script.  Don't cache a
3071     # value for INSTALL within a source directory, because that will
3072     # break other packages using the cache if that directory is
3073     # removed, or if the value is a relative name.
3074     INSTALL=$ac_install_sh
3075   fi
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3078 $as_echo "$INSTALL" >&6; }
3079
3080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3081 # It thinks the first close brace ends the variable substitution.
3082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3083
3084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3085
3086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3089 $as_echo_n "checking whether build environment is sane... " >&6; }
3090 # Reject unsafe characters in $srcdir or the absolute working directory
3091 # name.  Accept space and tab only in the latter.
3092 am_lf='
3093 '
3094 case `pwd` in
3095   *[\\\"\#\$\&\'\`$am_lf]*)
3096     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3097 esac
3098 case $srcdir in
3099   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3100     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3101 esac
3102
3103 # Do 'set' in a subshell so we don't clobber the current shell's
3104 # arguments.  Must try -L first in case configure is actually a
3105 # symlink; some systems play weird games with the mod time of symlinks
3106 # (eg FreeBSD returns the mod time of the symlink's containing
3107 # directory).
3108 if (
3109    am_has_slept=no
3110    for am_try in 1 2; do
3111      echo "timestamp, slept: $am_has_slept" > conftest.file
3112      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3113      if test "$*" = "X"; then
3114         # -L didn't work.
3115         set X `ls -t "$srcdir/configure" conftest.file`
3116      fi
3117      if test "$*" != "X $srcdir/configure conftest.file" \
3118         && test "$*" != "X conftest.file $srcdir/configure"; then
3119
3120         # If neither matched, then we have a broken ls.  This can happen
3121         # if, for instance, CONFIG_SHELL is bash and it inherits a
3122         # broken ls alias from the environment.  This has actually
3123         # happened.  Such a system could not be considered "sane".
3124         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3125   alias in your environment" "$LINENO" 5
3126      fi
3127      if test "$2" = conftest.file || test $am_try -eq 2; then
3128        break
3129      fi
3130      # Just in case.
3131      sleep 1
3132      am_has_slept=yes
3133    done
3134    test "$2" = conftest.file
3135    )
3136 then
3137    # Ok.
3138    :
3139 else
3140    as_fn_error $? "newly created file is older than distributed files!
3141 Check your system clock" "$LINENO" 5
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3145 # If we didn't sleep, we still need to ensure time stamps of config.status and
3146 # generated files are strictly newer.
3147 am_sleep_pid=
3148 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3149   ( sleep 1 ) &
3150   am_sleep_pid=$!
3151 fi
3152
3153 rm -f conftest.file
3154
3155 test "$program_prefix" != NONE &&
3156   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3157 # Use a double $ so make ignores it.
3158 test "$program_suffix" != NONE &&
3159   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3160 # Double any \ or $.
3161 # By default was `s,x,x', remove it if useless.
3162 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3163 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3164
3165 # Expand $ac_aux_dir to an absolute path.
3166 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3167
3168 if test x"${MISSING+set}" != xset; then
3169   case $am_aux_dir in
3170   *\ * | *\     *)
3171     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3172   *)
3173     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3174   esac
3175 fi
3176 # Use eval to expand $SHELL
3177 if eval "$MISSING --is-lightweight"; then
3178   am_missing_run="$MISSING "
3179 else
3180   am_missing_run=
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3182 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3183 fi
3184
3185 if test x"${install_sh+set}" != xset; then
3186   case $am_aux_dir in
3187   *\ * | *\     *)
3188     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3189   *)
3190     install_sh="\${SHELL} $am_aux_dir/install-sh"
3191   esac
3192 fi
3193
3194 # Installed binaries are usually stripped using 'strip' when the user
3195 # run "make install-strip".  However 'strip' might not be the right
3196 # tool to use in cross-compilation environments, therefore Automake
3197 # will honor the 'STRIP' environment variable to overrule this program.
3198 if test "$cross_compiling" != no; then
3199   if test -n "$ac_tool_prefix"; then
3200   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}strip; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_STRIP+:} false; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if test -n "$STRIP"; then
3208   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 STRIP=$ac_cv_prog_STRIP
3228 if test -n "$STRIP"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3230 $as_echo "$STRIP" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 fi
3238 if test -z "$ac_cv_prog_STRIP"; then
3239   ac_ct_STRIP=$STRIP
3240   # Extract the first word of "strip", so it can be a program name with args.
3241 set dummy strip; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$ac_ct_STRIP"; then
3248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_ac_ct_STRIP="strip"
3258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262   done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3268 if test -n "$ac_ct_STRIP"; then
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3270 $as_echo "$ac_ct_STRIP" >&6; }
3271 else
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276   if test "x$ac_ct_STRIP" = x; then
3277     STRIP=":"
3278   else
3279     case $cross_compiling:$ac_tool_warned in
3280 yes:)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285     STRIP=$ac_ct_STRIP
3286   fi
3287 else
3288   STRIP="$ac_cv_prog_STRIP"
3289 fi
3290
3291 fi
3292 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3295 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3296 if test -z "$MKDIR_P"; then
3297   if ${ac_cv_path_mkdir+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_prog in mkdir gmkdir; do
3306          for ac_exec_ext in '' $ac_executable_extensions; do
3307            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3308            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3309              'mkdir (GNU coreutils) '* | \
3310              'mkdir (coreutils) '* | \
3311              'mkdir (fileutils) '4.1*)
3312                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3313                break 3;;
3314            esac
3315          done
3316        done
3317   done
3318 IFS=$as_save_IFS
3319
3320 fi
3321
3322   test -d ./--version && rmdir ./--version
3323   if test "${ac_cv_path_mkdir+set}" = set; then
3324     MKDIR_P="$ac_cv_path_mkdir -p"
3325   else
3326     # As a last resort, use the slow shell script.  Don't cache a
3327     # value for MKDIR_P within a source directory, because that will
3328     # break other packages using the cache if that directory is
3329     # removed, or if the value is a relative name.
3330     MKDIR_P="$ac_install_sh -d"
3331   fi
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3334 $as_echo "$MKDIR_P" >&6; }
3335
3336 for ac_prog in gawk mawk nawk awk
3337 do
3338   # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_AWK+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$AWK"; then
3346   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_AWK="$ac_prog"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 AWK=$ac_cv_prog_AWK
3366 if test -n "$AWK"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3368 $as_echo "$AWK" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375   test -n "$AWK" && break
3376 done
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3379 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3380 set x ${MAKE-make}
3381 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3382 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   cat >conftest.make <<\_ACEOF
3386 SHELL = /bin/sh
3387 all:
3388         @echo '@@@%%%=$(MAKE)=@@@%%%'
3389 _ACEOF
3390 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3392   *@@@%%%=?*=@@@%%%*)
3393     eval ac_cv_prog_make_${ac_make}_set=yes;;
3394   *)
3395     eval ac_cv_prog_make_${ac_make}_set=no;;
3396 esac
3397 rm -f conftest.make
3398 fi
3399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3402   SET_MAKE=
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406   SET_MAKE="MAKE=${MAKE-make}"
3407 fi
3408
3409 rm -rf .tst 2>/dev/null
3410 mkdir .tst 2>/dev/null
3411 if test -d .tst; then
3412   am__leading_dot=.
3413 else
3414   am__leading_dot=_
3415 fi
3416 rmdir .tst 2>/dev/null
3417
3418 # Check whether --enable-silent-rules was given.
3419 if test "${enable_silent_rules+set}" = set; then :
3420   enableval=$enable_silent_rules;
3421 fi
3422
3423 case $enable_silent_rules in # (((
3424   yes) AM_DEFAULT_VERBOSITY=0;;
3425    no) AM_DEFAULT_VERBOSITY=1;;
3426     *) AM_DEFAULT_VERBOSITY=1;;
3427 esac
3428 am_make=${MAKE-make}
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3430 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3431 if ${am_cv_make_support_nested_variables+:} false; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   if $as_echo 'TRUE=$(BAR$(V))
3435 BAR0=false
3436 BAR1=true
3437 V=1
3438 am__doit:
3439         @$(TRUE)
3440 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3441   am_cv_make_support_nested_variables=yes
3442 else
3443   am_cv_make_support_nested_variables=no
3444 fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3447 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3448 if test $am_cv_make_support_nested_variables = yes; then
3449     AM_V='$(V)'
3450   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3451 else
3452   AM_V=$AM_DEFAULT_VERBOSITY
3453   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3454 fi
3455 AM_BACKSLASH='\'
3456
3457 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3458   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3459   # is not polluted with repeated "-I."
3460   am__isrc=' -I$(srcdir)'
3461   # test to see if srcdir already configured
3462   if test -f $srcdir/config.status; then
3463     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3464   fi
3465 fi
3466
3467 # test whether we have cygpath
3468 if test -z "$CYGPATH_W"; then
3469   if (cygpath --version) >/dev/null 2>/dev/null; then
3470     CYGPATH_W='cygpath -w'
3471   else
3472     CYGPATH_W=echo
3473   fi
3474 fi
3475
3476
3477 # Define the identity of the package.
3478  PACKAGE='harfbuzz'
3479  VERSION='1.8.1'
3480
3481
3482 # Some tools Automake needs.
3483
3484 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3485
3486
3487 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3488
3489
3490 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3491
3492
3493 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3494
3495
3496 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3497
3498 # For better backward compatibility.  To be removed once Automake 1.9.x
3499 # dies out for good.  For more background, see:
3500 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3501 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3502 mkdir_p='$(MKDIR_P)'
3503
3504 # We need awk for the "check" target (and possibly the TAP driver).  The
3505 # system "awk" is bad on some platforms.
3506 # Always define AMTAR for backward compatibility.  Yes, it's still used
3507 # in the wild :-(  We should find a proper way to deprecate it ...
3508 AMTAR='$${TAR-tar}'
3509
3510
3511 # We'll loop over all known methods to create a tar archive until one works.
3512 _am_tools='gnutar plaintar pax cpio none'
3513
3514 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3515       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3516       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3517       # and bug#13588).
3518       am_max_uid=2097151 # 2^21 - 1
3519       am_max_gid=$am_max_uid
3520       # The $UID and $GID variables are not portable, so we need to resort
3521       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3522       # below are definitely unexpected, so allow the users to see them
3523       # (that is, avoid stderr redirection).
3524       am_uid=`id -u || echo unknown`
3525       am_gid=`id -g || echo unknown`
3526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3527 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3528       if test $am_uid -le $am_max_uid; then
3529          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3531       else
3532          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534          _am_tools=none
3535       fi
3536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3537 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3538       if test $am_gid -le $am_max_gid; then
3539          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540 $as_echo "yes" >&6; }
3541       else
3542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544         _am_tools=none
3545       fi
3546
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3548 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3549
3550   # Go ahead even if we have the value already cached.  We do so because we
3551   # need to set the values for the 'am__tar' and 'am__untar' variables.
3552   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3553
3554   for _am_tool in $_am_tools; do
3555     case $_am_tool in
3556     gnutar)
3557       for _am_tar in tar gnutar gtar; do
3558         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3559    ($_am_tar --version) >&5 2>&5
3560    ac_status=$?
3561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562    (exit $ac_status); } && break
3563       done
3564       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3565       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3566       am__untar="$_am_tar -xf -"
3567       ;;
3568     plaintar)
3569       # Must skip GNU tar: if it does not support --format= it doesn't create
3570       # ustar tarball either.
3571       (tar --version) >/dev/null 2>&1 && continue
3572       am__tar='tar chf - "$$tardir"'
3573       am__tar_='tar chf - "$tardir"'
3574       am__untar='tar xf -'
3575       ;;
3576     pax)
3577       am__tar='pax -L -x ustar -w "$$tardir"'
3578       am__tar_='pax -L -x ustar -w "$tardir"'
3579       am__untar='pax -r'
3580       ;;
3581     cpio)
3582       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3583       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3584       am__untar='cpio -i -H ustar -d'
3585       ;;
3586     none)
3587       am__tar=false
3588       am__tar_=false
3589       am__untar=false
3590       ;;
3591     esac
3592
3593     # If the value was cached, stop now.  We just wanted to have am__tar
3594     # and am__untar set.
3595     test -n "${am_cv_prog_tar_ustar}" && break
3596
3597     # tar/untar a dummy directory, and stop if the command works.
3598     rm -rf conftest.dir
3599     mkdir conftest.dir
3600     echo GrepMe > conftest.dir/file
3601     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3602    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3603    ac_status=$?
3604    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605    (exit $ac_status); }
3606     rm -rf conftest.dir
3607     if test -s conftest.tar; then
3608       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3609    ($am__untar <conftest.tar) >&5 2>&5
3610    ac_status=$?
3611    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612    (exit $ac_status); }
3613       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3614    (cat conftest.dir/file) >&5 2>&5
3615    ac_status=$?
3616    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617    (exit $ac_status); }
3618       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3619     fi
3620   done
3621   rm -rf conftest.dir
3622
3623   if ${am_cv_prog_tar_ustar+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   am_cv_prog_tar_ustar=$_am_tool
3627 fi
3628
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3630 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3631
3632
3633
3634
3635
3636
3637 # POSIX will say in a future version that running "rm -f" with no argument
3638 # is OK; and we want to be able to make that assumption in our Makefile
3639 # recipes.  So use an aggressive probe to check that the usage we want is
3640 # actually supported "in the wild" to an acceptable degree.
3641 # See automake bug#10828.
3642 # To make any issue more visible, cause the running configure to be aborted
3643 # by default if the 'rm' program in use doesn't match our expectations; the
3644 # user can still override this though.
3645 if rm -f && rm -fr && rm -rf; then : OK; else
3646   cat >&2 <<'END'
3647 Oops!
3648
3649 Your 'rm' program seems unable to run without file operands specified
3650 on the command line, even when the '-f' option is present.  This is contrary
3651 to the behaviour of most rm programs out there, and not conforming with
3652 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3653
3654 Please tell bug-automake@gnu.org about your system, including the value
3655 of your $PATH and any error possibly output before this message.  This
3656 can help us improve future automake versions.
3657
3658 END
3659   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3660     echo 'Configuration will proceed anyway, since you have set the' >&2
3661     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3662     echo >&2
3663   else
3664     cat >&2 <<'END'
3665 Aborting the configuration process, to ensure you take notice of the issue.
3666
3667 You can download and install GNU coreutils to get an 'rm' implementation
3668 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3669
3670 If you want to complete the configuration process using your problematic
3671 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3672 to "yes", and re-run configure.
3673
3674 END
3675     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3676   fi
3677 fi
3678
3679 # Check whether --enable-silent-rules was given.
3680 if test "${enable_silent_rules+set}" = set; then :
3681   enableval=$enable_silent_rules;
3682 fi
3683
3684 case $enable_silent_rules in # (((
3685   yes) AM_DEFAULT_VERBOSITY=0;;
3686    no) AM_DEFAULT_VERBOSITY=1;;
3687     *) AM_DEFAULT_VERBOSITY=0;;
3688 esac
3689 am_make=${MAKE-make}
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3691 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3692 if ${am_cv_make_support_nested_variables+:} false; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if $as_echo 'TRUE=$(BAR$(V))
3696 BAR0=false
3697 BAR1=true
3698 V=1
3699 am__doit:
3700         @$(TRUE)
3701 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3702   am_cv_make_support_nested_variables=yes
3703 else
3704   am_cv_make_support_nested_variables=no
3705 fi
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3708 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3709 if test $am_cv_make_support_nested_variables = yes; then
3710     AM_V='$(V)'
3711   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3712 else
3713   AM_V=$AM_DEFAULT_VERBOSITY
3714   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3715 fi
3716 AM_BACKSLASH='\'
3717
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3719 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3720 if ${ac_cv_path_SED+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3724      for ac_i in 1 2 3 4 5 6 7; do
3725        ac_script="$ac_script$as_nl$ac_script"
3726      done
3727      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3728      { ac_script=; unset ac_script;}
3729      if test -z "$SED"; then
3730   ac_path_SED_found=false
3731   # Loop through the user's path and test for each of PROGNAME-LIST
3732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737     for ac_prog in sed gsed; do
3738     for ac_exec_ext in '' $ac_executable_extensions; do
3739       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3740       as_fn_executable_p "$ac_path_SED" || continue
3741 # Check for GNU ac_path_SED and select it if it is found.
3742   # Check for GNU $ac_path_SED
3743 case `"$ac_path_SED" --version 2>&1` in
3744 *GNU*)
3745   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3746 *)
3747   ac_count=0
3748   $as_echo_n 0123456789 >"conftest.in"
3749   while :
3750   do
3751     cat "conftest.in" "conftest.in" >"conftest.tmp"
3752     mv "conftest.tmp" "conftest.in"
3753     cp "conftest.in" "conftest.nl"
3754     $as_echo '' >> "conftest.nl"
3755     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757     as_fn_arith $ac_count + 1 && ac_count=$as_val
3758     if test $ac_count -gt ${ac_path_SED_max-0}; then
3759       # Best one so far, save it but keep looking for a better one
3760       ac_cv_path_SED="$ac_path_SED"
3761       ac_path_SED_max=$ac_count
3762     fi
3763     # 10*(2^10) chars as input seems more than enough
3764     test $ac_count -gt 10 && break
3765   done
3766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767 esac
3768
3769       $ac_path_SED_found && break 3
3770     done
3771   done
3772   done
3773 IFS=$as_save_IFS
3774   if test -z "$ac_cv_path_SED"; then
3775     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3776   fi
3777 else
3778   ac_cv_path_SED=$SED
3779 fi
3780
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3783 $as_echo "$ac_cv_path_SED" >&6; }
3784  SED="$ac_cv_path_SED"
3785   rm -f conftest.sed
3786
3787
3788
3789
3790         # allow to override gcov location
3791
3792 # Check whether --with-gcov was given.
3793 if test "${with_gcov+set}" = set; then :
3794   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3795 else
3796   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3797 fi
3798
3799
3800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3801 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3802         # Check whether --enable-code-coverage was given.
3803 if test "${enable_code_coverage+set}" = set; then :
3804   enableval=$enable_code_coverage;
3805 else
3806   enable_code_coverage=no
3807 fi
3808
3809
3810          if test x$enable_code_coverage = xyes; then
3811   CODE_COVERAGE_ENABLED_TRUE=
3812   CODE_COVERAGE_ENABLED_FALSE='#'
3813 else
3814   CODE_COVERAGE_ENABLED_TRUE='#'
3815   CODE_COVERAGE_ENABLED_FALSE=
3816 fi
3817
3818         CODE_COVERAGE_ENABLED=$enable_code_coverage
3819
3820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3821 $as_echo "$enable_code_coverage" >&6; }
3822
3823         if  test "$enable_code_coverage" = "yes" ; then :
3824
3825                 # check for gcov
3826                 if test -n "$ac_tool_prefix"; then
3827   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_GCOV+:} false; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   if test -n "$GCOV"; then
3835   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849   done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 GCOV=$ac_cv_prog_GCOV
3855 if test -n "$GCOV"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3857 $as_echo "$GCOV" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_GCOV"; then
3866   ac_ct_GCOV=$GCOV
3867   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3868 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if test -n "$ac_ct_GCOV"; then
3875   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889   done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3895 if test -n "$ac_ct_GCOV"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3897 $as_echo "$ac_ct_GCOV" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903   if test "x$ac_ct_GCOV" = x; then
3904     GCOV=":"
3905   else
3906     case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912     GCOV=$ac_ct_GCOV
3913   fi
3914 else
3915   GCOV="$ac_cv_prog_GCOV"
3916 fi
3917
3918                 if test "X$GCOV" = "X:"; then :
3919   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3920 fi
3921
3922
3923                                 if  test "$GCC" = "no" ; then :
3924
3925                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3926
3927 fi
3928
3929                 # Extract the first word of "lcov", so it can be a program name with args.
3930 set dummy lcov; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_LCOV+:} false; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -n "$LCOV"; then
3937   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944     for ac_exec_ext in '' $ac_executable_extensions; do
3945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946     ac_cv_prog_LCOV="lcov"
3947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951   done
3952 IFS=$as_save_IFS
3953
3954 fi
3955 fi
3956 LCOV=$ac_cv_prog_LCOV
3957 if test -n "$LCOV"; then
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3959 $as_echo "$LCOV" >&6; }
3960 else
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 fi
3964
3965
3966                 # Extract the first word of "genhtml", so it can be a program name with args.
3967 set dummy genhtml; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if ${ac_cv_prog_GENHTML+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973   if test -n "$GENHTML"; then
3974   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981     for ac_exec_ext in '' $ac_executable_extensions; do
3982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983     ac_cv_prog_GENHTML="genhtml"
3984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988   done
3989 IFS=$as_save_IFS
3990
3991 fi
3992 fi
3993 GENHTML=$ac_cv_prog_GENHTML
3994 if test -n "$GENHTML"; then
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3996 $as_echo "$GENHTML" >&6; }
3997 else
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4000 fi
4001
4002
4003
4004                 if  test -z "$LCOV" ; then :
4005
4006                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4007
4008 fi
4009
4010                 if  test -z "$GENHTML" ; then :
4011
4012                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4013
4014 fi
4015
4016                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4017                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4018                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4019                 CODE_COVERAGE_LIBS="-lgcov"
4020                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4021
4022
4023
4024
4025
4026
4027
4028                 CODE_COVERAGE_RULES_CHECK='
4029         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4030         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4031 '
4032                 CODE_COVERAGE_RULES_CAPTURE='
4033         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
4034         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
4035         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4036         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
4037         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4038 '
4039                 CODE_COVERAGE_RULES_CLEAN='
4040 clean: code-coverage-clean
4041 distclean: code-coverage-clean
4042 code-coverage-clean:
4043         -$(LCOV) --directory $(top_builddir) -z
4044         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4045         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4046 '
4047
4048 else
4049
4050                 CODE_COVERAGE_RULES_CHECK='
4051         @echo "Need to reconfigure with --enable-code-coverage"
4052 '
4053                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4054                 CODE_COVERAGE_RULES_CLEAN=''
4055
4056 fi
4057
4058 CODE_COVERAGE_RULES='
4059 # Code coverage
4060 #
4061 # Optional:
4062 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4063 #    Multiple directories may be specified, separated by whitespace.
4064 #    (Default: $(top_builddir))
4065 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4066 #    by lcov for code coverage. (Default:
4067 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4068 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4069 #    reports to be created. (Default:
4070 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4071 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4072 #    set to 0 to disable it and leave empty to stay with the default.
4073 #    (Default: empty)
4074 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4075 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4076 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4077 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4078 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4079 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4080 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4081 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4082 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4083 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4084 #    lcov instance. (Default: empty)
4085 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4086 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4087 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4088 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4089 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4090 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4091 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4092 #
4093 # The generated report will be titled using the $(PACKAGE_NAME) and
4094 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4095 # use the git-version-gen script, available online.
4096
4097 # Optional variables
4098 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4099 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4100 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4101 CODE_COVERAGE_BRANCH_COVERAGE ?=
4102 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4103 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4104 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4105 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4106 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4107 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4108 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4109 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4110 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4111 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4112 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4113 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4114 CODE_COVERAGE_IGNORE_PATTERN ?=
4115
4116 GITIGNOREFILES ?=
4117 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4118
4119 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4120 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4121 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4122  $(CODE_COVERAGE_OUTPUT_FILE);
4123 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4124 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4125 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4126  $(CODE_COVERAGE_IGNORE_PATTERN);
4127 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4128 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4129 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4130 code_coverage_quiet = $(code_coverage_quiet_$(V))
4131 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4132 code_coverage_quiet_0 = --quiet
4133
4134 # sanitizes the test-name: replaces with underscores: dashes and dots
4135 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4136
4137 # Use recursive makes in order to ignore errors during check
4138 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4139
4140 # Capture code coverage data
4141 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4142
4143 # Hook rule executed before code-coverage-capture, overridable by the user
4144 code-coverage-capture-hook:
4145
4146 '"$CODE_COVERAGE_RULES_CLEAN"'
4147
4148 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4149 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4150
4151 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4152 '
4153
4154
4155
4156
4157
4158 # Initialize libtool
4159 DEPDIR="${am__leading_dot}deps"
4160
4161 ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4166 am__doit:
4167         @echo this is the am__doit target
4168 .PHONY: am__doit
4169 END
4170 # If we don't find an include directive, just comment out the code.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4173 am__include="#"
4174 am__quote=
4175 _am_result=none
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # Ignore all kinds of additional output from 'make'.
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4181   am__include=include
4182   am__quote=
4183   _am_result=GNU
4184   ;;
4185 esac
4186 # Now try BSD make style include.
4187 if test "$am__include" = "#"; then
4188    echo '.include "confinc"' > confmf
4189    case `$am_make -s -f confmf 2> /dev/null` in #(
4190    *the\ am__doit\ target*)
4191      am__include=.include
4192      am__quote="\""
4193      _am_result=BSD
4194      ;;
4195    esac
4196 fi
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200 $as_echo "$_am_result" >&6; }
4201 rm -f confinc confmf
4202
4203 # Check whether --enable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then :
4205   enableval=$enable_dependency_tracking;
4206 fi
4207
4208 if test "x$enable_dependency_tracking" != xno; then
4209   am_depcomp="$ac_aux_dir/depcomp"
4210   AMDEPBACKSLASH='\'
4211   am__nodep='_no'
4212 fi
4213  if test "x$enable_dependency_tracking" != xno; then
4214   AMDEP_TRUE=
4215   AMDEP_FALSE='#'
4216 else
4217   AMDEP_TRUE='#'
4218   AMDEP_FALSE=
4219 fi
4220
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 if test -n "$ac_tool_prefix"; then
4228   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_CC+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   if test -n "$CC"; then
4236   ac_cv_prog_CC="$CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243     for ac_exec_ext in '' $ac_executable_extensions; do
4244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250   done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 fi
4266 if test -z "$ac_cv_prog_CC"; then
4267   ac_ct_CC=$CC
4268   # Extract the first word of "gcc", so it can be a program name with args.
4269 set dummy gcc; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   if test -n "$ac_ct_CC"; then
4276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_prog_ac_ct_CC="gcc"
4286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290   done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298 $as_echo "$ac_ct_CC" >&6; }
4299 else
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304   if test "x$ac_ct_CC" = x; then
4305     CC=""
4306   else
4307     case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4312 esac
4313     CC=$ac_ct_CC
4314   fi
4315 else
4316   CC="$ac_cv_prog_CC"
4317 fi
4318
4319 if test -z "$CC"; then
4320           if test -n "$ac_tool_prefix"; then
4321     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}cc; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_CC+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$CC"; then
4329   ac_cv_prog_CC="$CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_CC="${ac_tool_prefix}cc"
4339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343   done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 CC=$ac_cv_prog_CC
4349 if test -n "$CC"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 $as_echo "$CC" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358   fi
4359 fi
4360 if test -z "$CC"; then
4361   # Extract the first word of "cc", so it can be a program name with args.
4362 set dummy cc; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_CC+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   if test -n "$CC"; then
4369   ac_cv_prog_CC="$CC" # Let the user override the test.
4370 else
4371   ac_prog_rejected=no
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377     for ac_exec_ext in '' $ac_executable_extensions; do
4378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380        ac_prog_rejected=yes
4381        continue
4382      fi
4383     ac_cv_prog_CC="cc"
4384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388   done
4389 IFS=$as_save_IFS
4390
4391 if test $ac_prog_rejected = yes; then
4392   # We found a bogon in the path, so make sure we never use it.
4393   set dummy $ac_cv_prog_CC
4394   shift
4395   if test $# != 0; then
4396     # We chose a different compiler from the bogus one.
4397     # However, it has the same basename, so the bogon will be chosen
4398     # first if we set CC to just the basename; use the full file name.
4399     shift
4400     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401   fi
4402 fi
4403 fi
4404 fi
4405 CC=$ac_cv_prog_CC
4406 if test -n "$CC"; then
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4408 $as_echo "$CC" >&6; }
4409 else
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 fi
4413
4414
4415 fi
4416 if test -z "$CC"; then
4417   if test -n "$ac_tool_prefix"; then
4418   for ac_prog in cl.exe
4419   do
4420     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_prog_CC+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   if test -n "$CC"; then
4428   ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435     for ac_exec_ext in '' $ac_executable_extensions; do
4436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442   done
4443 IFS=$as_save_IFS
4444
4445 fi
4446 fi
4447 CC=$ac_cv_prog_CC
4448 if test -n "$CC"; then
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450 $as_echo "$CC" >&6; }
4451 else
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4454 fi
4455
4456
4457     test -n "$CC" && break
4458   done
4459 fi
4460 if test -z "$CC"; then
4461   ac_ct_CC=$CC
4462   for ac_prog in cl.exe
4463 do
4464   # Extract the first word of "$ac_prog", so it can be a program name with args.
4465 set dummy $ac_prog; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   if test -n "$ac_ct_CC"; then
4472   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479     for ac_exec_ext in '' $ac_executable_extensions; do
4480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481     ac_cv_prog_ac_ct_CC="$ac_prog"
4482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483     break 2
4484   fi
4485 done
4486   done
4487 IFS=$as_save_IFS
4488
4489 fi
4490 fi
4491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492 if test -n "$ac_ct_CC"; then
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4494 $as_echo "$ac_ct_CC" >&6; }
4495 else
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 fi
4499
4500
4501   test -n "$ac_ct_CC" && break
4502 done
4503
4504   if test "x$ac_ct_CC" = x; then
4505     CC=""
4506   else
4507     case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511 ac_tool_warned=yes ;;
4512 esac
4513     CC=$ac_ct_CC
4514   fi
4515 fi
4516
4517 fi
4518
4519
4520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details" "$LINENO" 5; }
4524
4525 # Provide some information about the compiler.
4526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4527 set X $ac_compile
4528 ac_compiler=$2
4529 for ac_option in --version -v -V -qversion; do
4530   { { ac_try="$ac_compiler $ac_option >&5"
4531 case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4538   ac_status=$?
4539   if test -s conftest.err; then
4540     sed '10a\
4541 ... rest of stderr output deleted ...
4542          10q' conftest.err >conftest.er1
4543     cat conftest.er1 >&5
4544   fi
4545   rm -f conftest.er1 conftest.err
4546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547   test $ac_status = 0; }
4548 done
4549
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552
4553 int
4554 main ()
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 ac_clean_files_save=$ac_clean_files
4562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4563 # Try to create an executable without -o first, disregard a.out.
4564 # It will help us diagnose broken compilers, and finding out an intuition
4565 # of exeext.
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4567 $as_echo_n "checking whether the C compiler works... " >&6; }
4568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4569
4570 # The possible output files:
4571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4572
4573 ac_rmfiles=
4574 for ac_file in $ac_files
4575 do
4576   case $ac_file in
4577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4579   esac
4580 done
4581 rm -f $ac_rmfiles
4582
4583 if { { ac_try="$ac_link_default"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590   (eval "$ac_link_default") 2>&5
4591   ac_status=$?
4592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593   test $ac_status = 0; }; then :
4594   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4597 # so that the user can short-circuit this test for compilers unknown to
4598 # Autoconf.
4599 for ac_file in $ac_files ''
4600 do
4601   test -f "$ac_file" || continue
4602   case $ac_file in
4603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4604         ;;
4605     [ab].out )
4606         # We found the default executable, but exeext='' is most
4607         # certainly right.
4608         break;;
4609     *.* )
4610         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4611         then :; else
4612            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4613         fi
4614         # We set ac_cv_exeext here because the later test for it is not
4615         # safe: cross compilers may not add the suffix if given an `-o'
4616         # argument, so we may need to know it at that point already.
4617         # Even if this section looks crufty: it has the advantage of
4618         # actually working.
4619         break;;
4620     * )
4621         break;;
4622   esac
4623 done
4624 test "$ac_cv_exeext" = no && ac_cv_exeext=
4625
4626 else
4627   ac_file=''
4628 fi
4629 if test -z "$ac_file"; then :
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 $as_echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error 77 "C compiler cannot create executables
4638 See \`config.log' for more details" "$LINENO" 5; }
4639 else
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4644 $as_echo_n "checking for C compiler default output file name... " >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4646 $as_echo "$ac_file" >&6; }
4647 ac_exeext=$ac_cv_exeext
4648
4649 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4650 ac_clean_files=$ac_clean_files_save
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4652 $as_echo_n "checking for suffix of executables... " >&6; }
4653 if { { ac_try="$ac_link"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660   (eval "$ac_link") 2>&5
4661   ac_status=$?
4662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663   test $ac_status = 0; }; then :
4664   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4665 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4666 # work properly (i.e., refer to `conftest.exe'), while it won't with
4667 # `rm'.
4668 for ac_file in conftest.exe conftest conftest.*; do
4669   test -f "$ac_file" || continue
4670   case $ac_file in
4671     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4672     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4673           break;;
4674     * ) break;;
4675   esac
4676 done
4677 else
4678   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4681 See \`config.log' for more details" "$LINENO" 5; }
4682 fi
4683 rm -f conftest conftest$ac_cv_exeext
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4685 $as_echo "$ac_cv_exeext" >&6; }
4686
4687 rm -f conftest.$ac_ext
4688 EXEEXT=$ac_cv_exeext
4689 ac_exeext=$EXEEXT
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #include <stdio.h>
4693 int
4694 main ()
4695 {
4696 FILE *f = fopen ("conftest.out", "w");
4697  return ferror (f) || fclose (f) != 0;
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 ac_clean_files="$ac_clean_files conftest.out"
4704 # Check that the compiler produces executables we can run.  If not, either
4705 # the compiler is broken, or we cross compile.
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4707 $as_echo_n "checking whether we are cross compiling... " >&6; }
4708 if test "$cross_compiling" != yes; then
4709   { { ac_try="$ac_link"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716   (eval "$ac_link") 2>&5
4717   ac_status=$?
4718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719   test $ac_status = 0; }
4720   if { ac_try='./conftest$ac_cv_exeext'
4721   { { case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727   (eval "$ac_try") 2>&5
4728   ac_status=$?
4729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730   test $ac_status = 0; }; }; then
4731     cross_compiling=no
4732   else
4733     if test "$cross_compiling" = maybe; then
4734         cross_compiling=yes
4735     else
4736         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738 as_fn_error $? "cannot run C compiled programs.
4739 If you meant to cross compile, use \`--host'.
4740 See \`config.log' for more details" "$LINENO" 5; }
4741     fi
4742   fi
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4745 $as_echo "$cross_compiling" >&6; }
4746
4747 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4748 ac_clean_files=$ac_clean_files_save
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4750 $as_echo_n "checking for suffix of object files... " >&6; }
4751 if ${ac_cv_objext+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 int
4758 main ()
4759 {
4760
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.o conftest.obj
4766 if { { ac_try="$ac_compile"
4767 case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772 $as_echo "$ac_try_echo"; } >&5
4773   (eval "$ac_compile") 2>&5
4774   ac_status=$?
4775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776   test $ac_status = 0; }; then :
4777   for ac_file in conftest.o conftest.obj conftest.*; do
4778   test -f "$ac_file" || continue;
4779   case $ac_file in
4780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4781     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4782        break;;
4783   esac
4784 done
4785 else
4786   $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4791 as_fn_error $? "cannot compute suffix of object files: cannot compile
4792 See \`config.log' for more details" "$LINENO" 5; }
4793 fi
4794 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4797 $as_echo "$ac_cv_objext" >&6; }
4798 OBJEXT=$ac_cv_objext
4799 ac_objext=$OBJEXT
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4801 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4802 if ${ac_cv_c_compiler_gnu+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811 #ifndef __GNUC__
4812        choke me
4813 #endif
4814
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820   ac_compiler_gnu=yes
4821 else
4822   ac_compiler_gnu=no
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4826
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4829 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4830 if test $ac_compiler_gnu = yes; then
4831   GCC=yes
4832 else
4833   GCC=
4834 fi
4835 ac_test_CFLAGS=${CFLAGS+set}
4836 ac_save_CFLAGS=$CFLAGS
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4838 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4839 if ${ac_cv_prog_cc_g+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   ac_save_c_werror_flag=$ac_c_werror_flag
4843    ac_c_werror_flag=yes
4844    ac_cv_prog_cc_g=no
4845    CFLAGS="-g"
4846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h.  */
4848
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858   ac_cv_prog_cc_g=yes
4859 else
4860   CFLAGS=""
4861       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h.  */
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873
4874 else
4875   ac_c_werror_flag=$ac_save_c_werror_flag
4876          CFLAGS="-g"
4877          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h.  */
4879
4880 int
4881 main ()
4882 {
4883
4884   ;
4885   return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889   ac_cv_prog_cc_g=yes
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896    ac_c_werror_flag=$ac_save_c_werror_flag
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4899 $as_echo "$ac_cv_prog_cc_g" >&6; }
4900 if test "$ac_test_CFLAGS" = set; then
4901   CFLAGS=$ac_save_CFLAGS
4902 elif test $ac_cv_prog_cc_g = yes; then
4903   if test "$GCC" = yes; then
4904     CFLAGS="-g -O2"
4905   else
4906     CFLAGS="-g"
4907   fi
4908 else
4909   if test "$GCC" = yes; then
4910     CFLAGS="-O2"
4911   else
4912     CFLAGS=
4913   fi
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4916 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4917 if ${ac_cv_prog_cc_c89+:} false; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   ac_cv_prog_cc_c89=no
4921 ac_save_CC=$CC
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h.  */
4924 #include <stdarg.h>
4925 #include <stdio.h>
4926 struct stat;
4927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4928 struct buf { int x; };
4929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4930 static char *e (p, i)
4931      char **p;
4932      int i;
4933 {
4934   return p[i];
4935 }
4936 static char *f (char * (*g) (char **, int), char **p, ...)
4937 {
4938   char *s;
4939   va_list v;
4940   va_start (v,p);
4941   s = g (p, va_arg (v,int));
4942   va_end (v);
4943   return s;
4944 }
4945
4946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4947    function prototypes and stuff, but not '\xHH' hex character constants.
4948    These don't provoke an error unfortunately, instead are silently treated
4949    as 'x'.  The following induces an error, until -std is added to get
4950    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4951    array size at least.  It's necessary to write '\x00'==0 to get something
4952    that's true only with -std.  */
4953 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4954
4955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4956    inside strings and character constants.  */
4957 #define FOO(x) 'x'
4958 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4959
4960 int test (int i, double x);
4961 struct s1 {int (*f) (int a);};
4962 struct s2 {int (*f) (double a);};
4963 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4964 int argc;
4965 char **argv;
4966 int
4967 main ()
4968 {
4969 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4975         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4976 do
4977   CC="$ac_save_CC $ac_arg"
4978   if ac_fn_c_try_compile "$LINENO"; then :
4979   ac_cv_prog_cc_c89=$ac_arg
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext
4982   test "x$ac_cv_prog_cc_c89" != "xno" && break
4983 done
4984 rm -f conftest.$ac_ext
4985 CC=$ac_save_CC
4986
4987 fi
4988 # AC_CACHE_VAL
4989 case "x$ac_cv_prog_cc_c89" in
4990   x)
4991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4992 $as_echo "none needed" >&6; } ;;
4993   xno)
4994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4995 $as_echo "unsupported" >&6; } ;;
4996   *)
4997     CC="$CC $ac_cv_prog_cc_c89"
4998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5000 esac
5001 if test "x$ac_cv_prog_cc_c89" != xno; then :
5002
5003 fi
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5017 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5018 if ${am_cv_prog_cc_c_o+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h.  */
5023
5024 int
5025 main ()
5026 {
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032   # Make sure it works both with $CC and with simple cc.
5033   # Following AC_PROG_CC_C_O, we do the test twice because some
5034   # compilers refuse to overwrite an existing .o file with -o,
5035   # though they will create one.
5036   am_cv_prog_cc_c_o=yes
5037   for am_i in 1 2; do
5038     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5039    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5040    ac_status=$?
5041    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042    (exit $ac_status); } \
5043          && test -f conftest2.$ac_objext; then
5044       : OK
5045     else
5046       am_cv_prog_cc_c_o=no
5047       break
5048     fi
5049   done
5050   rm -f core conftest*
5051   unset am_i
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5054 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5055 if test "$am_cv_prog_cc_c_o" != yes; then
5056    # Losing compiler, so override with the script.
5057    # FIXME: It is wrong to rewrite CC.
5058    # But if we don't then we get into trouble of one sort or another.
5059    # A longer-term fix would be to have automake use am__CC in this case,
5060    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5061    CC="$am_aux_dir/compile $CC"
5062 fi
5063 ac_ext=c
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068
5069
5070 depcc="$CC"   am_compiler_list=
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5073 $as_echo_n "checking dependency style of $depcc... " >&6; }
5074 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5078   # We make a subdir and do the tests there.  Otherwise we can end up
5079   # making bogus files that we don't know about and never remove.  For
5080   # instance it was reported that on HP-UX the gcc test will end up
5081   # making a dummy file named 'D' -- because '-MD' means "put the output
5082   # in D".
5083   rm -rf conftest.dir
5084   mkdir conftest.dir
5085   # Copy depcomp to subdir because otherwise we won't find it if we're
5086   # using a relative directory.
5087   cp "$am_depcomp" conftest.dir
5088   cd conftest.dir
5089   # We will build objects and dependencies in a subdirectory because
5090   # it helps to detect inapplicable dependency modes.  For instance
5091   # both Tru64's cc and ICC support -MD to output dependencies as a
5092   # side effect of compilation, but ICC will put the dependencies in
5093   # the current directory while Tru64 will put them in the object
5094   # directory.
5095   mkdir sub
5096
5097   am_cv_CC_dependencies_compiler_type=none
5098   if test "$am_compiler_list" = ""; then
5099      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5100   fi
5101   am__universal=false
5102   case " $depcc " in #(
5103      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5104      esac
5105
5106   for depmode in $am_compiler_list; do
5107     # Setup a source with many dependencies, because some compilers
5108     # like to wrap large dependency lists on column 80 (with \), and
5109     # we should not choose a depcomp mode which is confused by this.
5110     #
5111     # We need to recreate these files for each test, as the compiler may
5112     # overwrite some of them when testing with obscure command lines.
5113     # This happens at least with the AIX C compiler.
5114     : > sub/conftest.c
5115     for i in 1 2 3 4 5 6; do
5116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5117       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5118       # Solaris 10 /bin/sh.
5119       echo '/* dummy */' > sub/conftst$i.h
5120     done
5121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5122
5123     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5124     # mode.  It turns out that the SunPro C++ compiler does not properly
5125     # handle '-M -o', and we need to detect this.  Also, some Intel
5126     # versions had trouble with output in subdirs.
5127     am__obj=sub/conftest.${OBJEXT-o}
5128     am__minus_obj="-o $am__obj"
5129     case $depmode in
5130     gcc)
5131       # This depmode causes a compiler race in universal mode.
5132       test "$am__universal" = false || continue
5133       ;;
5134     nosideeffect)
5135       # After this tag, mechanisms are not by side-effect, so they'll
5136       # only be used when explicitly requested.
5137       if test "x$enable_dependency_tracking" = xyes; then
5138         continue
5139       else
5140         break
5141       fi
5142       ;;
5143     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5144       # This compiler won't grok '-c -o', but also, the minuso test has
5145       # not run yet.  These depmodes are late enough in the game, and
5146       # so weak that their functioning should not be impacted.
5147       am__obj=conftest.${OBJEXT-o}
5148       am__minus_obj=
5149       ;;
5150     none) break ;;
5151     esac
5152     if depmode=$depmode \
5153        source=sub/conftest.c object=$am__obj \
5154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5155        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5156          >/dev/null 2>conftest.err &&
5157        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5158        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5159        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5160        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5161       # icc doesn't choke on unknown options, it will just issue warnings
5162       # or remarks (even with -Werror).  So we grep stderr for any message
5163       # that says an option was ignored or not supported.
5164       # When given -MP, icc 7.0 and 7.1 complain thusly:
5165       #   icc: Command line warning: ignoring option '-M'; no argument required
5166       # The diagnosis changed in icc 8.0:
5167       #   icc: Command line remark: option '-MP' not supported
5168       if (grep 'ignoring option' conftest.err ||
5169           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5170         am_cv_CC_dependencies_compiler_type=$depmode
5171         break
5172       fi
5173     fi
5174   done
5175
5176   cd ..
5177   rm -rf conftest.dir
5178 else
5179   am_cv_CC_dependencies_compiler_type=none
5180 fi
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5184 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5186
5187  if
5188   test "x$enable_dependency_tracking" != xno \
5189   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5190   am__fastdepCC_TRUE=
5191   am__fastdepCC_FALSE='#'
5192 else
5193   am__fastdepCC_TRUE='#'
5194   am__fastdepCC_FALSE=
5195 fi
5196
5197
5198
5199 if test -n "$ac_tool_prefix"; then
5200   for ac_prog in ar lib "link -lib"
5201   do
5202     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_AR+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   if test -n "$AR"; then
5210   ac_cv_prog_AR="$AR" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217     for ac_exec_ext in '' $ac_executable_extensions; do
5218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224   done
5225 IFS=$as_save_IFS
5226
5227 fi
5228 fi
5229 AR=$ac_cv_prog_AR
5230 if test -n "$AR"; then
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5232 $as_echo "$AR" >&6; }
5233 else
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238
5239     test -n "$AR" && break
5240   done
5241 fi
5242 if test -z "$AR"; then
5243   ac_ct_AR=$AR
5244   for ac_prog in ar lib "link -lib"
5245 do
5246   # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if test -n "$ac_ct_AR"; then
5254   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261     for ac_exec_ext in '' $ac_executable_extensions; do
5262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263     ac_cv_prog_ac_ct_AR="$ac_prog"
5264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268   done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5274 if test -n "$ac_ct_AR"; then
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5276 $as_echo "$ac_ct_AR" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282
5283   test -n "$ac_ct_AR" && break
5284 done
5285
5286   if test "x$ac_ct_AR" = x; then
5287     AR="false"
5288   else
5289     case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295     AR=$ac_ct_AR
5296   fi
5297 fi
5298
5299 : ${AR=ar}
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5302 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5303 if ${am_cv_ar_interface+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312    am_cv_ar_interface=ar
5313    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315 int some_variable = 0;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5319       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5320   (eval $am_ar_try) 2>&5
5321   ac_status=$?
5322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5323   test $ac_status = 0; }
5324       if test "$ac_status" -eq 0; then
5325         am_cv_ar_interface=ar
5326       else
5327         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5328         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5329   (eval $am_ar_try) 2>&5
5330   ac_status=$?
5331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5332   test $ac_status = 0; }
5333         if test "$ac_status" -eq 0; then
5334           am_cv_ar_interface=lib
5335         else
5336           am_cv_ar_interface=unknown
5337         fi
5338       fi
5339       rm -f conftest.lib libconftest.a
5340
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343    ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5351 $as_echo "$am_cv_ar_interface" >&6; }
5352
5353 case $am_cv_ar_interface in
5354 ar)
5355   ;;
5356 lib)
5357   # Microsoft lib, so override with the ar-lib wrapper script.
5358   # FIXME: It is wrong to rewrite AR.
5359   # But if we don't then we get into trouble of one sort or another.
5360   # A longer-term fix would be to have automake use am__AR in this case,
5361   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5362   # similar.
5363   AR="$am_aux_dir/ar-lib $AR"
5364   ;;
5365 unknown)
5366   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5367   ;;
5368 esac
5369
5370
5371 case `pwd` in
5372   *\ * | *\     *)
5373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5374 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5375 esac
5376
5377
5378
5379 macro_version='2.4.6'
5380 macro_revision='2.4.6'
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 ltmain=$ac_aux_dir/ltmain.sh
5395
5396 # Make sure we can run config.sub.
5397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5398   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5401 $as_echo_n "checking build system type... " >&6; }
5402 if ${ac_cv_build+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   ac_build_alias=$build_alias
5406 test "x$ac_build_alias" = x &&
5407   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5408 test "x$ac_build_alias" = x &&
5409   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5411   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5415 $as_echo "$ac_cv_build" >&6; }
5416 case $ac_cv_build in
5417 *-*-*) ;;
5418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5419 esac
5420 build=$ac_cv_build
5421 ac_save_IFS=$IFS; IFS='-'
5422 set x $ac_cv_build
5423 shift
5424 build_cpu=$1
5425 build_vendor=$2
5426 shift; shift
5427 # Remember, the first character of IFS is used to create $*,
5428 # except with old shells:
5429 build_os=$*
5430 IFS=$ac_save_IFS
5431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5435 $as_echo_n "checking host system type... " >&6; }
5436 if ${ac_cv_host+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test "x$host_alias" = x; then
5440   ac_cv_host=$ac_cv_build
5441 else
5442   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5443     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5444 fi
5445
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5448 $as_echo "$ac_cv_host" >&6; }
5449 case $ac_cv_host in
5450 *-*-*) ;;
5451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5452 esac
5453 host=$ac_cv_host
5454 ac_save_IFS=$IFS; IFS='-'
5455 set x $ac_cv_host
5456 shift
5457 host_cpu=$1
5458 host_vendor=$2
5459 shift; shift
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5462 host_os=$*
5463 IFS=$ac_save_IFS
5464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5465
5466
5467 # Backslashify metacharacters that are still active within
5468 # double-quoted strings.
5469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5470
5471 # Same as above, but do not quote variable references.
5472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5473
5474 # Sed substitution to delay expansion of an escaped shell variable in a
5475 # double_quote_subst'ed string.
5476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5477
5478 # Sed substitution to delay expansion of an escaped single quote.
5479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5480
5481 # Sed substitution to avoid accidental globbing in evaled expressions
5482 no_glob_subst='s/\*/\\\*/g'
5483
5484 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5485 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5489 $as_echo_n "checking how to print strings... " >&6; }
5490 # Test print first, because it will be a builtin if present.
5491 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5492    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5493   ECHO='print -r --'
5494 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5495   ECHO='printf %s\n'
5496 else
5497   # Use this function as a fallback that always works.
5498   func_fallback_echo ()
5499   {
5500     eval 'cat <<_LTECHO_EOF
5501 $1
5502 _LTECHO_EOF'
5503   }
5504   ECHO='func_fallback_echo'
5505 fi
5506
5507 # func_echo_all arg...
5508 # Invoke $ECHO with all args, space-separated.
5509 func_echo_all ()
5510 {
5511     $ECHO ""
5512 }
5513
5514 case $ECHO in
5515   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5516 $as_echo "printf" >&6; } ;;
5517   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5518 $as_echo "print -r" >&6; } ;;
5519   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5520 $as_echo "cat" >&6; } ;;
5521 esac
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5537 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5538 if ${ac_cv_path_SED+:} false; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5542      for ac_i in 1 2 3 4 5 6 7; do
5543        ac_script="$ac_script$as_nl$ac_script"
5544      done
5545      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5546      { ac_script=; unset ac_script;}
5547      if test -z "$SED"; then
5548   ac_path_SED_found=false
5549   # Loop through the user's path and test for each of PROGNAME-LIST
5550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555     for ac_prog in sed gsed; do
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5558       as_fn_executable_p "$ac_path_SED" || continue
5559 # Check for GNU ac_path_SED and select it if it is found.
5560   # Check for GNU $ac_path_SED
5561 case `"$ac_path_SED" --version 2>&1` in
5562 *GNU*)
5563   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5564 *)
5565   ac_count=0
5566   $as_echo_n 0123456789 >"conftest.in"
5567   while :
5568   do
5569     cat "conftest.in" "conftest.in" >"conftest.tmp"
5570     mv "conftest.tmp" "conftest.in"
5571     cp "conftest.in" "conftest.nl"
5572     $as_echo '' >> "conftest.nl"
5573     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575     as_fn_arith $ac_count + 1 && ac_count=$as_val
5576     if test $ac_count -gt ${ac_path_SED_max-0}; then
5577       # Best one so far, save it but keep looking for a better one
5578       ac_cv_path_SED="$ac_path_SED"
5579       ac_path_SED_max=$ac_count
5580     fi
5581     # 10*(2^10) chars as input seems more than enough
5582     test $ac_count -gt 10 && break
5583   done
5584   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585 esac
5586
5587       $ac_path_SED_found && break 3
5588     done
5589   done
5590   done
5591 IFS=$as_save_IFS
5592   if test -z "$ac_cv_path_SED"; then
5593     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5594   fi
5595 else
5596   ac_cv_path_SED=$SED
5597 fi
5598
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5601 $as_echo "$ac_cv_path_SED" >&6; }
5602  SED="$ac_cv_path_SED"
5603   rm -f conftest.sed
5604
5605 test -z "$SED" && SED=sed
5606 Xsed="$SED -e 1s/^X//"
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5620 if ${ac_cv_path_GREP+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -z "$GREP"; then
5624   ac_path_GREP_found=false
5625   # Loop through the user's path and test for each of PROGNAME-LIST
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_prog in grep ggrep; do
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5634       as_fn_executable_p "$ac_path_GREP" || continue
5635 # Check for GNU ac_path_GREP and select it if it is found.
5636   # Check for GNU $ac_path_GREP
5637 case `"$ac_path_GREP" --version 2>&1` in
5638 *GNU*)
5639   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5640 *)
5641   ac_count=0
5642   $as_echo_n 0123456789 >"conftest.in"
5643   while :
5644   do
5645     cat "conftest.in" "conftest.in" >"conftest.tmp"
5646     mv "conftest.tmp" "conftest.in"
5647     cp "conftest.in" "conftest.nl"
5648     $as_echo 'GREP' >> "conftest.nl"
5649     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651     as_fn_arith $ac_count + 1 && ac_count=$as_val
5652     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5653       # Best one so far, save it but keep looking for a better one
5654       ac_cv_path_GREP="$ac_path_GREP"
5655       ac_path_GREP_max=$ac_count
5656     fi
5657     # 10*(2^10) chars as input seems more than enough
5658     test $ac_count -gt 10 && break
5659   done
5660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5661 esac
5662
5663       $ac_path_GREP_found && break 3
5664     done
5665   done
5666   done
5667 IFS=$as_save_IFS
5668   if test -z "$ac_cv_path_GREP"; then
5669     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5670   fi
5671 else
5672   ac_cv_path_GREP=$GREP
5673 fi
5674
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5677 $as_echo "$ac_cv_path_GREP" >&6; }
5678  GREP="$ac_cv_path_GREP"
5679
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5682 $as_echo_n "checking for egrep... " >&6; }
5683 if ${ac_cv_path_EGREP+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5687    then ac_cv_path_EGREP="$GREP -E"
5688    else
5689      if test -z "$EGREP"; then
5690   ac_path_EGREP_found=false
5691   # Loop through the user's path and test for each of PROGNAME-LIST
5692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     for ac_prog in egrep; do
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5700       as_fn_executable_p "$ac_path_EGREP" || continue
5701 # Check for GNU ac_path_EGREP and select it if it is found.
5702   # Check for GNU $ac_path_EGREP
5703 case `"$ac_path_EGREP" --version 2>&1` in
5704 *GNU*)
5705   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5706 *)
5707   ac_count=0
5708   $as_echo_n 0123456789 >"conftest.in"
5709   while :
5710   do
5711     cat "conftest.in" "conftest.in" >"conftest.tmp"
5712     mv "conftest.tmp" "conftest.in"
5713     cp "conftest.in" "conftest.nl"
5714     $as_echo 'EGREP' >> "conftest.nl"
5715     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5716     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5717     as_fn_arith $ac_count + 1 && ac_count=$as_val
5718     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5719       # Best one so far, save it but keep looking for a better one
5720       ac_cv_path_EGREP="$ac_path_EGREP"
5721       ac_path_EGREP_max=$ac_count
5722     fi
5723     # 10*(2^10) chars as input seems more than enough
5724     test $ac_count -gt 10 && break
5725   done
5726   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5727 esac
5728
5729       $ac_path_EGREP_found && break 3
5730     done
5731   done
5732   done
5733 IFS=$as_save_IFS
5734   if test -z "$ac_cv_path_EGREP"; then
5735     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5736   fi
5737 else
5738   ac_cv_path_EGREP=$EGREP
5739 fi
5740
5741    fi
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5744 $as_echo "$ac_cv_path_EGREP" >&6; }
5745  EGREP="$ac_cv_path_EGREP"
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5749 $as_echo_n "checking for fgrep... " >&6; }
5750 if ${ac_cv_path_FGREP+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5754    then ac_cv_path_FGREP="$GREP -F"
5755    else
5756      if test -z "$FGREP"; then
5757   ac_path_FGREP_found=false
5758   # Loop through the user's path and test for each of PROGNAME-LIST
5759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_prog in fgrep; do
5765     for ac_exec_ext in '' $ac_executable_extensions; do
5766       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5767       as_fn_executable_p "$ac_path_FGREP" || continue
5768 # Check for GNU ac_path_FGREP and select it if it is found.
5769   # Check for GNU $ac_path_FGREP
5770 case `"$ac_path_FGREP" --version 2>&1` in
5771 *GNU*)
5772   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5773 *)
5774   ac_count=0
5775   $as_echo_n 0123456789 >"conftest.in"
5776   while :
5777   do
5778     cat "conftest.in" "conftest.in" >"conftest.tmp"
5779     mv "conftest.tmp" "conftest.in"
5780     cp "conftest.in" "conftest.nl"
5781     $as_echo 'FGREP' >> "conftest.nl"
5782     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784     as_fn_arith $ac_count + 1 && ac_count=$as_val
5785     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5786       # Best one so far, save it but keep looking for a better one
5787       ac_cv_path_FGREP="$ac_path_FGREP"
5788       ac_path_FGREP_max=$ac_count
5789     fi
5790     # 10*(2^10) chars as input seems more than enough
5791     test $ac_count -gt 10 && break
5792   done
5793   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794 esac
5795
5796       $ac_path_FGREP_found && break 3
5797     done
5798   done
5799   done
5800 IFS=$as_save_IFS
5801   if test -z "$ac_cv_path_FGREP"; then
5802     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5803   fi
5804 else
5805   ac_cv_path_FGREP=$FGREP
5806 fi
5807
5808    fi
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5811 $as_echo "$ac_cv_path_FGREP" >&6; }
5812  FGREP="$ac_cv_path_FGREP"
5813
5814
5815 test -z "$GREP" && GREP=grep
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 # Check whether --with-gnu-ld was given.
5836 if test "${with_gnu_ld+set}" = set; then :
5837   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5838 else
5839   with_gnu_ld=no
5840 fi
5841
5842 ac_prog=ld
5843 if test yes = "$GCC"; then
5844   # Check if gcc -print-prog-name=ld gives a path.
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5846 $as_echo_n "checking for ld used by $CC... " >&6; }
5847   case $host in
5848   *-*-mingw*)
5849     # gcc leaves a trailing carriage return, which upsets mingw
5850     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5851   *)
5852     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5853   esac
5854   case $ac_prog in
5855     # Accept absolute paths.
5856     [\\/]* | ?:[\\/]*)
5857       re_direlt='/[^/][^/]*/\.\./'
5858       # Canonicalize the pathname of ld
5859       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5860       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5861         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5862       done
5863       test -z "$LD" && LD=$ac_prog
5864       ;;
5865   "")
5866     # If it fails, then pretend we aren't using GCC.
5867     ac_prog=ld
5868     ;;
5869   *)
5870     # If it is relative, then search for the first ld in PATH.
5871     with_gnu_ld=unknown
5872     ;;
5873   esac
5874 elif test yes = "$with_gnu_ld"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5876 $as_echo_n "checking for GNU ld... " >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5879 $as_echo_n "checking for non-GNU ld... " >&6; }
5880 fi
5881 if ${lt_cv_path_LD+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   if test -z "$LD"; then
5885   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5886   for ac_dir in $PATH; do
5887     IFS=$lt_save_ifs
5888     test -z "$ac_dir" && ac_dir=.
5889     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890       lt_cv_path_LD=$ac_dir/$ac_prog
5891       # Check to see if the program is GNU ld.  I'd rather use --version,
5892       # but apparently some variants of GNU ld only accept -v.
5893       # Break only if it was the GNU/non-GNU ld that we prefer.
5894       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895       *GNU* | *'with BFD'*)
5896         test no != "$with_gnu_ld" && break
5897         ;;
5898       *)
5899         test yes != "$with_gnu_ld" && break
5900         ;;
5901       esac
5902     fi
5903   done
5904   IFS=$lt_save_ifs
5905 else
5906   lt_cv_path_LD=$LD # Let the user override the test with a path.
5907 fi
5908 fi
5909
5910 LD=$lt_cv_path_LD
5911 if test -n "$LD"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913 $as_echo "$LD" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5921 if ${lt_cv_prog_gnu_ld+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5925 case `$LD -v 2>&1 </dev/null` in
5926 *GNU* | *'with BFD'*)
5927   lt_cv_prog_gnu_ld=yes
5928   ;;
5929 *)
5930   lt_cv_prog_gnu_ld=no
5931   ;;
5932 esac
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5936 with_gnu_ld=$lt_cv_prog_gnu_ld
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5947 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5948 if ${lt_cv_path_NM+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   if test -n "$NM"; then
5952   # Let the user override the test.
5953   lt_cv_path_NM=$NM
5954 else
5955   lt_nm_to_check=${ac_tool_prefix}nm
5956   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5957     lt_nm_to_check="$lt_nm_to_check nm"
5958   fi
5959   for lt_tmp_nm in $lt_nm_to_check; do
5960     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5961     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5962       IFS=$lt_save_ifs
5963       test -z "$ac_dir" && ac_dir=.
5964       tmp_nm=$ac_dir/$lt_tmp_nm
5965       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5966         # Check to see if the nm accepts a BSD-compat flag.
5967         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5968         #   nm: unknown option "B" ignored
5969         # Tru64's nm complains that /dev/null is an invalid object file
5970         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5971         case $build_os in
5972         mingw*) lt_bad_file=conftest.nm/nofile ;;
5973         *) lt_bad_file=/dev/null ;;
5974         esac
5975         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5976         *$lt_bad_file* | *'Invalid file or object type'*)
5977           lt_cv_path_NM="$tmp_nm -B"
5978           break 2
5979           ;;
5980         *)
5981           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5982           */dev/null*)
5983             lt_cv_path_NM="$tmp_nm -p"
5984             break 2
5985             ;;
5986           *)
5987             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5988             continue # so that we can try to find one that supports BSD flags
5989             ;;
5990           esac
5991           ;;
5992         esac
5993       fi
5994     done
5995     IFS=$lt_save_ifs
5996   done
5997   : ${lt_cv_path_NM=no}
5998 fi
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6001 $as_echo "$lt_cv_path_NM" >&6; }
6002 if test no != "$lt_cv_path_NM"; then
6003   NM=$lt_cv_path_NM
6004 else
6005   # Didn't find any BSD compatible name lister, look for dumpbin.
6006   if test -n "$DUMPBIN"; then :
6007     # Let the user override the test.
6008   else
6009     if test -n "$ac_tool_prefix"; then
6010   for ac_prog in dumpbin "link -dump"
6011   do
6012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_DUMPBIN+:} false; then :
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if test -n "$DUMPBIN"; then
6020   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027     for ac_exec_ext in '' $ac_executable_extensions; do
6028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034   done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 DUMPBIN=$ac_cv_prog_DUMPBIN
6040 if test -n "$DUMPBIN"; then
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6042 $as_echo "$DUMPBIN" >&6; }
6043 else
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049     test -n "$DUMPBIN" && break
6050   done
6051 fi
6052 if test -z "$DUMPBIN"; then
6053   ac_ct_DUMPBIN=$DUMPBIN
6054   for ac_prog in dumpbin "link -dump"
6055 do
6056   # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$ac_ct_DUMPBIN"; then
6064   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6084 if test -n "$ac_ct_DUMPBIN"; then
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6086 $as_echo "$ac_ct_DUMPBIN" >&6; }
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093   test -n "$ac_ct_DUMPBIN" && break
6094 done
6095
6096   if test "x$ac_ct_DUMPBIN" = x; then
6097     DUMPBIN=":"
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     DUMPBIN=$ac_ct_DUMPBIN
6106   fi
6107 fi
6108
6109     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6110     *COFF*)
6111       DUMPBIN="$DUMPBIN -symbols -headers"
6112       ;;
6113     *)
6114       DUMPBIN=:
6115       ;;
6116     esac
6117   fi
6118
6119   if test : != "$DUMPBIN"; then
6120     NM=$DUMPBIN
6121   fi
6122 fi
6123 test -z "$NM" && NM=nm
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6132 if ${lt_cv_nm_interface+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   lt_cv_nm_interface="BSD nm"
6136   echo "int some_variable = 0;" > conftest.$ac_ext
6137   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6138   (eval "$ac_compile" 2>conftest.err)
6139   cat conftest.err >&5
6140   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6141   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6142   cat conftest.err >&5
6143   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6144   cat conftest.out >&5
6145   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6146     lt_cv_nm_interface="MS dumpbin"
6147   fi
6148   rm -f conftest*
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6151 $as_echo "$lt_cv_nm_interface" >&6; }
6152
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6154 $as_echo_n "checking whether ln -s works... " >&6; }
6155 LN_S=$as_ln_s
6156 if test "$LN_S" = "ln -s"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6158 $as_echo "yes" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6161 $as_echo "no, using $LN_S" >&6; }
6162 fi
6163
6164 # find the maximum length of command line arguments
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6167 if ${lt_cv_sys_max_cmd_len+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170     i=0
6171   teststring=ABCD
6172
6173   case $build_os in
6174   msdosdjgpp*)
6175     # On DJGPP, this test can blow up pretty badly due to problems in libc
6176     # (any single argument exceeding 2000 bytes causes a buffer overrun
6177     # during glob expansion).  Even if it were fixed, the result of this
6178     # check would be larger than it should be.
6179     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6180     ;;
6181
6182   gnu*)
6183     # Under GNU Hurd, this test is not required because there is
6184     # no limit to the length of command line arguments.
6185     # Libtool will interpret -1 as no limit whatsoever
6186     lt_cv_sys_max_cmd_len=-1;
6187     ;;
6188
6189   cygwin* | mingw* | cegcc*)
6190     # On Win9x/ME, this test blows up -- it succeeds, but takes
6191     # about 5 minutes as the teststring grows exponentially.
6192     # Worse, since 9x/ME are not pre-emptively multitasking,
6193     # you end up with a "frozen" computer, even though with patience
6194     # the test eventually succeeds (with a max line length of 256k).
6195     # Instead, let's just punt: use the minimum linelength reported by
6196     # all of the supported platforms: 8192 (on NT/2K/XP).
6197     lt_cv_sys_max_cmd_len=8192;
6198     ;;
6199
6200   mint*)
6201     # On MiNT this can take a long time and run out of memory.
6202     lt_cv_sys_max_cmd_len=8192;
6203     ;;
6204
6205   amigaos*)
6206     # On AmigaOS with pdksh, this test takes hours, literally.
6207     # So we just punt and use a minimum line length of 8192.
6208     lt_cv_sys_max_cmd_len=8192;
6209     ;;
6210
6211   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6212     # This has been around since 386BSD, at least.  Likely further.
6213     if test -x /sbin/sysctl; then
6214       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6215     elif test -x /usr/sbin/sysctl; then
6216       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6217     else
6218       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6219     fi
6220     # And add a safety zone
6221     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6223     ;;
6224
6225   interix*)
6226     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6227     lt_cv_sys_max_cmd_len=196608
6228     ;;
6229
6230   os2*)
6231     # The test takes a long time on OS/2.
6232     lt_cv_sys_max_cmd_len=8192
6233     ;;
6234
6235   osf*)
6236     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6237     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6238     # nice to cause kernel panics so lets avoid the loop below.
6239     # First set a reasonable default.
6240     lt_cv_sys_max_cmd_len=16384
6241     #
6242     if test -x /sbin/sysconfig; then
6243       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6244         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6245       esac
6246     fi
6247     ;;
6248   sco3.2v5*)
6249     lt_cv_sys_max_cmd_len=102400
6250     ;;
6251   sysv5* | sco5v6* | sysv4.2uw2*)
6252     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6253     if test -n "$kargmax"; then
6254       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6255     else
6256       lt_cv_sys_max_cmd_len=32768
6257     fi
6258     ;;
6259   *)
6260     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6261     if test -n "$lt_cv_sys_max_cmd_len" && \
6262        test undefined != "$lt_cv_sys_max_cmd_len"; then
6263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265     else
6266       # Make teststring a little bigger before we do anything with it.
6267       # a 1K string should be a reasonable start.
6268       for i in 1 2 3 4 5 6 7 8; do
6269         teststring=$teststring$teststring
6270       done
6271       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272       # If test is not a shell built-in, we'll probably end up computing a
6273       # maximum length that is only half of the actual maximum length, but
6274       # we can't tell.
6275       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6276                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6277               test 17 != "$i" # 1/2 MB should be enough
6278       do
6279         i=`expr $i + 1`
6280         teststring=$teststring$teststring
6281       done
6282       # Only check the string length outside the loop.
6283       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6284       teststring=
6285       # Add a significant safety factor because C++ compilers can tack on
6286       # massive amounts of additional arguments before passing them to the
6287       # linker.  It appears as though 1/2 is a usable value.
6288       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6289     fi
6290     ;;
6291   esac
6292
6293 fi
6294
6295 if test -n "$lt_cv_sys_max_cmd_len"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6300 $as_echo "none" >&6; }
6301 fi
6302 max_cmd_len=$lt_cv_sys_max_cmd_len
6303
6304
6305
6306
6307
6308
6309 : ${CP="cp -f"}
6310 : ${MV="mv -f"}
6311 : ${RM="rm -f"}
6312
6313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314   lt_unset=unset
6315 else
6316   lt_unset=false
6317 fi
6318
6319
6320
6321
6322
6323 # test EBCDIC or ASCII
6324 case `echo X|tr X '\101'` in
6325  A) # ASCII based system
6326     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327   lt_SP2NL='tr \040 \012'
6328   lt_NL2SP='tr \015\012 \040\040'
6329   ;;
6330  *) # EBCDIC based system
6331   lt_SP2NL='tr \100 \n'
6332   lt_NL2SP='tr \r\n \100\100'
6333   ;;
6334 esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6345 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6346 if ${lt_cv_to_host_file_cmd+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   case $host in
6350   *-*-mingw* )
6351     case $build in
6352       *-*-mingw* ) # actually msys
6353         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6354         ;;
6355       *-*-cygwin* )
6356         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6357         ;;
6358       * ) # otherwise, assume *nix
6359         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6360         ;;
6361     esac
6362     ;;
6363   *-*-cygwin* )
6364     case $build in
6365       *-*-mingw* ) # actually msys
6366         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6367         ;;
6368       *-*-cygwin* )
6369         lt_cv_to_host_file_cmd=func_convert_file_noop
6370         ;;
6371       * ) # otherwise, assume *nix
6372         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6373         ;;
6374     esac
6375     ;;
6376   * ) # unhandled hosts (and "normal" native builds)
6377     lt_cv_to_host_file_cmd=func_convert_file_noop
6378     ;;
6379 esac
6380
6381 fi
6382
6383 to_host_file_cmd=$lt_cv_to_host_file_cmd
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6385 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6392 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6393 if ${lt_cv_to_tool_file_cmd+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   #assume ordinary cross tools, or native build.
6397 lt_cv_to_tool_file_cmd=func_convert_file_noop
6398 case $host in
6399   *-*-mingw* )
6400     case $build in
6401       *-*-mingw* ) # actually msys
6402         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6403         ;;
6404     esac
6405     ;;
6406 esac
6407
6408 fi
6409
6410 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6412 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6419 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6420 if ${lt_cv_ld_reload_flag+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   lt_cv_ld_reload_flag='-r'
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6426 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6427 reload_flag=$lt_cv_ld_reload_flag
6428 case $reload_flag in
6429 "" | " "*) ;;
6430 *) reload_flag=" $reload_flag" ;;
6431 esac
6432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6433 case $host_os in
6434   cygwin* | mingw* | pw32* | cegcc*)
6435     if test yes != "$GCC"; then
6436       reload_cmds=false
6437     fi
6438     ;;
6439   darwin*)
6440     if test yes = "$GCC"; then
6441       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6442     else
6443       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444     fi
6445     ;;
6446 esac
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 if test -n "$ac_tool_prefix"; then
6457   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_OBJDUMP+:} false; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$OBJDUMP"; then
6465   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479   done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 OBJDUMP=$ac_cv_prog_OBJDUMP
6485 if test -n "$OBJDUMP"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6487 $as_echo "$OBJDUMP" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_OBJDUMP"; then
6496   ac_ct_OBJDUMP=$OBJDUMP
6497   # Extract the first word of "objdump", so it can be a program name with args.
6498 set dummy objdump; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   if test -n "$ac_ct_OBJDUMP"; then
6505   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6525 if test -n "$ac_ct_OBJDUMP"; then
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6527 $as_echo "$ac_ct_OBJDUMP" >&6; }
6528 else
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533   if test "x$ac_ct_OBJDUMP" = x; then
6534     OBJDUMP="false"
6535   else
6536     case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542     OBJDUMP=$ac_ct_OBJDUMP
6543   fi
6544 else
6545   OBJDUMP="$ac_cv_prog_OBJDUMP"
6546 fi
6547
6548 test -z "$OBJDUMP" && OBJDUMP=objdump
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6559 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6560 if ${lt_cv_deplibs_check_method+:} false; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   lt_cv_file_magic_cmd='$MAGIC_CMD'
6564 lt_cv_file_magic_test_file=
6565 lt_cv_deplibs_check_method='unknown'
6566 # Need to set the preceding variable on all platforms that support
6567 # interlibrary dependencies.
6568 # 'none' -- dependencies not supported.
6569 # 'unknown' -- same as none, but documents that we really don't know.
6570 # 'pass_all' -- all dependencies passed with no checks.
6571 # 'test_compile' -- check by making test program.
6572 # 'file_magic [[regex]]' -- check by looking for files in library path
6573 # that responds to the $file_magic_cmd with a given extended regex.
6574 # If you have 'file' or equivalent on your system and you're not sure
6575 # whether 'pass_all' will *always* work, you probably want this one.
6576
6577 case $host_os in
6578 aix[4-9]*)
6579   lt_cv_deplibs_check_method=pass_all
6580   ;;
6581
6582 beos*)
6583   lt_cv_deplibs_check_method=pass_all
6584   ;;
6585
6586 bsdi[45]*)
6587   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6588   lt_cv_file_magic_cmd='/usr/bin/file -L'
6589   lt_cv_file_magic_test_file=/shlib/libc.so
6590   ;;
6591
6592 cygwin*)
6593   # func_win32_libid is a shell function defined in ltmain.sh
6594   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6595   lt_cv_file_magic_cmd='func_win32_libid'
6596   ;;
6597
6598 mingw* | pw32*)
6599   # Base MSYS/MinGW do not provide the 'file' command needed by
6600   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6601   # unless we find 'file', for example because we are cross-compiling.
6602   if ( file / ) >/dev/null 2>&1; then
6603     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6604     lt_cv_file_magic_cmd='func_win32_libid'
6605   else
6606     # Keep this pattern in sync with the one in func_win32_libid.
6607     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6608     lt_cv_file_magic_cmd='$OBJDUMP -f'
6609   fi
6610   ;;
6611
6612 cegcc*)
6613   # use the weaker test based on 'objdump'. See mingw*.
6614   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6615   lt_cv_file_magic_cmd='$OBJDUMP -f'
6616   ;;
6617
6618 darwin* | rhapsody*)
6619   lt_cv_deplibs_check_method=pass_all
6620   ;;
6621
6622 freebsd* | dragonfly*)
6623   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6624     case $host_cpu in
6625     i*86 )
6626       # Not sure whether the presence of OpenBSD here was a mistake.
6627       # Let's accept both of them until this is cleared up.
6628       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6629       lt_cv_file_magic_cmd=/usr/bin/file
6630       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6631       ;;
6632     esac
6633   else
6634     lt_cv_deplibs_check_method=pass_all
6635   fi
6636   ;;
6637
6638 haiku*)
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 hpux10.20* | hpux11*)
6643   lt_cv_file_magic_cmd=/usr/bin/file
6644   case $host_cpu in
6645   ia64*)
6646     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6647     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6648     ;;
6649   hppa*64*)
6650     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]'
6651     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6652     ;;
6653   *)
6654     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6655     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6656     ;;
6657   esac
6658   ;;
6659
6660 interix[3-9]*)
6661   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6662   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6663   ;;
6664
6665 irix5* | irix6* | nonstopux*)
6666   case $LD in
6667   *-32|*"-32 ") libmagic=32-bit;;
6668   *-n32|*"-n32 ") libmagic=N32;;
6669   *-64|*"-64 ") libmagic=64-bit;;
6670   *) libmagic=never-match;;
6671   esac
6672   lt_cv_deplibs_check_method=pass_all
6673   ;;
6674
6675 # This must be glibc/ELF.
6676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6677   lt_cv_deplibs_check_method=pass_all
6678   ;;
6679
6680 netbsd* | netbsdelf*-gnu)
6681   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6683   else
6684     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6685   fi
6686   ;;
6687
6688 newos6*)
6689   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6690   lt_cv_file_magic_cmd=/usr/bin/file
6691   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6692   ;;
6693
6694 *nto* | *qnx*)
6695   lt_cv_deplibs_check_method=pass_all
6696   ;;
6697
6698 openbsd* | bitrig*)
6699   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6700     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6701   else
6702     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6703   fi
6704   ;;
6705
6706 osf3* | osf4* | osf5*)
6707   lt_cv_deplibs_check_method=pass_all
6708   ;;
6709
6710 rdos*)
6711   lt_cv_deplibs_check_method=pass_all
6712   ;;
6713
6714 solaris*)
6715   lt_cv_deplibs_check_method=pass_all
6716   ;;
6717
6718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6719   lt_cv_deplibs_check_method=pass_all
6720   ;;
6721
6722 sysv4 | sysv4.3*)
6723   case $host_vendor in
6724   motorola)
6725     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]'
6726     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6727     ;;
6728   ncr)
6729     lt_cv_deplibs_check_method=pass_all
6730     ;;
6731   sequent)
6732     lt_cv_file_magic_cmd='/bin/file'
6733     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6734     ;;
6735   sni)
6736     lt_cv_file_magic_cmd='/bin/file'
6737     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6738     lt_cv_file_magic_test_file=/lib/libc.so
6739     ;;
6740   siemens)
6741     lt_cv_deplibs_check_method=pass_all
6742     ;;
6743   pc)
6744     lt_cv_deplibs_check_method=pass_all
6745     ;;
6746   esac
6747   ;;
6748
6749 tpf*)
6750   lt_cv_deplibs_check_method=pass_all
6751   ;;
6752 os2*)
6753   lt_cv_deplibs_check_method=pass_all
6754   ;;
6755 esac
6756
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6759 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6760
6761 file_magic_glob=
6762 want_nocaseglob=no
6763 if test "$build" = "$host"; then
6764   case $host_os in
6765   mingw* | pw32*)
6766     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6767       want_nocaseglob=yes
6768     else
6769       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6770     fi
6771     ;;
6772   esac
6773 fi
6774
6775 file_magic_cmd=$lt_cv_file_magic_cmd
6776 deplibs_check_method=$lt_cv_deplibs_check_method
6777 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 if test -n "$ac_tool_prefix"; then
6801   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_DLLTOOL+:} false; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   if test -n "$DLLTOOL"; then
6809   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816     for ac_exec_ext in '' $ac_executable_extensions; do
6817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823   done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 DLLTOOL=$ac_cv_prog_DLLTOOL
6829 if test -n "$DLLTOOL"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6831 $as_echo "$DLLTOOL" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_DLLTOOL"; then
6840   ac_ct_DLLTOOL=$DLLTOOL
6841   # Extract the first word of "dlltool", so it can be a program name with args.
6842 set dummy dlltool; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   if test -n "$ac_ct_DLLTOOL"; then
6849   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856     for ac_exec_ext in '' $ac_executable_extensions; do
6857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863   done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6869 if test -n "$ac_ct_DLLTOOL"; then
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6871 $as_echo "$ac_ct_DLLTOOL" >&6; }
6872 else
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877   if test "x$ac_ct_DLLTOOL" = x; then
6878     DLLTOOL="false"
6879   else
6880     case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886     DLLTOOL=$ac_ct_DLLTOOL
6887   fi
6888 else
6889   DLLTOOL="$ac_cv_prog_DLLTOOL"
6890 fi
6891
6892 test -z "$DLLTOOL" && DLLTOOL=dlltool
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6904 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6905 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   lt_cv_sharedlib_from_linklib_cmd='unknown'
6909
6910 case $host_os in
6911 cygwin* | mingw* | pw32* | cegcc*)
6912   # two different shell functions defined in ltmain.sh;
6913   # decide which one to use based on capabilities of $DLLTOOL
6914   case `$DLLTOOL --help 2>&1` in
6915   *--identify-strict*)
6916     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6917     ;;
6918   *)
6919     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6920     ;;
6921   esac
6922   ;;
6923 *)
6924   # fallback: assume linklib IS sharedlib
6925   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6926   ;;
6927 esac
6928
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6931 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6932 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6933 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6934
6935
6936
6937
6938
6939
6940
6941 if test -n "$ac_tool_prefix"; then
6942   for ac_prog in ar
6943   do
6944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_AR+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$AR"; then
6952   ac_cv_prog_AR="$AR" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 AR=$ac_cv_prog_AR
6972 if test -n "$AR"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6974 $as_echo "$AR" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980
6981     test -n "$AR" && break
6982   done
6983 fi
6984 if test -z "$AR"; then
6985   ac_ct_AR=$AR
6986   for ac_prog in ar
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   if test -n "$ac_ct_AR"; then
6996   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005     ac_cv_prog_ac_ct_AR="$ac_prog"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7016 if test -n "$ac_ct_AR"; then
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7018 $as_echo "$ac_ct_AR" >&6; }
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025   test -n "$ac_ct_AR" && break
7026 done
7027
7028   if test "x$ac_ct_AR" = x; then
7029     AR="false"
7030   else
7031     case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037     AR=$ac_ct_AR
7038   fi
7039 fi
7040
7041 : ${AR=ar}
7042 : ${AR_FLAGS=cru}
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7055 $as_echo_n "checking for archiver @FILE support... " >&6; }
7056 if ${lt_cv_ar_at_file+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   lt_cv_ar_at_file=no
7060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h.  */
7062
7063 int
7064 main ()
7065 {
7066
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_compile "$LINENO"; then :
7072   echo conftest.$ac_objext > conftest.lst
7073       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7074       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7075   (eval $lt_ar_try) 2>&5
7076   ac_status=$?
7077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078   test $ac_status = 0; }
7079       if test 0 -eq "$ac_status"; then
7080         # Ensure the archiver fails upon bogus file names.
7081         rm -f conftest.$ac_objext libconftest.a
7082         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7083   (eval $lt_ar_try) 2>&5
7084   ac_status=$?
7085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086   test $ac_status = 0; }
7087         if test 0 -ne "$ac_status"; then
7088           lt_cv_ar_at_file=@
7089         fi
7090       fi
7091       rm -f conftest.* libconftest.a
7092
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7098 $as_echo "$lt_cv_ar_at_file" >&6; }
7099
7100 if test no = "$lt_cv_ar_at_file"; then
7101   archiver_list_spec=
7102 else
7103   archiver_list_spec=$lt_cv_ar_at_file
7104 fi
7105
7106
7107
7108
7109
7110
7111
7112 if test -n "$ac_tool_prefix"; then
7113   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}strip; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_STRIP+:} false; then :
7118   $as_echo_n "(cached) " >&6
7119 else
7120   if test -n "$STRIP"; then
7121   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128     for ac_exec_ext in '' $ac_executable_extensions; do
7129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135   done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 STRIP=$ac_cv_prog_STRIP
7141 if test -n "$STRIP"; then
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7143 $as_echo "$STRIP" >&6; }
7144 else
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149
7150 fi
7151 if test -z "$ac_cv_prog_STRIP"; then
7152   ac_ct_STRIP=$STRIP
7153   # Extract the first word of "strip", so it can be a program name with args.
7154 set dummy strip; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test -n "$ac_ct_STRIP"; then
7161   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170     ac_cv_prog_ac_ct_STRIP="strip"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7181 if test -n "$ac_ct_STRIP"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7183 $as_echo "$ac_ct_STRIP" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189   if test "x$ac_ct_STRIP" = x; then
7190     STRIP=":"
7191   else
7192     case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198     STRIP=$ac_ct_STRIP
7199   fi
7200 else
7201   STRIP="$ac_cv_prog_STRIP"
7202 fi
7203
7204 test -z "$STRIP" && STRIP=:
7205
7206
7207
7208
7209
7210
7211 if test -n "$ac_tool_prefix"; then
7212   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_RANLIB+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   if test -n "$RANLIB"; then
7220   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225   IFS=$as_save_IFS
7226   test -z "$as_dir" && as_dir=.
7227     for ac_exec_ext in '' $ac_executable_extensions; do
7228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231     break 2
7232   fi
7233 done
7234   done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 RANLIB=$ac_cv_prog_RANLIB
7240 if test -n "$RANLIB"; then
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7242 $as_echo "$RANLIB" >&6; }
7243 else
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248
7249 fi
7250 if test -z "$ac_cv_prog_RANLIB"; then
7251   ac_ct_RANLIB=$RANLIB
7252   # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   if test -n "$ac_ct_RANLIB"; then
7260   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267     for ac_exec_ext in '' $ac_executable_extensions; do
7268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269     ac_cv_prog_ac_ct_RANLIB="ranlib"
7270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274   done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7282 $as_echo "$ac_ct_RANLIB" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288   if test "x$ac_ct_RANLIB" = x; then
7289     RANLIB=":"
7290   else
7291     case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297     RANLIB=$ac_ct_RANLIB
7298   fi
7299 else
7300   RANLIB="$ac_cv_prog_RANLIB"
7301 fi
7302
7303 test -z "$RANLIB" && RANLIB=:
7304
7305
7306
7307
7308
7309
7310 # Determine commands to create old-style static archives.
7311 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7312 old_postinstall_cmds='chmod 644 $oldlib'
7313 old_postuninstall_cmds=
7314
7315 if test -n "$RANLIB"; then
7316   case $host_os in
7317   bitrig* | openbsd*)
7318     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7319     ;;
7320   *)
7321     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7322     ;;
7323   esac
7324   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7325 fi
7326
7327 case $host_os in
7328   darwin*)
7329     lock_old_archive_extraction=yes ;;
7330   *)
7331     lock_old_archive_extraction=no ;;
7332 esac
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 # If no C compiler was specified, use CC.
7373 LTCC=${LTCC-"$CC"}
7374
7375 # If no C compiler flags were specified, use CFLAGS.
7376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377
7378 # Allow CC to be a program name with arguments.
7379 compiler=$CC
7380
7381
7382 # Check for command to grab the raw symbol name followed by C symbol from nm.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7384 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7385 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388
7389 # These are sane defaults that work on at least a few old systems.
7390 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7391
7392 # Character class describing NM global symbol codes.
7393 symcode='[BCDEGRST]'
7394
7395 # Regexp to match symbols that can be accessed directly from C.
7396 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7397
7398 # Define system-specific variables.
7399 case $host_os in
7400 aix*)
7401   symcode='[BCDT]'
7402   ;;
7403 cygwin* | mingw* | pw32* | cegcc*)
7404   symcode='[ABCDGISTW]'
7405   ;;
7406 hpux*)
7407   if test ia64 = "$host_cpu"; then
7408     symcode='[ABCDEGRST]'
7409   fi
7410   ;;
7411 irix* | nonstopux*)
7412   symcode='[BCDEGRST]'
7413   ;;
7414 osf*)
7415   symcode='[BCDEGQRST]'
7416   ;;
7417 solaris*)
7418   symcode='[BDRT]'
7419   ;;
7420 sco3.2v5*)
7421   symcode='[DT]'
7422   ;;
7423 sysv4.2uw2*)
7424   symcode='[DT]'
7425   ;;
7426 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7427   symcode='[ABDT]'
7428   ;;
7429 sysv4)
7430   symcode='[DFNSTU]'
7431   ;;
7432 esac
7433
7434 # If we're using GNU nm, then use its standard symbol codes.
7435 case `$NM -V 2>&1` in
7436 *GNU* | *'with BFD'*)
7437   symcode='[ABCDGIRSTW]' ;;
7438 esac
7439
7440 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7441   # Gets list of data symbols to import.
7442   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7443   # Adjust the below global symbol transforms to fixup imported variables.
7444   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7445   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7446   lt_c_name_lib_hook="\
7447   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7448   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7449 else
7450   # Disable hooks by default.
7451   lt_cv_sys_global_symbol_to_import=
7452   lt_cdecl_hook=
7453   lt_c_name_hook=
7454   lt_c_name_lib_hook=
7455 fi
7456
7457 # Transform an extracted symbol line into a proper C declaration.
7458 # Some systems (esp. on ia64) link data and code symbols differently,
7459 # so use this general approach.
7460 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7461 $lt_cdecl_hook\
7462 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7463 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7464
7465 # Transform an extracted symbol line into symbol name and symbol address
7466 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7467 $lt_c_name_hook\
7468 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7470
7471 # Transform an extracted symbol line into symbol name with lib prefix and
7472 # symbol address.
7473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7474 $lt_c_name_lib_hook\
7475 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7476 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7477 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7478
7479 # Handle CRLF in mingw tool chain
7480 opt_cr=
7481 case $build_os in
7482 mingw*)
7483   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7484   ;;
7485 esac
7486
7487 # Try without a prefix underscore, then with it.
7488 for ac_symprfx in "" "_"; do
7489
7490   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7491   symxfrm="\\1 $ac_symprfx\\2 \\2"
7492
7493   # Write the raw and C identifiers.
7494   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7495     # Fake it for dumpbin and say T for any non-static function,
7496     # D for any global variable and I for any imported variable.
7497     # Also find C++ and __fastcall symbols from MSVC++,
7498     # which start with @ or ?.
7499     lt_cv_sys_global_symbol_pipe="$AWK '"\
7500 "     {last_section=section; section=\$ 3};"\
7501 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7502 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7503 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7504 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7505 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7506 "     \$ 0!~/External *\|/{next};"\
7507 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7508 "     {if(hide[section]) next};"\
7509 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7510 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7511 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7512 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7513 "     ' prfx=^$ac_symprfx"
7514   else
7515     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7516   fi
7517   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7518
7519   # Check to see that the pipe works correctly.
7520   pipe_works=no
7521
7522   rm -f conftest*
7523   cat > conftest.$ac_ext <<_LT_EOF
7524 #ifdef __cplusplus
7525 extern "C" {
7526 #endif
7527 char nm_test_var;
7528 void nm_test_func(void);
7529 void nm_test_func(void){}
7530 #ifdef __cplusplus
7531 }
7532 #endif
7533 int main(){nm_test_var='a';nm_test_func();return(0);}
7534 _LT_EOF
7535
7536   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537   (eval $ac_compile) 2>&5
7538   ac_status=$?
7539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540   test $ac_status = 0; }; then
7541     # Now try to grab the symbols.
7542     nlist=conftest.nm
7543     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7544   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7545   ac_status=$?
7546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547   test $ac_status = 0; } && test -s "$nlist"; then
7548       # Try sorting and uniquifying the output.
7549       if sort "$nlist" | uniq > "$nlist"T; then
7550         mv -f "$nlist"T "$nlist"
7551       else
7552         rm -f "$nlist"T
7553       fi
7554
7555       # Make sure that we snagged all the symbols we need.
7556       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7557         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7558           cat <<_LT_EOF > conftest.$ac_ext
7559 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7560 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7561 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7562    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7563 # define LT_DLSYM_CONST
7564 #elif defined __osf__
7565 /* This system does not cope well with relocations in const data.  */
7566 # define LT_DLSYM_CONST
7567 #else
7568 # define LT_DLSYM_CONST const
7569 #endif
7570
7571 #ifdef __cplusplus
7572 extern "C" {
7573 #endif
7574
7575 _LT_EOF
7576           # Now generate the symbol file.
7577           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7578
7579           cat <<_LT_EOF >> conftest.$ac_ext
7580
7581 /* The mapping between symbol names and symbols.  */
7582 LT_DLSYM_CONST struct {
7583   const char *name;
7584   void       *address;
7585 }
7586 lt__PROGRAM__LTX_preloaded_symbols[] =
7587 {
7588   { "@PROGRAM@", (void *) 0 },
7589 _LT_EOF
7590           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7591           cat <<\_LT_EOF >> conftest.$ac_ext
7592   {0, (void *) 0}
7593 };
7594
7595 /* This works around a problem in FreeBSD linker */
7596 #ifdef FREEBSD_WORKAROUND
7597 static const void *lt_preloaded_setup() {
7598   return lt__PROGRAM__LTX_preloaded_symbols;
7599 }
7600 #endif
7601
7602 #ifdef __cplusplus
7603 }
7604 #endif
7605 _LT_EOF
7606           # Now try linking the two files.
7607           mv conftest.$ac_objext conftstm.$ac_objext
7608           lt_globsym_save_LIBS=$LIBS
7609           lt_globsym_save_CFLAGS=$CFLAGS
7610           LIBS=conftstm.$ac_objext
7611           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7612           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7613   (eval $ac_link) 2>&5
7614   ac_status=$?
7615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7616   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7617             pipe_works=yes
7618           fi
7619           LIBS=$lt_globsym_save_LIBS
7620           CFLAGS=$lt_globsym_save_CFLAGS
7621         else
7622           echo "cannot find nm_test_func in $nlist" >&5
7623         fi
7624       else
7625         echo "cannot find nm_test_var in $nlist" >&5
7626       fi
7627     else
7628       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7629     fi
7630   else
7631     echo "$progname: failed program was:" >&5
7632     cat conftest.$ac_ext >&5
7633   fi
7634   rm -rf conftest* conftst*
7635
7636   # Do not use the global_symbol_pipe unless it works.
7637   if test yes = "$pipe_works"; then
7638     break
7639   else
7640     lt_cv_sys_global_symbol_pipe=
7641   fi
7642 done
7643
7644 fi
7645
7646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7647   lt_cv_sys_global_symbol_to_cdecl=
7648 fi
7649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7651 $as_echo "failed" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7654 $as_echo "ok" >&6; }
7655 fi
7656
7657 # Response file support.
7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659   nm_file_list_spec='@'
7660 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7661   nm_file_list_spec='@'
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7701 $as_echo_n "checking for sysroot... " >&6; }
7702
7703 # Check whether --with-sysroot was given.
7704 if test "${with_sysroot+set}" = set; then :
7705   withval=$with_sysroot;
7706 else
7707   with_sysroot=no
7708 fi
7709
7710
7711 lt_sysroot=
7712 case $with_sysroot in #(
7713  yes)
7714    if test yes = "$GCC"; then
7715      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7716    fi
7717    ;; #(
7718  /*)
7719    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7720    ;; #(
7721  no|'')
7722    ;; #(
7723  *)
7724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7725 $as_echo "$with_sysroot" >&6; }
7726    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7727    ;;
7728 esac
7729
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7731 $as_echo "${lt_sysroot:-no}" >&6; }
7732
7733
7734
7735
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7738 $as_echo_n "checking for a working dd... " >&6; }
7739 if ${ac_cv_path_lt_DD+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   printf 0123456789abcdef0123456789abcdef >conftest.i
7743 cat conftest.i conftest.i >conftest2.i
7744 : ${lt_DD:=$DD}
7745 if test -z "$lt_DD"; then
7746   ac_path_lt_DD_found=false
7747   # Loop through the user's path and test for each of PROGNAME-LIST
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_prog in dd; do
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7756       as_fn_executable_p "$ac_path_lt_DD" || continue
7757 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7758   cmp -s conftest.i conftest.out \
7759   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7760 fi
7761       $ac_path_lt_DD_found && break 3
7762     done
7763   done
7764   done
7765 IFS=$as_save_IFS
7766   if test -z "$ac_cv_path_lt_DD"; then
7767     :
7768   fi
7769 else
7770   ac_cv_path_lt_DD=$lt_DD
7771 fi
7772
7773 rm -f conftest.i conftest2.i conftest.out
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7776 $as_echo "$ac_cv_path_lt_DD" >&6; }
7777
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7780 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7781 if ${lt_cv_truncate_bin+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   printf 0123456789abcdef0123456789abcdef >conftest.i
7785 cat conftest.i conftest.i >conftest2.i
7786 lt_cv_truncate_bin=
7787 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7788   cmp -s conftest.i conftest.out \
7789   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7790 fi
7791 rm -f conftest.i conftest2.i conftest.out
7792 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7795 $as_echo "$lt_cv_truncate_bin" >&6; }
7796
7797
7798
7799
7800
7801
7802
7803 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7804 func_cc_basename ()
7805 {
7806     for cc_temp in $*""; do
7807       case $cc_temp in
7808         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7809         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7810         \-*) ;;
7811         *) break;;
7812       esac
7813     done
7814     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7815 }
7816
7817 # Check whether --enable-libtool-lock was given.
7818 if test "${enable_libtool_lock+set}" = set; then :
7819   enableval=$enable_libtool_lock;
7820 fi
7821
7822 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7823
7824 # Some flags need to be propagated to the compiler or linker for good
7825 # libtool support.
7826 case $host in
7827 ia64-*-hpux*)
7828   # Find out what ABI is being produced by ac_compile, and set mode
7829   # options accordingly.
7830   echo 'int i;' > conftest.$ac_ext
7831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832   (eval $ac_compile) 2>&5
7833   ac_status=$?
7834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835   test $ac_status = 0; }; then
7836     case `/usr/bin/file conftest.$ac_objext` in
7837       *ELF-32*)
7838         HPUX_IA64_MODE=32
7839         ;;
7840       *ELF-64*)
7841         HPUX_IA64_MODE=64
7842         ;;
7843     esac
7844   fi
7845   rm -rf conftest*
7846   ;;
7847 *-*-irix6*)
7848   # Find out what ABI is being produced by ac_compile, and set linker
7849   # options accordingly.
7850   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852   (eval $ac_compile) 2>&5
7853   ac_status=$?
7854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855   test $ac_status = 0; }; then
7856     if test yes = "$lt_cv_prog_gnu_ld"; then
7857       case `/usr/bin/file conftest.$ac_objext` in
7858         *32-bit*)
7859           LD="${LD-ld} -melf32bsmip"
7860           ;;
7861         *N32*)
7862           LD="${LD-ld} -melf32bmipn32"
7863           ;;
7864         *64-bit*)
7865           LD="${LD-ld} -melf64bmip"
7866         ;;
7867       esac
7868     else
7869       case `/usr/bin/file conftest.$ac_objext` in
7870         *32-bit*)
7871           LD="${LD-ld} -32"
7872           ;;
7873         *N32*)
7874           LD="${LD-ld} -n32"
7875           ;;
7876         *64-bit*)
7877           LD="${LD-ld} -64"
7878           ;;
7879       esac
7880     fi
7881   fi
7882   rm -rf conftest*
7883   ;;
7884
7885 mips64*-*linux*)
7886   # Find out what ABI is being produced by ac_compile, and set linker
7887   # options accordingly.
7888   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890   (eval $ac_compile) 2>&5
7891   ac_status=$?
7892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893   test $ac_status = 0; }; then
7894     emul=elf
7895     case `/usr/bin/file conftest.$ac_objext` in
7896       *32-bit*)
7897         emul="${emul}32"
7898         ;;
7899       *64-bit*)
7900         emul="${emul}64"
7901         ;;
7902     esac
7903     case `/usr/bin/file conftest.$ac_objext` in
7904       *MSB*)
7905         emul="${emul}btsmip"
7906         ;;
7907       *LSB*)
7908         emul="${emul}ltsmip"
7909         ;;
7910     esac
7911     case `/usr/bin/file conftest.$ac_objext` in
7912       *N32*)
7913         emul="${emul}n32"
7914         ;;
7915     esac
7916     LD="${LD-ld} -m $emul"
7917   fi
7918   rm -rf conftest*
7919   ;;
7920
7921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7923   # Find out what ABI is being produced by ac_compile, and set linker
7924   # options accordingly.  Note that the listed cases only cover the
7925   # situations where additional linker options are needed (such as when
7926   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7927   # vice versa); the common cases where no linker options are needed do
7928   # not appear in the list.
7929   echo 'int i;' > conftest.$ac_ext
7930   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931   (eval $ac_compile) 2>&5
7932   ac_status=$?
7933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934   test $ac_status = 0; }; then
7935     case `/usr/bin/file conftest.o` in
7936       *32-bit*)
7937         case $host in
7938           x86_64-*kfreebsd*-gnu)
7939             LD="${LD-ld} -m elf_i386_fbsd"
7940             ;;
7941           x86_64-*linux*)
7942             case `/usr/bin/file conftest.o` in
7943               *x86-64*)
7944                 LD="${LD-ld} -m elf32_x86_64"
7945                 ;;
7946               *)
7947                 LD="${LD-ld} -m elf_i386"
7948                 ;;
7949             esac
7950             ;;
7951           powerpc64le-*linux*)
7952             LD="${LD-ld} -m elf32lppclinux"
7953             ;;
7954           powerpc64-*linux*)
7955             LD="${LD-ld} -m elf32ppclinux"
7956             ;;
7957           s390x-*linux*)
7958             LD="${LD-ld} -m elf_s390"
7959             ;;
7960           sparc64-*linux*)
7961             LD="${LD-ld} -m elf32_sparc"
7962             ;;
7963         esac
7964         ;;
7965       *64-bit*)
7966         case $host in
7967           x86_64-*kfreebsd*-gnu)
7968             LD="${LD-ld} -m elf_x86_64_fbsd"
7969             ;;
7970           x86_64-*linux*)
7971             LD="${LD-ld} -m elf_x86_64"
7972             ;;
7973           powerpcle-*linux*)
7974             LD="${LD-ld} -m elf64lppc"
7975             ;;
7976           powerpc-*linux*)
7977             LD="${LD-ld} -m elf64ppc"
7978             ;;
7979           s390*-*linux*|s390*-*tpf*)
7980             LD="${LD-ld} -m elf64_s390"
7981             ;;
7982           sparc*-*linux*)
7983             LD="${LD-ld} -m elf64_sparc"
7984             ;;
7985         esac
7986         ;;
7987     esac
7988   fi
7989   rm -rf conftest*
7990   ;;
7991
7992 *-*-sco3.2v5*)
7993   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7994   SAVE_CFLAGS=$CFLAGS
7995   CFLAGS="$CFLAGS -belf"
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7997 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7998 if ${lt_cv_cc_needs_belf+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   ac_ext=c
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009
8010 int
8011 main ()
8012 {
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019   lt_cv_cc_needs_belf=yes
8020 else
8021   lt_cv_cc_needs_belf=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext \
8024     conftest$ac_exeext conftest.$ac_ext
8025      ac_ext=c
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8033 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8034   if test yes != "$lt_cv_cc_needs_belf"; then
8035     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8036     CFLAGS=$SAVE_CFLAGS
8037   fi
8038   ;;
8039 *-*solaris*)
8040   # Find out what ABI is being produced by ac_compile, and set linker
8041   # options accordingly.
8042   echo 'int i;' > conftest.$ac_ext
8043   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8044   (eval $ac_compile) 2>&5
8045   ac_status=$?
8046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8047   test $ac_status = 0; }; then
8048     case `/usr/bin/file conftest.o` in
8049     *64-bit*)
8050       case $lt_cv_prog_gnu_ld in
8051       yes*)
8052         case $host in
8053         i?86-*-solaris*|x86_64-*-solaris*)
8054           LD="${LD-ld} -m elf_x86_64"
8055           ;;
8056         sparc*-*-solaris*)
8057           LD="${LD-ld} -m elf64_sparc"
8058           ;;
8059         esac
8060         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8061         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8062           LD=${LD-ld}_sol2
8063         fi
8064         ;;
8065       *)
8066         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8067           LD="${LD-ld} -64"
8068         fi
8069         ;;
8070       esac
8071       ;;
8072     esac
8073   fi
8074   rm -rf conftest*
8075   ;;
8076 esac
8077
8078 need_locks=$enable_libtool_lock
8079
8080 if test -n "$ac_tool_prefix"; then
8081   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}mt; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   if test -n "$MANIFEST_TOOL"; then
8089   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8109 if test -n "$MANIFEST_TOOL"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8111 $as_echo "$MANIFEST_TOOL" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 fi
8119 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8120   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8121   # Extract the first word of "mt", so it can be a program name with args.
8122 set dummy mt; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   if test -n "$ac_ct_MANIFEST_TOOL"; then
8129   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8149 if test -n "$ac_ct_MANIFEST_TOOL"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8151 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8158     MANIFEST_TOOL=":"
8159   else
8160     case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8167   fi
8168 else
8169   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8170 fi
8171
8172 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8174 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8175 if ${lt_cv_path_mainfest_tool+:} false; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   lt_cv_path_mainfest_tool=no
8179   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8180   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8181   cat conftest.err >&5
8182   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8183     lt_cv_path_mainfest_tool=yes
8184   fi
8185   rm -f conftest*
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8188 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8189 if test yes != "$lt_cv_path_mainfest_tool"; then
8190   MANIFEST_TOOL=:
8191 fi
8192
8193
8194
8195
8196
8197
8198   case $host_os in
8199     rhapsody* | darwin*)
8200     if test -n "$ac_tool_prefix"; then
8201   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   if test -n "$DSYMUTIL"; then
8209   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8229 if test -n "$DSYMUTIL"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8231 $as_echo "$DSYMUTIL" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238 fi
8239 if test -z "$ac_cv_prog_DSYMUTIL"; then
8240   ac_ct_DSYMUTIL=$DSYMUTIL
8241   # Extract the first word of "dsymutil", so it can be a program name with args.
8242 set dummy dsymutil; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   if test -n "$ac_ct_DSYMUTIL"; then
8249   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8269 if test -n "$ac_ct_DSYMUTIL"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277   if test "x$ac_ct_DSYMUTIL" = x; then
8278     DSYMUTIL=":"
8279   else
8280     case $cross_compiling:$ac_tool_warned in
8281 yes:)
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8285 esac
8286     DSYMUTIL=$ac_ct_DSYMUTIL
8287   fi
8288 else
8289   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8290 fi
8291
8292     if test -n "$ac_tool_prefix"; then
8293   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_NMEDIT+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   if test -n "$NMEDIT"; then
8301   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308     for ac_exec_ext in '' $ac_executable_extensions; do
8309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315   done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 NMEDIT=$ac_cv_prog_NMEDIT
8321 if test -n "$NMEDIT"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8323 $as_echo "$NMEDIT" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 fi
8331 if test -z "$ac_cv_prog_NMEDIT"; then
8332   ac_ct_NMEDIT=$NMEDIT
8333   # Extract the first word of "nmedit", so it can be a program name with args.
8334 set dummy nmedit; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$ac_ct_NMEDIT"; then
8341   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8361 if test -n "$ac_ct_NMEDIT"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8363 $as_echo "$ac_ct_NMEDIT" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369   if test "x$ac_ct_NMEDIT" = x; then
8370     NMEDIT=":"
8371   else
8372     case $cross_compiling:$ac_tool_warned in
8373 yes:)
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8377 esac
8378     NMEDIT=$ac_ct_NMEDIT
8379   fi
8380 else
8381   NMEDIT="$ac_cv_prog_NMEDIT"
8382 fi
8383
8384     if test -n "$ac_tool_prefix"; then
8385   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_LIPO+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$LIPO"; then
8393   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 LIPO=$ac_cv_prog_LIPO
8413 if test -n "$LIPO"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8415 $as_echo "$LIPO" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_LIPO"; then
8424   ac_ct_LIPO=$LIPO
8425   # Extract the first word of "lipo", so it can be a program name with args.
8426 set dummy lipo; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$ac_ct_LIPO"; then
8433   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_ac_ct_LIPO="lipo"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8453 if test -n "$ac_ct_LIPO"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8455 $as_echo "$ac_ct_LIPO" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461   if test "x$ac_ct_LIPO" = x; then
8462     LIPO=":"
8463   else
8464     case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470     LIPO=$ac_ct_LIPO
8471   fi
8472 else
8473   LIPO="$ac_cv_prog_LIPO"
8474 fi
8475
8476     if test -n "$ac_tool_prefix"; then
8477   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8478 set dummy ${ac_tool_prefix}otool; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_OTOOL+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   if test -n "$OTOOL"; then
8485   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492     for ac_exec_ext in '' $ac_executable_extensions; do
8493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499   done
8500 IFS=$as_save_IFS
8501
8502 fi
8503 fi
8504 OTOOL=$ac_cv_prog_OTOOL
8505 if test -n "$OTOOL"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8507 $as_echo "$OTOOL" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514 fi
8515 if test -z "$ac_cv_prog_OTOOL"; then
8516   ac_ct_OTOOL=$OTOOL
8517   # Extract the first word of "otool", so it can be a program name with args.
8518 set dummy otool; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   if test -n "$ac_ct_OTOOL"; then
8525   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_exec_ext in '' $ac_executable_extensions; do
8533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534     ac_cv_prog_ac_ct_OTOOL="otool"
8535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539   done
8540 IFS=$as_save_IFS
8541
8542 fi
8543 fi
8544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8545 if test -n "$ac_ct_OTOOL"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8547 $as_echo "$ac_ct_OTOOL" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553   if test "x$ac_ct_OTOOL" = x; then
8554     OTOOL=":"
8555   else
8556     case $cross_compiling:$ac_tool_warned in
8557 yes:)
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560 ac_tool_warned=yes ;;
8561 esac
8562     OTOOL=$ac_ct_OTOOL
8563   fi
8564 else
8565   OTOOL="$ac_cv_prog_OTOOL"
8566 fi
8567
8568     if test -n "$ac_tool_prefix"; then
8569   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_prog_OTOOL64+:} false; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   if test -n "$OTOOL64"; then
8577   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582   IFS=$as_save_IFS
8583   test -z "$as_dir" && as_dir=.
8584     for ac_exec_ext in '' $ac_executable_extensions; do
8585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588     break 2
8589   fi
8590 done
8591   done
8592 IFS=$as_save_IFS
8593
8594 fi
8595 fi
8596 OTOOL64=$ac_cv_prog_OTOOL64
8597 if test -n "$OTOOL64"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8599 $as_echo "$OTOOL64" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604
8605
8606 fi
8607 if test -z "$ac_cv_prog_OTOOL64"; then
8608   ac_ct_OTOOL64=$OTOOL64
8609   # Extract the first word of "otool64", so it can be a program name with args.
8610 set dummy otool64; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   if test -n "$ac_ct_OTOOL64"; then
8617   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626     ac_cv_prog_ac_ct_OTOOL64="otool64"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8637 if test -n "$ac_ct_OTOOL64"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8639 $as_echo "$ac_ct_OTOOL64" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645   if test "x$ac_ct_OTOOL64" = x; then
8646     OTOOL64=":"
8647   else
8648     case $cross_compiling:$ac_tool_warned in
8649 yes:)
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652 ac_tool_warned=yes ;;
8653 esac
8654     OTOOL64=$ac_ct_OTOOL64
8655   fi
8656 else
8657   OTOOL64="$ac_cv_prog_OTOOL64"
8658 fi
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8687 $as_echo_n "checking for -single_module linker flag... " >&6; }
8688 if ${lt_cv_apple_cc_single_mod+:} false; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   lt_cv_apple_cc_single_mod=no
8692       if test -z "$LT_MULTI_MODULE"; then
8693         # By default we will add the -single_module flag. You can override
8694         # by either setting the environment variable LT_MULTI_MODULE
8695         # non-empty at configure time, or by adding -multi_module to the
8696         # link flags.
8697         rm -rf libconftest.dylib*
8698         echo "int foo(void){return 1;}" > conftest.c
8699         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8700 -dynamiclib -Wl,-single_module conftest.c" >&5
8701         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8702           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8703         _lt_result=$?
8704         # If there is a non-empty error log, and "single_module"
8705         # appears in it, assume the flag caused a linker warning
8706         if test -s conftest.err && $GREP single_module conftest.err; then
8707           cat conftest.err >&5
8708         # Otherwise, if the output was created with a 0 exit code from
8709         # the compiler, it worked.
8710         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8711           lt_cv_apple_cc_single_mod=yes
8712         else
8713           cat conftest.err >&5
8714         fi
8715         rm -rf libconftest.dylib*
8716         rm -f conftest.*
8717       fi
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8721
8722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   lt_cv_ld_exported_symbols_list=no
8728       save_LDFLAGS=$LDFLAGS
8729       echo "_main" > conftest.sym
8730       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h.  */
8733
8734 int
8735 main ()
8736 {
8737
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"; then :
8743   lt_cv_ld_exported_symbols_list=yes
8744 else
8745   lt_cv_ld_exported_symbols_list=no
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext \
8748     conftest$ac_exeext conftest.$ac_ext
8749         LDFLAGS=$save_LDFLAGS
8750
8751 fi
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8754
8755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8756 $as_echo_n "checking for -force_load linker flag... " >&6; }
8757 if ${lt_cv_ld_force_load+:} false; then :
8758   $as_echo_n "(cached) " >&6
8759 else
8760   lt_cv_ld_force_load=no
8761       cat > conftest.c << _LT_EOF
8762 int forced_loaded() { return 2;}
8763 _LT_EOF
8764       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8765       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8766       echo "$AR cru libconftest.a conftest.o" >&5
8767       $AR cru libconftest.a conftest.o 2>&5
8768       echo "$RANLIB libconftest.a" >&5
8769       $RANLIB libconftest.a 2>&5
8770       cat > conftest.c << _LT_EOF
8771 int main() { return 0;}
8772 _LT_EOF
8773       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8774       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8775       _lt_result=$?
8776       if test -s conftest.err && $GREP force_load conftest.err; then
8777         cat conftest.err >&5
8778       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8779         lt_cv_ld_force_load=yes
8780       else
8781         cat conftest.err >&5
8782       fi
8783         rm -f conftest.err libconftest.a conftest conftest.c
8784         rm -rf conftest.dSYM
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8788 $as_echo "$lt_cv_ld_force_load" >&6; }
8789     case $host_os in
8790     rhapsody* | darwin1.[012])
8791       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8792     darwin1.*)
8793       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8794     darwin*) # darwin 5.x on
8795       # if running on 10.5 or later, the deployment target defaults
8796       # to the OS version, if on x86, and 10.4, the deployment
8797       # target defaults to 10.4. Don't you love it?
8798       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8799         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8800           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8801         10.[012][,.]*)
8802           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8803         10.*)
8804           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8805       esac
8806     ;;
8807   esac
8808     if test yes = "$lt_cv_apple_cc_single_mod"; then
8809       _lt_dar_single_mod='$single_module'
8810     fi
8811     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8812       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8813     else
8814       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8815     fi
8816     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8817       _lt_dsymutil='~$DSYMUTIL $lib || :'
8818     else
8819       _lt_dsymutil=
8820     fi
8821     ;;
8822   esac
8823
8824 # func_munge_path_list VARIABLE PATH
8825 # -----------------------------------
8826 # VARIABLE is name of variable containing _space_ separated list of
8827 # directories to be munged by the contents of PATH, which is string
8828 # having a format:
8829 # "DIR[:DIR]:"
8830 #       string "DIR[ DIR]" will be prepended to VARIABLE
8831 # ":DIR[:DIR]"
8832 #       string "DIR[ DIR]" will be appended to VARIABLE
8833 # "DIRP[:DIRP]::[DIRA:]DIRA"
8834 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8835 #       "DIRA[ DIRA]" will be appended to VARIABLE
8836 # "DIR[:DIR]"
8837 #       VARIABLE will be replaced by "DIR[ DIR]"
8838 func_munge_path_list ()
8839 {
8840     case x$2 in
8841     x)
8842         ;;
8843     *:)
8844         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8845         ;;
8846     x:*)
8847         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8848         ;;
8849     *::*)
8850         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8851         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8852         ;;
8853     *)
8854         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8855         ;;
8856     esac
8857 }
8858
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8866 # On Suns, sometimes $CPP names a directory.
8867 if test -n "$CPP" && test -d "$CPP"; then
8868   CPP=
8869 fi
8870 if test -z "$CPP"; then
8871   if ${ac_cv_prog_CPP+:} false; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874       # Double quotes because CPP needs to be expanded
8875     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8876     do
8877       ac_preproc_ok=false
8878 for ac_c_preproc_warn_flag in '' yes
8879 do
8880   # Use a header file that comes with gcc, so configuring glibc
8881   # with a fresh cross-compiler works.
8882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883   # <limits.h> exists even on freestanding compilers.
8884   # On the NeXT, cc -E runs the code through the compiler's parser,
8885   # not just through cpp. "Syntax error" is here to catch this case.
8886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h.  */
8888 #ifdef __STDC__
8889 # include <limits.h>
8890 #else
8891 # include <assert.h>
8892 #endif
8893                      Syntax error
8894 _ACEOF
8895 if ac_fn_c_try_cpp "$LINENO"; then :
8896
8897 else
8898   # Broken: fails on valid input.
8899 continue
8900 fi
8901 rm -f conftest.err conftest.i conftest.$ac_ext
8902
8903   # OK, works on sane cases.  Now check whether nonexistent headers
8904   # can be detected and how.
8905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h.  */
8907 #include <ac_nonexistent.h>
8908 _ACEOF
8909 if ac_fn_c_try_cpp "$LINENO"; then :
8910   # Broken: success on invalid input.
8911 continue
8912 else
8913   # Passes both tests.
8914 ac_preproc_ok=:
8915 break
8916 fi
8917 rm -f conftest.err conftest.i conftest.$ac_ext
8918
8919 done
8920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8921 rm -f conftest.i conftest.err conftest.$ac_ext
8922 if $ac_preproc_ok; then :
8923   break
8924 fi
8925
8926     done
8927     ac_cv_prog_CPP=$CPP
8928
8929 fi
8930   CPP=$ac_cv_prog_CPP
8931 else
8932   ac_cv_prog_CPP=$CPP
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8935 $as_echo "$CPP" >&6; }
8936 ac_preproc_ok=false
8937 for ac_c_preproc_warn_flag in '' yes
8938 do
8939   # Use a header file that comes with gcc, so configuring glibc
8940   # with a fresh cross-compiler works.
8941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942   # <limits.h> exists even on freestanding compilers.
8943   # On the NeXT, cc -E runs the code through the compiler's parser,
8944   # not just through cpp. "Syntax error" is here to catch this case.
8945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h.  */
8947 #ifdef __STDC__
8948 # include <limits.h>
8949 #else
8950 # include <assert.h>
8951 #endif
8952                      Syntax error
8953 _ACEOF
8954 if ac_fn_c_try_cpp "$LINENO"; then :
8955
8956 else
8957   # Broken: fails on valid input.
8958 continue
8959 fi
8960 rm -f conftest.err conftest.i conftest.$ac_ext
8961
8962   # OK, works on sane cases.  Now check whether nonexistent headers
8963   # can be detected and how.
8964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h.  */
8966 #include <ac_nonexistent.h>
8967 _ACEOF
8968 if ac_fn_c_try_cpp "$LINENO"; then :
8969   # Broken: success on invalid input.
8970 continue
8971 else
8972   # Passes both tests.
8973 ac_preproc_ok=:
8974 break
8975 fi
8976 rm -f conftest.err conftest.i conftest.$ac_ext
8977
8978 done
8979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8980 rm -f conftest.i conftest.err conftest.$ac_ext
8981 if $ac_preproc_ok; then :
8982
8983 else
8984   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8986 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8987 See \`config.log' for more details" "$LINENO" 5; }
8988 fi
8989
8990 ac_ext=c
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8995
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8998 $as_echo_n "checking for ANSI C header files... " >&6; }
8999 if ${ac_cv_header_stdc+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h.  */
9004 #include <stdlib.h>
9005 #include <stdarg.h>
9006 #include <string.h>
9007 #include <float.h>
9008
9009 int
9010 main ()
9011 {
9012
9013   ;
9014   return 0;
9015 }
9016 _ACEOF
9017 if ac_fn_c_try_compile "$LINENO"; then :
9018   ac_cv_header_stdc=yes
9019 else
9020   ac_cv_header_stdc=no
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023
9024 if test $ac_cv_header_stdc = yes; then
9025   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028 #include <string.h>
9029
9030 _ACEOF
9031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9032   $EGREP "memchr" >/dev/null 2>&1; then :
9033
9034 else
9035   ac_cv_header_stdc=no
9036 fi
9037 rm -f conftest*
9038
9039 fi
9040
9041 if test $ac_cv_header_stdc = yes; then
9042   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045 #include <stdlib.h>
9046
9047 _ACEOF
9048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049   $EGREP "free" >/dev/null 2>&1; then :
9050
9051 else
9052   ac_cv_header_stdc=no
9053 fi
9054 rm -f conftest*
9055
9056 fi
9057
9058 if test $ac_cv_header_stdc = yes; then
9059   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9060   if test "$cross_compiling" = yes; then :
9061   :
9062 else
9063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h.  */
9065 #include <ctype.h>
9066 #include <stdlib.h>
9067 #if ((' ' & 0x0FF) == 0x020)
9068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9070 #else
9071 # define ISLOWER(c) \
9072                    (('a' <= (c) && (c) <= 'i') \
9073                      || ('j' <= (c) && (c) <= 'r') \
9074                      || ('s' <= (c) && (c) <= 'z'))
9075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9076 #endif
9077
9078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9079 int
9080 main ()
9081 {
9082   int i;
9083   for (i = 0; i < 256; i++)
9084     if (XOR (islower (i), ISLOWER (i))
9085         || toupper (i) != TOUPPER (i))
9086       return 2;
9087   return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_run "$LINENO"; then :
9091
9092 else
9093   ac_cv_header_stdc=no
9094 fi
9095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9096   conftest.$ac_objext conftest.beam conftest.$ac_ext
9097 fi
9098
9099 fi
9100 fi
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9102 $as_echo "$ac_cv_header_stdc" >&6; }
9103 if test $ac_cv_header_stdc = yes; then
9104
9105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9106
9107 fi
9108
9109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9110 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9111                   inttypes.h stdint.h unistd.h
9112 do :
9113   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9115 "
9116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9117   cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119 _ACEOF
9120
9121 fi
9122
9123 done
9124
9125
9126 for ac_header in dlfcn.h
9127 do :
9128   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9129 "
9130 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9131   cat >>confdefs.h <<_ACEOF
9132 #define HAVE_DLFCN_H 1
9133 _ACEOF
9134
9135 fi
9136
9137 done
9138
9139
9140
9141
9142
9143 # Set options
9144 # Check whether --enable-static was given.
9145 if test "${enable_static+set}" = set; then :
9146   enableval=$enable_static; p=${PACKAGE-default}
9147     case $enableval in
9148     yes) enable_static=yes ;;
9149     no) enable_static=no ;;
9150     *)
9151      enable_static=no
9152       # Look at the argument we got.  We use all the common list separators.
9153       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9154       for pkg in $enableval; do
9155         IFS=$lt_save_ifs
9156         if test "X$pkg" = "X$p"; then
9157           enable_static=yes
9158         fi
9159       done
9160       IFS=$lt_save_ifs
9161       ;;
9162     esac
9163 else
9164   enable_static=no
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176         enable_dlopen=no
9177
9178
9179   enable_win32_dll=no
9180
9181
9182             # Check whether --enable-shared was given.
9183 if test "${enable_shared+set}" = set; then :
9184   enableval=$enable_shared; p=${PACKAGE-default}
9185     case $enableval in
9186     yes) enable_shared=yes ;;
9187     no) enable_shared=no ;;
9188     *)
9189       enable_shared=no
9190       # Look at the argument we got.  We use all the common list separators.
9191       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192       for pkg in $enableval; do
9193         IFS=$lt_save_ifs
9194         if test "X$pkg" = "X$p"; then
9195           enable_shared=yes
9196         fi
9197       done
9198       IFS=$lt_save_ifs
9199       ;;
9200     esac
9201 else
9202   enable_shared=yes
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 # Check whether --with-pic was given.
9216 if test "${with_pic+set}" = set; then :
9217   withval=$with_pic; lt_p=${PACKAGE-default}
9218     case $withval in
9219     yes|no) pic_mode=$withval ;;
9220     *)
9221       pic_mode=default
9222       # Look at the argument we got.  We use all the common list separators.
9223       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9224       for lt_pkg in $withval; do
9225         IFS=$lt_save_ifs
9226         if test "X$lt_pkg" = "X$lt_p"; then
9227           pic_mode=yes
9228         fi
9229       done
9230       IFS=$lt_save_ifs
9231       ;;
9232     esac
9233 else
9234   pic_mode=default
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244   # Check whether --enable-fast-install was given.
9245 if test "${enable_fast_install+set}" = set; then :
9246   enableval=$enable_fast_install; p=${PACKAGE-default}
9247     case $enableval in
9248     yes) enable_fast_install=yes ;;
9249     no) enable_fast_install=no ;;
9250     *)
9251       enable_fast_install=no
9252       # Look at the argument we got.  We use all the common list separators.
9253       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9254       for pkg in $enableval; do
9255         IFS=$lt_save_ifs
9256         if test "X$pkg" = "X$p"; then
9257           enable_fast_install=yes
9258         fi
9259       done
9260       IFS=$lt_save_ifs
9261       ;;
9262     esac
9263 else
9264   enable_fast_install=yes
9265 fi
9266
9267
9268
9269
9270
9271
9272
9273
9274   shared_archive_member_spec=
9275 case $host,$enable_shared in
9276 power*-*-aix[5-9]*,yes)
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9278 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9279
9280 # Check whether --with-aix-soname was given.
9281 if test "${with_aix_soname+set}" = set; then :
9282   withval=$with_aix_soname; case $withval in
9283     aix|svr4|both)
9284       ;;
9285     *)
9286       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9287       ;;
9288     esac
9289     lt_cv_with_aix_soname=$with_aix_soname
9290 else
9291   if ${lt_cv_with_aix_soname+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   lt_cv_with_aix_soname=aix
9295 fi
9296
9297     with_aix_soname=$lt_cv_with_aix_soname
9298 fi
9299
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9301 $as_echo "$with_aix_soname" >&6; }
9302   if test aix != "$with_aix_soname"; then
9303     # For the AIX way of multilib, we name the shared archive member
9304     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9305     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9306     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9307     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9308     if test 64 = "${OBJECT_MODE-32}"; then
9309       shared_archive_member_spec=shr_64
9310     else
9311       shared_archive_member_spec=shr
9312     fi
9313   fi
9314   ;;
9315 *)
9316   with_aix_soname=aix
9317   ;;
9318 esac
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS=$ltmain
9331
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364 test -z "$LN_S" && LN_S="ln -s"
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 if test -n "${ZSH_VERSION+set}"; then
9380    setopt NO_GLOB_SUBST
9381 fi
9382
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9384 $as_echo_n "checking for objdir... " >&6; }
9385 if ${lt_cv_objdir+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   rm -f .libs 2>/dev/null
9389 mkdir .libs 2>/dev/null
9390 if test -d .libs; then
9391   lt_cv_objdir=.libs
9392 else
9393   # MS-DOS does not allow filenames that begin with a dot.
9394   lt_cv_objdir=_libs
9395 fi
9396 rmdir .libs 2>/dev/null
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9399 $as_echo "$lt_cv_objdir" >&6; }
9400 objdir=$lt_cv_objdir
9401
9402
9403
9404
9405
9406 cat >>confdefs.h <<_ACEOF
9407 #define LT_OBJDIR "$lt_cv_objdir/"
9408 _ACEOF
9409
9410
9411
9412
9413 case $host_os in
9414 aix3*)
9415   # AIX sometimes has problems with the GCC collect2 program.  For some
9416   # reason, if we set the COLLECT_NAMES environment variable, the problems
9417   # vanish in a puff of smoke.
9418   if test set != "${COLLECT_NAMES+set}"; then
9419     COLLECT_NAMES=
9420     export COLLECT_NAMES
9421   fi
9422   ;;
9423 esac
9424
9425 # Global variables:
9426 ofile=libtool
9427 can_build_shared=yes
9428
9429 # All known linkers require a '.a' archive for static linking (except MSVC,
9430 # which needs '.lib').
9431 libext=a
9432
9433 with_gnu_ld=$lt_cv_prog_gnu_ld
9434
9435 old_CC=$CC
9436 old_CFLAGS=$CFLAGS
9437
9438 # Set sane defaults for various variables
9439 test -z "$CC" && CC=cc
9440 test -z "$LTCC" && LTCC=$CC
9441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9442 test -z "$LD" && LD=ld
9443 test -z "$ac_objext" && ac_objext=o
9444
9445 func_cc_basename $compiler
9446 cc_basename=$func_cc_basename_result
9447
9448
9449 # Only perform the check for file, if the check method requires it
9450 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9451 case $deplibs_check_method in
9452 file_magic*)
9453   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9455 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9456 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9457   $as_echo_n "(cached) " >&6
9458 else
9459   case $MAGIC_CMD in
9460 [\\/*] |  ?:[\\/]*)
9461   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9462   ;;
9463 *)
9464   lt_save_MAGIC_CMD=$MAGIC_CMD
9465   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9466   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9467   for ac_dir in $ac_dummy; do
9468     IFS=$lt_save_ifs
9469     test -z "$ac_dir" && ac_dir=.
9470     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9471       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9472       if test -n "$file_magic_test_file"; then
9473         case $deplibs_check_method in
9474         "file_magic "*)
9475           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9476           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9477           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9478             $EGREP "$file_magic_regex" > /dev/null; then
9479             :
9480           else
9481             cat <<_LT_EOF 1>&2
9482
9483 *** Warning: the command libtool uses to detect shared libraries,
9484 *** $file_magic_cmd, produces output that libtool cannot recognize.
9485 *** The result is that libtool may fail to recognize shared libraries
9486 *** as such.  This will affect the creation of libtool libraries that
9487 *** depend on shared libraries, but programs linked with such libtool
9488 *** libraries will work regardless of this problem.  Nevertheless, you
9489 *** may want to report the problem to your system manager and/or to
9490 *** bug-libtool@gnu.org
9491
9492 _LT_EOF
9493           fi ;;
9494         esac
9495       fi
9496       break
9497     fi
9498   done
9499   IFS=$lt_save_ifs
9500   MAGIC_CMD=$lt_save_MAGIC_CMD
9501   ;;
9502 esac
9503 fi
9504
9505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9506 if test -n "$MAGIC_CMD"; then
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9508 $as_echo "$MAGIC_CMD" >&6; }
9509 else
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9512 fi
9513
9514
9515
9516
9517
9518 if test -z "$lt_cv_path_MAGIC_CMD"; then
9519   if test -n "$ac_tool_prefix"; then
9520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9521 $as_echo_n "checking for file... " >&6; }
9522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   case $MAGIC_CMD in
9526 [\\/*] |  ?:[\\/]*)
9527   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9528   ;;
9529 *)
9530   lt_save_MAGIC_CMD=$MAGIC_CMD
9531   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9532   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9533   for ac_dir in $ac_dummy; do
9534     IFS=$lt_save_ifs
9535     test -z "$ac_dir" && ac_dir=.
9536     if test -f "$ac_dir/file"; then
9537       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9538       if test -n "$file_magic_test_file"; then
9539         case $deplibs_check_method in
9540         "file_magic "*)
9541           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9542           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9543           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9544             $EGREP "$file_magic_regex" > /dev/null; then
9545             :
9546           else
9547             cat <<_LT_EOF 1>&2
9548
9549 *** Warning: the command libtool uses to detect shared libraries,
9550 *** $file_magic_cmd, produces output that libtool cannot recognize.
9551 *** The result is that libtool may fail to recognize shared libraries
9552 *** as such.  This will affect the creation of libtool libraries that
9553 *** depend on shared libraries, but programs linked with such libtool
9554 *** libraries will work regardless of this problem.  Nevertheless, you
9555 *** may want to report the problem to your system manager and/or to
9556 *** bug-libtool@gnu.org
9557
9558 _LT_EOF
9559           fi ;;
9560         esac
9561       fi
9562       break
9563     fi
9564   done
9565   IFS=$lt_save_ifs
9566   MAGIC_CMD=$lt_save_MAGIC_CMD
9567   ;;
9568 esac
9569 fi
9570
9571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9572 if test -n "$MAGIC_CMD"; then
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9574 $as_echo "$MAGIC_CMD" >&6; }
9575 else
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9578 fi
9579
9580
9581   else
9582     MAGIC_CMD=:
9583   fi
9584 fi
9585
9586   fi
9587   ;;
9588 esac
9589
9590 # Use C for the default configuration in the libtool script
9591
9592 lt_save_CC=$CC
9593 ac_ext=c
9594 ac_cpp='$CPP $CPPFLAGS'
9595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9598
9599
9600 # Source file extension for C test sources.
9601 ac_ext=c
9602
9603 # Object file extension for compiled C test sources.
9604 objext=o
9605 objext=$objext
9606
9607 # Code to be used in simple compile tests
9608 lt_simple_compile_test_code="int some_variable = 0;"
9609
9610 # Code to be used in simple link tests
9611 lt_simple_link_test_code='int main(){return(0);}'
9612
9613
9614
9615
9616
9617
9618
9619 # If no C compiler was specified, use CC.
9620 LTCC=${LTCC-"$CC"}
9621
9622 # If no C compiler flags were specified, use CFLAGS.
9623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9624
9625 # Allow CC to be a program name with arguments.
9626 compiler=$CC
9627
9628 # Save the default compiler, since it gets overwritten when the other
9629 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9630 compiler_DEFAULT=$CC
9631
9632 # save warnings/boilerplate of simple test code
9633 ac_outfile=conftest.$ac_objext
9634 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9635 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9636 _lt_compiler_boilerplate=`cat conftest.err`
9637 $RM conftest*
9638
9639 ac_outfile=conftest.$ac_objext
9640 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9641 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9642 _lt_linker_boilerplate=`cat conftest.err`
9643 $RM -r conftest*
9644
9645
9646 ## CAVEAT EMPTOR:
9647 ## There is no encapsulation within the following macros, do not change
9648 ## the running order or otherwise move them around unless you know exactly
9649 ## what you are doing...
9650 if test -n "$compiler"; then
9651
9652 lt_prog_compiler_no_builtin_flag=
9653
9654 if test yes = "$GCC"; then
9655   case $cc_basename in
9656   nvcc*)
9657     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9658   *)
9659     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9660   esac
9661
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   lt_cv_prog_compiler_rtti_exceptions=no
9668    ac_outfile=conftest.$ac_objext
9669    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9671    # Insert the option either (1) after the last *FLAGS variable, or
9672    # (2) before a word containing "conftest.", or (3) at the end.
9673    # Note that $ac_compile itself does not contain backslashes and begins
9674    # with a dollar sign (not a hyphen), so the echo should work correctly.
9675    # The option is referenced via a variable to avoid confusing sed.
9676    lt_compile=`echo "$ac_compile" | $SED \
9677    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679    -e 's:$: $lt_compiler_flag:'`
9680    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681    (eval "$lt_compile" 2>conftest.err)
9682    ac_status=$?
9683    cat conftest.err >&5
9684    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685    if (exit $ac_status) && test -s "$ac_outfile"; then
9686      # The compiler can only warn and ignore the option if not recognized
9687      # So say no if there are warnings other than the usual output.
9688      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9689      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9691        lt_cv_prog_compiler_rtti_exceptions=yes
9692      fi
9693    fi
9694    $RM conftest*
9695
9696 fi
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9698 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9699
9700 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9701     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9702 else
9703     :
9704 fi
9705
9706 fi
9707
9708
9709
9710
9711
9712
9713   lt_prog_compiler_wl=
9714 lt_prog_compiler_pic=
9715 lt_prog_compiler_static=
9716
9717
9718   if test yes = "$GCC"; then
9719     lt_prog_compiler_wl='-Wl,'
9720     lt_prog_compiler_static='-static'
9721
9722     case $host_os in
9723       aix*)
9724       # All AIX code is PIC.
9725       if test ia64 = "$host_cpu"; then
9726         # AIX 5 now supports IA64 processor
9727         lt_prog_compiler_static='-Bstatic'
9728       fi
9729       lt_prog_compiler_pic='-fPIC'
9730       ;;
9731
9732     amigaos*)
9733       case $host_cpu in
9734       powerpc)
9735             # see comment about AmigaOS4 .so support
9736             lt_prog_compiler_pic='-fPIC'
9737         ;;
9738       m68k)
9739             # FIXME: we need at least 68020 code to build shared libraries, but
9740             # adding the '-m68020' flag to GCC prevents building anything better,
9741             # like '-m68040'.
9742             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9743         ;;
9744       esac
9745       ;;
9746
9747     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9748       # PIC is the default for these OSes.
9749       ;;
9750
9751     mingw* | cygwin* | pw32* | os2* | cegcc*)
9752       # This hack is so that the source file can tell whether it is being
9753       # built for inclusion in a dll (and should export symbols for example).
9754       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9755       # (--disable-auto-import) libraries
9756       lt_prog_compiler_pic='-DDLL_EXPORT'
9757       case $host_os in
9758       os2*)
9759         lt_prog_compiler_static='$wl-static'
9760         ;;
9761       esac
9762       ;;
9763
9764     darwin* | rhapsody*)
9765       # PIC is the default on this platform
9766       # Common symbols not allowed in MH_DYLIB files
9767       lt_prog_compiler_pic='-fno-common'
9768       ;;
9769
9770     haiku*)
9771       # PIC is the default for Haiku.
9772       # The "-static" flag exists, but is broken.
9773       lt_prog_compiler_static=
9774       ;;
9775
9776     hpux*)
9777       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9778       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9779       # sets the default TLS model and affects inlining.
9780       case $host_cpu in
9781       hppa*64*)
9782         # +Z the default
9783         ;;
9784       *)
9785         lt_prog_compiler_pic='-fPIC'
9786         ;;
9787       esac
9788       ;;
9789
9790     interix[3-9]*)
9791       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9792       # Instead, we relocate shared libraries at runtime.
9793       ;;
9794
9795     msdosdjgpp*)
9796       # Just because we use GCC doesn't mean we suddenly get shared libraries
9797       # on systems that don't support them.
9798       lt_prog_compiler_can_build_shared=no
9799       enable_shared=no
9800       ;;
9801
9802     *nto* | *qnx*)
9803       # QNX uses GNU C++, but need to define -shared option too, otherwise
9804       # it will coredump.
9805       lt_prog_compiler_pic='-fPIC -shared'
9806       ;;
9807
9808     sysv4*MP*)
9809       if test -d /usr/nec; then
9810         lt_prog_compiler_pic=-Kconform_pic
9811       fi
9812       ;;
9813
9814     *)
9815       lt_prog_compiler_pic='-fPIC'
9816       ;;
9817     esac
9818
9819     case $cc_basename in
9820     nvcc*) # Cuda Compiler Driver 2.2
9821       lt_prog_compiler_wl='-Xlinker '
9822       if test -n "$lt_prog_compiler_pic"; then
9823         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9824       fi
9825       ;;
9826     esac
9827   else
9828     # PORTME Check for flag to pass linker flags through the system compiler.
9829     case $host_os in
9830     aix*)
9831       lt_prog_compiler_wl='-Wl,'
9832       if test ia64 = "$host_cpu"; then
9833         # AIX 5 now supports IA64 processor
9834         lt_prog_compiler_static='-Bstatic'
9835       else
9836         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9837       fi
9838       ;;
9839
9840     darwin* | rhapsody*)
9841       # PIC is the default on this platform
9842       # Common symbols not allowed in MH_DYLIB files
9843       lt_prog_compiler_pic='-fno-common'
9844       case $cc_basename in
9845       nagfor*)
9846         # NAG Fortran compiler
9847         lt_prog_compiler_wl='-Wl,-Wl,,'
9848         lt_prog_compiler_pic='-PIC'
9849         lt_prog_compiler_static='-Bstatic'
9850         ;;
9851       esac
9852       ;;
9853
9854     mingw* | cygwin* | pw32* | os2* | cegcc*)
9855       # This hack is so that the source file can tell whether it is being
9856       # built for inclusion in a dll (and should export symbols for example).
9857       lt_prog_compiler_pic='-DDLL_EXPORT'
9858       case $host_os in
9859       os2*)
9860         lt_prog_compiler_static='$wl-static'
9861         ;;
9862       esac
9863       ;;
9864
9865     hpux9* | hpux10* | hpux11*)
9866       lt_prog_compiler_wl='-Wl,'
9867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9868       # not for PA HP-UX.
9869       case $host_cpu in
9870       hppa*64*|ia64*)
9871         # +Z the default
9872         ;;
9873       *)
9874         lt_prog_compiler_pic='+Z'
9875         ;;
9876       esac
9877       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9878       lt_prog_compiler_static='$wl-a ${wl}archive'
9879       ;;
9880
9881     irix5* | irix6* | nonstopux*)
9882       lt_prog_compiler_wl='-Wl,'
9883       # PIC (with -KPIC) is the default.
9884       lt_prog_compiler_static='-non_shared'
9885       ;;
9886
9887     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9888       case $cc_basename in
9889       # old Intel for x86_64, which still supported -KPIC.
9890       ecc*)
9891         lt_prog_compiler_wl='-Wl,'
9892         lt_prog_compiler_pic='-KPIC'
9893         lt_prog_compiler_static='-static'
9894         ;;
9895       # icc used to be incompatible with GCC.
9896       # ICC 10 doesn't accept -KPIC any more.
9897       icc* | ifort*)
9898         lt_prog_compiler_wl='-Wl,'
9899         lt_prog_compiler_pic='-fPIC'
9900         lt_prog_compiler_static='-static'
9901         ;;
9902       # Lahey Fortran 8.1.
9903       lf95*)
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='--shared'
9906         lt_prog_compiler_static='--static'
9907         ;;
9908       nagfor*)
9909         # NAG Fortran compiler
9910         lt_prog_compiler_wl='-Wl,-Wl,,'
9911         lt_prog_compiler_pic='-PIC'
9912         lt_prog_compiler_static='-Bstatic'
9913         ;;
9914       tcc*)
9915         # Fabrice Bellard et al's Tiny C Compiler
9916         lt_prog_compiler_wl='-Wl,'
9917         lt_prog_compiler_pic='-fPIC'
9918         lt_prog_compiler_static='-static'
9919         ;;
9920       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9921         # Portland Group compilers (*not* the Pentium gcc compiler,
9922         # which looks to be a dead project)
9923         lt_prog_compiler_wl='-Wl,'
9924         lt_prog_compiler_pic='-fpic'
9925         lt_prog_compiler_static='-Bstatic'
9926         ;;
9927       ccc*)
9928         lt_prog_compiler_wl='-Wl,'
9929         # All Alpha code is PIC.
9930         lt_prog_compiler_static='-non_shared'
9931         ;;
9932       xl* | bgxl* | bgf* | mpixl*)
9933         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9934         lt_prog_compiler_wl='-Wl,'
9935         lt_prog_compiler_pic='-qpic'
9936         lt_prog_compiler_static='-qstaticlink'
9937         ;;
9938       *)
9939         case `$CC -V 2>&1 | sed 5q` in
9940         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9941           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9942           lt_prog_compiler_pic='-KPIC'
9943           lt_prog_compiler_static='-Bstatic'
9944           lt_prog_compiler_wl=''
9945           ;;
9946         *Sun\ F* | *Sun*Fortran*)
9947           lt_prog_compiler_pic='-KPIC'
9948           lt_prog_compiler_static='-Bstatic'
9949           lt_prog_compiler_wl='-Qoption ld '
9950           ;;
9951         *Sun\ C*)
9952           # Sun C 5.9
9953           lt_prog_compiler_pic='-KPIC'
9954           lt_prog_compiler_static='-Bstatic'
9955           lt_prog_compiler_wl='-Wl,'
9956           ;;
9957         *Intel*\ [CF]*Compiler*)
9958           lt_prog_compiler_wl='-Wl,'
9959           lt_prog_compiler_pic='-fPIC'
9960           lt_prog_compiler_static='-static'
9961           ;;
9962         *Portland\ Group*)
9963           lt_prog_compiler_wl='-Wl,'
9964           lt_prog_compiler_pic='-fpic'
9965           lt_prog_compiler_static='-Bstatic'
9966           ;;
9967         esac
9968         ;;
9969       esac
9970       ;;
9971
9972     newsos6)
9973       lt_prog_compiler_pic='-KPIC'
9974       lt_prog_compiler_static='-Bstatic'
9975       ;;
9976
9977     *nto* | *qnx*)
9978       # QNX uses GNU C++, but need to define -shared option too, otherwise
9979       # it will coredump.
9980       lt_prog_compiler_pic='-fPIC -shared'
9981       ;;
9982
9983     osf3* | osf4* | osf5*)
9984       lt_prog_compiler_wl='-Wl,'
9985       # All OSF/1 code is PIC.
9986       lt_prog_compiler_static='-non_shared'
9987       ;;
9988
9989     rdos*)
9990       lt_prog_compiler_static='-non_shared'
9991       ;;
9992
9993     solaris*)
9994       lt_prog_compiler_pic='-KPIC'
9995       lt_prog_compiler_static='-Bstatic'
9996       case $cc_basename in
9997       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9998         lt_prog_compiler_wl='-Qoption ld ';;
9999       *)
10000         lt_prog_compiler_wl='-Wl,';;
10001       esac
10002       ;;
10003
10004     sunos4*)
10005       lt_prog_compiler_wl='-Qoption ld '
10006       lt_prog_compiler_pic='-PIC'
10007       lt_prog_compiler_static='-Bstatic'
10008       ;;
10009
10010     sysv4 | sysv4.2uw2* | sysv4.3*)
10011       lt_prog_compiler_wl='-Wl,'
10012       lt_prog_compiler_pic='-KPIC'
10013       lt_prog_compiler_static='-Bstatic'
10014       ;;
10015
10016     sysv4*MP*)
10017       if test -d /usr/nec; then
10018         lt_prog_compiler_pic='-Kconform_pic'
10019         lt_prog_compiler_static='-Bstatic'
10020       fi
10021       ;;
10022
10023     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10024       lt_prog_compiler_wl='-Wl,'
10025       lt_prog_compiler_pic='-KPIC'
10026       lt_prog_compiler_static='-Bstatic'
10027       ;;
10028
10029     unicos*)
10030       lt_prog_compiler_wl='-Wl,'
10031       lt_prog_compiler_can_build_shared=no
10032       ;;
10033
10034     uts4*)
10035       lt_prog_compiler_pic='-pic'
10036       lt_prog_compiler_static='-Bstatic'
10037       ;;
10038
10039     *)
10040       lt_prog_compiler_can_build_shared=no
10041       ;;
10042     esac
10043   fi
10044
10045 case $host_os in
10046   # For platforms that do not support PIC, -DPIC is meaningless:
10047   *djgpp*)
10048     lt_prog_compiler_pic=
10049     ;;
10050   *)
10051     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10052     ;;
10053 esac
10054
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10057 if ${lt_cv_prog_compiler_pic+:} false; then :
10058   $as_echo_n "(cached) " >&6
10059 else
10060   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10063 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10064 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10065
10066 #
10067 # Check to make sure the PIC flag actually works.
10068 #
10069 if test -n "$lt_prog_compiler_pic"; then
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10072 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   lt_cv_prog_compiler_pic_works=no
10076    ac_outfile=conftest.$ac_objext
10077    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10078    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10079    # Insert the option either (1) after the last *FLAGS variable, or
10080    # (2) before a word containing "conftest.", or (3) at the end.
10081    # Note that $ac_compile itself does not contain backslashes and begins
10082    # with a dollar sign (not a hyphen), so the echo should work correctly.
10083    # The option is referenced via a variable to avoid confusing sed.
10084    lt_compile=`echo "$ac_compile" | $SED \
10085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10087    -e 's:$: $lt_compiler_flag:'`
10088    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10089    (eval "$lt_compile" 2>conftest.err)
10090    ac_status=$?
10091    cat conftest.err >&5
10092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093    if (exit $ac_status) && test -s "$ac_outfile"; then
10094      # The compiler can only warn and ignore the option if not recognized
10095      # So say no if there are warnings other than the usual output.
10096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10097      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10098      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10099        lt_cv_prog_compiler_pic_works=yes
10100      fi
10101    fi
10102    $RM conftest*
10103
10104 fi
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10106 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10107
10108 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10109     case $lt_prog_compiler_pic in
10110      "" | " "*) ;;
10111      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10112      esac
10113 else
10114     lt_prog_compiler_pic=
10115      lt_prog_compiler_can_build_shared=no
10116 fi
10117
10118 fi
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 #
10131 # Check to make sure the static flag actually works.
10132 #
10133 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10135 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10136 if ${lt_cv_prog_compiler_static_works+:} false; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   lt_cv_prog_compiler_static_works=no
10140    save_LDFLAGS=$LDFLAGS
10141    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10142    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10143    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10144      # The linker can only warn and ignore the option if not recognized
10145      # So say no if there are warnings
10146      if test -s conftest.err; then
10147        # Append any errors to the config.log.
10148        cat conftest.err 1>&5
10149        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10150        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10151        if diff conftest.exp conftest.er2 >/dev/null; then
10152          lt_cv_prog_compiler_static_works=yes
10153        fi
10154      else
10155        lt_cv_prog_compiler_static_works=yes
10156      fi
10157    fi
10158    $RM -r conftest*
10159    LDFLAGS=$save_LDFLAGS
10160
10161 fi
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10163 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10164
10165 if test yes = "$lt_cv_prog_compiler_static_works"; then
10166     :
10167 else
10168     lt_prog_compiler_static=
10169 fi
10170
10171
10172
10173
10174
10175
10176
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10179 if ${lt_cv_prog_compiler_c_o+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   lt_cv_prog_compiler_c_o=no
10183    $RM -r conftest 2>/dev/null
10184    mkdir conftest
10185    cd conftest
10186    mkdir out
10187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10188
10189    lt_compiler_flag="-o out/conftest2.$ac_objext"
10190    # Insert the option either (1) after the last *FLAGS variable, or
10191    # (2) before a word containing "conftest.", or (3) at the end.
10192    # Note that $ac_compile itself does not contain backslashes and begins
10193    # with a dollar sign (not a hyphen), so the echo should work correctly.
10194    lt_compile=`echo "$ac_compile" | $SED \
10195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10197    -e 's:$: $lt_compiler_flag:'`
10198    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10199    (eval "$lt_compile" 2>out/conftest.err)
10200    ac_status=$?
10201    cat out/conftest.err >&5
10202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10204    then
10205      # The compiler can only warn and ignore the option if not recognized
10206      # So say no if there are warnings
10207      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10208      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10209      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10210        lt_cv_prog_compiler_c_o=yes
10211      fi
10212    fi
10213    chmod u+w . 2>&5
10214    $RM conftest*
10215    # SGI C++ compiler will create directory out/ii_files/ for
10216    # template instantiation
10217    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10218    $RM out/* && rmdir out
10219    cd ..
10220    $RM -r conftest
10221    $RM conftest*
10222
10223 fi
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10225 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10226
10227
10228
10229
10230
10231
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10234 if ${lt_cv_prog_compiler_c_o+:} false; then :
10235   $as_echo_n "(cached) " >&6
10236 else
10237   lt_cv_prog_compiler_c_o=no
10238    $RM -r conftest 2>/dev/null
10239    mkdir conftest
10240    cd conftest
10241    mkdir out
10242    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10243
10244    lt_compiler_flag="-o out/conftest2.$ac_objext"
10245    # Insert the option either (1) after the last *FLAGS variable, or
10246    # (2) before a word containing "conftest.", or (3) at the end.
10247    # Note that $ac_compile itself does not contain backslashes and begins
10248    # with a dollar sign (not a hyphen), so the echo should work correctly.
10249    lt_compile=`echo "$ac_compile" | $SED \
10250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10252    -e 's:$: $lt_compiler_flag:'`
10253    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10254    (eval "$lt_compile" 2>out/conftest.err)
10255    ac_status=$?
10256    cat out/conftest.err >&5
10257    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10259    then
10260      # The compiler can only warn and ignore the option if not recognized
10261      # So say no if there are warnings
10262      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10263      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10264      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10265        lt_cv_prog_compiler_c_o=yes
10266      fi
10267    fi
10268    chmod u+w . 2>&5
10269    $RM conftest*
10270    # SGI C++ compiler will create directory out/ii_files/ for
10271    # template instantiation
10272    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10273    $RM out/* && rmdir out
10274    cd ..
10275    $RM -r conftest
10276    $RM conftest*
10277
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10280 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10281
10282
10283
10284
10285 hard_links=nottested
10286 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10287   # do not overwrite the value of need_locks provided by the user
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10289 $as_echo_n "checking if we can lock with hard links... " >&6; }
10290   hard_links=yes
10291   $RM conftest*
10292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10293   touch conftest.a
10294   ln conftest.a conftest.b 2>&5 || hard_links=no
10295   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10297 $as_echo "$hard_links" >&6; }
10298   if test no = "$hard_links"; then
10299     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10300 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10301     need_locks=warn
10302   fi
10303 else
10304   need_locks=no
10305 fi
10306
10307
10308
10309
10310
10311
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10313 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10314
10315   runpath_var=
10316   allow_undefined_flag=
10317   always_export_symbols=no
10318   archive_cmds=
10319   archive_expsym_cmds=
10320   compiler_needs_object=no
10321   enable_shared_with_static_runtimes=no
10322   export_dynamic_flag_spec=
10323   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10324   hardcode_automatic=no
10325   hardcode_direct=no
10326   hardcode_direct_absolute=no
10327   hardcode_libdir_flag_spec=
10328   hardcode_libdir_separator=
10329   hardcode_minus_L=no
10330   hardcode_shlibpath_var=unsupported
10331   inherit_rpath=no
10332   link_all_deplibs=unknown
10333   module_cmds=
10334   module_expsym_cmds=
10335   old_archive_from_new_cmds=
10336   old_archive_from_expsyms_cmds=
10337   thread_safe_flag_spec=
10338   whole_archive_flag_spec=
10339   # include_expsyms should be a list of space-separated symbols to be *always*
10340   # included in the symbol list
10341   include_expsyms=
10342   # exclude_expsyms can be an extended regexp of symbols to exclude
10343   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10344   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10345   # as well as any symbol that contains 'd'.
10346   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10347   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10348   # platforms (ab)use it in PIC code, but their linkers get confused if
10349   # the symbol is explicitly referenced.  Since portable code cannot
10350   # rely on this symbol name, it's probably fine to never include it in
10351   # preloaded symbol tables.
10352   # Exclude shared library initialization/finalization symbols.
10353   extract_expsyms_cmds=
10354
10355   case $host_os in
10356   cygwin* | mingw* | pw32* | cegcc*)
10357     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10358     # When not using gcc, we currently assume that we are using
10359     # Microsoft Visual C++.
10360     if test yes != "$GCC"; then
10361       with_gnu_ld=no
10362     fi
10363     ;;
10364   interix*)
10365     # we just hope/assume this is gcc and not c89 (= MSVC++)
10366     with_gnu_ld=yes
10367     ;;
10368   openbsd* | bitrig*)
10369     with_gnu_ld=no
10370     ;;
10371   linux* | k*bsd*-gnu | gnu*)
10372     link_all_deplibs=no
10373     ;;
10374   esac
10375
10376   ld_shlibs=yes
10377
10378   # On some targets, GNU ld is compatible enough with the native linker
10379   # that we're better off using the native interface for both.
10380   lt_use_gnu_ld_interface=no
10381   if test yes = "$with_gnu_ld"; then
10382     case $host_os in
10383       aix*)
10384         # The AIX port of GNU ld has always aspired to compatibility
10385         # with the native linker.  However, as the warning in the GNU ld
10386         # block says, versions before 2.19.5* couldn't really create working
10387         # shared libraries, regardless of the interface used.
10388         case `$LD -v 2>&1` in
10389           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10390           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10391           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10392           *)
10393             lt_use_gnu_ld_interface=yes
10394             ;;
10395         esac
10396         ;;
10397       *)
10398         lt_use_gnu_ld_interface=yes
10399         ;;
10400     esac
10401   fi
10402
10403   if test yes = "$lt_use_gnu_ld_interface"; then
10404     # If archive_cmds runs LD, not CC, wlarc should be empty
10405     wlarc='$wl'
10406
10407     # Set some defaults for GNU ld with shared library support. These
10408     # are reset later if shared libraries are not supported. Putting them
10409     # here allows them to be overridden if necessary.
10410     runpath_var=LD_RUN_PATH
10411     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10412     export_dynamic_flag_spec='$wl--export-dynamic'
10413     # ancient GNU ld didn't support --whole-archive et. al.
10414     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10415       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10416     else
10417       whole_archive_flag_spec=
10418     fi
10419     supports_anon_versioning=no
10420     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10421       *GNU\ gold*) supports_anon_versioning=yes ;;
10422       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10423       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10424       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10425       *\ 2.11.*) ;; # other 2.11 versions
10426       *) supports_anon_versioning=yes ;;
10427     esac
10428
10429     # See if GNU ld supports shared libraries.
10430     case $host_os in
10431     aix[3-9]*)
10432       # On AIX/PPC, the GNU linker is very broken
10433       if test ia64 != "$host_cpu"; then
10434         ld_shlibs=no
10435         cat <<_LT_EOF 1>&2
10436
10437 *** Warning: the GNU linker, at least up to release 2.19, is reported
10438 *** to be unable to reliably create shared libraries on AIX.
10439 *** Therefore, libtool is disabling shared libraries support.  If you
10440 *** really care for shared libraries, you may want to install binutils
10441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10442 *** You will then need to restart the configuration process.
10443
10444 _LT_EOF
10445       fi
10446       ;;
10447
10448     amigaos*)
10449       case $host_cpu in
10450       powerpc)
10451             # see comment about AmigaOS4 .so support
10452             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10453             archive_expsym_cmds=''
10454         ;;
10455       m68k)
10456             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)'
10457             hardcode_libdir_flag_spec='-L$libdir'
10458             hardcode_minus_L=yes
10459         ;;
10460       esac
10461       ;;
10462
10463     beos*)
10464       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10465         allow_undefined_flag=unsupported
10466         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10467         # support --undefined.  This deserves some investigation.  FIXME
10468         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10469       else
10470         ld_shlibs=no
10471       fi
10472       ;;
10473
10474     cygwin* | mingw* | pw32* | cegcc*)
10475       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10476       # as there is no search path for DLLs.
10477       hardcode_libdir_flag_spec='-L$libdir'
10478       export_dynamic_flag_spec='$wl--export-all-symbols'
10479       allow_undefined_flag=unsupported
10480       always_export_symbols=no
10481       enable_shared_with_static_runtimes=yes
10482       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'
10483       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10484
10485       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10487         # If the export-symbols file already is a .def file, use it as
10488         # is; otherwise, prepend EXPORTS...
10489         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10490           cp $export_symbols $output_objdir/$soname.def;
10491         else
10492           echo EXPORTS > $output_objdir/$soname.def;
10493           cat $export_symbols >> $output_objdir/$soname.def;
10494         fi~
10495         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10496       else
10497         ld_shlibs=no
10498       fi
10499       ;;
10500
10501     haiku*)
10502       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10503       link_all_deplibs=yes
10504       ;;
10505
10506     os2*)
10507       hardcode_libdir_flag_spec='-L$libdir'
10508       hardcode_minus_L=yes
10509       allow_undefined_flag=unsupported
10510       shrext_cmds=.dll
10511       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10512         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10513         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10514         $ECHO EXPORTS >> $output_objdir/$libname.def~
10515         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10516         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10517         emximp -o $lib $output_objdir/$libname.def'
10518       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10519         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10520         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10521         $ECHO EXPORTS >> $output_objdir/$libname.def~
10522         prefix_cmds="$SED"~
10523         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10524           prefix_cmds="$prefix_cmds -e 1d";
10525         fi~
10526         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10527         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10528         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10529         emximp -o $lib $output_objdir/$libname.def'
10530       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10531       enable_shared_with_static_runtimes=yes
10532       ;;
10533
10534     interix[3-9]*)
10535       hardcode_direct=no
10536       hardcode_shlibpath_var=no
10537       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10538       export_dynamic_flag_spec='$wl-E'
10539       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10540       # Instead, shared libraries are loaded at an image base (0x10000000 by
10541       # default) and relocated if they conflict, which is a slow very memory
10542       # consuming and fragmenting process.  To avoid this, we pick a random,
10543       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10544       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10545       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10546       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'
10547       ;;
10548
10549     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10550       tmp_diet=no
10551       if test linux-dietlibc = "$host_os"; then
10552         case $cc_basename in
10553           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10554         esac
10555       fi
10556       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10557          && test no = "$tmp_diet"
10558       then
10559         tmp_addflag=' $pic_flag'
10560         tmp_sharedflag='-shared'
10561         case $cc_basename,$host_cpu in
10562         pgcc*)                          # Portland Group C compiler
10563           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'
10564           tmp_addflag=' $pic_flag'
10565           ;;
10566         pgf77* | pgf90* | pgf95* | pgfortran*)
10567                                         # Portland Group f77 and f90 compilers
10568           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'
10569           tmp_addflag=' $pic_flag -Mnomain' ;;
10570         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10571           tmp_addflag=' -i_dynamic' ;;
10572         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10573           tmp_addflag=' -i_dynamic -nofor_main' ;;
10574         ifc* | ifort*)                  # Intel Fortran compiler
10575           tmp_addflag=' -nofor_main' ;;
10576         lf95*)                          # Lahey Fortran 8.1
10577           whole_archive_flag_spec=
10578           tmp_sharedflag='--shared' ;;
10579         nagfor*)                        # NAGFOR 5.3
10580           tmp_sharedflag='-Wl,-shared' ;;
10581         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10582           tmp_sharedflag='-qmkshrobj'
10583           tmp_addflag= ;;
10584         nvcc*)  # Cuda Compiler Driver 2.2
10585           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'
10586           compiler_needs_object=yes
10587           ;;
10588         esac
10589         case `$CC -V 2>&1 | sed 5q` in
10590         *Sun\ C*)                       # Sun C 5.9
10591           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'
10592           compiler_needs_object=yes
10593           tmp_sharedflag='-G' ;;
10594         *Sun\ F*)                       # Sun Fortran 8.3
10595           tmp_sharedflag='-G' ;;
10596         esac
10597         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10598
10599         if test yes = "$supports_anon_versioning"; then
10600           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10601             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10602             echo "local: *; };" >> $output_objdir/$libname.ver~
10603             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10604         fi
10605
10606         case $cc_basename in
10607         tcc*)
10608           export_dynamic_flag_spec='-rdynamic'
10609           ;;
10610         xlf* | bgf* | bgxlf* | mpixlf*)
10611           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10612           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10613           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10614           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10615           if test yes = "$supports_anon_versioning"; then
10616             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10617               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10618               echo "local: *; };" >> $output_objdir/$libname.ver~
10619               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10620           fi
10621           ;;
10622         esac
10623       else
10624         ld_shlibs=no
10625       fi
10626       ;;
10627
10628     netbsd* | netbsdelf*-gnu)
10629       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10630         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10631         wlarc=
10632       else
10633         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10634         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10635       fi
10636       ;;
10637
10638     solaris*)
10639       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10640         ld_shlibs=no
10641         cat <<_LT_EOF 1>&2
10642
10643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10644 *** create shared libraries on Solaris systems.  Therefore, libtool
10645 *** is disabling shared libraries support.  We urge you to upgrade GNU
10646 *** binutils to release 2.9.1 or newer.  Another option is to modify
10647 *** your PATH or compiler configuration so that the native linker is
10648 *** used, and then restart.
10649
10650 _LT_EOF
10651       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10652         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10653         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10654       else
10655         ld_shlibs=no
10656       fi
10657       ;;
10658
10659     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10660       case `$LD -v 2>&1` in
10661         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10662         ld_shlibs=no
10663         cat <<_LT_EOF 1>&2
10664
10665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10666 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10667 *** is disabling shared libraries support.  We urge you to upgrade GNU
10668 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10669 *** your PATH or compiler configuration so that the native linker is
10670 *** used, and then restart.
10671
10672 _LT_EOF
10673         ;;
10674         *)
10675           # For security reasons, it is highly recommended that you always
10676           # use absolute paths for naming shared libraries, and exclude the
10677           # DT_RUNPATH tag from executables and libraries.  But doing so
10678           # requires that you compile everything twice, which is a pain.
10679           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10680             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10682             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10683           else
10684             ld_shlibs=no
10685           fi
10686         ;;
10687       esac
10688       ;;
10689
10690     sunos4*)
10691       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10692       wlarc=
10693       hardcode_direct=yes
10694       hardcode_shlibpath_var=no
10695       ;;
10696
10697     *)
10698       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10699         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10700         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10701       else
10702         ld_shlibs=no
10703       fi
10704       ;;
10705     esac
10706
10707     if test no = "$ld_shlibs"; then
10708       runpath_var=
10709       hardcode_libdir_flag_spec=
10710       export_dynamic_flag_spec=
10711       whole_archive_flag_spec=
10712     fi
10713   else
10714     # PORTME fill in a description of your system's linker (not GNU ld)
10715     case $host_os in
10716     aix3*)
10717       allow_undefined_flag=unsupported
10718       always_export_symbols=yes
10719       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'
10720       # Note: this linker hardcodes the directories in LIBPATH if there
10721       # are no directories specified by -L.
10722       hardcode_minus_L=yes
10723       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10724         # Neither direct hardcoding nor static linking is supported with a
10725         # broken collect2.
10726         hardcode_direct=unsupported
10727       fi
10728       ;;
10729
10730     aix[4-9]*)
10731       if test ia64 = "$host_cpu"; then
10732         # On IA64, the linker does run time linking by default, so we don't
10733         # have to do anything special.
10734         aix_use_runtimelinking=no
10735         exp_sym_flag='-Bexport'
10736         no_entry_flag=
10737       else
10738         # If we're using GNU nm, then we don't want the "-C" option.
10739         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10740         # Without the "-l" option, or with the "-B" option, AIX nm treats
10741         # weak defined symbols like other global defined symbols, whereas
10742         # GNU nm marks them as "W".
10743         # While the 'weak' keyword is ignored in the Export File, we need
10744         # it in the Import File for the 'aix-soname' feature, so we have
10745         # to replace the "-B" option with "-P" for AIX nm.
10746         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10747           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'
10748         else
10749           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'
10750         fi
10751         aix_use_runtimelinking=no
10752
10753         # Test if we are trying to use run time linking or normal
10754         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10755         # have runtime linking enabled, and use it for executables.
10756         # For shared libraries, we enable/disable runtime linking
10757         # depending on the kind of the shared library created -
10758         # when "with_aix_soname,aix_use_runtimelinking" is:
10759         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10760         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10761         #            lib.a           static archive
10762         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10763         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10764         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10765         #            lib.a(lib.so.V) shared, rtl:no
10766         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10767         #            lib.a           static archive
10768         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10769           for ld_flag in $LDFLAGS; do
10770           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10771             aix_use_runtimelinking=yes
10772             break
10773           fi
10774           done
10775           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10776             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10777             # so we don't have lib.a shared libs to link our executables.
10778             # We have to force runtime linking in this case.
10779             aix_use_runtimelinking=yes
10780             LDFLAGS="$LDFLAGS -Wl,-brtl"
10781           fi
10782           ;;
10783         esac
10784
10785         exp_sym_flag='-bexport'
10786         no_entry_flag='-bnoentry'
10787       fi
10788
10789       # When large executables or shared objects are built, AIX ld can
10790       # have problems creating the table of contents.  If linking a library
10791       # or program results in "error TOC overflow" add -mminimal-toc to
10792       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10793       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10794
10795       archive_cmds=''
10796       hardcode_direct=yes
10797       hardcode_direct_absolute=yes
10798       hardcode_libdir_separator=':'
10799       link_all_deplibs=yes
10800       file_list_spec='$wl-f,'
10801       case $with_aix_soname,$aix_use_runtimelinking in
10802       aix,*) ;; # traditional, no import file
10803       svr4,* | *,yes) # use import file
10804         # The Import File defines what to hardcode.
10805         hardcode_direct=no
10806         hardcode_direct_absolute=no
10807         ;;
10808       esac
10809
10810       if test yes = "$GCC"; then
10811         case $host_os in aix4.[012]|aix4.[012].*)
10812         # We only want to do this on AIX 4.2 and lower, the check
10813         # below for broken collect2 doesn't work under 4.3+
10814           collect2name=`$CC -print-prog-name=collect2`
10815           if test -f "$collect2name" &&
10816            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10817           then
10818           # We have reworked collect2
10819           :
10820           else
10821           # We have old collect2
10822           hardcode_direct=unsupported
10823           # It fails to find uninstalled libraries when the uninstalled
10824           # path is not listed in the libpath.  Setting hardcode_minus_L
10825           # to unsupported forces relinking
10826           hardcode_minus_L=yes
10827           hardcode_libdir_flag_spec='-L$libdir'
10828           hardcode_libdir_separator=
10829           fi
10830           ;;
10831         esac
10832         shared_flag='-shared'
10833         if test yes = "$aix_use_runtimelinking"; then
10834           shared_flag="$shared_flag "'$wl-G'
10835         fi
10836         # Need to ensure runtime linking is disabled for the traditional
10837         # shared library, or the linker may eventually find shared libraries
10838         # /with/ Import File - we do not want to mix them.
10839         shared_flag_aix='-shared'
10840         shared_flag_svr4='-shared $wl-G'
10841       else
10842         # not using gcc
10843         if test ia64 = "$host_cpu"; then
10844         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10845         # chokes on -Wl,-G. The following line is correct:
10846           shared_flag='-G'
10847         else
10848           if test yes = "$aix_use_runtimelinking"; then
10849             shared_flag='$wl-G'
10850           else
10851             shared_flag='$wl-bM:SRE'
10852           fi
10853           shared_flag_aix='$wl-bM:SRE'
10854           shared_flag_svr4='$wl-G'
10855         fi
10856       fi
10857
10858       export_dynamic_flag_spec='$wl-bexpall'
10859       # It seems that -bexpall does not export symbols beginning with
10860       # underscore (_), so it is better to generate a list of symbols to export.
10861       always_export_symbols=yes
10862       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10863         # Warning - without using the other runtime loading flags (-brtl),
10864         # -berok will link without error, but may produce a broken library.
10865         allow_undefined_flag='-berok'
10866         # Determine the default libpath from the value encoded in an
10867         # empty executable.
10868         if test set = "${lt_cv_aix_libpath+set}"; then
10869   aix_libpath=$lt_cv_aix_libpath
10870 else
10871   if ${lt_cv_aix_libpath_+:} false; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 int
10878 main ()
10879 {
10880
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886
10887   lt_aix_libpath_sed='
10888       /Import File Strings/,/^$/ {
10889           /^0/ {
10890               s/^0  *\([^ ]*\) *$/\1/
10891               p
10892           }
10893       }'
10894   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10895   # Check for a 64-bit object if we didn't find anything.
10896   if test -z "$lt_cv_aix_libpath_"; then
10897     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10898   fi
10899 fi
10900 rm -f core conftest.err conftest.$ac_objext \
10901     conftest$ac_exeext conftest.$ac_ext
10902   if test -z "$lt_cv_aix_libpath_"; then
10903     lt_cv_aix_libpath_=/usr/lib:/lib
10904   fi
10905
10906 fi
10907
10908   aix_libpath=$lt_cv_aix_libpath_
10909 fi
10910
10911         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10912         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
10913       else
10914         if test ia64 = "$host_cpu"; then
10915           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10916           allow_undefined_flag="-z nodefs"
10917           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"
10918         else
10919          # Determine the default libpath from the value encoded in an
10920          # empty executable.
10921          if test set = "${lt_cv_aix_libpath+set}"; then
10922   aix_libpath=$lt_cv_aix_libpath
10923 else
10924   if ${lt_cv_aix_libpath_+:} false; then :
10925   $as_echo_n "(cached) " >&6
10926 else
10927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929
10930 int
10931 main ()
10932 {
10933
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 if ac_fn_c_try_link "$LINENO"; then :
10939
10940   lt_aix_libpath_sed='
10941       /Import File Strings/,/^$/ {
10942           /^0/ {
10943               s/^0  *\([^ ]*\) *$/\1/
10944               p
10945           }
10946       }'
10947   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948   # Check for a 64-bit object if we didn't find anything.
10949   if test -z "$lt_cv_aix_libpath_"; then
10950     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10951   fi
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext \
10954     conftest$ac_exeext conftest.$ac_ext
10955   if test -z "$lt_cv_aix_libpath_"; then
10956     lt_cv_aix_libpath_=/usr/lib:/lib
10957   fi
10958
10959 fi
10960
10961   aix_libpath=$lt_cv_aix_libpath_
10962 fi
10963
10964          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10965           # Warning - without using the other run time loading flags,
10966           # -berok will link without error, but may produce a broken library.
10967           no_undefined_flag=' $wl-bernotok'
10968           allow_undefined_flag=' $wl-berok'
10969           if test yes = "$with_gnu_ld"; then
10970             # We only use this code for GNU lds that support --whole-archive.
10971             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10972           else
10973             # Exported symbols can be pulled into shared objects from archives
10974             whole_archive_flag_spec='$convenience'
10975           fi
10976           archive_cmds_need_lc=yes
10977           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10978           # -brtl affects multiple linker settings, -berok does not and is overridden later
10979           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10980           if test svr4 != "$with_aix_soname"; then
10981             # This is similar to how AIX traditionally builds its shared libraries.
10982             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'
10983           fi
10984           if test aix != "$with_aix_soname"; then
10985             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'
10986           else
10987             # used by -dlpreopen to get the symbols
10988             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10989           fi
10990           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10991         fi
10992       fi
10993       ;;
10994
10995     amigaos*)
10996       case $host_cpu in
10997       powerpc)
10998             # see comment about AmigaOS4 .so support
10999             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11000             archive_expsym_cmds=''
11001         ;;
11002       m68k)
11003             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)'
11004             hardcode_libdir_flag_spec='-L$libdir'
11005             hardcode_minus_L=yes
11006         ;;
11007       esac
11008       ;;
11009
11010     bsdi[45]*)
11011       export_dynamic_flag_spec=-rdynamic
11012       ;;
11013
11014     cygwin* | mingw* | pw32* | cegcc*)
11015       # When not using gcc, we currently assume that we are using
11016       # Microsoft Visual C++.
11017       # hardcode_libdir_flag_spec is actually meaningless, as there is
11018       # no search path for DLLs.
11019       case $cc_basename in
11020       cl*)
11021         # Native MSVC
11022         hardcode_libdir_flag_spec=' '
11023         allow_undefined_flag=unsupported
11024         always_export_symbols=yes
11025         file_list_spec='@'
11026         # Tell ltmain to make .lib files, not .a files.
11027         libext=lib
11028         # Tell ltmain to make .dll files, not .so files.
11029         shrext_cmds=.dll
11030         # FIXME: Setting linknames here is a bad hack.
11031         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11032         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11033             cp "$export_symbols" "$output_objdir/$soname.def";
11034             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11035           else
11036             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11037           fi~
11038           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11039           linknames='
11040         # The linker will not automatically build a static lib if we build a DLL.
11041         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11042         enable_shared_with_static_runtimes=yes
11043         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11044         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11045         # Don't use ranlib
11046         old_postinstall_cmds='chmod 644 $oldlib'
11047         postlink_cmds='lt_outputfile="@OUTPUT@"~
11048           lt_tool_outputfile="@TOOL_OUTPUT@"~
11049           case $lt_outputfile in
11050             *.exe|*.EXE) ;;
11051             *)
11052               lt_outputfile=$lt_outputfile.exe
11053               lt_tool_outputfile=$lt_tool_outputfile.exe
11054               ;;
11055           esac~
11056           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11057             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11058             $RM "$lt_outputfile.manifest";
11059           fi'
11060         ;;
11061       *)
11062         # Assume MSVC wrapper
11063         hardcode_libdir_flag_spec=' '
11064         allow_undefined_flag=unsupported
11065         # Tell ltmain to make .lib files, not .a files.
11066         libext=lib
11067         # Tell ltmain to make .dll files, not .so files.
11068         shrext_cmds=.dll
11069         # FIXME: Setting linknames here is a bad hack.
11070         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11071         # The linker will automatically build a .lib file if we build a DLL.
11072         old_archive_from_new_cmds='true'
11073         # FIXME: Should let the user specify the lib program.
11074         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11075         enable_shared_with_static_runtimes=yes
11076         ;;
11077       esac
11078       ;;
11079
11080     darwin* | rhapsody*)
11081
11082
11083   archive_cmds_need_lc=no
11084   hardcode_direct=no
11085   hardcode_automatic=yes
11086   hardcode_shlibpath_var=unsupported
11087   if test yes = "$lt_cv_ld_force_load"; then
11088     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\"`'
11089
11090   else
11091     whole_archive_flag_spec=''
11092   fi
11093   link_all_deplibs=yes
11094   allow_undefined_flag=$_lt_dar_allow_undefined
11095   case $cc_basename in
11096      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11097      *) _lt_dar_can_shared=$GCC ;;
11098   esac
11099   if test yes = "$_lt_dar_can_shared"; then
11100     output_verbose_link_cmd=func_echo_all
11101     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11102     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11103     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"
11104     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"
11105
11106   else
11107   ld_shlibs=no
11108   fi
11109
11110       ;;
11111
11112     dgux*)
11113       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114       hardcode_libdir_flag_spec='-L$libdir'
11115       hardcode_shlibpath_var=no
11116       ;;
11117
11118     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11119     # support.  Future versions do this automatically, but an explicit c++rt0.o
11120     # does not break anything, and helps significantly (at the cost of a little
11121     # extra space).
11122     freebsd2.2*)
11123       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11124       hardcode_libdir_flag_spec='-R$libdir'
11125       hardcode_direct=yes
11126       hardcode_shlibpath_var=no
11127       ;;
11128
11129     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11130     freebsd2.*)
11131       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11132       hardcode_direct=yes
11133       hardcode_minus_L=yes
11134       hardcode_shlibpath_var=no
11135       ;;
11136
11137     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11138     freebsd* | dragonfly*)
11139       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11140       hardcode_libdir_flag_spec='-R$libdir'
11141       hardcode_direct=yes
11142       hardcode_shlibpath_var=no
11143       ;;
11144
11145     hpux9*)
11146       if test yes = "$GCC"; then
11147         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'
11148       else
11149         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'
11150       fi
11151       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11152       hardcode_libdir_separator=:
11153       hardcode_direct=yes
11154
11155       # hardcode_minus_L: Not really in the search PATH,
11156       # but as the default location of the library.
11157       hardcode_minus_L=yes
11158       export_dynamic_flag_spec='$wl-E'
11159       ;;
11160
11161     hpux10*)
11162       if test yes,no = "$GCC,$with_gnu_ld"; then
11163         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11164       else
11165         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11166       fi
11167       if test no = "$with_gnu_ld"; then
11168         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11169         hardcode_libdir_separator=:
11170         hardcode_direct=yes
11171         hardcode_direct_absolute=yes
11172         export_dynamic_flag_spec='$wl-E'
11173         # hardcode_minus_L: Not really in the search PATH,
11174         # but as the default location of the library.
11175         hardcode_minus_L=yes
11176       fi
11177       ;;
11178
11179     hpux11*)
11180       if test yes,no = "$GCC,$with_gnu_ld"; then
11181         case $host_cpu in
11182         hppa*64*)
11183           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11184           ;;
11185         ia64*)
11186           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11187           ;;
11188         *)
11189           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11190           ;;
11191         esac
11192       else
11193         case $host_cpu in
11194         hppa*64*)
11195           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11196           ;;
11197         ia64*)
11198           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11199           ;;
11200         *)
11201
11202           # Older versions of the 11.00 compiler do not understand -b yet
11203           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11204           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11205 $as_echo_n "checking if $CC understands -b... " >&6; }
11206 if ${lt_cv_prog_compiler__b+:} false; then :
11207   $as_echo_n "(cached) " >&6
11208 else
11209   lt_cv_prog_compiler__b=no
11210    save_LDFLAGS=$LDFLAGS
11211    LDFLAGS="$LDFLAGS -b"
11212    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11213    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11214      # The linker can only warn and ignore the option if not recognized
11215      # So say no if there are warnings
11216      if test -s conftest.err; then
11217        # Append any errors to the config.log.
11218        cat conftest.err 1>&5
11219        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11220        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11221        if diff conftest.exp conftest.er2 >/dev/null; then
11222          lt_cv_prog_compiler__b=yes
11223        fi
11224      else
11225        lt_cv_prog_compiler__b=yes
11226      fi
11227    fi
11228    $RM -r conftest*
11229    LDFLAGS=$save_LDFLAGS
11230
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11233 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11234
11235 if test yes = "$lt_cv_prog_compiler__b"; then
11236     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11237 else
11238     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11239 fi
11240
11241           ;;
11242         esac
11243       fi
11244       if test no = "$with_gnu_ld"; then
11245         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11246         hardcode_libdir_separator=:
11247
11248         case $host_cpu in
11249         hppa*64*|ia64*)
11250           hardcode_direct=no
11251           hardcode_shlibpath_var=no
11252           ;;
11253         *)
11254           hardcode_direct=yes
11255           hardcode_direct_absolute=yes
11256           export_dynamic_flag_spec='$wl-E'
11257
11258           # hardcode_minus_L: Not really in the search PATH,
11259           # but as the default location of the library.
11260           hardcode_minus_L=yes
11261           ;;
11262         esac
11263       fi
11264       ;;
11265
11266     irix5* | irix6* | nonstopux*)
11267       if test yes = "$GCC"; then
11268         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'
11269         # Try to use the -exported_symbol ld option, if it does not
11270         # work, assume that -exports_file does not work either and
11271         # implicitly export all symbols.
11272         # This should be the same for all languages, so no per-tag cache variable.
11273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11274 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11275 if ${lt_cv_irix_exported_symbol+:} false; then :
11276   $as_echo_n "(cached) " >&6
11277 else
11278   save_LDFLAGS=$LDFLAGS
11279            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11280            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h.  */
11282 int foo (void) { return 0; }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285   lt_cv_irix_exported_symbol=yes
11286 else
11287   lt_cv_irix_exported_symbol=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290     conftest$ac_exeext conftest.$ac_ext
11291            LDFLAGS=$save_LDFLAGS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11294 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11295         if test yes = "$lt_cv_irix_exported_symbol"; then
11296           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'
11297         fi
11298         link_all_deplibs=no
11299       else
11300         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'
11301         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'
11302       fi
11303       archive_cmds_need_lc='no'
11304       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11305       hardcode_libdir_separator=:
11306       inherit_rpath=yes
11307       link_all_deplibs=yes
11308       ;;
11309
11310     linux*)
11311       case $cc_basename in
11312       tcc*)
11313         # Fabrice Bellard et al's Tiny C Compiler
11314         ld_shlibs=yes
11315         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11316         ;;
11317       esac
11318       ;;
11319
11320     netbsd* | netbsdelf*-gnu)
11321       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11322         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11323       else
11324         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11325       fi
11326       hardcode_libdir_flag_spec='-R$libdir'
11327       hardcode_direct=yes
11328       hardcode_shlibpath_var=no
11329       ;;
11330
11331     newsos6)
11332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333       hardcode_direct=yes
11334       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11335       hardcode_libdir_separator=:
11336       hardcode_shlibpath_var=no
11337       ;;
11338
11339     *nto* | *qnx*)
11340       ;;
11341
11342     openbsd* | bitrig*)
11343       if test -f /usr/libexec/ld.so; then
11344         hardcode_direct=yes
11345         hardcode_shlibpath_var=no
11346         hardcode_direct_absolute=yes
11347         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11348           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11349           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11350           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11351           export_dynamic_flag_spec='$wl-E'
11352         else
11353           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11354           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11355         fi
11356       else
11357         ld_shlibs=no
11358       fi
11359       ;;
11360
11361     os2*)
11362       hardcode_libdir_flag_spec='-L$libdir'
11363       hardcode_minus_L=yes
11364       allow_undefined_flag=unsupported
11365       shrext_cmds=.dll
11366       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11367         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11368         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11369         $ECHO EXPORTS >> $output_objdir/$libname.def~
11370         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11371         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11372         emximp -o $lib $output_objdir/$libname.def'
11373       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11374         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11375         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11376         $ECHO EXPORTS >> $output_objdir/$libname.def~
11377         prefix_cmds="$SED"~
11378         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11379           prefix_cmds="$prefix_cmds -e 1d";
11380         fi~
11381         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11382         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11383         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11384         emximp -o $lib $output_objdir/$libname.def'
11385       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11386       enable_shared_with_static_runtimes=yes
11387       ;;
11388
11389     osf3*)
11390       if test yes = "$GCC"; then
11391         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11392         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'
11393       else
11394         allow_undefined_flag=' -expect_unresolved \*'
11395         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'
11396       fi
11397       archive_cmds_need_lc='no'
11398       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11399       hardcode_libdir_separator=:
11400       ;;
11401
11402     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11403       if test yes = "$GCC"; then
11404         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11405         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'
11406         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11407       else
11408         allow_undefined_flag=' -expect_unresolved \*'
11409         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'
11410         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~
11411           $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'
11412
11413         # Both c and cxx compiler support -rpath directly
11414         hardcode_libdir_flag_spec='-rpath $libdir'
11415       fi
11416       archive_cmds_need_lc='no'
11417       hardcode_libdir_separator=:
11418       ;;
11419
11420     solaris*)
11421       no_undefined_flag=' -z defs'
11422       if test yes = "$GCC"; then
11423         wlarc='$wl'
11424         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11425         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11426           $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'
11427       else
11428         case `$CC -V 2>&1` in
11429         *"Compilers 5.0"*)
11430           wlarc=''
11431           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11433             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11434           ;;
11435         *)
11436           wlarc='$wl'
11437           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11438           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11439             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11440           ;;
11441         esac
11442       fi
11443       hardcode_libdir_flag_spec='-R$libdir'
11444       hardcode_shlibpath_var=no
11445       case $host_os in
11446       solaris2.[0-5] | solaris2.[0-5].*) ;;
11447       *)
11448         # The compiler driver will combine and reorder linker options,
11449         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11450         # but is careful enough not to reorder.
11451         # Supported since Solaris 2.6 (maybe 2.5.1?)
11452         if test yes = "$GCC"; then
11453           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11454         else
11455           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11456         fi
11457         ;;
11458       esac
11459       link_all_deplibs=yes
11460       ;;
11461
11462     sunos4*)
11463       if test sequent = "$host_vendor"; then
11464         # Use $CC to link under sequent, because it throws in some extra .o
11465         # files that make .init and .fini sections work.
11466         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11467       else
11468         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11469       fi
11470       hardcode_libdir_flag_spec='-L$libdir'
11471       hardcode_direct=yes
11472       hardcode_minus_L=yes
11473       hardcode_shlibpath_var=no
11474       ;;
11475
11476     sysv4)
11477       case $host_vendor in
11478         sni)
11479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480           hardcode_direct=yes # is this really true???
11481         ;;
11482         siemens)
11483           ## LD is ld it makes a PLAMLIB
11484           ## CC just makes a GrossModule.
11485           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11486           reload_cmds='$CC -r -o $output$reload_objs'
11487           hardcode_direct=no
11488         ;;
11489         motorola)
11490           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11491           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11492         ;;
11493       esac
11494       runpath_var='LD_RUN_PATH'
11495       hardcode_shlibpath_var=no
11496       ;;
11497
11498     sysv4.3*)
11499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11500       hardcode_shlibpath_var=no
11501       export_dynamic_flag_spec='-Bexport'
11502       ;;
11503
11504     sysv4*MP*)
11505       if test -d /usr/nec; then
11506         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11507         hardcode_shlibpath_var=no
11508         runpath_var=LD_RUN_PATH
11509         hardcode_runpath_var=yes
11510         ld_shlibs=yes
11511       fi
11512       ;;
11513
11514     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11515       no_undefined_flag='$wl-z,text'
11516       archive_cmds_need_lc=no
11517       hardcode_shlibpath_var=no
11518       runpath_var='LD_RUN_PATH'
11519
11520       if test yes = "$GCC"; then
11521         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11523       else
11524         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526       fi
11527       ;;
11528
11529     sysv5* | sco3.2v5* | sco5v6*)
11530       # Note: We CANNOT use -z defs as we might desire, because we do not
11531       # link with -lc, and that would cause any symbols used from libc to
11532       # always be unresolved, which means just about no library would
11533       # ever link correctly.  If we're not using GNU ld we use -z text
11534       # though, which does catch some bad symbols but isn't as heavy-handed
11535       # as -z defs.
11536       no_undefined_flag='$wl-z,text'
11537       allow_undefined_flag='$wl-z,nodefs'
11538       archive_cmds_need_lc=no
11539       hardcode_shlibpath_var=no
11540       hardcode_libdir_flag_spec='$wl-R,$libdir'
11541       hardcode_libdir_separator=':'
11542       link_all_deplibs=yes
11543       export_dynamic_flag_spec='$wl-Bexport'
11544       runpath_var='LD_RUN_PATH'
11545
11546       if test yes = "$GCC"; then
11547         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11548         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11549       else
11550         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11551         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11552       fi
11553       ;;
11554
11555     uts4*)
11556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557       hardcode_libdir_flag_spec='-L$libdir'
11558       hardcode_shlibpath_var=no
11559       ;;
11560
11561     *)
11562       ld_shlibs=no
11563       ;;
11564     esac
11565
11566     if test sni = "$host_vendor"; then
11567       case $host in
11568       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11569         export_dynamic_flag_spec='$wl-Blargedynsym'
11570         ;;
11571       esac
11572     fi
11573   fi
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11576 $as_echo "$ld_shlibs" >&6; }
11577 test no = "$ld_shlibs" && can_build_shared=no
11578
11579 with_gnu_ld=$with_gnu_ld
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595 #
11596 # Do we need to explicitly link libc?
11597 #
11598 case "x$archive_cmds_need_lc" in
11599 x|xyes)
11600   # Assume -lc should be added
11601   archive_cmds_need_lc=yes
11602
11603   if test yes,yes = "$GCC,$enable_shared"; then
11604     case $archive_cmds in
11605     *'~'*)
11606       # FIXME: we may have to deal with multi-command sequences.
11607       ;;
11608     '$CC '*)
11609       # Test whether the compiler implicitly links with -lc since on some
11610       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11611       # to ld, don't add -lc before -lgcc.
11612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11614 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11615   $as_echo_n "(cached) " >&6
11616 else
11617   $RM conftest*
11618         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11619
11620         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624   test $ac_status = 0; } 2>conftest.err; then
11625           soname=conftest
11626           lib=conftest
11627           libobjs=conftest.$ac_objext
11628           deplibs=
11629           wl=$lt_prog_compiler_wl
11630           pic_flag=$lt_prog_compiler_pic
11631           compiler_flags=-v
11632           linker_flags=-v
11633           verstring=
11634           output_objdir=.
11635           libname=conftest
11636           lt_save_allow_undefined_flag=$allow_undefined_flag
11637           allow_undefined_flag=
11638           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11639   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11640   ac_status=$?
11641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642   test $ac_status = 0; }
11643           then
11644             lt_cv_archive_cmds_need_lc=no
11645           else
11646             lt_cv_archive_cmds_need_lc=yes
11647           fi
11648           allow_undefined_flag=$lt_save_allow_undefined_flag
11649         else
11650           cat conftest.err 1>&5
11651         fi
11652         $RM conftest*
11653
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11656 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11657       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11658       ;;
11659     esac
11660   fi
11661   ;;
11662 esac
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11816 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11817
11818 if test yes = "$GCC"; then
11819   case $host_os in
11820     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11821     *) lt_awk_arg='/^libraries:/' ;;
11822   esac
11823   case $host_os in
11824     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11825     *) lt_sed_strip_eq='s|=/|/|g' ;;
11826   esac
11827   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11828   case $lt_search_path_spec in
11829   *\;*)
11830     # if the path contains ";" then we assume it to be the separator
11831     # otherwise default to the standard path separator (i.e. ":") - it is
11832     # assumed that no part of a normal pathname contains ";" but that should
11833     # okay in the real world where ";" in dirpaths is itself problematic.
11834     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11835     ;;
11836   *)
11837     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11838     ;;
11839   esac
11840   # Ok, now we have the path, separated by spaces, we can step through it
11841   # and add multilib dir if necessary...
11842   lt_tmp_lt_search_path_spec=
11843   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11844   # ...but if some path component already ends with the multilib dir we assume
11845   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11846   case "$lt_multi_os_dir; $lt_search_path_spec " in
11847   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11848     lt_multi_os_dir=
11849     ;;
11850   esac
11851   for lt_sys_path in $lt_search_path_spec; do
11852     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11853       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11854     elif test -n "$lt_multi_os_dir"; then
11855       test -d "$lt_sys_path" && \
11856         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11857     fi
11858   done
11859   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11860 BEGIN {RS = " "; FS = "/|\n";} {
11861   lt_foo = "";
11862   lt_count = 0;
11863   for (lt_i = NF; lt_i > 0; lt_i--) {
11864     if ($lt_i != "" && $lt_i != ".") {
11865       if ($lt_i == "..") {
11866         lt_count++;
11867       } else {
11868         if (lt_count == 0) {
11869           lt_foo = "/" $lt_i lt_foo;
11870         } else {
11871           lt_count--;
11872         }
11873       }
11874     }
11875   }
11876   if (lt_foo != "") { lt_freq[lt_foo]++; }
11877   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11878 }'`
11879   # AWK program above erroneously prepends '/' to C:/dos/paths
11880   # for these hosts.
11881   case $host_os in
11882     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11883       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11884   esac
11885   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11886 else
11887   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11888 fi
11889 library_names_spec=
11890 libname_spec='lib$name'
11891 soname_spec=
11892 shrext_cmds=.so
11893 postinstall_cmds=
11894 postuninstall_cmds=
11895 finish_cmds=
11896 finish_eval=
11897 shlibpath_var=
11898 shlibpath_overrides_runpath=unknown
11899 version_type=none
11900 dynamic_linker="$host_os ld.so"
11901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11902 need_lib_prefix=unknown
11903 hardcode_into_libs=no
11904
11905 # when you set need_version to no, make sure it does not cause -set_version
11906 # flags to be left without arguments
11907 need_version=unknown
11908
11909
11910
11911 case $host_os in
11912 aix3*)
11913   version_type=linux # correct to gnu/linux during the next big refactor
11914   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11915   shlibpath_var=LIBPATH
11916
11917   # AIX 3 has no versioning support, so we append a major version to the name.
11918   soname_spec='$libname$release$shared_ext$major'
11919   ;;
11920
11921 aix[4-9]*)
11922   version_type=linux # correct to gnu/linux during the next big refactor
11923   need_lib_prefix=no
11924   need_version=no
11925   hardcode_into_libs=yes
11926   if test ia64 = "$host_cpu"; then
11927     # AIX 5 supports IA64
11928     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11929     shlibpath_var=LD_LIBRARY_PATH
11930   else
11931     # With GCC up to 2.95.x, collect2 would create an import file
11932     # for dependence libraries.  The import file would start with
11933     # the line '#! .'.  This would cause the generated library to
11934     # depend on '.', always an invalid library.  This was fixed in
11935     # development snapshots of GCC prior to 3.0.
11936     case $host_os in
11937       aix4 | aix4.[01] | aix4.[01].*)
11938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11939            echo ' yes '
11940            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11941         :
11942       else
11943         can_build_shared=no
11944       fi
11945       ;;
11946     esac
11947     # Using Import Files as archive members, it is possible to support
11948     # filename-based versioning of shared library archives on AIX. While
11949     # this would work for both with and without runtime linking, it will
11950     # prevent static linking of such archives. So we do filename-based
11951     # shared library versioning with .so extension only, which is used
11952     # when both runtime linking and shared linking is enabled.
11953     # Unfortunately, runtime linking may impact performance, so we do
11954     # not want this to be the default eventually. Also, we use the
11955     # versioned .so libs for executables only if there is the -brtl
11956     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11957     # To allow for filename-based versioning support, we need to create
11958     # libNAME.so.V as an archive file, containing:
11959     # *) an Import File, referring to the versioned filename of the
11960     #    archive as well as the shared archive member, telling the
11961     #    bitwidth (32 or 64) of that shared object, and providing the
11962     #    list of exported symbols of that shared object, eventually
11963     #    decorated with the 'weak' keyword
11964     # *) the shared object with the F_LOADONLY flag set, to really avoid
11965     #    it being seen by the linker.
11966     # At run time we better use the real file rather than another symlink,
11967     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11968
11969     case $with_aix_soname,$aix_use_runtimelinking in
11970     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11971     # soname into executable. Probably we can add versioning support to
11972     # collect2, so additional links can be useful in future.
11973     aix,yes) # traditional libtool
11974       dynamic_linker='AIX unversionable lib.so'
11975       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11976       # instead of lib<name>.a to let people know that these are not
11977       # typical AIX shared libraries.
11978       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979       ;;
11980     aix,no) # traditional AIX only
11981       dynamic_linker='AIX lib.a(lib.so.V)'
11982       # We preserve .a as extension for shared libraries through AIX4.2
11983       # and later when we are not doing run time linking.
11984       library_names_spec='$libname$release.a $libname.a'
11985       soname_spec='$libname$release$shared_ext$major'
11986       ;;
11987     svr4,*) # full svr4 only
11988       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11989       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11990       # We do not specify a path in Import Files, so LIBPATH fires.
11991       shlibpath_overrides_runpath=yes
11992       ;;
11993     *,yes) # both, prefer svr4
11994       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11995       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11996       # unpreferred sharedlib libNAME.a needs extra handling
11997       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"'
11998       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"'
11999       # We do not specify a path in Import Files, so LIBPATH fires.
12000       shlibpath_overrides_runpath=yes
12001       ;;
12002     *,no) # both, prefer aix
12003       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12004       library_names_spec='$libname$release.a $libname.a'
12005       soname_spec='$libname$release$shared_ext$major'
12006       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12007       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)'
12008       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"'
12009       ;;
12010     esac
12011     shlibpath_var=LIBPATH
12012   fi
12013   ;;
12014
12015 amigaos*)
12016   case $host_cpu in
12017   powerpc)
12018     # Since July 2007 AmigaOS4 officially supports .so libraries.
12019     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12020     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021     ;;
12022   m68k)
12023     library_names_spec='$libname.ixlibrary $libname.a'
12024     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12025     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'
12026     ;;
12027   esac
12028   ;;
12029
12030 beos*)
12031   library_names_spec='$libname$shared_ext'
12032   dynamic_linker="$host_os ld.so"
12033   shlibpath_var=LIBRARY_PATH
12034   ;;
12035
12036 bsdi[45]*)
12037   version_type=linux # correct to gnu/linux during the next big refactor
12038   need_version=no
12039   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040   soname_spec='$libname$release$shared_ext$major'
12041   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12042   shlibpath_var=LD_LIBRARY_PATH
12043   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12044   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12045   # the default ld.so.conf also contains /usr/contrib/lib and
12046   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12047   # libtool to hard-code these into programs
12048   ;;
12049
12050 cygwin* | mingw* | pw32* | cegcc*)
12051   version_type=windows
12052   shrext_cmds=.dll
12053   need_version=no
12054   need_lib_prefix=no
12055
12056   case $GCC,$cc_basename in
12057   yes,*)
12058     # gcc
12059     library_names_spec='$libname.dll.a'
12060     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12061     postinstall_cmds='base_file=`basename \$file`~
12062       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12063       dldir=$destdir/`dirname \$dlpath`~
12064       test -d \$dldir || mkdir -p \$dldir~
12065       $install_prog $dir/$dlname \$dldir/$dlname~
12066       chmod a+x \$dldir/$dlname~
12067       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12068         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12069       fi'
12070     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12071       dlpath=$dir/\$dldll~
12072        $RM \$dlpath'
12073     shlibpath_overrides_runpath=yes
12074
12075     case $host_os in
12076     cygwin*)
12077       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12078       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12079
12080       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12081       ;;
12082     mingw* | cegcc*)
12083       # MinGW DLLs use traditional 'lib' prefix
12084       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12085       ;;
12086     pw32*)
12087       # pw32 DLLs use 'pw' prefix rather than 'lib'
12088       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12089       ;;
12090     esac
12091     dynamic_linker='Win32 ld.exe'
12092     ;;
12093
12094   *,cl*)
12095     # Native MSVC
12096     libname_spec='$name'
12097     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12098     library_names_spec='$libname.dll.lib'
12099
12100     case $build_os in
12101     mingw*)
12102       sys_lib_search_path_spec=
12103       lt_save_ifs=$IFS
12104       IFS=';'
12105       for lt_path in $LIB
12106       do
12107         IFS=$lt_save_ifs
12108         # Let DOS variable expansion print the short 8.3 style file name.
12109         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12110         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12111       done
12112       IFS=$lt_save_ifs
12113       # Convert to MSYS style.
12114       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12115       ;;
12116     cygwin*)
12117       # Convert to unix form, then to dos form, then back to unix form
12118       # but this time dos style (no spaces!) so that the unix form looks
12119       # like /cygdrive/c/PROGRA~1:/cygdr...
12120       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12121       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12122       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12123       ;;
12124     *)
12125       sys_lib_search_path_spec=$LIB
12126       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12127         # It is most probably a Windows format PATH.
12128         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12129       else
12130         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12131       fi
12132       # FIXME: find the short name or the path components, as spaces are
12133       # common. (e.g. "Program Files" -> "PROGRA~1")
12134       ;;
12135     esac
12136
12137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12138     postinstall_cmds='base_file=`basename \$file`~
12139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12140       dldir=$destdir/`dirname \$dlpath`~
12141       test -d \$dldir || mkdir -p \$dldir~
12142       $install_prog $dir/$dlname \$dldir/$dlname'
12143     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12144       dlpath=$dir/\$dldll~
12145        $RM \$dlpath'
12146     shlibpath_overrides_runpath=yes
12147     dynamic_linker='Win32 link.exe'
12148     ;;
12149
12150   *)
12151     # Assume MSVC wrapper
12152     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12153     dynamic_linker='Win32 ld.exe'
12154     ;;
12155   esac
12156   # FIXME: first we should search . and the directory the executable is in
12157   shlibpath_var=PATH
12158   ;;
12159
12160 darwin* | rhapsody*)
12161   dynamic_linker="$host_os dyld"
12162   version_type=darwin
12163   need_lib_prefix=no
12164   need_version=no
12165   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12166   soname_spec='$libname$release$major$shared_ext'
12167   shlibpath_overrides_runpath=yes
12168   shlibpath_var=DYLD_LIBRARY_PATH
12169   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12170
12171   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12172   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12173   ;;
12174
12175 dgux*)
12176   version_type=linux # correct to gnu/linux during the next big refactor
12177   need_lib_prefix=no
12178   need_version=no
12179   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12180   soname_spec='$libname$release$shared_ext$major'
12181   shlibpath_var=LD_LIBRARY_PATH
12182   ;;
12183
12184 freebsd* | dragonfly*)
12185   # DragonFly does not have aout.  When/if they implement a new
12186   # versioning mechanism, adjust this.
12187   if test -x /usr/bin/objformat; then
12188     objformat=`/usr/bin/objformat`
12189   else
12190     case $host_os in
12191     freebsd[23].*) objformat=aout ;;
12192     *) objformat=elf ;;
12193     esac
12194   fi
12195   version_type=freebsd-$objformat
12196   case $version_type in
12197     freebsd-elf*)
12198       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199       soname_spec='$libname$release$shared_ext$major'
12200       need_version=no
12201       need_lib_prefix=no
12202       ;;
12203     freebsd-*)
12204       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12205       need_version=yes
12206       ;;
12207   esac
12208   shlibpath_var=LD_LIBRARY_PATH
12209   case $host_os in
12210   freebsd2.*)
12211     shlibpath_overrides_runpath=yes
12212     ;;
12213   freebsd3.[01]* | freebsdelf3.[01]*)
12214     shlibpath_overrides_runpath=yes
12215     hardcode_into_libs=yes
12216     ;;
12217   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12218   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12219     shlibpath_overrides_runpath=no
12220     hardcode_into_libs=yes
12221     ;;
12222   *) # from 4.6 on, and DragonFly
12223     shlibpath_overrides_runpath=yes
12224     hardcode_into_libs=yes
12225     ;;
12226   esac
12227   ;;
12228
12229 haiku*)
12230   version_type=linux # correct to gnu/linux during the next big refactor
12231   need_lib_prefix=no
12232   need_version=no
12233   dynamic_linker="$host_os runtime_loader"
12234   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12235   soname_spec='$libname$release$shared_ext$major'
12236   shlibpath_var=LIBRARY_PATH
12237   shlibpath_overrides_runpath=no
12238   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12239   hardcode_into_libs=yes
12240   ;;
12241
12242 hpux9* | hpux10* | hpux11*)
12243   # Give a soname corresponding to the major version so that dld.sl refuses to
12244   # link against other versions.
12245   version_type=sunos
12246   need_lib_prefix=no
12247   need_version=no
12248   case $host_cpu in
12249   ia64*)
12250     shrext_cmds='.so'
12251     hardcode_into_libs=yes
12252     dynamic_linker="$host_os dld.so"
12253     shlibpath_var=LD_LIBRARY_PATH
12254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12255     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256     soname_spec='$libname$release$shared_ext$major'
12257     if test 32 = "$HPUX_IA64_MODE"; then
12258       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12259       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12260     else
12261       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12262       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12263     fi
12264     ;;
12265   hppa*64*)
12266     shrext_cmds='.sl'
12267     hardcode_into_libs=yes
12268     dynamic_linker="$host_os dld.sl"
12269     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12270     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12271     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272     soname_spec='$libname$release$shared_ext$major'
12273     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12275     ;;
12276   *)
12277     shrext_cmds='.sl'
12278     dynamic_linker="$host_os dld.sl"
12279     shlibpath_var=SHLIB_PATH
12280     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12281     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12282     soname_spec='$libname$release$shared_ext$major'
12283     ;;
12284   esac
12285   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12286   postinstall_cmds='chmod 555 $lib'
12287   # or fails outright, so override atomically:
12288   install_override_mode=555
12289   ;;
12290
12291 interix[3-9]*)
12292   version_type=linux # correct to gnu/linux during the next big refactor
12293   need_lib_prefix=no
12294   need_version=no
12295   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12296   soname_spec='$libname$release$shared_ext$major'
12297   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12298   shlibpath_var=LD_LIBRARY_PATH
12299   shlibpath_overrides_runpath=no
12300   hardcode_into_libs=yes
12301   ;;
12302
12303 irix5* | irix6* | nonstopux*)
12304   case $host_os in
12305     nonstopux*) version_type=nonstopux ;;
12306     *)
12307         if test yes = "$lt_cv_prog_gnu_ld"; then
12308                 version_type=linux # correct to gnu/linux during the next big refactor
12309         else
12310                 version_type=irix
12311         fi ;;
12312   esac
12313   need_lib_prefix=no
12314   need_version=no
12315   soname_spec='$libname$release$shared_ext$major'
12316   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12317   case $host_os in
12318   irix5* | nonstopux*)
12319     libsuff= shlibsuff=
12320     ;;
12321   *)
12322     case $LD in # libtool.m4 will add one of these switches to LD
12323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12324       libsuff= shlibsuff= libmagic=32-bit;;
12325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12326       libsuff=32 shlibsuff=N32 libmagic=N32;;
12327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12329     *) libsuff= shlibsuff= libmagic=never-match;;
12330     esac
12331     ;;
12332   esac
12333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12334   shlibpath_overrides_runpath=no
12335   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12336   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12337   hardcode_into_libs=yes
12338   ;;
12339
12340 # No shared lib support for Linux oldld, aout, or coff.
12341 linux*oldld* | linux*aout* | linux*coff*)
12342   dynamic_linker=no
12343   ;;
12344
12345 linux*android*)
12346   version_type=none # Android doesn't support versioned libraries.
12347   need_lib_prefix=no
12348   need_version=no
12349   library_names_spec='$libname$release$shared_ext'
12350   soname_spec='$libname$release$shared_ext'
12351   finish_cmds=
12352   shlibpath_var=LD_LIBRARY_PATH
12353   shlibpath_overrides_runpath=yes
12354
12355   # This implies no fast_install, which is unacceptable.
12356   # Some rework will be needed to allow for fast_install
12357   # before this can be enabled.
12358   hardcode_into_libs=yes
12359
12360   dynamic_linker='Android linker'
12361   # Don't embed -rpath directories since the linker doesn't support them.
12362   hardcode_libdir_flag_spec='-L$libdir'
12363   ;;
12364
12365 # This must be glibc/ELF.
12366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12367   version_type=linux # correct to gnu/linux during the next big refactor
12368   need_lib_prefix=no
12369   need_version=no
12370   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371   soname_spec='$libname$release$shared_ext$major'
12372   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12373   shlibpath_var=LD_LIBRARY_PATH
12374   shlibpath_overrides_runpath=no
12375
12376   # Some binutils ld are patched to set DT_RUNPATH
12377   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   lt_cv_shlibpath_overrides_runpath=no
12381     save_LDFLAGS=$LDFLAGS
12382     save_libdir=$libdir
12383     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12384          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387
12388 int
12389 main ()
12390 {
12391
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12398   lt_cv_shlibpath_overrides_runpath=yes
12399 fi
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402     conftest$ac_exeext conftest.$ac_ext
12403     LDFLAGS=$save_LDFLAGS
12404     libdir=$save_libdir
12405
12406 fi
12407
12408   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12409
12410   # This implies no fast_install, which is unacceptable.
12411   # Some rework will be needed to allow for fast_install
12412   # before this can be enabled.
12413   hardcode_into_libs=yes
12414
12415   # Ideally, we could use ldconfig to report *all* directores which are
12416   # searched for libraries, however this is still not possible.  Aside from not
12417   # being certain /sbin/ldconfig is available, command
12418   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12419   # even though it is searched at run-time.  Try to do the best guess by
12420   # appending ld.so.conf contents (and includes) to the search path.
12421   if test -f /etc/ld.so.conf; then
12422     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' ' '`
12423     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12424   fi
12425
12426   # We used to test for /lib/ld.so.1 and disable shared libraries on
12427   # powerpc, because MkLinux only supported shared libraries with the
12428   # GNU dynamic linker.  Since this was broken with cross compilers,
12429   # most powerpc-linux boxes support dynamic linking these days and
12430   # people can always --disable-shared, the test was removed, and we
12431   # assume the GNU/Linux dynamic linker is in use.
12432   dynamic_linker='GNU/Linux ld.so'
12433   ;;
12434
12435 netbsdelf*-gnu)
12436   version_type=linux
12437   need_lib_prefix=no
12438   need_version=no
12439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440   soname_spec='${libname}${release}${shared_ext}$major'
12441   shlibpath_var=LD_LIBRARY_PATH
12442   shlibpath_overrides_runpath=no
12443   hardcode_into_libs=yes
12444   dynamic_linker='NetBSD ld.elf_so'
12445   ;;
12446
12447 netbsd*)
12448   version_type=sunos
12449   need_lib_prefix=no
12450   need_version=no
12451   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12452     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12453     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454     dynamic_linker='NetBSD (a.out) ld.so'
12455   else
12456     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12457     soname_spec='$libname$release$shared_ext$major'
12458     dynamic_linker='NetBSD ld.elf_so'
12459   fi
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=yes
12462   hardcode_into_libs=yes
12463   ;;
12464
12465 newsos6)
12466   version_type=linux # correct to gnu/linux during the next big refactor
12467   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12468   shlibpath_var=LD_LIBRARY_PATH
12469   shlibpath_overrides_runpath=yes
12470   ;;
12471
12472 *nto* | *qnx*)
12473   version_type=qnx
12474   need_lib_prefix=no
12475   need_version=no
12476   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12477   soname_spec='$libname$release$shared_ext$major'
12478   shlibpath_var=LD_LIBRARY_PATH
12479   shlibpath_overrides_runpath=no
12480   hardcode_into_libs=yes
12481   dynamic_linker='ldqnx.so'
12482   ;;
12483
12484 openbsd* | bitrig*)
12485   version_type=sunos
12486   sys_lib_dlsearch_path_spec=/usr/lib
12487   need_lib_prefix=no
12488   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12489     need_version=no
12490   else
12491     need_version=yes
12492   fi
12493   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12494   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12495   shlibpath_var=LD_LIBRARY_PATH
12496   shlibpath_overrides_runpath=yes
12497   ;;
12498
12499 os2*)
12500   libname_spec='$name'
12501   version_type=windows
12502   shrext_cmds=.dll
12503   need_version=no
12504   need_lib_prefix=no
12505   # OS/2 can only load a DLL with a base name of 8 characters or less.
12506   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12507     v=$($ECHO $release$versuffix | tr -d .-);
12508     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12509     $ECHO $n$v`$shared_ext'
12510   library_names_spec='${libname}_dll.$libext'
12511   dynamic_linker='OS/2 ld.exe'
12512   shlibpath_var=BEGINLIBPATH
12513   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12514   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12515   postinstall_cmds='base_file=`basename \$file`~
12516     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12517     dldir=$destdir/`dirname \$dlpath`~
12518     test -d \$dldir || mkdir -p \$dldir~
12519     $install_prog $dir/$dlname \$dldir/$dlname~
12520     chmod a+x \$dldir/$dlname~
12521     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12522       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12523     fi'
12524   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12525     dlpath=$dir/\$dldll~
12526     $RM \$dlpath'
12527   ;;
12528
12529 osf3* | osf4* | osf5*)
12530   version_type=osf
12531   need_lib_prefix=no
12532   need_version=no
12533   soname_spec='$libname$release$shared_ext$major'
12534   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12535   shlibpath_var=LD_LIBRARY_PATH
12536   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12537   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12538   ;;
12539
12540 rdos*)
12541   dynamic_linker=no
12542   ;;
12543
12544 solaris*)
12545   version_type=linux # correct to gnu/linux during the next big refactor
12546   need_lib_prefix=no
12547   need_version=no
12548   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12549   soname_spec='$libname$release$shared_ext$major'
12550   shlibpath_var=LD_LIBRARY_PATH
12551   shlibpath_overrides_runpath=yes
12552   hardcode_into_libs=yes
12553   # ldd complains unless libraries are executable
12554   postinstall_cmds='chmod +x $lib'
12555   ;;
12556
12557 sunos4*)
12558   version_type=sunos
12559   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12560   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12561   shlibpath_var=LD_LIBRARY_PATH
12562   shlibpath_overrides_runpath=yes
12563   if test yes = "$with_gnu_ld"; then
12564     need_lib_prefix=no
12565   fi
12566   need_version=yes
12567   ;;
12568
12569 sysv4 | sysv4.3*)
12570   version_type=linux # correct to gnu/linux during the next big refactor
12571   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572   soname_spec='$libname$release$shared_ext$major'
12573   shlibpath_var=LD_LIBRARY_PATH
12574   case $host_vendor in
12575     sni)
12576       shlibpath_overrides_runpath=no
12577       need_lib_prefix=no
12578       runpath_var=LD_RUN_PATH
12579       ;;
12580     siemens)
12581       need_lib_prefix=no
12582       ;;
12583     motorola)
12584       need_lib_prefix=no
12585       need_version=no
12586       shlibpath_overrides_runpath=no
12587       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12588       ;;
12589   esac
12590   ;;
12591
12592 sysv4*MP*)
12593   if test -d /usr/nec; then
12594     version_type=linux # correct to gnu/linux during the next big refactor
12595     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12596     soname_spec='$libname$shared_ext.$major'
12597     shlibpath_var=LD_LIBRARY_PATH
12598   fi
12599   ;;
12600
12601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12602   version_type=sco
12603   need_lib_prefix=no
12604   need_version=no
12605   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12606   soname_spec='$libname$release$shared_ext$major'
12607   shlibpath_var=LD_LIBRARY_PATH
12608   shlibpath_overrides_runpath=yes
12609   hardcode_into_libs=yes
12610   if test yes = "$with_gnu_ld"; then
12611     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12612   else
12613     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12614     case $host_os in
12615       sco3.2v5*)
12616         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12617         ;;
12618     esac
12619   fi
12620   sys_lib_dlsearch_path_spec='/usr/lib'
12621   ;;
12622
12623 tpf*)
12624   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12625   version_type=linux # correct to gnu/linux during the next big refactor
12626   need_lib_prefix=no
12627   need_version=no
12628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629   shlibpath_var=LD_LIBRARY_PATH
12630   shlibpath_overrides_runpath=no
12631   hardcode_into_libs=yes
12632   ;;
12633
12634 uts4*)
12635   version_type=linux # correct to gnu/linux during the next big refactor
12636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12637   soname_spec='$libname$release$shared_ext$major'
12638   shlibpath_var=LD_LIBRARY_PATH
12639   ;;
12640
12641 *)
12642   dynamic_linker=no
12643   ;;
12644 esac
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12646 $as_echo "$dynamic_linker" >&6; }
12647 test no = "$dynamic_linker" && can_build_shared=no
12648
12649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12650 if test yes = "$GCC"; then
12651   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12652 fi
12653
12654 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12655   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12656 fi
12657
12658 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12659   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12660 fi
12661
12662 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12663 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12664
12665 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12666 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12667
12668 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12669 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12769 hardcode_action=
12770 if test -n "$hardcode_libdir_flag_spec" ||
12771    test -n "$runpath_var" ||
12772    test yes = "$hardcode_automatic"; then
12773
12774   # We can hardcode non-existent directories.
12775   if test no != "$hardcode_direct" &&
12776      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12777      # have to relink, otherwise we might link with an installed library
12778      # when we should be linking with a yet-to-be-installed one
12779      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12780      test no != "$hardcode_minus_L"; then
12781     # Linking always hardcodes the temporary library directory.
12782     hardcode_action=relink
12783   else
12784     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12785     hardcode_action=immediate
12786   fi
12787 else
12788   # We cannot hardcode anything, or else we can only hardcode existing
12789   # directories.
12790   hardcode_action=unsupported
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12793 $as_echo "$hardcode_action" >&6; }
12794
12795 if test relink = "$hardcode_action" ||
12796    test yes = "$inherit_rpath"; then
12797   # Fast installation is not supported
12798   enable_fast_install=no
12799 elif test yes = "$shlibpath_overrides_runpath" ||
12800      test no = "$enable_shared"; then
12801   # Fast installation is not necessary
12802   enable_fast_install=needless
12803 fi
12804
12805
12806
12807
12808
12809
12810   if test yes != "$enable_dlopen"; then
12811   enable_dlopen=unknown
12812   enable_dlopen_self=unknown
12813   enable_dlopen_self_static=unknown
12814 else
12815   lt_cv_dlopen=no
12816   lt_cv_dlopen_libs=
12817
12818   case $host_os in
12819   beos*)
12820     lt_cv_dlopen=load_add_on
12821     lt_cv_dlopen_libs=
12822     lt_cv_dlopen_self=yes
12823     ;;
12824
12825   mingw* | pw32* | cegcc*)
12826     lt_cv_dlopen=LoadLibrary
12827     lt_cv_dlopen_libs=
12828     ;;
12829
12830   cygwin*)
12831     lt_cv_dlopen=dlopen
12832     lt_cv_dlopen_libs=
12833     ;;
12834
12835   darwin*)
12836     # if libdl is installed we need to link against it
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12839 if ${ac_cv_lib_dl_dlopen+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   ac_check_lib_save_LIBS=$LIBS
12843 LIBS="-ldl  $LIBS"
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846
12847 /* Override any GCC internal prototype to avoid an error.
12848    Use char because int might match the return type of a GCC
12849    builtin and then its argument prototype would still apply.  */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 char dlopen ();
12854 int
12855 main ()
12856 {
12857 return dlopen ();
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_link "$LINENO"; then :
12863   ac_cv_lib_dl_dlopen=yes
12864 else
12865   ac_cv_lib_dl_dlopen=no
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext \
12868     conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12873 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12874   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12875 else
12876
12877     lt_cv_dlopen=dyld
12878     lt_cv_dlopen_libs=
12879     lt_cv_dlopen_self=yes
12880
12881 fi
12882
12883     ;;
12884
12885   tpf*)
12886     # Don't try to run any link tests for TPF.  We know it's impossible
12887     # because TPF is a cross-compiler, and we know how we open DSOs.
12888     lt_cv_dlopen=dlopen
12889     lt_cv_dlopen_libs=
12890     lt_cv_dlopen_self=no
12891     ;;
12892
12893   *)
12894     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12895 if test "x$ac_cv_func_shl_load" = xyes; then :
12896   lt_cv_dlopen=shl_load
12897 else
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12899 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12900 if ${ac_cv_lib_dld_shl_load+:} false; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903   ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-ldld  $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h.  */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909    Use char because int might match the return type of a GCC
12910    builtin and then its argument prototype would still apply.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char shl_load ();
12915 int
12916 main ()
12917 {
12918 return shl_load ();
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924   ac_cv_lib_dld_shl_load=yes
12925 else
12926   ac_cv_lib_dld_shl_load=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929     conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12933 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12934 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12935   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12936 else
12937   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12938 if test "x$ac_cv_func_dlopen" = xyes; then :
12939   lt_cv_dlopen=dlopen
12940 else
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12943 if ${ac_cv_lib_dl_dlopen+:} false; then :
12944   $as_echo_n "(cached) " >&6
12945 else
12946   ac_check_lib_save_LIBS=$LIBS
12947 LIBS="-ldl  $LIBS"
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h.  */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952    Use char because int might match the return type of a GCC
12953    builtin and then its argument prototype would still apply.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char dlopen ();
12958 int
12959 main ()
12960 {
12961 return dlopen ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967   ac_cv_lib_dl_dlopen=yes
12968 else
12969   ac_cv_lib_dl_dlopen=no
12970 fi
12971 rm -f core conftest.err conftest.$ac_objext \
12972     conftest$ac_exeext conftest.$ac_ext
12973 LIBS=$ac_check_lib_save_LIBS
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12976 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12977 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12978   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12979 else
12980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12981 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12982 if ${ac_cv_lib_svld_dlopen+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lsvld  $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h.  */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991    Use char because int might match the return type of a GCC
12992    builtin and then its argument prototype would still apply.  */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char dlopen ();
12997 int
12998 main ()
12999 {
13000 return dlopen ();
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006   ac_cv_lib_svld_dlopen=yes
13007 else
13008   ac_cv_lib_svld_dlopen=no
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011     conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13016 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13017   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13018 else
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13021 if ${ac_cv_lib_dld_dld_link+:} false; then :
13022   $as_echo_n "(cached) " >&6
13023 else
13024   ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-ldld  $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h.  */
13028
13029 /* Override any GCC internal prototype to avoid an error.
13030    Use char because int might match the return type of a GCC
13031    builtin and then its argument prototype would still apply.  */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char dld_link ();
13036 int
13037 main ()
13038 {
13039 return dld_link ();
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045   ac_cv_lib_dld_dld_link=yes
13046 else
13047   ac_cv_lib_dld_dld_link=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050     conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13054 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13055 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13056   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13057 fi
13058
13059
13060 fi
13061
13062
13063 fi
13064
13065
13066 fi
13067
13068
13069 fi
13070
13071
13072 fi
13073
13074     ;;
13075   esac
13076
13077   if test no = "$lt_cv_dlopen"; then
13078     enable_dlopen=no
13079   else
13080     enable_dlopen=yes
13081   fi
13082
13083   case $lt_cv_dlopen in
13084   dlopen)
13085     save_CPPFLAGS=$CPPFLAGS
13086     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13087
13088     save_LDFLAGS=$LDFLAGS
13089     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13090
13091     save_LIBS=$LIBS
13092     LIBS="$lt_cv_dlopen_libs $LIBS"
13093
13094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13095 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13096 if ${lt_cv_dlopen_self+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099           if test yes = "$cross_compiling"; then :
13100   lt_cv_dlopen_self=cross
13101 else
13102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13103   lt_status=$lt_dlunknown
13104   cat > conftest.$ac_ext <<_LT_EOF
13105 #line $LINENO "configure"
13106 #include "confdefs.h"
13107
13108 #if HAVE_DLFCN_H
13109 #include <dlfcn.h>
13110 #endif
13111
13112 #include <stdio.h>
13113
13114 #ifdef RTLD_GLOBAL
13115 #  define LT_DLGLOBAL           RTLD_GLOBAL
13116 #else
13117 #  ifdef DL_GLOBAL
13118 #    define LT_DLGLOBAL         DL_GLOBAL
13119 #  else
13120 #    define LT_DLGLOBAL         0
13121 #  endif
13122 #endif
13123
13124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13125    find out it does not work in some platform. */
13126 #ifndef LT_DLLAZY_OR_NOW
13127 #  ifdef RTLD_LAZY
13128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13129 #  else
13130 #    ifdef DL_LAZY
13131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13132 #    else
13133 #      ifdef RTLD_NOW
13134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13135 #      else
13136 #        ifdef DL_NOW
13137 #          define LT_DLLAZY_OR_NOW      DL_NOW
13138 #        else
13139 #          define LT_DLLAZY_OR_NOW      0
13140 #        endif
13141 #      endif
13142 #    endif
13143 #  endif
13144 #endif
13145
13146 /* When -fvisibility=hidden is used, assume the code has been annotated
13147    correspondingly for the symbols needed.  */
13148 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13149 int fnord () __attribute__((visibility("default")));
13150 #endif
13151
13152 int fnord () { return 42; }
13153 int main ()
13154 {
13155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13156   int status = $lt_dlunknown;
13157
13158   if (self)
13159     {
13160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13161       else
13162         {
13163           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13164           else puts (dlerror ());
13165         }
13166       /* dlclose (self); */
13167     }
13168   else
13169     puts (dlerror ());
13170
13171   return status;
13172 }
13173 _LT_EOF
13174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13175   (eval $ac_link) 2>&5
13176   ac_status=$?
13177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13179     (./conftest; exit; ) >&5 2>/dev/null
13180     lt_status=$?
13181     case x$lt_status in
13182       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13183       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13184       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13185     esac
13186   else :
13187     # compilation failed
13188     lt_cv_dlopen_self=no
13189   fi
13190 fi
13191 rm -fr conftest*
13192
13193
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13196 $as_echo "$lt_cv_dlopen_self" >&6; }
13197
13198     if test yes = "$lt_cv_dlopen_self"; then
13199       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13202 if ${lt_cv_dlopen_self_static+:} false; then :
13203   $as_echo_n "(cached) " >&6
13204 else
13205           if test yes = "$cross_compiling"; then :
13206   lt_cv_dlopen_self_static=cross
13207 else
13208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13209   lt_status=$lt_dlunknown
13210   cat > conftest.$ac_ext <<_LT_EOF
13211 #line $LINENO "configure"
13212 #include "confdefs.h"
13213
13214 #if HAVE_DLFCN_H
13215 #include <dlfcn.h>
13216 #endif
13217
13218 #include <stdio.h>
13219
13220 #ifdef RTLD_GLOBAL
13221 #  define LT_DLGLOBAL           RTLD_GLOBAL
13222 #else
13223 #  ifdef DL_GLOBAL
13224 #    define LT_DLGLOBAL         DL_GLOBAL
13225 #  else
13226 #    define LT_DLGLOBAL         0
13227 #  endif
13228 #endif
13229
13230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13231    find out it does not work in some platform. */
13232 #ifndef LT_DLLAZY_OR_NOW
13233 #  ifdef RTLD_LAZY
13234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13235 #  else
13236 #    ifdef DL_LAZY
13237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13238 #    else
13239 #      ifdef RTLD_NOW
13240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13241 #      else
13242 #        ifdef DL_NOW
13243 #          define LT_DLLAZY_OR_NOW      DL_NOW
13244 #        else
13245 #          define LT_DLLAZY_OR_NOW      0
13246 #        endif
13247 #      endif
13248 #    endif
13249 #  endif
13250 #endif
13251
13252 /* When -fvisibility=hidden is used, assume the code has been annotated
13253    correspondingly for the symbols needed.  */
13254 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13255 int fnord () __attribute__((visibility("default")));
13256 #endif
13257
13258 int fnord () { return 42; }
13259 int main ()
13260 {
13261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13262   int status = $lt_dlunknown;
13263
13264   if (self)
13265     {
13266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13267       else
13268         {
13269           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13270           else puts (dlerror ());
13271         }
13272       /* dlclose (self); */
13273     }
13274   else
13275     puts (dlerror ());
13276
13277   return status;
13278 }
13279 _LT_EOF
13280   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13281   (eval $ac_link) 2>&5
13282   ac_status=$?
13283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13284   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13285     (./conftest; exit; ) >&5 2>/dev/null
13286     lt_status=$?
13287     case x$lt_status in
13288       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13289       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13290       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13291     esac
13292   else :
13293     # compilation failed
13294     lt_cv_dlopen_self_static=no
13295   fi
13296 fi
13297 rm -fr conftest*
13298
13299
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13302 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13303     fi
13304
13305     CPPFLAGS=$save_CPPFLAGS
13306     LDFLAGS=$save_LDFLAGS
13307     LIBS=$save_LIBS
13308     ;;
13309   esac
13310
13311   case $lt_cv_dlopen_self in
13312   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13313   *) enable_dlopen_self=unknown ;;
13314   esac
13315
13316   case $lt_cv_dlopen_self_static in
13317   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13318   *) enable_dlopen_self_static=unknown ;;
13319   esac
13320 fi
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338 striplib=
13339 old_striplib=
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13342 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13343   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13344   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346 $as_echo "yes" >&6; }
13347 else
13348 # FIXME - insert some real tests, host_os isn't really good enough
13349   case $host_os in
13350   darwin*)
13351     if test -n "$STRIP"; then
13352       striplib="$STRIP -x"
13353       old_striplib="$STRIP -S"
13354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13356     else
13357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13359     fi
13360     ;;
13361   *)
13362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364     ;;
13365   esac
13366 fi
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379   # Report what library types will actually be built
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13381 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13383 $as_echo "$can_build_shared" >&6; }
13384
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13386 $as_echo_n "checking whether to build shared libraries... " >&6; }
13387   test no = "$can_build_shared" && enable_shared=no
13388
13389   # On AIX, shared libraries and static libraries use the same namespace, and
13390   # are all built from PIC.
13391   case $host_os in
13392   aix3*)
13393     test yes = "$enable_shared" && enable_static=no
13394     if test -n "$RANLIB"; then
13395       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13396       postinstall_cmds='$RANLIB $lib'
13397     fi
13398     ;;
13399
13400   aix[4-9]*)
13401     if test ia64 != "$host_cpu"; then
13402       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13403       yes,aix,yes) ;;                   # shared object as lib.so file only
13404       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13405       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13406       esac
13407     fi
13408     ;;
13409   esac
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13411 $as_echo "$enable_shared" >&6; }
13412
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13414 $as_echo_n "checking whether to build static libraries... " >&6; }
13415   # Make sure either enable_shared or enable_static is yes.
13416   test yes = "$enable_shared" || enable_static=yes
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13418 $as_echo "$enable_static" >&6; }
13419
13420
13421
13422
13423 fi
13424 ac_ext=c
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429
13430 CC=$lt_save_CC
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446         ac_config_commands="$ac_config_commands libtool"
13447
13448
13449
13450
13451 # Only expand once:
13452
13453
13454
13455 # Check for programs
13456
13457   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_minix_config_h" = xyes; then :
13459   MINIX=yes
13460 else
13461   MINIX=
13462 fi
13463
13464
13465   if test "$MINIX" = yes; then
13466
13467 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13468
13469
13470 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
13471
13472
13473 $as_echo "#define _MINIX 1" >>confdefs.h
13474
13475   fi
13476
13477
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13479 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
13480 if ${ac_cv_safe_to_define___extensions__+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h.  */
13485
13486 #         define __EXTENSIONS__ 1
13487           $ac_includes_default
13488 int
13489 main ()
13490 {
13491
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 if ac_fn_c_try_compile "$LINENO"; then :
13497   ac_cv_safe_to_define___extensions__=yes
13498 else
13499   ac_cv_safe_to_define___extensions__=no
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13504 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13505   test $ac_cv_safe_to_define___extensions__ = yes &&
13506     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
13507
13508   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13509
13510   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13511
13512   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13513
13514   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
13515
13516
13517 ac_ext=c
13518 ac_cpp='$CPP $CPPFLAGS'
13519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522 if test -n "$ac_tool_prefix"; then
13523   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526 $as_echo_n "checking for $ac_word... " >&6; }
13527 if ${ac_cv_prog_CC+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   if test -n "$CC"; then
13531   ac_cv_prog_CC="$CC" # Let the user override the test.
13532 else
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13535 do
13536   IFS=$as_save_IFS
13537   test -z "$as_dir" && as_dir=.
13538     for ac_exec_ext in '' $ac_executable_extensions; do
13539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542     break 2
13543   fi
13544 done
13545   done
13546 IFS=$as_save_IFS
13547
13548 fi
13549 fi
13550 CC=$ac_cv_prog_CC
13551 if test -n "$CC"; then
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13553 $as_echo "$CC" >&6; }
13554 else
13555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13557 fi
13558
13559
13560 fi
13561 if test -z "$ac_cv_prog_CC"; then
13562   ac_ct_CC=$CC
13563   # Extract the first word of "gcc", so it can be a program name with args.
13564 set dummy gcc; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570   if test -n "$ac_ct_CC"; then
13571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576   IFS=$as_save_IFS
13577   test -z "$as_dir" && as_dir=.
13578     for ac_exec_ext in '' $ac_executable_extensions; do
13579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580     ac_cv_prog_ac_ct_CC="gcc"
13581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582     break 2
13583   fi
13584 done
13585   done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13591 if test -n "$ac_ct_CC"; then
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13593 $as_echo "$ac_ct_CC" >&6; }
13594 else
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599   if test "x$ac_ct_CC" = x; then
13600     CC=""
13601   else
13602     case $cross_compiling:$ac_tool_warned in
13603 yes:)
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606 ac_tool_warned=yes ;;
13607 esac
13608     CC=$ac_ct_CC
13609   fi
13610 else
13611   CC="$ac_cv_prog_CC"
13612 fi
13613
13614 if test -z "$CC"; then
13615           if test -n "$ac_tool_prefix"; then
13616     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}cc; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_prog_CC+:} false; then :
13621   $as_echo_n "(cached) " >&6
13622 else
13623   if test -n "$CC"; then
13624   ac_cv_prog_CC="$CC" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631     for ac_exec_ext in '' $ac_executable_extensions; do
13632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633     ac_cv_prog_CC="${ac_tool_prefix}cc"
13634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638   done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 CC=$ac_cv_prog_CC
13644 if test -n "$CC"; then
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13646 $as_echo "$CC" >&6; }
13647 else
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652
13653   fi
13654 fi
13655 if test -z "$CC"; then
13656   # Extract the first word of "cc", so it can be a program name with args.
13657 set dummy cc; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if ${ac_cv_prog_CC+:} false; then :
13661   $as_echo_n "(cached) " >&6
13662 else
13663   if test -n "$CC"; then
13664   ac_cv_prog_CC="$CC" # Let the user override the test.
13665 else
13666   ac_prog_rejected=no
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670   IFS=$as_save_IFS
13671   test -z "$as_dir" && as_dir=.
13672     for ac_exec_ext in '' $ac_executable_extensions; do
13673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13675        ac_prog_rejected=yes
13676        continue
13677      fi
13678     ac_cv_prog_CC="cc"
13679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680     break 2
13681   fi
13682 done
13683   done
13684 IFS=$as_save_IFS
13685
13686 if test $ac_prog_rejected = yes; then
13687   # We found a bogon in the path, so make sure we never use it.
13688   set dummy $ac_cv_prog_CC
13689   shift
13690   if test $# != 0; then
13691     # We chose a different compiler from the bogus one.
13692     # However, it has the same basename, so the bogon will be chosen
13693     # first if we set CC to just the basename; use the full file name.
13694     shift
13695     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13696   fi
13697 fi
13698 fi
13699 fi
13700 CC=$ac_cv_prog_CC
13701 if test -n "$CC"; then
13702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13703 $as_echo "$CC" >&6; }
13704 else
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708
13709
13710 fi
13711 if test -z "$CC"; then
13712   if test -n "$ac_tool_prefix"; then
13713   for ac_prog in cl.exe
13714   do
13715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_CC+:} false; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   if test -n "$CC"; then
13723   ac_cv_prog_CC="$CC" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728   IFS=$as_save_IFS
13729   test -z "$as_dir" && as_dir=.
13730     for ac_exec_ext in '' $ac_executable_extensions; do
13731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734     break 2
13735   fi
13736 done
13737   done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 CC=$ac_cv_prog_CC
13743 if test -n "$CC"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13745 $as_echo "$CC" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752     test -n "$CC" && break
13753   done
13754 fi
13755 if test -z "$CC"; then
13756   ac_ct_CC=$CC
13757   for ac_prog in cl.exe
13758 do
13759   # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   if test -n "$ac_ct_CC"; then
13767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13771 do
13772   IFS=$as_save_IFS
13773   test -z "$as_dir" && as_dir=.
13774     for ac_exec_ext in '' $ac_executable_extensions; do
13775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776     ac_cv_prog_ac_ct_CC="$ac_prog"
13777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778     break 2
13779   fi
13780 done
13781   done
13782 IFS=$as_save_IFS
13783
13784 fi
13785 fi
13786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13787 if test -n "$ac_ct_CC"; then
13788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13789 $as_echo "$ac_ct_CC" >&6; }
13790 else
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794
13795
13796   test -n "$ac_ct_CC" && break
13797 done
13798
13799   if test "x$ac_ct_CC" = x; then
13800     CC=""
13801   else
13802     case $cross_compiling:$ac_tool_warned in
13803 yes:)
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13806 ac_tool_warned=yes ;;
13807 esac
13808     CC=$ac_ct_CC
13809   fi
13810 fi
13811
13812 fi
13813
13814
13815 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13817 as_fn_error $? "no acceptable C compiler found in \$PATH
13818 See \`config.log' for more details" "$LINENO" 5; }
13819
13820 # Provide some information about the compiler.
13821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13822 set X $ac_compile
13823 ac_compiler=$2
13824 for ac_option in --version -v -V -qversion; do
13825   { { ac_try="$ac_compiler $ac_option >&5"
13826 case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13831 $as_echo "$ac_try_echo"; } >&5
13832   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13833   ac_status=$?
13834   if test -s conftest.err; then
13835     sed '10a\
13836 ... rest of stderr output deleted ...
13837          10q' conftest.err >conftest.er1
13838     cat conftest.er1 >&5
13839   fi
13840   rm -f conftest.er1 conftest.err
13841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13842   test $ac_status = 0; }
13843 done
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13846 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13847 if ${ac_cv_c_compiler_gnu+:} false; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h.  */
13852
13853 int
13854 main ()
13855 {
13856 #ifndef __GNUC__
13857        choke me
13858 #endif
13859
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865   ac_compiler_gnu=yes
13866 else
13867   ac_compiler_gnu=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13871
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13874 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13875 if test $ac_compiler_gnu = yes; then
13876   GCC=yes
13877 else
13878   GCC=
13879 fi
13880 ac_test_CFLAGS=${CFLAGS+set}
13881 ac_save_CFLAGS=$CFLAGS
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13883 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13884 if ${ac_cv_prog_cc_g+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887   ac_save_c_werror_flag=$ac_c_werror_flag
13888    ac_c_werror_flag=yes
13889    ac_cv_prog_cc_g=no
13890    CFLAGS="-g"
13891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h.  */
13893
13894 int
13895 main ()
13896 {
13897
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903   ac_cv_prog_cc_g=yes
13904 else
13905   CFLAGS=""
13906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h.  */
13908
13909 int
13910 main ()
13911 {
13912
13913   ;
13914   return 0;
13915 }
13916 _ACEOF
13917 if ac_fn_c_try_compile "$LINENO"; then :
13918
13919 else
13920   ac_c_werror_flag=$ac_save_c_werror_flag
13921          CFLAGS="-g"
13922          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h.  */
13924
13925 int
13926 main ()
13927 {
13928
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934   ac_cv_prog_cc_g=yes
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941    ac_c_werror_flag=$ac_save_c_werror_flag
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13944 $as_echo "$ac_cv_prog_cc_g" >&6; }
13945 if test "$ac_test_CFLAGS" = set; then
13946   CFLAGS=$ac_save_CFLAGS
13947 elif test $ac_cv_prog_cc_g = yes; then
13948   if test "$GCC" = yes; then
13949     CFLAGS="-g -O2"
13950   else
13951     CFLAGS="-g"
13952   fi
13953 else
13954   if test "$GCC" = yes; then
13955     CFLAGS="-O2"
13956   else
13957     CFLAGS=
13958   fi
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13962 if ${ac_cv_prog_cc_c89+:} false; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   ac_cv_prog_cc_c89=no
13966 ac_save_CC=$CC
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h.  */
13969 #include <stdarg.h>
13970 #include <stdio.h>
13971 struct stat;
13972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13973 struct buf { int x; };
13974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13975 static char *e (p, i)
13976      char **p;
13977      int i;
13978 {
13979   return p[i];
13980 }
13981 static char *f (char * (*g) (char **, int), char **p, ...)
13982 {
13983   char *s;
13984   va_list v;
13985   va_start (v,p);
13986   s = g (p, va_arg (v,int));
13987   va_end (v);
13988   return s;
13989 }
13990
13991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13992    function prototypes and stuff, but not '\xHH' hex character constants.
13993    These don't provoke an error unfortunately, instead are silently treated
13994    as 'x'.  The following induces an error, until -std is added to get
13995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13996    array size at least.  It's necessary to write '\x00'==0 to get something
13997    that's true only with -std.  */
13998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13999
14000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14001    inside strings and character constants.  */
14002 #define FOO(x) 'x'
14003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14004
14005 int test (int i, double x);
14006 struct s1 {int (*f) (int a);};
14007 struct s2 {int (*f) (double a);};
14008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14009 int argc;
14010 char **argv;
14011 int
14012 main ()
14013 {
14014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14021 do
14022   CC="$ac_save_CC $ac_arg"
14023   if ac_fn_c_try_compile "$LINENO"; then :
14024   ac_cv_prog_cc_c89=$ac_arg
14025 fi
14026 rm -f core conftest.err conftest.$ac_objext
14027   test "x$ac_cv_prog_cc_c89" != "xno" && break
14028 done
14029 rm -f conftest.$ac_ext
14030 CC=$ac_save_CC
14031
14032 fi
14033 # AC_CACHE_VAL
14034 case "x$ac_cv_prog_cc_c89" in
14035   x)
14036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14037 $as_echo "none needed" >&6; } ;;
14038   xno)
14039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14040 $as_echo "unsupported" >&6; } ;;
14041   *)
14042     CC="$CC $ac_cv_prog_cc_c89"
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14045 esac
14046 if test "x$ac_cv_prog_cc_c89" != xno; then :
14047
14048 fi
14049
14050 ac_ext=c
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
14056 ac_ext=c
14057 ac_cpp='$CPP $CPPFLAGS'
14058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14062 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14063 if ${am_cv_prog_cc_c_o+:} false; then :
14064   $as_echo_n "(cached) " >&6
14065 else
14066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h.  */
14068
14069 int
14070 main ()
14071 {
14072
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077   # Make sure it works both with $CC and with simple cc.
14078   # Following AC_PROG_CC_C_O, we do the test twice because some
14079   # compilers refuse to overwrite an existing .o file with -o,
14080   # though they will create one.
14081   am_cv_prog_cc_c_o=yes
14082   for am_i in 1 2; do
14083     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14084    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14085    ac_status=$?
14086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087    (exit $ac_status); } \
14088          && test -f conftest2.$ac_objext; then
14089       : OK
14090     else
14091       am_cv_prog_cc_c_o=no
14092       break
14093     fi
14094   done
14095   rm -f core conftest*
14096   unset am_i
14097 fi
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14099 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14100 if test "$am_cv_prog_cc_c_o" != yes; then
14101    # Losing compiler, so override with the script.
14102    # FIXME: It is wrong to rewrite CC.
14103    # But if we don't then we get into trouble of one sort or another.
14104    # A longer-term fix would be to have automake use am__CC in this case,
14105    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14106    CC="$am_aux_dir/compile $CC"
14107 fi
14108 ac_ext=c
14109 ac_cpp='$CPP $CPPFLAGS'
14110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14113
14114
14115 depcc="$CC"   am_compiler_list=
14116
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14118 $as_echo_n "checking dependency style of $depcc... " >&6; }
14119 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14123   # We make a subdir and do the tests there.  Otherwise we can end up
14124   # making bogus files that we don't know about and never remove.  For
14125   # instance it was reported that on HP-UX the gcc test will end up
14126   # making a dummy file named 'D' -- because '-MD' means "put the output
14127   # in D".
14128   rm -rf conftest.dir
14129   mkdir conftest.dir
14130   # Copy depcomp to subdir because otherwise we won't find it if we're
14131   # using a relative directory.
14132   cp "$am_depcomp" conftest.dir
14133   cd conftest.dir
14134   # We will build objects and dependencies in a subdirectory because
14135   # it helps to detect inapplicable dependency modes.  For instance
14136   # both Tru64's cc and ICC support -MD to output dependencies as a
14137   # side effect of compilation, but ICC will put the dependencies in
14138   # the current directory while Tru64 will put them in the object
14139   # directory.
14140   mkdir sub
14141
14142   am_cv_CC_dependencies_compiler_type=none
14143   if test "$am_compiler_list" = ""; then
14144      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14145   fi
14146   am__universal=false
14147   case " $depcc " in #(
14148      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14149      esac
14150
14151   for depmode in $am_compiler_list; do
14152     # Setup a source with many dependencies, because some compilers
14153     # like to wrap large dependency lists on column 80 (with \), and
14154     # we should not choose a depcomp mode which is confused by this.
14155     #
14156     # We need to recreate these files for each test, as the compiler may
14157     # overwrite some of them when testing with obscure command lines.
14158     # This happens at least with the AIX C compiler.
14159     : > sub/conftest.c
14160     for i in 1 2 3 4 5 6; do
14161       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14162       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14163       # Solaris 10 /bin/sh.
14164       echo '/* dummy */' > sub/conftst$i.h
14165     done
14166     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14167
14168     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14169     # mode.  It turns out that the SunPro C++ compiler does not properly
14170     # handle '-M -o', and we need to detect this.  Also, some Intel
14171     # versions had trouble with output in subdirs.
14172     am__obj=sub/conftest.${OBJEXT-o}
14173     am__minus_obj="-o $am__obj"
14174     case $depmode in
14175     gcc)
14176       # This depmode causes a compiler race in universal mode.
14177       test "$am__universal" = false || continue
14178       ;;
14179     nosideeffect)
14180       # After this tag, mechanisms are not by side-effect, so they'll
14181       # only be used when explicitly requested.
14182       if test "x$enable_dependency_tracking" = xyes; then
14183         continue
14184       else
14185         break
14186       fi
14187       ;;
14188     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14189       # This compiler won't grok '-c -o', but also, the minuso test has
14190       # not run yet.  These depmodes are late enough in the game, and
14191       # so weak that their functioning should not be impacted.
14192       am__obj=conftest.${OBJEXT-o}
14193       am__minus_obj=
14194       ;;
14195     none) break ;;
14196     esac
14197     if depmode=$depmode \
14198        source=sub/conftest.c object=$am__obj \
14199        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14200        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14201          >/dev/null 2>conftest.err &&
14202        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14203        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14204        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14205        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14206       # icc doesn't choke on unknown options, it will just issue warnings
14207       # or remarks (even with -Werror).  So we grep stderr for any message
14208       # that says an option was ignored or not supported.
14209       # When given -MP, icc 7.0 and 7.1 complain thusly:
14210       #   icc: Command line warning: ignoring option '-M'; no argument required
14211       # The diagnosis changed in icc 8.0:
14212       #   icc: Command line remark: option '-MP' not supported
14213       if (grep 'ignoring option' conftest.err ||
14214           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14215         am_cv_CC_dependencies_compiler_type=$depmode
14216         break
14217       fi
14218     fi
14219   done
14220
14221   cd ..
14222   rm -rf conftest.dir
14223 else
14224   am_cv_CC_dependencies_compiler_type=none
14225 fi
14226
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14229 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14231
14232  if
14233   test "x$enable_dependency_tracking" != xno \
14234   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14235   am__fastdepCC_TRUE=
14236   am__fastdepCC_FALSE='#'
14237 else
14238   am__fastdepCC_TRUE='#'
14239   am__fastdepCC_FALSE=
14240 fi
14241
14242
14243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14244 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14245 if ${ac_cv_prog_cc_c99+:} false; then :
14246   $as_echo_n "(cached) " >&6
14247 else
14248   ac_cv_prog_cc_c99=no
14249 ac_save_CC=$CC
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h.  */
14252 #include <stdarg.h>
14253 #include <stdbool.h>
14254 #include <stdlib.h>
14255 #include <wchar.h>
14256 #include <stdio.h>
14257
14258 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14259 #define debug(...) fprintf (stderr, __VA_ARGS__)
14260 #define showlist(...) puts (#__VA_ARGS__)
14261 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14262 static void
14263 test_varargs_macros (void)
14264 {
14265   int x = 1234;
14266   int y = 5678;
14267   debug ("Flag");
14268   debug ("X = %d\n", x);
14269   showlist (The first, second, and third items.);
14270   report (x>y, "x is %d but y is %d", x, y);
14271 }
14272
14273 // Check long long types.
14274 #define BIG64 18446744073709551615ull
14275 #define BIG32 4294967295ul
14276 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14277 #if !BIG_OK
14278   your preprocessor is broken;
14279 #endif
14280 #if BIG_OK
14281 #else
14282   your preprocessor is broken;
14283 #endif
14284 static long long int bignum = -9223372036854775807LL;
14285 static unsigned long long int ubignum = BIG64;
14286
14287 struct incomplete_array
14288 {
14289   int datasize;
14290   double data[];
14291 };
14292
14293 struct named_init {
14294   int number;
14295   const wchar_t *name;
14296   double average;
14297 };
14298
14299 typedef const char *ccp;
14300
14301 static inline int
14302 test_restrict (ccp restrict text)
14303 {
14304   // See if C++-style comments work.
14305   // Iterate through items via the restricted pointer.
14306   // Also check for declarations in for loops.
14307   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14308     continue;
14309   return 0;
14310 }
14311
14312 // Check varargs and va_copy.
14313 static void
14314 test_varargs (const char *format, ...)
14315 {
14316   va_list args;
14317   va_start (args, format);
14318   va_list args_copy;
14319   va_copy (args_copy, args);
14320
14321   const char *str;
14322   int number;
14323   float fnumber;
14324
14325   while (*format)
14326     {
14327       switch (*format++)
14328         {
14329         case 's': // string
14330           str = va_arg (args_copy, const char *);
14331           break;
14332         case 'd': // int
14333           number = va_arg (args_copy, int);
14334           break;
14335         case 'f': // float
14336           fnumber = va_arg (args_copy, double);
14337           break;
14338         default:
14339           break;
14340         }
14341     }
14342   va_end (args_copy);
14343   va_end (args);
14344 }
14345
14346 int
14347 main ()
14348 {
14349
14350   // Check bool.
14351   _Bool success = false;
14352
14353   // Check restrict.
14354   if (test_restrict ("String literal") == 0)
14355     success = true;
14356   char *restrict newvar = "Another string";
14357
14358   // Check varargs.
14359   test_varargs ("s, d' f .", "string", 65, 34.234);
14360   test_varargs_macros ();
14361
14362   // Check flexible array members.
14363   struct incomplete_array *ia =
14364     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14365   ia->datasize = 10;
14366   for (int i = 0; i < ia->datasize; ++i)
14367     ia->data[i] = i * 1.234;
14368
14369   // Check named initializers.
14370   struct named_init ni = {
14371     .number = 34,
14372     .name = L"Test wide string",
14373     .average = 543.34343,
14374   };
14375
14376   ni.number = 58;
14377
14378   int dynamic_array[ni.number];
14379   dynamic_array[ni.number - 1] = 543;
14380
14381   // work around unused variable warnings
14382   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14383           || dynamic_array[ni.number - 1] != 543);
14384
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14390 do
14391   CC="$ac_save_CC $ac_arg"
14392   if ac_fn_c_try_compile "$LINENO"; then :
14393   ac_cv_prog_cc_c99=$ac_arg
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext
14396   test "x$ac_cv_prog_cc_c99" != "xno" && break
14397 done
14398 rm -f conftest.$ac_ext
14399 CC=$ac_save_CC
14400
14401 fi
14402 # AC_CACHE_VAL
14403 case "x$ac_cv_prog_cc_c99" in
14404   x)
14405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14406 $as_echo "none needed" >&6; } ;;
14407   xno)
14408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14409 $as_echo "unsupported" >&6; } ;;
14410   *)
14411     CC="$CC $ac_cv_prog_cc_c99"
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14413 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14414 esac
14415 if test "x$ac_cv_prog_cc_c99" != xno; then :
14416
14417 fi
14418
14419
14420
14421 ac_ext=cpp
14422 ac_cpp='$CXXCPP $CPPFLAGS'
14423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14426 if test -z "$CXX"; then
14427   if test -n "$CCC"; then
14428     CXX=$CCC
14429   else
14430     if test -n "$ac_tool_prefix"; then
14431   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14432   do
14433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if ${ac_cv_prog_CXX+:} false; then :
14438   $as_echo_n "(cached) " >&6
14439 else
14440   if test -n "$CXX"; then
14441   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14442 else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14445 do
14446   IFS=$as_save_IFS
14447   test -z "$as_dir" && as_dir=.
14448     for ac_exec_ext in '' $ac_executable_extensions; do
14449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14452     break 2
14453   fi
14454 done
14455   done
14456 IFS=$as_save_IFS
14457
14458 fi
14459 fi
14460 CXX=$ac_cv_prog_CXX
14461 if test -n "$CXX"; then
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14463 $as_echo "$CXX" >&6; }
14464 else
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14467 fi
14468
14469
14470     test -n "$CXX" && break
14471   done
14472 fi
14473 if test -z "$CXX"; then
14474   ac_ct_CXX=$CXX
14475   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14476 do
14477   # Extract the first word of "$ac_prog", so it can be a program name with args.
14478 set dummy $ac_prog; ac_word=$2
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 $as_echo_n "checking for $ac_word... " >&6; }
14481 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484   if test -n "$ac_ct_CXX"; then
14485   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490   IFS=$as_save_IFS
14491   test -z "$as_dir" && as_dir=.
14492     for ac_exec_ext in '' $ac_executable_extensions; do
14493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494     ac_cv_prog_ac_ct_CXX="$ac_prog"
14495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496     break 2
14497   fi
14498 done
14499   done
14500 IFS=$as_save_IFS
14501
14502 fi
14503 fi
14504 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14505 if test -n "$ac_ct_CXX"; then
14506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14507 $as_echo "$ac_ct_CXX" >&6; }
14508 else
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 fi
14512
14513
14514   test -n "$ac_ct_CXX" && break
14515 done
14516
14517   if test "x$ac_ct_CXX" = x; then
14518     CXX="g++"
14519   else
14520     case $cross_compiling:$ac_tool_warned in
14521 yes:)
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14524 ac_tool_warned=yes ;;
14525 esac
14526     CXX=$ac_ct_CXX
14527   fi
14528 fi
14529
14530   fi
14531 fi
14532 # Provide some information about the compiler.
14533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14534 set X $ac_compile
14535 ac_compiler=$2
14536 for ac_option in --version -v -V -qversion; do
14537   { { ac_try="$ac_compiler $ac_option >&5"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14543 $as_echo "$ac_try_echo"; } >&5
14544   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14545   ac_status=$?
14546   if test -s conftest.err; then
14547     sed '10a\
14548 ... rest of stderr output deleted ...
14549          10q' conftest.err >conftest.er1
14550     cat conftest.er1 >&5
14551   fi
14552   rm -f conftest.er1 conftest.err
14553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554   test $ac_status = 0; }
14555 done
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14558 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14559 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14560   $as_echo_n "(cached) " >&6
14561 else
14562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h.  */
14564
14565 int
14566 main ()
14567 {
14568 #ifndef __GNUC__
14569        choke me
14570 #endif
14571
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_cxx_try_compile "$LINENO"; then :
14577   ac_compiler_gnu=yes
14578 else
14579   ac_compiler_gnu=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14583
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14586 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14587 if test $ac_compiler_gnu = yes; then
14588   GXX=yes
14589 else
14590   GXX=
14591 fi
14592 ac_test_CXXFLAGS=${CXXFLAGS+set}
14593 ac_save_CXXFLAGS=$CXXFLAGS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14595 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14596 if ${ac_cv_prog_cxx_g+:} false; then :
14597   $as_echo_n "(cached) " >&6
14598 else
14599   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14600    ac_cxx_werror_flag=yes
14601    ac_cv_prog_cxx_g=no
14602    CXXFLAGS="-g"
14603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h.  */
14605
14606 int
14607 main ()
14608 {
14609
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_cxx_try_compile "$LINENO"; then :
14615   ac_cv_prog_cxx_g=yes
14616 else
14617   CXXFLAGS=""
14618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h.  */
14620
14621 int
14622 main ()
14623 {
14624
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 if ac_fn_cxx_try_compile "$LINENO"; then :
14630
14631 else
14632   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14633          CXXFLAGS="-g"
14634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h.  */
14636
14637 int
14638 main ()
14639 {
14640
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 if ac_fn_cxx_try_compile "$LINENO"; then :
14646   ac_cv_prog_cxx_g=yes
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 fi
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14654 fi
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14656 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14657 if test "$ac_test_CXXFLAGS" = set; then
14658   CXXFLAGS=$ac_save_CXXFLAGS
14659 elif test $ac_cv_prog_cxx_g = yes; then
14660   if test "$GXX" = yes; then
14661     CXXFLAGS="-g -O2"
14662   else
14663     CXXFLAGS="-g"
14664   fi
14665 else
14666   if test "$GXX" = yes; then
14667     CXXFLAGS="-O2"
14668   else
14669     CXXFLAGS=
14670   fi
14671 fi
14672 ac_ext=c
14673 ac_cpp='$CPP $CPPFLAGS'
14674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14677
14678 depcc="$CXX"  am_compiler_list=
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14681 $as_echo_n "checking dependency style of $depcc... " >&6; }
14682 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14686   # We make a subdir and do the tests there.  Otherwise we can end up
14687   # making bogus files that we don't know about and never remove.  For
14688   # instance it was reported that on HP-UX the gcc test will end up
14689   # making a dummy file named 'D' -- because '-MD' means "put the output
14690   # in D".
14691   rm -rf conftest.dir
14692   mkdir conftest.dir
14693   # Copy depcomp to subdir because otherwise we won't find it if we're
14694   # using a relative directory.
14695   cp "$am_depcomp" conftest.dir
14696   cd conftest.dir
14697   # We will build objects and dependencies in a subdirectory because
14698   # it helps to detect inapplicable dependency modes.  For instance
14699   # both Tru64's cc and ICC support -MD to output dependencies as a
14700   # side effect of compilation, but ICC will put the dependencies in
14701   # the current directory while Tru64 will put them in the object
14702   # directory.
14703   mkdir sub
14704
14705   am_cv_CXX_dependencies_compiler_type=none
14706   if test "$am_compiler_list" = ""; then
14707      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14708   fi
14709   am__universal=false
14710   case " $depcc " in #(
14711      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14712      esac
14713
14714   for depmode in $am_compiler_list; do
14715     # Setup a source with many dependencies, because some compilers
14716     # like to wrap large dependency lists on column 80 (with \), and
14717     # we should not choose a depcomp mode which is confused by this.
14718     #
14719     # We need to recreate these files for each test, as the compiler may
14720     # overwrite some of them when testing with obscure command lines.
14721     # This happens at least with the AIX C compiler.
14722     : > sub/conftest.c
14723     for i in 1 2 3 4 5 6; do
14724       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14725       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14726       # Solaris 10 /bin/sh.
14727       echo '/* dummy */' > sub/conftst$i.h
14728     done
14729     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14730
14731     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14732     # mode.  It turns out that the SunPro C++ compiler does not properly
14733     # handle '-M -o', and we need to detect this.  Also, some Intel
14734     # versions had trouble with output in subdirs.
14735     am__obj=sub/conftest.${OBJEXT-o}
14736     am__minus_obj="-o $am__obj"
14737     case $depmode in
14738     gcc)
14739       # This depmode causes a compiler race in universal mode.
14740       test "$am__universal" = false || continue
14741       ;;
14742     nosideeffect)
14743       # After this tag, mechanisms are not by side-effect, so they'll
14744       # only be used when explicitly requested.
14745       if test "x$enable_dependency_tracking" = xyes; then
14746         continue
14747       else
14748         break
14749       fi
14750       ;;
14751     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14752       # This compiler won't grok '-c -o', but also, the minuso test has
14753       # not run yet.  These depmodes are late enough in the game, and
14754       # so weak that their functioning should not be impacted.
14755       am__obj=conftest.${OBJEXT-o}
14756       am__minus_obj=
14757       ;;
14758     none) break ;;
14759     esac
14760     if depmode=$depmode \
14761        source=sub/conftest.c object=$am__obj \
14762        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14763        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14764          >/dev/null 2>conftest.err &&
14765        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14766        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14767        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14768        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14769       # icc doesn't choke on unknown options, it will just issue warnings
14770       # or remarks (even with -Werror).  So we grep stderr for any message
14771       # that says an option was ignored or not supported.
14772       # When given -MP, icc 7.0 and 7.1 complain thusly:
14773       #   icc: Command line warning: ignoring option '-M'; no argument required
14774       # The diagnosis changed in icc 8.0:
14775       #   icc: Command line remark: option '-MP' not supported
14776       if (grep 'ignoring option' conftest.err ||
14777           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14778         am_cv_CXX_dependencies_compiler_type=$depmode
14779         break
14780       fi
14781     fi
14782   done
14783
14784   cd ..
14785   rm -rf conftest.dir
14786 else
14787   am_cv_CXX_dependencies_compiler_type=none
14788 fi
14789
14790 fi
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14792 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14793 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14794
14795  if
14796   test "x$enable_dependency_tracking" != xno \
14797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14798   am__fastdepCXX_TRUE=
14799   am__fastdepCXX_FALSE='#'
14800 else
14801   am__fastdepCXX_TRUE='#'
14802   am__fastdepCXX_FALSE=
14803 fi
14804
14805
14806
14807
14808 func_stripname_cnf ()
14809 {
14810   case $2 in
14811   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14812   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14813   esac
14814 } # func_stripname_cnf
14815
14816       if test -n "$CXX" && ( test no != "$CXX" &&
14817     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14818     (test g++ != "$CXX"))); then
14819   ac_ext=cpp
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14825 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14826 if test -z "$CXXCPP"; then
14827   if ${ac_cv_prog_CXXCPP+:} false; then :
14828   $as_echo_n "(cached) " >&6
14829 else
14830       # Double quotes because CXXCPP needs to be expanded
14831     for CXXCPP in "$CXX -E" "/lib/cpp"
14832     do
14833       ac_preproc_ok=false
14834 for ac_cxx_preproc_warn_flag in '' yes
14835 do
14836   # Use a header file that comes with gcc, so configuring glibc
14837   # with a fresh cross-compiler works.
14838   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839   # <limits.h> exists even on freestanding compilers.
14840   # On the NeXT, cc -E runs the code through the compiler's parser,
14841   # not just through cpp. "Syntax error" is here to catch this case.
14842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h.  */
14844 #ifdef __STDC__
14845 # include <limits.h>
14846 #else
14847 # include <assert.h>
14848 #endif
14849                      Syntax error
14850 _ACEOF
14851 if ac_fn_cxx_try_cpp "$LINENO"; then :
14852
14853 else
14854   # Broken: fails on valid input.
14855 continue
14856 fi
14857 rm -f conftest.err conftest.i conftest.$ac_ext
14858
14859   # OK, works on sane cases.  Now check whether nonexistent headers
14860   # can be detected and how.
14861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863 #include <ac_nonexistent.h>
14864 _ACEOF
14865 if ac_fn_cxx_try_cpp "$LINENO"; then :
14866   # Broken: success on invalid input.
14867 continue
14868 else
14869   # Passes both tests.
14870 ac_preproc_ok=:
14871 break
14872 fi
14873 rm -f conftest.err conftest.i conftest.$ac_ext
14874
14875 done
14876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14877 rm -f conftest.i conftest.err conftest.$ac_ext
14878 if $ac_preproc_ok; then :
14879   break
14880 fi
14881
14882     done
14883     ac_cv_prog_CXXCPP=$CXXCPP
14884
14885 fi
14886   CXXCPP=$ac_cv_prog_CXXCPP
14887 else
14888   ac_cv_prog_CXXCPP=$CXXCPP
14889 fi
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14891 $as_echo "$CXXCPP" >&6; }
14892 ac_preproc_ok=false
14893 for ac_cxx_preproc_warn_flag in '' yes
14894 do
14895   # Use a header file that comes with gcc, so configuring glibc
14896   # with a fresh cross-compiler works.
14897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14898   # <limits.h> exists even on freestanding compilers.
14899   # On the NeXT, cc -E runs the code through the compiler's parser,
14900   # not just through cpp. "Syntax error" is here to catch this case.
14901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h.  */
14903 #ifdef __STDC__
14904 # include <limits.h>
14905 #else
14906 # include <assert.h>
14907 #endif
14908                      Syntax error
14909 _ACEOF
14910 if ac_fn_cxx_try_cpp "$LINENO"; then :
14911
14912 else
14913   # Broken: fails on valid input.
14914 continue
14915 fi
14916 rm -f conftest.err conftest.i conftest.$ac_ext
14917
14918   # OK, works on sane cases.  Now check whether nonexistent headers
14919   # can be detected and how.
14920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h.  */
14922 #include <ac_nonexistent.h>
14923 _ACEOF
14924 if ac_fn_cxx_try_cpp "$LINENO"; then :
14925   # Broken: success on invalid input.
14926 continue
14927 else
14928   # Passes both tests.
14929 ac_preproc_ok=:
14930 break
14931 fi
14932 rm -f conftest.err conftest.i conftest.$ac_ext
14933
14934 done
14935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14936 rm -f conftest.i conftest.err conftest.$ac_ext
14937 if $ac_preproc_ok; then :
14938
14939 else
14940   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14942 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14943 See \`config.log' for more details" "$LINENO" 5; }
14944 fi
14945
14946 ac_ext=c
14947 ac_cpp='$CPP $CPPFLAGS'
14948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14951
14952 else
14953   _lt_caught_CXX_error=yes
14954 fi
14955
14956 ac_ext=cpp
14957 ac_cpp='$CXXCPP $CPPFLAGS'
14958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14961
14962 archive_cmds_need_lc_CXX=no
14963 allow_undefined_flag_CXX=
14964 always_export_symbols_CXX=no
14965 archive_expsym_cmds_CXX=
14966 compiler_needs_object_CXX=no
14967 export_dynamic_flag_spec_CXX=
14968 hardcode_direct_CXX=no
14969 hardcode_direct_absolute_CXX=no
14970 hardcode_libdir_flag_spec_CXX=
14971 hardcode_libdir_separator_CXX=
14972 hardcode_minus_L_CXX=no
14973 hardcode_shlibpath_var_CXX=unsupported
14974 hardcode_automatic_CXX=no
14975 inherit_rpath_CXX=no
14976 module_cmds_CXX=
14977 module_expsym_cmds_CXX=
14978 link_all_deplibs_CXX=unknown
14979 old_archive_cmds_CXX=$old_archive_cmds
14980 reload_flag_CXX=$reload_flag
14981 reload_cmds_CXX=$reload_cmds
14982 no_undefined_flag_CXX=
14983 whole_archive_flag_spec_CXX=
14984 enable_shared_with_static_runtimes_CXX=no
14985
14986 # Source file extension for C++ test sources.
14987 ac_ext=cpp
14988
14989 # Object file extension for compiled C++ test sources.
14990 objext=o
14991 objext_CXX=$objext
14992
14993 # No sense in running all these tests if we already determined that
14994 # the CXX compiler isn't working.  Some variables (like enable_shared)
14995 # are currently assumed to apply to all compilers on this platform,
14996 # and will be corrupted by setting them based on a non-working compiler.
14997 if test yes != "$_lt_caught_CXX_error"; then
14998   # Code to be used in simple compile tests
14999   lt_simple_compile_test_code="int some_variable = 0;"
15000
15001   # Code to be used in simple link tests
15002   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15003
15004   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15005
15006
15007
15008
15009
15010
15011 # If no C compiler was specified, use CC.
15012 LTCC=${LTCC-"$CC"}
15013
15014 # If no C compiler flags were specified, use CFLAGS.
15015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15016
15017 # Allow CC to be a program name with arguments.
15018 compiler=$CC
15019
15020
15021   # save warnings/boilerplate of simple test code
15022   ac_outfile=conftest.$ac_objext
15023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15025 _lt_compiler_boilerplate=`cat conftest.err`
15026 $RM conftest*
15027
15028   ac_outfile=conftest.$ac_objext
15029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15031 _lt_linker_boilerplate=`cat conftest.err`
15032 $RM -r conftest*
15033
15034
15035   # Allow CC to be a program name with arguments.
15036   lt_save_CC=$CC
15037   lt_save_CFLAGS=$CFLAGS
15038   lt_save_LD=$LD
15039   lt_save_GCC=$GCC
15040   GCC=$GXX
15041   lt_save_with_gnu_ld=$with_gnu_ld
15042   lt_save_path_LD=$lt_cv_path_LD
15043   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15044     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15045   else
15046     $as_unset lt_cv_prog_gnu_ld
15047   fi
15048   if test -n "${lt_cv_path_LDCXX+set}"; then
15049     lt_cv_path_LD=$lt_cv_path_LDCXX
15050   else
15051     $as_unset lt_cv_path_LD
15052   fi
15053   test -z "${LDCXX+set}" || LD=$LDCXX
15054   CC=${CXX-"c++"}
15055   CFLAGS=$CXXFLAGS
15056   compiler=$CC
15057   compiler_CXX=$CC
15058   func_cc_basename $compiler
15059 cc_basename=$func_cc_basename_result
15060
15061
15062   if test -n "$compiler"; then
15063     # We don't want -fno-exception when compiling C++ code, so set the
15064     # no_builtin_flag separately
15065     if test yes = "$GXX"; then
15066       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15067     else
15068       lt_prog_compiler_no_builtin_flag_CXX=
15069     fi
15070
15071     if test yes = "$GXX"; then
15072       # Set up default GNU C++ configuration
15073
15074
15075
15076 # Check whether --with-gnu-ld was given.
15077 if test "${with_gnu_ld+set}" = set; then :
15078   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15079 else
15080   with_gnu_ld=no
15081 fi
15082
15083 ac_prog=ld
15084 if test yes = "$GCC"; then
15085   # Check if gcc -print-prog-name=ld gives a path.
15086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15087 $as_echo_n "checking for ld used by $CC... " >&6; }
15088   case $host in
15089   *-*-mingw*)
15090     # gcc leaves a trailing carriage return, which upsets mingw
15091     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15092   *)
15093     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15094   esac
15095   case $ac_prog in
15096     # Accept absolute paths.
15097     [\\/]* | ?:[\\/]*)
15098       re_direlt='/[^/][^/]*/\.\./'
15099       # Canonicalize the pathname of ld
15100       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15101       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15102         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15103       done
15104       test -z "$LD" && LD=$ac_prog
15105       ;;
15106   "")
15107     # If it fails, then pretend we aren't using GCC.
15108     ac_prog=ld
15109     ;;
15110   *)
15111     # If it is relative, then search for the first ld in PATH.
15112     with_gnu_ld=unknown
15113     ;;
15114   esac
15115 elif test yes = "$with_gnu_ld"; then
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15117 $as_echo_n "checking for GNU ld... " >&6; }
15118 else
15119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15120 $as_echo_n "checking for non-GNU ld... " >&6; }
15121 fi
15122 if ${lt_cv_path_LD+:} false; then :
15123   $as_echo_n "(cached) " >&6
15124 else
15125   if test -z "$LD"; then
15126   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15127   for ac_dir in $PATH; do
15128     IFS=$lt_save_ifs
15129     test -z "$ac_dir" && ac_dir=.
15130     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15131       lt_cv_path_LD=$ac_dir/$ac_prog
15132       # Check to see if the program is GNU ld.  I'd rather use --version,
15133       # but apparently some variants of GNU ld only accept -v.
15134       # Break only if it was the GNU/non-GNU ld that we prefer.
15135       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15136       *GNU* | *'with BFD'*)
15137         test no != "$with_gnu_ld" && break
15138         ;;
15139       *)
15140         test yes != "$with_gnu_ld" && break
15141         ;;
15142       esac
15143     fi
15144   done
15145   IFS=$lt_save_ifs
15146 else
15147   lt_cv_path_LD=$LD # Let the user override the test with a path.
15148 fi
15149 fi
15150
15151 LD=$lt_cv_path_LD
15152 if test -n "$LD"; then
15153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15154 $as_echo "$LD" >&6; }
15155 else
15156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158 fi
15159 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15161 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15162 if ${lt_cv_prog_gnu_ld+:} false; then :
15163   $as_echo_n "(cached) " >&6
15164 else
15165   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15166 case `$LD -v 2>&1 </dev/null` in
15167 *GNU* | *'with BFD'*)
15168   lt_cv_prog_gnu_ld=yes
15169   ;;
15170 *)
15171   lt_cv_prog_gnu_ld=no
15172   ;;
15173 esac
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15176 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15177 with_gnu_ld=$lt_cv_prog_gnu_ld
15178
15179
15180
15181
15182
15183
15184
15185       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15186       # archiving commands below assume that GNU ld is being used.
15187       if test yes = "$with_gnu_ld"; then
15188         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15189         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'
15190
15191         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15192         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15193
15194         # If archive_cmds runs LD, not CC, wlarc should be empty
15195         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15196         #     investigate it a little bit more. (MM)
15197         wlarc='$wl'
15198
15199         # ancient GNU ld didn't support --whole-archive et. al.
15200         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15201           $GREP 'no-whole-archive' > /dev/null; then
15202           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15203         else
15204           whole_archive_flag_spec_CXX=
15205         fi
15206       else
15207         with_gnu_ld=no
15208         wlarc=
15209
15210         # A generic and very simple default shared library creation
15211         # command for GNU C++ for the case where it uses the native
15212         # linker, instead of GNU ld.  If possible, this setting should
15213         # overridden to take advantage of the native linker features on
15214         # the platform it is being used on.
15215         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15216       fi
15217
15218       # Commands to make compiler produce verbose output that lists
15219       # what "hidden" libraries, object files and flags are used when
15220       # linking a shared library.
15221       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15222
15223     else
15224       GXX=no
15225       with_gnu_ld=no
15226       wlarc=
15227     fi
15228
15229     # PORTME: fill in a description of your system's C++ link characteristics
15230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15232     ld_shlibs_CXX=yes
15233     case $host_os in
15234       aix3*)
15235         # FIXME: insert proper C++ library support
15236         ld_shlibs_CXX=no
15237         ;;
15238       aix[4-9]*)
15239         if test ia64 = "$host_cpu"; then
15240           # On IA64, the linker does run time linking by default, so we don't
15241           # have to do anything special.
15242           aix_use_runtimelinking=no
15243           exp_sym_flag='-Bexport'
15244           no_entry_flag=
15245         else
15246           aix_use_runtimelinking=no
15247
15248           # Test if we are trying to use run time linking or normal
15249           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250           # have runtime linking enabled, and use it for executables.
15251           # For shared libraries, we enable/disable runtime linking
15252           # depending on the kind of the shared library created -
15253           # when "with_aix_soname,aix_use_runtimelinking" is:
15254           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15255           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15256           #            lib.a           static archive
15257           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15258           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15259           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15260           #            lib.a(lib.so.V) shared, rtl:no
15261           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15262           #            lib.a           static archive
15263           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15264             for ld_flag in $LDFLAGS; do
15265               case $ld_flag in
15266               *-brtl*)
15267                 aix_use_runtimelinking=yes
15268                 break
15269                 ;;
15270               esac
15271             done
15272             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15273               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15274               # so we don't have lib.a shared libs to link our executables.
15275               # We have to force runtime linking in this case.
15276               aix_use_runtimelinking=yes
15277               LDFLAGS="$LDFLAGS -Wl,-brtl"
15278             fi
15279             ;;
15280           esac
15281
15282           exp_sym_flag='-bexport'
15283           no_entry_flag='-bnoentry'
15284         fi
15285
15286         # When large executables or shared objects are built, AIX ld can
15287         # have problems creating the table of contents.  If linking a library
15288         # or program results in "error TOC overflow" add -mminimal-toc to
15289         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15290         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15291
15292         archive_cmds_CXX=''
15293         hardcode_direct_CXX=yes
15294         hardcode_direct_absolute_CXX=yes
15295         hardcode_libdir_separator_CXX=':'
15296         link_all_deplibs_CXX=yes
15297         file_list_spec_CXX='$wl-f,'
15298         case $with_aix_soname,$aix_use_runtimelinking in
15299         aix,*) ;;       # no import file
15300         svr4,* | *,yes) # use import file
15301           # The Import File defines what to hardcode.
15302           hardcode_direct_CXX=no
15303           hardcode_direct_absolute_CXX=no
15304           ;;
15305         esac
15306
15307         if test yes = "$GXX"; then
15308           case $host_os in aix4.[012]|aix4.[012].*)
15309           # We only want to do this on AIX 4.2 and lower, the check
15310           # below for broken collect2 doesn't work under 4.3+
15311           collect2name=`$CC -print-prog-name=collect2`
15312           if test -f "$collect2name" &&
15313              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15314           then
15315             # We have reworked collect2
15316             :
15317           else
15318             # We have old collect2
15319             hardcode_direct_CXX=unsupported
15320             # It fails to find uninstalled libraries when the uninstalled
15321             # path is not listed in the libpath.  Setting hardcode_minus_L
15322             # to unsupported forces relinking
15323             hardcode_minus_L_CXX=yes
15324             hardcode_libdir_flag_spec_CXX='-L$libdir'
15325             hardcode_libdir_separator_CXX=
15326           fi
15327           esac
15328           shared_flag='-shared'
15329           if test yes = "$aix_use_runtimelinking"; then
15330             shared_flag=$shared_flag' $wl-G'
15331           fi
15332           # Need to ensure runtime linking is disabled for the traditional
15333           # shared library, or the linker may eventually find shared libraries
15334           # /with/ Import File - we do not want to mix them.
15335           shared_flag_aix='-shared'
15336           shared_flag_svr4='-shared $wl-G'
15337         else
15338           # not using gcc
15339           if test ia64 = "$host_cpu"; then
15340           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341           # chokes on -Wl,-G. The following line is correct:
15342           shared_flag='-G'
15343           else
15344             if test yes = "$aix_use_runtimelinking"; then
15345               shared_flag='$wl-G'
15346             else
15347               shared_flag='$wl-bM:SRE'
15348             fi
15349             shared_flag_aix='$wl-bM:SRE'
15350             shared_flag_svr4='$wl-G'
15351           fi
15352         fi
15353
15354         export_dynamic_flag_spec_CXX='$wl-bexpall'
15355         # It seems that -bexpall does not export symbols beginning with
15356         # underscore (_), so it is better to generate a list of symbols to
15357         # export.
15358         always_export_symbols_CXX=yes
15359         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15360           # Warning - without using the other runtime loading flags (-brtl),
15361           # -berok will link without error, but may produce a broken library.
15362           # The "-G" linker flag allows undefined symbols.
15363           no_undefined_flag_CXX='-bernotok'
15364           # Determine the default libpath from the value encoded in an empty
15365           # executable.
15366           if test set = "${lt_cv_aix_libpath+set}"; then
15367   aix_libpath=$lt_cv_aix_libpath
15368 else
15369   if ${lt_cv_aix_libpath__CXX+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h.  */
15374
15375 int
15376 main ()
15377 {
15378
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15384
15385   lt_aix_libpath_sed='
15386       /Import File Strings/,/^$/ {
15387           /^0/ {
15388               s/^0  *\([^ ]*\) *$/\1/
15389               p
15390           }
15391       }'
15392   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393   # Check for a 64-bit object if we didn't find anything.
15394   if test -z "$lt_cv_aix_libpath__CXX"; then
15395     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396   fi
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext \
15399     conftest$ac_exeext conftest.$ac_ext
15400   if test -z "$lt_cv_aix_libpath__CXX"; then
15401     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15402   fi
15403
15404 fi
15405
15406   aix_libpath=$lt_cv_aix_libpath__CXX
15407 fi
15408
15409           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15410
15411           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
15412         else
15413           if test ia64 = "$host_cpu"; then
15414             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15415             allow_undefined_flag_CXX="-z nodefs"
15416             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"
15417           else
15418             # Determine the default libpath from the value encoded in an
15419             # empty executable.
15420             if test set = "${lt_cv_aix_libpath+set}"; then
15421   aix_libpath=$lt_cv_aix_libpath
15422 else
15423   if ${lt_cv_aix_libpath__CXX+:} false; then :
15424   $as_echo_n "(cached) " >&6
15425 else
15426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h.  */
15428
15429 int
15430 main ()
15431 {
15432
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 if ac_fn_cxx_try_link "$LINENO"; then :
15438
15439   lt_aix_libpath_sed='
15440       /Import File Strings/,/^$/ {
15441           /^0/ {
15442               s/^0  *\([^ ]*\) *$/\1/
15443               p
15444           }
15445       }'
15446   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15447   # Check for a 64-bit object if we didn't find anything.
15448   if test -z "$lt_cv_aix_libpath__CXX"; then
15449     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15450   fi
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext \
15453     conftest$ac_exeext conftest.$ac_ext
15454   if test -z "$lt_cv_aix_libpath__CXX"; then
15455     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15456   fi
15457
15458 fi
15459
15460   aix_libpath=$lt_cv_aix_libpath__CXX
15461 fi
15462
15463             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15464             # Warning - without using the other run time loading flags,
15465             # -berok will link without error, but may produce a broken library.
15466             no_undefined_flag_CXX=' $wl-bernotok'
15467             allow_undefined_flag_CXX=' $wl-berok'
15468             if test yes = "$with_gnu_ld"; then
15469               # We only use this code for GNU lds that support --whole-archive.
15470               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15471             else
15472               # Exported symbols can be pulled into shared objects from archives
15473               whole_archive_flag_spec_CXX='$convenience'
15474             fi
15475             archive_cmds_need_lc_CXX=yes
15476             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15477             # -brtl affects multiple linker settings, -berok does not and is overridden later
15478             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15479             if test svr4 != "$with_aix_soname"; then
15480               # This is similar to how AIX traditionally builds its shared
15481               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15482               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'
15483             fi
15484             if test aix != "$with_aix_soname"; then
15485               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'
15486             else
15487               # used by -dlpreopen to get the symbols
15488               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15489             fi
15490             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15491           fi
15492         fi
15493         ;;
15494
15495       beos*)
15496         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15497           allow_undefined_flag_CXX=unsupported
15498           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15499           # support --undefined.  This deserves some investigation.  FIXME
15500           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15501         else
15502           ld_shlibs_CXX=no
15503         fi
15504         ;;
15505
15506       chorus*)
15507         case $cc_basename in
15508           *)
15509           # FIXME: insert proper C++ library support
15510           ld_shlibs_CXX=no
15511           ;;
15512         esac
15513         ;;
15514
15515       cygwin* | mingw* | pw32* | cegcc*)
15516         case $GXX,$cc_basename in
15517         ,cl* | no,cl*)
15518           # Native MSVC
15519           # hardcode_libdir_flag_spec is actually meaningless, as there is
15520           # no search path for DLLs.
15521           hardcode_libdir_flag_spec_CXX=' '
15522           allow_undefined_flag_CXX=unsupported
15523           always_export_symbols_CXX=yes
15524           file_list_spec_CXX='@'
15525           # Tell ltmain to make .lib files, not .a files.
15526           libext=lib
15527           # Tell ltmain to make .dll files, not .so files.
15528           shrext_cmds=.dll
15529           # FIXME: Setting linknames here is a bad hack.
15530           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15531           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15532               cp "$export_symbols" "$output_objdir/$soname.def";
15533               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15534             else
15535               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15536             fi~
15537             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15538             linknames='
15539           # The linker will not automatically build a static lib if we build a DLL.
15540           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15541           enable_shared_with_static_runtimes_CXX=yes
15542           # Don't use ranlib
15543           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15544           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15545             lt_tool_outputfile="@TOOL_OUTPUT@"~
15546             case $lt_outputfile in
15547               *.exe|*.EXE) ;;
15548               *)
15549                 lt_outputfile=$lt_outputfile.exe
15550                 lt_tool_outputfile=$lt_tool_outputfile.exe
15551                 ;;
15552             esac~
15553             func_to_tool_file "$lt_outputfile"~
15554             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15555               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15556               $RM "$lt_outputfile.manifest";
15557             fi'
15558           ;;
15559         *)
15560           # g++
15561           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15562           # as there is no search path for DLLs.
15563           hardcode_libdir_flag_spec_CXX='-L$libdir'
15564           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15565           allow_undefined_flag_CXX=unsupported
15566           always_export_symbols_CXX=no
15567           enable_shared_with_static_runtimes_CXX=yes
15568
15569           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15570             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'
15571             # If the export-symbols file already is a .def file, use it as
15572             # is; otherwise, prepend EXPORTS...
15573             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15574               cp $export_symbols $output_objdir/$soname.def;
15575             else
15576               echo EXPORTS > $output_objdir/$soname.def;
15577               cat $export_symbols >> $output_objdir/$soname.def;
15578             fi~
15579             $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'
15580           else
15581             ld_shlibs_CXX=no
15582           fi
15583           ;;
15584         esac
15585         ;;
15586       darwin* | rhapsody*)
15587
15588
15589   archive_cmds_need_lc_CXX=no
15590   hardcode_direct_CXX=no
15591   hardcode_automatic_CXX=yes
15592   hardcode_shlibpath_var_CXX=unsupported
15593   if test yes = "$lt_cv_ld_force_load"; then
15594     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\"`'
15595
15596   else
15597     whole_archive_flag_spec_CXX=''
15598   fi
15599   link_all_deplibs_CXX=yes
15600   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15601   case $cc_basename in
15602      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15603      *) _lt_dar_can_shared=$GCC ;;
15604   esac
15605   if test yes = "$_lt_dar_can_shared"; then
15606     output_verbose_link_cmd=func_echo_all
15607     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"
15608     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15609     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"
15610     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"
15611        if test yes != "$lt_cv_apple_cc_single_mod"; then
15612       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"
15613       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"
15614     fi
15615
15616   else
15617   ld_shlibs_CXX=no
15618   fi
15619
15620         ;;
15621
15622       os2*)
15623         hardcode_libdir_flag_spec_CXX='-L$libdir'
15624         hardcode_minus_L_CXX=yes
15625         allow_undefined_flag_CXX=unsupported
15626         shrext_cmds=.dll
15627         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15628           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15629           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15630           $ECHO EXPORTS >> $output_objdir/$libname.def~
15631           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15632           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15633           emximp -o $lib $output_objdir/$libname.def'
15634         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15635           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15636           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15637           $ECHO EXPORTS >> $output_objdir/$libname.def~
15638           prefix_cmds="$SED"~
15639           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15640             prefix_cmds="$prefix_cmds -e 1d";
15641           fi~
15642           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15643           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15644           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15645           emximp -o $lib $output_objdir/$libname.def'
15646         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15647         enable_shared_with_static_runtimes_CXX=yes
15648         ;;
15649
15650       dgux*)
15651         case $cc_basename in
15652           ec++*)
15653             # FIXME: insert proper C++ library support
15654             ld_shlibs_CXX=no
15655             ;;
15656           ghcx*)
15657             # Green Hills C++ Compiler
15658             # FIXME: insert proper C++ library support
15659             ld_shlibs_CXX=no
15660             ;;
15661           *)
15662             # FIXME: insert proper C++ library support
15663             ld_shlibs_CXX=no
15664             ;;
15665         esac
15666         ;;
15667
15668       freebsd2.*)
15669         # C++ shared libraries reported to be fairly broken before
15670         # switch to ELF
15671         ld_shlibs_CXX=no
15672         ;;
15673
15674       freebsd-elf*)
15675         archive_cmds_need_lc_CXX=no
15676         ;;
15677
15678       freebsd* | dragonfly*)
15679         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15680         # conventions
15681         ld_shlibs_CXX=yes
15682         ;;
15683
15684       haiku*)
15685         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15686         link_all_deplibs_CXX=yes
15687         ;;
15688
15689       hpux9*)
15690         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15691         hardcode_libdir_separator_CXX=:
15692         export_dynamic_flag_spec_CXX='$wl-E'
15693         hardcode_direct_CXX=yes
15694         hardcode_minus_L_CXX=yes # Not in the search PATH,
15695                                              # but as the default
15696                                              # location of the library.
15697
15698         case $cc_basename in
15699           CC*)
15700             # FIXME: insert proper C++ library support
15701             ld_shlibs_CXX=no
15702             ;;
15703           aCC*)
15704             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'
15705             # Commands to make compiler produce verbose output that lists
15706             # what "hidden" libraries, object files and flags are used when
15707             # linking a shared library.
15708             #
15709             # There doesn't appear to be a way to prevent this compiler from
15710             # explicitly linking system object files so we need to strip them
15711             # from the output so that they don't get included in the library
15712             # dependencies.
15713             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"'
15714             ;;
15715           *)
15716             if test yes = "$GXX"; then
15717               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'
15718             else
15719               # FIXME: insert proper C++ library support
15720               ld_shlibs_CXX=no
15721             fi
15722             ;;
15723         esac
15724         ;;
15725
15726       hpux10*|hpux11*)
15727         if test no = "$with_gnu_ld"; then
15728           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15729           hardcode_libdir_separator_CXX=:
15730
15731           case $host_cpu in
15732             hppa*64*|ia64*)
15733               ;;
15734             *)
15735               export_dynamic_flag_spec_CXX='$wl-E'
15736               ;;
15737           esac
15738         fi
15739         case $host_cpu in
15740           hppa*64*|ia64*)
15741             hardcode_direct_CXX=no
15742             hardcode_shlibpath_var_CXX=no
15743             ;;
15744           *)
15745             hardcode_direct_CXX=yes
15746             hardcode_direct_absolute_CXX=yes
15747             hardcode_minus_L_CXX=yes # Not in the search PATH,
15748                                                  # but as the default
15749                                                  # location of the library.
15750             ;;
15751         esac
15752
15753         case $cc_basename in
15754           CC*)
15755             # FIXME: insert proper C++ library support
15756             ld_shlibs_CXX=no
15757             ;;
15758           aCC*)
15759             case $host_cpu in
15760               hppa*64*)
15761                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15762                 ;;
15763               ia64*)
15764                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15765                 ;;
15766               *)
15767                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15768                 ;;
15769             esac
15770             # Commands to make compiler produce verbose output that lists
15771             # what "hidden" libraries, object files and flags are used when
15772             # linking a shared library.
15773             #
15774             # There doesn't appear to be a way to prevent this compiler from
15775             # explicitly linking system object files so we need to strip them
15776             # from the output so that they don't get included in the library
15777             # dependencies.
15778             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"'
15779             ;;
15780           *)
15781             if test yes = "$GXX"; then
15782               if test no = "$with_gnu_ld"; then
15783                 case $host_cpu in
15784                   hppa*64*)
15785                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15786                     ;;
15787                   ia64*)
15788                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15789                     ;;
15790                   *)
15791                     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'
15792                     ;;
15793                 esac
15794               fi
15795             else
15796               # FIXME: insert proper C++ library support
15797               ld_shlibs_CXX=no
15798             fi
15799             ;;
15800         esac
15801         ;;
15802
15803       interix[3-9]*)
15804         hardcode_direct_CXX=no
15805         hardcode_shlibpath_var_CXX=no
15806         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15807         export_dynamic_flag_spec_CXX='$wl-E'
15808         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15809         # Instead, shared libraries are loaded at an image base (0x10000000 by
15810         # default) and relocated if they conflict, which is a slow very memory
15811         # consuming and fragmenting process.  To avoid this, we pick a random,
15812         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15813         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15814         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'
15815         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'
15816         ;;
15817       irix5* | irix6*)
15818         case $cc_basename in
15819           CC*)
15820             # SGI C++
15821             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'
15822
15823             # Archives containing C++ object files must be created using
15824             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15825             # necessary to make sure instantiated templates are included
15826             # in the archive.
15827             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15828             ;;
15829           *)
15830             if test yes = "$GXX"; then
15831               if test no = "$with_gnu_ld"; then
15832                 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'
15833               else
15834                 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'
15835               fi
15836             fi
15837             link_all_deplibs_CXX=yes
15838             ;;
15839         esac
15840         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15841         hardcode_libdir_separator_CXX=:
15842         inherit_rpath_CXX=yes
15843         ;;
15844
15845       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15846         case $cc_basename in
15847           KCC*)
15848             # Kuck and Associates, Inc. (KAI) C++ Compiler
15849
15850             # KCC will only create a shared library if the output file
15851             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15852             # to its proper name (with version) after linking.
15853             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'
15854             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'
15855             # Commands to make compiler produce verbose output that lists
15856             # what "hidden" libraries, object files and flags are used when
15857             # linking a shared library.
15858             #
15859             # There doesn't appear to be a way to prevent this compiler from
15860             # explicitly linking system object files so we need to strip them
15861             # from the output so that they don't get included in the library
15862             # dependencies.
15863             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"'
15864
15865             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15866             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15867
15868             # Archives containing C++ object files must be created using
15869             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15870             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15871             ;;
15872           icpc* | ecpc* )
15873             # Intel C++
15874             with_gnu_ld=yes
15875             # version 8.0 and above of icpc choke on multiply defined symbols
15876             # if we add $predep_objects and $postdep_objects, however 7.1 and
15877             # earlier do not add the objects themselves.
15878             case `$CC -V 2>&1` in
15879               *"Version 7."*)
15880                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15881                 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'
15882                 ;;
15883               *)  # Version 8.0 or newer
15884                 tmp_idyn=
15885                 case $host_cpu in
15886                   ia64*) tmp_idyn=' -i_dynamic';;
15887                 esac
15888                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15889                 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'
15890                 ;;
15891             esac
15892             archive_cmds_need_lc_CXX=no
15893             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15894             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15895             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15896             ;;
15897           pgCC* | pgcpp*)
15898             # Portland Group C++ compiler
15899             case `$CC -V` in
15900             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15901               prelink_cmds_CXX='tpldir=Template.dir~
15902                rm -rf $tpldir~
15903                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15904                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15905               old_archive_cmds_CXX='tpldir=Template.dir~
15906                 rm -rf $tpldir~
15907                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15908                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15909                 $RANLIB $oldlib'
15910               archive_cmds_CXX='tpldir=Template.dir~
15911                 rm -rf $tpldir~
15912                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15913                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15914               archive_expsym_cmds_CXX='tpldir=Template.dir~
15915                 rm -rf $tpldir~
15916                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15917                 $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'
15918               ;;
15919             *) # Version 6 and above use weak symbols
15920               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15921               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'
15922               ;;
15923             esac
15924
15925             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15926             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15927             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'
15928             ;;
15929           cxx*)
15930             # Compaq C++
15931             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15932             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'
15933
15934             runpath_var=LD_RUN_PATH
15935             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15936             hardcode_libdir_separator_CXX=:
15937
15938             # Commands to make compiler produce verbose output that lists
15939             # what "hidden" libraries, object files and flags are used when
15940             # linking a shared library.
15941             #
15942             # There doesn't appear to be a way to prevent this compiler from
15943             # explicitly linking system object files so we need to strip them
15944             # from the output so that they don't get included in the library
15945             # dependencies.
15946             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'
15947             ;;
15948           xl* | mpixl* | bgxl*)
15949             # IBM XL 8.0 on PPC, with GNU ld
15950             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15951             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15952             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15953             if test yes = "$supports_anon_versioning"; then
15954               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15955                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15956                 echo "local: *; };" >> $output_objdir/$libname.ver~
15957                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15958             fi
15959             ;;
15960           *)
15961             case `$CC -V 2>&1 | sed 5q` in
15962             *Sun\ C*)
15963               # Sun C++ 5.9
15964               no_undefined_flag_CXX=' -zdefs'
15965               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15966               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'
15967               hardcode_libdir_flag_spec_CXX='-R$libdir'
15968               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'
15969               compiler_needs_object_CXX=yes
15970
15971               # Not sure whether something based on
15972               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15973               # would be better.
15974               output_verbose_link_cmd='func_echo_all'
15975
15976               # Archives containing C++ object files must be created using
15977               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15978               # necessary to make sure instantiated templates are included
15979               # in the archive.
15980               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15981               ;;
15982             esac
15983             ;;
15984         esac
15985         ;;
15986
15987       lynxos*)
15988         # FIXME: insert proper C++ library support
15989         ld_shlibs_CXX=no
15990         ;;
15991
15992       m88k*)
15993         # FIXME: insert proper C++ library support
15994         ld_shlibs_CXX=no
15995         ;;
15996
15997       mvs*)
15998         case $cc_basename in
15999           cxx*)
16000             # FIXME: insert proper C++ library support
16001             ld_shlibs_CXX=no
16002             ;;
16003           *)
16004             # FIXME: insert proper C++ library support
16005             ld_shlibs_CXX=no
16006             ;;
16007         esac
16008         ;;
16009
16010       netbsd*)
16011         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16012           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16013           wlarc=
16014           hardcode_libdir_flag_spec_CXX='-R$libdir'
16015           hardcode_direct_CXX=yes
16016           hardcode_shlibpath_var_CXX=no
16017         fi
16018         # Workaround some broken pre-1.5 toolchains
16019         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16020         ;;
16021
16022       *nto* | *qnx*)
16023         ld_shlibs_CXX=yes
16024         ;;
16025
16026       openbsd* | bitrig*)
16027         if test -f /usr/libexec/ld.so; then
16028           hardcode_direct_CXX=yes
16029           hardcode_shlibpath_var_CXX=no
16030           hardcode_direct_absolute_CXX=yes
16031           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16032           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16033           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16034             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16035             export_dynamic_flag_spec_CXX='$wl-E'
16036             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16037           fi
16038           output_verbose_link_cmd=func_echo_all
16039         else
16040           ld_shlibs_CXX=no
16041         fi
16042         ;;
16043
16044       osf3* | osf4* | osf5*)
16045         case $cc_basename in
16046           KCC*)
16047             # Kuck and Associates, Inc. (KAI) C++ Compiler
16048
16049             # KCC will only create a shared library if the output file
16050             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16051             # to its proper name (with version) after linking.
16052             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'
16053
16054             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16055             hardcode_libdir_separator_CXX=:
16056
16057             # Archives containing C++ object files must be created using
16058             # the KAI C++ compiler.
16059             case $host in
16060               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16061               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16062             esac
16063             ;;
16064           RCC*)
16065             # Rational C++ 2.4.1
16066             # FIXME: insert proper C++ library support
16067             ld_shlibs_CXX=no
16068             ;;
16069           cxx*)
16070             case $host in
16071               osf3*)
16072                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16073                 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'
16074                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16075                 ;;
16076               *)
16077                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16078                 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'
16079                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16080                   echo "-hidden">> $lib.exp~
16081                   $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~
16082                   $RM $lib.exp'
16083                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16084                 ;;
16085             esac
16086
16087             hardcode_libdir_separator_CXX=:
16088
16089             # Commands to make compiler produce verbose output that lists
16090             # what "hidden" libraries, object files and flags are used when
16091             # linking a shared library.
16092             #
16093             # There doesn't appear to be a way to prevent this compiler from
16094             # explicitly linking system object files so we need to strip them
16095             # from the output so that they don't get included in the library
16096             # dependencies.
16097             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"'
16098             ;;
16099           *)
16100             if test yes,no = "$GXX,$with_gnu_ld"; then
16101               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16102               case $host in
16103                 osf3*)
16104                   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'
16105                   ;;
16106                 *)
16107                   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'
16108                   ;;
16109               esac
16110
16111               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16112               hardcode_libdir_separator_CXX=:
16113
16114               # Commands to make compiler produce verbose output that lists
16115               # what "hidden" libraries, object files and flags are used when
16116               # linking a shared library.
16117               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16118
16119             else
16120               # FIXME: insert proper C++ library support
16121               ld_shlibs_CXX=no
16122             fi
16123             ;;
16124         esac
16125         ;;
16126
16127       psos*)
16128         # FIXME: insert proper C++ library support
16129         ld_shlibs_CXX=no
16130         ;;
16131
16132       sunos4*)
16133         case $cc_basename in
16134           CC*)
16135             # Sun C++ 4.x
16136             # FIXME: insert proper C++ library support
16137             ld_shlibs_CXX=no
16138             ;;
16139           lcc*)
16140             # Lucid
16141             # FIXME: insert proper C++ library support
16142             ld_shlibs_CXX=no
16143             ;;
16144           *)
16145             # FIXME: insert proper C++ library support
16146             ld_shlibs_CXX=no
16147             ;;
16148         esac
16149         ;;
16150
16151       solaris*)
16152         case $cc_basename in
16153           CC* | sunCC*)
16154             # Sun C++ 4.2, 5.x and Centerline C++
16155             archive_cmds_need_lc_CXX=yes
16156             no_undefined_flag_CXX=' -zdefs'
16157             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16158             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16159               $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'
16160
16161             hardcode_libdir_flag_spec_CXX='-R$libdir'
16162             hardcode_shlibpath_var_CXX=no
16163             case $host_os in
16164               solaris2.[0-5] | solaris2.[0-5].*) ;;
16165               *)
16166                 # The compiler driver will combine and reorder linker options,
16167                 # but understands '-z linker_flag'.
16168                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16169                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16170                 ;;
16171             esac
16172             link_all_deplibs_CXX=yes
16173
16174             output_verbose_link_cmd='func_echo_all'
16175
16176             # Archives containing C++ object files must be created using
16177             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16178             # necessary to make sure instantiated templates are included
16179             # in the archive.
16180             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16181             ;;
16182           gcx*)
16183             # Green Hills C++ Compiler
16184             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16185
16186             # The C++ compiler must be used to create the archive.
16187             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16188             ;;
16189           *)
16190             # GNU C++ compiler with Solaris linker
16191             if test yes,no = "$GXX,$with_gnu_ld"; then
16192               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16193               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16194                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16195                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16196                   $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'
16197
16198                 # Commands to make compiler produce verbose output that lists
16199                 # what "hidden" libraries, object files and flags are used when
16200                 # linking a shared library.
16201                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16202               else
16203                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16204                 # platform.
16205                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16206                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16207                   $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'
16208
16209                 # Commands to make compiler produce verbose output that lists
16210                 # what "hidden" libraries, object files and flags are used when
16211                 # linking a shared library.
16212                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16213               fi
16214
16215               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16216               case $host_os in
16217                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16218                 *)
16219                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16220                   ;;
16221               esac
16222             fi
16223             ;;
16224         esac
16225         ;;
16226
16227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16228       no_undefined_flag_CXX='$wl-z,text'
16229       archive_cmds_need_lc_CXX=no
16230       hardcode_shlibpath_var_CXX=no
16231       runpath_var='LD_RUN_PATH'
16232
16233       case $cc_basename in
16234         CC*)
16235           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16236           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16237           ;;
16238         *)
16239           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16241           ;;
16242       esac
16243       ;;
16244
16245       sysv5* | sco3.2v5* | sco5v6*)
16246         # Note: We CANNOT use -z defs as we might desire, because we do not
16247         # link with -lc, and that would cause any symbols used from libc to
16248         # always be unresolved, which means just about no library would
16249         # ever link correctly.  If we're not using GNU ld we use -z text
16250         # though, which does catch some bad symbols but isn't as heavy-handed
16251         # as -z defs.
16252         no_undefined_flag_CXX='$wl-z,text'
16253         allow_undefined_flag_CXX='$wl-z,nodefs'
16254         archive_cmds_need_lc_CXX=no
16255         hardcode_shlibpath_var_CXX=no
16256         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16257         hardcode_libdir_separator_CXX=':'
16258         link_all_deplibs_CXX=yes
16259         export_dynamic_flag_spec_CXX='$wl-Bexport'
16260         runpath_var='LD_RUN_PATH'
16261
16262         case $cc_basename in
16263           CC*)
16264             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16265             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16266             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16267               '"$old_archive_cmds_CXX"
16268             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16269               '"$reload_cmds_CXX"
16270             ;;
16271           *)
16272             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16273             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16274             ;;
16275         esac
16276       ;;
16277
16278       tandem*)
16279         case $cc_basename in
16280           NCC*)
16281             # NonStop-UX NCC 3.20
16282             # FIXME: insert proper C++ library support
16283             ld_shlibs_CXX=no
16284             ;;
16285           *)
16286             # FIXME: insert proper C++ library support
16287             ld_shlibs_CXX=no
16288             ;;
16289         esac
16290         ;;
16291
16292       vxworks*)
16293         # FIXME: insert proper C++ library support
16294         ld_shlibs_CXX=no
16295         ;;
16296
16297       *)
16298         # FIXME: insert proper C++ library support
16299         ld_shlibs_CXX=no
16300         ;;
16301     esac
16302
16303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16304 $as_echo "$ld_shlibs_CXX" >&6; }
16305     test no = "$ld_shlibs_CXX" && can_build_shared=no
16306
16307     GCC_CXX=$GXX
16308     LD_CXX=$LD
16309
16310     ## CAVEAT EMPTOR:
16311     ## There is no encapsulation within the following macros, do not change
16312     ## the running order or otherwise move them around unless you know exactly
16313     ## what you are doing...
16314     # Dependencies to place before and after the object being linked:
16315 predep_objects_CXX=
16316 postdep_objects_CXX=
16317 predeps_CXX=
16318 postdeps_CXX=
16319 compiler_lib_search_path_CXX=
16320
16321 cat > conftest.$ac_ext <<_LT_EOF
16322 class Foo
16323 {
16324 public:
16325   Foo (void) { a = 0; }
16326 private:
16327   int a;
16328 };
16329 _LT_EOF
16330
16331
16332 _lt_libdeps_save_CFLAGS=$CFLAGS
16333 case "$CC $CFLAGS " in #(
16334 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16335 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16336 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16337 esac
16338
16339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16340   (eval $ac_compile) 2>&5
16341   ac_status=$?
16342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343   test $ac_status = 0; }; then
16344   # Parse the compiler output and extract the necessary
16345   # objects, libraries and library flags.
16346
16347   # Sentinel used to keep track of whether or not we are before
16348   # the conftest object file.
16349   pre_test_object_deps_done=no
16350
16351   for p in `eval "$output_verbose_link_cmd"`; do
16352     case $prev$p in
16353
16354     -L* | -R* | -l*)
16355        # Some compilers place space between "-{L,R}" and the path.
16356        # Remove the space.
16357        if test x-L = "$p" ||
16358           test x-R = "$p"; then
16359          prev=$p
16360          continue
16361        fi
16362
16363        # Expand the sysroot to ease extracting the directories later.
16364        if test -z "$prev"; then
16365          case $p in
16366          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16367          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16368          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16369          esac
16370        fi
16371        case $p in
16372        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16373        esac
16374        if test no = "$pre_test_object_deps_done"; then
16375          case $prev in
16376          -L | -R)
16377            # Internal compiler library paths should come after those
16378            # provided the user.  The postdeps already come after the
16379            # user supplied libs so there is no need to process them.
16380            if test -z "$compiler_lib_search_path_CXX"; then
16381              compiler_lib_search_path_CXX=$prev$p
16382            else
16383              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16384            fi
16385            ;;
16386          # The "-l" case would never come before the object being
16387          # linked, so don't bother handling this case.
16388          esac
16389        else
16390          if test -z "$postdeps_CXX"; then
16391            postdeps_CXX=$prev$p
16392          else
16393            postdeps_CXX="${postdeps_CXX} $prev$p"
16394          fi
16395        fi
16396        prev=
16397        ;;
16398
16399     *.lto.$objext) ;; # Ignore GCC LTO objects
16400     *.$objext)
16401        # This assumes that the test object file only shows up
16402        # once in the compiler output.
16403        if test "$p" = "conftest.$objext"; then
16404          pre_test_object_deps_done=yes
16405          continue
16406        fi
16407
16408        if test no = "$pre_test_object_deps_done"; then
16409          if test -z "$predep_objects_CXX"; then
16410            predep_objects_CXX=$p
16411          else
16412            predep_objects_CXX="$predep_objects_CXX $p"
16413          fi
16414        else
16415          if test -z "$postdep_objects_CXX"; then
16416            postdep_objects_CXX=$p
16417          else
16418            postdep_objects_CXX="$postdep_objects_CXX $p"
16419          fi
16420        fi
16421        ;;
16422
16423     *) ;; # Ignore the rest.
16424
16425     esac
16426   done
16427
16428   # Clean up.
16429   rm -f a.out a.exe
16430 else
16431   echo "libtool.m4: error: problem compiling CXX test program"
16432 fi
16433
16434 $RM -f confest.$objext
16435 CFLAGS=$_lt_libdeps_save_CFLAGS
16436
16437 # PORTME: override above test on systems where it is broken
16438 case $host_os in
16439 interix[3-9]*)
16440   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16441   # hack all around it, let's just trust "g++" to DTRT.
16442   predep_objects_CXX=
16443   postdep_objects_CXX=
16444   postdeps_CXX=
16445   ;;
16446 esac
16447
16448
16449 case " $postdeps_CXX " in
16450 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16451 esac
16452  compiler_lib_search_dirs_CXX=
16453 if test -n "${compiler_lib_search_path_CXX}"; then
16454  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16455 fi
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487     lt_prog_compiler_wl_CXX=
16488 lt_prog_compiler_pic_CXX=
16489 lt_prog_compiler_static_CXX=
16490
16491
16492   # C++ specific cases for pic, static, wl, etc.
16493   if test yes = "$GXX"; then
16494     lt_prog_compiler_wl_CXX='-Wl,'
16495     lt_prog_compiler_static_CXX='-static'
16496
16497     case $host_os in
16498     aix*)
16499       # All AIX code is PIC.
16500       if test ia64 = "$host_cpu"; then
16501         # AIX 5 now supports IA64 processor
16502         lt_prog_compiler_static_CXX='-Bstatic'
16503       fi
16504       lt_prog_compiler_pic_CXX='-fPIC'
16505       ;;
16506
16507     amigaos*)
16508       case $host_cpu in
16509       powerpc)
16510             # see comment about AmigaOS4 .so support
16511             lt_prog_compiler_pic_CXX='-fPIC'
16512         ;;
16513       m68k)
16514             # FIXME: we need at least 68020 code to build shared libraries, but
16515             # adding the '-m68020' flag to GCC prevents building anything better,
16516             # like '-m68040'.
16517             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16518         ;;
16519       esac
16520       ;;
16521
16522     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16523       # PIC is the default for these OSes.
16524       ;;
16525     mingw* | cygwin* | os2* | pw32* | cegcc*)
16526       # This hack is so that the source file can tell whether it is being
16527       # built for inclusion in a dll (and should export symbols for example).
16528       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16529       # (--disable-auto-import) libraries
16530       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16531       case $host_os in
16532       os2*)
16533         lt_prog_compiler_static_CXX='$wl-static'
16534         ;;
16535       esac
16536       ;;
16537     darwin* | rhapsody*)
16538       # PIC is the default on this platform
16539       # Common symbols not allowed in MH_DYLIB files
16540       lt_prog_compiler_pic_CXX='-fno-common'
16541       ;;
16542     *djgpp*)
16543       # DJGPP does not support shared libraries at all
16544       lt_prog_compiler_pic_CXX=
16545       ;;
16546     haiku*)
16547       # PIC is the default for Haiku.
16548       # The "-static" flag exists, but is broken.
16549       lt_prog_compiler_static_CXX=
16550       ;;
16551     interix[3-9]*)
16552       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16553       # Instead, we relocate shared libraries at runtime.
16554       ;;
16555     sysv4*MP*)
16556       if test -d /usr/nec; then
16557         lt_prog_compiler_pic_CXX=-Kconform_pic
16558       fi
16559       ;;
16560     hpux*)
16561       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16562       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16563       # sets the default TLS model and affects inlining.
16564       case $host_cpu in
16565       hppa*64*)
16566         ;;
16567       *)
16568         lt_prog_compiler_pic_CXX='-fPIC'
16569         ;;
16570       esac
16571       ;;
16572     *qnx* | *nto*)
16573       # QNX uses GNU C++, but need to define -shared option too, otherwise
16574       # it will coredump.
16575       lt_prog_compiler_pic_CXX='-fPIC -shared'
16576       ;;
16577     *)
16578       lt_prog_compiler_pic_CXX='-fPIC'
16579       ;;
16580     esac
16581   else
16582     case $host_os in
16583       aix[4-9]*)
16584         # All AIX code is PIC.
16585         if test ia64 = "$host_cpu"; then
16586           # AIX 5 now supports IA64 processor
16587           lt_prog_compiler_static_CXX='-Bstatic'
16588         else
16589           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16590         fi
16591         ;;
16592       chorus*)
16593         case $cc_basename in
16594         cxch68*)
16595           # Green Hills C++ Compiler
16596           # _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"
16597           ;;
16598         esac
16599         ;;
16600       mingw* | cygwin* | os2* | pw32* | cegcc*)
16601         # This hack is so that the source file can tell whether it is being
16602         # built for inclusion in a dll (and should export symbols for example).
16603         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16604         ;;
16605       dgux*)
16606         case $cc_basename in
16607           ec++*)
16608             lt_prog_compiler_pic_CXX='-KPIC'
16609             ;;
16610           ghcx*)
16611             # Green Hills C++ Compiler
16612             lt_prog_compiler_pic_CXX='-pic'
16613             ;;
16614           *)
16615             ;;
16616         esac
16617         ;;
16618       freebsd* | dragonfly*)
16619         # FreeBSD uses GNU C++
16620         ;;
16621       hpux9* | hpux10* | hpux11*)
16622         case $cc_basename in
16623           CC*)
16624             lt_prog_compiler_wl_CXX='-Wl,'
16625             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16626             if test ia64 != "$host_cpu"; then
16627               lt_prog_compiler_pic_CXX='+Z'
16628             fi
16629             ;;
16630           aCC*)
16631             lt_prog_compiler_wl_CXX='-Wl,'
16632             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16633             case $host_cpu in
16634             hppa*64*|ia64*)
16635               # +Z the default
16636               ;;
16637             *)
16638               lt_prog_compiler_pic_CXX='+Z'
16639               ;;
16640             esac
16641             ;;
16642           *)
16643             ;;
16644         esac
16645         ;;
16646       interix*)
16647         # This is c89, which is MS Visual C++ (no shared libs)
16648         # Anyone wants to do a port?
16649         ;;
16650       irix5* | irix6* | nonstopux*)
16651         case $cc_basename in
16652           CC*)
16653             lt_prog_compiler_wl_CXX='-Wl,'
16654             lt_prog_compiler_static_CXX='-non_shared'
16655             # CC pic flag -KPIC is the default.
16656             ;;
16657           *)
16658             ;;
16659         esac
16660         ;;
16661       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16662         case $cc_basename in
16663           KCC*)
16664             # KAI C++ Compiler
16665             lt_prog_compiler_wl_CXX='--backend -Wl,'
16666             lt_prog_compiler_pic_CXX='-fPIC'
16667             ;;
16668           ecpc* )
16669             # old Intel C++ for x86_64, which still supported -KPIC.
16670             lt_prog_compiler_wl_CXX='-Wl,'
16671             lt_prog_compiler_pic_CXX='-KPIC'
16672             lt_prog_compiler_static_CXX='-static'
16673             ;;
16674           icpc* )
16675             # Intel C++, used to be incompatible with GCC.
16676             # ICC 10 doesn't accept -KPIC any more.
16677             lt_prog_compiler_wl_CXX='-Wl,'
16678             lt_prog_compiler_pic_CXX='-fPIC'
16679             lt_prog_compiler_static_CXX='-static'
16680             ;;
16681           pgCC* | pgcpp*)
16682             # Portland Group C++ compiler
16683             lt_prog_compiler_wl_CXX='-Wl,'
16684             lt_prog_compiler_pic_CXX='-fpic'
16685             lt_prog_compiler_static_CXX='-Bstatic'
16686             ;;
16687           cxx*)
16688             # Compaq C++
16689             # Make sure the PIC flag is empty.  It appears that all Alpha
16690             # Linux and Compaq Tru64 Unix objects are PIC.
16691             lt_prog_compiler_pic_CXX=
16692             lt_prog_compiler_static_CXX='-non_shared'
16693             ;;
16694           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16695             # IBM XL 8.0, 9.0 on PPC and BlueGene
16696             lt_prog_compiler_wl_CXX='-Wl,'
16697             lt_prog_compiler_pic_CXX='-qpic'
16698             lt_prog_compiler_static_CXX='-qstaticlink'
16699             ;;
16700           *)
16701             case `$CC -V 2>&1 | sed 5q` in
16702             *Sun\ C*)
16703               # Sun C++ 5.9
16704               lt_prog_compiler_pic_CXX='-KPIC'
16705               lt_prog_compiler_static_CXX='-Bstatic'
16706               lt_prog_compiler_wl_CXX='-Qoption ld '
16707               ;;
16708             esac
16709             ;;
16710         esac
16711         ;;
16712       lynxos*)
16713         ;;
16714       m88k*)
16715         ;;
16716       mvs*)
16717         case $cc_basename in
16718           cxx*)
16719             lt_prog_compiler_pic_CXX='-W c,exportall'
16720             ;;
16721           *)
16722             ;;
16723         esac
16724         ;;
16725       netbsd* | netbsdelf*-gnu)
16726         ;;
16727       *qnx* | *nto*)
16728         # QNX uses GNU C++, but need to define -shared option too, otherwise
16729         # it will coredump.
16730         lt_prog_compiler_pic_CXX='-fPIC -shared'
16731         ;;
16732       osf3* | osf4* | osf5*)
16733         case $cc_basename in
16734           KCC*)
16735             lt_prog_compiler_wl_CXX='--backend -Wl,'
16736             ;;
16737           RCC*)
16738             # Rational C++ 2.4.1
16739             lt_prog_compiler_pic_CXX='-pic'
16740             ;;
16741           cxx*)
16742             # Digital/Compaq C++
16743             lt_prog_compiler_wl_CXX='-Wl,'
16744             # Make sure the PIC flag is empty.  It appears that all Alpha
16745             # Linux and Compaq Tru64 Unix objects are PIC.
16746             lt_prog_compiler_pic_CXX=
16747             lt_prog_compiler_static_CXX='-non_shared'
16748             ;;
16749           *)
16750             ;;
16751         esac
16752         ;;
16753       psos*)
16754         ;;
16755       solaris*)
16756         case $cc_basename in
16757           CC* | sunCC*)
16758             # Sun C++ 4.2, 5.x and Centerline C++
16759             lt_prog_compiler_pic_CXX='-KPIC'
16760             lt_prog_compiler_static_CXX='-Bstatic'
16761             lt_prog_compiler_wl_CXX='-Qoption ld '
16762             ;;
16763           gcx*)
16764             # Green Hills C++ Compiler
16765             lt_prog_compiler_pic_CXX='-PIC'
16766             ;;
16767           *)
16768             ;;
16769         esac
16770         ;;
16771       sunos4*)
16772         case $cc_basename in
16773           CC*)
16774             # Sun C++ 4.x
16775             lt_prog_compiler_pic_CXX='-pic'
16776             lt_prog_compiler_static_CXX='-Bstatic'
16777             ;;
16778           lcc*)
16779             # Lucid
16780             lt_prog_compiler_pic_CXX='-pic'
16781             ;;
16782           *)
16783             ;;
16784         esac
16785         ;;
16786       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16787         case $cc_basename in
16788           CC*)
16789             lt_prog_compiler_wl_CXX='-Wl,'
16790             lt_prog_compiler_pic_CXX='-KPIC'
16791             lt_prog_compiler_static_CXX='-Bstatic'
16792             ;;
16793         esac
16794         ;;
16795       tandem*)
16796         case $cc_basename in
16797           NCC*)
16798             # NonStop-UX NCC 3.20
16799             lt_prog_compiler_pic_CXX='-KPIC'
16800             ;;
16801           *)
16802             ;;
16803         esac
16804         ;;
16805       vxworks*)
16806         ;;
16807       *)
16808         lt_prog_compiler_can_build_shared_CXX=no
16809         ;;
16810     esac
16811   fi
16812
16813 case $host_os in
16814   # For platforms that do not support PIC, -DPIC is meaningless:
16815   *djgpp*)
16816     lt_prog_compiler_pic_CXX=
16817     ;;
16818   *)
16819     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16820     ;;
16821 esac
16822
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16824 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16825 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16826   $as_echo_n "(cached) " >&6
16827 else
16828   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16831 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16832 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16833
16834 #
16835 # Check to make sure the PIC flag actually works.
16836 #
16837 if test -n "$lt_prog_compiler_pic_CXX"; then
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16840 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16841   $as_echo_n "(cached) " >&6
16842 else
16843   lt_cv_prog_compiler_pic_works_CXX=no
16844    ac_outfile=conftest.$ac_objext
16845    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16846    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16847    # Insert the option either (1) after the last *FLAGS variable, or
16848    # (2) before a word containing "conftest.", or (3) at the end.
16849    # Note that $ac_compile itself does not contain backslashes and begins
16850    # with a dollar sign (not a hyphen), so the echo should work correctly.
16851    # The option is referenced via a variable to avoid confusing sed.
16852    lt_compile=`echo "$ac_compile" | $SED \
16853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855    -e 's:$: $lt_compiler_flag:'`
16856    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16857    (eval "$lt_compile" 2>conftest.err)
16858    ac_status=$?
16859    cat conftest.err >&5
16860    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861    if (exit $ac_status) && test -s "$ac_outfile"; then
16862      # The compiler can only warn and ignore the option if not recognized
16863      # So say no if there are warnings other than the usual output.
16864      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16865      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16866      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16867        lt_cv_prog_compiler_pic_works_CXX=yes
16868      fi
16869    fi
16870    $RM conftest*
16871
16872 fi
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16874 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16875
16876 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16877     case $lt_prog_compiler_pic_CXX in
16878      "" | " "*) ;;
16879      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16880      esac
16881 else
16882     lt_prog_compiler_pic_CXX=
16883      lt_prog_compiler_can_build_shared_CXX=no
16884 fi
16885
16886 fi
16887
16888
16889
16890
16891
16892 #
16893 # Check to make sure the static flag actually works.
16894 #
16895 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16898 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16899   $as_echo_n "(cached) " >&6
16900 else
16901   lt_cv_prog_compiler_static_works_CXX=no
16902    save_LDFLAGS=$LDFLAGS
16903    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16904    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16905    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16906      # The linker can only warn and ignore the option if not recognized
16907      # So say no if there are warnings
16908      if test -s conftest.err; then
16909        # Append any errors to the config.log.
16910        cat conftest.err 1>&5
16911        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16912        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16913        if diff conftest.exp conftest.er2 >/dev/null; then
16914          lt_cv_prog_compiler_static_works_CXX=yes
16915        fi
16916      else
16917        lt_cv_prog_compiler_static_works_CXX=yes
16918      fi
16919    fi
16920    $RM -r conftest*
16921    LDFLAGS=$save_LDFLAGS
16922
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16925 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16926
16927 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16928     :
16929 else
16930     lt_prog_compiler_static_CXX=
16931 fi
16932
16933
16934
16935
16936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16937 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16938 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   lt_cv_prog_compiler_c_o_CXX=no
16942    $RM -r conftest 2>/dev/null
16943    mkdir conftest
16944    cd conftest
16945    mkdir out
16946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16947
16948    lt_compiler_flag="-o out/conftest2.$ac_objext"
16949    # Insert the option either (1) after the last *FLAGS variable, or
16950    # (2) before a word containing "conftest.", or (3) at the end.
16951    # Note that $ac_compile itself does not contain backslashes and begins
16952    # with a dollar sign (not a hyphen), so the echo should work correctly.
16953    lt_compile=`echo "$ac_compile" | $SED \
16954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16956    -e 's:$: $lt_compiler_flag:'`
16957    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16958    (eval "$lt_compile" 2>out/conftest.err)
16959    ac_status=$?
16960    cat out/conftest.err >&5
16961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16963    then
16964      # The compiler can only warn and ignore the option if not recognized
16965      # So say no if there are warnings
16966      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16967      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16968      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16969        lt_cv_prog_compiler_c_o_CXX=yes
16970      fi
16971    fi
16972    chmod u+w . 2>&5
16973    $RM conftest*
16974    # SGI C++ compiler will create directory out/ii_files/ for
16975    # template instantiation
16976    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16977    $RM out/* && rmdir out
16978    cd ..
16979    $RM -r conftest
16980    $RM conftest*
16981
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16984 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16985
16986
16987
16988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16989 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16990 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16991   $as_echo_n "(cached) " >&6
16992 else
16993   lt_cv_prog_compiler_c_o_CXX=no
16994    $RM -r conftest 2>/dev/null
16995    mkdir conftest
16996    cd conftest
16997    mkdir out
16998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16999
17000    lt_compiler_flag="-o out/conftest2.$ac_objext"
17001    # Insert the option either (1) after the last *FLAGS variable, or
17002    # (2) before a word containing "conftest.", or (3) at the end.
17003    # Note that $ac_compile itself does not contain backslashes and begins
17004    # with a dollar sign (not a hyphen), so the echo should work correctly.
17005    lt_compile=`echo "$ac_compile" | $SED \
17006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17008    -e 's:$: $lt_compiler_flag:'`
17009    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17010    (eval "$lt_compile" 2>out/conftest.err)
17011    ac_status=$?
17012    cat out/conftest.err >&5
17013    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17015    then
17016      # The compiler can only warn and ignore the option if not recognized
17017      # So say no if there are warnings
17018      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17019      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17020      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17021        lt_cv_prog_compiler_c_o_CXX=yes
17022      fi
17023    fi
17024    chmod u+w . 2>&5
17025    $RM conftest*
17026    # SGI C++ compiler will create directory out/ii_files/ for
17027    # template instantiation
17028    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17029    $RM out/* && rmdir out
17030    cd ..
17031    $RM -r conftest
17032    $RM conftest*
17033
17034 fi
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17036 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17037
17038
17039
17040
17041 hard_links=nottested
17042 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17043   # do not overwrite the value of need_locks provided by the user
17044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17045 $as_echo_n "checking if we can lock with hard links... " >&6; }
17046   hard_links=yes
17047   $RM conftest*
17048   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17049   touch conftest.a
17050   ln conftest.a conftest.b 2>&5 || hard_links=no
17051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17053 $as_echo "$hard_links" >&6; }
17054   if test no = "$hard_links"; then
17055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17056 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17057     need_locks=warn
17058   fi
17059 else
17060   need_locks=no
17061 fi
17062
17063
17064
17065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17066 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17067
17068   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17069   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17070   case $host_os in
17071   aix[4-9]*)
17072     # If we're using GNU nm, then we don't want the "-C" option.
17073     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17074     # Without the "-l" option, or with the "-B" option, AIX nm treats
17075     # weak defined symbols like other global defined symbols, whereas
17076     # GNU nm marks them as "W".
17077     # While the 'weak' keyword is ignored in the Export File, we need
17078     # it in the Import File for the 'aix-soname' feature, so we have
17079     # to replace the "-B" option with "-P" for AIX nm.
17080     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17081       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'
17082     else
17083       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'
17084     fi
17085     ;;
17086   pw32*)
17087     export_symbols_cmds_CXX=$ltdll_cmds
17088     ;;
17089   cygwin* | mingw* | cegcc*)
17090     case $cc_basename in
17091     cl*)
17092       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17093       ;;
17094     *)
17095       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'
17096       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17097       ;;
17098     esac
17099     ;;
17100   linux* | k*bsd*-gnu | gnu*)
17101     link_all_deplibs_CXX=no
17102     ;;
17103   *)
17104     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17105     ;;
17106   esac
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17109 $as_echo "$ld_shlibs_CXX" >&6; }
17110 test no = "$ld_shlibs_CXX" && can_build_shared=no
17111
17112 with_gnu_ld_CXX=$with_gnu_ld
17113
17114
17115
17116
17117
17118
17119 #
17120 # Do we need to explicitly link libc?
17121 #
17122 case "x$archive_cmds_need_lc_CXX" in
17123 x|xyes)
17124   # Assume -lc should be added
17125   archive_cmds_need_lc_CXX=yes
17126
17127   if test yes,yes = "$GCC,$enable_shared"; then
17128     case $archive_cmds_CXX in
17129     *'~'*)
17130       # FIXME: we may have to deal with multi-command sequences.
17131       ;;
17132     '$CC '*)
17133       # Test whether the compiler implicitly links with -lc since on some
17134       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17135       # to ld, don't add -lc before -lgcc.
17136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17137 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17138 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141   $RM conftest*
17142         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17143
17144         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17145   (eval $ac_compile) 2>&5
17146   ac_status=$?
17147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17148   test $ac_status = 0; } 2>conftest.err; then
17149           soname=conftest
17150           lib=conftest
17151           libobjs=conftest.$ac_objext
17152           deplibs=
17153           wl=$lt_prog_compiler_wl_CXX
17154           pic_flag=$lt_prog_compiler_pic_CXX
17155           compiler_flags=-v
17156           linker_flags=-v
17157           verstring=
17158           output_objdir=.
17159           libname=conftest
17160           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17161           allow_undefined_flag_CXX=
17162           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17163   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17164   ac_status=$?
17165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17166   test $ac_status = 0; }
17167           then
17168             lt_cv_archive_cmds_need_lc_CXX=no
17169           else
17170             lt_cv_archive_cmds_need_lc_CXX=yes
17171           fi
17172           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17173         else
17174           cat conftest.err 1>&5
17175         fi
17176         $RM conftest*
17177
17178 fi
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17180 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17181       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17182       ;;
17183     esac
17184   fi
17185   ;;
17186 esac
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17250 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17251
17252 library_names_spec=
17253 libname_spec='lib$name'
17254 soname_spec=
17255 shrext_cmds=.so
17256 postinstall_cmds=
17257 postuninstall_cmds=
17258 finish_cmds=
17259 finish_eval=
17260 shlibpath_var=
17261 shlibpath_overrides_runpath=unknown
17262 version_type=none
17263 dynamic_linker="$host_os ld.so"
17264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17265 need_lib_prefix=unknown
17266 hardcode_into_libs=no
17267
17268 # when you set need_version to no, make sure it does not cause -set_version
17269 # flags to be left without arguments
17270 need_version=unknown
17271
17272
17273
17274 case $host_os in
17275 aix3*)
17276   version_type=linux # correct to gnu/linux during the next big refactor
17277   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17278   shlibpath_var=LIBPATH
17279
17280   # AIX 3 has no versioning support, so we append a major version to the name.
17281   soname_spec='$libname$release$shared_ext$major'
17282   ;;
17283
17284 aix[4-9]*)
17285   version_type=linux # correct to gnu/linux during the next big refactor
17286   need_lib_prefix=no
17287   need_version=no
17288   hardcode_into_libs=yes
17289   if test ia64 = "$host_cpu"; then
17290     # AIX 5 supports IA64
17291     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17292     shlibpath_var=LD_LIBRARY_PATH
17293   else
17294     # With GCC up to 2.95.x, collect2 would create an import file
17295     # for dependence libraries.  The import file would start with
17296     # the line '#! .'.  This would cause the generated library to
17297     # depend on '.', always an invalid library.  This was fixed in
17298     # development snapshots of GCC prior to 3.0.
17299     case $host_os in
17300       aix4 | aix4.[01] | aix4.[01].*)
17301       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17302            echo ' yes '
17303            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17304         :
17305       else
17306         can_build_shared=no
17307       fi
17308       ;;
17309     esac
17310     # Using Import Files as archive members, it is possible to support
17311     # filename-based versioning of shared library archives on AIX. While
17312     # this would work for both with and without runtime linking, it will
17313     # prevent static linking of such archives. So we do filename-based
17314     # shared library versioning with .so extension only, which is used
17315     # when both runtime linking and shared linking is enabled.
17316     # Unfortunately, runtime linking may impact performance, so we do
17317     # not want this to be the default eventually. Also, we use the
17318     # versioned .so libs for executables only if there is the -brtl
17319     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17320     # To allow for filename-based versioning support, we need to create
17321     # libNAME.so.V as an archive file, containing:
17322     # *) an Import File, referring to the versioned filename of the
17323     #    archive as well as the shared archive member, telling the
17324     #    bitwidth (32 or 64) of that shared object, and providing the
17325     #    list of exported symbols of that shared object, eventually
17326     #    decorated with the 'weak' keyword
17327     # *) the shared object with the F_LOADONLY flag set, to really avoid
17328     #    it being seen by the linker.
17329     # At run time we better use the real file rather than another symlink,
17330     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17331
17332     case $with_aix_soname,$aix_use_runtimelinking in
17333     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17334     # soname into executable. Probably we can add versioning support to
17335     # collect2, so additional links can be useful in future.
17336     aix,yes) # traditional libtool
17337       dynamic_linker='AIX unversionable lib.so'
17338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17339       # instead of lib<name>.a to let people know that these are not
17340       # typical AIX shared libraries.
17341       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17342       ;;
17343     aix,no) # traditional AIX only
17344       dynamic_linker='AIX lib.a(lib.so.V)'
17345       # We preserve .a as extension for shared libraries through AIX4.2
17346       # and later when we are not doing run time linking.
17347       library_names_spec='$libname$release.a $libname.a'
17348       soname_spec='$libname$release$shared_ext$major'
17349       ;;
17350     svr4,*) # full svr4 only
17351       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17352       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17353       # We do not specify a path in Import Files, so LIBPATH fires.
17354       shlibpath_overrides_runpath=yes
17355       ;;
17356     *,yes) # both, prefer svr4
17357       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17358       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17359       # unpreferred sharedlib libNAME.a needs extra handling
17360       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"'
17361       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"'
17362       # We do not specify a path in Import Files, so LIBPATH fires.
17363       shlibpath_overrides_runpath=yes
17364       ;;
17365     *,no) # both, prefer aix
17366       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17367       library_names_spec='$libname$release.a $libname.a'
17368       soname_spec='$libname$release$shared_ext$major'
17369       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17370       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)'
17371       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"'
17372       ;;
17373     esac
17374     shlibpath_var=LIBPATH
17375   fi
17376   ;;
17377
17378 amigaos*)
17379   case $host_cpu in
17380   powerpc)
17381     # Since July 2007 AmigaOS4 officially supports .so libraries.
17382     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17383     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17384     ;;
17385   m68k)
17386     library_names_spec='$libname.ixlibrary $libname.a'
17387     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388     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'
17389     ;;
17390   esac
17391   ;;
17392
17393 beos*)
17394   library_names_spec='$libname$shared_ext'
17395   dynamic_linker="$host_os ld.so"
17396   shlibpath_var=LIBRARY_PATH
17397   ;;
17398
17399 bsdi[45]*)
17400   version_type=linux # correct to gnu/linux during the next big refactor
17401   need_version=no
17402   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17403   soname_spec='$libname$release$shared_ext$major'
17404   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17407   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17408   # the default ld.so.conf also contains /usr/contrib/lib and
17409   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17410   # libtool to hard-code these into programs
17411   ;;
17412
17413 cygwin* | mingw* | pw32* | cegcc*)
17414   version_type=windows
17415   shrext_cmds=.dll
17416   need_version=no
17417   need_lib_prefix=no
17418
17419   case $GCC,$cc_basename in
17420   yes,*)
17421     # gcc
17422     library_names_spec='$libname.dll.a'
17423     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17424     postinstall_cmds='base_file=`basename \$file`~
17425       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17426       dldir=$destdir/`dirname \$dlpath`~
17427       test -d \$dldir || mkdir -p \$dldir~
17428       $install_prog $dir/$dlname \$dldir/$dlname~
17429       chmod a+x \$dldir/$dlname~
17430       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17431         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17432       fi'
17433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17434       dlpath=$dir/\$dldll~
17435        $RM \$dlpath'
17436     shlibpath_overrides_runpath=yes
17437
17438     case $host_os in
17439     cygwin*)
17440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17441       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17442
17443       ;;
17444     mingw* | cegcc*)
17445       # MinGW DLLs use traditional 'lib' prefix
17446       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17447       ;;
17448     pw32*)
17449       # pw32 DLLs use 'pw' prefix rather than 'lib'
17450       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17451       ;;
17452     esac
17453     dynamic_linker='Win32 ld.exe'
17454     ;;
17455
17456   *,cl*)
17457     # Native MSVC
17458     libname_spec='$name'
17459     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17460     library_names_spec='$libname.dll.lib'
17461
17462     case $build_os in
17463     mingw*)
17464       sys_lib_search_path_spec=
17465       lt_save_ifs=$IFS
17466       IFS=';'
17467       for lt_path in $LIB
17468       do
17469         IFS=$lt_save_ifs
17470         # Let DOS variable expansion print the short 8.3 style file name.
17471         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17472         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17473       done
17474       IFS=$lt_save_ifs
17475       # Convert to MSYS style.
17476       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17477       ;;
17478     cygwin*)
17479       # Convert to unix form, then to dos form, then back to unix form
17480       # but this time dos style (no spaces!) so that the unix form looks
17481       # like /cygdrive/c/PROGRA~1:/cygdr...
17482       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17483       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17484       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17485       ;;
17486     *)
17487       sys_lib_search_path_spec=$LIB
17488       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17489         # It is most probably a Windows format PATH.
17490         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17491       else
17492         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17493       fi
17494       # FIXME: find the short name or the path components, as spaces are
17495       # common. (e.g. "Program Files" -> "PROGRA~1")
17496       ;;
17497     esac
17498
17499     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17500     postinstall_cmds='base_file=`basename \$file`~
17501       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17502       dldir=$destdir/`dirname \$dlpath`~
17503       test -d \$dldir || mkdir -p \$dldir~
17504       $install_prog $dir/$dlname \$dldir/$dlname'
17505     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17506       dlpath=$dir/\$dldll~
17507        $RM \$dlpath'
17508     shlibpath_overrides_runpath=yes
17509     dynamic_linker='Win32 link.exe'
17510     ;;
17511
17512   *)
17513     # Assume MSVC wrapper
17514     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17515     dynamic_linker='Win32 ld.exe'
17516     ;;
17517   esac
17518   # FIXME: first we should search . and the directory the executable is in
17519   shlibpath_var=PATH
17520   ;;
17521
17522 darwin* | rhapsody*)
17523   dynamic_linker="$host_os dyld"
17524   version_type=darwin
17525   need_lib_prefix=no
17526   need_version=no
17527   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17528   soname_spec='$libname$release$major$shared_ext'
17529   shlibpath_overrides_runpath=yes
17530   shlibpath_var=DYLD_LIBRARY_PATH
17531   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17532
17533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17534   ;;
17535
17536 dgux*)
17537   version_type=linux # correct to gnu/linux during the next big refactor
17538   need_lib_prefix=no
17539   need_version=no
17540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17541   soname_spec='$libname$release$shared_ext$major'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   ;;
17544
17545 freebsd* | dragonfly*)
17546   # DragonFly does not have aout.  When/if they implement a new
17547   # versioning mechanism, adjust this.
17548   if test -x /usr/bin/objformat; then
17549     objformat=`/usr/bin/objformat`
17550   else
17551     case $host_os in
17552     freebsd[23].*) objformat=aout ;;
17553     *) objformat=elf ;;
17554     esac
17555   fi
17556   version_type=freebsd-$objformat
17557   case $version_type in
17558     freebsd-elf*)
17559       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17560       soname_spec='$libname$release$shared_ext$major'
17561       need_version=no
17562       need_lib_prefix=no
17563       ;;
17564     freebsd-*)
17565       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17566       need_version=yes
17567       ;;
17568   esac
17569   shlibpath_var=LD_LIBRARY_PATH
17570   case $host_os in
17571   freebsd2.*)
17572     shlibpath_overrides_runpath=yes
17573     ;;
17574   freebsd3.[01]* | freebsdelf3.[01]*)
17575     shlibpath_overrides_runpath=yes
17576     hardcode_into_libs=yes
17577     ;;
17578   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17579   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17580     shlibpath_overrides_runpath=no
17581     hardcode_into_libs=yes
17582     ;;
17583   *) # from 4.6 on, and DragonFly
17584     shlibpath_overrides_runpath=yes
17585     hardcode_into_libs=yes
17586     ;;
17587   esac
17588   ;;
17589
17590 haiku*)
17591   version_type=linux # correct to gnu/linux during the next big refactor
17592   need_lib_prefix=no
17593   need_version=no
17594   dynamic_linker="$host_os runtime_loader"
17595   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17596   soname_spec='$libname$release$shared_ext$major'
17597   shlibpath_var=LIBRARY_PATH
17598   shlibpath_overrides_runpath=no
17599   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17600   hardcode_into_libs=yes
17601   ;;
17602
17603 hpux9* | hpux10* | hpux11*)
17604   # Give a soname corresponding to the major version so that dld.sl refuses to
17605   # link against other versions.
17606   version_type=sunos
17607   need_lib_prefix=no
17608   need_version=no
17609   case $host_cpu in
17610   ia64*)
17611     shrext_cmds='.so'
17612     hardcode_into_libs=yes
17613     dynamic_linker="$host_os dld.so"
17614     shlibpath_var=LD_LIBRARY_PATH
17615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17616     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617     soname_spec='$libname$release$shared_ext$major'
17618     if test 32 = "$HPUX_IA64_MODE"; then
17619       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17620       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17621     else
17622       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17623       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17624     fi
17625     ;;
17626   hppa*64*)
17627     shrext_cmds='.sl'
17628     hardcode_into_libs=yes
17629     dynamic_linker="$host_os dld.sl"
17630     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17631     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17632     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17633     soname_spec='$libname$release$shared_ext$major'
17634     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17635     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17636     ;;
17637   *)
17638     shrext_cmds='.sl'
17639     dynamic_linker="$host_os dld.sl"
17640     shlibpath_var=SHLIB_PATH
17641     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17642     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17643     soname_spec='$libname$release$shared_ext$major'
17644     ;;
17645   esac
17646   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17647   postinstall_cmds='chmod 555 $lib'
17648   # or fails outright, so override atomically:
17649   install_override_mode=555
17650   ;;
17651
17652 interix[3-9]*)
17653   version_type=linux # correct to gnu/linux during the next big refactor
17654   need_lib_prefix=no
17655   need_version=no
17656   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17657   soname_spec='$libname$release$shared_ext$major'
17658   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17659   shlibpath_var=LD_LIBRARY_PATH
17660   shlibpath_overrides_runpath=no
17661   hardcode_into_libs=yes
17662   ;;
17663
17664 irix5* | irix6* | nonstopux*)
17665   case $host_os in
17666     nonstopux*) version_type=nonstopux ;;
17667     *)
17668         if test yes = "$lt_cv_prog_gnu_ld"; then
17669                 version_type=linux # correct to gnu/linux during the next big refactor
17670         else
17671                 version_type=irix
17672         fi ;;
17673   esac
17674   need_lib_prefix=no
17675   need_version=no
17676   soname_spec='$libname$release$shared_ext$major'
17677   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17678   case $host_os in
17679   irix5* | nonstopux*)
17680     libsuff= shlibsuff=
17681     ;;
17682   *)
17683     case $LD in # libtool.m4 will add one of these switches to LD
17684     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17685       libsuff= shlibsuff= libmagic=32-bit;;
17686     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17687       libsuff=32 shlibsuff=N32 libmagic=N32;;
17688     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17689       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17690     *) libsuff= shlibsuff= libmagic=never-match;;
17691     esac
17692     ;;
17693   esac
17694   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17695   shlibpath_overrides_runpath=no
17696   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17697   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17698   hardcode_into_libs=yes
17699   ;;
17700
17701 # No shared lib support for Linux oldld, aout, or coff.
17702 linux*oldld* | linux*aout* | linux*coff*)
17703   dynamic_linker=no
17704   ;;
17705
17706 linux*android*)
17707   version_type=none # Android doesn't support versioned libraries.
17708   need_lib_prefix=no
17709   need_version=no
17710   library_names_spec='$libname$release$shared_ext'
17711   soname_spec='$libname$release$shared_ext'
17712   finish_cmds=
17713   shlibpath_var=LD_LIBRARY_PATH
17714   shlibpath_overrides_runpath=yes
17715
17716   # This implies no fast_install, which is unacceptable.
17717   # Some rework will be needed to allow for fast_install
17718   # before this can be enabled.
17719   hardcode_into_libs=yes
17720
17721   dynamic_linker='Android linker'
17722   # Don't embed -rpath directories since the linker doesn't support them.
17723   hardcode_libdir_flag_spec_CXX='-L$libdir'
17724   ;;
17725
17726 # This must be glibc/ELF.
17727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17728   version_type=linux # correct to gnu/linux during the next big refactor
17729   need_lib_prefix=no
17730   need_version=no
17731   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17732   soname_spec='$libname$release$shared_ext$major'
17733   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17734   shlibpath_var=LD_LIBRARY_PATH
17735   shlibpath_overrides_runpath=no
17736
17737   # Some binutils ld are patched to set DT_RUNPATH
17738   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17739   $as_echo_n "(cached) " >&6
17740 else
17741   lt_cv_shlibpath_overrides_runpath=no
17742     save_LDFLAGS=$LDFLAGS
17743     save_libdir=$libdir
17744     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17745          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h.  */
17748
17749 int
17750 main ()
17751 {
17752
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 if ac_fn_cxx_try_link "$LINENO"; then :
17758   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17759   lt_cv_shlibpath_overrides_runpath=yes
17760 fi
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext \
17763     conftest$ac_exeext conftest.$ac_ext
17764     LDFLAGS=$save_LDFLAGS
17765     libdir=$save_libdir
17766
17767 fi
17768
17769   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17770
17771   # This implies no fast_install, which is unacceptable.
17772   # Some rework will be needed to allow for fast_install
17773   # before this can be enabled.
17774   hardcode_into_libs=yes
17775
17776   # Ideally, we could use ldconfig to report *all* directores which are
17777   # searched for libraries, however this is still not possible.  Aside from not
17778   # being certain /sbin/ldconfig is available, command
17779   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17780   # even though it is searched at run-time.  Try to do the best guess by
17781   # appending ld.so.conf contents (and includes) to the search path.
17782   if test -f /etc/ld.so.conf; then
17783     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' ' '`
17784     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17785   fi
17786
17787   # We used to test for /lib/ld.so.1 and disable shared libraries on
17788   # powerpc, because MkLinux only supported shared libraries with the
17789   # GNU dynamic linker.  Since this was broken with cross compilers,
17790   # most powerpc-linux boxes support dynamic linking these days and
17791   # people can always --disable-shared, the test was removed, and we
17792   # assume the GNU/Linux dynamic linker is in use.
17793   dynamic_linker='GNU/Linux ld.so'
17794   ;;
17795
17796 netbsdelf*-gnu)
17797   version_type=linux
17798   need_lib_prefix=no
17799   need_version=no
17800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801   soname_spec='${libname}${release}${shared_ext}$major'
17802   shlibpath_var=LD_LIBRARY_PATH
17803   shlibpath_overrides_runpath=no
17804   hardcode_into_libs=yes
17805   dynamic_linker='NetBSD ld.elf_so'
17806   ;;
17807
17808 netbsd*)
17809   version_type=sunos
17810   need_lib_prefix=no
17811   need_version=no
17812   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17813     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17815     dynamic_linker='NetBSD (a.out) ld.so'
17816   else
17817     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17818     soname_spec='$libname$release$shared_ext$major'
17819     dynamic_linker='NetBSD ld.elf_so'
17820   fi
17821   shlibpath_var=LD_LIBRARY_PATH
17822   shlibpath_overrides_runpath=yes
17823   hardcode_into_libs=yes
17824   ;;
17825
17826 newsos6)
17827   version_type=linux # correct to gnu/linux during the next big refactor
17828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17829   shlibpath_var=LD_LIBRARY_PATH
17830   shlibpath_overrides_runpath=yes
17831   ;;
17832
17833 *nto* | *qnx*)
17834   version_type=qnx
17835   need_lib_prefix=no
17836   need_version=no
17837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17838   soname_spec='$libname$release$shared_ext$major'
17839   shlibpath_var=LD_LIBRARY_PATH
17840   shlibpath_overrides_runpath=no
17841   hardcode_into_libs=yes
17842   dynamic_linker='ldqnx.so'
17843   ;;
17844
17845 openbsd* | bitrig*)
17846   version_type=sunos
17847   sys_lib_dlsearch_path_spec=/usr/lib
17848   need_lib_prefix=no
17849   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17850     need_version=no
17851   else
17852     need_version=yes
17853   fi
17854   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17856   shlibpath_var=LD_LIBRARY_PATH
17857   shlibpath_overrides_runpath=yes
17858   ;;
17859
17860 os2*)
17861   libname_spec='$name'
17862   version_type=windows
17863   shrext_cmds=.dll
17864   need_version=no
17865   need_lib_prefix=no
17866   # OS/2 can only load a DLL with a base name of 8 characters or less.
17867   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17868     v=$($ECHO $release$versuffix | tr -d .-);
17869     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17870     $ECHO $n$v`$shared_ext'
17871   library_names_spec='${libname}_dll.$libext'
17872   dynamic_linker='OS/2 ld.exe'
17873   shlibpath_var=BEGINLIBPATH
17874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17875   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17876   postinstall_cmds='base_file=`basename \$file`~
17877     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17878     dldir=$destdir/`dirname \$dlpath`~
17879     test -d \$dldir || mkdir -p \$dldir~
17880     $install_prog $dir/$dlname \$dldir/$dlname~
17881     chmod a+x \$dldir/$dlname~
17882     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17883       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17884     fi'
17885   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17886     dlpath=$dir/\$dldll~
17887     $RM \$dlpath'
17888   ;;
17889
17890 osf3* | osf4* | osf5*)
17891   version_type=osf
17892   need_lib_prefix=no
17893   need_version=no
17894   soname_spec='$libname$release$shared_ext$major'
17895   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17896   shlibpath_var=LD_LIBRARY_PATH
17897   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17898   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17899   ;;
17900
17901 rdos*)
17902   dynamic_linker=no
17903   ;;
17904
17905 solaris*)
17906   version_type=linux # correct to gnu/linux during the next big refactor
17907   need_lib_prefix=no
17908   need_version=no
17909   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17910   soname_spec='$libname$release$shared_ext$major'
17911   shlibpath_var=LD_LIBRARY_PATH
17912   shlibpath_overrides_runpath=yes
17913   hardcode_into_libs=yes
17914   # ldd complains unless libraries are executable
17915   postinstall_cmds='chmod +x $lib'
17916   ;;
17917
17918 sunos4*)
17919   version_type=sunos
17920   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17921   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17922   shlibpath_var=LD_LIBRARY_PATH
17923   shlibpath_overrides_runpath=yes
17924   if test yes = "$with_gnu_ld"; then
17925     need_lib_prefix=no
17926   fi
17927   need_version=yes
17928   ;;
17929
17930 sysv4 | sysv4.3*)
17931   version_type=linux # correct to gnu/linux during the next big refactor
17932   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17933   soname_spec='$libname$release$shared_ext$major'
17934   shlibpath_var=LD_LIBRARY_PATH
17935   case $host_vendor in
17936     sni)
17937       shlibpath_overrides_runpath=no
17938       need_lib_prefix=no
17939       runpath_var=LD_RUN_PATH
17940       ;;
17941     siemens)
17942       need_lib_prefix=no
17943       ;;
17944     motorola)
17945       need_lib_prefix=no
17946       need_version=no
17947       shlibpath_overrides_runpath=no
17948       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17949       ;;
17950   esac
17951   ;;
17952
17953 sysv4*MP*)
17954   if test -d /usr/nec; then
17955     version_type=linux # correct to gnu/linux during the next big refactor
17956     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17957     soname_spec='$libname$shared_ext.$major'
17958     shlibpath_var=LD_LIBRARY_PATH
17959   fi
17960   ;;
17961
17962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17963   version_type=sco
17964   need_lib_prefix=no
17965   need_version=no
17966   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17967   soname_spec='$libname$release$shared_ext$major'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   shlibpath_overrides_runpath=yes
17970   hardcode_into_libs=yes
17971   if test yes = "$with_gnu_ld"; then
17972     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17973   else
17974     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17975     case $host_os in
17976       sco3.2v5*)
17977         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17978         ;;
17979     esac
17980   fi
17981   sys_lib_dlsearch_path_spec='/usr/lib'
17982   ;;
17983
17984 tpf*)
17985   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17986   version_type=linux # correct to gnu/linux during the next big refactor
17987   need_lib_prefix=no
17988   need_version=no
17989   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   shlibpath_overrides_runpath=no
17992   hardcode_into_libs=yes
17993   ;;
17994
17995 uts4*)
17996   version_type=linux # correct to gnu/linux during the next big refactor
17997   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17998   soname_spec='$libname$release$shared_ext$major'
17999   shlibpath_var=LD_LIBRARY_PATH
18000   ;;
18001
18002 *)
18003   dynamic_linker=no
18004   ;;
18005 esac
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18007 $as_echo "$dynamic_linker" >&6; }
18008 test no = "$dynamic_linker" && can_build_shared=no
18009
18010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18011 if test yes = "$GCC"; then
18012   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18013 fi
18014
18015 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18016   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18017 fi
18018
18019 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18020   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18021 fi
18022
18023 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18024 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18025
18026 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18027 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18028
18029 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18030 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18073 hardcode_action_CXX=
18074 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18075    test -n "$runpath_var_CXX" ||
18076    test yes = "$hardcode_automatic_CXX"; then
18077
18078   # We can hardcode non-existent directories.
18079   if test no != "$hardcode_direct_CXX" &&
18080      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18081      # have to relink, otherwise we might link with an installed library
18082      # when we should be linking with a yet-to-be-installed one
18083      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18084      test no != "$hardcode_minus_L_CXX"; then
18085     # Linking always hardcodes the temporary library directory.
18086     hardcode_action_CXX=relink
18087   else
18088     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18089     hardcode_action_CXX=immediate
18090   fi
18091 else
18092   # We cannot hardcode anything, or else we can only hardcode existing
18093   # directories.
18094   hardcode_action_CXX=unsupported
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18097 $as_echo "$hardcode_action_CXX" >&6; }
18098
18099 if test relink = "$hardcode_action_CXX" ||
18100    test yes = "$inherit_rpath_CXX"; then
18101   # Fast installation is not supported
18102   enable_fast_install=no
18103 elif test yes = "$shlibpath_overrides_runpath" ||
18104      test no = "$enable_shared"; then
18105   # Fast installation is not necessary
18106   enable_fast_install=needless
18107 fi
18108
18109
18110
18111
18112
18113
18114
18115   fi # test -n "$compiler"
18116
18117   CC=$lt_save_CC
18118   CFLAGS=$lt_save_CFLAGS
18119   LDCXX=$LD
18120   LD=$lt_save_LD
18121   GCC=$lt_save_GCC
18122   with_gnu_ld=$lt_save_with_gnu_ld
18123   lt_cv_path_LDCXX=$lt_cv_path_LD
18124   lt_cv_path_LD=$lt_save_path_LD
18125   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18126   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18127 fi # test yes != "$_lt_caught_CXX_error"
18128
18129 ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135
18136 # Check whether --enable-largefile was given.
18137 if test "${enable_largefile+set}" = set; then :
18138   enableval=$enable_largefile;
18139 fi
18140
18141 if test "$enable_largefile" != no; then
18142
18143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18145 if ${ac_cv_sys_largefile_CC+:} false; then :
18146   $as_echo_n "(cached) " >&6
18147 else
18148   ac_cv_sys_largefile_CC=no
18149      if test "$GCC" != yes; then
18150        ac_save_CC=$CC
18151        while :; do
18152          # IRIX 6.2 and later do not support large files by default,
18153          # so use the C compiler's -n32 option if that helps.
18154          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h.  */
18156 #include <sys/types.h>
18157  /* Check that off_t can represent 2**63 - 1 correctly.
18158     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18159     since some C++ compilers masquerading as C compilers
18160     incorrectly reject 9223372036854775807.  */
18161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18162   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18163                        && LARGE_OFF_T % 2147483647 == 1)
18164                       ? 1 : -1];
18165 int
18166 main ()
18167 {
18168
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173          if ac_fn_c_try_compile "$LINENO"; then :
18174   break
18175 fi
18176 rm -f core conftest.err conftest.$ac_objext
18177          CC="$CC -n32"
18178          if ac_fn_c_try_compile "$LINENO"; then :
18179   ac_cv_sys_largefile_CC=' -n32'; break
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext
18182          break
18183        done
18184        CC=$ac_save_CC
18185        rm -f conftest.$ac_ext
18186     fi
18187 fi
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18190   if test "$ac_cv_sys_largefile_CC" != no; then
18191     CC=$CC$ac_cv_sys_largefile_CC
18192   fi
18193
18194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18196 if ${ac_cv_sys_file_offset_bits+:} false; then :
18197   $as_echo_n "(cached) " >&6
18198 else
18199   while :; do
18200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h.  */
18202 #include <sys/types.h>
18203  /* Check that off_t can represent 2**63 - 1 correctly.
18204     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18205     since some C++ compilers masquerading as C compilers
18206     incorrectly reject 9223372036854775807.  */
18207 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18208   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18209                        && LARGE_OFF_T % 2147483647 == 1)
18210                       ? 1 : -1];
18211 int
18212 main ()
18213 {
18214
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 if ac_fn_c_try_compile "$LINENO"; then :
18220   ac_cv_sys_file_offset_bits=no; break
18221 fi
18222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h.  */
18225 #define _FILE_OFFSET_BITS 64
18226 #include <sys/types.h>
18227  /* Check that off_t can represent 2**63 - 1 correctly.
18228     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18229     since some C++ compilers masquerading as C compilers
18230     incorrectly reject 9223372036854775807.  */
18231 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18232   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18233                        && LARGE_OFF_T % 2147483647 == 1)
18234                       ? 1 : -1];
18235 int
18236 main ()
18237 {
18238
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_compile "$LINENO"; then :
18244   ac_cv_sys_file_offset_bits=64; break
18245 fi
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247   ac_cv_sys_file_offset_bits=unknown
18248   break
18249 done
18250 fi
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18253 case $ac_cv_sys_file_offset_bits in #(
18254   no | unknown) ;;
18255   *)
18256 cat >>confdefs.h <<_ACEOF
18257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18258 _ACEOF
18259 ;;
18260 esac
18261 rm -rf conftest*
18262   if test $ac_cv_sys_file_offset_bits = unknown; then
18263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18265 if ${ac_cv_sys_large_files+:} false; then :
18266   $as_echo_n "(cached) " >&6
18267 else
18268   while :; do
18269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h.  */
18271 #include <sys/types.h>
18272  /* Check that off_t can represent 2**63 - 1 correctly.
18273     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18274     since some C++ compilers masquerading as C compilers
18275     incorrectly reject 9223372036854775807.  */
18276 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18277   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18278                        && LARGE_OFF_T % 2147483647 == 1)
18279                       ? 1 : -1];
18280 int
18281 main ()
18282 {
18283
18284   ;
18285   return 0;
18286 }
18287 _ACEOF
18288 if ac_fn_c_try_compile "$LINENO"; then :
18289   ac_cv_sys_large_files=no; break
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h.  */
18294 #define _LARGE_FILES 1
18295 #include <sys/types.h>
18296  /* Check that off_t can represent 2**63 - 1 correctly.
18297     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18298     since some C++ compilers masquerading as C compilers
18299     incorrectly reject 9223372036854775807.  */
18300 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18301   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18302                        && LARGE_OFF_T % 2147483647 == 1)
18303                       ? 1 : -1];
18304 int
18305 main ()
18306 {
18307
18308   ;
18309   return 0;
18310 }
18311 _ACEOF
18312 if ac_fn_c_try_compile "$LINENO"; then :
18313   ac_cv_sys_large_files=1; break
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316   ac_cv_sys_large_files=unknown
18317   break
18318 done
18319 fi
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18321 $as_echo "$ac_cv_sys_large_files" >&6; }
18322 case $ac_cv_sys_large_files in #(
18323   no | unknown) ;;
18324   *)
18325 cat >>confdefs.h <<_ACEOF
18326 #define _LARGE_FILES $ac_cv_sys_large_files
18327 _ACEOF
18328 ;;
18329 esac
18330 rm -rf conftest*
18331   fi
18332
18333
18334 fi
18335
18336
18337
18338 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18339         if test -n "$ac_tool_prefix"; then
18340   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18341 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18343 $as_echo_n "checking for $ac_word... " >&6; }
18344 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18345   $as_echo_n "(cached) " >&6
18346 else
18347   case $PKG_CONFIG in
18348   [\\/]* | ?:[\\/]*)
18349   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18350   ;;
18351   *)
18352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18353 for as_dir in $PATH
18354 do
18355   IFS=$as_save_IFS
18356   test -z "$as_dir" && as_dir=.
18357     for ac_exec_ext in '' $ac_executable_extensions; do
18358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18359     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18361     break 2
18362   fi
18363 done
18364   done
18365 IFS=$as_save_IFS
18366
18367   ;;
18368 esac
18369 fi
18370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18371 if test -n "$PKG_CONFIG"; then
18372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18373 $as_echo "$PKG_CONFIG" >&6; }
18374 else
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18377 fi
18378
18379
18380 fi
18381 if test -z "$ac_cv_path_PKG_CONFIG"; then
18382   ac_pt_PKG_CONFIG=$PKG_CONFIG
18383   # Extract the first word of "pkg-config", so it can be a program name with args.
18384 set dummy pkg-config; ac_word=$2
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386 $as_echo_n "checking for $ac_word... " >&6; }
18387 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18388   $as_echo_n "(cached) " >&6
18389 else
18390   case $ac_pt_PKG_CONFIG in
18391   [\\/]* | ?:[\\/]*)
18392   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18393   ;;
18394   *)
18395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18397 do
18398   IFS=$as_save_IFS
18399   test -z "$as_dir" && as_dir=.
18400     for ac_exec_ext in '' $ac_executable_extensions; do
18401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18404     break 2
18405   fi
18406 done
18407   done
18408 IFS=$as_save_IFS
18409
18410   ;;
18411 esac
18412 fi
18413 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18414 if test -n "$ac_pt_PKG_CONFIG"; then
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18416 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18417 else
18418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18420 fi
18421
18422   if test "x$ac_pt_PKG_CONFIG" = x; then
18423     PKG_CONFIG=""
18424   else
18425     case $cross_compiling:$ac_tool_warned in
18426 yes:)
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18429 ac_tool_warned=yes ;;
18430 esac
18431     PKG_CONFIG=$ac_pt_PKG_CONFIG
18432   fi
18433 else
18434   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18435 fi
18436
18437 fi
18438 if test -n "$PKG_CONFIG"; then
18439         _pkg_min_version=0.20
18440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18441 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18442         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18443                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444 $as_echo "yes" >&6; }
18445         else
18446                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18447 $as_echo "no" >&6; }
18448                 PKG_CONFIG=""
18449         fi
18450
18451 fi
18452
18453 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18454
18455
18456 GIT=${GIT-"${am_missing_run}git"}
18457
18458
18459 # Version
18460
18461
18462
18463
18464 HB_VERSION_MAJOR=1
18465 HB_VERSION_MINOR=8
18466 HB_VERSION_MICRO=1
18467 HB_VERSION=1.8.1
18468
18469
18470
18471
18472
18473 # Libtool version
18474
18475
18476
18477
18478 HB_LIBTOOL_VERSION_INFO=10800:1:10800
18479
18480
18481
18482 # Check whether --with-libstdc++ was given.
18483 if test "${with_libstdc__+set}" = set; then :
18484   withval=$with_libstdc__; with_libstdcxx=$withval
18485 else
18486   with_libstdcxx=no
18487 fi
18488
18489  if test "x$with_libstdcxx" = "xyes"; then
18490   WITH_LIBSTDCXX_TRUE=
18491   WITH_LIBSTDCXX_FALSE='#'
18492 else
18493   WITH_LIBSTDCXX_TRUE='#'
18494   WITH_LIBSTDCXX_FALSE=
18495 fi
18496
18497
18498 # Documentation
18499 have_gtk_doc=false
18500
18501
18502
18503
18504   gtk_doc_requires="gtk-doc >= 1.15"
18505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18506 $as_echo_n "checking for gtk-doc... " >&6; }
18507   if test -n "$PKG_CONFIG" && \
18508     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18509   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18510   ac_status=$?
18511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18512   test $ac_status = 0; }; then
18513   have_gtk_doc=yes
18514 else
18515   have_gtk_doc=no
18516 fi
18517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18518 $as_echo "$have_gtk_doc" >&6; }
18519
18520   if test "$have_gtk_doc" = "no"; then
18521       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18522   You will not be able to create source packages with 'make dist'
18523   because $gtk_doc_requires is not found." >&5
18524 $as_echo "$as_me: WARNING:
18525   You will not be able to create source packages with 'make dist'
18526   because $gtk_doc_requires is not found." >&2;}
18527   fi
18528
18529             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18530 set dummy gtkdoc-check; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 $as_echo_n "checking for $ac_word... " >&6; }
18533 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18534   $as_echo_n "(cached) " >&6
18535 else
18536   if test -n "$GTKDOC_CHECK"; then
18537   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18538 else
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18541 do
18542   IFS=$as_save_IFS
18543   test -z "$as_dir" && as_dir=.
18544     for ac_exec_ext in '' $ac_executable_extensions; do
18545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18548     break 2
18549   fi
18550 done
18551   done
18552 IFS=$as_save_IFS
18553
18554 fi
18555 fi
18556 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18557 if test -n "$GTKDOC_CHECK"; then
18558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18559 $as_echo "$GTKDOC_CHECK" >&6; }
18560 else
18561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562 $as_echo "no" >&6; }
18563 fi
18564
18565
18566   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18567 set dummy gtkdoc-check; ac_word=$2
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18569 $as_echo_n "checking for $ac_word... " >&6; }
18570 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18571   $as_echo_n "(cached) " >&6
18572 else
18573   case $GTKDOC_CHECK_PATH in
18574   [\\/]* | ?:[\\/]*)
18575   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18576   ;;
18577   *)
18578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18580 do
18581   IFS=$as_save_IFS
18582   test -z "$as_dir" && as_dir=.
18583     for ac_exec_ext in '' $ac_executable_extensions; do
18584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18587     break 2
18588   fi
18589 done
18590   done
18591 IFS=$as_save_IFS
18592
18593   ;;
18594 esac
18595 fi
18596 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18597 if test -n "$GTKDOC_CHECK_PATH"; then
18598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18599 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18600 else
18601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18603 fi
18604
18605
18606   for ac_prog in gtkdoc-rebase
18607 do
18608   # Extract the first word of "$ac_prog", so it can be a program name with args.
18609 set dummy $ac_prog; ac_word=$2
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18611 $as_echo_n "checking for $ac_word... " >&6; }
18612 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18613   $as_echo_n "(cached) " >&6
18614 else
18615   case $GTKDOC_REBASE in
18616   [\\/]* | ?:[\\/]*)
18617   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18618   ;;
18619   *)
18620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18622 do
18623   IFS=$as_save_IFS
18624   test -z "$as_dir" && as_dir=.
18625     for ac_exec_ext in '' $ac_executable_extensions; do
18626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18627     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18629     break 2
18630   fi
18631 done
18632   done
18633 IFS=$as_save_IFS
18634
18635   ;;
18636 esac
18637 fi
18638 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18639 if test -n "$GTKDOC_REBASE"; then
18640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18641 $as_echo "$GTKDOC_REBASE" >&6; }
18642 else
18643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645 fi
18646
18647
18648   test -n "$GTKDOC_REBASE" && break
18649 done
18650 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18651
18652   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18653 set dummy gtkdoc-mkpdf; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18657   $as_echo_n "(cached) " >&6
18658 else
18659   case $GTKDOC_MKPDF in
18660   [\\/]* | ?:[\\/]*)
18661   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18662   ;;
18663   *)
18664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18666 do
18667   IFS=$as_save_IFS
18668   test -z "$as_dir" && as_dir=.
18669     for ac_exec_ext in '' $ac_executable_extensions; do
18670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673     break 2
18674   fi
18675 done
18676   done
18677 IFS=$as_save_IFS
18678
18679   ;;
18680 esac
18681 fi
18682 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18683 if test -n "$GTKDOC_MKPDF"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18685 $as_echo "$GTKDOC_MKPDF" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691
18692
18693
18694 # Check whether --with-html-dir was given.
18695 if test "${with_html_dir+set}" = set; then :
18696   withval=$with_html_dir;
18697 else
18698   with_html_dir='${datadir}/gtk-doc/html'
18699 fi
18700
18701   HTML_DIR="$with_html_dir"
18702
18703
18704     # Check whether --enable-gtk-doc was given.
18705 if test "${enable_gtk_doc+set}" = set; then :
18706   enableval=$enable_gtk_doc;
18707 else
18708   enable_gtk_doc=no
18709 fi
18710
18711
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18713 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18715 $as_echo "$enable_gtk_doc" >&6; }
18716
18717   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18718     as_fn_error $? "
18719   You must have $gtk_doc_requires installed to build documentation for
18720   $PACKAGE_NAME. Please install gtk-doc or disable building the
18721   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18722   fi
18723
18724     if test "x$PACKAGE_NAME" != "xglib"; then
18725
18726 pkg_failed=no
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18728 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18729
18730 if test -n "$PKG_CONFIG"; then
18731     if test -n "$GTKDOC_DEPS_CFLAGS"; then
18732         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18733     else
18734         if test -n "$PKG_CONFIG" && \
18735     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
18736   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18737   ac_status=$?
18738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739   test $ac_status = 0; }; then
18740   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18741 else
18742   pkg_failed=yes
18743 fi
18744     fi
18745 else
18746         pkg_failed=untried
18747 fi
18748 if test -n "$PKG_CONFIG"; then
18749     if test -n "$GTKDOC_DEPS_LIBS"; then
18750         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18751     else
18752         if test -n "$PKG_CONFIG" && \
18753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
18754   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18755   ac_status=$?
18756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757   test $ac_status = 0; }; then
18758   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18759 else
18760   pkg_failed=yes
18761 fi
18762     fi
18763 else
18764         pkg_failed=untried
18765 fi
18766
18767
18768
18769 if test $pkg_failed = yes; then
18770
18771 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18772         _pkg_short_errors_supported=yes
18773 else
18774         _pkg_short_errors_supported=no
18775 fi
18776         if test $_pkg_short_errors_supported = yes; then
18777                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
18778         else
18779                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
18780         fi
18781         # Put the nasty error message in config.log where it belongs
18782         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18783
18784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18786                 :
18787 elif test $pkg_failed = untried; then
18788         :
18789 else
18790         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18791         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18793 $as_echo "yes" >&6; }
18794         :
18795 fi
18796   fi
18797
18798     # Check whether --enable-gtk-doc-html was given.
18799 if test "${enable_gtk_doc_html+set}" = set; then :
18800   enableval=$enable_gtk_doc_html;
18801 else
18802   enable_gtk_doc_html=yes
18803 fi
18804
18805     # Check whether --enable-gtk-doc-pdf was given.
18806 if test "${enable_gtk_doc_pdf+set}" = set; then :
18807   enableval=$enable_gtk_doc_pdf;
18808 else
18809   enable_gtk_doc_pdf=no
18810 fi
18811
18812
18813   if test -z "$GTKDOC_MKPDF"; then
18814     enable_gtk_doc_pdf=no
18815   fi
18816
18817   if test -z "$AM_DEFAULT_VERBOSITY"; then
18818     AM_DEFAULT_VERBOSITY=1
18819   fi
18820
18821
18822    if test x$have_gtk_doc = xyes; then
18823   HAVE_GTK_DOC_TRUE=
18824   HAVE_GTK_DOC_FALSE='#'
18825 else
18826   HAVE_GTK_DOC_TRUE='#'
18827   HAVE_GTK_DOC_FALSE=
18828 fi
18829
18830    if test x$enable_gtk_doc = xyes; then
18831   ENABLE_GTK_DOC_TRUE=
18832   ENABLE_GTK_DOC_FALSE='#'
18833 else
18834   ENABLE_GTK_DOC_TRUE='#'
18835   ENABLE_GTK_DOC_FALSE=
18836 fi
18837
18838    if test x$enable_gtk_doc_html = xyes; then
18839   GTK_DOC_BUILD_HTML_TRUE=
18840   GTK_DOC_BUILD_HTML_FALSE='#'
18841 else
18842   GTK_DOC_BUILD_HTML_TRUE='#'
18843   GTK_DOC_BUILD_HTML_FALSE=
18844 fi
18845
18846    if test x$enable_gtk_doc_pdf = xyes; then
18847   GTK_DOC_BUILD_PDF_TRUE=
18848   GTK_DOC_BUILD_PDF_FALSE='#'
18849 else
18850   GTK_DOC_BUILD_PDF_TRUE='#'
18851   GTK_DOC_BUILD_PDF_FALSE=
18852 fi
18853
18854    if test -n "$LIBTOOL"; then
18855   GTK_DOC_USE_LIBTOOL_TRUE=
18856   GTK_DOC_USE_LIBTOOL_FALSE='#'
18857 else
18858   GTK_DOC_USE_LIBTOOL_TRUE='#'
18859   GTK_DOC_USE_LIBTOOL_FALSE=
18860 fi
18861
18862    if test -n "$GTKDOC_REBASE"; then
18863   GTK_DOC_USE_REBASE_TRUE=
18864   GTK_DOC_USE_REBASE_FALSE='#'
18865 else
18866   GTK_DOC_USE_REBASE_TRUE='#'
18867   GTK_DOC_USE_REBASE_FALSE=
18868 fi
18869
18870
18871         if test "x$enable_gtk_doc" = xyes; then
18872                 have_gtk_doc=true
18873         fi
18874
18875
18876 # Functions and headers
18877 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l
18878 do :
18879   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18882   cat >>confdefs.h <<_ACEOF
18883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18884 _ACEOF
18885
18886 fi
18887 done
18888
18889
18890 save_libs="$LIBS"
18891 LIBS="$LIBS -lm"
18892 for ac_func in round
18893 do :
18894   ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18895 if test "x$ac_cv_func_round" = xyes; then :
18896   cat >>confdefs.h <<_ACEOF
18897 #define HAVE_ROUND 1
18898 _ACEOF
18899
18900 else
18901   ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18902 "
18903 if test "x$ac_cv_have_decl_round" = xyes; then :
18904   ac_have_decl=1
18905 else
18906   ac_have_decl=0
18907 fi
18908
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_DECL_ROUND $ac_have_decl
18911 _ACEOF
18912
18913 fi
18914 done
18915
18916 LIBS="$save_libs"
18917
18918 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18919 do :
18920   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18923   cat >>confdefs.h <<_ACEOF
18924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18925 _ACEOF
18926
18927 fi
18928
18929 done
18930
18931
18932 # Compiler flags
18933
18934 # The cast to long int works around a bug in the HP C Compiler,
18935 # see AC_CHECK_SIZEOF for more information.
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18937 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18938 if ${ac_cv_alignof_struct_char__+:} false; then :
18939   $as_echo_n "(cached) " >&6
18940 else
18941   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
18942 #ifndef offsetof
18943 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18944 #endif
18945 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18946
18947 else
18948   if test "$ac_cv_type_struct_char__" = yes; then
18949      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18951 as_fn_error 77 "cannot compute alignment of struct{char;}
18952 See \`config.log' for more details" "$LINENO" 5; }
18953    else
18954      ac_cv_alignof_struct_char__=0
18955    fi
18956 fi
18957
18958 fi
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18960 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18961
18962
18963
18964 cat >>confdefs.h <<_ACEOF
18965 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18966 _ACEOF
18967
18968
18969 if test "x$GCC" = "xyes"; then
18970
18971         # Make symbols link locally
18972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18973 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18974 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18975   $as_echo_n "(cached) " >&6
18976 else
18977
18978   ax_check_save_flags=$LDFLAGS
18979   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
18980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h.  */
18982
18983 int
18984 main ()
18985 {
18986
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 if ac_fn_c_try_link "$LINENO"; then :
18992   ax_cv_check_ldflags___Bsymbolic_functions=yes
18993 else
18994   ax_cv_check_ldflags___Bsymbolic_functions=no
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext \
18997     conftest$ac_exeext conftest.$ac_ext
18998   LDFLAGS=$ax_check_save_flags
18999 fi
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19001 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19002 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19003   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19004 else
19005   :
19006 fi
19007
19008
19009         # Make it possible to not link to libstdc++
19010         # No threadsafe statics in C++ as we do it ourselves.
19011         # We don't use these features, so it's safe to disable them
19012         # even in the cases where we DO link to libstdc++.
19013         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19014         # by overriding CXXFLAGS.
19015         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19016
19017         # Assorted warnings
19018         CXXFLAGS="$CXXFLAGS -Wcast-align"
19019
19020         case "$host" in
19021                 *-*-mingw*)
19022                 ;;
19023                 *)
19024                         # Hide inline methods
19025                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19026                 ;;
19027         esac
19028
19029         case "$host" in
19030                 arm-*-*)
19031                         if test "x$ac_cv_alignof_struct_char__" != x1; then
19032                                 # Request byte alignment
19033                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19034                         fi
19035                 ;;
19036         esac
19037 fi
19038
19039  if test "x$GCC" = "xyes"; then
19040   HAVE_GCC_TRUE=
19041   HAVE_GCC_FALSE='#'
19042 else
19043   HAVE_GCC_TRUE='#'
19044   HAVE_GCC_FALSE=
19045 fi
19046
19047
19048 hb_os_win32=no
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19050 $as_echo_n "checking for native Win32... " >&6; }
19051 case "$host" in
19052   *-*-mingw*)
19053     hb_os_win32=yes
19054     ;;
19055 esac
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19057 $as_echo "$hb_os_win32" >&6; }
19058  if test "$hb_os_win32" = "yes"; then
19059   OS_WIN32_TRUE=
19060   OS_WIN32_FALSE='#'
19061 else
19062   OS_WIN32_TRUE='#'
19063   OS_WIN32_FALSE=
19064 fi
19065
19066
19067 have_pthread=false
19068 if test "$hb_os_win32" = no; then
19069
19070
19071
19072
19073 ac_ext=c
19074 ac_cpp='$CPP $CPPFLAGS'
19075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19078
19079 ax_pthread_ok=no
19080
19081 # We used to check for pthread.h first, but this fails if pthread.h
19082 # requires special compiler flags (e.g. on Tru64 or Sequent).
19083 # It gets checked for in the link test anyway.
19084
19085 # First of all, check if the user has set any of the PTHREAD_LIBS,
19086 # etcetera environment variables, and if threads linking works using
19087 # them:
19088 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19089         ax_pthread_save_CC="$CC"
19090         ax_pthread_save_CFLAGS="$CFLAGS"
19091         ax_pthread_save_LIBS="$LIBS"
19092         if test "x$PTHREAD_CC" != "x"; then :
19093   CC="$PTHREAD_CC"
19094 fi
19095         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19096         LIBS="$PTHREAD_LIBS $LIBS"
19097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19098 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19099         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h.  */
19101
19102 /* Override any GCC internal prototype to avoid an error.
19103    Use char because int might match the return type of a GCC
19104    builtin and then its argument prototype would still apply.  */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 char pthread_join ();
19109 int
19110 main ()
19111 {
19112 return pthread_join ();
19113   ;
19114   return 0;
19115 }
19116 _ACEOF
19117 if ac_fn_c_try_link "$LINENO"; then :
19118   ax_pthread_ok=yes
19119 fi
19120 rm -f core conftest.err conftest.$ac_objext \
19121     conftest$ac_exeext conftest.$ac_ext
19122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19123 $as_echo "$ax_pthread_ok" >&6; }
19124         if test "x$ax_pthread_ok" = "xno"; then
19125                 PTHREAD_LIBS=""
19126                 PTHREAD_CFLAGS=""
19127         fi
19128         CC="$ax_pthread_save_CC"
19129         CFLAGS="$ax_pthread_save_CFLAGS"
19130         LIBS="$ax_pthread_save_LIBS"
19131 fi
19132
19133 # We must check for the threads library under a number of different
19134 # names; the ordering is very important because some systems
19135 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19136 # libraries is broken (non-POSIX).
19137
19138 # Create a list of thread flags to try.  Items starting with a "-" are
19139 # C compiler flags, and other items are library names, except for "none"
19140 # which indicates that we try without any flags at all, and "pthread-config"
19141 # which is a program returning the flags for the Pth emulation library.
19142
19143 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19144
19145 # The ordering *is* (sometimes) important.  Some notes on the
19146 # individual items follow:
19147
19148 # pthreads: AIX (must check this before -lpthread)
19149 # none: in case threads are in libc; should be tried before -Kthread and
19150 #       other compiler flags to prevent continual compiler warnings
19151 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19152 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19153 #           (Note: HP C rejects this with "bad form for `-t' option")
19154 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19155 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19156 #      doesn't hurt to check since this sometimes defines pthreads and
19157 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19158 #      is present but should not be used directly; and before -mthreads,
19159 #      because the compiler interprets this as "-mt" + "-hreads")
19160 # -mthreads: Mingw32/gcc, Lynx/gcc
19161 # pthread: Linux, etcetera
19162 # --thread-safe: KAI C++
19163 # pthread-config: use pthread-config program (for GNU Pth library)
19164
19165 case $host_os in
19166
19167         freebsd*)
19168
19169         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19170         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19171
19172         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19173         ;;
19174
19175         hpux*)
19176
19177         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19178         # multi-threading and also sets -lpthread."
19179
19180         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19181         ;;
19182
19183         openedition*)
19184
19185         # IBM z/OS requires a feature-test macro to be defined in order to
19186         # enable POSIX threads at all, so give the user a hint if this is
19187         # not set. (We don't define these ourselves, as they can affect
19188         # other portions of the system API in unpredictable ways.)
19189
19190         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h.  */
19192
19193 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19194              AX_PTHREAD_ZOS_MISSING
19195 #            endif
19196
19197 _ACEOF
19198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19199   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19200   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19201 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19202 fi
19203 rm -f conftest*
19204
19205         ;;
19206
19207         solaris*)
19208
19209         # On Solaris (at least, for some versions), libc contains stubbed
19210         # (non-functional) versions of the pthreads routines, so link-based
19211         # tests will erroneously succeed. (N.B.: The stubs are missing
19212         # pthread_cleanup_push, or rather a function called by this macro,
19213         # so we could check for that, but who knows whether they'll stub
19214         # that too in a future libc.)  So we'll check first for the
19215         # standard Solaris way of linking pthreads (-mt -lpthread).
19216
19217         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19218         ;;
19219 esac
19220
19221 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19222
19223 if test "x$GCC" = "xyes"; then :
19224   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19225 fi
19226
19227 # The presence of a feature test macro requesting re-entrant function
19228 # definitions is, on some systems, a strong hint that pthreads support is
19229 # correctly enabled
19230
19231 case $host_os in
19232         darwin* | hpux* | linux* | osf* | solaris*)
19233         ax_pthread_check_macro="_REENTRANT"
19234         ;;
19235
19236         aix*)
19237         ax_pthread_check_macro="_THREAD_SAFE"
19238         ;;
19239
19240         *)
19241         ax_pthread_check_macro="--"
19242         ;;
19243 esac
19244 if test "x$ax_pthread_check_macro" = "x--"; then :
19245   ax_pthread_check_cond=0
19246 else
19247   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19248 fi
19249
19250 # Are we compiling with Clang?
19251
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19253 $as_echo_n "checking whether $CC is Clang... " >&6; }
19254 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19255   $as_echo_n "(cached) " >&6
19256 else
19257   ax_cv_PTHREAD_CLANG=no
19258      # Note that Autoconf sets GCC=yes for Clang as well as GCC
19259      if test "x$GCC" = "xyes"; then
19260         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h.  */
19262 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19263 #            if defined(__clang__) && defined(__llvm__)
19264              AX_PTHREAD_CC_IS_CLANG
19265 #            endif
19266
19267 _ACEOF
19268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19269   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19270   ax_cv_PTHREAD_CLANG=yes
19271 fi
19272 rm -f conftest*
19273
19274      fi
19275
19276 fi
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19278 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19279 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19280
19281 ax_pthread_clang_warning=no
19282
19283 # Clang needs special handling, because older versions handle the -pthread
19284 # option in a rather... idiosyncratic way
19285
19286 if test "x$ax_pthread_clang" = "xyes"; then
19287
19288         # Clang takes -pthread; it has never supported any other flag
19289
19290         # (Note 1: This will need to be revisited if a system that Clang
19291         # supports has POSIX threads in a separate library.  This tends not
19292         # to be the way of modern systems, but it's conceivable.)
19293
19294         # (Note 2: On some systems, notably Darwin, -pthread is not needed
19295         # to get POSIX threads support; the API is always present and
19296         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
19297         # -pthread does define _REENTRANT, and while the Darwin headers
19298         # ignore this macro, third-party headers might not.)
19299
19300         PTHREAD_CFLAGS="-pthread"
19301         PTHREAD_LIBS=
19302
19303         ax_pthread_ok=yes
19304
19305         # However, older versions of Clang make a point of warning the user
19306         # that, in an invocation where only linking and no compilation is
19307         # taking place, the -pthread option has no effect ("argument unused
19308         # during compilation").  They expect -pthread to be passed in only
19309         # when source code is being compiled.
19310         #
19311         # Problem is, this is at odds with the way Automake and most other
19312         # C build frameworks function, which is that the same flags used in
19313         # compilation (CFLAGS) are also used in linking.  Many systems
19314         # supported by AX_PTHREAD require exactly this for POSIX threads
19315         # support, and in fact it is often not straightforward to specify a
19316         # flag that is used only in the compilation phase and not in
19317         # linking.  Such a scenario is extremely rare in practice.
19318         #
19319         # Even though use of the -pthread flag in linking would only print
19320         # a warning, this can be a nuisance for well-run software projects
19321         # that build with -Werror.  So if the active version of Clang has
19322         # this misfeature, we search for an option to squash it.
19323
19324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19325 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19326 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19327   $as_echo_n "(cached) " >&6
19328 else
19329   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19330              # Create an alternate version of $ac_link that compiles and
19331              # links in two steps (.c -> .o, .o -> exe) instead of one
19332              # (.c -> exe), because the warning occurs only in the second
19333              # step
19334              ax_pthread_save_ac_link="$ac_link"
19335              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19336              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19337              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19338              ax_pthread_save_CFLAGS="$CFLAGS"
19339              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19340                 if test "x$ax_pthread_try" = "xunknown"; then :
19341   break
19342 fi
19343                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19344                 ac_link="$ax_pthread_save_ac_link"
19345                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h.  */
19347 int main(void){return 0;}
19348 _ACEOF
19349 if ac_fn_c_try_link "$LINENO"; then :
19350   ac_link="$ax_pthread_2step_ac_link"
19351                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h.  */
19353 int main(void){return 0;}
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"; then :
19356   break
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext \
19359     conftest$ac_exeext conftest.$ac_ext
19360
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext \
19363     conftest$ac_exeext conftest.$ac_ext
19364              done
19365              ac_link="$ax_pthread_save_ac_link"
19366              CFLAGS="$ax_pthread_save_CFLAGS"
19367              if test "x$ax_pthread_try" = "x"; then :
19368   ax_pthread_try=no
19369 fi
19370              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19371
19372 fi
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19374 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19375
19376         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19377                 no | unknown) ;;
19378                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19379         esac
19380
19381 fi # $ax_pthread_clang = yes
19382
19383 if test "x$ax_pthread_ok" = "xno"; then
19384 for ax_pthread_try_flag in $ax_pthread_flags; do
19385
19386         case $ax_pthread_try_flag in
19387                 none)
19388                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19389 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19390                 ;;
19391
19392                 -mt,pthread)
19393                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19394 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19395                 PTHREAD_CFLAGS="-mt"
19396                 PTHREAD_LIBS="-lpthread"
19397                 ;;
19398
19399                 -*)
19400                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19401 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19402                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19403                 ;;
19404
19405                 pthread-config)
19406                 # Extract the first word of "pthread-config", so it can be a program name with args.
19407 set dummy pthread-config; ac_word=$2
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19409 $as_echo_n "checking for $ac_word... " >&6; }
19410 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19411   $as_echo_n "(cached) " >&6
19412 else
19413   if test -n "$ax_pthread_config"; then
19414   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19415 else
19416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19417 for as_dir in $PATH
19418 do
19419   IFS=$as_save_IFS
19420   test -z "$as_dir" && as_dir=.
19421     for ac_exec_ext in '' $ac_executable_extensions; do
19422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19423     ac_cv_prog_ax_pthread_config="yes"
19424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19425     break 2
19426   fi
19427 done
19428   done
19429 IFS=$as_save_IFS
19430
19431   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19432 fi
19433 fi
19434 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19435 if test -n "$ax_pthread_config"; then
19436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19437 $as_echo "$ax_pthread_config" >&6; }
19438 else
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19440 $as_echo "no" >&6; }
19441 fi
19442
19443
19444                 if test "x$ax_pthread_config" = "xno"; then :
19445   continue
19446 fi
19447                 PTHREAD_CFLAGS="`pthread-config --cflags`"
19448                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19449                 ;;
19450
19451                 *)
19452                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19453 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19454                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19455                 ;;
19456         esac
19457
19458         ax_pthread_save_CFLAGS="$CFLAGS"
19459         ax_pthread_save_LIBS="$LIBS"
19460         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19461         LIBS="$PTHREAD_LIBS $LIBS"
19462
19463         # Check for various functions.  We must include pthread.h,
19464         # since some functions may be macros.  (On the Sequent, we
19465         # need a special flag -Kthread to make this header compile.)
19466         # We check for pthread_join because it is in -lpthread on IRIX
19467         # while pthread_create is in libc.  We check for pthread_attr_init
19468         # due to DEC craziness with -lpthreads.  We check for
19469         # pthread_cleanup_push because it is one of the few pthread
19470         # functions on Solaris that doesn't have a non-functional libc stub.
19471         # We try pthread_create on general principles.
19472
19473         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h.  */
19475 #include <pthread.h>
19476 #                       if $ax_pthread_check_cond
19477 #                        error "$ax_pthread_check_macro must be defined"
19478 #                       endif
19479                         static void routine(void *a) { a = 0; }
19480                         static void *start_routine(void *a) { return a; }
19481 int
19482 main ()
19483 {
19484 pthread_t th; pthread_attr_t attr;
19485                         pthread_create(&th, 0, start_routine, 0);
19486                         pthread_join(th, 0);
19487                         pthread_attr_init(&attr);
19488                         pthread_cleanup_push(routine, 0);
19489                         pthread_cleanup_pop(0) /* ; */
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 if ac_fn_c_try_link "$LINENO"; then :
19495   ax_pthread_ok=yes
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext \
19498     conftest$ac_exeext conftest.$ac_ext
19499
19500         CFLAGS="$ax_pthread_save_CFLAGS"
19501         LIBS="$ax_pthread_save_LIBS"
19502
19503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19504 $as_echo "$ax_pthread_ok" >&6; }
19505         if test "x$ax_pthread_ok" = "xyes"; then :
19506   break
19507 fi
19508
19509         PTHREAD_LIBS=""
19510         PTHREAD_CFLAGS=""
19511 done
19512 fi
19513
19514 # Various other checks:
19515 if test "x$ax_pthread_ok" = "xyes"; then
19516         ax_pthread_save_CFLAGS="$CFLAGS"
19517         ax_pthread_save_LIBS="$LIBS"
19518         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19519         LIBS="$PTHREAD_LIBS $LIBS"
19520
19521         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19523 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19524 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19525   $as_echo_n "(cached) " >&6
19526 else
19527   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19528              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19529                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h.  */
19531 #include <pthread.h>
19532 int
19533 main ()
19534 {
19535 int attr = $ax_pthread_attr; return attr /* ; */
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"; then :
19541   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19542 fi
19543 rm -f core conftest.err conftest.$ac_objext \
19544     conftest$ac_exeext conftest.$ac_ext
19545              done
19546
19547 fi
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19549 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19550         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19551                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19552                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19553
19554 cat >>confdefs.h <<_ACEOF
19555 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19556 _ACEOF
19557
19558                ax_pthread_joinable_attr_defined=yes
19559
19560 fi
19561
19562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19563 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19564 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19565   $as_echo_n "(cached) " >&6
19566 else
19567   ax_cv_PTHREAD_SPECIAL_FLAGS=no
19568              case $host_os in
19569              solaris*)
19570              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19571              ;;
19572              esac
19573
19574 fi
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19576 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19577         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19578                test "x$ax_pthread_special_flags_added" != "xyes"; then :
19579   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19580                ax_pthread_special_flags_added=yes
19581 fi
19582
19583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19584 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19585 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19586   $as_echo_n "(cached) " >&6
19587 else
19588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h.  */
19590 #include <pthread.h>
19591 int
19592 main ()
19593 {
19594 int i = PTHREAD_PRIO_INHERIT;
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 if ac_fn_c_try_link "$LINENO"; then :
19600   ax_cv_PTHREAD_PRIO_INHERIT=yes
19601 else
19602   ax_cv_PTHREAD_PRIO_INHERIT=no
19603 fi
19604 rm -f core conftest.err conftest.$ac_objext \
19605     conftest$ac_exeext conftest.$ac_ext
19606
19607 fi
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19609 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19610         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19611                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19612
19613 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19614
19615                ax_pthread_prio_inherit_defined=yes
19616
19617 fi
19618
19619         CFLAGS="$ax_pthread_save_CFLAGS"
19620         LIBS="$ax_pthread_save_LIBS"
19621
19622         # More AIX lossage: compile with *_r variant
19623         if test "x$GCC" != "xyes"; then
19624             case $host_os in
19625                 aix*)
19626                 case "x/$CC" in #(
19627   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19628     #handle absolute path differently from PATH based program lookup
19629                      case "x$CC" in #(
19630   x/*) :
19631     if as_fn_executable_p ${CC}_r; then :
19632   PTHREAD_CC="${CC}_r"
19633 fi ;; #(
19634   *) :
19635     for ac_prog in ${CC}_r
19636 do
19637   # Extract the first word of "$ac_prog", so it can be a program name with args.
19638 set dummy $ac_prog; ac_word=$2
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19640 $as_echo_n "checking for $ac_word... " >&6; }
19641 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19642   $as_echo_n "(cached) " >&6
19643 else
19644   if test -n "$PTHREAD_CC"; then
19645   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19646 else
19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648 for as_dir in $PATH
19649 do
19650   IFS=$as_save_IFS
19651   test -z "$as_dir" && as_dir=.
19652     for ac_exec_ext in '' $ac_executable_extensions; do
19653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19654     ac_cv_prog_PTHREAD_CC="$ac_prog"
19655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19656     break 2
19657   fi
19658 done
19659   done
19660 IFS=$as_save_IFS
19661
19662 fi
19663 fi
19664 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19665 if test -n "$PTHREAD_CC"; then
19666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19667 $as_echo "$PTHREAD_CC" >&6; }
19668 else
19669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19670 $as_echo "no" >&6; }
19671 fi
19672
19673
19674   test -n "$PTHREAD_CC" && break
19675 done
19676 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19677  ;;
19678 esac ;; #(
19679   *) :
19680      ;;
19681 esac
19682                 ;;
19683             esac
19684         fi
19685 fi
19686
19687 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19688
19689
19690
19691
19692
19693 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19694 if test "x$ax_pthread_ok" = "xyes"; then
19695         have_pthread=true
19696         :
19697 else
19698         ax_pthread_ok=no
19699
19700 fi
19701 ac_ext=c
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706
19707
19708 fi
19709 if $have_pthread; then
19710
19711 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19712
19713 fi
19714  if $have_pthread; then
19715   HAVE_PTHREAD_TRUE=
19716   HAVE_PTHREAD_FALSE='#'
19717 else
19718   HAVE_PTHREAD_TRUE='#'
19719   HAVE_PTHREAD_FALSE=
19720 fi
19721
19722
19723
19724 have_ot=true
19725 if $have_ot; then
19726
19727 $as_echo "#define HAVE_OT 1" >>confdefs.h
19728
19729 fi
19730  if $have_ot; then
19731   HAVE_OT_TRUE=
19732   HAVE_OT_FALSE='#'
19733 else
19734   HAVE_OT_TRUE='#'
19735   HAVE_OT_FALSE=
19736 fi
19737
19738
19739 have_fallback=true
19740 if $have_fallback; then
19741
19742 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19743
19744 fi
19745  if $have_fallback; then
19746   HAVE_FALLBACK_TRUE=
19747   HAVE_FALLBACK_FALSE='#'
19748 else
19749   HAVE_FALLBACK_TRUE='#'
19750   HAVE_FALLBACK_FALSE=
19751 fi
19752
19753
19754
19755
19756 # Check whether --with-glib was given.
19757 if test "${with_glib+set}" = set; then :
19758   withval=$with_glib;
19759 else
19760   with_glib=auto
19761 fi
19762
19763 have_glib=false
19764 GLIB_DEPS="glib-2.0 >= 2.19.1"
19765
19766 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19767
19768 pkg_failed=no
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19770 $as_echo_n "checking for GLIB... " >&6; }
19771
19772 if test -n "$PKG_CONFIG"; then
19773     if test -n "$GLIB_CFLAGS"; then
19774         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19775     else
19776         if test -n "$PKG_CONFIG" && \
19777     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19778   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19779   ac_status=$?
19780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19781   test $ac_status = 0; }; then
19782   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19783 else
19784   pkg_failed=yes
19785 fi
19786     fi
19787 else
19788         pkg_failed=untried
19789 fi
19790 if test -n "$PKG_CONFIG"; then
19791     if test -n "$GLIB_LIBS"; then
19792         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19793     else
19794         if test -n "$PKG_CONFIG" && \
19795     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19796   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19797   ac_status=$?
19798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19799   test $ac_status = 0; }; then
19800   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19801 else
19802   pkg_failed=yes
19803 fi
19804     fi
19805 else
19806         pkg_failed=untried
19807 fi
19808
19809
19810
19811 if test $pkg_failed = yes; then
19812
19813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814         _pkg_short_errors_supported=yes
19815 else
19816         _pkg_short_errors_supported=no
19817 fi
19818         if test $_pkg_short_errors_supported = yes; then
19819                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
19820         else
19821                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
19822         fi
19823         # Put the nasty error message in config.log where it belongs
19824         echo "$GLIB_PKG_ERRORS" >&5
19825
19826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828                 :
19829 elif test $pkg_failed = untried; then
19830         :
19831 else
19832         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19833         GLIB_LIBS=$pkg_cv_GLIB_LIBS
19834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19835 $as_echo "yes" >&6; }
19836         have_glib=true
19837 fi
19838 fi
19839 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19840         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19841 fi
19842 if $have_glib; then
19843
19844 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19845
19846 fi
19847  if $have_glib; then
19848   HAVE_GLIB_TRUE=
19849   HAVE_GLIB_FALSE='#'
19850 else
19851   HAVE_GLIB_TRUE='#'
19852   HAVE_GLIB_FALSE=
19853 fi
19854
19855
19856
19857
19858 # Check whether --with-gobject was given.
19859 if test "${with_gobject+set}" = set; then :
19860   withval=$with_gobject;
19861 else
19862   with_gobject=no
19863 fi
19864
19865 have_gobject=false
19866 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19867
19868 pkg_failed=no
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19870 $as_echo_n "checking for GOBJECT... " >&6; }
19871
19872 if test -n "$PKG_CONFIG"; then
19873     if test -n "$GOBJECT_CFLAGS"; then
19874         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19875     else
19876         if test -n "$PKG_CONFIG" && \
19877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19878   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19879   ac_status=$?
19880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881   test $ac_status = 0; }; then
19882   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19883 else
19884   pkg_failed=yes
19885 fi
19886     fi
19887 else
19888         pkg_failed=untried
19889 fi
19890 if test -n "$PKG_CONFIG"; then
19891     if test -n "$GOBJECT_LIBS"; then
19892         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19893     else
19894         if test -n "$PKG_CONFIG" && \
19895     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19896   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19897   ac_status=$?
19898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19899   test $ac_status = 0; }; then
19900   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19901 else
19902   pkg_failed=yes
19903 fi
19904     fi
19905 else
19906         pkg_failed=untried
19907 fi
19908
19909
19910
19911 if test $pkg_failed = yes; then
19912
19913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19914         _pkg_short_errors_supported=yes
19915 else
19916         _pkg_short_errors_supported=no
19917 fi
19918         if test $_pkg_short_errors_supported = yes; then
19919                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19920         else
19921                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19922         fi
19923         # Put the nasty error message in config.log where it belongs
19924         echo "$GOBJECT_PKG_ERRORS" >&5
19925
19926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927 $as_echo "no" >&6; }
19928                 :
19929 elif test $pkg_failed = untried; then
19930         :
19931 else
19932         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19933         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19935 $as_echo "yes" >&6; }
19936         have_gobject=true
19937 fi
19938 fi
19939 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19940         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19941 fi
19942 if $have_gobject; then
19943
19944 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19945
19946         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19947
19948 fi
19949  if $have_gobject; then
19950   HAVE_GOBJECT_TRUE=
19951   HAVE_GOBJECT_FALSE='#'
19952 else
19953   HAVE_GOBJECT_TRUE='#'
19954   HAVE_GOBJECT_FALSE=
19955 fi
19956
19957
19958
19959
19960
19961 # Gobject-Introspection
19962 have_introspection=false
19963
19964         if $have_gobject; then
19965
19966
19967
19968                 # Check whether --enable-introspection was given.
19969 if test "${enable_introspection+set}" = set; then :
19970   enableval=$enable_introspection;
19971 else
19972   enable_introspection=auto
19973 fi
19974
19975
19976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19977 $as_echo_n "checking for gobject-introspection... " >&6; }
19978
19979         case $enable_introspection in #(
19980   no) :
19981             found_introspection="no (disabled, use --enable-introspection to enable)"
19982      ;; #(
19983       yes) :
19984             if test -n "$PKG_CONFIG" && \
19985     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19986   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19987   ac_status=$?
19988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19989   test $ac_status = 0; }; then
19990   :
19991 else
19992   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19993 fi
19994         if test -n "$PKG_CONFIG" && \
19995     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19996   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19997   ac_status=$?
19998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999   test $ac_status = 0; }; then
20000   found_introspection=yes
20001 else
20002   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20003 fi
20004      ;; #(
20005       auto) :
20006             if test -n "$PKG_CONFIG" && \
20007     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20008   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20009   ac_status=$?
20010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20011   test $ac_status = 0; }; then
20012   found_introspection=yes
20013 else
20014   found_introspection=no
20015 fi
20016                 enable_introspection=$found_introspection
20017      ;; #(
20018   *) :
20019                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20020      ;;
20021 esac
20022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20023 $as_echo "$found_introspection" >&6; }
20024
20025     INTROSPECTION_SCANNER=
20026     INTROSPECTION_COMPILER=
20027     INTROSPECTION_GENERATE=
20028     INTROSPECTION_GIRDIR=
20029     INTROSPECTION_TYPELIBDIR=
20030     if test "x$found_introspection" = "xyes"; then
20031        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20032        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20033        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20034        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
20035        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
20036        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20037        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20038        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20039     fi
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049      if test "x$found_introspection" = "xyes"; then
20050   HAVE_INTROSPECTION_TRUE=
20051   HAVE_INTROSPECTION_FALSE='#'
20052 else
20053   HAVE_INTROSPECTION_TRUE='#'
20054   HAVE_INTROSPECTION_FALSE=
20055 fi
20056
20057
20058
20059                 if test "x$found_introspection" = xyes; then
20060                         have_introspection=true
20061                 fi
20062         else
20063                  if false; then
20064   HAVE_INTROSPECTION_TRUE=
20065   HAVE_INTROSPECTION_FALSE='#'
20066 else
20067   HAVE_INTROSPECTION_TRUE='#'
20068   HAVE_INTROSPECTION_FALSE=
20069 fi
20070
20071         fi
20072
20073
20074
20075
20076 # Check whether --with-cairo was given.
20077 if test "${with_cairo+set}" = set; then :
20078   withval=$with_cairo;
20079 else
20080   with_cairo=auto
20081 fi
20082
20083 have_cairo=false
20084 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20085
20086 pkg_failed=no
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20088 $as_echo_n "checking for CAIRO... " >&6; }
20089
20090 if test -n "$PKG_CONFIG"; then
20091     if test -n "$CAIRO_CFLAGS"; then
20092         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20093     else
20094         if test -n "$PKG_CONFIG" && \
20095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20096   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20097   ac_status=$?
20098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20099   test $ac_status = 0; }; then
20100   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20101 else
20102   pkg_failed=yes
20103 fi
20104     fi
20105 else
20106         pkg_failed=untried
20107 fi
20108 if test -n "$PKG_CONFIG"; then
20109     if test -n "$CAIRO_LIBS"; then
20110         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20111     else
20112         if test -n "$PKG_CONFIG" && \
20113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20114   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20115   ac_status=$?
20116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20117   test $ac_status = 0; }; then
20118   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20119 else
20120   pkg_failed=yes
20121 fi
20122     fi
20123 else
20124         pkg_failed=untried
20125 fi
20126
20127
20128
20129 if test $pkg_failed = yes; then
20130
20131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20132         _pkg_short_errors_supported=yes
20133 else
20134         _pkg_short_errors_supported=no
20135 fi
20136         if test $_pkg_short_errors_supported = yes; then
20137                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20138         else
20139                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20140         fi
20141         # Put the nasty error message in config.log where it belongs
20142         echo "$CAIRO_PKG_ERRORS" >&5
20143
20144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145 $as_echo "no" >&6; }
20146                 :
20147 elif test $pkg_failed = untried; then
20148         :
20149 else
20150         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20151         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20153 $as_echo "yes" >&6; }
20154         have_cairo=true
20155 fi
20156 fi
20157 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20158         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20159 fi
20160 if $have_cairo; then
20161
20162 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20163
20164 fi
20165  if $have_cairo; then
20166   HAVE_CAIRO_TRUE=
20167   HAVE_CAIRO_FALSE='#'
20168 else
20169   HAVE_CAIRO_TRUE='#'
20170   HAVE_CAIRO_FALSE=
20171 fi
20172
20173
20174 have_cairo_ft=false
20175 if $have_cairo; then
20176
20177 pkg_failed=no
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20179 $as_echo_n "checking for CAIRO_FT... " >&6; }
20180
20181 if test -n "$PKG_CONFIG"; then
20182     if test -n "$CAIRO_FT_CFLAGS"; then
20183         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20184     else
20185         if test -n "$PKG_CONFIG" && \
20186     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20187   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20188   ac_status=$?
20189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20190   test $ac_status = 0; }; then
20191   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20192 else
20193   pkg_failed=yes
20194 fi
20195     fi
20196 else
20197         pkg_failed=untried
20198 fi
20199 if test -n "$PKG_CONFIG"; then
20200     if test -n "$CAIRO_FT_LIBS"; then
20201         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20202     else
20203         if test -n "$PKG_CONFIG" && \
20204     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20205   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20206   ac_status=$?
20207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20208   test $ac_status = 0; }; then
20209   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20210 else
20211   pkg_failed=yes
20212 fi
20213     fi
20214 else
20215         pkg_failed=untried
20216 fi
20217
20218
20219
20220 if test $pkg_failed = yes; then
20221
20222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20223         _pkg_short_errors_supported=yes
20224 else
20225         _pkg_short_errors_supported=no
20226 fi
20227         if test $_pkg_short_errors_supported = yes; then
20228                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
20229         else
20230                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
20231         fi
20232         # Put the nasty error message in config.log where it belongs
20233         echo "$CAIRO_FT_PKG_ERRORS" >&5
20234
20235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20237                 :
20238 elif test $pkg_failed = untried; then
20239         :
20240 else
20241         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20242         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20244 $as_echo "yes" >&6; }
20245         have_cairo_ft=true
20246 fi
20247 fi
20248 if $have_cairo_ft; then
20249
20250 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20251
20252 fi
20253  if $have_cairo_ft; then
20254   HAVE_CAIRO_FT_TRUE=
20255   HAVE_CAIRO_FT_FALSE='#'
20256 else
20257   HAVE_CAIRO_FT_TRUE='#'
20258   HAVE_CAIRO_FT_FALSE=
20259 fi
20260
20261
20262
20263
20264 # Check whether --with-fontconfig was given.
20265 if test "${with_fontconfig+set}" = set; then :
20266   withval=$with_fontconfig;
20267 else
20268   with_fontconfig=auto
20269 fi
20270
20271 have_fontconfig=false
20272 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20273
20274 pkg_failed=no
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20276 $as_echo_n "checking for FONTCONFIG... " >&6; }
20277
20278 if test -n "$PKG_CONFIG"; then
20279     if test -n "$FONTCONFIG_CFLAGS"; then
20280         pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20281     else
20282         if test -n "$PKG_CONFIG" && \
20283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20284   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20285   ac_status=$?
20286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287   test $ac_status = 0; }; then
20288   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20289 else
20290   pkg_failed=yes
20291 fi
20292     fi
20293 else
20294         pkg_failed=untried
20295 fi
20296 if test -n "$PKG_CONFIG"; then
20297     if test -n "$FONTCONFIG_LIBS"; then
20298         pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20299     else
20300         if test -n "$PKG_CONFIG" && \
20301     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20302   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20303   ac_status=$?
20304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20305   test $ac_status = 0; }; then
20306   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20307 else
20308   pkg_failed=yes
20309 fi
20310     fi
20311 else
20312         pkg_failed=untried
20313 fi
20314
20315
20316
20317 if test $pkg_failed = yes; then
20318
20319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20320         _pkg_short_errors_supported=yes
20321 else
20322         _pkg_short_errors_supported=no
20323 fi
20324         if test $_pkg_short_errors_supported = yes; then
20325                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
20326         else
20327                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
20328         fi
20329         # Put the nasty error message in config.log where it belongs
20330         echo "$FONTCONFIG_PKG_ERRORS" >&5
20331
20332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20333 $as_echo "no" >&6; }
20334                 :
20335 elif test $pkg_failed = untried; then
20336         :
20337 else
20338         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20339         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20341 $as_echo "yes" >&6; }
20342         have_fontconfig=true
20343 fi
20344 fi
20345 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20346         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20347 fi
20348 if $have_fontconfig; then
20349
20350 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20351
20352 fi
20353  if $have_fontconfig; then
20354   HAVE_FONTCONFIG_TRUE=
20355   HAVE_FONTCONFIG_FALSE='#'
20356 else
20357   HAVE_FONTCONFIG_TRUE='#'
20358   HAVE_FONTCONFIG_FALSE=
20359 fi
20360
20361
20362
20363
20364 # Check whether --with-icu was given.
20365 if test "${with_icu+set}" = set; then :
20366   withval=$with_icu;
20367 else
20368   with_icu=auto
20369 fi
20370
20371 have_icu=false
20372 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20373
20374 pkg_failed=no
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20376 $as_echo_n "checking for ICU... " >&6; }
20377
20378 if test -n "$PKG_CONFIG"; then
20379     if test -n "$ICU_CFLAGS"; then
20380         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20381     else
20382         if test -n "$PKG_CONFIG" && \
20383     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20384   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20385   ac_status=$?
20386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387   test $ac_status = 0; }; then
20388   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20389 else
20390   pkg_failed=yes
20391 fi
20392     fi
20393 else
20394         pkg_failed=untried
20395 fi
20396 if test -n "$PKG_CONFIG"; then
20397     if test -n "$ICU_LIBS"; then
20398         pkg_cv_ICU_LIBS="$ICU_LIBS"
20399     else
20400         if test -n "$PKG_CONFIG" && \
20401     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20402   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20403   ac_status=$?
20404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20405   test $ac_status = 0; }; then
20406   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20407 else
20408   pkg_failed=yes
20409 fi
20410     fi
20411 else
20412         pkg_failed=untried
20413 fi
20414
20415
20416
20417 if test $pkg_failed = yes; then
20418
20419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20420         _pkg_short_errors_supported=yes
20421 else
20422         _pkg_short_errors_supported=no
20423 fi
20424         if test $_pkg_short_errors_supported = yes; then
20425                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
20426         else
20427                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
20428         fi
20429         # Put the nasty error message in config.log where it belongs
20430         echo "$ICU_PKG_ERRORS" >&5
20431
20432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 $as_echo "no" >&6; }
20434                 :
20435 elif test $pkg_failed = untried; then
20436         :
20437 else
20438         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20439         ICU_LIBS=$pkg_cv_ICU_LIBS
20440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20441 $as_echo "yes" >&6; }
20442         have_icu=true
20443 fi
20444
20445                 if test "$have_icu" != "true"; then
20446                 if test -n "$ac_tool_prefix"; then
20447   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20448 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20450 $as_echo_n "checking for $ac_word... " >&6; }
20451 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20452   $as_echo_n "(cached) " >&6
20453 else
20454   if test -n "$ICU_CONFIG"; then
20455   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20456 else
20457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458 for as_dir in $PATH
20459 do
20460   IFS=$as_save_IFS
20461   test -z "$as_dir" && as_dir=.
20462     for ac_exec_ext in '' $ac_executable_extensions; do
20463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20464     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20466     break 2
20467   fi
20468 done
20469   done
20470 IFS=$as_save_IFS
20471
20472 fi
20473 fi
20474 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20475 if test -n "$ICU_CONFIG"; then
20476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20477 $as_echo "$ICU_CONFIG" >&6; }
20478 else
20479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480 $as_echo "no" >&6; }
20481 fi
20482
20483
20484 fi
20485 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20486   ac_ct_ICU_CONFIG=$ICU_CONFIG
20487   # Extract the first word of "icu-config", so it can be a program name with args.
20488 set dummy icu-config; ac_word=$2
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20490 $as_echo_n "checking for $ac_word... " >&6; }
20491 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20492   $as_echo_n "(cached) " >&6
20493 else
20494   if test -n "$ac_ct_ICU_CONFIG"; then
20495   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20496 else
20497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20498 for as_dir in $PATH
20499 do
20500   IFS=$as_save_IFS
20501   test -z "$as_dir" && as_dir=.
20502     for ac_exec_ext in '' $ac_executable_extensions; do
20503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20504     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20506     break 2
20507   fi
20508 done
20509   done
20510 IFS=$as_save_IFS
20511
20512 fi
20513 fi
20514 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20515 if test -n "$ac_ct_ICU_CONFIG"; then
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20517 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20518 else
20519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20520 $as_echo "no" >&6; }
20521 fi
20522
20523   if test "x$ac_ct_ICU_CONFIG" = x; then
20524     ICU_CONFIG="no"
20525   else
20526     case $cross_compiling:$ac_tool_warned in
20527 yes:)
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20530 ac_tool_warned=yes ;;
20531 esac
20532     ICU_CONFIG=$ac_ct_ICU_CONFIG
20533   fi
20534 else
20535   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20536 fi
20537
20538                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20539 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20540                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20541                         have_icu=true
20542                         # We don't use --cflags as this gives us a lot of things that we don't
20543                         # necessarily want, like debugging and optimization flags
20544                         # See man (1) icu-config for more info.
20545                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20546                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20547
20548
20549                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20550 $as_echo "yes" >&6; }
20551                 else
20552                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553 $as_echo "no" >&6; }
20554                 fi
20555         fi
20556 fi
20557 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20558         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20559 fi
20560
20561 if $have_icu; then
20562         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20563
20564 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20565
20566         if test "x$with_icu" = "xbuiltin"; then
20567
20568 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20569
20570         fi
20571 fi
20572  if $have_icu; then
20573   HAVE_ICU_TRUE=
20574   HAVE_ICU_FALSE='#'
20575 else
20576   HAVE_ICU_TRUE='#'
20577   HAVE_ICU_FALSE=
20578 fi
20579
20580  if $have_icu && test "x$with_icu" = "xbuiltin"; then
20581   HAVE_ICU_BUILTIN_TRUE=
20582   HAVE_ICU_BUILTIN_FALSE='#'
20583 else
20584   HAVE_ICU_BUILTIN_TRUE='#'
20585   HAVE_ICU_BUILTIN_FALSE=
20586 fi
20587
20588
20589
20590
20591 # Check whether --with-ucdn was given.
20592 if test "${with_ucdn+set}" = set; then :
20593   withval=$with_ucdn;
20594 else
20595   with_ucdn=yes
20596 fi
20597
20598 have_ucdn=false
20599 if test "x$with_ucdn" = "xyes"; then
20600         have_ucdn=true
20601 fi
20602 if $have_ucdn; then
20603
20604 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20605
20606 fi
20607  if $have_ucdn; then
20608   HAVE_UCDN_TRUE=
20609   HAVE_UCDN_FALSE='#'
20610 else
20611   HAVE_UCDN_TRUE='#'
20612   HAVE_UCDN_FALSE=
20613 fi
20614
20615
20616
20617
20618 # Check whether --with-graphite2 was given.
20619 if test "${with_graphite2+set}" = set; then :
20620   withval=$with_graphite2;
20621 else
20622   with_graphite2=no
20623 fi
20624
20625 have_graphite2=false
20626 GRAPHITE2_DEPS="graphite2"
20627
20628 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20629
20630 pkg_failed=no
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20632 $as_echo_n "checking for GRAPHITE2... " >&6; }
20633
20634 if test -n "$PKG_CONFIG"; then
20635     if test -n "$GRAPHITE2_CFLAGS"; then
20636         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20637     else
20638         if test -n "$PKG_CONFIG" && \
20639     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20640   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20641   ac_status=$?
20642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643   test $ac_status = 0; }; then
20644   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20645 else
20646   pkg_failed=yes
20647 fi
20648     fi
20649 else
20650         pkg_failed=untried
20651 fi
20652 if test -n "$PKG_CONFIG"; then
20653     if test -n "$GRAPHITE2_LIBS"; then
20654         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20655     else
20656         if test -n "$PKG_CONFIG" && \
20657     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20658   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20659   ac_status=$?
20660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20661   test $ac_status = 0; }; then
20662   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20663 else
20664   pkg_failed=yes
20665 fi
20666     fi
20667 else
20668         pkg_failed=untried
20669 fi
20670
20671
20672
20673 if test $pkg_failed = yes; then
20674
20675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20676         _pkg_short_errors_supported=yes
20677 else
20678         _pkg_short_errors_supported=no
20679 fi
20680         if test $_pkg_short_errors_supported = yes; then
20681                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20682         else
20683                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20684         fi
20685         # Put the nasty error message in config.log where it belongs
20686         echo "$GRAPHITE2_PKG_ERRORS" >&5
20687
20688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20690                 :
20691 elif test $pkg_failed = untried; then
20692         :
20693 else
20694         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20695         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20697 $as_echo "yes" >&6; }
20698         have_graphite2=true
20699 fi
20700         if test "x$have_graphite2" != "xtrue"; then
20701                 # If pkg-config is not available, graphite2 can still be there
20702                 ac_save_CFLAGS="$CFLAGS"
20703                 ac_save_CPPFLAGS="$CPPFLAGS"
20704                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20705                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20706                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20707 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20708   have_graphite2=true
20709 else
20710   :
20711 fi
20712
20713
20714                 CPPFLAGS="$ac_save_CPPFLAGS"
20715                 CFLAGS="$ac_save_CFLAGS"
20716         fi
20717 fi
20718 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20719         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20720 fi
20721 if $have_graphite2; then
20722
20723 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20724
20725 fi
20726  if $have_graphite2; then
20727   HAVE_GRAPHITE2_TRUE=
20728   HAVE_GRAPHITE2_FALSE='#'
20729 else
20730   HAVE_GRAPHITE2_TRUE='#'
20731   HAVE_GRAPHITE2_FALSE=
20732 fi
20733
20734
20735
20736
20737 # Check whether --with-freetype was given.
20738 if test "${with_freetype+set}" = set; then :
20739   withval=$with_freetype;
20740 else
20741   with_freetype=auto
20742 fi
20743
20744 have_freetype=false
20745 FREETYPE_DEPS="freetype2 >= 12.0.6"
20746
20747 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20748         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20749
20750 pkg_failed=no
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20752 $as_echo_n "checking for FREETYPE... " >&6; }
20753
20754 if test -n "$PKG_CONFIG"; then
20755     if test -n "$FREETYPE_CFLAGS"; then
20756         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20757     else
20758         if test -n "$PKG_CONFIG" && \
20759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20760   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20761   ac_status=$?
20762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763   test $ac_status = 0; }; then
20764   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20765 else
20766   pkg_failed=yes
20767 fi
20768     fi
20769 else
20770         pkg_failed=untried
20771 fi
20772 if test -n "$PKG_CONFIG"; then
20773     if test -n "$FREETYPE_LIBS"; then
20774         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20775     else
20776         if test -n "$PKG_CONFIG" && \
20777     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20778   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20779   ac_status=$?
20780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20781   test $ac_status = 0; }; then
20782   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20783 else
20784   pkg_failed=yes
20785 fi
20786     fi
20787 else
20788         pkg_failed=untried
20789 fi
20790
20791
20792
20793 if test $pkg_failed = yes; then
20794
20795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20796         _pkg_short_errors_supported=yes
20797 else
20798         _pkg_short_errors_supported=no
20799 fi
20800         if test $_pkg_short_errors_supported = yes; then
20801                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20802         else
20803                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20804         fi
20805         # Put the nasty error message in config.log where it belongs
20806         echo "$FREETYPE_PKG_ERRORS" >&5
20807
20808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809 $as_echo "no" >&6; }
20810                 :
20811 elif test $pkg_failed = untried; then
20812         :
20813 else
20814         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20815         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20817 $as_echo "yes" >&6; }
20818         have_freetype=true
20819 fi
20820 fi
20821 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20822         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20823 fi
20824 if $have_freetype; then
20825
20826 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20827
20828         save_libs=$LIBS
20829         LIBS="$LIBS $FREETYPE_LIBS"
20830         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20831 do :
20832   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20835   cat >>confdefs.h <<_ACEOF
20836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20837 _ACEOF
20838
20839 fi
20840 done
20841
20842         LIBS=$save_libs
20843 fi
20844  if $have_freetype; then
20845   HAVE_FREETYPE_TRUE=
20846   HAVE_FREETYPE_FALSE='#'
20847 else
20848   HAVE_FREETYPE_TRUE='#'
20849   HAVE_FREETYPE_FALSE=
20850 fi
20851
20852
20853
20854
20855 # Check whether --with-uniscribe was given.
20856 if test "${with_uniscribe+set}" = set; then :
20857   withval=$with_uniscribe;
20858 else
20859   with_uniscribe=no
20860 fi
20861
20862 have_uniscribe=false
20863 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20864         for ac_header in usp10.h windows.h
20865 do :
20866   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20869   cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20871 _ACEOF
20872  have_uniscribe=true
20873 fi
20874
20875 done
20876
20877 fi
20878 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20879         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20880 fi
20881 if $have_uniscribe; then
20882         UNISCRIBE_CFLAGS=
20883         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20884
20885
20886
20887 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20888
20889 fi
20890  if $have_uniscribe; then
20891   HAVE_UNISCRIBE_TRUE=
20892   HAVE_UNISCRIBE_FALSE='#'
20893 else
20894   HAVE_UNISCRIBE_TRUE='#'
20895   HAVE_UNISCRIBE_FALSE=
20896 fi
20897
20898
20899
20900
20901 # Check whether --with-directwrite was given.
20902 if test "${with_directwrite+set}" = set; then :
20903   withval=$with_directwrite;
20904 else
20905   with_directwrite=no
20906 fi
20907
20908 have_directwrite=false
20909 ac_ext=cpp
20910 ac_cpp='$CXXCPP $CPPFLAGS'
20911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20914
20915 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20916
20917 for ac_header in dwrite.h
20918 do :
20919   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20921   cat >>confdefs.h <<_ACEOF
20922 #define HAVE_DWRITE_H 1
20923 _ACEOF
20924  have_directwrite=true
20925 fi
20926
20927 done
20928
20929 fi
20930 ac_ext=c
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935
20936 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20937         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20938 fi
20939 if $have_directwrite; then
20940         DIRECTWRITE_CXXFLAGS=
20941         DIRECTWRITE_LIBS="-ldwrite"
20942
20943
20944
20945 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20946
20947 fi
20948  if $have_directwrite; then
20949   HAVE_DIRECTWRITE_TRUE=
20950   HAVE_DIRECTWRITE_FALSE='#'
20951 else
20952   HAVE_DIRECTWRITE_TRUE='#'
20953   HAVE_DIRECTWRITE_FALSE=
20954 fi
20955
20956
20957
20958
20959 # Check whether --with-coretext was given.
20960 if test "${with_coretext+set}" = set; then :
20961   withval=$with_coretext;
20962 else
20963   with_coretext=no
20964 fi
20965
20966 have_coretext=false
20967 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20968         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20969 "
20970 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20971   have_coretext=true
20972 fi
20973
20974
20975         if $have_coretext; then
20976                 CORETEXT_CFLAGS=
20977                 CORETEXT_LIBS="-framework ApplicationServices"
20978
20979
20980         else
20981                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20982                 if test "x$have_coretext" != "xtrue"; then
20983                         # Check for a different symbol to avoid getting cached result.
20984                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20985 "
20986 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20987   have_coretext=true
20988 fi
20989
20990                 fi
20991
20992                 if $have_coretext; then
20993                         CORETEXT_CFLAGS=
20994                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20995
20996
20997                 fi
20998         fi
20999 fi
21000 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21001         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21002 fi
21003 if $have_coretext; then
21004
21005 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21006
21007 fi
21008  if $have_coretext; then
21009   HAVE_CORETEXT_TRUE=
21010   HAVE_CORETEXT_FALSE='#'
21011 else
21012   HAVE_CORETEXT_TRUE='#'
21013   HAVE_CORETEXT_FALSE=
21014 fi
21015
21016
21017
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21019 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21020 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21021   $as_echo_n "(cached) " >&6
21022 else
21023
21024         hb_cv_have_intel_atomic_primitives=false
21025         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h.  */
21027
21028                 void memory_barrier (void) { __sync_synchronize (); }
21029                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21030                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21031                 void mutex_unlock (int *m) { __sync_lock_release (m); }
21032
21033 int
21034 main ()
21035 {
21036
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 if ac_fn_c_try_link "$LINENO"; then :
21042   hb_cv_have_intel_atomic_primitives=true
21043
21044 fi
21045 rm -f core conftest.err conftest.$ac_objext \
21046     conftest$ac_exeext conftest.$ac_ext
21047
21048 fi
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21050 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21051 if $hb_cv_have_intel_atomic_primitives; then
21052
21053 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21054
21055 fi
21056
21057
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21059 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21060 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21061   $as_echo_n "(cached) " >&6
21062 else
21063
21064         hb_cv_have_solaris_atomic_ops=false
21065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h.  */
21067
21068                 #include <atomic.h>
21069                 /* This requires Solaris Studio 12.2 or newer: */
21070                 #include <mbarrier.h>
21071                 void memory_barrier (void) { __machine_rw_barrier (); }
21072                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21073                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21074
21075 int
21076 main ()
21077 {
21078
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 if ac_fn_c_try_link "$LINENO"; then :
21084   hb_cv_have_solaris_atomic_ops=true
21085
21086 fi
21087 rm -f core conftest.err conftest.$ac_objext \
21088     conftest$ac_exeext conftest.$ac_ext
21089
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21092 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21093 if $hb_cv_have_solaris_atomic_ops; then
21094
21095 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21096
21097 fi
21098
21099 if test "$os_win32" = no && ! $have_pthread; then
21100         for ac_header in sched.h
21101 do :
21102   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21103 if test "x$ac_cv_header_sched_h" = xyes; then :
21104   cat >>confdefs.h <<_ACEOF
21105 #define HAVE_SCHED_H 1
21106 _ACEOF
21107
21108 fi
21109
21110 done
21111
21112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21113 $as_echo_n "checking for library containing sched_yield... " >&6; }
21114 if ${ac_cv_search_sched_yield+:} false; then :
21115   $as_echo_n "(cached) " >&6
21116 else
21117   ac_func_search_save_LIBS=$LIBS
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h.  */
21120
21121 /* Override any GCC internal prototype to avoid an error.
21122    Use char because int might match the return type of a GCC
21123    builtin and then its argument prototype would still apply.  */
21124 #ifdef __cplusplus
21125 extern "C"
21126 #endif
21127 char sched_yield ();
21128 int
21129 main ()
21130 {
21131 return sched_yield ();
21132   ;
21133   return 0;
21134 }
21135 _ACEOF
21136 for ac_lib in '' rt; do
21137   if test -z "$ac_lib"; then
21138     ac_res="none required"
21139   else
21140     ac_res=-l$ac_lib
21141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21142   fi
21143   if ac_fn_c_try_link "$LINENO"; then :
21144   ac_cv_search_sched_yield=$ac_res
21145 fi
21146 rm -f core conftest.err conftest.$ac_objext \
21147     conftest$ac_exeext
21148   if ${ac_cv_search_sched_yield+:} false; then :
21149   break
21150 fi
21151 done
21152 if ${ac_cv_search_sched_yield+:} false; then :
21153
21154 else
21155   ac_cv_search_sched_yield=no
21156 fi
21157 rm conftest.$ac_ext
21158 LIBS=$ac_func_search_save_LIBS
21159 fi
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21161 $as_echo "$ac_cv_search_sched_yield" >&6; }
21162 ac_res=$ac_cv_search_sched_yield
21163 if test "$ac_res" != no; then :
21164   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21165
21166 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21167
21168 fi
21169
21170 fi
21171
21172
21173 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21174
21175
21176 cat >confcache <<\_ACEOF
21177 # This file is a shell script that caches the results of configure
21178 # tests run on this system so they can be shared between configure
21179 # scripts and configure runs, see configure's option --config-cache.
21180 # It is not useful on other systems.  If it contains results you don't
21181 # want to keep, you may remove or edit it.
21182 #
21183 # config.status only pays attention to the cache file if you give it
21184 # the --recheck option to rerun configure.
21185 #
21186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21188 # following values.
21189
21190 _ACEOF
21191
21192 # The following way of writing the cache mishandles newlines in values,
21193 # but we know of no workaround that is simple, portable, and efficient.
21194 # So, we kill variables containing newlines.
21195 # Ultrix sh set writes to stderr and can't be redirected directly,
21196 # and sets the high bit in the cache file unless we assign to the vars.
21197 (
21198   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21199     eval ac_val=\$$ac_var
21200     case $ac_val in #(
21201     *${as_nl}*)
21202       case $ac_var in #(
21203       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21205       esac
21206       case $ac_var in #(
21207       _ | IFS | as_nl) ;; #(
21208       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21209       *) { eval $ac_var=; unset $ac_var;} ;;
21210       esac ;;
21211     esac
21212   done
21213
21214   (set) 2>&1 |
21215     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21216     *${as_nl}ac_space=\ *)
21217       # `set' does not quote correctly, so add quotes: double-quote
21218       # substitution turns \\\\ into \\, and sed turns \\ into \.
21219       sed -n \
21220         "s/'/'\\\\''/g;
21221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21222       ;; #(
21223     *)
21224       # `set' quotes correctly as required by POSIX, so do not add quotes.
21225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21226       ;;
21227     esac |
21228     sort
21229 ) |
21230   sed '
21231      /^ac_cv_env_/b end
21232      t clear
21233      :clear
21234      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21235      t end
21236      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21237      :end' >>confcache
21238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21239   if test -w "$cache_file"; then
21240     if test "x$cache_file" != "x/dev/null"; then
21241       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21242 $as_echo "$as_me: updating cache $cache_file" >&6;}
21243       if test ! -f "$cache_file" || test -h "$cache_file"; then
21244         cat confcache >"$cache_file"
21245       else
21246         case $cache_file in #(
21247         */* | ?:*)
21248           mv -f confcache "$cache_file"$$ &&
21249           mv -f "$cache_file"$$ "$cache_file" ;; #(
21250         *)
21251           mv -f confcache "$cache_file" ;;
21252         esac
21253       fi
21254     fi
21255   else
21256     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21257 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21258   fi
21259 fi
21260 rm -f confcache
21261
21262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21263 # Let make expand exec_prefix.
21264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21265
21266 DEFS=-DHAVE_CONFIG_H
21267
21268 ac_libobjs=
21269 ac_ltlibobjs=
21270 U=
21271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21272   # 1. Remove the extension, and $U if already installed.
21273   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21274   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21275   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21276   #    will be set to the directory where LIBOBJS objects are built.
21277   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21278   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21279 done
21280 LIBOBJS=$ac_libobjs
21281
21282 LTLIBOBJS=$ac_ltlibobjs
21283
21284
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21286 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21287    if test -n "$am_sleep_pid"; then
21288      # Hide warnings about reused PIDs.
21289      wait $am_sleep_pid 2>/dev/null
21290    fi
21291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21292 $as_echo "done" >&6; }
21293  if test -n "$EXEEXT"; then
21294   am__EXEEXT_TRUE=
21295   am__EXEEXT_FALSE='#'
21296 else
21297   am__EXEEXT_TRUE='#'
21298   am__EXEEXT_FALSE=
21299 fi
21300
21301 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21302   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21304 fi
21305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21306   as_fn_error $? "conditional \"AMDEP\" was never defined.
21307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21308 fi
21309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21310   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21312 fi
21313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21314   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21316 fi
21317 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21318   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21320 fi
21321 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21322   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21324 fi
21325 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21326   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21328 fi
21329 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21330   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21332 fi
21333 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21334   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21336 fi
21337 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21338   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21340 fi
21341 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21342   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21344 fi
21345 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21346   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21348 fi
21349 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21350   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21352 fi
21353 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21354   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21356 fi
21357 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21358   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21360 fi
21361 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
21362   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
21363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21364 fi
21365 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21366   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21368 fi
21369 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21370   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21372 fi
21373 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21374   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21376 fi
21377 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21378   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21380 fi
21381 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21382   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21384 fi
21385 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21386   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21388 fi
21389 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21390   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21392 fi
21393 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21394   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21396 fi
21397 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21398   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21400 fi
21401 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21402   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21404 fi
21405 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21406   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21408 fi
21409 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21410   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21412 fi
21413 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21414   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21416 fi
21417 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21418   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21420 fi
21421 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21422   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21424 fi
21425 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21426   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21428 fi
21429
21430 : "${CONFIG_STATUS=./config.status}"
21431 ac_write_fail=0
21432 ac_clean_files_save=$ac_clean_files
21433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21435 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21436 as_write_fail=0
21437 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21438 #! $SHELL
21439 # Generated by $as_me.
21440 # Run this file to recreate the current configuration.
21441 # Compiler output produced by configure, useful for debugging
21442 # configure, is in config.log if it exists.
21443
21444 debug=false
21445 ac_cs_recheck=false
21446 ac_cs_silent=false
21447
21448 SHELL=\${CONFIG_SHELL-$SHELL}
21449 export SHELL
21450 _ASEOF
21451 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21452 ## -------------------- ##
21453 ## M4sh Initialization. ##
21454 ## -------------------- ##
21455
21456 # Be more Bourne compatible
21457 DUALCASE=1; export DUALCASE # for MKS sh
21458 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21459   emulate sh
21460   NULLCMD=:
21461   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21462   # is contrary to our usage.  Disable this feature.
21463   alias -g '${1+"$@"}'='"$@"'
21464   setopt NO_GLOB_SUBST
21465 else
21466   case `(set -o) 2>/dev/null` in #(
21467   *posix*) :
21468     set -o posix ;; #(
21469   *) :
21470      ;;
21471 esac
21472 fi
21473
21474
21475 as_nl='
21476 '
21477 export as_nl
21478 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21479 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21480 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21482 # Prefer a ksh shell builtin over an external printf program on Solaris,
21483 # but without wasting forks for bash or zsh.
21484 if test -z "$BASH_VERSION$ZSH_VERSION" \
21485     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21486   as_echo='print -r --'
21487   as_echo_n='print -rn --'
21488 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21489   as_echo='printf %s\n'
21490   as_echo_n='printf %s'
21491 else
21492   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21493     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21494     as_echo_n='/usr/ucb/echo -n'
21495   else
21496     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21497     as_echo_n_body='eval
21498       arg=$1;
21499       case $arg in #(
21500       *"$as_nl"*)
21501         expr "X$arg" : "X\\(.*\\)$as_nl";
21502         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21503       esac;
21504       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21505     '
21506     export as_echo_n_body
21507     as_echo_n='sh -c $as_echo_n_body as_echo'
21508   fi
21509   export as_echo_body
21510   as_echo='sh -c $as_echo_body as_echo'
21511 fi
21512
21513 # The user is always right.
21514 if test "${PATH_SEPARATOR+set}" != set; then
21515   PATH_SEPARATOR=:
21516   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21517     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21518       PATH_SEPARATOR=';'
21519   }
21520 fi
21521
21522
21523 # IFS
21524 # We need space, tab and new line, in precisely that order.  Quoting is
21525 # there to prevent editors from complaining about space-tab.
21526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21527 # splitting by setting IFS to empty value.)
21528 IFS=" ""        $as_nl"
21529
21530 # Find who we are.  Look in the path if we contain no directory separator.
21531 as_myself=
21532 case $0 in #((
21533   *[\\/]* ) as_myself=$0 ;;
21534   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 for as_dir in $PATH
21536 do
21537   IFS=$as_save_IFS
21538   test -z "$as_dir" && as_dir=.
21539     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21540   done
21541 IFS=$as_save_IFS
21542
21543      ;;
21544 esac
21545 # We did not find ourselves, most probably we were run as `sh COMMAND'
21546 # in which case we are not to be found in the path.
21547 if test "x$as_myself" = x; then
21548   as_myself=$0
21549 fi
21550 if test ! -f "$as_myself"; then
21551   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21552   exit 1
21553 fi
21554
21555 # Unset variables that we do not need and which cause bugs (e.g. in
21556 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21557 # suppresses any "Segmentation fault" message there.  '((' could
21558 # trigger a bug in pdksh 5.2.14.
21559 for as_var in BASH_ENV ENV MAIL MAILPATH
21560 do eval test x\${$as_var+set} = xset \
21561   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21562 done
21563 PS1='$ '
21564 PS2='> '
21565 PS4='+ '
21566
21567 # NLS nuisances.
21568 LC_ALL=C
21569 export LC_ALL
21570 LANGUAGE=C
21571 export LANGUAGE
21572
21573 # CDPATH.
21574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21575
21576
21577 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21578 # ----------------------------------------
21579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21581 # script with STATUS, using 1 if that was 0.
21582 as_fn_error ()
21583 {
21584   as_status=$1; test $as_status -eq 0 && as_status=1
21585   if test "$4"; then
21586     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21587     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21588   fi
21589   $as_echo "$as_me: error: $2" >&2
21590   as_fn_exit $as_status
21591 } # as_fn_error
21592
21593
21594 # as_fn_set_status STATUS
21595 # -----------------------
21596 # Set $? to STATUS, without forking.
21597 as_fn_set_status ()
21598 {
21599   return $1
21600 } # as_fn_set_status
21601
21602 # as_fn_exit STATUS
21603 # -----------------
21604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21605 as_fn_exit ()
21606 {
21607   set +e
21608   as_fn_set_status $1
21609   exit $1
21610 } # as_fn_exit
21611
21612 # as_fn_unset VAR
21613 # ---------------
21614 # Portably unset VAR.
21615 as_fn_unset ()
21616 {
21617   { eval $1=; unset $1;}
21618 }
21619 as_unset=as_fn_unset
21620 # as_fn_append VAR VALUE
21621 # ----------------------
21622 # Append the text in VALUE to the end of the definition contained in VAR. Take
21623 # advantage of any shell optimizations that allow amortized linear growth over
21624 # repeated appends, instead of the typical quadratic growth present in naive
21625 # implementations.
21626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21627   eval 'as_fn_append ()
21628   {
21629     eval $1+=\$2
21630   }'
21631 else
21632   as_fn_append ()
21633   {
21634     eval $1=\$$1\$2
21635   }
21636 fi # as_fn_append
21637
21638 # as_fn_arith ARG...
21639 # ------------------
21640 # Perform arithmetic evaluation on the ARGs, and store the result in the
21641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21642 # must be portable across $(()) and expr.
21643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21644   eval 'as_fn_arith ()
21645   {
21646     as_val=$(( $* ))
21647   }'
21648 else
21649   as_fn_arith ()
21650   {
21651     as_val=`expr "$@" || test $? -eq 1`
21652   }
21653 fi # as_fn_arith
21654
21655
21656 if expr a : '\(a\)' >/dev/null 2>&1 &&
21657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21658   as_expr=expr
21659 else
21660   as_expr=false
21661 fi
21662
21663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21664   as_basename=basename
21665 else
21666   as_basename=false
21667 fi
21668
21669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21670   as_dirname=dirname
21671 else
21672   as_dirname=false
21673 fi
21674
21675 as_me=`$as_basename -- "$0" ||
21676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21677          X"$0" : 'X\(//\)$' \| \
21678          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21679 $as_echo X/"$0" |
21680     sed '/^.*\/\([^/][^/]*\)\/*$/{
21681             s//\1/
21682             q
21683           }
21684           /^X\/\(\/\/\)$/{
21685             s//\1/
21686             q
21687           }
21688           /^X\/\(\/\).*/{
21689             s//\1/
21690             q
21691           }
21692           s/.*/./; q'`
21693
21694 # Avoid depending upon Character Ranges.
21695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21698 as_cr_digits='0123456789'
21699 as_cr_alnum=$as_cr_Letters$as_cr_digits
21700
21701 ECHO_C= ECHO_N= ECHO_T=
21702 case `echo -n x` in #(((((
21703 -n*)
21704   case `echo 'xy\c'` in
21705   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21706   xy)  ECHO_C='\c';;
21707   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21708        ECHO_T=' ';;
21709   esac;;
21710 *)
21711   ECHO_N='-n';;
21712 esac
21713
21714 rm -f conf$$ conf$$.exe conf$$.file
21715 if test -d conf$$.dir; then
21716   rm -f conf$$.dir/conf$$.file
21717 else
21718   rm -f conf$$.dir
21719   mkdir conf$$.dir 2>/dev/null
21720 fi
21721 if (echo >conf$$.file) 2>/dev/null; then
21722   if ln -s conf$$.file conf$$ 2>/dev/null; then
21723     as_ln_s='ln -s'
21724     # ... but there are two gotchas:
21725     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21726     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21727     # In both cases, we have to default to `cp -pR'.
21728     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21729       as_ln_s='cp -pR'
21730   elif ln conf$$.file conf$$ 2>/dev/null; then
21731     as_ln_s=ln
21732   else
21733     as_ln_s='cp -pR'
21734   fi
21735 else
21736   as_ln_s='cp -pR'
21737 fi
21738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21739 rmdir conf$$.dir 2>/dev/null
21740
21741
21742 # as_fn_mkdir_p
21743 # -------------
21744 # Create "$as_dir" as a directory, including parents if necessary.
21745 as_fn_mkdir_p ()
21746 {
21747
21748   case $as_dir in #(
21749   -*) as_dir=./$as_dir;;
21750   esac
21751   test -d "$as_dir" || eval $as_mkdir_p || {
21752     as_dirs=
21753     while :; do
21754       case $as_dir in #(
21755       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21756       *) as_qdir=$as_dir;;
21757       esac
21758       as_dirs="'$as_qdir' $as_dirs"
21759       as_dir=`$as_dirname -- "$as_dir" ||
21760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21761          X"$as_dir" : 'X\(//\)[^/]' \| \
21762          X"$as_dir" : 'X\(//\)$' \| \
21763          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21764 $as_echo X"$as_dir" |
21765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21766             s//\1/
21767             q
21768           }
21769           /^X\(\/\/\)[^/].*/{
21770             s//\1/
21771             q
21772           }
21773           /^X\(\/\/\)$/{
21774             s//\1/
21775             q
21776           }
21777           /^X\(\/\).*/{
21778             s//\1/
21779             q
21780           }
21781           s/.*/./; q'`
21782       test -d "$as_dir" && break
21783     done
21784     test -z "$as_dirs" || eval "mkdir $as_dirs"
21785   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21786
21787
21788 } # as_fn_mkdir_p
21789 if mkdir -p . 2>/dev/null; then
21790   as_mkdir_p='mkdir -p "$as_dir"'
21791 else
21792   test -d ./-p && rmdir ./-p
21793   as_mkdir_p=false
21794 fi
21795
21796
21797 # as_fn_executable_p FILE
21798 # -----------------------
21799 # Test if FILE is an executable regular file.
21800 as_fn_executable_p ()
21801 {
21802   test -f "$1" && test -x "$1"
21803 } # as_fn_executable_p
21804 as_test_x='test -x'
21805 as_executable_p=as_fn_executable_p
21806
21807 # Sed expression to map a string onto a valid CPP name.
21808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21809
21810 # Sed expression to map a string onto a valid variable name.
21811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21812
21813
21814 exec 6>&1
21815 ## ----------------------------------- ##
21816 ## Main body of $CONFIG_STATUS script. ##
21817 ## ----------------------------------- ##
21818 _ASEOF
21819 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21820
21821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21822 # Save the log message, to keep $0 and so on meaningful, and to
21823 # report actual input values of CONFIG_FILES etc. instead of their
21824 # values after options handling.
21825 ac_log="
21826 This file was extended by HarfBuzz $as_me 1.8.1, which was
21827 generated by GNU Autoconf 2.69.  Invocation command line was
21828
21829   CONFIG_FILES    = $CONFIG_FILES
21830   CONFIG_HEADERS  = $CONFIG_HEADERS
21831   CONFIG_LINKS    = $CONFIG_LINKS
21832   CONFIG_COMMANDS = $CONFIG_COMMANDS
21833   $ $0 $@
21834
21835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21836 "
21837
21838 _ACEOF
21839
21840 case $ac_config_files in *"
21841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21842 esac
21843
21844 case $ac_config_headers in *"
21845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21846 esac
21847
21848
21849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21850 # Files that config.status was made for.
21851 config_files="$ac_config_files"
21852 config_headers="$ac_config_headers"
21853 config_commands="$ac_config_commands"
21854
21855 _ACEOF
21856
21857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21858 ac_cs_usage="\
21859 \`$as_me' instantiates files and other configuration actions
21860 from templates according to the current configuration.  Unless the files
21861 and actions are specified as TAGs, all are instantiated by default.
21862
21863 Usage: $0 [OPTION]... [TAG]...
21864
21865   -h, --help       print this help, then exit
21866   -V, --version    print version number and configuration settings, then exit
21867       --config     print configuration, then exit
21868   -q, --quiet, --silent
21869                    do not print progress messages
21870   -d, --debug      don't remove temporary files
21871       --recheck    update $as_me by reconfiguring in the same conditions
21872       --file=FILE[:TEMPLATE]
21873                    instantiate the configuration file FILE
21874       --header=FILE[:TEMPLATE]
21875                    instantiate the configuration header FILE
21876
21877 Configuration files:
21878 $config_files
21879
21880 Configuration headers:
21881 $config_headers
21882
21883 Configuration commands:
21884 $config_commands
21885
21886 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21887 HarfBuzz home page: <http://harfbuzz.org/>."
21888
21889 _ACEOF
21890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21891 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21892 ac_cs_version="\\
21893 HarfBuzz config.status 1.8.1
21894 configured by $0, generated by GNU Autoconf 2.69,
21895   with options \\"\$ac_cs_config\\"
21896
21897 Copyright (C) 2012 Free Software Foundation, Inc.
21898 This config.status script is free software; the Free Software Foundation
21899 gives unlimited permission to copy, distribute and modify it."
21900
21901 ac_pwd='$ac_pwd'
21902 srcdir='$srcdir'
21903 INSTALL='$INSTALL'
21904 MKDIR_P='$MKDIR_P'
21905 AWK='$AWK'
21906 test -n "\$AWK" || AWK=awk
21907 _ACEOF
21908
21909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21910 # The default lists apply if the user does not specify any file.
21911 ac_need_defaults=:
21912 while test $# != 0
21913 do
21914   case $1 in
21915   --*=?*)
21916     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21917     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21918     ac_shift=:
21919     ;;
21920   --*=)
21921     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21922     ac_optarg=
21923     ac_shift=:
21924     ;;
21925   *)
21926     ac_option=$1
21927     ac_optarg=$2
21928     ac_shift=shift
21929     ;;
21930   esac
21931
21932   case $ac_option in
21933   # Handling of the options.
21934   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21935     ac_cs_recheck=: ;;
21936   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21937     $as_echo "$ac_cs_version"; exit ;;
21938   --config | --confi | --conf | --con | --co | --c )
21939     $as_echo "$ac_cs_config"; exit ;;
21940   --debug | --debu | --deb | --de | --d | -d )
21941     debug=: ;;
21942   --file | --fil | --fi | --f )
21943     $ac_shift
21944     case $ac_optarg in
21945     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21946     '') as_fn_error $? "missing file argument" ;;
21947     esac
21948     as_fn_append CONFIG_FILES " '$ac_optarg'"
21949     ac_need_defaults=false;;
21950   --header | --heade | --head | --hea )
21951     $ac_shift
21952     case $ac_optarg in
21953     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21954     esac
21955     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21956     ac_need_defaults=false;;
21957   --he | --h)
21958     # Conflict between --help and --header
21959     as_fn_error $? "ambiguous option: \`$1'
21960 Try \`$0 --help' for more information.";;
21961   --help | --hel | -h )
21962     $as_echo "$ac_cs_usage"; exit ;;
21963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21964   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21965     ac_cs_silent=: ;;
21966
21967   # This is an error.
21968   -*) as_fn_error $? "unrecognized option: \`$1'
21969 Try \`$0 --help' for more information." ;;
21970
21971   *) as_fn_append ac_config_targets " $1"
21972      ac_need_defaults=false ;;
21973
21974   esac
21975   shift
21976 done
21977
21978 ac_configure_extra_args=
21979
21980 if $ac_cs_silent; then
21981   exec 6>/dev/null
21982   ac_configure_extra_args="$ac_configure_extra_args --silent"
21983 fi
21984
21985 _ACEOF
21986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987 if \$ac_cs_recheck; then
21988   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21989   shift
21990   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21991   CONFIG_SHELL='$SHELL'
21992   export CONFIG_SHELL
21993   exec "\$@"
21994 fi
21995
21996 _ACEOF
21997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21998 exec 5>>config.log
21999 {
22000   echo
22001   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22002 ## Running $as_me. ##
22003 _ASBOX
22004   $as_echo "$ac_log"
22005 } >&5
22006
22007 _ACEOF
22008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22009 #
22010 # INIT-COMMANDS
22011 #
22012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22013
22014
22015 # The HP-UX ksh and POSIX shell print the target directory to stdout
22016 # if CDPATH is set.
22017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22018
22019 sed_quote_subst='$sed_quote_subst'
22020 double_quote_subst='$double_quote_subst'
22021 delay_variable_subst='$delay_variable_subst'
22022 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22023 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22024 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22026 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22027 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22028 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22029 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22030 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22031 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22038 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22039 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22040 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22041 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22042 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22043 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22044 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22045 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22046 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22047 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22048 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22049 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22050 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22051 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22052 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22053 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22054 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22055 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22056 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22061 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22062 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22064 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22065 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22066 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22067 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22068 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22069 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22070 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22071 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22072 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22073 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22074 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22075 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22076 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22077 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22078 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22079 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22080 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"`'
22081 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22082 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22083 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22084 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22085 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22086 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22087 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22088 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22089 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22090 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22091 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22092 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22093 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22095 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22096 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22097 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22098 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22099 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22100 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22101 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22102 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22103 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22104 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22105 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22106 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22107 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22108 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22109 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22110 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22111 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22112 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22113 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22114 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22115 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22116 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22117 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22118 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22119 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22120 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22121 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22122 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22123 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22124 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22125 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22126 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22127 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22128 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22129 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22130 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22131 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22132 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22133 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22134 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22135 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22136 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22137 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22138 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22139 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22140 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22141 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22142 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22143 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22144 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22145 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22146 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22147 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22148 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22149 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22150 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22151 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22152 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22153 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22154 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22155 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22156 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22157 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22158 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22159 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22160 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22161 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22162 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22163 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22164 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22165 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22166 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22167 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22168 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22169 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22170 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22171 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22172 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22173 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22174 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22175 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22176 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22177 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22178 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22179 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22180 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22181 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22182 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22183 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22184 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22185 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22186 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22187 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22188 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22189 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22190 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22191 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22192 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22193 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22194 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22195 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22196 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22197 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22198 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22199 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22200 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22201 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22202 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22203 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22204 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22205 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22206 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22207 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22208 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22209 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22210 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22211
22212 LTCC='$LTCC'
22213 LTCFLAGS='$LTCFLAGS'
22214 compiler='$compiler_DEFAULT'
22215
22216 # A function that is used when there is no print builtin or printf.
22217 func_fallback_echo ()
22218 {
22219   eval 'cat <<_LTECHO_EOF
22220 \$1
22221 _LTECHO_EOF'
22222 }
22223
22224 # Quote evaled strings.
22225 for var in SHELL \
22226 ECHO \
22227 PATH_SEPARATOR \
22228 SED \
22229 GREP \
22230 EGREP \
22231 FGREP \
22232 LD \
22233 NM \
22234 LN_S \
22235 lt_SP2NL \
22236 lt_NL2SP \
22237 reload_flag \
22238 OBJDUMP \
22239 deplibs_check_method \
22240 file_magic_cmd \
22241 file_magic_glob \
22242 want_nocaseglob \
22243 DLLTOOL \
22244 sharedlib_from_linklib_cmd \
22245 AR \
22246 AR_FLAGS \
22247 archiver_list_spec \
22248 STRIP \
22249 RANLIB \
22250 CC \
22251 CFLAGS \
22252 compiler \
22253 lt_cv_sys_global_symbol_pipe \
22254 lt_cv_sys_global_symbol_to_cdecl \
22255 lt_cv_sys_global_symbol_to_import \
22256 lt_cv_sys_global_symbol_to_c_name_address \
22257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22258 lt_cv_nm_interface \
22259 nm_file_list_spec \
22260 lt_cv_truncate_bin \
22261 lt_prog_compiler_no_builtin_flag \
22262 lt_prog_compiler_pic \
22263 lt_prog_compiler_wl \
22264 lt_prog_compiler_static \
22265 lt_cv_prog_compiler_c_o \
22266 need_locks \
22267 MANIFEST_TOOL \
22268 DSYMUTIL \
22269 NMEDIT \
22270 LIPO \
22271 OTOOL \
22272 OTOOL64 \
22273 shrext_cmds \
22274 export_dynamic_flag_spec \
22275 whole_archive_flag_spec \
22276 compiler_needs_object \
22277 with_gnu_ld \
22278 allow_undefined_flag \
22279 no_undefined_flag \
22280 hardcode_libdir_flag_spec \
22281 hardcode_libdir_separator \
22282 exclude_expsyms \
22283 include_expsyms \
22284 file_list_spec \
22285 variables_saved_for_relink \
22286 libname_spec \
22287 library_names_spec \
22288 soname_spec \
22289 install_override_mode \
22290 finish_eval \
22291 old_striplib \
22292 striplib \
22293 compiler_lib_search_dirs \
22294 predep_objects \
22295 postdep_objects \
22296 predeps \
22297 postdeps \
22298 compiler_lib_search_path \
22299 LD_CXX \
22300 reload_flag_CXX \
22301 compiler_CXX \
22302 lt_prog_compiler_no_builtin_flag_CXX \
22303 lt_prog_compiler_pic_CXX \
22304 lt_prog_compiler_wl_CXX \
22305 lt_prog_compiler_static_CXX \
22306 lt_cv_prog_compiler_c_o_CXX \
22307 export_dynamic_flag_spec_CXX \
22308 whole_archive_flag_spec_CXX \
22309 compiler_needs_object_CXX \
22310 with_gnu_ld_CXX \
22311 allow_undefined_flag_CXX \
22312 no_undefined_flag_CXX \
22313 hardcode_libdir_flag_spec_CXX \
22314 hardcode_libdir_separator_CXX \
22315 exclude_expsyms_CXX \
22316 include_expsyms_CXX \
22317 file_list_spec_CXX \
22318 compiler_lib_search_dirs_CXX \
22319 predep_objects_CXX \
22320 postdep_objects_CXX \
22321 predeps_CXX \
22322 postdeps_CXX \
22323 compiler_lib_search_path_CXX; do
22324     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22325     *[\\\\\\\`\\"\\\$]*)
22326       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22327       ;;
22328     *)
22329       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22330       ;;
22331     esac
22332 done
22333
22334 # Double-quote double-evaled strings.
22335 for var in reload_cmds \
22336 old_postinstall_cmds \
22337 old_postuninstall_cmds \
22338 old_archive_cmds \
22339 extract_expsyms_cmds \
22340 old_archive_from_new_cmds \
22341 old_archive_from_expsyms_cmds \
22342 archive_cmds \
22343 archive_expsym_cmds \
22344 module_cmds \
22345 module_expsym_cmds \
22346 export_symbols_cmds \
22347 prelink_cmds \
22348 postlink_cmds \
22349 postinstall_cmds \
22350 postuninstall_cmds \
22351 finish_cmds \
22352 sys_lib_search_path_spec \
22353 configure_time_dlsearch_path \
22354 configure_time_lt_sys_library_path \
22355 reload_cmds_CXX \
22356 old_archive_cmds_CXX \
22357 old_archive_from_new_cmds_CXX \
22358 old_archive_from_expsyms_cmds_CXX \
22359 archive_cmds_CXX \
22360 archive_expsym_cmds_CXX \
22361 module_cmds_CXX \
22362 module_expsym_cmds_CXX \
22363 export_symbols_cmds_CXX \
22364 prelink_cmds_CXX \
22365 postlink_cmds_CXX; do
22366     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22367     *[\\\\\\\`\\"\\\$]*)
22368       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22369       ;;
22370     *)
22371       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22372       ;;
22373     esac
22374 done
22375
22376 ac_aux_dir='$ac_aux_dir'
22377
22378 # See if we are running on zsh, and set the options that allow our
22379 # commands through without removal of \ escapes INIT.
22380 if test -n "\${ZSH_VERSION+set}"; then
22381    setopt NO_GLOB_SUBST
22382 fi
22383
22384
22385     PACKAGE='$PACKAGE'
22386     VERSION='$VERSION'
22387     RM='$RM'
22388     ofile='$ofile'
22389
22390
22391
22392
22393
22394
22395 _ACEOF
22396
22397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22398
22399 # Handling of arguments.
22400 for ac_config_target in $ac_config_targets
22401 do
22402   case $ac_config_target in
22403     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22404     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22405     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22406     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22407     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22408     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22409     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22410     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22411     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22412     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22413     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22414     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22415     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22416     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22417     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22418     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22419     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22420     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22421     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22422
22423   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22424   esac
22425 done
22426
22427
22428 # If the user did not use the arguments to specify the items to instantiate,
22429 # then the envvar interface is used.  Set only those that are not.
22430 # We use the long form for the default assignment because of an extremely
22431 # bizarre bug on SunOS 4.1.3.
22432 if $ac_need_defaults; then
22433   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22434   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22435   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22436 fi
22437
22438 # Have a temporary directory for convenience.  Make it in the build tree
22439 # simply because there is no reason against having it here, and in addition,
22440 # creating and moving files from /tmp can sometimes cause problems.
22441 # Hook for its removal unless debugging.
22442 # Note that there is a small window in which the directory will not be cleaned:
22443 # after its creation but before its name has been assigned to `$tmp'.
22444 $debug ||
22445 {
22446   tmp= ac_tmp=
22447   trap 'exit_status=$?
22448   : "${ac_tmp:=$tmp}"
22449   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22450 ' 0
22451   trap 'as_fn_exit 1' 1 2 13 15
22452 }
22453 # Create a (secure) tmp directory for tmp files.
22454
22455 {
22456   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22457   test -d "$tmp"
22458 }  ||
22459 {
22460   tmp=./conf$$-$RANDOM
22461   (umask 077 && mkdir "$tmp")
22462 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22463 ac_tmp=$tmp
22464
22465 # Set up the scripts for CONFIG_FILES section.
22466 # No need to generate them if there are no CONFIG_FILES.
22467 # This happens for instance with `./config.status config.h'.
22468 if test -n "$CONFIG_FILES"; then
22469
22470
22471 ac_cr=`echo X | tr X '\015'`
22472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22473 # But we know of no other shell where ac_cr would be empty at this
22474 # point, so we can use a bashism as a fallback.
22475 if test "x$ac_cr" = x; then
22476   eval ac_cr=\$\'\\r\'
22477 fi
22478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22480   ac_cs_awk_cr='\\r'
22481 else
22482   ac_cs_awk_cr=$ac_cr
22483 fi
22484
22485 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22486 _ACEOF
22487
22488
22489 {
22490   echo "cat >conf$$subs.awk <<_ACEOF" &&
22491   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22492   echo "_ACEOF"
22493 } >conf$$subs.sh ||
22494   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22496 ac_delim='%!_!# '
22497 for ac_last_try in false false false false false :; do
22498   . ./conf$$subs.sh ||
22499     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22500
22501   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22502   if test $ac_delim_n = $ac_delim_num; then
22503     break
22504   elif $ac_last_try; then
22505     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22506   else
22507     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22508   fi
22509 done
22510 rm -f conf$$subs.sh
22511
22512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22514 _ACEOF
22515 sed -n '
22516 h
22517 s/^/S["/; s/!.*/"]=/
22518 p
22519 g
22520 s/^[^!]*!//
22521 :repl
22522 t repl
22523 s/'"$ac_delim"'$//
22524 t delim
22525 :nl
22526 h
22527 s/\(.\{148\}\)..*/\1/
22528 t more1
22529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22530 p
22531 n
22532 b repl
22533 :more1
22534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22535 p
22536 g
22537 s/.\{148\}//
22538 t nl
22539 :delim
22540 h
22541 s/\(.\{148\}\)..*/\1/
22542 t more2
22543 s/["\\]/\\&/g; s/^/"/; s/$/"/
22544 p
22545 b
22546 :more2
22547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22548 p
22549 g
22550 s/.\{148\}//
22551 t delim
22552 ' <conf$$subs.awk | sed '
22553 /^[^""]/{
22554   N
22555   s/\n//
22556 }
22557 ' >>$CONFIG_STATUS || ac_write_fail=1
22558 rm -f conf$$subs.awk
22559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22560 _ACAWK
22561 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22562   for (key in S) S_is_set[key] = 1
22563   FS = "\a"
22564
22565 }
22566 {
22567   line = $ 0
22568   nfields = split(line, field, "@")
22569   substed = 0
22570   len = length(field[1])
22571   for (i = 2; i < nfields; i++) {
22572     key = field[i]
22573     keylen = length(key)
22574     if (S_is_set[key]) {
22575       value = S[key]
22576       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22577       len += length(value) + length(field[++i])
22578       substed = 1
22579     } else
22580       len += 1 + keylen
22581   }
22582
22583   print line
22584 }
22585
22586 _ACAWK
22587 _ACEOF
22588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22590   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22591 else
22592   cat
22593 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22594   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22595 _ACEOF
22596
22597 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22598 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22599 # trailing colons and then remove the whole line if VPATH becomes empty
22600 # (actually we leave an empty line to preserve line numbers).
22601 if test "x$srcdir" = x.; then
22602   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22603 h
22604 s///
22605 s/^/:/
22606 s/[      ]*$/:/
22607 s/:\$(srcdir):/:/g
22608 s/:\${srcdir}:/:/g
22609 s/:@srcdir@:/:/g
22610 s/^:*//
22611 s/:*$//
22612 x
22613 s/\(=[   ]*\).*/\1/
22614 G
22615 s/\n//
22616 s/^[^=]*=[       ]*$//
22617 }'
22618 fi
22619
22620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22621 fi # test -n "$CONFIG_FILES"
22622
22623 # Set up the scripts for CONFIG_HEADERS section.
22624 # No need to generate them if there are no CONFIG_HEADERS.
22625 # This happens for instance with `./config.status Makefile'.
22626 if test -n "$CONFIG_HEADERS"; then
22627 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22628 BEGIN {
22629 _ACEOF
22630
22631 # Transform confdefs.h into an awk script `defines.awk', embedded as
22632 # here-document in config.status, that substitutes the proper values into
22633 # config.h.in to produce config.h.
22634
22635 # Create a delimiter string that does not exist in confdefs.h, to ease
22636 # handling of long lines.
22637 ac_delim='%!_!# '
22638 for ac_last_try in false false :; do
22639   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22640   if test -z "$ac_tt"; then
22641     break
22642   elif $ac_last_try; then
22643     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22644   else
22645     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22646   fi
22647 done
22648
22649 # For the awk script, D is an array of macro values keyed by name,
22650 # likewise P contains macro parameters if any.  Preserve backslash
22651 # newline sequences.
22652
22653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22654 sed -n '
22655 s/.\{148\}/&'"$ac_delim"'/g
22656 t rset
22657 :rset
22658 s/^[     ]*#[    ]*define[       ][      ]*/ /
22659 t def
22660 d
22661 :def
22662 s/\\$//
22663 t bsnl
22664 s/["\\]/\\&/g
22665 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22666 D["\1"]=" \3"/p
22667 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22668 d
22669 :bsnl
22670 s/["\\]/\\&/g
22671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22672 D["\1"]=" \3\\\\\\n"\\/p
22673 t cont
22674 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22675 t cont
22676 d
22677 :cont
22678 n
22679 s/.\{148\}/&'"$ac_delim"'/g
22680 t clear
22681 :clear
22682 s/\\$//
22683 t bsnlc
22684 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22685 d
22686 :bsnlc
22687 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22688 b cont
22689 ' <confdefs.h | sed '
22690 s/'"$ac_delim"'/"\\\
22691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22692
22693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22694   for (key in D) D_is_set[key] = 1
22695   FS = "\a"
22696 }
22697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22698   line = \$ 0
22699   split(line, arg, " ")
22700   if (arg[1] == "#") {
22701     defundef = arg[2]
22702     mac1 = arg[3]
22703   } else {
22704     defundef = substr(arg[1], 2)
22705     mac1 = arg[2]
22706   }
22707   split(mac1, mac2, "(") #)
22708   macro = mac2[1]
22709   prefix = substr(line, 1, index(line, defundef) - 1)
22710   if (D_is_set[macro]) {
22711     # Preserve the white space surrounding the "#".
22712     print prefix "define", macro P[macro] D[macro]
22713     next
22714   } else {
22715     # Replace #undef with comments.  This is necessary, for example,
22716     # in the case of _POSIX_SOURCE, which is predefined and required
22717     # on some systems where configure will not decide to define it.
22718     if (defundef == "undef") {
22719       print "/*", prefix defundef, macro, "*/"
22720       next
22721     }
22722   }
22723 }
22724 { print }
22725 _ACAWK
22726 _ACEOF
22727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22728   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22729 fi # test -n "$CONFIG_HEADERS"
22730
22731
22732 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22733 shift
22734 for ac_tag
22735 do
22736   case $ac_tag in
22737   :[FHLC]) ac_mode=$ac_tag; continue;;
22738   esac
22739   case $ac_mode$ac_tag in
22740   :[FHL]*:*);;
22741   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22742   :[FH]-) ac_tag=-:-;;
22743   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22744   esac
22745   ac_save_IFS=$IFS
22746   IFS=:
22747   set x $ac_tag
22748   IFS=$ac_save_IFS
22749   shift
22750   ac_file=$1
22751   shift
22752
22753   case $ac_mode in
22754   :L) ac_source=$1;;
22755   :[FH])
22756     ac_file_inputs=
22757     for ac_f
22758     do
22759       case $ac_f in
22760       -) ac_f="$ac_tmp/stdin";;
22761       *) # Look for the file first in the build tree, then in the source tree
22762          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22763          # because $ac_f cannot contain `:'.
22764          test -f "$ac_f" ||
22765            case $ac_f in
22766            [\\/$]*) false;;
22767            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22768            esac ||
22769            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22770       esac
22771       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22772       as_fn_append ac_file_inputs " '$ac_f'"
22773     done
22774
22775     # Let's still pretend it is `configure' which instantiates (i.e., don't
22776     # use $as_me), people would be surprised to read:
22777     #    /* config.h.  Generated by config.status.  */
22778     configure_input='Generated from '`
22779           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22780         `' by configure.'
22781     if test x"$ac_file" != x-; then
22782       configure_input="$ac_file.  $configure_input"
22783       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22784 $as_echo "$as_me: creating $ac_file" >&6;}
22785     fi
22786     # Neutralize special characters interpreted by sed in replacement strings.
22787     case $configure_input in #(
22788     *\&* | *\|* | *\\* )
22789        ac_sed_conf_input=`$as_echo "$configure_input" |
22790        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22791     *) ac_sed_conf_input=$configure_input;;
22792     esac
22793
22794     case $ac_tag in
22795     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22796       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22797     esac
22798     ;;
22799   esac
22800
22801   ac_dir=`$as_dirname -- "$ac_file" ||
22802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22803          X"$ac_file" : 'X\(//\)[^/]' \| \
22804          X"$ac_file" : 'X\(//\)$' \| \
22805          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22806 $as_echo X"$ac_file" |
22807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22808             s//\1/
22809             q
22810           }
22811           /^X\(\/\/\)[^/].*/{
22812             s//\1/
22813             q
22814           }
22815           /^X\(\/\/\)$/{
22816             s//\1/
22817             q
22818           }
22819           /^X\(\/\).*/{
22820             s//\1/
22821             q
22822           }
22823           s/.*/./; q'`
22824   as_dir="$ac_dir"; as_fn_mkdir_p
22825   ac_builddir=.
22826
22827 case "$ac_dir" in
22828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22829 *)
22830   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22831   # A ".." for each directory in $ac_dir_suffix.
22832   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22833   case $ac_top_builddir_sub in
22834   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22835   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22836   esac ;;
22837 esac
22838 ac_abs_top_builddir=$ac_pwd
22839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22840 # for backward compatibility:
22841 ac_top_builddir=$ac_top_build_prefix
22842
22843 case $srcdir in
22844   .)  # We are building in place.
22845     ac_srcdir=.
22846     ac_top_srcdir=$ac_top_builddir_sub
22847     ac_abs_top_srcdir=$ac_pwd ;;
22848   [\\/]* | ?:[\\/]* )  # Absolute name.
22849     ac_srcdir=$srcdir$ac_dir_suffix;
22850     ac_top_srcdir=$srcdir
22851     ac_abs_top_srcdir=$srcdir ;;
22852   *) # Relative name.
22853     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22854     ac_top_srcdir=$ac_top_build_prefix$srcdir
22855     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22856 esac
22857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22858
22859
22860   case $ac_mode in
22861   :F)
22862   #
22863   # CONFIG_FILE
22864   #
22865
22866   case $INSTALL in
22867   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22868   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22869   esac
22870   ac_MKDIR_P=$MKDIR_P
22871   case $MKDIR_P in
22872   [\\/$]* | ?:[\\/]* ) ;;
22873   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22874   esac
22875 _ACEOF
22876
22877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22878 # If the template does not know about datarootdir, expand it.
22879 # FIXME: This hack should be removed a few years after 2.60.
22880 ac_datarootdir_hack=; ac_datarootdir_seen=
22881 ac_sed_dataroot='
22882 /datarootdir/ {
22883   p
22884   q
22885 }
22886 /@datadir@/p
22887 /@docdir@/p
22888 /@infodir@/p
22889 /@localedir@/p
22890 /@mandir@/p'
22891 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22892 *datarootdir*) ac_datarootdir_seen=yes;;
22893 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22894   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22895 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22896 _ACEOF
22897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22898   ac_datarootdir_hack='
22899   s&@datadir@&$datadir&g
22900   s&@docdir@&$docdir&g
22901   s&@infodir@&$infodir&g
22902   s&@localedir@&$localedir&g
22903   s&@mandir@&$mandir&g
22904   s&\\\${datarootdir}&$datarootdir&g' ;;
22905 esac
22906 _ACEOF
22907
22908 # Neutralize VPATH when `$srcdir' = `.'.
22909 # Shell code in configure.ac might set extrasub.
22910 # FIXME: do we really want to maintain this feature?
22911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912 ac_sed_extra="$ac_vpsub
22913 $extrasub
22914 _ACEOF
22915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22916 :t
22917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22918 s|@configure_input@|$ac_sed_conf_input|;t t
22919 s&@top_builddir@&$ac_top_builddir_sub&;t t
22920 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22921 s&@srcdir@&$ac_srcdir&;t t
22922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22923 s&@top_srcdir@&$ac_top_srcdir&;t t
22924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22925 s&@builddir@&$ac_builddir&;t t
22926 s&@abs_builddir@&$ac_abs_builddir&;t t
22927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22928 s&@INSTALL@&$ac_INSTALL&;t t
22929 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22930 $ac_datarootdir_hack
22931 "
22932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22933   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22934
22935 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22936   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22937   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22938       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22940 which seems to be undefined.  Please make sure it is defined" >&5
22941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22942 which seems to be undefined.  Please make sure it is defined" >&2;}
22943
22944   rm -f "$ac_tmp/stdin"
22945   case $ac_file in
22946   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22947   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22948   esac \
22949   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22950  ;;
22951   :H)
22952   #
22953   # CONFIG_HEADER
22954   #
22955   if test x"$ac_file" != x-; then
22956     {
22957       $as_echo "/* $configure_input  */" \
22958       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22959     } >"$ac_tmp/config.h" \
22960       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22961     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22962       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22963 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22964     else
22965       rm -f "$ac_file"
22966       mv "$ac_tmp/config.h" "$ac_file" \
22967         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22968     fi
22969   else
22970     $as_echo "/* $configure_input  */" \
22971       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22972       || as_fn_error $? "could not create -" "$LINENO" 5
22973   fi
22974 # Compute "$ac_file"'s index in $config_headers.
22975 _am_arg="$ac_file"
22976 _am_stamp_count=1
22977 for _am_header in $config_headers :; do
22978   case $_am_header in
22979     $_am_arg | $_am_arg:* )
22980       break ;;
22981     * )
22982       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22983   esac
22984 done
22985 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22986 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22987          X"$_am_arg" : 'X\(//\)[^/]' \| \
22988          X"$_am_arg" : 'X\(//\)$' \| \
22989          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22990 $as_echo X"$_am_arg" |
22991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22992             s//\1/
22993             q
22994           }
22995           /^X\(\/\/\)[^/].*/{
22996             s//\1/
22997             q
22998           }
22999           /^X\(\/\/\)$/{
23000             s//\1/
23001             q
23002           }
23003           /^X\(\/\).*/{
23004             s//\1/
23005             q
23006           }
23007           s/.*/./; q'`/stamp-h$_am_stamp_count
23008  ;;
23009
23010   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23011 $as_echo "$as_me: executing $ac_file commands" >&6;}
23012  ;;
23013   esac
23014
23015
23016   case $ac_file$ac_mode in
23017     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23018   # Older Autoconf quotes --file arguments for eval, but not when files
23019   # are listed without --file.  Let's play safe and only enable the eval
23020   # if we detect the quoting.
23021   case $CONFIG_FILES in
23022   *\'*) eval set x "$CONFIG_FILES" ;;
23023   *)   set x $CONFIG_FILES ;;
23024   esac
23025   shift
23026   for mf
23027   do
23028     # Strip MF so we end up with the name of the file.
23029     mf=`echo "$mf" | sed -e 's/:.*$//'`
23030     # Check whether this is an Automake generated Makefile or not.
23031     # We used to match only the files named 'Makefile.in', but
23032     # some people rename them; so instead we look at the file content.
23033     # Grep'ing the first line is not enough: some people post-process
23034     # each Makefile.in and add a new line on top of each file to say so.
23035     # Grep'ing the whole file is not good either: AIX grep has a line
23036     # limit of 2048, but all sed's we know have understand at least 4000.
23037     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23038       dirpart=`$as_dirname -- "$mf" ||
23039 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040          X"$mf" : 'X\(//\)[^/]' \| \
23041          X"$mf" : 'X\(//\)$' \| \
23042          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23043 $as_echo X"$mf" |
23044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23045             s//\1/
23046             q
23047           }
23048           /^X\(\/\/\)[^/].*/{
23049             s//\1/
23050             q
23051           }
23052           /^X\(\/\/\)$/{
23053             s//\1/
23054             q
23055           }
23056           /^X\(\/\).*/{
23057             s//\1/
23058             q
23059           }
23060           s/.*/./; q'`
23061     else
23062       continue
23063     fi
23064     # Extract the definition of DEPDIR, am__include, and am__quote
23065     # from the Makefile without running 'make'.
23066     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23067     test -z "$DEPDIR" && continue
23068     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23069     test -z "$am__include" && continue
23070     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23071     # Find all dependency output files, they are included files with
23072     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23073     # simplest approach to changing $(DEPDIR) to its actual value in the
23074     # expansion.
23075     for file in `sed -n "
23076       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23077          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23078       # Make sure the directory exists.
23079       test -f "$dirpart/$file" && continue
23080       fdir=`$as_dirname -- "$file" ||
23081 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23082          X"$file" : 'X\(//\)[^/]' \| \
23083          X"$file" : 'X\(//\)$' \| \
23084          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23085 $as_echo X"$file" |
23086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23087             s//\1/
23088             q
23089           }
23090           /^X\(\/\/\)[^/].*/{
23091             s//\1/
23092             q
23093           }
23094           /^X\(\/\/\)$/{
23095             s//\1/
23096             q
23097           }
23098           /^X\(\/\).*/{
23099             s//\1/
23100             q
23101           }
23102           s/.*/./; q'`
23103       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23104       # echo "creating $dirpart/$file"
23105       echo '# dummy' > "$dirpart/$file"
23106     done
23107   done
23108 }
23109  ;;
23110     "libtool":C)
23111
23112     # See if we are running on zsh, and set the options that allow our
23113     # commands through without removal of \ escapes.
23114     if test -n "${ZSH_VERSION+set}"; then
23115       setopt NO_GLOB_SUBST
23116     fi
23117
23118     cfgfile=${ofile}T
23119     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23120     $RM "$cfgfile"
23121
23122     cat <<_LT_EOF >> "$cfgfile"
23123 #! $SHELL
23124 # Generated automatically by $as_me ($PACKAGE) $VERSION
23125 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23126
23127 # Provide generalized library-building support services.
23128 # Written by Gordon Matzigkeit, 1996
23129
23130 # Copyright (C) 2014 Free Software Foundation, Inc.
23131 # This is free software; see the source for copying conditions.  There is NO
23132 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23133
23134 # GNU Libtool is free software; you can redistribute it and/or modify
23135 # it under the terms of the GNU General Public License as published by
23136 # the Free Software Foundation; either version 2 of of the License, or
23137 # (at your option) any later version.
23138 #
23139 # As a special exception to the GNU General Public License, if you
23140 # distribute this file as part of a program or library that is built
23141 # using GNU Libtool, you may include this file under the  same
23142 # distribution terms that you use for the rest of that program.
23143 #
23144 # GNU Libtool is distributed in the hope that it will be useful, but
23145 # WITHOUT ANY WARRANTY; without even the implied warranty of
23146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23147 # GNU General Public License for more details.
23148 #
23149 # You should have received a copy of the GNU General Public License
23150 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23151
23152
23153 # The names of the tagged configurations supported by this script.
23154 available_tags='CXX '
23155
23156 # Configured defaults for sys_lib_dlsearch_path munging.
23157 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23158
23159 # ### BEGIN LIBTOOL CONFIG
23160
23161 # Which release of libtool.m4 was used?
23162 macro_version=$macro_version
23163 macro_revision=$macro_revision
23164
23165 # Whether or not to build static libraries.
23166 build_old_libs=$enable_static
23167
23168 # Whether or not to build shared libraries.
23169 build_libtool_libs=$enable_shared
23170
23171 # What type of objects to build.
23172 pic_mode=$pic_mode
23173
23174 # Whether or not to optimize for fast installation.
23175 fast_install=$enable_fast_install
23176
23177 # Shared archive member basename,for filename based shared library versioning on AIX.
23178 shared_archive_member_spec=$shared_archive_member_spec
23179
23180 # Shell to use when invoking shell scripts.
23181 SHELL=$lt_SHELL
23182
23183 # An echo program that protects backslashes.
23184 ECHO=$lt_ECHO
23185
23186 # The PATH separator for the build system.
23187 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23188
23189 # The host system.
23190 host_alias=$host_alias
23191 host=$host
23192 host_os=$host_os
23193
23194 # The build system.
23195 build_alias=$build_alias
23196 build=$build
23197 build_os=$build_os
23198
23199 # A sed program that does not truncate output.
23200 SED=$lt_SED
23201
23202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23203 Xsed="\$SED -e 1s/^X//"
23204
23205 # A grep program that handles long lines.
23206 GREP=$lt_GREP
23207
23208 # An ERE matcher.
23209 EGREP=$lt_EGREP
23210
23211 # A literal string matcher.
23212 FGREP=$lt_FGREP
23213
23214 # A BSD- or MS-compatible name lister.
23215 NM=$lt_NM
23216
23217 # Whether we need soft or hard links.
23218 LN_S=$lt_LN_S
23219
23220 # What is the maximum length of a command?
23221 max_cmd_len=$max_cmd_len
23222
23223 # Object file suffix (normally "o").
23224 objext=$ac_objext
23225
23226 # Executable file suffix (normally "").
23227 exeext=$exeext
23228
23229 # whether the shell understands "unset".
23230 lt_unset=$lt_unset
23231
23232 # turn spaces into newlines.
23233 SP2NL=$lt_lt_SP2NL
23234
23235 # turn newlines into spaces.
23236 NL2SP=$lt_lt_NL2SP
23237
23238 # convert \$build file names to \$host format.
23239 to_host_file_cmd=$lt_cv_to_host_file_cmd
23240
23241 # convert \$build files to toolchain format.
23242 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23243
23244 # An object symbol dumper.
23245 OBJDUMP=$lt_OBJDUMP
23246
23247 # Method to check whether dependent libraries are shared objects.
23248 deplibs_check_method=$lt_deplibs_check_method
23249
23250 # Command to use when deplibs_check_method = "file_magic".
23251 file_magic_cmd=$lt_file_magic_cmd
23252
23253 # How to find potential files when deplibs_check_method = "file_magic".
23254 file_magic_glob=$lt_file_magic_glob
23255
23256 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23257 want_nocaseglob=$lt_want_nocaseglob
23258
23259 # DLL creation program.
23260 DLLTOOL=$lt_DLLTOOL
23261
23262 # Command to associate shared and link libraries.
23263 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23264
23265 # The archiver.
23266 AR=$lt_AR
23267
23268 # Flags to create an archive.
23269 AR_FLAGS=$lt_AR_FLAGS
23270
23271 # How to feed a file listing to the archiver.
23272 archiver_list_spec=$lt_archiver_list_spec
23273
23274 # A symbol stripping program.
23275 STRIP=$lt_STRIP
23276
23277 # Commands used to install an old-style archive.
23278 RANLIB=$lt_RANLIB
23279 old_postinstall_cmds=$lt_old_postinstall_cmds
23280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23281
23282 # Whether to use a lock for old archive extraction.
23283 lock_old_archive_extraction=$lock_old_archive_extraction
23284
23285 # A C compiler.
23286 LTCC=$lt_CC
23287
23288 # LTCC compiler flags.
23289 LTCFLAGS=$lt_CFLAGS
23290
23291 # Take the output of nm and produce a listing of raw symbols and C names.
23292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23293
23294 # Transform the output of nm in a proper C declaration.
23295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23296
23297 # Transform the output of nm into a list of symbols to manually relocate.
23298 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23299
23300 # Transform the output of nm in a C name address pair.
23301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23302
23303 # Transform the output of nm in a C name address pair when lib prefix is needed.
23304 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23305
23306 # The name lister interface.
23307 nm_interface=$lt_lt_cv_nm_interface
23308
23309 # Specify filename containing input files for \$NM.
23310 nm_file_list_spec=$lt_nm_file_list_spec
23311
23312 # The root where to search for dependent libraries,and where our libraries should be installed.
23313 lt_sysroot=$lt_sysroot
23314
23315 # Command to truncate a binary pipe.
23316 lt_truncate_bin=$lt_lt_cv_truncate_bin
23317
23318 # The name of the directory that contains temporary libtool files.
23319 objdir=$objdir
23320
23321 # Used to examine libraries when file_magic_cmd begins with "file".
23322 MAGIC_CMD=$MAGIC_CMD
23323
23324 # Must we lock files when doing compilation?
23325 need_locks=$lt_need_locks
23326
23327 # Manifest tool.
23328 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23329
23330 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23331 DSYMUTIL=$lt_DSYMUTIL
23332
23333 # Tool to change global to local symbols on Mac OS X.
23334 NMEDIT=$lt_NMEDIT
23335
23336 # Tool to manipulate fat objects and archives on Mac OS X.
23337 LIPO=$lt_LIPO
23338
23339 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23340 OTOOL=$lt_OTOOL
23341
23342 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23343 OTOOL64=$lt_OTOOL64
23344
23345 # Old archive suffix (normally "a").
23346 libext=$libext
23347
23348 # Shared library suffix (normally ".so").
23349 shrext_cmds=$lt_shrext_cmds
23350
23351 # The commands to extract the exported symbol list from a shared archive.
23352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23353
23354 # Variables whose values should be saved in libtool wrapper scripts and
23355 # restored at link time.
23356 variables_saved_for_relink=$lt_variables_saved_for_relink
23357
23358 # Do we need the "lib" prefix for modules?
23359 need_lib_prefix=$need_lib_prefix
23360
23361 # Do we need a version for libraries?
23362 need_version=$need_version
23363
23364 # Library versioning type.
23365 version_type=$version_type
23366
23367 # Shared library runtime path variable.
23368 runpath_var=$runpath_var
23369
23370 # Shared library path variable.
23371 shlibpath_var=$shlibpath_var
23372
23373 # Is shlibpath searched before the hard-coded library search path?
23374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23375
23376 # Format of library name prefix.
23377 libname_spec=$lt_libname_spec
23378
23379 # List of archive names.  First name is the real one, the rest are links.
23380 # The last name is the one that the linker finds with -lNAME
23381 library_names_spec=$lt_library_names_spec
23382
23383 # The coded name of the library, if different from the real name.
23384 soname_spec=$lt_soname_spec
23385
23386 # Permission mode override for installation of shared libraries.
23387 install_override_mode=$lt_install_override_mode
23388
23389 # Command to use after installation of a shared archive.
23390 postinstall_cmds=$lt_postinstall_cmds
23391
23392 # Command to use after uninstallation of a shared archive.
23393 postuninstall_cmds=$lt_postuninstall_cmds
23394
23395 # Commands used to finish a libtool library installation in a directory.
23396 finish_cmds=$lt_finish_cmds
23397
23398 # As "finish_cmds", except a single script fragment to be evaled but
23399 # not shown.
23400 finish_eval=$lt_finish_eval
23401
23402 # Whether we should hardcode library paths into libraries.
23403 hardcode_into_libs=$hardcode_into_libs
23404
23405 # Compile-time system search path for libraries.
23406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23407
23408 # Detected run-time system search path for libraries.
23409 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23410
23411 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23412 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23413
23414 # Whether dlopen is supported.
23415 dlopen_support=$enable_dlopen
23416
23417 # Whether dlopen of programs is supported.
23418 dlopen_self=$enable_dlopen_self
23419
23420 # Whether dlopen of statically linked programs is supported.
23421 dlopen_self_static=$enable_dlopen_self_static
23422
23423 # Commands to strip libraries.
23424 old_striplib=$lt_old_striplib
23425 striplib=$lt_striplib
23426
23427
23428 # The linker used to build libraries.
23429 LD=$lt_LD
23430
23431 # How to create reloadable object files.
23432 reload_flag=$lt_reload_flag
23433 reload_cmds=$lt_reload_cmds
23434
23435 # Commands used to build an old-style archive.
23436 old_archive_cmds=$lt_old_archive_cmds
23437
23438 # A language specific compiler.
23439 CC=$lt_compiler
23440
23441 # Is the compiler the GNU compiler?
23442 with_gcc=$GCC
23443
23444 # Compiler flag to turn off builtin functions.
23445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23446
23447 # Additional compiler flags for building library objects.
23448 pic_flag=$lt_lt_prog_compiler_pic
23449
23450 # How to pass a linker flag through the compiler.
23451 wl=$lt_lt_prog_compiler_wl
23452
23453 # Compiler flag to prevent dynamic linking.
23454 link_static_flag=$lt_lt_prog_compiler_static
23455
23456 # Does compiler simultaneously support -c and -o options?
23457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23458
23459 # Whether or not to add -lc for building shared libraries.
23460 build_libtool_need_lc=$archive_cmds_need_lc
23461
23462 # Whether or not to disallow shared libs when runtime libs are static.
23463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23464
23465 # Compiler flag to allow reflexive dlopens.
23466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23467
23468 # Compiler flag to generate shared objects directly from archives.
23469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23470
23471 # Whether the compiler copes with passing no objects directly.
23472 compiler_needs_object=$lt_compiler_needs_object
23473
23474 # Create an old-style archive from a shared archive.
23475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23476
23477 # Create a temporary old-style archive to link instead of a shared archive.
23478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23479
23480 # Commands used to build a shared archive.
23481 archive_cmds=$lt_archive_cmds
23482 archive_expsym_cmds=$lt_archive_expsym_cmds
23483
23484 # Commands used to build a loadable module if different from building
23485 # a shared archive.
23486 module_cmds=$lt_module_cmds
23487 module_expsym_cmds=$lt_module_expsym_cmds
23488
23489 # Whether we are building with GNU ld or not.
23490 with_gnu_ld=$lt_with_gnu_ld
23491
23492 # Flag that allows shared libraries with undefined symbols to be built.
23493 allow_undefined_flag=$lt_allow_undefined_flag
23494
23495 # Flag that enforces no undefined symbols.
23496 no_undefined_flag=$lt_no_undefined_flag
23497
23498 # Flag to hardcode \$libdir into a binary during linking.
23499 # This must work even if \$libdir does not exist
23500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23501
23502 # Whether we need a single "-rpath" flag with a separated argument.
23503 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23504
23505 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23506 # DIR into the resulting binary.
23507 hardcode_direct=$hardcode_direct
23508
23509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23510 # DIR into the resulting binary and the resulting library dependency is
23511 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23512 # library is relocated.
23513 hardcode_direct_absolute=$hardcode_direct_absolute
23514
23515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23516 # into the resulting binary.
23517 hardcode_minus_L=$hardcode_minus_L
23518
23519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23520 # into the resulting binary.
23521 hardcode_shlibpath_var=$hardcode_shlibpath_var
23522
23523 # Set to "yes" if building a shared library automatically hardcodes DIR
23524 # into the library and all subsequent libraries and executables linked
23525 # against it.
23526 hardcode_automatic=$hardcode_automatic
23527
23528 # Set to yes if linker adds runtime paths of dependent libraries
23529 # to runtime path list.
23530 inherit_rpath=$inherit_rpath
23531
23532 # Whether libtool must link a program against all its dependency libraries.
23533 link_all_deplibs=$link_all_deplibs
23534
23535 # Set to "yes" if exported symbols are required.
23536 always_export_symbols=$always_export_symbols
23537
23538 # The commands to list exported symbols.
23539 export_symbols_cmds=$lt_export_symbols_cmds
23540
23541 # Symbols that should not be listed in the preloaded symbols.
23542 exclude_expsyms=$lt_exclude_expsyms
23543
23544 # Symbols that must always be exported.
23545 include_expsyms=$lt_include_expsyms
23546
23547 # Commands necessary for linking programs (against libraries) with templates.
23548 prelink_cmds=$lt_prelink_cmds
23549
23550 # Commands necessary for finishing linking programs.
23551 postlink_cmds=$lt_postlink_cmds
23552
23553 # Specify filename containing input files.
23554 file_list_spec=$lt_file_list_spec
23555
23556 # How to hardcode a shared library path into an executable.
23557 hardcode_action=$hardcode_action
23558
23559 # The directories searched by this compiler when creating a shared library.
23560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23561
23562 # Dependencies to place before and after the objects being linked to
23563 # create a shared library.
23564 predep_objects=$lt_predep_objects
23565 postdep_objects=$lt_postdep_objects
23566 predeps=$lt_predeps
23567 postdeps=$lt_postdeps
23568
23569 # The library search path used internally by the compiler when linking
23570 # a shared library.
23571 compiler_lib_search_path=$lt_compiler_lib_search_path
23572
23573 # ### END LIBTOOL CONFIG
23574
23575 _LT_EOF
23576
23577     cat <<'_LT_EOF' >> "$cfgfile"
23578
23579 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23580
23581 # func_munge_path_list VARIABLE PATH
23582 # -----------------------------------
23583 # VARIABLE is name of variable containing _space_ separated list of
23584 # directories to be munged by the contents of PATH, which is string
23585 # having a format:
23586 # "DIR[:DIR]:"
23587 #       string "DIR[ DIR]" will be prepended to VARIABLE
23588 # ":DIR[:DIR]"
23589 #       string "DIR[ DIR]" will be appended to VARIABLE
23590 # "DIRP[:DIRP]::[DIRA:]DIRA"
23591 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23592 #       "DIRA[ DIRA]" will be appended to VARIABLE
23593 # "DIR[:DIR]"
23594 #       VARIABLE will be replaced by "DIR[ DIR]"
23595 func_munge_path_list ()
23596 {
23597     case x$2 in
23598     x)
23599         ;;
23600     *:)
23601         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23602         ;;
23603     x:*)
23604         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23605         ;;
23606     *::*)
23607         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23608         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23609         ;;
23610     *)
23611         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23612         ;;
23613     esac
23614 }
23615
23616
23617 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23618 func_cc_basename ()
23619 {
23620     for cc_temp in $*""; do
23621       case $cc_temp in
23622         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23623         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23624         \-*) ;;
23625         *) break;;
23626       esac
23627     done
23628     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23629 }
23630
23631
23632 # ### END FUNCTIONS SHARED WITH CONFIGURE
23633
23634 _LT_EOF
23635
23636   case $host_os in
23637   aix3*)
23638     cat <<\_LT_EOF >> "$cfgfile"
23639 # AIX sometimes has problems with the GCC collect2 program.  For some
23640 # reason, if we set the COLLECT_NAMES environment variable, the problems
23641 # vanish in a puff of smoke.
23642 if test set != "${COLLECT_NAMES+set}"; then
23643   COLLECT_NAMES=
23644   export COLLECT_NAMES
23645 fi
23646 _LT_EOF
23647     ;;
23648   esac
23649
23650
23651 ltmain=$ac_aux_dir/ltmain.sh
23652
23653
23654   # We use sed instead of cat because bash on DJGPP gets confused if
23655   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23656   # text mode, it properly converts lines to CR/LF.  This bash problem
23657   # is reportedly fixed, but why not run on old versions too?
23658   sed '$q' "$ltmain" >> "$cfgfile" \
23659      || (rm -f "$cfgfile"; exit 1)
23660
23661    mv -f "$cfgfile" "$ofile" ||
23662     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23663   chmod +x "$ofile"
23664
23665
23666     cat <<_LT_EOF >> "$ofile"
23667
23668 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23669
23670 # The linker used to build libraries.
23671 LD=$lt_LD_CXX
23672
23673 # How to create reloadable object files.
23674 reload_flag=$lt_reload_flag_CXX
23675 reload_cmds=$lt_reload_cmds_CXX
23676
23677 # Commands used to build an old-style archive.
23678 old_archive_cmds=$lt_old_archive_cmds_CXX
23679
23680 # A language specific compiler.
23681 CC=$lt_compiler_CXX
23682
23683 # Is the compiler the GNU compiler?
23684 with_gcc=$GCC_CXX
23685
23686 # Compiler flag to turn off builtin functions.
23687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23688
23689 # Additional compiler flags for building library objects.
23690 pic_flag=$lt_lt_prog_compiler_pic_CXX
23691
23692 # How to pass a linker flag through the compiler.
23693 wl=$lt_lt_prog_compiler_wl_CXX
23694
23695 # Compiler flag to prevent dynamic linking.
23696 link_static_flag=$lt_lt_prog_compiler_static_CXX
23697
23698 # Does compiler simultaneously support -c and -o options?
23699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23700
23701 # Whether or not to add -lc for building shared libraries.
23702 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23703
23704 # Whether or not to disallow shared libs when runtime libs are static.
23705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23706
23707 # Compiler flag to allow reflexive dlopens.
23708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23709
23710 # Compiler flag to generate shared objects directly from archives.
23711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23712
23713 # Whether the compiler copes with passing no objects directly.
23714 compiler_needs_object=$lt_compiler_needs_object_CXX
23715
23716 # Create an old-style archive from a shared archive.
23717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23718
23719 # Create a temporary old-style archive to link instead of a shared archive.
23720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23721
23722 # Commands used to build a shared archive.
23723 archive_cmds=$lt_archive_cmds_CXX
23724 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23725
23726 # Commands used to build a loadable module if different from building
23727 # a shared archive.
23728 module_cmds=$lt_module_cmds_CXX
23729 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23730
23731 # Whether we are building with GNU ld or not.
23732 with_gnu_ld=$lt_with_gnu_ld_CXX
23733
23734 # Flag that allows shared libraries with undefined symbols to be built.
23735 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23736
23737 # Flag that enforces no undefined symbols.
23738 no_undefined_flag=$lt_no_undefined_flag_CXX
23739
23740 # Flag to hardcode \$libdir into a binary during linking.
23741 # This must work even if \$libdir does not exist
23742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23743
23744 # Whether we need a single "-rpath" flag with a separated argument.
23745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23746
23747 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23748 # DIR into the resulting binary.
23749 hardcode_direct=$hardcode_direct_CXX
23750
23751 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23752 # DIR into the resulting binary and the resulting library dependency is
23753 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23754 # library is relocated.
23755 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23756
23757 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23758 # into the resulting binary.
23759 hardcode_minus_L=$hardcode_minus_L_CXX
23760
23761 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23762 # into the resulting binary.
23763 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23764
23765 # Set to "yes" if building a shared library automatically hardcodes DIR
23766 # into the library and all subsequent libraries and executables linked
23767 # against it.
23768 hardcode_automatic=$hardcode_automatic_CXX
23769
23770 # Set to yes if linker adds runtime paths of dependent libraries
23771 # to runtime path list.
23772 inherit_rpath=$inherit_rpath_CXX
23773
23774 # Whether libtool must link a program against all its dependency libraries.
23775 link_all_deplibs=$link_all_deplibs_CXX
23776
23777 # Set to "yes" if exported symbols are required.
23778 always_export_symbols=$always_export_symbols_CXX
23779
23780 # The commands to list exported symbols.
23781 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23782
23783 # Symbols that should not be listed in the preloaded symbols.
23784 exclude_expsyms=$lt_exclude_expsyms_CXX
23785
23786 # Symbols that must always be exported.
23787 include_expsyms=$lt_include_expsyms_CXX
23788
23789 # Commands necessary for linking programs (against libraries) with templates.
23790 prelink_cmds=$lt_prelink_cmds_CXX
23791
23792 # Commands necessary for finishing linking programs.
23793 postlink_cmds=$lt_postlink_cmds_CXX
23794
23795 # Specify filename containing input files.
23796 file_list_spec=$lt_file_list_spec_CXX
23797
23798 # How to hardcode a shared library path into an executable.
23799 hardcode_action=$hardcode_action_CXX
23800
23801 # The directories searched by this compiler when creating a shared library.
23802 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23803
23804 # Dependencies to place before and after the objects being linked to
23805 # create a shared library.
23806 predep_objects=$lt_predep_objects_CXX
23807 postdep_objects=$lt_postdep_objects_CXX
23808 predeps=$lt_predeps_CXX
23809 postdeps=$lt_postdeps_CXX
23810
23811 # The library search path used internally by the compiler when linking
23812 # a shared library.
23813 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23814
23815 # ### END LIBTOOL TAG CONFIG: CXX
23816 _LT_EOF
23817
23818  ;;
23819
23820   esac
23821 done # for ac_tag
23822
23823
23824 as_fn_exit 0
23825 _ACEOF
23826 ac_clean_files=$ac_clean_files_save
23827
23828 test $ac_write_fail = 0 ||
23829   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23830
23831
23832 # configure is writing to config.log, and then calls config.status.
23833 # config.status does its own redirection, appending to config.log.
23834 # Unfortunately, on DOS this fails, as config.log is still kept open
23835 # by configure, so config.status won't be able to write to it; its
23836 # output is simply discarded.  So we exec the FD to /dev/null,
23837 # effectively closing config.log, so it can be properly (re)opened and
23838 # appended to by config.status.  When coming back to configure, we
23839 # need to make the FD available again.
23840 if test "$no_create" != yes; then
23841   ac_cs_success=:
23842   ac_config_status_args=
23843   test "$silent" = yes &&
23844     ac_config_status_args="$ac_config_status_args --quiet"
23845   exec 5>/dev/null
23846   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23847   exec 5>>config.log
23848   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23849   # would make configure fail if this is the last instruction.
23850   $ac_cs_success || as_fn_exit 1
23851 fi
23852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23853   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23855 fi
23856
23857
23858 { $as_echo "$as_me:${as_lineno-$LINENO}:
23859
23860 Build configuration:
23861
23862 Unicode callbacks (you want at least one):
23863         Builtin (UCDN):         ${have_ucdn}
23864         Glib:                   ${have_glib}
23865         ICU:                    ${have_icu}
23866
23867 Font callbacks (the more the merrier):
23868         FreeType:               ${have_freetype}
23869
23870 Tools used for command-line utilities:
23871         Cairo:                  ${have_cairo}
23872         Fontconfig:             ${have_fontconfig}
23873
23874 Additional shapers (the more the merrier):
23875         Graphite2:              ${have_graphite2}
23876
23877 Platform shapers (not normally needed):
23878         CoreText:               ${have_coretext}
23879         DirectWrite:            ${have_directwrite}
23880         Uniscribe:              ${have_uniscribe}
23881
23882 Other features:
23883         Documentation:          ${enable_gtk_doc}
23884         GObject bindings:       ${have_gobject}
23885         Introspection:          ${have_introspection}
23886 " >&5
23887 $as_echo "$as_me:
23888
23889 Build configuration:
23890
23891 Unicode callbacks (you want at least one):
23892         Builtin (UCDN):         ${have_ucdn}
23893         Glib:                   ${have_glib}
23894         ICU:                    ${have_icu}
23895
23896 Font callbacks (the more the merrier):
23897         FreeType:               ${have_freetype}
23898
23899 Tools used for command-line utilities:
23900         Cairo:                  ${have_cairo}
23901         Fontconfig:             ${have_fontconfig}
23902
23903 Additional shapers (the more the merrier):
23904         Graphite2:              ${have_graphite2}
23905
23906 Platform shapers (not normally needed):
23907         CoreText:               ${have_coretext}
23908         DirectWrite:            ${have_directwrite}
23909         Uniscribe:              ${have_uniscribe}
23910
23911 Other features:
23912         Documentation:          ${enable_gtk_doc}
23913         GObject bindings:       ${have_gobject}
23914         Introspection:          ${have_introspection}
23915 " >&6;}