8d63038da833356a2520e3560de122dbc55ccaed
[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 2.6.4.
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='2.6.4'
594 PACKAGE_STRING='HarfBuzz 2.6.4'
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_GDI_FALSE
648 HAVE_GDI_TRUE
649 GDI_LIBS
650 GDI_CFLAGS
651 HAVE_UNISCRIBE_FALSE
652 HAVE_UNISCRIBE_TRUE
653 UNISCRIBE_LIBS
654 UNISCRIBE_CFLAGS
655 HAVE_FREETYPE_FALSE
656 HAVE_FREETYPE_TRUE
657 FREETYPE_LIBS
658 FREETYPE_CFLAGS
659 FREETYPE_DEPS
660 HAVE_GRAPHITE2_FALSE
661 HAVE_GRAPHITE2_TRUE
662 GRAPHITE2_LIBS
663 GRAPHITE2_CFLAGS
664 GRAPHITE2_DEPS
665 HAVE_ICU_BUILTIN_FALSE
666 HAVE_ICU_BUILTIN_TRUE
667 HAVE_ICU_FALSE
668 HAVE_ICU_TRUE
669 ICU_CONFIG
670 ICU_LIBS
671 ICU_CFLAGS
672 HAVE_FONTCONFIG_FALSE
673 HAVE_FONTCONFIG_TRUE
674 FONTCONFIG_LIBS
675 FONTCONFIG_CFLAGS
676 HAVE_CAIRO_FT_FALSE
677 HAVE_CAIRO_FT_TRUE
678 CAIRO_FT_LIBS
679 CAIRO_FT_CFLAGS
680 HAVE_CAIRO_FALSE
681 HAVE_CAIRO_TRUE
682 CAIRO_LIBS
683 CAIRO_CFLAGS
684 HAVE_INTROSPECTION_FALSE
685 HAVE_INTROSPECTION_TRUE
686 INTROSPECTION_MAKEFILE
687 INTROSPECTION_LIBS
688 INTROSPECTION_CFLAGS
689 INTROSPECTION_TYPELIBDIR
690 INTROSPECTION_GIRDIR
691 INTROSPECTION_GENERATE
692 INTROSPECTION_COMPILER
693 INTROSPECTION_SCANNER
694 have_gobject
695 HAVE_GOBJECT_FALSE
696 HAVE_GOBJECT_TRUE
697 GLIB_MKENUMS
698 GOBJECT_LIBS
699 GOBJECT_CFLAGS
700 HAVE_GLIB_FALSE
701 HAVE_GLIB_TRUE
702 GLIB_LIBS
703 GLIB_CFLAGS
704 GLIB_DEPS
705 HAVE_PTHREAD_FALSE
706 HAVE_PTHREAD_TRUE
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 ax_pthread_config
711 OS_WIN32_FALSE
712 OS_WIN32_TRUE
713 HAVE_GCC_FALSE
714 HAVE_GCC_TRUE
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
723 ENABLE_GTK_DOC_FALSE
724 ENABLE_GTK_DOC_TRUE
725 HAVE_GTK_DOC_FALSE
726 HAVE_GTK_DOC_TRUE
727 GTKDOC_DEPS_LIBS
728 GTKDOC_DEPS_CFLAGS
729 HTML_DIR
730 GTKDOC_MKPDF
731 GTKDOC_REBASE
732 GTKDOC_CHECK_PATH
733 GTKDOC_CHECK
734 WITH_LIBSTDCXX_FALSE
735 WITH_LIBSTDCXX_TRUE
736 HB_LIBTOOL_VERSION_INFO
737 HB_VERSION
738 HB_VERSION_MICRO
739 HB_VERSION_MINOR
740 HB_VERSION_MAJOR
741 GIT
742 RAGEL
743 PKG_CONFIG_LIBDIR
744 PKG_CONFIG_PATH
745 PKG_CONFIG
746 HAVE_CXX11
747 CXXCPP
748 am__fastdepCXX_FALSE
749 am__fastdepCXX_TRUE
750 CXXDEPMODE
751 ac_ct_CXX
752 CXXFLAGS
753 CXX
754 CPP
755 LT_SYS_LIBRARY_PATH
756 OTOOL64
757 OTOOL
758 LIPO
759 NMEDIT
760 DSYMUTIL
761 MANIFEST_TOOL
762 RANLIB
763 DLLTOOL
764 OBJDUMP
765 LN_S
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 EGREP
772 GREP
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 LIBTOOL
782 am__fastdepCC_FALSE
783 am__fastdepCC_TRUE
784 CCDEPMODE
785 am__nodep
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
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 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL
878 am__quote'
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_graphite2
907 with_freetype
908 with_uniscribe
909 with_gdi
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 PKG_CONFIG_PATH
929 PKG_CONFIG_LIBDIR
930 GTKDOC_DEPS_CFLAGS
931 GTKDOC_DEPS_LIBS
932 GLIB_CFLAGS
933 GLIB_LIBS
934 GOBJECT_CFLAGS
935 GOBJECT_LIBS
936 CAIRO_CFLAGS
937 CAIRO_LIBS
938 CAIRO_FT_CFLAGS
939 CAIRO_FT_LIBS
940 FONTCONFIG_CFLAGS
941 FONTCONFIG_LIBS
942 ICU_CFLAGS
943 ICU_LIBS
944 GRAPHITE2_CFLAGS
945 GRAPHITE2_LIBS
946 FREETYPE_CFLAGS
947 FREETYPE_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *=)   ac_optarg= ;;
1012   *)    ac_optarg=yes ;;
1013   esac
1014
1015   # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017   case $ac_dashdash$ac_option in
1018   --)
1019     ac_dashdash=yes ;;
1020
1021   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022     ac_prev=bindir ;;
1023   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024     bindir=$ac_optarg ;;
1025
1026   -build | --build | --buil | --bui | --bu)
1027     ac_prev=build_alias ;;
1028   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029     build_alias=$ac_optarg ;;
1030
1031   -cache-file | --cache-file | --cache-fil | --cache-fi \
1032   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033     ac_prev=cache_file ;;
1034   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036     cache_file=$ac_optarg ;;
1037
1038   --config-cache | -C)
1039     cache_file=config.cache ;;
1040
1041   -datadir | --datadir | --datadi | --datad)
1042     ac_prev=datadir ;;
1043   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044     datadir=$ac_optarg ;;
1045
1046   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047   | --dataroo | --dataro | --datar)
1048     ac_prev=datarootdir ;;
1049   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051     datarootdir=$ac_optarg ;;
1052
1053   -disable-* | --disable-*)
1054     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057       as_fn_error $? "invalid feature name: $ac_useropt"
1058     ac_useropt_orig=$ac_useropt
1059     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060     case $ac_user_opts in
1061       *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065          ac_unrecognized_sep=', ';;
1066     esac
1067     eval enable_$ac_useropt=no ;;
1068
1069   -docdir | --docdir | --docdi | --doc | --do)
1070     ac_prev=docdir ;;
1071   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072     docdir=$ac_optarg ;;
1073
1074   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075     ac_prev=dvidir ;;
1076   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077     dvidir=$ac_optarg ;;
1078
1079   -enable-* | --enable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error $? "invalid feature name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval enable_$ac_useropt=\$ac_optarg ;;
1094
1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097   | --exec | --exe | --ex)
1098     ac_prev=exec_prefix ;;
1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101   | --exec=* | --exe=* | --ex=*)
1102     exec_prefix=$ac_optarg ;;
1103
1104   -gas | --gas | --ga | --g)
1105     # Obsolete; use --with-gas.
1106     with_gas=yes ;;
1107
1108   -help | --help | --hel | --he | -h)
1109     ac_init_help=long ;;
1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111     ac_init_help=recursive ;;
1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113     ac_init_help=short ;;
1114
1115   -host | --host | --hos | --ho)
1116     ac_prev=host_alias ;;
1117   -host=* | --host=* | --hos=* | --ho=*)
1118     host_alias=$ac_optarg ;;
1119
1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121     ac_prev=htmldir ;;
1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123   | --ht=*)
1124     htmldir=$ac_optarg ;;
1125
1126   -includedir | --includedir | --includedi | --included | --include \
1127   | --includ | --inclu | --incl | --inc)
1128     ac_prev=includedir ;;
1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
1131     includedir=$ac_optarg ;;
1132
1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
1134     ac_prev=infodir ;;
1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136     infodir=$ac_optarg ;;
1137
1138   -libdir | --libdir | --libdi | --libd)
1139     ac_prev=libdir ;;
1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141     libdir=$ac_optarg ;;
1142
1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144   | --libexe | --libex | --libe)
1145     ac_prev=libexecdir ;;
1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147   | --libexe=* | --libex=* | --libe=*)
1148     libexecdir=$ac_optarg ;;
1149
1150   -localedir | --localedir | --localedi | --localed | --locale)
1151     ac_prev=localedir ;;
1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153     localedir=$ac_optarg ;;
1154
1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
1156   | --localstate | --localstat | --localsta | --localst | --locals)
1157     ac_prev=localstatedir ;;
1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160     localstatedir=$ac_optarg ;;
1161
1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163     ac_prev=mandir ;;
1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165     mandir=$ac_optarg ;;
1166
1167   -nfp | --nfp | --nf)
1168     # Obsolete; use --without-fp.
1169     with_fp=no ;;
1170
1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172   | --no-cr | --no-c | -n)
1173     no_create=yes ;;
1174
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     no_recursion=yes ;;
1178
1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181   | --oldin | --oldi | --old | --ol | --o)
1182     ac_prev=oldincludedir ;;
1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186     oldincludedir=$ac_optarg ;;
1187
1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189     ac_prev=prefix ;;
1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191     prefix=$ac_optarg ;;
1192
1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194   | --program-pre | --program-pr | --program-p)
1195     ac_prev=program_prefix ;;
1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198     program_prefix=$ac_optarg ;;
1199
1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201   | --program-suf | --program-su | --program-s)
1202     ac_prev=program_suffix ;;
1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205     program_suffix=$ac_optarg ;;
1206
1207   -program-transform-name | --program-transform-name \
1208   | --program-transform-nam | --program-transform-na \
1209   | --program-transform-n | --program-transform- \
1210   | --program-transform | --program-transfor \
1211   | --program-transfo | --program-transf \
1212   | --program-trans | --program-tran \
1213   | --progr-tra | --program-tr | --program-t)
1214     ac_prev=program_transform_name ;;
1215   -program-transform-name=* | --program-transform-name=* \
1216   | --program-transform-nam=* | --program-transform-na=* \
1217   | --program-transform-n=* | --program-transform-=* \
1218   | --program-transform=* | --program-transfor=* \
1219   | --program-transfo=* | --program-transf=* \
1220   | --program-trans=* | --program-tran=* \
1221   | --progr-tra=* | --program-tr=* | --program-t=*)
1222     program_transform_name=$ac_optarg ;;
1223
1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225     ac_prev=pdfdir ;;
1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227     pdfdir=$ac_optarg ;;
1228
1229   -psdir | --psdir | --psdi | --psd | --ps)
1230     ac_prev=psdir ;;
1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232     psdir=$ac_optarg ;;
1233
1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235   | -silent | --silent | --silen | --sile | --sil)
1236     silent=yes ;;
1237
1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239     ac_prev=sbindir ;;
1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241   | --sbi=* | --sb=*)
1242     sbindir=$ac_optarg ;;
1243
1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246   | --sharedst | --shareds | --shared | --share | --shar \
1247   | --sha | --sh)
1248     ac_prev=sharedstatedir ;;
1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252   | --sha=* | --sh=*)
1253     sharedstatedir=$ac_optarg ;;
1254
1255   -site | --site | --sit)
1256     ac_prev=site ;;
1257   -site=* | --site=* | --sit=*)
1258     site=$ac_optarg ;;
1259
1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261     ac_prev=srcdir ;;
1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263     srcdir=$ac_optarg ;;
1264
1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266   | --syscon | --sysco | --sysc | --sys | --sy)
1267     ac_prev=sysconfdir ;;
1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270     sysconfdir=$ac_optarg ;;
1271
1272   -target | --target | --targe | --targ | --tar | --ta | --t)
1273     ac_prev=target_alias ;;
1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275     target_alias=$ac_optarg ;;
1276
1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278     verbose=yes ;;
1279
1280   -version | --version | --versio | --versi | --vers | -V)
1281     ac_init_version=: ;;
1282
1283   -with-* | --with-*)
1284     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287       as_fn_error $? "invalid package name: $ac_useropt"
1288     ac_useropt_orig=$ac_useropt
1289     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290     case $ac_user_opts in
1291       *"
1292 "with_$ac_useropt"
1293 "*) ;;
1294       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295          ac_unrecognized_sep=', ';;
1296     esac
1297     eval with_$ac_useropt=\$ac_optarg ;;
1298
1299   -without-* | --without-*)
1300     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303       as_fn_error $? "invalid package name: $ac_useropt"
1304     ac_useropt_orig=$ac_useropt
1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306     case $ac_user_opts in
1307       *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311          ac_unrecognized_sep=', ';;
1312     esac
1313     eval with_$ac_useropt=no ;;
1314
1315   --x)
1316     # Obsolete; use --with-x.
1317     with_x=yes ;;
1318
1319   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320   | --x-incl | --x-inc | --x-in | --x-i)
1321     ac_prev=x_includes ;;
1322   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324     x_includes=$ac_optarg ;;
1325
1326   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328     ac_prev=x_libraries ;;
1329   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331     x_libraries=$ac_optarg ;;
1332
1333   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1335     ;;
1336
1337   *=*)
1338     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339     # Reject names that are not valid shell variable names.
1340     case $ac_envvar in #(
1341       '' | [0-9]* | *[!_$as_cr_alnum]* )
1342       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343     esac
1344     eval $ac_envvar=\$ac_optarg
1345     export $ac_envvar ;;
1346
1347   *)
1348     # FIXME: should be removed in autoconf 3.0.
1349     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353     ;;
1354
1355   esac
1356 done
1357
1358 if test -n "$ac_prev"; then
1359   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360   as_fn_error $? "missing argument to $ac_option"
1361 fi
1362
1363 if test -n "$ac_unrecognized_opts"; then
1364   case $enable_option_checking in
1365     no) ;;
1366     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368   esac
1369 fi
1370
1371 # Check all directory arguments for consistency.
1372 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373                 datadir sysconfdir sharedstatedir localstatedir includedir \
1374                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375                 libdir localedir mandir
1376 do
1377   eval ac_val=\$$ac_var
1378   # Remove trailing slashes.
1379   case $ac_val in
1380     */ )
1381       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382       eval $ac_var=\$ac_val;;
1383   esac
1384   # Be sure to have absolute directory names.
1385   case $ac_val in
1386     [\\/$]* | ?:[\\/]* )  continue;;
1387     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388   esac
1389   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1391
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1398
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401   if test "x$build_alias" = x; then
1402     cross_compiling=maybe
1403   elif test "x$build_alias" != "x$host_alias"; then
1404     cross_compiling=yes
1405   fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417   as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419   as_fn_error $? "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424   ac_srcdir_defaulted=yes
1425   # Try the directory containing this script, then the parent directory.
1426   ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428          X"$as_myself" : 'X\(//\)[^/]' \| \
1429          X"$as_myself" : 'X\(//\)$' \| \
1430          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)[^/].*/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\).*/{
1445             s//\1/
1446             q
1447           }
1448           s/.*/./; q'`
1449   srcdir=$ac_confdir
1450   if test ! -r "$srcdir/$ac_unique_file"; then
1451     srcdir=..
1452   fi
1453 else
1454   ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463         pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466   srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_env_${ac_var}_value=\$${ac_var}
1477   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485   # Omit some internal or obsolete options to make the list less imposing.
1486   # This message is too long to be a string in the A/UX 3.1 sh.
1487   cat <<_ACEOF
1488 \`configure' configures HarfBuzz 2.6.4 to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498   -h, --help              display this help and exit
1499       --help=short        display options specific to this package
1500       --help=recursive    display the short help of all the included packages
1501   -V, --version           display version information and exit
1502   -q, --quiet, --silent   do not print \`checking ...' messages
1503       --cache-file=FILE   cache test results in FILE [disabled]
1504   -C, --config-cache      alias for \`--cache-file=config.cache'
1505   -n, --no-create         do not create output files
1506       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509   --prefix=PREFIX         install architecture-independent files in PREFIX
1510                           [$ac_default_prefix]
1511   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                           [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522   --bindir=DIR            user executables [EPREFIX/bin]
1523   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524   --libexecdir=DIR        program executables [EPREFIX/libexec]
1525   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 Program names:
1546   --program-prefix=PREFIX            prepend PREFIX to installed program names
1547   --program-suffix=SUFFIX            append SUFFIX to installed program names
1548   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550 System types:
1551   --build=BUILD     configure for building on BUILD [guessed]
1552   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557   case $ac_init_help in
1558      short | recursive ) echo "Configuration of HarfBuzz 2.6.4:";;
1559    esac
1560   cat <<\_ACEOF
1561
1562 Optional Features:
1563   --disable-option-checking  ignore unrecognized --enable/--with options
1564   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566   --enable-silent-rules   less verbose build output (undo: "make V=1")
1567   --disable-silent-rules  verbose build output (undo: "make V=0")
1568   --enable-code-coverage  Whether to enable code coverage support
1569   --enable-dependency-tracking
1570                           do not reject slow dependency extractors
1571   --disable-dependency-tracking
1572                           speeds up one-time build
1573   --enable-static[=PKGS]  build static libraries [default=no]
1574   --enable-shared[=PKGS]  build shared libraries [default=yes]
1575   --enable-fast-install[=PKGS]
1576                           optimize for fast installation [default=yes]
1577   --disable-libtool-lock  avoid locking (might break parallel builds)
1578   --disable-largefile     omit support for large files
1579   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1580   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1581   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1582   --enable-introspection=[no/auto/yes]
1583                           Enable introspection for this build
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1589   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1590                           both]
1591   --with-aix-soname=aix|svr4|both
1592                           shared library versioning (aka "SONAME") variant to
1593                           provide on AIX, [default=aix].
1594   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1596                           compiler's sysroot if not specified).
1597   --with-libstdc++=[yes/no]
1598                           Allow linking with libstdc++ [default=no]
1599   --with-html-dir=PATH    path to installed docs
1600   --with-glib=[yes/no/auto]
1601                           Use glib [default=auto]
1602   --with-gobject=[yes/no/auto]
1603                           Use gobject [default=no]
1604   --with-cairo=[yes/no/auto]
1605                           Use cairo [default=auto]
1606   --with-fontconfig=[yes/no/auto]
1607                           Use fontconfig [default=auto]
1608   --with-icu=[yes/no/builtin/auto]
1609                           Use ICU [default=auto]
1610   --with-graphite2=[yes/no/auto]
1611                           Use the graphite2 library [default=no]
1612   --with-freetype=[yes/no/auto]
1613                           Use the FreeType library [default=auto]
1614   --with-uniscribe=[yes/no/auto]
1615                           Use the Uniscribe library [default=no]
1616   --with-gdi=[yes/no/auto]
1617                           Provide GDI integration helpers [default=no]
1618   --with-directwrite=[yes/no/auto]
1619                           Use the DirectWrite library (experimental)
1620                           [default=no]
1621   --with-coretext=[yes/no/auto]
1622                           Use CoreText [default=no]
1623
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   LIBS        libraries to pass to the linker, e.g. -l<library>
1630   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631               you have headers in a nonstandard directory <include dir>
1632   LT_SYS_LIBRARY_PATH
1633               User-defined run-time library search path.
1634   CPP         C preprocessor
1635   CXX         C++ compiler command
1636   CXXFLAGS    C++ compiler flags
1637   CXXCPP      C++ preprocessor
1638   PKG_CONFIG  path to pkg-config utility
1639   PKG_CONFIG_PATH
1640               directories to add to pkg-config's search path
1641   PKG_CONFIG_LIBDIR
1642               path overriding pkg-config's built-in search path
1643   GTKDOC_DEPS_CFLAGS
1644               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1645   GTKDOC_DEPS_LIBS
1646               linker flags for GTKDOC_DEPS, overriding pkg-config
1647   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1648   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1649   GOBJECT_CFLAGS
1650               C compiler flags for GOBJECT, overriding pkg-config
1651   GOBJECT_LIBS
1652               linker flags for GOBJECT, overriding pkg-config
1653   CAIRO_CFLAGS
1654               C compiler flags for CAIRO, overriding pkg-config
1655   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1656   CAIRO_FT_CFLAGS
1657               C compiler flags for CAIRO_FT, overriding pkg-config
1658   CAIRO_FT_LIBS
1659               linker flags for CAIRO_FT, overriding pkg-config
1660   FONTCONFIG_CFLAGS
1661               C compiler flags for FONTCONFIG, overriding pkg-config
1662   FONTCONFIG_LIBS
1663               linker flags for FONTCONFIG, overriding pkg-config
1664   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1665   ICU_LIBS    linker flags for ICU, overriding pkg-config
1666   GRAPHITE2_CFLAGS
1667               C compiler flags for GRAPHITE2, overriding pkg-config
1668   GRAPHITE2_LIBS
1669               linker flags for GRAPHITE2, overriding pkg-config
1670   FREETYPE_CFLAGS
1671               C compiler flags for FREETYPE, overriding pkg-config
1672   FREETYPE_LIBS
1673               linker flags for FREETYPE, overriding pkg-config
1674
1675 Use these variables to override the choices made by `configure' or to help
1676 it to find libraries and programs with nonstandard names/locations.
1677
1678 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1679 HarfBuzz home page: <http://harfbuzz.org/>.
1680 _ACEOF
1681 ac_status=$?
1682 fi
1683
1684 if test "$ac_init_help" = "recursive"; then
1685   # If there are subdirs, report their specific --help.
1686   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687     test -d "$ac_dir" ||
1688       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689       continue
1690     ac_builddir=.
1691
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 *)
1695   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696   # A ".." for each directory in $ac_dir_suffix.
1697   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698   case $ac_top_builddir_sub in
1699   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701   esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1707
1708 case $srcdir in
1709   .)  # We are building in place.
1710     ac_srcdir=.
1711     ac_top_srcdir=$ac_top_builddir_sub
1712     ac_abs_top_srcdir=$ac_pwd ;;
1713   [\\/]* | ?:[\\/]* )  # Absolute name.
1714     ac_srcdir=$srcdir$ac_dir_suffix;
1715     ac_top_srcdir=$srcdir
1716     ac_abs_top_srcdir=$srcdir ;;
1717   *) # Relative name.
1718     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719     ac_top_srcdir=$ac_top_build_prefix$srcdir
1720     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723
1724     cd "$ac_dir" || { ac_status=$?; continue; }
1725     # Check for guested configure.
1726     if test -f "$ac_srcdir/configure.gnu"; then
1727       echo &&
1728       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729     elif test -f "$ac_srcdir/configure"; then
1730       echo &&
1731       $SHELL "$ac_srcdir/configure" --help=recursive
1732     else
1733       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734     fi || ac_status=$?
1735     cd "$ac_pwd" || { ac_status=$?; break; }
1736   done
1737 fi
1738
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741   cat <<\_ACEOF
1742 HarfBuzz configure 2.6.4
1743 generated by GNU Autoconf 2.69
1744
1745 Copyright (C) 2012 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749   exit
1750 fi
1751
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1755
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   rm -f conftest.$ac_objext
1763   if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_compile") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } && {
1779          test -z "$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        } && test -s conftest.$ac_objext; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787         ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext conftest$ac_exeext
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest$ac_exeext && {
1820          test "$cross_compiling" = yes ||
1821          test -x conftest$ac_exeext
1822        }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828         ac_retval=1
1829 fi
1830   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832   # interfere with the next link command; also delete a directory that is
1833   # left behind by Apple's compiler.  We do this before executing the actions.
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_cpp ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   if { { ac_try="$ac_cpp conftest.$ac_ext"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } > conftest.i && {
1893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894          test ! -s conftest.err
1895        }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901     ac_retval=1
1902 fi
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904   as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_cpp
1907
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1912 ac_fn_c_try_run ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918   *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922   (eval "$ac_link") 2>&5
1923   ac_status=$?
1924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926   { { case "(($ac_try" in
1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928   *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932   (eval "$ac_try") 2>&5
1933   ac_status=$?
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; }; }; then :
1936   ac_retval=0
1937 else
1938   $as_echo "$as_me: program exited with status $ac_status" >&5
1939        $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942        ac_retval=$ac_status
1943 fi
1944   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946   as_fn_set_status $ac_retval
1947
1948 } # ac_fn_c_try_run
1949
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959   $as_echo_n "(cached) " >&6
1960 else
1961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1965 #define $2 innocuous_$2
1966
1967 /* System header to define __stub macros and hopefully few prototypes,
1968     which can conflict with char $2 (); below.
1969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970     <limits.h> exists even on freestanding compilers.  */
1971
1972 #ifdef __STDC__
1973 # include <limits.h>
1974 #else
1975 # include <assert.h>
1976 #endif
1977
1978 #undef $2
1979
1980 /* Override any GCC internal prototype to avoid an error.
1981    Use char because int might match the return type of a GCC
1982    builtin and then its argument prototype would still apply.  */
1983 #ifdef __cplusplus
1984 extern "C"
1985 #endif
1986 char $2 ();
1987 /* The GNU C library defines this for functions which it implements
1988     to always fail with ENOSYS.  Some functions are actually named
1989     something starting with __ and the normal name is an alias.  */
1990 #if defined __stub_$2 || defined __stub___$2
1991 choke me
1992 #endif
1993
1994 int
1995 main ()
1996 {
1997 return $2 ();
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_link "$LINENO"; then :
2003   eval "$3=yes"
2004 else
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext \
2008     conftest$ac_exeext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_func
2016
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext
2024   if { { ac_try="$ac_compile"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_compile") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest.$ac_objext; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_compile
2054
2055 # ac_fn_cxx_try_cpp LINENO
2056 # ------------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_cxx_try_cpp ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069   ac_status=$?
2070   if test -s conftest.err; then
2071     grep -v '^ *+' conftest.err >conftest.er1
2072     cat conftest.er1 >&5
2073     mv -f conftest.er1 conftest.err
2074   fi
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } > conftest.i && {
2077          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2078          test ! -s conftest.err
2079        }; then :
2080   ac_retval=0
2081 else
2082   $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085     ac_retval=1
2086 fi
2087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_cxx_try_cpp
2091
2092 # ac_fn_cxx_try_link LINENO
2093 # -------------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_cxx_try_link ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   rm -f conftest.$ac_objext conftest$ac_exeext
2099   if { { ac_try="$ac_link"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106   (eval "$ac_link") 2>conftest.err
2107   ac_status=$?
2108   if test -s conftest.err; then
2109     grep -v '^ *+' conftest.err >conftest.er1
2110     cat conftest.er1 >&5
2111     mv -f conftest.er1 conftest.err
2112   fi
2113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114   test $ac_status = 0; } && {
2115          test -z "$ac_cxx_werror_flag" ||
2116          test ! -s conftest.err
2117        } && test -s conftest$ac_exeext && {
2118          test "$cross_compiling" = yes ||
2119          test -x conftest$ac_exeext
2120        }; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126         ac_retval=1
2127 fi
2128   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130   # interfere with the next link command; also delete a directory that is
2131   # left behind by Apple's compiler.  We do this before executing the actions.
2132   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134   as_fn_set_status $ac_retval
2135
2136 } # ac_fn_cxx_try_link
2137
2138 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2141 # the include files in INCLUDES and setting the cache variable VAR
2142 # accordingly.
2143 ac_fn_c_check_header_mongrel ()
2144 {
2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146   if eval \${$3+:} false; then :
2147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150   $as_echo_n "(cached) " >&6
2151 fi
2152 eval ac_res=\$$3
2153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 else
2156   # Is the header compilable?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2158 $as_echo_n "checking $2 usability... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 #include <$2>
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   ac_header_compiler=yes
2166 else
2167   ac_header_compiler=no
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2171 $as_echo "$ac_header_compiler" >&6; }
2172
2173 # Is the header present?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2175 $as_echo_n "checking $2 presence... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_c_try_cpp "$LINENO"; then :
2181   ac_header_preproc=yes
2182 else
2183   ac_header_preproc=no
2184 fi
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2187 $as_echo "$ac_header_preproc" >&6; }
2188
2189 # So?  What about this header?
2190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2191   yes:no: )
2192     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2193 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2196     ;;
2197   no:yes:* )
2198     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2199 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2201 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2203 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2205 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208 ( $as_echo "## -------------------------------------------------------------- ##
2209 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2210 ## -------------------------------------------------------------- ##"
2211      ) | sed "s/^/$as_me: WARNING:     /" >&2
2212     ;;
2213 esac
2214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217   $as_echo_n "(cached) " >&6
2218 else
2219   eval "$3=\$ac_header_compiler"
2220 fi
2221 eval ac_res=\$$3
2222                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 $as_echo "$ac_res" >&6; }
2224 fi
2225   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226
2227 } # ac_fn_c_check_header_mongrel
2228
2229 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2230 # --------------------------------------------
2231 # Tries to find the compile-time value of EXPR in a program that includes
2232 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2233 # computed
2234 ac_fn_c_compute_int ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   if test "$cross_compiling" = yes; then
2238     # Depending upon the size, compute the lo and hi bounds.
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 static int test_array [1 - 2 * !(($2) >= 0)];
2246 test_array [0] = 0;
2247 return test_array [0];
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254   ac_lo=0 ac_mid=0
2255   while :; do
2256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=$ac_mid; break
2272 else
2273   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2274                         if test $ac_lo -le $ac_mid; then
2275                           ac_lo= ac_hi=
2276                           break
2277                         fi
2278                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281   done
2282 else
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 static int test_array [1 - 2 * !(($2) < 0)];
2290 test_array [0] = 0;
2291 return test_array [0];
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298   ac_hi=-1 ac_mid=-1
2299   while :; do
2300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2307 test_array [0] = 0;
2308 return test_array [0];
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315   ac_lo=$ac_mid; break
2316 else
2317   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2318                         if test $ac_mid -le $ac_hi; then
2319                           ac_lo= ac_hi=
2320                           break
2321                         fi
2322                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325   done
2326 else
2327   ac_lo= ac_hi=
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 # Binary search between lo and hi bounds.
2333 while test "x$ac_lo" != "x$ac_hi"; do
2334   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h.  */
2337 $4
2338 int
2339 main ()
2340 {
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2342 test_array [0] = 0;
2343 return test_array [0];
2344
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350   ac_hi=$ac_mid
2351 else
2352   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2353 fi
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 done
2356 case $ac_lo in #((
2357 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2358 '') ac_retval=1 ;;
2359 esac
2360   else
2361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 static long int longval () { return $2; }
2365 static unsigned long int ulongval () { return $2; }
2366 #include <stdio.h>
2367 #include <stdlib.h>
2368 int
2369 main ()
2370 {
2371
2372   FILE *f = fopen ("conftest.val", "w");
2373   if (! f)
2374     return 1;
2375   if (($2) < 0)
2376     {
2377       long int i = longval ();
2378       if (i != ($2))
2379         return 1;
2380       fprintf (f, "%ld", i);
2381     }
2382   else
2383     {
2384       unsigned long int i = ulongval ();
2385       if (i != ($2))
2386         return 1;
2387       fprintf (f, "%lu", i);
2388     }
2389   /* Do not output a trailing newline, as this causes \r\n confusion
2390      on some platforms.  */
2391   return ferror (f) || fclose (f) != 0;
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_run "$LINENO"; then :
2398   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2399 else
2400   ac_retval=1
2401 fi
2402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2403   conftest.$ac_objext conftest.beam conftest.$ac_ext
2404 rm -f conftest.val
2405
2406   fi
2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408   as_fn_set_status $ac_retval
2409
2410 } # ac_fn_c_compute_int
2411
2412 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2413 # ---------------------------------------------------------
2414 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2415 # the include files in INCLUDES and setting the cache variable VAR
2416 # accordingly.
2417 ac_fn_cxx_check_header_mongrel ()
2418 {
2419   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420   if eval \${$3+:} false; then :
2421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424   $as_echo_n "(cached) " >&6
2425 fi
2426 eval ac_res=\$$3
2427                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2428 $as_echo "$ac_res" >&6; }
2429 else
2430   # Is the header compilable?
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2432 $as_echo_n "checking $2 usability... " >&6; }
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h.  */
2435 $4
2436 #include <$2>
2437 _ACEOF
2438 if ac_fn_cxx_try_compile "$LINENO"; then :
2439   ac_header_compiler=yes
2440 else
2441   ac_header_compiler=no
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2445 $as_echo "$ac_header_compiler" >&6; }
2446
2447 # Is the header present?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2449 $as_echo_n "checking $2 presence... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h.  */
2452 #include <$2>
2453 _ACEOF
2454 if ac_fn_cxx_try_cpp "$LINENO"; then :
2455   ac_header_preproc=yes
2456 else
2457   ac_header_preproc=no
2458 fi
2459 rm -f conftest.err conftest.i conftest.$ac_ext
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2461 $as_echo "$ac_header_preproc" >&6; }
2462
2463 # So?  What about this header?
2464 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2465   yes:no: )
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2467 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470     ;;
2471   no:yes:* )
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2473 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2475 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2477 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2479 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482 ( $as_echo "## -------------------------------------------------------------- ##
2483 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2484 ## -------------------------------------------------------------- ##"
2485      ) | sed "s/^/$as_me: WARNING:     /" >&2
2486     ;;
2487 esac
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 else
2493   eval "$3=\$ac_header_compiler"
2494 fi
2495 eval ac_res=\$$3
2496                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 fi
2499   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500
2501 } # ac_fn_cxx_check_header_mongrel
2502
2503 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2504 # -------------------------------------------
2505 # Tests whether TYPE exists after having included INCLUDES, setting cache
2506 # variable VAR accordingly.
2507 ac_fn_c_check_type ()
2508 {
2509   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if eval \${$3+:} false; then :
2513   $as_echo_n "(cached) " >&6
2514 else
2515   eval "$3=no"
2516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h.  */
2518 $4
2519 int
2520 main ()
2521 {
2522 if (sizeof ($2))
2523          return 0;
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h.  */
2531 $4
2532 int
2533 main ()
2534 {
2535 if (sizeof (($2)))
2536             return 0;
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542
2543 else
2544   eval "$3=yes"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 eval ac_res=\$$3
2551                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554
2555 } # ac_fn_c_check_type
2556 cat >config.log <<_ACEOF
2557 This file contains any messages produced by compilers while
2558 running configure, to aid debugging if configure makes a mistake.
2559
2560 It was created by HarfBuzz $as_me 2.6.4, which was
2561 generated by GNU Autoconf 2.69.  Invocation command line was
2562
2563   $ $0 $@
2564
2565 _ACEOF
2566 exec 5>>config.log
2567 {
2568 cat <<_ASUNAME
2569 ## --------- ##
2570 ## Platform. ##
2571 ## --------- ##
2572
2573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2578
2579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2580 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2581
2582 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2583 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2585 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2586 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2587 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2588 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2589
2590 _ASUNAME
2591
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597     $as_echo "PATH: $as_dir"
2598   done
2599 IFS=$as_save_IFS
2600
2601 } >&5
2602
2603 cat >&5 <<_ACEOF
2604
2605
2606 ## ----------- ##
2607 ## Core tests. ##
2608 ## ----------- ##
2609
2610 _ACEOF
2611
2612
2613 # Keep a trace of the command line.
2614 # Strip out --no-create and --no-recursion so they do not pile up.
2615 # Strip out --silent because we don't want to record it for future runs.
2616 # Also quote any args containing shell meta-characters.
2617 # Make two passes to allow for proper duplicate-argument suppression.
2618 ac_configure_args=
2619 ac_configure_args0=
2620 ac_configure_args1=
2621 ac_must_keep_next=false
2622 for ac_pass in 1 2
2623 do
2624   for ac_arg
2625   do
2626     case $ac_arg in
2627     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2628     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2629     | -silent | --silent | --silen | --sile | --sil)
2630       continue ;;
2631     *\'*)
2632       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2633     esac
2634     case $ac_pass in
2635     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2636     2)
2637       as_fn_append ac_configure_args1 " '$ac_arg'"
2638       if test $ac_must_keep_next = true; then
2639         ac_must_keep_next=false # Got value, back to normal.
2640       else
2641         case $ac_arg in
2642           *=* | --config-cache | -C | -disable-* | --disable-* \
2643           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2644           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2645           | -with-* | --with-* | -without-* | --without-* | --x)
2646             case "$ac_configure_args0 " in
2647               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2648             esac
2649             ;;
2650           -* ) ac_must_keep_next=true ;;
2651         esac
2652       fi
2653       as_fn_append ac_configure_args " '$ac_arg'"
2654       ;;
2655     esac
2656   done
2657 done
2658 { ac_configure_args0=; unset ac_configure_args0;}
2659 { ac_configure_args1=; unset ac_configure_args1;}
2660
2661 # When interrupted or exit'd, cleanup temporary files, and complete
2662 # config.log.  We remove comments because anyway the quotes in there
2663 # would cause problems or look ugly.
2664 # WARNING: Use '\'' to represent an apostrophe within the trap.
2665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2666 trap 'exit_status=$?
2667   # Save into config.log some information that might help in debugging.
2668   {
2669     echo
2670
2671     $as_echo "## ---------------- ##
2672 ## Cache variables. ##
2673 ## ---------------- ##"
2674     echo
2675     # The following way of writing the cache mishandles newlines in values,
2676 (
2677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2678     eval ac_val=\$$ac_var
2679     case $ac_val in #(
2680     *${as_nl}*)
2681       case $ac_var in #(
2682       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2684       esac
2685       case $ac_var in #(
2686       _ | IFS | as_nl) ;; #(
2687       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2688       *) { eval $ac_var=; unset $ac_var;} ;;
2689       esac ;;
2690     esac
2691   done
2692   (set) 2>&1 |
2693     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2694     *${as_nl}ac_space=\ *)
2695       sed -n \
2696         "s/'\''/'\''\\\\'\'''\''/g;
2697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2698       ;; #(
2699     *)
2700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2701       ;;
2702     esac |
2703     sort
2704 )
2705     echo
2706
2707     $as_echo "## ----------------- ##
2708 ## Output variables. ##
2709 ## ----------------- ##"
2710     echo
2711     for ac_var in $ac_subst_vars
2712     do
2713       eval ac_val=\$$ac_var
2714       case $ac_val in
2715       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716       esac
2717       $as_echo "$ac_var='\''$ac_val'\''"
2718     done | sort
2719     echo
2720
2721     if test -n "$ac_subst_files"; then
2722       $as_echo "## ------------------- ##
2723 ## File substitutions. ##
2724 ## ------------------- ##"
2725       echo
2726       for ac_var in $ac_subst_files
2727       do
2728         eval ac_val=\$$ac_var
2729         case $ac_val in
2730         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2731         esac
2732         $as_echo "$ac_var='\''$ac_val'\''"
2733       done | sort
2734       echo
2735     fi
2736
2737     if test -s confdefs.h; then
2738       $as_echo "## ----------- ##
2739 ## confdefs.h. ##
2740 ## ----------- ##"
2741       echo
2742       cat confdefs.h
2743       echo
2744     fi
2745     test "$ac_signal" != 0 &&
2746       $as_echo "$as_me: caught signal $ac_signal"
2747     $as_echo "$as_me: exit $exit_status"
2748   } >&5
2749   rm -f core *.core core.conftest.* &&
2750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2751     exit $exit_status
2752 ' 0
2753 for ac_signal in 1 2 13 15; do
2754   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2755 done
2756 ac_signal=0
2757
2758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2759 rm -f -r conftest* confdefs.h
2760
2761 $as_echo "/* confdefs.h */" > confdefs.h
2762
2763 # Predefined preprocessor variables.
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_NAME "$PACKAGE_NAME"
2767 _ACEOF
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2771 _ACEOF
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2775 _ACEOF
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_STRING "$PACKAGE_STRING"
2779 _ACEOF
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2783 _ACEOF
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_URL "$PACKAGE_URL"
2787 _ACEOF
2788
2789
2790 # Let the site file select an alternate cache file if it wants to.
2791 # Prefer an explicitly selected file to automatically selected ones.
2792 ac_site_file1=NONE
2793 ac_site_file2=NONE
2794 if test -n "$CONFIG_SITE"; then
2795   # We do not want a PATH search for config.site.
2796   case $CONFIG_SITE in #((
2797     -*)  ac_site_file1=./$CONFIG_SITE;;
2798     */*) ac_site_file1=$CONFIG_SITE;;
2799     *)   ac_site_file1=./$CONFIG_SITE;;
2800   esac
2801 elif test "x$prefix" != xNONE; then
2802   ac_site_file1=$prefix/share/config.site
2803   ac_site_file2=$prefix/etc/config.site
2804 else
2805   ac_site_file1=$ac_default_prefix/share/config.site
2806   ac_site_file2=$ac_default_prefix/etc/config.site
2807 fi
2808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2809 do
2810   test "x$ac_site_file" = xNONE && continue
2811   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2812     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2814     sed 's/^/| /' "$ac_site_file" >&5
2815     . "$ac_site_file" \
2816       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "failed to load site script $ac_site_file
2819 See \`config.log' for more details" "$LINENO" 5; }
2820   fi
2821 done
2822
2823 if test -r "$cache_file"; then
2824   # Some versions of bash will fail to source /dev/null (special files
2825   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2826   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2827     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2828 $as_echo "$as_me: loading cache $cache_file" >&6;}
2829     case $cache_file in
2830       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2831       *)                      . "./$cache_file";;
2832     esac
2833   fi
2834 else
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2836 $as_echo "$as_me: creating cache $cache_file" >&6;}
2837   >$cache_file
2838 fi
2839
2840 # Check that the precious variables saved in the cache have kept the same
2841 # value.
2842 ac_cache_corrupted=false
2843 for ac_var in $ac_precious_vars; do
2844   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2845   eval ac_new_set=\$ac_env_${ac_var}_set
2846   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2847   eval ac_new_val=\$ac_env_${ac_var}_value
2848   case $ac_old_set,$ac_new_set in
2849     set,)
2850       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2851 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2852       ac_cache_corrupted=: ;;
2853     ,set)
2854       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2856       ac_cache_corrupted=: ;;
2857     ,);;
2858     *)
2859       if test "x$ac_old_val" != "x$ac_new_val"; then
2860         # differences in whitespace do not lead to failure.
2861         ac_old_val_w=`echo x $ac_old_val`
2862         ac_new_val_w=`echo x $ac_new_val`
2863         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2864           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2865 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2866           ac_cache_corrupted=:
2867         else
2868           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2869 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2870           eval $ac_var=\$ac_old_val
2871         fi
2872         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2873 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2874         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2875 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2876       fi;;
2877   esac
2878   # Pass precious variables to config.status.
2879   if test "$ac_new_set" = set; then
2880     case $ac_new_val in
2881     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2882     *) ac_arg=$ac_var=$ac_new_val ;;
2883     esac
2884     case " $ac_configure_args " in
2885       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2886       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2887     esac
2888   fi
2889 done
2890 if $ac_cache_corrupted; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2894 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2895   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2896 fi
2897 ## -------------------- ##
2898 ## Main body of script. ##
2899 ## -------------------- ##
2900
2901 ac_ext=c
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906
2907
2908
2909
2910
2911 ac_config_headers="$ac_config_headers config.h"
2912
2913
2914 am__api_version='1.16'
2915
2916 ac_aux_dir=
2917 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2918   if test -f "$ac_dir/install-sh"; then
2919     ac_aux_dir=$ac_dir
2920     ac_install_sh="$ac_aux_dir/install-sh -c"
2921     break
2922   elif test -f "$ac_dir/install.sh"; then
2923     ac_aux_dir=$ac_dir
2924     ac_install_sh="$ac_aux_dir/install.sh -c"
2925     break
2926   elif test -f "$ac_dir/shtool"; then
2927     ac_aux_dir=$ac_dir
2928     ac_install_sh="$ac_aux_dir/shtool install -c"
2929     break
2930   fi
2931 done
2932 if test -z "$ac_aux_dir"; then
2933   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2934 fi
2935
2936 # These three variables are undocumented and unsupported,
2937 # and are intended to be withdrawn in a future Autoconf release.
2938 # They can cause serious problems if a builder's source tree is in a directory
2939 # whose full name contains unusual characters.
2940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2943
2944
2945 # Find a good install program.  We prefer a C program (faster),
2946 # so one script is as good as another.  But avoid the broken or
2947 # incompatible versions:
2948 # SysV /etc/install, /usr/sbin/install
2949 # SunOS /usr/etc/install
2950 # IRIX /sbin/install
2951 # AIX /bin/install
2952 # AmigaOS /C/install, which installs bootblocks on floppy discs
2953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956 # OS/2's system install, which has a completely different semantic
2957 # ./install, which can be erroneously created by make from ./install.sh.
2958 # Reject install programs that cannot install multiple files.
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2960 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2961 if test -z "$INSTALL"; then
2962 if ${ac_cv_path_install+:} false; then :
2963   $as_echo_n "(cached) " >&6
2964 else
2965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     # Account for people who put trailing slashes in PATH elements.
2971 case $as_dir/ in #((
2972   ./ | .// | /[cC]/* | \
2973   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2974   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2975   /usr/ucb/* ) ;;
2976   *)
2977     # OSF1 and SCO ODT 3.0 have their own names for install.
2978     # Don't use installbsd from OSF since it installs stuff as root
2979     # by default.
2980     for ac_prog in ginstall scoinst install; do
2981       for ac_exec_ext in '' $ac_executable_extensions; do
2982         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2983           if test $ac_prog = install &&
2984             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985             # AIX install.  It has an incompatible calling convention.
2986             :
2987           elif test $ac_prog = install &&
2988             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989             # program-specific install script used by HP pwplus--don't use.
2990             :
2991           else
2992             rm -rf conftest.one conftest.two conftest.dir
2993             echo one > conftest.one
2994             echo two > conftest.two
2995             mkdir conftest.dir
2996             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2997               test -s conftest.one && test -s conftest.two &&
2998               test -s conftest.dir/conftest.one &&
2999               test -s conftest.dir/conftest.two
3000             then
3001               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002               break 3
3003             fi
3004           fi
3005         fi
3006       done
3007     done
3008     ;;
3009 esac
3010
3011   done
3012 IFS=$as_save_IFS
3013
3014 rm -rf conftest.one conftest.two conftest.dir
3015
3016 fi
3017   if test "${ac_cv_path_install+set}" = set; then
3018     INSTALL=$ac_cv_path_install
3019   else
3020     # As a last resort, use the slow shell script.  Don't cache a
3021     # value for INSTALL within a source directory, because that will
3022     # break other packages using the cache if that directory is
3023     # removed, or if the value is a relative name.
3024     INSTALL=$ac_install_sh
3025   fi
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3028 $as_echo "$INSTALL" >&6; }
3029
3030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3031 # It thinks the first close brace ends the variable substitution.
3032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3033
3034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3035
3036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3037
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3039 $as_echo_n "checking whether build environment is sane... " >&6; }
3040 # Reject unsafe characters in $srcdir or the absolute working directory
3041 # name.  Accept space and tab only in the latter.
3042 am_lf='
3043 '
3044 case `pwd` in
3045   *[\\\"\#\$\&\'\`$am_lf]*)
3046     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3047 esac
3048 case $srcdir in
3049   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3050     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3051 esac
3052
3053 # Do 'set' in a subshell so we don't clobber the current shell's
3054 # arguments.  Must try -L first in case configure is actually a
3055 # symlink; some systems play weird games with the mod time of symlinks
3056 # (eg FreeBSD returns the mod time of the symlink's containing
3057 # directory).
3058 if (
3059    am_has_slept=no
3060    for am_try in 1 2; do
3061      echo "timestamp, slept: $am_has_slept" > conftest.file
3062      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3063      if test "$*" = "X"; then
3064         # -L didn't work.
3065         set X `ls -t "$srcdir/configure" conftest.file`
3066      fi
3067      if test "$*" != "X $srcdir/configure conftest.file" \
3068         && test "$*" != "X conftest.file $srcdir/configure"; then
3069
3070         # If neither matched, then we have a broken ls.  This can happen
3071         # if, for instance, CONFIG_SHELL is bash and it inherits a
3072         # broken ls alias from the environment.  This has actually
3073         # happened.  Such a system could not be considered "sane".
3074         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3075   alias in your environment" "$LINENO" 5
3076      fi
3077      if test "$2" = conftest.file || test $am_try -eq 2; then
3078        break
3079      fi
3080      # Just in case.
3081      sleep 1
3082      am_has_slept=yes
3083    done
3084    test "$2" = conftest.file
3085    )
3086 then
3087    # Ok.
3088    :
3089 else
3090    as_fn_error $? "newly created file is older than distributed files!
3091 Check your system clock" "$LINENO" 5
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3095 # If we didn't sleep, we still need to ensure time stamps of config.status and
3096 # generated files are strictly newer.
3097 am_sleep_pid=
3098 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3099   ( sleep 1 ) &
3100   am_sleep_pid=$!
3101 fi
3102
3103 rm -f conftest.file
3104
3105 test "$program_prefix" != NONE &&
3106   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3107 # Use a double $ so make ignores it.
3108 test "$program_suffix" != NONE &&
3109   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3110 # Double any \ or $.
3111 # By default was `s,x,x', remove it if useless.
3112 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3113 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3114
3115 # Expand $ac_aux_dir to an absolute path.
3116 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3117
3118 if test x"${MISSING+set}" != xset; then
3119   case $am_aux_dir in
3120   *\ * | *\     *)
3121     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3122   *)
3123     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3124   esac
3125 fi
3126 # Use eval to expand $SHELL
3127 if eval "$MISSING --is-lightweight"; then
3128   am_missing_run="$MISSING "
3129 else
3130   am_missing_run=
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3132 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3133 fi
3134
3135 if test x"${install_sh+set}" != xset; then
3136   case $am_aux_dir in
3137   *\ * | *\     *)
3138     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3139   *)
3140     install_sh="\${SHELL} $am_aux_dir/install-sh"
3141   esac
3142 fi
3143
3144 # Installed binaries are usually stripped using 'strip' when the user
3145 # run "make install-strip".  However 'strip' might not be the right
3146 # tool to use in cross-compilation environments, therefore Automake
3147 # will honor the 'STRIP' environment variable to overrule this program.
3148 if test "$cross_compiling" != no; then
3149   if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}strip; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_STRIP+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$STRIP"; then
3158   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 STRIP=$ac_cv_prog_STRIP
3178 if test -n "$STRIP"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3180 $as_echo "$STRIP" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_STRIP"; then
3189   ac_ct_STRIP=$STRIP
3190   # Extract the first word of "strip", so it can be a program name with args.
3191 set dummy strip; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_STRIP"; then
3198   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_prog_ac_ct_STRIP="strip"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3218 if test -n "$ac_ct_STRIP"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3220 $as_echo "$ac_ct_STRIP" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_STRIP" = x; then
3227     STRIP=":"
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     STRIP=$ac_ct_STRIP
3236   fi
3237 else
3238   STRIP="$ac_cv_prog_STRIP"
3239 fi
3240
3241 fi
3242 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3243
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3245 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3246 if test -z "$MKDIR_P"; then
3247   if ${ac_cv_path_mkdir+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_prog in mkdir gmkdir; do
3256          for ac_exec_ext in '' $ac_executable_extensions; do
3257            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3258            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3259              'mkdir (GNU coreutils) '* | \
3260              'mkdir (coreutils) '* | \
3261              'mkdir (fileutils) '4.1*)
3262                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3263                break 3;;
3264            esac
3265          done
3266        done
3267   done
3268 IFS=$as_save_IFS
3269
3270 fi
3271
3272   test -d ./--version && rmdir ./--version
3273   if test "${ac_cv_path_mkdir+set}" = set; then
3274     MKDIR_P="$ac_cv_path_mkdir -p"
3275   else
3276     # As a last resort, use the slow shell script.  Don't cache a
3277     # value for MKDIR_P within a source directory, because that will
3278     # break other packages using the cache if that directory is
3279     # removed, or if the value is a relative name.
3280     MKDIR_P="$ac_install_sh -d"
3281   fi
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3284 $as_echo "$MKDIR_P" >&6; }
3285
3286 for ac_prog in gawk mawk nawk awk
3287 do
3288   # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_AWK+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if test -n "$AWK"; then
3296   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303     for ac_exec_ext in '' $ac_executable_extensions; do
3304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_AWK="$ac_prog"
3306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310   done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 AWK=$ac_cv_prog_AWK
3316 if test -n "$AWK"; then
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3318 $as_echo "$AWK" >&6; }
3319 else
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325   test -n "$AWK" && break
3326 done
3327
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3329 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3330 set x ${MAKE-make}
3331 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3332 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   cat >conftest.make <<\_ACEOF
3336 SHELL = /bin/sh
3337 all:
3338         @echo '@@@%%%=$(MAKE)=@@@%%%'
3339 _ACEOF
3340 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3342   *@@@%%%=?*=@@@%%%*)
3343     eval ac_cv_prog_make_${ac_make}_set=yes;;
3344   *)
3345     eval ac_cv_prog_make_${ac_make}_set=no;;
3346 esac
3347 rm -f conftest.make
3348 fi
3349 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3352   SET_MAKE=
3353 else
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356   SET_MAKE="MAKE=${MAKE-make}"
3357 fi
3358
3359 rm -rf .tst 2>/dev/null
3360 mkdir .tst 2>/dev/null
3361 if test -d .tst; then
3362   am__leading_dot=.
3363 else
3364   am__leading_dot=_
3365 fi
3366 rmdir .tst 2>/dev/null
3367
3368 # Check whether --enable-silent-rules was given.
3369 if test "${enable_silent_rules+set}" = set; then :
3370   enableval=$enable_silent_rules;
3371 fi
3372
3373 case $enable_silent_rules in # (((
3374   yes) AM_DEFAULT_VERBOSITY=0;;
3375    no) AM_DEFAULT_VERBOSITY=1;;
3376     *) AM_DEFAULT_VERBOSITY=1;;
3377 esac
3378 am_make=${MAKE-make}
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3380 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3381 if ${am_cv_make_support_nested_variables+:} false; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   if $as_echo 'TRUE=$(BAR$(V))
3385 BAR0=false
3386 BAR1=true
3387 V=1
3388 am__doit:
3389         @$(TRUE)
3390 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3391   am_cv_make_support_nested_variables=yes
3392 else
3393   am_cv_make_support_nested_variables=no
3394 fi
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3397 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3398 if test $am_cv_make_support_nested_variables = yes; then
3399     AM_V='$(V)'
3400   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3401 else
3402   AM_V=$AM_DEFAULT_VERBOSITY
3403   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3404 fi
3405 AM_BACKSLASH='\'
3406
3407 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3408   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3409   # is not polluted with repeated "-I."
3410   am__isrc=' -I$(srcdir)'
3411   # test to see if srcdir already configured
3412   if test -f $srcdir/config.status; then
3413     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3414   fi
3415 fi
3416
3417 # test whether we have cygpath
3418 if test -z "$CYGPATH_W"; then
3419   if (cygpath --version) >/dev/null 2>/dev/null; then
3420     CYGPATH_W='cygpath -w'
3421   else
3422     CYGPATH_W=echo
3423   fi
3424 fi
3425
3426
3427 # Define the identity of the package.
3428  PACKAGE='harfbuzz'
3429  VERSION='2.6.4'
3430
3431
3432 # Some tools Automake needs.
3433
3434 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3435
3436
3437 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3438
3439
3440 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3441
3442
3443 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3444
3445
3446 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447
3448 # For better backward compatibility.  To be removed once Automake 1.9.x
3449 # dies out for good.  For more background, see:
3450 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452 mkdir_p='$(MKDIR_P)'
3453
3454 # We need awk for the "check" target (and possibly the TAP driver).  The
3455 # system "awk" is bad on some platforms.
3456 # Always define AMTAR for backward compatibility.  Yes, it's still used
3457 # in the wild :-(  We should find a proper way to deprecate it ...
3458 AMTAR='$${TAR-tar}'
3459
3460
3461 # We'll loop over all known methods to create a tar archive until one works.
3462 _am_tools='gnutar plaintar pax cpio none'
3463
3464 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3465       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3466       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3467       # and bug#13588).
3468       am_max_uid=2097151 # 2^21 - 1
3469       am_max_gid=$am_max_uid
3470       # The $UID and $GID variables are not portable, so we need to resort
3471       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3472       # below are definitely unexpected, so allow the users to see them
3473       # (that is, avoid stderr redirection).
3474       am_uid=`id -u || echo unknown`
3475       am_gid=`id -g || echo unknown`
3476       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3477 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3478       if test $am_uid -le $am_max_uid; then
3479          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 $as_echo "yes" >&6; }
3481       else
3482          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484          _am_tools=none
3485       fi
3486       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3487 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3488       if test $am_gid -le $am_max_gid; then
3489          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3491       else
3492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494         _am_tools=none
3495       fi
3496
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3498 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3499
3500   # Go ahead even if we have the value already cached.  We do so because we
3501   # need to set the values for the 'am__tar' and 'am__untar' variables.
3502   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3503
3504   for _am_tool in $_am_tools; do
3505     case $_am_tool in
3506     gnutar)
3507       for _am_tar in tar gnutar gtar; do
3508         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3509    ($_am_tar --version) >&5 2>&5
3510    ac_status=$?
3511    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512    (exit $ac_status); } && break
3513       done
3514       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3515       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3516       am__untar="$_am_tar -xf -"
3517       ;;
3518     plaintar)
3519       # Must skip GNU tar: if it does not support --format= it doesn't create
3520       # ustar tarball either.
3521       (tar --version) >/dev/null 2>&1 && continue
3522       am__tar='tar chf - "$$tardir"'
3523       am__tar_='tar chf - "$tardir"'
3524       am__untar='tar xf -'
3525       ;;
3526     pax)
3527       am__tar='pax -L -x ustar -w "$$tardir"'
3528       am__tar_='pax -L -x ustar -w "$tardir"'
3529       am__untar='pax -r'
3530       ;;
3531     cpio)
3532       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3533       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3534       am__untar='cpio -i -H ustar -d'
3535       ;;
3536     none)
3537       am__tar=false
3538       am__tar_=false
3539       am__untar=false
3540       ;;
3541     esac
3542
3543     # If the value was cached, stop now.  We just wanted to have am__tar
3544     # and am__untar set.
3545     test -n "${am_cv_prog_tar_ustar}" && break
3546
3547     # tar/untar a dummy directory, and stop if the command works.
3548     rm -rf conftest.dir
3549     mkdir conftest.dir
3550     echo GrepMe > conftest.dir/file
3551     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3552    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3553    ac_status=$?
3554    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555    (exit $ac_status); }
3556     rm -rf conftest.dir
3557     if test -s conftest.tar; then
3558       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3559    ($am__untar <conftest.tar) >&5 2>&5
3560    ac_status=$?
3561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562    (exit $ac_status); }
3563       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3564    (cat conftest.dir/file) >&5 2>&5
3565    ac_status=$?
3566    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567    (exit $ac_status); }
3568       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3569     fi
3570   done
3571   rm -rf conftest.dir
3572
3573   if ${am_cv_prog_tar_ustar+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   am_cv_prog_tar_ustar=$_am_tool
3577 fi
3578
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3580 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3581
3582
3583
3584
3585
3586
3587 # POSIX will say in a future version that running "rm -f" with no argument
3588 # is OK; and we want to be able to make that assumption in our Makefile
3589 # recipes.  So use an aggressive probe to check that the usage we want is
3590 # actually supported "in the wild" to an acceptable degree.
3591 # See automake bug#10828.
3592 # To make any issue more visible, cause the running configure to be aborted
3593 # by default if the 'rm' program in use doesn't match our expectations; the
3594 # user can still override this though.
3595 if rm -f && rm -fr && rm -rf; then : OK; else
3596   cat >&2 <<'END'
3597 Oops!
3598
3599 Your 'rm' program seems unable to run without file operands specified
3600 on the command line, even when the '-f' option is present.  This is contrary
3601 to the behaviour of most rm programs out there, and not conforming with
3602 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3603
3604 Please tell bug-automake@gnu.org about your system, including the value
3605 of your $PATH and any error possibly output before this message.  This
3606 can help us improve future automake versions.
3607
3608 END
3609   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3610     echo 'Configuration will proceed anyway, since you have set the' >&2
3611     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3612     echo >&2
3613   else
3614     cat >&2 <<'END'
3615 Aborting the configuration process, to ensure you take notice of the issue.
3616
3617 You can download and install GNU coreutils to get an 'rm' implementation
3618 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3619
3620 If you want to complete the configuration process using your problematic
3621 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3622 to "yes", and re-run configure.
3623
3624 END
3625     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3626   fi
3627 fi
3628
3629 # Check whether --enable-silent-rules was given.
3630 if test "${enable_silent_rules+set}" = set; then :
3631   enableval=$enable_silent_rules;
3632 fi
3633
3634 case $enable_silent_rules in # (((
3635   yes) AM_DEFAULT_VERBOSITY=0;;
3636    no) AM_DEFAULT_VERBOSITY=1;;
3637     *) AM_DEFAULT_VERBOSITY=0;;
3638 esac
3639 am_make=${MAKE-make}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3641 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3642 if ${am_cv_make_support_nested_variables+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if $as_echo 'TRUE=$(BAR$(V))
3646 BAR0=false
3647 BAR1=true
3648 V=1
3649 am__doit:
3650         @$(TRUE)
3651 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3652   am_cv_make_support_nested_variables=yes
3653 else
3654   am_cv_make_support_nested_variables=no
3655 fi
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3659 if test $am_cv_make_support_nested_variables = yes; then
3660     AM_V='$(V)'
3661   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3662 else
3663   AM_V=$AM_DEFAULT_VERBOSITY
3664   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3665 fi
3666 AM_BACKSLASH='\'
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3670 if ${ac_cv_path_SED+:} false; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3674      for ac_i in 1 2 3 4 5 6 7; do
3675        ac_script="$ac_script$as_nl$ac_script"
3676      done
3677      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3678      { ac_script=; unset ac_script;}
3679      if test -z "$SED"; then
3680   ac_path_SED_found=false
3681   # Loop through the user's path and test for each of PROGNAME-LIST
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_prog in sed gsed; do
3688     for ac_exec_ext in '' $ac_executable_extensions; do
3689       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3690       as_fn_executable_p "$ac_path_SED" || continue
3691 # Check for GNU ac_path_SED and select it if it is found.
3692   # Check for GNU $ac_path_SED
3693 case `"$ac_path_SED" --version 2>&1` in
3694 *GNU*)
3695   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3696 *)
3697   ac_count=0
3698   $as_echo_n 0123456789 >"conftest.in"
3699   while :
3700   do
3701     cat "conftest.in" "conftest.in" >"conftest.tmp"
3702     mv "conftest.tmp" "conftest.in"
3703     cp "conftest.in" "conftest.nl"
3704     $as_echo '' >> "conftest.nl"
3705     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707     as_fn_arith $ac_count + 1 && ac_count=$as_val
3708     if test $ac_count -gt ${ac_path_SED_max-0}; then
3709       # Best one so far, save it but keep looking for a better one
3710       ac_cv_path_SED="$ac_path_SED"
3711       ac_path_SED_max=$ac_count
3712     fi
3713     # 10*(2^10) chars as input seems more than enough
3714     test $ac_count -gt 10 && break
3715   done
3716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 esac
3718
3719       $ac_path_SED_found && break 3
3720     done
3721   done
3722   done
3723 IFS=$as_save_IFS
3724   if test -z "$ac_cv_path_SED"; then
3725     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3726   fi
3727 else
3728   ac_cv_path_SED=$SED
3729 fi
3730
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3733 $as_echo "$ac_cv_path_SED" >&6; }
3734  SED="$ac_cv_path_SED"
3735   rm -f conftest.sed
3736
3737
3738
3739
3740         # allow to override gcov location
3741
3742 # Check whether --with-gcov was given.
3743 if test "${with_gcov+set}" = set; then :
3744   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3745 else
3746   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3747 fi
3748
3749
3750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3751 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3752         # Check whether --enable-code-coverage was given.
3753 if test "${enable_code_coverage+set}" = set; then :
3754   enableval=$enable_code_coverage;
3755 else
3756   enable_code_coverage=no
3757 fi
3758
3759
3760          if test x$enable_code_coverage = xyes; then
3761   CODE_COVERAGE_ENABLED_TRUE=
3762   CODE_COVERAGE_ENABLED_FALSE='#'
3763 else
3764   CODE_COVERAGE_ENABLED_TRUE='#'
3765   CODE_COVERAGE_ENABLED_FALSE=
3766 fi
3767
3768         CODE_COVERAGE_ENABLED=$enable_code_coverage
3769
3770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3771 $as_echo "$enable_code_coverage" >&6; }
3772
3773         if  test "$enable_code_coverage" = "yes" ; then :
3774
3775                 # check for gcov
3776                 if test -n "$ac_tool_prefix"; then
3777   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_GCOV+:} false; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   if test -n "$GCOV"; then
3785   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790   IFS=$as_save_IFS
3791   test -z "$as_dir" && as_dir=.
3792     for ac_exec_ext in '' $ac_executable_extensions; do
3793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796     break 2
3797   fi
3798 done
3799   done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 GCOV=$ac_cv_prog_GCOV
3805 if test -n "$GCOV"; then
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3807 $as_echo "$GCOV" >&6; }
3808 else
3809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814 fi
3815 if test -z "$ac_cv_prog_GCOV"; then
3816   ac_ct_GCOV=$GCOV
3817   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3818 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   if test -n "$ac_ct_GCOV"; then
3825   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830   IFS=$as_save_IFS
3831   test -z "$as_dir" && as_dir=.
3832     for ac_exec_ext in '' $ac_executable_extensions; do
3833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836     break 2
3837   fi
3838 done
3839   done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3845 if test -n "$ac_ct_GCOV"; then
3846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3847 $as_echo "$ac_ct_GCOV" >&6; }
3848 else
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 fi
3852
3853   if test "x$ac_ct_GCOV" = x; then
3854     GCOV=":"
3855   else
3856     case $cross_compiling:$ac_tool_warned in
3857 yes:)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3861 esac
3862     GCOV=$ac_ct_GCOV
3863   fi
3864 else
3865   GCOV="$ac_cv_prog_GCOV"
3866 fi
3867
3868                 if test "X$GCOV" = "X:"; then :
3869   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3870 fi
3871
3872
3873                                 if  test "$GCC" = "no" ; then :
3874
3875                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3876
3877 fi
3878
3879                 # Extract the first word of "lcov", so it can be a program name with args.
3880 set dummy lcov; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_LCOV+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   if test -n "$LCOV"; then
3887   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894     for ac_exec_ext in '' $ac_executable_extensions; do
3895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_prog_LCOV="lcov"
3897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901   done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 LCOV=$ac_cv_prog_LCOV
3907 if test -n "$LCOV"; then
3908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3909 $as_echo "$LCOV" >&6; }
3910 else
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3913 fi
3914
3915
3916                 # Extract the first word of "genhtml", so it can be a program name with args.
3917 set dummy genhtml; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_GENHTML+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   if test -n "$GENHTML"; then
3924   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931     for ac_exec_ext in '' $ac_executable_extensions; do
3932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933     ac_cv_prog_GENHTML="genhtml"
3934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935     break 2
3936   fi
3937 done
3938   done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 GENHTML=$ac_cv_prog_GENHTML
3944 if test -n "$GENHTML"; then
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3946 $as_echo "$GENHTML" >&6; }
3947 else
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953
3954                 if  test -z "$LCOV" ; then :
3955
3956                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3957
3958 fi
3959
3960                 if  test -z "$GENHTML" ; then :
3961
3962                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3963
3964 fi
3965
3966                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3967                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3968                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3969                 CODE_COVERAGE_LIBS="-lgcov"
3970                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3971
3972
3973
3974
3975
3976
3977
3978                 CODE_COVERAGE_RULES_CHECK='
3979         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3980         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3981 '
3982                 CODE_COVERAGE_RULES_CAPTURE='
3983         $(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)
3984         $(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)
3985         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3986         $(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)
3987         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3988 '
3989                 CODE_COVERAGE_RULES_CLEAN='
3990 clean: code-coverage-clean
3991 distclean: code-coverage-clean
3992 code-coverage-clean:
3993         -$(LCOV) --directory $(top_builddir) -z
3994         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3995         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3996 '
3997
3998 else
3999
4000                 CODE_COVERAGE_RULES_CHECK='
4001         @echo "Need to reconfigure with --enable-code-coverage"
4002 '
4003                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4004                 CODE_COVERAGE_RULES_CLEAN=''
4005
4006 fi
4007
4008 CODE_COVERAGE_RULES='
4009 # Code coverage
4010 #
4011 # Optional:
4012 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4013 #    Multiple directories may be specified, separated by whitespace.
4014 #    (Default: $(top_builddir))
4015 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4016 #    by lcov for code coverage. (Default:
4017 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4018 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4019 #    reports to be created. (Default:
4020 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4021 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4022 #    set to 0 to disable it and leave empty to stay with the default.
4023 #    (Default: empty)
4024 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4025 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4026 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4027 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4028 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4029 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4030 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4031 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4032 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4033 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4034 #    lcov instance. (Default: empty)
4035 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4036 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4037 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4038 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4039 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4040 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4041 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4042 #
4043 # The generated report will be titled using the $(PACKAGE_NAME) and
4044 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4045 # use the git-version-gen script, available online.
4046
4047 # Optional variables
4048 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4049 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4050 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4051 CODE_COVERAGE_BRANCH_COVERAGE ?=
4052 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4053 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4054 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4055 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4056 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4057 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4058 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4059 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4060 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4061 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4062 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4063 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4064 CODE_COVERAGE_IGNORE_PATTERN ?=
4065
4066 GITIGNOREFILES ?=
4067 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4068
4069 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4070 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4071 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4072  $(CODE_COVERAGE_OUTPUT_FILE);
4073 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4074 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4075 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4076  $(CODE_COVERAGE_IGNORE_PATTERN);
4077 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4078 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4079 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4080 code_coverage_quiet = $(code_coverage_quiet_$(V))
4081 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4082 code_coverage_quiet_0 = --quiet
4083
4084 # sanitizes the test-name: replaces with underscores: dashes and dots
4085 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4086
4087 # Use recursive makes in order to ignore errors during check
4088 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4089
4090 # Capture code coverage data
4091 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4092
4093 # Hook rule executed before code-coverage-capture, overridable by the user
4094 code-coverage-capture-hook:
4095
4096 '"$CODE_COVERAGE_RULES_CLEAN"'
4097
4098 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4099 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4100
4101 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4102 '
4103
4104
4105
4106
4107
4108 # Initialize libtool
4109 DEPDIR="${am__leading_dot}deps"
4110
4111 ac_config_commands="$ac_config_commands depfiles"
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4114 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4115 cat > confinc.mk << 'END'
4116 am__doit:
4117         @echo this is the am__doit target >confinc.out
4118 .PHONY: am__doit
4119 END
4120 am__include="#"
4121 am__quote=
4122 # BSD make does it like this.
4123 echo '.include "confinc.mk" # ignored' > confmf.BSD
4124 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4125 echo 'include confinc.mk # ignored' > confmf.GNU
4126 _am_result=no
4127 for s in GNU BSD; do
4128   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4129    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4130    ac_status=$?
4131    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132    (exit $ac_status); }
4133   case $?:`cat confinc.out 2>/dev/null` in #(
4134   '0:this is the am__doit target') :
4135     case $s in #(
4136   BSD) :
4137     am__include='.include' am__quote='"' ;; #(
4138   *) :
4139     am__include='include' am__quote='' ;;
4140 esac ;; #(
4141   *) :
4142      ;;
4143 esac
4144   if test "$am__include" != "#"; then
4145     _am_result="yes ($s style)"
4146     break
4147   fi
4148 done
4149 rm -f confinc.* confmf.*
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4151 $as_echo "${_am_result}" >&6; }
4152
4153 # Check whether --enable-dependency-tracking was given.
4154 if test "${enable_dependency_tracking+set}" = set; then :
4155   enableval=$enable_dependency_tracking;
4156 fi
4157
4158 if test "x$enable_dependency_tracking" != xno; then
4159   am_depcomp="$ac_aux_dir/depcomp"
4160   AMDEPBACKSLASH='\'
4161   am__nodep='_no'
4162 fi
4163  if test "x$enable_dependency_tracking" != xno; then
4164   AMDEP_TRUE=
4165   AMDEP_FALSE='#'
4166 else
4167   AMDEP_TRUE='#'
4168   AMDEP_FALSE=
4169 fi
4170
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if test -n "$CC"; then
4186   ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_exec_ext in '' $ac_executable_extensions; do
4194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200   done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 CC=$ac_cv_prog_CC
4206 if test -n "$CC"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215 fi
4216 if test -z "$ac_cv_prog_CC"; then
4217   ac_ct_CC=$CC
4218   # Extract the first word of "gcc", so it can be a program name with args.
4219 set dummy gcc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$ac_ct_CC"; then
4226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233     for ac_exec_ext in '' $ac_executable_extensions; do
4234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_ac_ct_CC="gcc"
4236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240   done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254   if test "x$ac_ct_CC" = x; then
4255     CC=""
4256   else
4257     case $cross_compiling:$ac_tool_warned in
4258 yes:)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263     CC=$ac_ct_CC
4264   fi
4265 else
4266   CC="$ac_cv_prog_CC"
4267 fi
4268
4269 if test -z "$CC"; then
4270           if test -n "$ac_tool_prefix"; then
4271     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if test -n "$CC"; then
4279   ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286     for ac_exec_ext in '' $ac_executable_extensions; do
4287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288     ac_cv_prog_CC="${ac_tool_prefix}cc"
4289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293   done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 CC=$ac_cv_prog_CC
4299 if test -n "$CC"; then
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4302 else
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4305 fi
4306
4307
4308   fi
4309 fi
4310 if test -z "$CC"; then
4311   # Extract the first word of "cc", so it can be a program name with args.
4312 set dummy cc; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_CC+:} false; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   if test -n "$CC"; then
4319   ac_cv_prog_CC="$CC" # Let the user override the test.
4320 else
4321   ac_prog_rejected=no
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4330        ac_prog_rejected=yes
4331        continue
4332      fi
4333     ac_cv_prog_CC="cc"
4334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338   done
4339 IFS=$as_save_IFS
4340
4341 if test $ac_prog_rejected = yes; then
4342   # We found a bogon in the path, so make sure we never use it.
4343   set dummy $ac_cv_prog_CC
4344   shift
4345   if test $# != 0; then
4346     # We chose a different compiler from the bogus one.
4347     # However, it has the same basename, so the bogon will be chosen
4348     # first if we set CC to just the basename; use the full file name.
4349     shift
4350     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4351   fi
4352 fi
4353 fi
4354 fi
4355 CC=$ac_cv_prog_CC
4356 if test -n "$CC"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4358 $as_echo "$CC" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364
4365 fi
4366 if test -z "$CC"; then
4367   if test -n "$ac_tool_prefix"; then
4368   for ac_prog in cl.exe
4369   do
4370     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_CC+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if test -n "$CC"; then
4378   ac_cv_prog_CC="$CC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 CC=$ac_cv_prog_CC
4398 if test -n "$CC"; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4400 $as_echo "$CC" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407     test -n "$CC" && break
4408   done
4409 fi
4410 if test -z "$CC"; then
4411   ac_ct_CC=$CC
4412   for ac_prog in cl.exe
4413 do
4414   # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$ac_ct_CC"; then
4422   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     ac_cv_prog_ac_ct_CC="$ac_prog"
4432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436   done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4442 if test -n "$ac_ct_CC"; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4444 $as_echo "$ac_ct_CC" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451   test -n "$ac_ct_CC" && break
4452 done
4453
4454   if test "x$ac_ct_CC" = x; then
4455     CC=""
4456   else
4457     case $cross_compiling:$ac_tool_warned in
4458 yes:)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461 ac_tool_warned=yes ;;
4462 esac
4463     CC=$ac_ct_CC
4464   fi
4465 fi
4466
4467 fi
4468
4469
4470 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "no acceptable C compiler found in \$PATH
4473 See \`config.log' for more details" "$LINENO" 5; }
4474
4475 # Provide some information about the compiler.
4476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4477 set X $ac_compile
4478 ac_compiler=$2
4479 for ac_option in --version -v -V -qversion; do
4480   { { ac_try="$ac_compiler $ac_option >&5"
4481 case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4488   ac_status=$?
4489   if test -s conftest.err; then
4490     sed '10a\
4491 ... rest of stderr output deleted ...
4492          10q' conftest.err >conftest.er1
4493     cat conftest.er1 >&5
4494   fi
4495   rm -f conftest.er1 conftest.err
4496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497   test $ac_status = 0; }
4498 done
4499
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h.  */
4502
4503 int
4504 main ()
4505 {
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 ac_clean_files_save=$ac_clean_files
4512 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4513 # Try to create an executable without -o first, disregard a.out.
4514 # It will help us diagnose broken compilers, and finding out an intuition
4515 # of exeext.
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4517 $as_echo_n "checking whether the C compiler works... " >&6; }
4518 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4519
4520 # The possible output files:
4521 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4522
4523 ac_rmfiles=
4524 for ac_file in $ac_files
4525 do
4526   case $ac_file in
4527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4529   esac
4530 done
4531 rm -f $ac_rmfiles
4532
4533 if { { ac_try="$ac_link_default"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540   (eval "$ac_link_default") 2>&5
4541   ac_status=$?
4542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543   test $ac_status = 0; }; then :
4544   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4545 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4546 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4547 # so that the user can short-circuit this test for compilers unknown to
4548 # Autoconf.
4549 for ac_file in $ac_files ''
4550 do
4551   test -f "$ac_file" || continue
4552   case $ac_file in
4553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4554         ;;
4555     [ab].out )
4556         # We found the default executable, but exeext='' is most
4557         # certainly right.
4558         break;;
4559     *.* )
4560         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4561         then :; else
4562            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4563         fi
4564         # We set ac_cv_exeext here because the later test for it is not
4565         # safe: cross compilers may not add the suffix if given an `-o'
4566         # argument, so we may need to know it at that point already.
4567         # Even if this section looks crufty: it has the advantage of
4568         # actually working.
4569         break;;
4570     * )
4571         break;;
4572   esac
4573 done
4574 test "$ac_cv_exeext" = no && ac_cv_exeext=
4575
4576 else
4577   ac_file=''
4578 fi
4579 if test -z "$ac_file"; then :
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error 77 "C compiler cannot create executables
4588 See \`config.log' for more details" "$LINENO" 5; }
4589 else
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4594 $as_echo_n "checking for C compiler default output file name... " >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4596 $as_echo "$ac_file" >&6; }
4597 ac_exeext=$ac_cv_exeext
4598
4599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4600 ac_clean_files=$ac_clean_files_save
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4602 $as_echo_n "checking for suffix of executables... " >&6; }
4603 if { { ac_try="$ac_link"
4604 case "(($ac_try" in
4605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606   *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610   (eval "$ac_link") 2>&5
4611   ac_status=$?
4612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613   test $ac_status = 0; }; then :
4614   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4615 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4616 # work properly (i.e., refer to `conftest.exe'), while it won't with
4617 # `rm'.
4618 for ac_file in conftest.exe conftest conftest.*; do
4619   test -f "$ac_file" || continue
4620   case $ac_file in
4621     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4622     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4623           break;;
4624     * ) break;;
4625   esac
4626 done
4627 else
4628   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4631 See \`config.log' for more details" "$LINENO" 5; }
4632 fi
4633 rm -f conftest conftest$ac_cv_exeext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4635 $as_echo "$ac_cv_exeext" >&6; }
4636
4637 rm -f conftest.$ac_ext
4638 EXEEXT=$ac_cv_exeext
4639 ac_exeext=$EXEEXT
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642 #include <stdio.h>
4643 int
4644 main ()
4645 {
4646 FILE *f = fopen ("conftest.out", "w");
4647  return ferror (f) || fclose (f) != 0;
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 ac_clean_files="$ac_clean_files conftest.out"
4654 # Check that the compiler produces executables we can run.  If not, either
4655 # the compiler is broken, or we cross compile.
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4657 $as_echo_n "checking whether we are cross compiling... " >&6; }
4658 if test "$cross_compiling" != yes; then
4659   { { ac_try="$ac_link"
4660 case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666   (eval "$ac_link") 2>&5
4667   ac_status=$?
4668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669   test $ac_status = 0; }
4670   if { ac_try='./conftest$ac_cv_exeext'
4671   { { case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677   (eval "$ac_try") 2>&5
4678   ac_status=$?
4679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680   test $ac_status = 0; }; }; then
4681     cross_compiling=no
4682   else
4683     if test "$cross_compiling" = maybe; then
4684         cross_compiling=yes
4685     else
4686         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error $? "cannot run C compiled programs.
4689 If you meant to cross compile, use \`--host'.
4690 See \`config.log' for more details" "$LINENO" 5; }
4691     fi
4692   fi
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4695 $as_echo "$cross_compiling" >&6; }
4696
4697 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4698 ac_clean_files=$ac_clean_files_save
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4700 $as_echo_n "checking for suffix of object files... " >&6; }
4701 if ${ac_cv_objext+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h.  */
4706
4707 int
4708 main ()
4709 {
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.o conftest.obj
4716 if { { ac_try="$ac_compile"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723   (eval "$ac_compile") 2>&5
4724   ac_status=$?
4725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726   test $ac_status = 0; }; then :
4727   for ac_file in conftest.o conftest.obj conftest.*; do
4728   test -f "$ac_file" || continue;
4729   case $ac_file in
4730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4731     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4732        break;;
4733   esac
4734 done
4735 else
4736   $as_echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "cannot compute suffix of object files: cannot compile
4742 See \`config.log' for more details" "$LINENO" 5; }
4743 fi
4744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4747 $as_echo "$ac_cv_objext" >&6; }
4748 OBJEXT=$ac_cv_objext
4749 ac_objext=$OBJEXT
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4752 if ${ac_cv_c_compiler_gnu+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h.  */
4757
4758 int
4759 main ()
4760 {
4761 #ifndef __GNUC__
4762        choke me
4763 #endif
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770   ac_compiler_gnu=yes
4771 else
4772   ac_compiler_gnu=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4780 if test $ac_compiler_gnu = yes; then
4781   GCC=yes
4782 else
4783   GCC=
4784 fi
4785 ac_test_CFLAGS=${CFLAGS+set}
4786 ac_save_CFLAGS=$CFLAGS
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4789 if ${ac_cv_prog_cc_g+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   ac_save_c_werror_flag=$ac_c_werror_flag
4793    ac_c_werror_flag=yes
4794    ac_cv_prog_cc_g=no
4795    CFLAGS="-g"
4796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808   ac_cv_prog_cc_g=yes
4809 else
4810   CFLAGS=""
4811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h.  */
4813
4814 int
4815 main ()
4816 {
4817
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823
4824 else
4825   ac_c_werror_flag=$ac_save_c_werror_flag
4826          CFLAGS="-g"
4827          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829
4830 int
4831 main ()
4832 {
4833
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4839   ac_cv_prog_cc_g=yes
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846    ac_c_werror_flag=$ac_save_c_werror_flag
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4849 $as_echo "$ac_cv_prog_cc_g" >&6; }
4850 if test "$ac_test_CFLAGS" = set; then
4851   CFLAGS=$ac_save_CFLAGS
4852 elif test $ac_cv_prog_cc_g = yes; then
4853   if test "$GCC" = yes; then
4854     CFLAGS="-g -O2"
4855   else
4856     CFLAGS="-g"
4857   fi
4858 else
4859   if test "$GCC" = yes; then
4860     CFLAGS="-O2"
4861   else
4862     CFLAGS=
4863   fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4867 if ${ac_cv_prog_cc_c89+:} false; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   ac_cv_prog_cc_c89=no
4871 ac_save_CC=$CC
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #include <stdarg.h>
4875 #include <stdio.h>
4876 struct stat;
4877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4878 struct buf { int x; };
4879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4880 static char *e (p, i)
4881      char **p;
4882      int i;
4883 {
4884   return p[i];
4885 }
4886 static char *f (char * (*g) (char **, int), char **p, ...)
4887 {
4888   char *s;
4889   va_list v;
4890   va_start (v,p);
4891   s = g (p, va_arg (v,int));
4892   va_end (v);
4893   return s;
4894 }
4895
4896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4897    function prototypes and stuff, but not '\xHH' hex character constants.
4898    These don't provoke an error unfortunately, instead are silently treated
4899    as 'x'.  The following induces an error, until -std is added to get
4900    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4901    array size at least.  It's necessary to write '\x00'==0 to get something
4902    that's true only with -std.  */
4903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4904
4905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4906    inside strings and character constants.  */
4907 #define FOO(x) 'x'
4908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4909
4910 int test (int i, double x);
4911 struct s1 {int (*f) (int a);};
4912 struct s2 {int (*f) (double a);};
4913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4914 int argc;
4915 char **argv;
4916 int
4917 main ()
4918 {
4919 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4925         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4926 do
4927   CC="$ac_save_CC $ac_arg"
4928   if ac_fn_c_try_compile "$LINENO"; then :
4929   ac_cv_prog_cc_c89=$ac_arg
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext
4932   test "x$ac_cv_prog_cc_c89" != "xno" && break
4933 done
4934 rm -f conftest.$ac_ext
4935 CC=$ac_save_CC
4936
4937 fi
4938 # AC_CACHE_VAL
4939 case "x$ac_cv_prog_cc_c89" in
4940   x)
4941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4942 $as_echo "none needed" >&6; } ;;
4943   xno)
4944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4945 $as_echo "unsupported" >&6; } ;;
4946   *)
4947     CC="$CC $ac_cv_prog_cc_c89"
4948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4950 esac
4951 if test "x$ac_cv_prog_cc_c89" != xno; then :
4952
4953 fi
4954
4955 ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4967 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4968 if ${am_cv_prog_cc_c_o+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973
4974 int
4975 main ()
4976 {
4977
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982   # Make sure it works both with $CC and with simple cc.
4983   # Following AC_PROG_CC_C_O, we do the test twice because some
4984   # compilers refuse to overwrite an existing .o file with -o,
4985   # though they will create one.
4986   am_cv_prog_cc_c_o=yes
4987   for am_i in 1 2; do
4988     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4989    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4990    ac_status=$?
4991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992    (exit $ac_status); } \
4993          && test -f conftest2.$ac_objext; then
4994       : OK
4995     else
4996       am_cv_prog_cc_c_o=no
4997       break
4998     fi
4999   done
5000   rm -f core conftest*
5001   unset am_i
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5004 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5005 if test "$am_cv_prog_cc_c_o" != yes; then
5006    # Losing compiler, so override with the script.
5007    # FIXME: It is wrong to rewrite CC.
5008    # But if we don't then we get into trouble of one sort or another.
5009    # A longer-term fix would be to have automake use am__CC in this case,
5010    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5011    CC="$am_aux_dir/compile $CC"
5012 fi
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020 depcc="$CC"   am_compiler_list=
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5023 $as_echo_n "checking dependency style of $depcc... " >&6; }
5024 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5028   # We make a subdir and do the tests there.  Otherwise we can end up
5029   # making bogus files that we don't know about and never remove.  For
5030   # instance it was reported that on HP-UX the gcc test will end up
5031   # making a dummy file named 'D' -- because '-MD' means "put the output
5032   # in D".
5033   rm -rf conftest.dir
5034   mkdir conftest.dir
5035   # Copy depcomp to subdir because otherwise we won't find it if we're
5036   # using a relative directory.
5037   cp "$am_depcomp" conftest.dir
5038   cd conftest.dir
5039   # We will build objects and dependencies in a subdirectory because
5040   # it helps to detect inapplicable dependency modes.  For instance
5041   # both Tru64's cc and ICC support -MD to output dependencies as a
5042   # side effect of compilation, but ICC will put the dependencies in
5043   # the current directory while Tru64 will put them in the object
5044   # directory.
5045   mkdir sub
5046
5047   am_cv_CC_dependencies_compiler_type=none
5048   if test "$am_compiler_list" = ""; then
5049      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5050   fi
5051   am__universal=false
5052   case " $depcc " in #(
5053      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5054      esac
5055
5056   for depmode in $am_compiler_list; do
5057     # Setup a source with many dependencies, because some compilers
5058     # like to wrap large dependency lists on column 80 (with \), and
5059     # we should not choose a depcomp mode which is confused by this.
5060     #
5061     # We need to recreate these files for each test, as the compiler may
5062     # overwrite some of them when testing with obscure command lines.
5063     # This happens at least with the AIX C compiler.
5064     : > sub/conftest.c
5065     for i in 1 2 3 4 5 6; do
5066       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5067       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5068       # Solaris 10 /bin/sh.
5069       echo '/* dummy */' > sub/conftst$i.h
5070     done
5071     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5072
5073     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5074     # mode.  It turns out that the SunPro C++ compiler does not properly
5075     # handle '-M -o', and we need to detect this.  Also, some Intel
5076     # versions had trouble with output in subdirs.
5077     am__obj=sub/conftest.${OBJEXT-o}
5078     am__minus_obj="-o $am__obj"
5079     case $depmode in
5080     gcc)
5081       # This depmode causes a compiler race in universal mode.
5082       test "$am__universal" = false || continue
5083       ;;
5084     nosideeffect)
5085       # After this tag, mechanisms are not by side-effect, so they'll
5086       # only be used when explicitly requested.
5087       if test "x$enable_dependency_tracking" = xyes; then
5088         continue
5089       else
5090         break
5091       fi
5092       ;;
5093     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5094       # This compiler won't grok '-c -o', but also, the minuso test has
5095       # not run yet.  These depmodes are late enough in the game, and
5096       # so weak that their functioning should not be impacted.
5097       am__obj=conftest.${OBJEXT-o}
5098       am__minus_obj=
5099       ;;
5100     none) break ;;
5101     esac
5102     if depmode=$depmode \
5103        source=sub/conftest.c object=$am__obj \
5104        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5105        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5106          >/dev/null 2>conftest.err &&
5107        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5108        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5109        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5110        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5111       # icc doesn't choke on unknown options, it will just issue warnings
5112       # or remarks (even with -Werror).  So we grep stderr for any message
5113       # that says an option was ignored or not supported.
5114       # When given -MP, icc 7.0 and 7.1 complain thusly:
5115       #   icc: Command line warning: ignoring option '-M'; no argument required
5116       # The diagnosis changed in icc 8.0:
5117       #   icc: Command line remark: option '-MP' not supported
5118       if (grep 'ignoring option' conftest.err ||
5119           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5120         am_cv_CC_dependencies_compiler_type=$depmode
5121         break
5122       fi
5123     fi
5124   done
5125
5126   cd ..
5127   rm -rf conftest.dir
5128 else
5129   am_cv_CC_dependencies_compiler_type=none
5130 fi
5131
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5134 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5135 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5136
5137  if
5138   test "x$enable_dependency_tracking" != xno \
5139   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5140   am__fastdepCC_TRUE=
5141   am__fastdepCC_FALSE='#'
5142 else
5143   am__fastdepCC_TRUE='#'
5144   am__fastdepCC_FALSE=
5145 fi
5146
5147
5148
5149 if test -n "$ac_tool_prefix"; then
5150   for ac_prog in ar lib "link -lib"
5151   do
5152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_AR+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -n "$AR"; then
5160   ac_cv_prog_AR="$AR" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 AR=$ac_cv_prog_AR
5180 if test -n "$AR"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5182 $as_echo "$AR" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189     test -n "$AR" && break
5190   done
5191 fi
5192 if test -z "$AR"; then
5193   ac_ct_AR=$AR
5194   for ac_prog in ar lib "link -lib"
5195 do
5196   # Extract the first word of "$ac_prog", so it can be a program name with args.
5197 set dummy $ac_prog; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test -n "$ac_ct_AR"; then
5204   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213     ac_cv_prog_ac_ct_AR="$ac_prog"
5214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5224 if test -n "$ac_ct_AR"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5226 $as_echo "$ac_ct_AR" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232
5233   test -n "$ac_ct_AR" && break
5234 done
5235
5236   if test "x$ac_ct_AR" = x; then
5237     AR="false"
5238   else
5239     case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245     AR=$ac_ct_AR
5246   fi
5247 fi
5248
5249 : ${AR=ar}
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5252 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5253 if ${am_cv_ar_interface+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262    am_cv_ar_interface=ar
5263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h.  */
5265 int some_variable = 0;
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5269       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5270   (eval $am_ar_try) 2>&5
5271   ac_status=$?
5272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273   test $ac_status = 0; }
5274       if test "$ac_status" -eq 0; then
5275         am_cv_ar_interface=ar
5276       else
5277         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5278         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5279   (eval $am_ar_try) 2>&5
5280   ac_status=$?
5281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282   test $ac_status = 0; }
5283         if test "$ac_status" -eq 0; then
5284           am_cv_ar_interface=lib
5285         else
5286           am_cv_ar_interface=unknown
5287         fi
5288       fi
5289       rm -f conftest.lib libconftest.a
5290
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293    ac_ext=c
5294 ac_cpp='$CPP $CPPFLAGS'
5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5301 $as_echo "$am_cv_ar_interface" >&6; }
5302
5303 case $am_cv_ar_interface in
5304 ar)
5305   ;;
5306 lib)
5307   # Microsoft lib, so override with the ar-lib wrapper script.
5308   # FIXME: It is wrong to rewrite AR.
5309   # But if we don't then we get into trouble of one sort or another.
5310   # A longer-term fix would be to have automake use am__AR in this case,
5311   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5312   # similar.
5313   AR="$am_aux_dir/ar-lib $AR"
5314   ;;
5315 unknown)
5316   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5317   ;;
5318 esac
5319
5320
5321 case `pwd` in
5322   *\ * | *\     *)
5323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5324 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5325 esac
5326
5327
5328
5329 macro_version='2.4.6'
5330 macro_revision='2.4.6'
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 ltmain=$ac_aux_dir/ltmain.sh
5345
5346 # Make sure we can run config.sub.
5347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5348   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5351 $as_echo_n "checking build system type... " >&6; }
5352 if ${ac_cv_build+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   ac_build_alias=$build_alias
5356 test "x$ac_build_alias" = x &&
5357   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5358 test "x$ac_build_alias" = x &&
5359   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5361   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5362
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5365 $as_echo "$ac_cv_build" >&6; }
5366 case $ac_cv_build in
5367 *-*-*) ;;
5368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5369 esac
5370 build=$ac_cv_build
5371 ac_save_IFS=$IFS; IFS='-'
5372 set x $ac_cv_build
5373 shift
5374 build_cpu=$1
5375 build_vendor=$2
5376 shift; shift
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5379 build_os=$*
5380 IFS=$ac_save_IFS
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5385 $as_echo_n "checking host system type... " >&6; }
5386 if ${ac_cv_host+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if test "x$host_alias" = x; then
5390   ac_cv_host=$ac_cv_build
5391 else
5392   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5393     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5394 fi
5395
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5398 $as_echo "$ac_cv_host" >&6; }
5399 case $ac_cv_host in
5400 *-*-*) ;;
5401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5402 esac
5403 host=$ac_cv_host
5404 ac_save_IFS=$IFS; IFS='-'
5405 set x $ac_cv_host
5406 shift
5407 host_cpu=$1
5408 host_vendor=$2
5409 shift; shift
5410 # Remember, the first character of IFS is used to create $*,
5411 # except with old shells:
5412 host_os=$*
5413 IFS=$ac_save_IFS
5414 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5415
5416
5417 # Backslashify metacharacters that are still active within
5418 # double-quoted strings.
5419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5420
5421 # Same as above, but do not quote variable references.
5422 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5423
5424 # Sed substitution to delay expansion of an escaped shell variable in a
5425 # double_quote_subst'ed string.
5426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5427
5428 # Sed substitution to delay expansion of an escaped single quote.
5429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5430
5431 # Sed substitution to avoid accidental globbing in evaled expressions
5432 no_glob_subst='s/\*/\\\*/g'
5433
5434 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5439 $as_echo_n "checking how to print strings... " >&6; }
5440 # Test print first, because it will be a builtin if present.
5441 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5442    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5443   ECHO='print -r --'
5444 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5445   ECHO='printf %s\n'
5446 else
5447   # Use this function as a fallback that always works.
5448   func_fallback_echo ()
5449   {
5450     eval 'cat <<_LTECHO_EOF
5451 $1
5452 _LTECHO_EOF'
5453   }
5454   ECHO='func_fallback_echo'
5455 fi
5456
5457 # func_echo_all arg...
5458 # Invoke $ECHO with all args, space-separated.
5459 func_echo_all ()
5460 {
5461     $ECHO ""
5462 }
5463
5464 case $ECHO in
5465   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5466 $as_echo "printf" >&6; } ;;
5467   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5468 $as_echo "print -r" >&6; } ;;
5469   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5470 $as_echo "cat" >&6; } ;;
5471 esac
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5487 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5488 if ${ac_cv_path_SED+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5492      for ac_i in 1 2 3 4 5 6 7; do
5493        ac_script="$ac_script$as_nl$ac_script"
5494      done
5495      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5496      { ac_script=; unset ac_script;}
5497      if test -z "$SED"; then
5498   ac_path_SED_found=false
5499   # Loop through the user's path and test for each of PROGNAME-LIST
5500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505     for ac_prog in sed gsed; do
5506     for ac_exec_ext in '' $ac_executable_extensions; do
5507       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5508       as_fn_executable_p "$ac_path_SED" || continue
5509 # Check for GNU ac_path_SED and select it if it is found.
5510   # Check for GNU $ac_path_SED
5511 case `"$ac_path_SED" --version 2>&1` in
5512 *GNU*)
5513   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5514 *)
5515   ac_count=0
5516   $as_echo_n 0123456789 >"conftest.in"
5517   while :
5518   do
5519     cat "conftest.in" "conftest.in" >"conftest.tmp"
5520     mv "conftest.tmp" "conftest.in"
5521     cp "conftest.in" "conftest.nl"
5522     $as_echo '' >> "conftest.nl"
5523     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525     as_fn_arith $ac_count + 1 && ac_count=$as_val
5526     if test $ac_count -gt ${ac_path_SED_max-0}; then
5527       # Best one so far, save it but keep looking for a better one
5528       ac_cv_path_SED="$ac_path_SED"
5529       ac_path_SED_max=$ac_count
5530     fi
5531     # 10*(2^10) chars as input seems more than enough
5532     test $ac_count -gt 10 && break
5533   done
5534   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535 esac
5536
5537       $ac_path_SED_found && break 3
5538     done
5539   done
5540   done
5541 IFS=$as_save_IFS
5542   if test -z "$ac_cv_path_SED"; then
5543     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5544   fi
5545 else
5546   ac_cv_path_SED=$SED
5547 fi
5548
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5551 $as_echo "$ac_cv_path_SED" >&6; }
5552  SED="$ac_cv_path_SED"
5553   rm -f conftest.sed
5554
5555 test -z "$SED" && SED=sed
5556 Xsed="$SED -e 1s/^X//"
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5570 if ${ac_cv_path_GREP+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   if test -z "$GREP"; then
5574   ac_path_GREP_found=false
5575   # Loop through the user's path and test for each of PROGNAME-LIST
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_prog in grep ggrep; do
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5584       as_fn_executable_p "$ac_path_GREP" || continue
5585 # Check for GNU ac_path_GREP and select it if it is found.
5586   # Check for GNU $ac_path_GREP
5587 case `"$ac_path_GREP" --version 2>&1` in
5588 *GNU*)
5589   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5590 *)
5591   ac_count=0
5592   $as_echo_n 0123456789 >"conftest.in"
5593   while :
5594   do
5595     cat "conftest.in" "conftest.in" >"conftest.tmp"
5596     mv "conftest.tmp" "conftest.in"
5597     cp "conftest.in" "conftest.nl"
5598     $as_echo 'GREP' >> "conftest.nl"
5599     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601     as_fn_arith $ac_count + 1 && ac_count=$as_val
5602     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5603       # Best one so far, save it but keep looking for a better one
5604       ac_cv_path_GREP="$ac_path_GREP"
5605       ac_path_GREP_max=$ac_count
5606     fi
5607     # 10*(2^10) chars as input seems more than enough
5608     test $ac_count -gt 10 && break
5609   done
5610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5611 esac
5612
5613       $ac_path_GREP_found && break 3
5614     done
5615   done
5616   done
5617 IFS=$as_save_IFS
5618   if test -z "$ac_cv_path_GREP"; then
5619     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5620   fi
5621 else
5622   ac_cv_path_GREP=$GREP
5623 fi
5624
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5627 $as_echo "$ac_cv_path_GREP" >&6; }
5628  GREP="$ac_cv_path_GREP"
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5632 $as_echo_n "checking for egrep... " >&6; }
5633 if ${ac_cv_path_EGREP+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5637    then ac_cv_path_EGREP="$GREP -E"
5638    else
5639      if test -z "$EGREP"; then
5640   ac_path_EGREP_found=false
5641   # Loop through the user's path and test for each of PROGNAME-LIST
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_prog in egrep; do
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5650       as_fn_executable_p "$ac_path_EGREP" || continue
5651 # Check for GNU ac_path_EGREP and select it if it is found.
5652   # Check for GNU $ac_path_EGREP
5653 case `"$ac_path_EGREP" --version 2>&1` in
5654 *GNU*)
5655   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5656 *)
5657   ac_count=0
5658   $as_echo_n 0123456789 >"conftest.in"
5659   while :
5660   do
5661     cat "conftest.in" "conftest.in" >"conftest.tmp"
5662     mv "conftest.tmp" "conftest.in"
5663     cp "conftest.in" "conftest.nl"
5664     $as_echo 'EGREP' >> "conftest.nl"
5665     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667     as_fn_arith $ac_count + 1 && ac_count=$as_val
5668     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5669       # Best one so far, save it but keep looking for a better one
5670       ac_cv_path_EGREP="$ac_path_EGREP"
5671       ac_path_EGREP_max=$ac_count
5672     fi
5673     # 10*(2^10) chars as input seems more than enough
5674     test $ac_count -gt 10 && break
5675   done
5676   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5677 esac
5678
5679       $ac_path_EGREP_found && break 3
5680     done
5681   done
5682   done
5683 IFS=$as_save_IFS
5684   if test -z "$ac_cv_path_EGREP"; then
5685     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5686   fi
5687 else
5688   ac_cv_path_EGREP=$EGREP
5689 fi
5690
5691    fi
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5694 $as_echo "$ac_cv_path_EGREP" >&6; }
5695  EGREP="$ac_cv_path_EGREP"
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5699 $as_echo_n "checking for fgrep... " >&6; }
5700 if ${ac_cv_path_FGREP+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704    then ac_cv_path_FGREP="$GREP -F"
5705    else
5706      if test -z "$FGREP"; then
5707   ac_path_FGREP_found=false
5708   # Loop through the user's path and test for each of PROGNAME-LIST
5709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714     for ac_prog in fgrep; do
5715     for ac_exec_ext in '' $ac_executable_extensions; do
5716       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5717       as_fn_executable_p "$ac_path_FGREP" || continue
5718 # Check for GNU ac_path_FGREP and select it if it is found.
5719   # Check for GNU $ac_path_FGREP
5720 case `"$ac_path_FGREP" --version 2>&1` in
5721 *GNU*)
5722   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5723 *)
5724   ac_count=0
5725   $as_echo_n 0123456789 >"conftest.in"
5726   while :
5727   do
5728     cat "conftest.in" "conftest.in" >"conftest.tmp"
5729     mv "conftest.tmp" "conftest.in"
5730     cp "conftest.in" "conftest.nl"
5731     $as_echo 'FGREP' >> "conftest.nl"
5732     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734     as_fn_arith $ac_count + 1 && ac_count=$as_val
5735     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5736       # Best one so far, save it but keep looking for a better one
5737       ac_cv_path_FGREP="$ac_path_FGREP"
5738       ac_path_FGREP_max=$ac_count
5739     fi
5740     # 10*(2^10) chars as input seems more than enough
5741     test $ac_count -gt 10 && break
5742   done
5743   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5745
5746       $ac_path_FGREP_found && break 3
5747     done
5748   done
5749   done
5750 IFS=$as_save_IFS
5751   if test -z "$ac_cv_path_FGREP"; then
5752     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753   fi
5754 else
5755   ac_cv_path_FGREP=$FGREP
5756 fi
5757
5758    fi
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5761 $as_echo "$ac_cv_path_FGREP" >&6; }
5762  FGREP="$ac_cv_path_FGREP"
5763
5764
5765 test -z "$GREP" && GREP=grep
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 # Check whether --with-gnu-ld was given.
5786 if test "${with_gnu_ld+set}" = set; then :
5787   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5788 else
5789   with_gnu_ld=no
5790 fi
5791
5792 ac_prog=ld
5793 if test yes = "$GCC"; then
5794   # Check if gcc -print-prog-name=ld gives a path.
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5796 $as_echo_n "checking for ld used by $CC... " >&6; }
5797   case $host in
5798   *-*-mingw*)
5799     # gcc leaves a trailing carriage return, which upsets mingw
5800     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5801   *)
5802     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5803   esac
5804   case $ac_prog in
5805     # Accept absolute paths.
5806     [\\/]* | ?:[\\/]*)
5807       re_direlt='/[^/][^/]*/\.\./'
5808       # Canonicalize the pathname of ld
5809       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5810       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5811         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5812       done
5813       test -z "$LD" && LD=$ac_prog
5814       ;;
5815   "")
5816     # If it fails, then pretend we aren't using GCC.
5817     ac_prog=ld
5818     ;;
5819   *)
5820     # If it is relative, then search for the first ld in PATH.
5821     with_gnu_ld=unknown
5822     ;;
5823   esac
5824 elif test yes = "$with_gnu_ld"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5826 $as_echo_n "checking for GNU ld... " >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5829 $as_echo_n "checking for non-GNU ld... " >&6; }
5830 fi
5831 if ${lt_cv_path_LD+:} false; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   if test -z "$LD"; then
5835   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5836   for ac_dir in $PATH; do
5837     IFS=$lt_save_ifs
5838     test -z "$ac_dir" && ac_dir=.
5839     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5840       lt_cv_path_LD=$ac_dir/$ac_prog
5841       # Check to see if the program is GNU ld.  I'd rather use --version,
5842       # but apparently some variants of GNU ld only accept -v.
5843       # Break only if it was the GNU/non-GNU ld that we prefer.
5844       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5845       *GNU* | *'with BFD'*)
5846         test no != "$with_gnu_ld" && break
5847         ;;
5848       *)
5849         test yes != "$with_gnu_ld" && break
5850         ;;
5851       esac
5852     fi
5853   done
5854   IFS=$lt_save_ifs
5855 else
5856   lt_cv_path_LD=$LD # Let the user override the test with a path.
5857 fi
5858 fi
5859
5860 LD=$lt_cv_path_LD
5861 if test -n "$LD"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5863 $as_echo "$LD" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5871 if ${lt_cv_prog_gnu_ld+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5875 case `$LD -v 2>&1 </dev/null` in
5876 *GNU* | *'with BFD'*)
5877   lt_cv_prog_gnu_ld=yes
5878   ;;
5879 *)
5880   lt_cv_prog_gnu_ld=no
5881   ;;
5882 esac
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5886 with_gnu_ld=$lt_cv_prog_gnu_ld
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5898 if ${lt_cv_path_NM+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   if test -n "$NM"; then
5902   # Let the user override the test.
5903   lt_cv_path_NM=$NM
5904 else
5905   lt_nm_to_check=${ac_tool_prefix}nm
5906   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5907     lt_nm_to_check="$lt_nm_to_check nm"
5908   fi
5909   for lt_tmp_nm in $lt_nm_to_check; do
5910     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5911     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5912       IFS=$lt_save_ifs
5913       test -z "$ac_dir" && ac_dir=.
5914       tmp_nm=$ac_dir/$lt_tmp_nm
5915       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5916         # Check to see if the nm accepts a BSD-compat flag.
5917         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5918         #   nm: unknown option "B" ignored
5919         # Tru64's nm complains that /dev/null is an invalid object file
5920         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5921         case $build_os in
5922         mingw*) lt_bad_file=conftest.nm/nofile ;;
5923         *) lt_bad_file=/dev/null ;;
5924         esac
5925         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5926         *$lt_bad_file* | *'Invalid file or object type'*)
5927           lt_cv_path_NM="$tmp_nm -B"
5928           break 2
5929           ;;
5930         *)
5931           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5932           */dev/null*)
5933             lt_cv_path_NM="$tmp_nm -p"
5934             break 2
5935             ;;
5936           *)
5937             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5938             continue # so that we can try to find one that supports BSD flags
5939             ;;
5940           esac
5941           ;;
5942         esac
5943       fi
5944     done
5945     IFS=$lt_save_ifs
5946   done
5947   : ${lt_cv_path_NM=no}
5948 fi
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5951 $as_echo "$lt_cv_path_NM" >&6; }
5952 if test no != "$lt_cv_path_NM"; then
5953   NM=$lt_cv_path_NM
5954 else
5955   # Didn't find any BSD compatible name lister, look for dumpbin.
5956   if test -n "$DUMPBIN"; then :
5957     # Let the user override the test.
5958   else
5959     if test -n "$ac_tool_prefix"; then
5960   for ac_prog in dumpbin "link -dump"
5961   do
5962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_DUMPBIN+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   if test -n "$DUMPBIN"; then
5970   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977     for ac_exec_ext in '' $ac_executable_extensions; do
5978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984   done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 DUMPBIN=$ac_cv_prog_DUMPBIN
5990 if test -n "$DUMPBIN"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5992 $as_echo "$DUMPBIN" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999     test -n "$DUMPBIN" && break
6000   done
6001 fi
6002 if test -z "$DUMPBIN"; then
6003   ac_ct_DUMPBIN=$DUMPBIN
6004   for ac_prog in dumpbin "link -dump"
6005 do
6006   # Extract the first word of "$ac_prog", so it can be a program name with args.
6007 set dummy $ac_prog; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -n "$ac_ct_DUMPBIN"; then
6014   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6034 if test -n "$ac_ct_DUMPBIN"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6036 $as_echo "$ac_ct_DUMPBIN" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043   test -n "$ac_ct_DUMPBIN" && break
6044 done
6045
6046   if test "x$ac_ct_DUMPBIN" = x; then
6047     DUMPBIN=":"
6048   else
6049     case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055     DUMPBIN=$ac_ct_DUMPBIN
6056   fi
6057 fi
6058
6059     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6060     *COFF*)
6061       DUMPBIN="$DUMPBIN -symbols -headers"
6062       ;;
6063     *)
6064       DUMPBIN=:
6065       ;;
6066     esac
6067   fi
6068
6069   if test : != "$DUMPBIN"; then
6070     NM=$DUMPBIN
6071   fi
6072 fi
6073 test -z "$NM" && NM=nm
6074
6075
6076
6077
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6081 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6082 if ${lt_cv_nm_interface+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   lt_cv_nm_interface="BSD nm"
6086   echo "int some_variable = 0;" > conftest.$ac_ext
6087   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6088   (eval "$ac_compile" 2>conftest.err)
6089   cat conftest.err >&5
6090   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6091   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6092   cat conftest.err >&5
6093   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6094   cat conftest.out >&5
6095   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6096     lt_cv_nm_interface="MS dumpbin"
6097   fi
6098   rm -f conftest*
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6101 $as_echo "$lt_cv_nm_interface" >&6; }
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6104 $as_echo_n "checking whether ln -s works... " >&6; }
6105 LN_S=$as_ln_s
6106 if test "$LN_S" = "ln -s"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108 $as_echo "yes" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6111 $as_echo "no, using $LN_S" >&6; }
6112 fi
6113
6114 # find the maximum length of command line arguments
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6116 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6117 if ${lt_cv_sys_max_cmd_len+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120     i=0
6121   teststring=ABCD
6122
6123   case $build_os in
6124   msdosdjgpp*)
6125     # On DJGPP, this test can blow up pretty badly due to problems in libc
6126     # (any single argument exceeding 2000 bytes causes a buffer overrun
6127     # during glob expansion).  Even if it were fixed, the result of this
6128     # check would be larger than it should be.
6129     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6130     ;;
6131
6132   gnu*)
6133     # Under GNU Hurd, this test is not required because there is
6134     # no limit to the length of command line arguments.
6135     # Libtool will interpret -1 as no limit whatsoever
6136     lt_cv_sys_max_cmd_len=-1;
6137     ;;
6138
6139   cygwin* | mingw* | cegcc*)
6140     # On Win9x/ME, this test blows up -- it succeeds, but takes
6141     # about 5 minutes as the teststring grows exponentially.
6142     # Worse, since 9x/ME are not pre-emptively multitasking,
6143     # you end up with a "frozen" computer, even though with patience
6144     # the test eventually succeeds (with a max line length of 256k).
6145     # Instead, let's just punt: use the minimum linelength reported by
6146     # all of the supported platforms: 8192 (on NT/2K/XP).
6147     lt_cv_sys_max_cmd_len=8192;
6148     ;;
6149
6150   mint*)
6151     # On MiNT this can take a long time and run out of memory.
6152     lt_cv_sys_max_cmd_len=8192;
6153     ;;
6154
6155   amigaos*)
6156     # On AmigaOS with pdksh, this test takes hours, literally.
6157     # So we just punt and use a minimum line length of 8192.
6158     lt_cv_sys_max_cmd_len=8192;
6159     ;;
6160
6161   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6162     # This has been around since 386BSD, at least.  Likely further.
6163     if test -x /sbin/sysctl; then
6164       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6165     elif test -x /usr/sbin/sysctl; then
6166       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6167     else
6168       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6169     fi
6170     # And add a safety zone
6171     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6172     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6173     ;;
6174
6175   interix*)
6176     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6177     lt_cv_sys_max_cmd_len=196608
6178     ;;
6179
6180   os2*)
6181     # The test takes a long time on OS/2.
6182     lt_cv_sys_max_cmd_len=8192
6183     ;;
6184
6185   osf*)
6186     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6187     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6188     # nice to cause kernel panics so lets avoid the loop below.
6189     # First set a reasonable default.
6190     lt_cv_sys_max_cmd_len=16384
6191     #
6192     if test -x /sbin/sysconfig; then
6193       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6194         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6195       esac
6196     fi
6197     ;;
6198   sco3.2v5*)
6199     lt_cv_sys_max_cmd_len=102400
6200     ;;
6201   sysv5* | sco5v6* | sysv4.2uw2*)
6202     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6203     if test -n "$kargmax"; then
6204       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6205     else
6206       lt_cv_sys_max_cmd_len=32768
6207     fi
6208     ;;
6209   *)
6210     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6211     if test -n "$lt_cv_sys_max_cmd_len" && \
6212        test undefined != "$lt_cv_sys_max_cmd_len"; then
6213       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215     else
6216       # Make teststring a little bigger before we do anything with it.
6217       # a 1K string should be a reasonable start.
6218       for i in 1 2 3 4 5 6 7 8; do
6219         teststring=$teststring$teststring
6220       done
6221       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6222       # If test is not a shell built-in, we'll probably end up computing a
6223       # maximum length that is only half of the actual maximum length, but
6224       # we can't tell.
6225       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6226                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6227               test 17 != "$i" # 1/2 MB should be enough
6228       do
6229         i=`expr $i + 1`
6230         teststring=$teststring$teststring
6231       done
6232       # Only check the string length outside the loop.
6233       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6234       teststring=
6235       # Add a significant safety factor because C++ compilers can tack on
6236       # massive amounts of additional arguments before passing them to the
6237       # linker.  It appears as though 1/2 is a usable value.
6238       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6239     fi
6240     ;;
6241   esac
6242
6243 fi
6244
6245 if test -n "$lt_cv_sys_max_cmd_len"; then
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6247 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6248 else
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6250 $as_echo "none" >&6; }
6251 fi
6252 max_cmd_len=$lt_cv_sys_max_cmd_len
6253
6254
6255
6256
6257
6258
6259 : ${CP="cp -f"}
6260 : ${MV="mv -f"}
6261 : ${RM="rm -f"}
6262
6263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6264   lt_unset=unset
6265 else
6266   lt_unset=false
6267 fi
6268
6269
6270
6271
6272
6273 # test EBCDIC or ASCII
6274 case `echo X|tr X '\101'` in
6275  A) # ASCII based system
6276     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6277   lt_SP2NL='tr \040 \012'
6278   lt_NL2SP='tr \015\012 \040\040'
6279   ;;
6280  *) # EBCDIC based system
6281   lt_SP2NL='tr \100 \n'
6282   lt_NL2SP='tr \r\n \100\100'
6283   ;;
6284 esac
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6295 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6296 if ${lt_cv_to_host_file_cmd+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   case $host in
6300   *-*-mingw* )
6301     case $build in
6302       *-*-mingw* ) # actually msys
6303         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6304         ;;
6305       *-*-cygwin* )
6306         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6307         ;;
6308       * ) # otherwise, assume *nix
6309         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6310         ;;
6311     esac
6312     ;;
6313   *-*-cygwin* )
6314     case $build in
6315       *-*-mingw* ) # actually msys
6316         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6317         ;;
6318       *-*-cygwin* )
6319         lt_cv_to_host_file_cmd=func_convert_file_noop
6320         ;;
6321       * ) # otherwise, assume *nix
6322         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6323         ;;
6324     esac
6325     ;;
6326   * ) # unhandled hosts (and "normal" native builds)
6327     lt_cv_to_host_file_cmd=func_convert_file_noop
6328     ;;
6329 esac
6330
6331 fi
6332
6333 to_host_file_cmd=$lt_cv_to_host_file_cmd
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6335 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6336
6337
6338
6339
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6342 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6343 if ${lt_cv_to_tool_file_cmd+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   #assume ordinary cross tools, or native build.
6347 lt_cv_to_tool_file_cmd=func_convert_file_noop
6348 case $host in
6349   *-*-mingw* )
6350     case $build in
6351       *-*-mingw* ) # actually msys
6352         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6353         ;;
6354     esac
6355     ;;
6356 esac
6357
6358 fi
6359
6360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6362 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6363
6364
6365
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6369 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6370 if ${lt_cv_ld_reload_flag+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   lt_cv_ld_reload_flag='-r'
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6377 reload_flag=$lt_cv_ld_reload_flag
6378 case $reload_flag in
6379 "" | " "*) ;;
6380 *) reload_flag=" $reload_flag" ;;
6381 esac
6382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6383 case $host_os in
6384   cygwin* | mingw* | pw32* | cegcc*)
6385     if test yes != "$GCC"; then
6386       reload_cmds=false
6387     fi
6388     ;;
6389   darwin*)
6390     if test yes = "$GCC"; then
6391       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6392     else
6393       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6394     fi
6395     ;;
6396 esac
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 if test -n "$ac_tool_prefix"; then
6407   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_OBJDUMP+:} false; then :
6412   $as_echo_n "(cached) " >&6
6413 else
6414   if test -n "$OBJDUMP"; then
6415   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422     for ac_exec_ext in '' $ac_executable_extensions; do
6423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429   done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 OBJDUMP=$ac_cv_prog_OBJDUMP
6435 if test -n "$OBJDUMP"; then
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6437 $as_echo "$OBJDUMP" >&6; }
6438 else
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_OBJDUMP"; then
6446   ac_ct_OBJDUMP=$OBJDUMP
6447   # Extract the first word of "objdump", so it can be a program name with args.
6448 set dummy objdump; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   if test -n "$ac_ct_OBJDUMP"; then
6455   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462     for ac_exec_ext in '' $ac_executable_extensions; do
6463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469   done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6475 if test -n "$ac_ct_OBJDUMP"; then
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6477 $as_echo "$ac_ct_OBJDUMP" >&6; }
6478 else
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483   if test "x$ac_ct_OBJDUMP" = x; then
6484     OBJDUMP="false"
6485   else
6486     case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492     OBJDUMP=$ac_ct_OBJDUMP
6493   fi
6494 else
6495   OBJDUMP="$ac_cv_prog_OBJDUMP"
6496 fi
6497
6498 test -z "$OBJDUMP" && OBJDUMP=objdump
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6510 if ${lt_cv_deplibs_check_method+:} false; then :
6511   $as_echo_n "(cached) " >&6
6512 else
6513   lt_cv_file_magic_cmd='$MAGIC_CMD'
6514 lt_cv_file_magic_test_file=
6515 lt_cv_deplibs_check_method='unknown'
6516 # Need to set the preceding variable on all platforms that support
6517 # interlibrary dependencies.
6518 # 'none' -- dependencies not supported.
6519 # 'unknown' -- same as none, but documents that we really don't know.
6520 # 'pass_all' -- all dependencies passed with no checks.
6521 # 'test_compile' -- check by making test program.
6522 # 'file_magic [[regex]]' -- check by looking for files in library path
6523 # that responds to the $file_magic_cmd with a given extended regex.
6524 # If you have 'file' or equivalent on your system and you're not sure
6525 # whether 'pass_all' will *always* work, you probably want this one.
6526
6527 case $host_os in
6528 aix[4-9]*)
6529   lt_cv_deplibs_check_method=pass_all
6530   ;;
6531
6532 beos*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535
6536 bsdi[45]*)
6537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6538   lt_cv_file_magic_cmd='/usr/bin/file -L'
6539   lt_cv_file_magic_test_file=/shlib/libc.so
6540   ;;
6541
6542 cygwin*)
6543   # func_win32_libid is a shell function defined in ltmain.sh
6544   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545   lt_cv_file_magic_cmd='func_win32_libid'
6546   ;;
6547
6548 mingw* | pw32*)
6549   # Base MSYS/MinGW do not provide the 'file' command needed by
6550   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6551   # unless we find 'file', for example because we are cross-compiling.
6552   if ( file / ) >/dev/null 2>&1; then
6553     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6554     lt_cv_file_magic_cmd='func_win32_libid'
6555   else
6556     # Keep this pattern in sync with the one in func_win32_libid.
6557     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6558     lt_cv_file_magic_cmd='$OBJDUMP -f'
6559   fi
6560   ;;
6561
6562 cegcc*)
6563   # use the weaker test based on 'objdump'. See mingw*.
6564   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6565   lt_cv_file_magic_cmd='$OBJDUMP -f'
6566   ;;
6567
6568 darwin* | rhapsody*)
6569   lt_cv_deplibs_check_method=pass_all
6570   ;;
6571
6572 freebsd* | dragonfly*)
6573   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6574     case $host_cpu in
6575     i*86 )
6576       # Not sure whether the presence of OpenBSD here was a mistake.
6577       # Let's accept both of them until this is cleared up.
6578       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6579       lt_cv_file_magic_cmd=/usr/bin/file
6580       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6581       ;;
6582     esac
6583   else
6584     lt_cv_deplibs_check_method=pass_all
6585   fi
6586   ;;
6587
6588 haiku*)
6589   lt_cv_deplibs_check_method=pass_all
6590   ;;
6591
6592 hpux10.20* | hpux11*)
6593   lt_cv_file_magic_cmd=/usr/bin/file
6594   case $host_cpu in
6595   ia64*)
6596     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6597     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6598     ;;
6599   hppa*64*)
6600     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]'
6601     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6602     ;;
6603   *)
6604     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6605     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6606     ;;
6607   esac
6608   ;;
6609
6610 interix[3-9]*)
6611   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6612   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6613   ;;
6614
6615 irix5* | irix6* | nonstopux*)
6616   case $LD in
6617   *-32|*"-32 ") libmagic=32-bit;;
6618   *-n32|*"-n32 ") libmagic=N32;;
6619   *-64|*"-64 ") libmagic=64-bit;;
6620   *) libmagic=never-match;;
6621   esac
6622   lt_cv_deplibs_check_method=pass_all
6623   ;;
6624
6625 # This must be glibc/ELF.
6626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629
6630 netbsd*)
6631   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6633   else
6634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6635   fi
6636   ;;
6637
6638 newos6*)
6639   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6640   lt_cv_file_magic_cmd=/usr/bin/file
6641   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6642   ;;
6643
6644 *nto* | *qnx*)
6645   lt_cv_deplibs_check_method=pass_all
6646   ;;
6647
6648 openbsd* | bitrig*)
6649   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6651   else
6652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6653   fi
6654   ;;
6655
6656 osf3* | osf4* | osf5*)
6657   lt_cv_deplibs_check_method=pass_all
6658   ;;
6659
6660 rdos*)
6661   lt_cv_deplibs_check_method=pass_all
6662   ;;
6663
6664 solaris*)
6665   lt_cv_deplibs_check_method=pass_all
6666   ;;
6667
6668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671
6672 sysv4 | sysv4.3*)
6673   case $host_vendor in
6674   motorola)
6675     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]'
6676     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6677     ;;
6678   ncr)
6679     lt_cv_deplibs_check_method=pass_all
6680     ;;
6681   sequent)
6682     lt_cv_file_magic_cmd='/bin/file'
6683     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6684     ;;
6685   sni)
6686     lt_cv_file_magic_cmd='/bin/file'
6687     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6688     lt_cv_file_magic_test_file=/lib/libc.so
6689     ;;
6690   siemens)
6691     lt_cv_deplibs_check_method=pass_all
6692     ;;
6693   pc)
6694     lt_cv_deplibs_check_method=pass_all
6695     ;;
6696   esac
6697   ;;
6698
6699 tpf*)
6700   lt_cv_deplibs_check_method=pass_all
6701   ;;
6702 os2*)
6703   lt_cv_deplibs_check_method=pass_all
6704   ;;
6705 esac
6706
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6709 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6710
6711 file_magic_glob=
6712 want_nocaseglob=no
6713 if test "$build" = "$host"; then
6714   case $host_os in
6715   mingw* | pw32*)
6716     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6717       want_nocaseglob=yes
6718     else
6719       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6720     fi
6721     ;;
6722   esac
6723 fi
6724
6725 file_magic_cmd=$lt_cv_file_magic_cmd
6726 deplibs_check_method=$lt_cv_deplibs_check_method
6727 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750 if test -n "$ac_tool_prefix"; then
6751   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_DLLTOOL+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   if test -n "$DLLTOOL"; then
6759   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766     for ac_exec_ext in '' $ac_executable_extensions; do
6767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773   done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 DLLTOOL=$ac_cv_prog_DLLTOOL
6779 if test -n "$DLLTOOL"; then
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6781 $as_echo "$DLLTOOL" >&6; }
6782 else
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787
6788 fi
6789 if test -z "$ac_cv_prog_DLLTOOL"; then
6790   ac_ct_DLLTOOL=$DLLTOOL
6791   # Extract the first word of "dlltool", so it can be a program name with args.
6792 set dummy dlltool; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   if test -n "$ac_ct_DLLTOOL"; then
6799   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806     for ac_exec_ext in '' $ac_executable_extensions; do
6807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813   done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6819 if test -n "$ac_ct_DLLTOOL"; then
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6821 $as_echo "$ac_ct_DLLTOOL" >&6; }
6822 else
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827   if test "x$ac_ct_DLLTOOL" = x; then
6828     DLLTOOL="false"
6829   else
6830     case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836     DLLTOOL=$ac_ct_DLLTOOL
6837   fi
6838 else
6839   DLLTOOL="$ac_cv_prog_DLLTOOL"
6840 fi
6841
6842 test -z "$DLLTOOL" && DLLTOOL=dlltool
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6854 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6855 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   lt_cv_sharedlib_from_linklib_cmd='unknown'
6859
6860 case $host_os in
6861 cygwin* | mingw* | pw32* | cegcc*)
6862   # two different shell functions defined in ltmain.sh;
6863   # decide which one to use based on capabilities of $DLLTOOL
6864   case `$DLLTOOL --help 2>&1` in
6865   *--identify-strict*)
6866     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6867     ;;
6868   *)
6869     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6870     ;;
6871   esac
6872   ;;
6873 *)
6874   # fallback: assume linklib IS sharedlib
6875   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6876   ;;
6877 esac
6878
6879 fi
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6881 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6882 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6883 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6884
6885
6886
6887
6888
6889
6890
6891 if test -n "$ac_tool_prefix"; then
6892   for ac_prog in ar
6893   do
6894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_AR+:} false; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   if test -n "$AR"; then
6902   ac_cv_prog_AR="$AR" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909     for ac_exec_ext in '' $ac_executable_extensions; do
6910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916   done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 AR=$ac_cv_prog_AR
6922 if test -n "$AR"; then
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6924 $as_echo "$AR" >&6; }
6925 else
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929
6930
6931     test -n "$AR" && break
6932   done
6933 fi
6934 if test -z "$AR"; then
6935   ac_ct_AR=$AR
6936   for ac_prog in ar
6937 do
6938   # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_AR"; then
6946   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955     ac_cv_prog_ac_ct_AR="$ac_prog"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6966 if test -n "$ac_ct_AR"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6968 $as_echo "$ac_ct_AR" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975   test -n "$ac_ct_AR" && break
6976 done
6977
6978   if test "x$ac_ct_AR" = x; then
6979     AR="false"
6980   else
6981     case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987     AR=$ac_ct_AR
6988   fi
6989 fi
6990
6991 : ${AR=ar}
6992 : ${AR_FLAGS=cru}
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7005 $as_echo_n "checking for archiver @FILE support... " >&6; }
7006 if ${lt_cv_ar_at_file+:} false; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   lt_cv_ar_at_file=no
7010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012
7013 int
7014 main ()
7015 {
7016
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 if ac_fn_c_try_compile "$LINENO"; then :
7022   echo conftest.$ac_objext > conftest.lst
7023       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7024       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7025   (eval $lt_ar_try) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028   test $ac_status = 0; }
7029       if test 0 -eq "$ac_status"; then
7030         # Ensure the archiver fails upon bogus file names.
7031         rm -f conftest.$ac_objext libconftest.a
7032         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033   (eval $lt_ar_try) 2>&5
7034   ac_status=$?
7035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036   test $ac_status = 0; }
7037         if test 0 -ne "$ac_status"; then
7038           lt_cv_ar_at_file=@
7039         fi
7040       fi
7041       rm -f conftest.* libconftest.a
7042
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7048 $as_echo "$lt_cv_ar_at_file" >&6; }
7049
7050 if test no = "$lt_cv_ar_at_file"; then
7051   archiver_list_spec=
7052 else
7053   archiver_list_spec=$lt_cv_ar_at_file
7054 fi
7055
7056
7057
7058
7059
7060
7061
7062 if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}strip; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_STRIP+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$STRIP"; then
7071   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 STRIP=$ac_cv_prog_STRIP
7091 if test -n "$STRIP"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7093 $as_echo "$STRIP" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_STRIP"; then
7102   ac_ct_STRIP=$STRIP
7103   # Extract the first word of "strip", so it can be a program name with args.
7104 set dummy strip; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   if test -n "$ac_ct_STRIP"; then
7111   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120     ac_cv_prog_ac_ct_STRIP="strip"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7131 if test -n "$ac_ct_STRIP"; then
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7133 $as_echo "$ac_ct_STRIP" >&6; }
7134 else
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_STRIP" = x; then
7140     STRIP=":"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148     STRIP=$ac_ct_STRIP
7149   fi
7150 else
7151   STRIP="$ac_cv_prog_STRIP"
7152 fi
7153
7154 test -z "$STRIP" && STRIP=:
7155
7156
7157
7158
7159
7160
7161 if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_RANLIB+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$RANLIB"; then
7170   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 RANLIB=$ac_cv_prog_RANLIB
7190 if test -n "$RANLIB"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7192 $as_echo "$RANLIB" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_RANLIB"; then
7201   ac_ct_RANLIB=$RANLIB
7202   # Extract the first word of "ranlib", so it can be a program name with args.
7203 set dummy ranlib; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$ac_ct_RANLIB"; then
7210   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_ac_ct_RANLIB="ranlib"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7230 if test -n "$ac_ct_RANLIB"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7232 $as_echo "$ac_ct_RANLIB" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238   if test "x$ac_ct_RANLIB" = x; then
7239     RANLIB=":"
7240   else
7241     case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247     RANLIB=$ac_ct_RANLIB
7248   fi
7249 else
7250   RANLIB="$ac_cv_prog_RANLIB"
7251 fi
7252
7253 test -z "$RANLIB" && RANLIB=:
7254
7255
7256
7257
7258
7259
7260 # Determine commands to create old-style static archives.
7261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7262 old_postinstall_cmds='chmod 644 $oldlib'
7263 old_postuninstall_cmds=
7264
7265 if test -n "$RANLIB"; then
7266   case $host_os in
7267   bitrig* | openbsd*)
7268     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7269     ;;
7270   *)
7271     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7272     ;;
7273   esac
7274   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7275 fi
7276
7277 case $host_os in
7278   darwin*)
7279     lock_old_archive_extraction=yes ;;
7280   *)
7281     lock_old_archive_extraction=no ;;
7282 esac
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322 # If no C compiler was specified, use CC.
7323 LTCC=${LTCC-"$CC"}
7324
7325 # If no C compiler flags were specified, use CFLAGS.
7326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7327
7328 # Allow CC to be a program name with arguments.
7329 compiler=$CC
7330
7331
7332 # Check for command to grab the raw symbol name followed by C symbol from nm.
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338
7339 # These are sane defaults that work on at least a few old systems.
7340 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7341
7342 # Character class describing NM global symbol codes.
7343 symcode='[BCDEGRST]'
7344
7345 # Regexp to match symbols that can be accessed directly from C.
7346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7347
7348 # Define system-specific variables.
7349 case $host_os in
7350 aix*)
7351   symcode='[BCDT]'
7352   ;;
7353 cygwin* | mingw* | pw32* | cegcc*)
7354   symcode='[ABCDGISTW]'
7355   ;;
7356 hpux*)
7357   if test ia64 = "$host_cpu"; then
7358     symcode='[ABCDEGRST]'
7359   fi
7360   ;;
7361 irix* | nonstopux*)
7362   symcode='[BCDEGRST]'
7363   ;;
7364 osf*)
7365   symcode='[BCDEGQRST]'
7366   ;;
7367 solaris*)
7368   symcode='[BDRT]'
7369   ;;
7370 sco3.2v5*)
7371   symcode='[DT]'
7372   ;;
7373 sysv4.2uw2*)
7374   symcode='[DT]'
7375   ;;
7376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7377   symcode='[ABDT]'
7378   ;;
7379 sysv4)
7380   symcode='[DFNSTU]'
7381   ;;
7382 esac
7383
7384 # If we're using GNU nm, then use its standard symbol codes.
7385 case `$NM -V 2>&1` in
7386 *GNU* | *'with BFD'*)
7387   symcode='[ABCDGIRSTW]' ;;
7388 esac
7389
7390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7391   # Gets list of data symbols to import.
7392   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7393   # Adjust the below global symbol transforms to fixup imported variables.
7394   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7395   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7396   lt_c_name_lib_hook="\
7397   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7398   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7399 else
7400   # Disable hooks by default.
7401   lt_cv_sys_global_symbol_to_import=
7402   lt_cdecl_hook=
7403   lt_c_name_hook=
7404   lt_c_name_lib_hook=
7405 fi
7406
7407 # Transform an extracted symbol line into a proper C declaration.
7408 # Some systems (esp. on ia64) link data and code symbols differently,
7409 # so use this general approach.
7410 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7411 $lt_cdecl_hook\
7412 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7413 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7414
7415 # Transform an extracted symbol line into symbol name and symbol address
7416 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7417 $lt_c_name_hook\
7418 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7419 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7420
7421 # Transform an extracted symbol line into symbol name with lib prefix and
7422 # symbol address.
7423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7424 $lt_c_name_lib_hook\
7425 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7426 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7427 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7428
7429 # Handle CRLF in mingw tool chain
7430 opt_cr=
7431 case $build_os in
7432 mingw*)
7433   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7434   ;;
7435 esac
7436
7437 # Try without a prefix underscore, then with it.
7438 for ac_symprfx in "" "_"; do
7439
7440   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7441   symxfrm="\\1 $ac_symprfx\\2 \\2"
7442
7443   # Write the raw and C identifiers.
7444   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7445     # Fake it for dumpbin and say T for any non-static function,
7446     # D for any global variable and I for any imported variable.
7447     # Also find C++ and __fastcall symbols from MSVC++,
7448     # which start with @ or ?.
7449     lt_cv_sys_global_symbol_pipe="$AWK '"\
7450 "     {last_section=section; section=\$ 3};"\
7451 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7452 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7453 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7454 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7455 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7456 "     \$ 0!~/External *\|/{next};"\
7457 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7458 "     {if(hide[section]) next};"\
7459 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7460 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7461 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7462 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7463 "     ' prfx=^$ac_symprfx"
7464   else
7465     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7466   fi
7467   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7468
7469   # Check to see that the pipe works correctly.
7470   pipe_works=no
7471
7472   rm -f conftest*
7473   cat > conftest.$ac_ext <<_LT_EOF
7474 #ifdef __cplusplus
7475 extern "C" {
7476 #endif
7477 char nm_test_var;
7478 void nm_test_func(void);
7479 void nm_test_func(void){}
7480 #ifdef __cplusplus
7481 }
7482 #endif
7483 int main(){nm_test_var='a';nm_test_func();return(0);}
7484 _LT_EOF
7485
7486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7487   (eval $ac_compile) 2>&5
7488   ac_status=$?
7489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490   test $ac_status = 0; }; then
7491     # Now try to grab the symbols.
7492     nlist=conftest.nm
7493     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7494   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7495   ac_status=$?
7496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497   test $ac_status = 0; } && test -s "$nlist"; then
7498       # Try sorting and uniquifying the output.
7499       if sort "$nlist" | uniq > "$nlist"T; then
7500         mv -f "$nlist"T "$nlist"
7501       else
7502         rm -f "$nlist"T
7503       fi
7504
7505       # Make sure that we snagged all the symbols we need.
7506       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7507         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7508           cat <<_LT_EOF > conftest.$ac_ext
7509 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7510 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7511 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7512    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7513 # define LT_DLSYM_CONST
7514 #elif defined __osf__
7515 /* This system does not cope well with relocations in const data.  */
7516 # define LT_DLSYM_CONST
7517 #else
7518 # define LT_DLSYM_CONST const
7519 #endif
7520
7521 #ifdef __cplusplus
7522 extern "C" {
7523 #endif
7524
7525 _LT_EOF
7526           # Now generate the symbol file.
7527           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7528
7529           cat <<_LT_EOF >> conftest.$ac_ext
7530
7531 /* The mapping between symbol names and symbols.  */
7532 LT_DLSYM_CONST struct {
7533   const char *name;
7534   void       *address;
7535 }
7536 lt__PROGRAM__LTX_preloaded_symbols[] =
7537 {
7538   { "@PROGRAM@", (void *) 0 },
7539 _LT_EOF
7540           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7541           cat <<\_LT_EOF >> conftest.$ac_ext
7542   {0, (void *) 0}
7543 };
7544
7545 /* This works around a problem in FreeBSD linker */
7546 #ifdef FREEBSD_WORKAROUND
7547 static const void *lt_preloaded_setup() {
7548   return lt__PROGRAM__LTX_preloaded_symbols;
7549 }
7550 #endif
7551
7552 #ifdef __cplusplus
7553 }
7554 #endif
7555 _LT_EOF
7556           # Now try linking the two files.
7557           mv conftest.$ac_objext conftstm.$ac_objext
7558           lt_globsym_save_LIBS=$LIBS
7559           lt_globsym_save_CFLAGS=$CFLAGS
7560           LIBS=conftstm.$ac_objext
7561           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7562           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7563   (eval $ac_link) 2>&5
7564   ac_status=$?
7565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7566   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7567             pipe_works=yes
7568           fi
7569           LIBS=$lt_globsym_save_LIBS
7570           CFLAGS=$lt_globsym_save_CFLAGS
7571         else
7572           echo "cannot find nm_test_func in $nlist" >&5
7573         fi
7574       else
7575         echo "cannot find nm_test_var in $nlist" >&5
7576       fi
7577     else
7578       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7579     fi
7580   else
7581     echo "$progname: failed program was:" >&5
7582     cat conftest.$ac_ext >&5
7583   fi
7584   rm -rf conftest* conftst*
7585
7586   # Do not use the global_symbol_pipe unless it works.
7587   if test yes = "$pipe_works"; then
7588     break
7589   else
7590     lt_cv_sys_global_symbol_pipe=
7591   fi
7592 done
7593
7594 fi
7595
7596 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7597   lt_cv_sys_global_symbol_to_cdecl=
7598 fi
7599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7601 $as_echo "failed" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7604 $as_echo "ok" >&6; }
7605 fi
7606
7607 # Response file support.
7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7609   nm_file_list_spec='@'
7610 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7611   nm_file_list_spec='@'
7612 fi
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7651 $as_echo_n "checking for sysroot... " >&6; }
7652
7653 # Check whether --with-sysroot was given.
7654 if test "${with_sysroot+set}" = set; then :
7655   withval=$with_sysroot;
7656 else
7657   with_sysroot=no
7658 fi
7659
7660
7661 lt_sysroot=
7662 case $with_sysroot in #(
7663  yes)
7664    if test yes = "$GCC"; then
7665      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7666    fi
7667    ;; #(
7668  /*)
7669    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7670    ;; #(
7671  no|'')
7672    ;; #(
7673  *)
7674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7675 $as_echo "$with_sysroot" >&6; }
7676    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7677    ;;
7678 esac
7679
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7681 $as_echo "${lt_sysroot:-no}" >&6; }
7682
7683
7684
7685
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7688 $as_echo_n "checking for a working dd... " >&6; }
7689 if ${ac_cv_path_lt_DD+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   printf 0123456789abcdef0123456789abcdef >conftest.i
7693 cat conftest.i conftest.i >conftest2.i
7694 : ${lt_DD:=$DD}
7695 if test -z "$lt_DD"; then
7696   ac_path_lt_DD_found=false
7697   # Loop through the user's path and test for each of PROGNAME-LIST
7698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_prog in dd; do
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7706       as_fn_executable_p "$ac_path_lt_DD" || continue
7707 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7708   cmp -s conftest.i conftest.out \
7709   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7710 fi
7711       $ac_path_lt_DD_found && break 3
7712     done
7713   done
7714   done
7715 IFS=$as_save_IFS
7716   if test -z "$ac_cv_path_lt_DD"; then
7717     :
7718   fi
7719 else
7720   ac_cv_path_lt_DD=$lt_DD
7721 fi
7722
7723 rm -f conftest.i conftest2.i conftest.out
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7726 $as_echo "$ac_cv_path_lt_DD" >&6; }
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7730 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7731 if ${lt_cv_truncate_bin+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   printf 0123456789abcdef0123456789abcdef >conftest.i
7735 cat conftest.i conftest.i >conftest2.i
7736 lt_cv_truncate_bin=
7737 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7738   cmp -s conftest.i conftest.out \
7739   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7740 fi
7741 rm -f conftest.i conftest2.i conftest.out
7742 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7745 $as_echo "$lt_cv_truncate_bin" >&6; }
7746
7747
7748
7749
7750
7751
7752
7753 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7754 func_cc_basename ()
7755 {
7756     for cc_temp in $*""; do
7757       case $cc_temp in
7758         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7759         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7760         \-*) ;;
7761         *) break;;
7762       esac
7763     done
7764     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7765 }
7766
7767 # Check whether --enable-libtool-lock was given.
7768 if test "${enable_libtool_lock+set}" = set; then :
7769   enableval=$enable_libtool_lock;
7770 fi
7771
7772 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7773
7774 # Some flags need to be propagated to the compiler or linker for good
7775 # libtool support.
7776 case $host in
7777 ia64-*-hpux*)
7778   # Find out what ABI is being produced by ac_compile, and set mode
7779   # options accordingly.
7780   echo 'int i;' > conftest.$ac_ext
7781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782   (eval $ac_compile) 2>&5
7783   ac_status=$?
7784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785   test $ac_status = 0; }; then
7786     case `/usr/bin/file conftest.$ac_objext` in
7787       *ELF-32*)
7788         HPUX_IA64_MODE=32
7789         ;;
7790       *ELF-64*)
7791         HPUX_IA64_MODE=64
7792         ;;
7793     esac
7794   fi
7795   rm -rf conftest*
7796   ;;
7797 *-*-irix6*)
7798   # Find out what ABI is being produced by ac_compile, and set linker
7799   # options accordingly.
7800   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802   (eval $ac_compile) 2>&5
7803   ac_status=$?
7804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805   test $ac_status = 0; }; then
7806     if test yes = "$lt_cv_prog_gnu_ld"; then
7807       case `/usr/bin/file conftest.$ac_objext` in
7808         *32-bit*)
7809           LD="${LD-ld} -melf32bsmip"
7810           ;;
7811         *N32*)
7812           LD="${LD-ld} -melf32bmipn32"
7813           ;;
7814         *64-bit*)
7815           LD="${LD-ld} -melf64bmip"
7816         ;;
7817       esac
7818     else
7819       case `/usr/bin/file conftest.$ac_objext` in
7820         *32-bit*)
7821           LD="${LD-ld} -32"
7822           ;;
7823         *N32*)
7824           LD="${LD-ld} -n32"
7825           ;;
7826         *64-bit*)
7827           LD="${LD-ld} -64"
7828           ;;
7829       esac
7830     fi
7831   fi
7832   rm -rf conftest*
7833   ;;
7834
7835 mips64*-*linux*)
7836   # Find out what ABI is being produced by ac_compile, and set linker
7837   # options accordingly.
7838   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840   (eval $ac_compile) 2>&5
7841   ac_status=$?
7842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843   test $ac_status = 0; }; then
7844     emul=elf
7845     case `/usr/bin/file conftest.$ac_objext` in
7846       *32-bit*)
7847         emul="${emul}32"
7848         ;;
7849       *64-bit*)
7850         emul="${emul}64"
7851         ;;
7852     esac
7853     case `/usr/bin/file conftest.$ac_objext` in
7854       *MSB*)
7855         emul="${emul}btsmip"
7856         ;;
7857       *LSB*)
7858         emul="${emul}ltsmip"
7859         ;;
7860     esac
7861     case `/usr/bin/file conftest.$ac_objext` in
7862       *N32*)
7863         emul="${emul}n32"
7864         ;;
7865     esac
7866     LD="${LD-ld} -m $emul"
7867   fi
7868   rm -rf conftest*
7869   ;;
7870
7871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7873   # Find out what ABI is being produced by ac_compile, and set linker
7874   # options accordingly.  Note that the listed cases only cover the
7875   # situations where additional linker options are needed (such as when
7876   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7877   # vice versa); the common cases where no linker options are needed do
7878   # not appear in the list.
7879   echo 'int i;' > conftest.$ac_ext
7880   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881   (eval $ac_compile) 2>&5
7882   ac_status=$?
7883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884   test $ac_status = 0; }; then
7885     case `/usr/bin/file conftest.o` in
7886       *32-bit*)
7887         case $host in
7888           x86_64-*kfreebsd*-gnu)
7889             LD="${LD-ld} -m elf_i386_fbsd"
7890             ;;
7891           x86_64-*linux*)
7892             case `/usr/bin/file conftest.o` in
7893               *x86-64*)
7894                 LD="${LD-ld} -m elf32_x86_64"
7895                 ;;
7896               *)
7897                 LD="${LD-ld} -m elf_i386"
7898                 ;;
7899             esac
7900             ;;
7901           powerpc64le-*linux*)
7902             LD="${LD-ld} -m elf32lppclinux"
7903             ;;
7904           powerpc64-*linux*)
7905             LD="${LD-ld} -m elf32ppclinux"
7906             ;;
7907           s390x-*linux*)
7908             LD="${LD-ld} -m elf_s390"
7909             ;;
7910           sparc64-*linux*)
7911             LD="${LD-ld} -m elf32_sparc"
7912             ;;
7913         esac
7914         ;;
7915       *64-bit*)
7916         case $host in
7917           x86_64-*kfreebsd*-gnu)
7918             LD="${LD-ld} -m elf_x86_64_fbsd"
7919             ;;
7920           x86_64-*linux*)
7921             LD="${LD-ld} -m elf_x86_64"
7922             ;;
7923           powerpcle-*linux*)
7924             LD="${LD-ld} -m elf64lppc"
7925             ;;
7926           powerpc-*linux*)
7927             LD="${LD-ld} -m elf64ppc"
7928             ;;
7929           s390*-*linux*|s390*-*tpf*)
7930             LD="${LD-ld} -m elf64_s390"
7931             ;;
7932           sparc*-*linux*)
7933             LD="${LD-ld} -m elf64_sparc"
7934             ;;
7935         esac
7936         ;;
7937     esac
7938   fi
7939   rm -rf conftest*
7940   ;;
7941
7942 *-*-sco3.2v5*)
7943   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7944   SAVE_CFLAGS=$CFLAGS
7945   CFLAGS="$CFLAGS -belf"
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7947 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7948 if ${lt_cv_cc_needs_belf+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   ac_ext=c
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956
7957      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h.  */
7959
7960 int
7961 main ()
7962 {
7963
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969   lt_cv_cc_needs_belf=yes
7970 else
7971   lt_cv_cc_needs_belf=no
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext \
7974     conftest$ac_exeext conftest.$ac_ext
7975      ac_ext=c
7976 ac_cpp='$CPP $CPPFLAGS'
7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7980
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7983 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7984   if test yes != "$lt_cv_cc_needs_belf"; then
7985     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7986     CFLAGS=$SAVE_CFLAGS
7987   fi
7988   ;;
7989 *-*solaris*)
7990   # Find out what ABI is being produced by ac_compile, and set linker
7991   # options accordingly.
7992   echo 'int i;' > conftest.$ac_ext
7993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7994   (eval $ac_compile) 2>&5
7995   ac_status=$?
7996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997   test $ac_status = 0; }; then
7998     case `/usr/bin/file conftest.o` in
7999     *64-bit*)
8000       case $lt_cv_prog_gnu_ld in
8001       yes*)
8002         case $host in
8003         i?86-*-solaris*|x86_64-*-solaris*)
8004           LD="${LD-ld} -m elf_x86_64"
8005           ;;
8006         sparc*-*-solaris*)
8007           LD="${LD-ld} -m elf64_sparc"
8008           ;;
8009         esac
8010         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8011         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8012           LD=${LD-ld}_sol2
8013         fi
8014         ;;
8015       *)
8016         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8017           LD="${LD-ld} -64"
8018         fi
8019         ;;
8020       esac
8021       ;;
8022     esac
8023   fi
8024   rm -rf conftest*
8025   ;;
8026 esac
8027
8028 need_locks=$enable_libtool_lock
8029
8030 if test -n "$ac_tool_prefix"; then
8031   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}mt; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$MANIFEST_TOOL"; then
8039   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8059 if test -n "$MANIFEST_TOOL"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8061 $as_echo "$MANIFEST_TOOL" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067
8068 fi
8069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8070   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8071   # Extract the first word of "mt", so it can be a program name with args.
8072 set dummy mt; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   if test -n "$ac_ct_MANIFEST_TOOL"; then
8079   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084   IFS=$as_save_IFS
8085   test -z "$as_dir" && as_dir=.
8086     for ac_exec_ext in '' $ac_executable_extensions; do
8087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090     break 2
8091   fi
8092 done
8093   done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8099 if test -n "$ac_ct_MANIFEST_TOOL"; then
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8102 else
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8108     MANIFEST_TOOL=":"
8109   else
8110     case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8117   fi
8118 else
8119   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8120 fi
8121
8122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8125 if ${lt_cv_path_mainfest_tool+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   lt_cv_path_mainfest_tool=no
8129   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8130   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8131   cat conftest.err >&5
8132   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8133     lt_cv_path_mainfest_tool=yes
8134   fi
8135   rm -f conftest*
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8138 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8139 if test yes != "$lt_cv_path_mainfest_tool"; then
8140   MANIFEST_TOOL=:
8141 fi
8142
8143
8144
8145
8146
8147
8148   case $host_os in
8149     rhapsody* | darwin*)
8150     if test -n "$ac_tool_prefix"; then
8151   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   if test -n "$DSYMUTIL"; then
8159   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8179 if test -n "$DSYMUTIL"; then
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8181 $as_echo "$DSYMUTIL" >&6; }
8182 else
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187
8188 fi
8189 if test -z "$ac_cv_prog_DSYMUTIL"; then
8190   ac_ct_DSYMUTIL=$DSYMUTIL
8191   # Extract the first word of "dsymutil", so it can be a program name with args.
8192 set dummy dsymutil; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   if test -n "$ac_ct_DSYMUTIL"; then
8199   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206     for ac_exec_ext in '' $ac_executable_extensions; do
8207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213   done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8219 if test -n "$ac_ct_DSYMUTIL"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227   if test "x$ac_ct_DSYMUTIL" = x; then
8228     DSYMUTIL=":"
8229   else
8230     case $cross_compiling:$ac_tool_warned in
8231 yes:)
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234 ac_tool_warned=yes ;;
8235 esac
8236     DSYMUTIL=$ac_ct_DSYMUTIL
8237   fi
8238 else
8239   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8240 fi
8241
8242     if test -n "$ac_tool_prefix"; then
8243   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_NMEDIT+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   if test -n "$NMEDIT"; then
8251   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267
8268 fi
8269 fi
8270 NMEDIT=$ac_cv_prog_NMEDIT
8271 if test -n "$NMEDIT"; then
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8273 $as_echo "$NMEDIT" >&6; }
8274 else
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 fi
8278
8279
8280 fi
8281 if test -z "$ac_cv_prog_NMEDIT"; then
8282   ac_ct_NMEDIT=$NMEDIT
8283   # Extract the first word of "nmedit", so it can be a program name with args.
8284 set dummy nmedit; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8288   $as_echo_n "(cached) " >&6
8289 else
8290   if test -n "$ac_ct_NMEDIT"; then
8291   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296   IFS=$as_save_IFS
8297   test -z "$as_dir" && as_dir=.
8298     for ac_exec_ext in '' $ac_executable_extensions; do
8299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302     break 2
8303   fi
8304 done
8305   done
8306 IFS=$as_save_IFS
8307
8308 fi
8309 fi
8310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8311 if test -n "$ac_ct_NMEDIT"; then
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8313 $as_echo "$ac_ct_NMEDIT" >&6; }
8314 else
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8317 fi
8318
8319   if test "x$ac_ct_NMEDIT" = x; then
8320     NMEDIT=":"
8321   else
8322     case $cross_compiling:$ac_tool_warned in
8323 yes:)
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8327 esac
8328     NMEDIT=$ac_ct_NMEDIT
8329   fi
8330 else
8331   NMEDIT="$ac_cv_prog_NMEDIT"
8332 fi
8333
8334     if test -n "$ac_tool_prefix"; then
8335   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8336 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_LIPO+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   if test -n "$LIPO"; then
8343   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348   IFS=$as_save_IFS
8349   test -z "$as_dir" && as_dir=.
8350     for ac_exec_ext in '' $ac_executable_extensions; do
8351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354     break 2
8355   fi
8356 done
8357   done
8358 IFS=$as_save_IFS
8359
8360 fi
8361 fi
8362 LIPO=$ac_cv_prog_LIPO
8363 if test -n "$LIPO"; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8365 $as_echo "$LIPO" >&6; }
8366 else
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370
8371
8372 fi
8373 if test -z "$ac_cv_prog_LIPO"; then
8374   ac_ct_LIPO=$LIPO
8375   # Extract the first word of "lipo", so it can be a program name with args.
8376 set dummy lipo; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   if test -n "$ac_ct_LIPO"; then
8383   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390     for ac_exec_ext in '' $ac_executable_extensions; do
8391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392     ac_cv_prog_ac_ct_LIPO="lipo"
8393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397   done
8398 IFS=$as_save_IFS
8399
8400 fi
8401 fi
8402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8403 if test -n "$ac_ct_LIPO"; then
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8405 $as_echo "$ac_ct_LIPO" >&6; }
8406 else
8407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409 fi
8410
8411   if test "x$ac_ct_LIPO" = x; then
8412     LIPO=":"
8413   else
8414     case $cross_compiling:$ac_tool_warned in
8415 yes:)
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8418 ac_tool_warned=yes ;;
8419 esac
8420     LIPO=$ac_ct_LIPO
8421   fi
8422 else
8423   LIPO="$ac_cv_prog_LIPO"
8424 fi
8425
8426     if test -n "$ac_tool_prefix"; then
8427   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8428 set dummy ${ac_tool_prefix}otool; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_OTOOL+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   if test -n "$OTOOL"; then
8435   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 OTOOL=$ac_cv_prog_OTOOL
8455 if test -n "$OTOOL"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8457 $as_echo "$OTOOL" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464 fi
8465 if test -z "$ac_cv_prog_OTOOL"; then
8466   ac_ct_OTOOL=$OTOOL
8467   # Extract the first word of "otool", so it can be a program name with args.
8468 set dummy otool; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8472   $as_echo_n "(cached) " >&6
8473 else
8474   if test -n "$ac_ct_OTOOL"; then
8475   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8476 else
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 for as_dir in $PATH
8479 do
8480   IFS=$as_save_IFS
8481   test -z "$as_dir" && as_dir=.
8482     for ac_exec_ext in '' $ac_executable_extensions; do
8483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484     ac_cv_prog_ac_ct_OTOOL="otool"
8485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486     break 2
8487   fi
8488 done
8489   done
8490 IFS=$as_save_IFS
8491
8492 fi
8493 fi
8494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8495 if test -n "$ac_ct_OTOOL"; then
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8497 $as_echo "$ac_ct_OTOOL" >&6; }
8498 else
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8501 fi
8502
8503   if test "x$ac_ct_OTOOL" = x; then
8504     OTOOL=":"
8505   else
8506     case $cross_compiling:$ac_tool_warned in
8507 yes:)
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8511 esac
8512     OTOOL=$ac_ct_OTOOL
8513   fi
8514 else
8515   OTOOL="$ac_cv_prog_OTOOL"
8516 fi
8517
8518     if test -n "$ac_tool_prefix"; then
8519   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if ${ac_cv_prog_OTOOL64+:} false; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   if test -n "$OTOOL64"; then
8527   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532   IFS=$as_save_IFS
8533   test -z "$as_dir" && as_dir=.
8534     for ac_exec_ext in '' $ac_executable_extensions; do
8535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538     break 2
8539   fi
8540 done
8541   done
8542 IFS=$as_save_IFS
8543
8544 fi
8545 fi
8546 OTOOL64=$ac_cv_prog_OTOOL64
8547 if test -n "$OTOOL64"; then
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8549 $as_echo "$OTOOL64" >&6; }
8550 else
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 fi
8554
8555
8556 fi
8557 if test -z "$ac_cv_prog_OTOOL64"; then
8558   ac_ct_OTOOL64=$OTOOL64
8559   # Extract the first word of "otool64", so it can be a program name with args.
8560 set dummy otool64; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   if test -n "$ac_ct_OTOOL64"; then
8567   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8568 else
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8571 do
8572   IFS=$as_save_IFS
8573   test -z "$as_dir" && as_dir=.
8574     for ac_exec_ext in '' $ac_executable_extensions; do
8575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576     ac_cv_prog_ac_ct_OTOOL64="otool64"
8577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578     break 2
8579   fi
8580 done
8581   done
8582 IFS=$as_save_IFS
8583
8584 fi
8585 fi
8586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8587 if test -n "$ac_ct_OTOOL64"; then
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8589 $as_echo "$ac_ct_OTOOL64" >&6; }
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595   if test "x$ac_ct_OTOOL64" = x; then
8596     OTOOL64=":"
8597   else
8598     case $cross_compiling:$ac_tool_warned in
8599 yes:)
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8602 ac_tool_warned=yes ;;
8603 esac
8604     OTOOL64=$ac_ct_OTOOL64
8605   fi
8606 else
8607   OTOOL64="$ac_cv_prog_OTOOL64"
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8637 $as_echo_n "checking for -single_module linker flag... " >&6; }
8638 if ${lt_cv_apple_cc_single_mod+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   lt_cv_apple_cc_single_mod=no
8642       if test -z "$LT_MULTI_MODULE"; then
8643         # By default we will add the -single_module flag. You can override
8644         # by either setting the environment variable LT_MULTI_MODULE
8645         # non-empty at configure time, or by adding -multi_module to the
8646         # link flags.
8647         rm -rf libconftest.dylib*
8648         echo "int foo(void){return 1;}" > conftest.c
8649         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8650 -dynamiclib -Wl,-single_module conftest.c" >&5
8651         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8652           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8653         _lt_result=$?
8654         # If there is a non-empty error log, and "single_module"
8655         # appears in it, assume the flag caused a linker warning
8656         if test -s conftest.err && $GREP single_module conftest.err; then
8657           cat conftest.err >&5
8658         # Otherwise, if the output was created with a 0 exit code from
8659         # the compiler, it worked.
8660         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8661           lt_cv_apple_cc_single_mod=yes
8662         else
8663           cat conftest.err >&5
8664         fi
8665         rm -rf libconftest.dylib*
8666         rm -f conftest.*
8667       fi
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8670 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8671
8672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8673 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8674 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   lt_cv_ld_exported_symbols_list=no
8678       save_LDFLAGS=$LDFLAGS
8679       echo "_main" > conftest.sym
8680       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h.  */
8683
8684 int
8685 main ()
8686 {
8687
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"; then :
8693   lt_cv_ld_exported_symbols_list=yes
8694 else
8695   lt_cv_ld_exported_symbols_list=no
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext \
8698     conftest$ac_exeext conftest.$ac_ext
8699         LDFLAGS=$save_LDFLAGS
8700
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8703 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8704
8705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8706 $as_echo_n "checking for -force_load linker flag... " >&6; }
8707 if ${lt_cv_ld_force_load+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   lt_cv_ld_force_load=no
8711       cat > conftest.c << _LT_EOF
8712 int forced_loaded() { return 2;}
8713 _LT_EOF
8714       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8715       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8716       echo "$AR cru libconftest.a conftest.o" >&5
8717       $AR cru libconftest.a conftest.o 2>&5
8718       echo "$RANLIB libconftest.a" >&5
8719       $RANLIB libconftest.a 2>&5
8720       cat > conftest.c << _LT_EOF
8721 int main() { return 0;}
8722 _LT_EOF
8723       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8724       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8725       _lt_result=$?
8726       if test -s conftest.err && $GREP force_load conftest.err; then
8727         cat conftest.err >&5
8728       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8729         lt_cv_ld_force_load=yes
8730       else
8731         cat conftest.err >&5
8732       fi
8733         rm -f conftest.err libconftest.a conftest conftest.c
8734         rm -rf conftest.dSYM
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8738 $as_echo "$lt_cv_ld_force_load" >&6; }
8739     case $host_os in
8740     rhapsody* | darwin1.[012])
8741       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8742     darwin1.*)
8743       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8744     darwin*) # darwin 5.x on
8745       # if running on 10.5 or later, the deployment target defaults
8746       # to the OS version, if on x86, and 10.4, the deployment
8747       # target defaults to 10.4. Don't you love it?
8748       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8749         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8750           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8751         10.[012][,.]*)
8752           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8753         10.*)
8754           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8755       esac
8756     ;;
8757   esac
8758     if test yes = "$lt_cv_apple_cc_single_mod"; then
8759       _lt_dar_single_mod='$single_module'
8760     fi
8761     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8762       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8763     else
8764       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8765     fi
8766     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8767       _lt_dsymutil='~$DSYMUTIL $lib || :'
8768     else
8769       _lt_dsymutil=
8770     fi
8771     ;;
8772   esac
8773
8774 # func_munge_path_list VARIABLE PATH
8775 # -----------------------------------
8776 # VARIABLE is name of variable containing _space_ separated list of
8777 # directories to be munged by the contents of PATH, which is string
8778 # having a format:
8779 # "DIR[:DIR]:"
8780 #       string "DIR[ DIR]" will be prepended to VARIABLE
8781 # ":DIR[:DIR]"
8782 #       string "DIR[ DIR]" will be appended to VARIABLE
8783 # "DIRP[:DIRP]::[DIRA:]DIRA"
8784 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8785 #       "DIRA[ DIRA]" will be appended to VARIABLE
8786 # "DIR[:DIR]"
8787 #       VARIABLE will be replaced by "DIR[ DIR]"
8788 func_munge_path_list ()
8789 {
8790     case x$2 in
8791     x)
8792         ;;
8793     *:)
8794         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8795         ;;
8796     x:*)
8797         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8798         ;;
8799     *::*)
8800         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8801         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8802         ;;
8803     *)
8804         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8805         ;;
8806     esac
8807 }
8808
8809 ac_ext=c
8810 ac_cpp='$CPP $CPPFLAGS'
8811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8816 # On Suns, sometimes $CPP names a directory.
8817 if test -n "$CPP" && test -d "$CPP"; then
8818   CPP=
8819 fi
8820 if test -z "$CPP"; then
8821   if ${ac_cv_prog_CPP+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824       # Double quotes because CPP needs to be expanded
8825     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8826     do
8827       ac_preproc_ok=false
8828 for ac_c_preproc_warn_flag in '' yes
8829 do
8830   # Use a header file that comes with gcc, so configuring glibc
8831   # with a fresh cross-compiler works.
8832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833   # <limits.h> exists even on freestanding compilers.
8834   # On the NeXT, cc -E runs the code through the compiler's parser,
8835   # not just through cpp. "Syntax error" is here to catch this case.
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838 #ifdef __STDC__
8839 # include <limits.h>
8840 #else
8841 # include <assert.h>
8842 #endif
8843                      Syntax error
8844 _ACEOF
8845 if ac_fn_c_try_cpp "$LINENO"; then :
8846
8847 else
8848   # Broken: fails on valid input.
8849 continue
8850 fi
8851 rm -f conftest.err conftest.i conftest.$ac_ext
8852
8853   # OK, works on sane cases.  Now check whether nonexistent headers
8854   # can be detected and how.
8855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h.  */
8857 #include <ac_nonexistent.h>
8858 _ACEOF
8859 if ac_fn_c_try_cpp "$LINENO"; then :
8860   # Broken: success on invalid input.
8861 continue
8862 else
8863   # Passes both tests.
8864 ac_preproc_ok=:
8865 break
8866 fi
8867 rm -f conftest.err conftest.i conftest.$ac_ext
8868
8869 done
8870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8871 rm -f conftest.i conftest.err conftest.$ac_ext
8872 if $ac_preproc_ok; then :
8873   break
8874 fi
8875
8876     done
8877     ac_cv_prog_CPP=$CPP
8878
8879 fi
8880   CPP=$ac_cv_prog_CPP
8881 else
8882   ac_cv_prog_CPP=$CPP
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8885 $as_echo "$CPP" >&6; }
8886 ac_preproc_ok=false
8887 for ac_c_preproc_warn_flag in '' yes
8888 do
8889   # Use a header file that comes with gcc, so configuring glibc
8890   # with a fresh cross-compiler works.
8891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892   # <limits.h> exists even on freestanding compilers.
8893   # On the NeXT, cc -E runs the code through the compiler's parser,
8894   # not just through cpp. "Syntax error" is here to catch this case.
8895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h.  */
8897 #ifdef __STDC__
8898 # include <limits.h>
8899 #else
8900 # include <assert.h>
8901 #endif
8902                      Syntax error
8903 _ACEOF
8904 if ac_fn_c_try_cpp "$LINENO"; then :
8905
8906 else
8907   # Broken: fails on valid input.
8908 continue
8909 fi
8910 rm -f conftest.err conftest.i conftest.$ac_ext
8911
8912   # OK, works on sane cases.  Now check whether nonexistent headers
8913   # can be detected and how.
8914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h.  */
8916 #include <ac_nonexistent.h>
8917 _ACEOF
8918 if ac_fn_c_try_cpp "$LINENO"; then :
8919   # Broken: success on invalid input.
8920 continue
8921 else
8922   # Passes both tests.
8923 ac_preproc_ok=:
8924 break
8925 fi
8926 rm -f conftest.err conftest.i conftest.$ac_ext
8927
8928 done
8929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8930 rm -f conftest.i conftest.err conftest.$ac_ext
8931 if $ac_preproc_ok; then :
8932
8933 else
8934   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8936 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8937 See \`config.log' for more details" "$LINENO" 5; }
8938 fi
8939
8940 ac_ext=c
8941 ac_cpp='$CPP $CPPFLAGS'
8942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8948 $as_echo_n "checking for ANSI C header files... " >&6; }
8949 if ${ac_cv_header_stdc+:} false; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h.  */
8954 #include <stdlib.h>
8955 #include <stdarg.h>
8956 #include <string.h>
8957 #include <float.h>
8958
8959 int
8960 main ()
8961 {
8962
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968   ac_cv_header_stdc=yes
8969 else
8970   ac_cv_header_stdc=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973
8974 if test $ac_cv_header_stdc = yes; then
8975   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h.  */
8978 #include <string.h>
8979
8980 _ACEOF
8981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982   $EGREP "memchr" >/dev/null 2>&1; then :
8983
8984 else
8985   ac_cv_header_stdc=no
8986 fi
8987 rm -f conftest*
8988
8989 fi
8990
8991 if test $ac_cv_header_stdc = yes; then
8992   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h.  */
8995 #include <stdlib.h>
8996
8997 _ACEOF
8998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999   $EGREP "free" >/dev/null 2>&1; then :
9000
9001 else
9002   ac_cv_header_stdc=no
9003 fi
9004 rm -f conftest*
9005
9006 fi
9007
9008 if test $ac_cv_header_stdc = yes; then
9009   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9010   if test "$cross_compiling" = yes; then :
9011   :
9012 else
9013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h.  */
9015 #include <ctype.h>
9016 #include <stdlib.h>
9017 #if ((' ' & 0x0FF) == 0x020)
9018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9020 #else
9021 # define ISLOWER(c) \
9022                    (('a' <= (c) && (c) <= 'i') \
9023                      || ('j' <= (c) && (c) <= 'r') \
9024                      || ('s' <= (c) && (c) <= 'z'))
9025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9026 #endif
9027
9028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9029 int
9030 main ()
9031 {
9032   int i;
9033   for (i = 0; i < 256; i++)
9034     if (XOR (islower (i), ISLOWER (i))
9035         || toupper (i) != TOUPPER (i))
9036       return 2;
9037   return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_run "$LINENO"; then :
9041
9042 else
9043   ac_cv_header_stdc=no
9044 fi
9045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9046   conftest.$ac_objext conftest.beam conftest.$ac_ext
9047 fi
9048
9049 fi
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9052 $as_echo "$ac_cv_header_stdc" >&6; }
9053 if test $ac_cv_header_stdc = yes; then
9054
9055 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9056
9057 fi
9058
9059 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9061                   inttypes.h stdint.h unistd.h
9062 do :
9063   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9065 "
9066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9067   cat >>confdefs.h <<_ACEOF
9068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069 _ACEOF
9070
9071 fi
9072
9073 done
9074
9075
9076 for ac_header in dlfcn.h
9077 do :
9078   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9079 "
9080 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9081   cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DLFCN_H 1
9083 _ACEOF
9084
9085 fi
9086
9087 done
9088
9089
9090
9091
9092
9093 # Set options
9094 # Check whether --enable-static was given.
9095 if test "${enable_static+set}" = set; then :
9096   enableval=$enable_static; p=${PACKAGE-default}
9097     case $enableval in
9098     yes) enable_static=yes ;;
9099     no) enable_static=no ;;
9100     *)
9101      enable_static=no
9102       # Look at the argument we got.  We use all the common list separators.
9103       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9104       for pkg in $enableval; do
9105         IFS=$lt_save_ifs
9106         if test "X$pkg" = "X$p"; then
9107           enable_static=yes
9108         fi
9109       done
9110       IFS=$lt_save_ifs
9111       ;;
9112     esac
9113 else
9114   enable_static=no
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126         enable_dlopen=no
9127
9128
9129   enable_win32_dll=no
9130
9131
9132             # Check whether --enable-shared was given.
9133 if test "${enable_shared+set}" = set; then :
9134   enableval=$enable_shared; p=${PACKAGE-default}
9135     case $enableval in
9136     yes) enable_shared=yes ;;
9137     no) enable_shared=no ;;
9138     *)
9139       enable_shared=no
9140       # Look at the argument we got.  We use all the common list separators.
9141       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9142       for pkg in $enableval; do
9143         IFS=$lt_save_ifs
9144         if test "X$pkg" = "X$p"; then
9145           enable_shared=yes
9146         fi
9147       done
9148       IFS=$lt_save_ifs
9149       ;;
9150     esac
9151 else
9152   enable_shared=yes
9153 fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165 # Check whether --with-pic was given.
9166 if test "${with_pic+set}" = set; then :
9167   withval=$with_pic; lt_p=${PACKAGE-default}
9168     case $withval in
9169     yes|no) pic_mode=$withval ;;
9170     *)
9171       pic_mode=default
9172       # Look at the argument we got.  We use all the common list separators.
9173       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9174       for lt_pkg in $withval; do
9175         IFS=$lt_save_ifs
9176         if test "X$lt_pkg" = "X$lt_p"; then
9177           pic_mode=yes
9178         fi
9179       done
9180       IFS=$lt_save_ifs
9181       ;;
9182     esac
9183 else
9184   pic_mode=default
9185 fi
9186
9187
9188
9189
9190
9191
9192
9193
9194   # Check whether --enable-fast-install was given.
9195 if test "${enable_fast_install+set}" = set; then :
9196   enableval=$enable_fast_install; p=${PACKAGE-default}
9197     case $enableval in
9198     yes) enable_fast_install=yes ;;
9199     no) enable_fast_install=no ;;
9200     *)
9201       enable_fast_install=no
9202       # Look at the argument we got.  We use all the common list separators.
9203       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9204       for pkg in $enableval; do
9205         IFS=$lt_save_ifs
9206         if test "X$pkg" = "X$p"; then
9207           enable_fast_install=yes
9208         fi
9209       done
9210       IFS=$lt_save_ifs
9211       ;;
9212     esac
9213 else
9214   enable_fast_install=yes
9215 fi
9216
9217
9218
9219
9220
9221
9222
9223
9224   shared_archive_member_spec=
9225 case $host,$enable_shared in
9226 power*-*-aix[5-9]*,yes)
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9228 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9229
9230 # Check whether --with-aix-soname was given.
9231 if test "${with_aix_soname+set}" = set; then :
9232   withval=$with_aix_soname; case $withval in
9233     aix|svr4|both)
9234       ;;
9235     *)
9236       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9237       ;;
9238     esac
9239     lt_cv_with_aix_soname=$with_aix_soname
9240 else
9241   if ${lt_cv_with_aix_soname+:} false; then :
9242   $as_echo_n "(cached) " >&6
9243 else
9244   lt_cv_with_aix_soname=aix
9245 fi
9246
9247     with_aix_soname=$lt_cv_with_aix_soname
9248 fi
9249
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9251 $as_echo "$with_aix_soname" >&6; }
9252   if test aix != "$with_aix_soname"; then
9253     # For the AIX way of multilib, we name the shared archive member
9254     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9255     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9256     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9257     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9258     if test 64 = "${OBJECT_MODE-32}"; then
9259       shared_archive_member_spec=shr_64
9260     else
9261       shared_archive_member_spec=shr
9262     fi
9263   fi
9264   ;;
9265 *)
9266   with_aix_soname=aix
9267   ;;
9268 esac
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279 # This can be used to rebuild libtool when needed
9280 LIBTOOL_DEPS=$ltmain
9281
9282 # Always use our own libtool.
9283 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314 test -z "$LN_S" && LN_S="ln -s"
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 if test -n "${ZSH_VERSION+set}"; then
9330    setopt NO_GLOB_SUBST
9331 fi
9332
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9334 $as_echo_n "checking for objdir... " >&6; }
9335 if ${lt_cv_objdir+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   rm -f .libs 2>/dev/null
9339 mkdir .libs 2>/dev/null
9340 if test -d .libs; then
9341   lt_cv_objdir=.libs
9342 else
9343   # MS-DOS does not allow filenames that begin with a dot.
9344   lt_cv_objdir=_libs
9345 fi
9346 rmdir .libs 2>/dev/null
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9349 $as_echo "$lt_cv_objdir" >&6; }
9350 objdir=$lt_cv_objdir
9351
9352
9353
9354
9355
9356 cat >>confdefs.h <<_ACEOF
9357 #define LT_OBJDIR "$lt_cv_objdir/"
9358 _ACEOF
9359
9360
9361
9362
9363 case $host_os in
9364 aix3*)
9365   # AIX sometimes has problems with the GCC collect2 program.  For some
9366   # reason, if we set the COLLECT_NAMES environment variable, the problems
9367   # vanish in a puff of smoke.
9368   if test set != "${COLLECT_NAMES+set}"; then
9369     COLLECT_NAMES=
9370     export COLLECT_NAMES
9371   fi
9372   ;;
9373 esac
9374
9375 # Global variables:
9376 ofile=libtool
9377 can_build_shared=yes
9378
9379 # All known linkers require a '.a' archive for static linking (except MSVC,
9380 # which needs '.lib').
9381 libext=a
9382
9383 with_gnu_ld=$lt_cv_prog_gnu_ld
9384
9385 old_CC=$CC
9386 old_CFLAGS=$CFLAGS
9387
9388 # Set sane defaults for various variables
9389 test -z "$CC" && CC=cc
9390 test -z "$LTCC" && LTCC=$CC
9391 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9392 test -z "$LD" && LD=ld
9393 test -z "$ac_objext" && ac_objext=o
9394
9395 func_cc_basename $compiler
9396 cc_basename=$func_cc_basename_result
9397
9398
9399 # Only perform the check for file, if the check method requires it
9400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9401 case $deplibs_check_method in
9402 file_magic*)
9403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   case $MAGIC_CMD in
9410 [\\/*] |  ?:[\\/]*)
9411   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9412   ;;
9413 *)
9414   lt_save_MAGIC_CMD=$MAGIC_CMD
9415   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9417   for ac_dir in $ac_dummy; do
9418     IFS=$lt_save_ifs
9419     test -z "$ac_dir" && ac_dir=.
9420     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9421       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9422       if test -n "$file_magic_test_file"; then
9423         case $deplibs_check_method in
9424         "file_magic "*)
9425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9426           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9428             $EGREP "$file_magic_regex" > /dev/null; then
9429             :
9430           else
9431             cat <<_LT_EOF 1>&2
9432
9433 *** Warning: the command libtool uses to detect shared libraries,
9434 *** $file_magic_cmd, produces output that libtool cannot recognize.
9435 *** The result is that libtool may fail to recognize shared libraries
9436 *** as such.  This will affect the creation of libtool libraries that
9437 *** depend on shared libraries, but programs linked with such libtool
9438 *** libraries will work regardless of this problem.  Nevertheless, you
9439 *** may want to report the problem to your system manager and/or to
9440 *** bug-libtool@gnu.org
9441
9442 _LT_EOF
9443           fi ;;
9444         esac
9445       fi
9446       break
9447     fi
9448   done
9449   IFS=$lt_save_ifs
9450   MAGIC_CMD=$lt_save_MAGIC_CMD
9451   ;;
9452 esac
9453 fi
9454
9455 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9456 if test -n "$MAGIC_CMD"; then
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9458 $as_echo "$MAGIC_CMD" >&6; }
9459 else
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9462 fi
9463
9464
9465
9466
9467
9468 if test -z "$lt_cv_path_MAGIC_CMD"; then
9469   if test -n "$ac_tool_prefix"; then
9470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9471 $as_echo_n "checking for file... " >&6; }
9472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9473   $as_echo_n "(cached) " >&6
9474 else
9475   case $MAGIC_CMD in
9476 [\\/*] |  ?:[\\/]*)
9477   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9478   ;;
9479 *)
9480   lt_save_MAGIC_CMD=$MAGIC_CMD
9481   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9482   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9483   for ac_dir in $ac_dummy; do
9484     IFS=$lt_save_ifs
9485     test -z "$ac_dir" && ac_dir=.
9486     if test -f "$ac_dir/file"; then
9487       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9488       if test -n "$file_magic_test_file"; then
9489         case $deplibs_check_method in
9490         "file_magic "*)
9491           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9492           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9493           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9494             $EGREP "$file_magic_regex" > /dev/null; then
9495             :
9496           else
9497             cat <<_LT_EOF 1>&2
9498
9499 *** Warning: the command libtool uses to detect shared libraries,
9500 *** $file_magic_cmd, produces output that libtool cannot recognize.
9501 *** The result is that libtool may fail to recognize shared libraries
9502 *** as such.  This will affect the creation of libtool libraries that
9503 *** depend on shared libraries, but programs linked with such libtool
9504 *** libraries will work regardless of this problem.  Nevertheless, you
9505 *** may want to report the problem to your system manager and/or to
9506 *** bug-libtool@gnu.org
9507
9508 _LT_EOF
9509           fi ;;
9510         esac
9511       fi
9512       break
9513     fi
9514   done
9515   IFS=$lt_save_ifs
9516   MAGIC_CMD=$lt_save_MAGIC_CMD
9517   ;;
9518 esac
9519 fi
9520
9521 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9522 if test -n "$MAGIC_CMD"; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9524 $as_echo "$MAGIC_CMD" >&6; }
9525 else
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528 fi
9529
9530
9531   else
9532     MAGIC_CMD=:
9533   fi
9534 fi
9535
9536   fi
9537   ;;
9538 esac
9539
9540 # Use C for the default configuration in the libtool script
9541
9542 lt_save_CC=$CC
9543 ac_ext=c
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548
9549
9550 # Source file extension for C test sources.
9551 ac_ext=c
9552
9553 # Object file extension for compiled C test sources.
9554 objext=o
9555 objext=$objext
9556
9557 # Code to be used in simple compile tests
9558 lt_simple_compile_test_code="int some_variable = 0;"
9559
9560 # Code to be used in simple link tests
9561 lt_simple_link_test_code='int main(){return(0);}'
9562
9563
9564
9565
9566
9567
9568
9569 # If no C compiler was specified, use CC.
9570 LTCC=${LTCC-"$CC"}
9571
9572 # If no C compiler flags were specified, use CFLAGS.
9573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9574
9575 # Allow CC to be a program name with arguments.
9576 compiler=$CC
9577
9578 # Save the default compiler, since it gets overwritten when the other
9579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9580 compiler_DEFAULT=$CC
9581
9582 # save warnings/boilerplate of simple test code
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_compiler_boilerplate=`cat conftest.err`
9587 $RM conftest*
9588
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9592 _lt_linker_boilerplate=`cat conftest.err`
9593 $RM -r conftest*
9594
9595
9596 ## CAVEAT EMPTOR:
9597 ## There is no encapsulation within the following macros, do not change
9598 ## the running order or otherwise move them around unless you know exactly
9599 ## what you are doing...
9600 if test -n "$compiler"; then
9601
9602 lt_prog_compiler_no_builtin_flag=
9603
9604 if test yes = "$GCC"; then
9605   case $cc_basename in
9606   nvcc*)
9607     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9608   *)
9609     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9610   esac
9611
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9615   $as_echo_n "(cached) " >&6
9616 else
9617   lt_cv_prog_compiler_rtti_exceptions=no
9618    ac_outfile=conftest.$ac_objext
9619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9621    # Insert the option either (1) after the last *FLAGS variable, or
9622    # (2) before a word containing "conftest.", or (3) at the end.
9623    # Note that $ac_compile itself does not contain backslashes and begins
9624    # with a dollar sign (not a hyphen), so the echo should work correctly.
9625    # The option is referenced via a variable to avoid confusing sed.
9626    lt_compile=`echo "$ac_compile" | $SED \
9627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629    -e 's:$: $lt_compiler_flag:'`
9630    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631    (eval "$lt_compile" 2>conftest.err)
9632    ac_status=$?
9633    cat conftest.err >&5
9634    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635    if (exit $ac_status) && test -s "$ac_outfile"; then
9636      # The compiler can only warn and ignore the option if not recognized
9637      # So say no if there are warnings other than the usual output.
9638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641        lt_cv_prog_compiler_rtti_exceptions=yes
9642      fi
9643    fi
9644    $RM conftest*
9645
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9649
9650 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9651     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9652 else
9653     :
9654 fi
9655
9656 fi
9657
9658
9659
9660
9661
9662
9663   lt_prog_compiler_wl=
9664 lt_prog_compiler_pic=
9665 lt_prog_compiler_static=
9666
9667
9668   if test yes = "$GCC"; then
9669     lt_prog_compiler_wl='-Wl,'
9670     lt_prog_compiler_static='-static'
9671
9672     case $host_os in
9673       aix*)
9674       # All AIX code is PIC.
9675       if test ia64 = "$host_cpu"; then
9676         # AIX 5 now supports IA64 processor
9677         lt_prog_compiler_static='-Bstatic'
9678       fi
9679       lt_prog_compiler_pic='-fPIC'
9680       ;;
9681
9682     amigaos*)
9683       case $host_cpu in
9684       powerpc)
9685             # see comment about AmigaOS4 .so support
9686             lt_prog_compiler_pic='-fPIC'
9687         ;;
9688       m68k)
9689             # FIXME: we need at least 68020 code to build shared libraries, but
9690             # adding the '-m68020' flag to GCC prevents building anything better,
9691             # like '-m68040'.
9692             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9693         ;;
9694       esac
9695       ;;
9696
9697     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9698       # PIC is the default for these OSes.
9699       ;;
9700
9701     mingw* | cygwin* | pw32* | os2* | cegcc*)
9702       # This hack is so that the source file can tell whether it is being
9703       # built for inclusion in a dll (and should export symbols for example).
9704       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9705       # (--disable-auto-import) libraries
9706       lt_prog_compiler_pic='-DDLL_EXPORT'
9707       case $host_os in
9708       os2*)
9709         lt_prog_compiler_static='$wl-static'
9710         ;;
9711       esac
9712       ;;
9713
9714     darwin* | rhapsody*)
9715       # PIC is the default on this platform
9716       # Common symbols not allowed in MH_DYLIB files
9717       lt_prog_compiler_pic='-fno-common'
9718       ;;
9719
9720     haiku*)
9721       # PIC is the default for Haiku.
9722       # The "-static" flag exists, but is broken.
9723       lt_prog_compiler_static=
9724       ;;
9725
9726     hpux*)
9727       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9728       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9729       # sets the default TLS model and affects inlining.
9730       case $host_cpu in
9731       hppa*64*)
9732         # +Z the default
9733         ;;
9734       *)
9735         lt_prog_compiler_pic='-fPIC'
9736         ;;
9737       esac
9738       ;;
9739
9740     interix[3-9]*)
9741       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9742       # Instead, we relocate shared libraries at runtime.
9743       ;;
9744
9745     msdosdjgpp*)
9746       # Just because we use GCC doesn't mean we suddenly get shared libraries
9747       # on systems that don't support them.
9748       lt_prog_compiler_can_build_shared=no
9749       enable_shared=no
9750       ;;
9751
9752     *nto* | *qnx*)
9753       # QNX uses GNU C++, but need to define -shared option too, otherwise
9754       # it will coredump.
9755       lt_prog_compiler_pic='-fPIC -shared'
9756       ;;
9757
9758     sysv4*MP*)
9759       if test -d /usr/nec; then
9760         lt_prog_compiler_pic=-Kconform_pic
9761       fi
9762       ;;
9763
9764     *)
9765       lt_prog_compiler_pic='-fPIC'
9766       ;;
9767     esac
9768
9769     case $cc_basename in
9770     nvcc*) # Cuda Compiler Driver 2.2
9771       lt_prog_compiler_wl='-Xlinker '
9772       if test -n "$lt_prog_compiler_pic"; then
9773         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9774       fi
9775       ;;
9776     esac
9777   else
9778     # PORTME Check for flag to pass linker flags through the system compiler.
9779     case $host_os in
9780     aix*)
9781       lt_prog_compiler_wl='-Wl,'
9782       if test ia64 = "$host_cpu"; then
9783         # AIX 5 now supports IA64 processor
9784         lt_prog_compiler_static='-Bstatic'
9785       else
9786         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9787       fi
9788       ;;
9789
9790     darwin* | rhapsody*)
9791       # PIC is the default on this platform
9792       # Common symbols not allowed in MH_DYLIB files
9793       lt_prog_compiler_pic='-fno-common'
9794       case $cc_basename in
9795       nagfor*)
9796         # NAG Fortran compiler
9797         lt_prog_compiler_wl='-Wl,-Wl,,'
9798         lt_prog_compiler_pic='-PIC'
9799         lt_prog_compiler_static='-Bstatic'
9800         ;;
9801       esac
9802       ;;
9803
9804     mingw* | cygwin* | pw32* | os2* | cegcc*)
9805       # This hack is so that the source file can tell whether it is being
9806       # built for inclusion in a dll (and should export symbols for example).
9807       lt_prog_compiler_pic='-DDLL_EXPORT'
9808       case $host_os in
9809       os2*)
9810         lt_prog_compiler_static='$wl-static'
9811         ;;
9812       esac
9813       ;;
9814
9815     hpux9* | hpux10* | hpux11*)
9816       lt_prog_compiler_wl='-Wl,'
9817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9818       # not for PA HP-UX.
9819       case $host_cpu in
9820       hppa*64*|ia64*)
9821         # +Z the default
9822         ;;
9823       *)
9824         lt_prog_compiler_pic='+Z'
9825         ;;
9826       esac
9827       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9828       lt_prog_compiler_static='$wl-a ${wl}archive'
9829       ;;
9830
9831     irix5* | irix6* | nonstopux*)
9832       lt_prog_compiler_wl='-Wl,'
9833       # PIC (with -KPIC) is the default.
9834       lt_prog_compiler_static='-non_shared'
9835       ;;
9836
9837     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9838       case $cc_basename in
9839       # old Intel for x86_64, which still supported -KPIC.
9840       ecc*)
9841         lt_prog_compiler_wl='-Wl,'
9842         lt_prog_compiler_pic='-KPIC'
9843         lt_prog_compiler_static='-static'
9844         ;;
9845       # icc used to be incompatible with GCC.
9846       # ICC 10 doesn't accept -KPIC any more.
9847       icc* | ifort*)
9848         lt_prog_compiler_wl='-Wl,'
9849         lt_prog_compiler_pic='-fPIC'
9850         lt_prog_compiler_static='-static'
9851         ;;
9852       # Lahey Fortran 8.1.
9853       lf95*)
9854         lt_prog_compiler_wl='-Wl,'
9855         lt_prog_compiler_pic='--shared'
9856         lt_prog_compiler_static='--static'
9857         ;;
9858       nagfor*)
9859         # NAG Fortran compiler
9860         lt_prog_compiler_wl='-Wl,-Wl,,'
9861         lt_prog_compiler_pic='-PIC'
9862         lt_prog_compiler_static='-Bstatic'
9863         ;;
9864       tcc*)
9865         # Fabrice Bellard et al's Tiny C Compiler
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='-fPIC'
9868         lt_prog_compiler_static='-static'
9869         ;;
9870       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9871         # Portland Group compilers (*not* the Pentium gcc compiler,
9872         # which looks to be a dead project)
9873         lt_prog_compiler_wl='-Wl,'
9874         lt_prog_compiler_pic='-fpic'
9875         lt_prog_compiler_static='-Bstatic'
9876         ;;
9877       ccc*)
9878         lt_prog_compiler_wl='-Wl,'
9879         # All Alpha code is PIC.
9880         lt_prog_compiler_static='-non_shared'
9881         ;;
9882       xl* | bgxl* | bgf* | mpixl*)
9883         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9884         lt_prog_compiler_wl='-Wl,'
9885         lt_prog_compiler_pic='-qpic'
9886         lt_prog_compiler_static='-qstaticlink'
9887         ;;
9888       *)
9889         case `$CC -V 2>&1 | sed 5q` in
9890         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9891           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9892           lt_prog_compiler_pic='-KPIC'
9893           lt_prog_compiler_static='-Bstatic'
9894           lt_prog_compiler_wl=''
9895           ;;
9896         *Sun\ F* | *Sun*Fortran*)
9897           lt_prog_compiler_pic='-KPIC'
9898           lt_prog_compiler_static='-Bstatic'
9899           lt_prog_compiler_wl='-Qoption ld '
9900           ;;
9901         *Sun\ C*)
9902           # Sun C 5.9
9903           lt_prog_compiler_pic='-KPIC'
9904           lt_prog_compiler_static='-Bstatic'
9905           lt_prog_compiler_wl='-Wl,'
9906           ;;
9907         *Intel*\ [CF]*Compiler*)
9908           lt_prog_compiler_wl='-Wl,'
9909           lt_prog_compiler_pic='-fPIC'
9910           lt_prog_compiler_static='-static'
9911           ;;
9912         *Portland\ Group*)
9913           lt_prog_compiler_wl='-Wl,'
9914           lt_prog_compiler_pic='-fpic'
9915           lt_prog_compiler_static='-Bstatic'
9916           ;;
9917         esac
9918         ;;
9919       esac
9920       ;;
9921
9922     newsos6)
9923       lt_prog_compiler_pic='-KPIC'
9924       lt_prog_compiler_static='-Bstatic'
9925       ;;
9926
9927     *nto* | *qnx*)
9928       # QNX uses GNU C++, but need to define -shared option too, otherwise
9929       # it will coredump.
9930       lt_prog_compiler_pic='-fPIC -shared'
9931       ;;
9932
9933     osf3* | osf4* | osf5*)
9934       lt_prog_compiler_wl='-Wl,'
9935       # All OSF/1 code is PIC.
9936       lt_prog_compiler_static='-non_shared'
9937       ;;
9938
9939     rdos*)
9940       lt_prog_compiler_static='-non_shared'
9941       ;;
9942
9943     solaris*)
9944       lt_prog_compiler_pic='-KPIC'
9945       lt_prog_compiler_static='-Bstatic'
9946       case $cc_basename in
9947       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9948         lt_prog_compiler_wl='-Qoption ld ';;
9949       *)
9950         lt_prog_compiler_wl='-Wl,';;
9951       esac
9952       ;;
9953
9954     sunos4*)
9955       lt_prog_compiler_wl='-Qoption ld '
9956       lt_prog_compiler_pic='-PIC'
9957       lt_prog_compiler_static='-Bstatic'
9958       ;;
9959
9960     sysv4 | sysv4.2uw2* | sysv4.3*)
9961       lt_prog_compiler_wl='-Wl,'
9962       lt_prog_compiler_pic='-KPIC'
9963       lt_prog_compiler_static='-Bstatic'
9964       ;;
9965
9966     sysv4*MP*)
9967       if test -d /usr/nec; then
9968         lt_prog_compiler_pic='-Kconform_pic'
9969         lt_prog_compiler_static='-Bstatic'
9970       fi
9971       ;;
9972
9973     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9974       lt_prog_compiler_wl='-Wl,'
9975       lt_prog_compiler_pic='-KPIC'
9976       lt_prog_compiler_static='-Bstatic'
9977       ;;
9978
9979     unicos*)
9980       lt_prog_compiler_wl='-Wl,'
9981       lt_prog_compiler_can_build_shared=no
9982       ;;
9983
9984     uts4*)
9985       lt_prog_compiler_pic='-pic'
9986       lt_prog_compiler_static='-Bstatic'
9987       ;;
9988
9989     *)
9990       lt_prog_compiler_can_build_shared=no
9991       ;;
9992     esac
9993   fi
9994
9995 case $host_os in
9996   # For platforms that do not support PIC, -DPIC is meaningless:
9997   *djgpp*)
9998     lt_prog_compiler_pic=
9999     ;;
10000   *)
10001     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10002     ;;
10003 esac
10004
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10007 if ${lt_cv_prog_compiler_pic+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10013 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10014 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10015
10016 #
10017 # Check to make sure the PIC flag actually works.
10018 #
10019 if test -n "$lt_prog_compiler_pic"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10022 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   lt_cv_prog_compiler_pic_works=no
10026    ac_outfile=conftest.$ac_objext
10027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10029    # Insert the option either (1) after the last *FLAGS variable, or
10030    # (2) before a word containing "conftest.", or (3) at the end.
10031    # Note that $ac_compile itself does not contain backslashes and begins
10032    # with a dollar sign (not a hyphen), so the echo should work correctly.
10033    # The option is referenced via a variable to avoid confusing sed.
10034    lt_compile=`echo "$ac_compile" | $SED \
10035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10037    -e 's:$: $lt_compiler_flag:'`
10038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10039    (eval "$lt_compile" 2>conftest.err)
10040    ac_status=$?
10041    cat conftest.err >&5
10042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043    if (exit $ac_status) && test -s "$ac_outfile"; then
10044      # The compiler can only warn and ignore the option if not recognized
10045      # So say no if there are warnings other than the usual output.
10046      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10047      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10048      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10049        lt_cv_prog_compiler_pic_works=yes
10050      fi
10051    fi
10052    $RM conftest*
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10056 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10057
10058 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10059     case $lt_prog_compiler_pic in
10060      "" | " "*) ;;
10061      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10062      esac
10063 else
10064     lt_prog_compiler_pic=
10065      lt_prog_compiler_can_build_shared=no
10066 fi
10067
10068 fi
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080 #
10081 # Check to make sure the static flag actually works.
10082 #
10083 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10085 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10086 if ${lt_cv_prog_compiler_static_works+:} false; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089   lt_cv_prog_compiler_static_works=no
10090    save_LDFLAGS=$LDFLAGS
10091    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10092    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10093    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10094      # The linker can only warn and ignore the option if not recognized
10095      # So say no if there are warnings
10096      if test -s conftest.err; then
10097        # Append any errors to the config.log.
10098        cat conftest.err 1>&5
10099        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10100        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10101        if diff conftest.exp conftest.er2 >/dev/null; then
10102          lt_cv_prog_compiler_static_works=yes
10103        fi
10104      else
10105        lt_cv_prog_compiler_static_works=yes
10106      fi
10107    fi
10108    $RM -r conftest*
10109    LDFLAGS=$save_LDFLAGS
10110
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10113 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10114
10115 if test yes = "$lt_cv_prog_compiler_static_works"; then
10116     :
10117 else
10118     lt_prog_compiler_static=
10119 fi
10120
10121
10122
10123
10124
10125
10126
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10129 if ${lt_cv_prog_compiler_c_o+:} false; then :
10130   $as_echo_n "(cached) " >&6
10131 else
10132   lt_cv_prog_compiler_c_o=no
10133    $RM -r conftest 2>/dev/null
10134    mkdir conftest
10135    cd conftest
10136    mkdir out
10137    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10138
10139    lt_compiler_flag="-o out/conftest2.$ac_objext"
10140    # Insert the option either (1) after the last *FLAGS variable, or
10141    # (2) before a word containing "conftest.", or (3) at the end.
10142    # Note that $ac_compile itself does not contain backslashes and begins
10143    # with a dollar sign (not a hyphen), so the echo should work correctly.
10144    lt_compile=`echo "$ac_compile" | $SED \
10145    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10146    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10147    -e 's:$: $lt_compiler_flag:'`
10148    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10149    (eval "$lt_compile" 2>out/conftest.err)
10150    ac_status=$?
10151    cat out/conftest.err >&5
10152    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10154    then
10155      # The compiler can only warn and ignore the option if not recognized
10156      # So say no if there are warnings
10157      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10158      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10159      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10160        lt_cv_prog_compiler_c_o=yes
10161      fi
10162    fi
10163    chmod u+w . 2>&5
10164    $RM conftest*
10165    # SGI C++ compiler will create directory out/ii_files/ for
10166    # template instantiation
10167    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10168    $RM out/* && rmdir out
10169    cd ..
10170    $RM -r conftest
10171    $RM conftest*
10172
10173 fi
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10176
10177
10178
10179
10180
10181
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10184 if ${lt_cv_prog_compiler_c_o+:} false; then :
10185   $as_echo_n "(cached) " >&6
10186 else
10187   lt_cv_prog_compiler_c_o=no
10188    $RM -r conftest 2>/dev/null
10189    mkdir conftest
10190    cd conftest
10191    mkdir out
10192    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193
10194    lt_compiler_flag="-o out/conftest2.$ac_objext"
10195    # Insert the option either (1) after the last *FLAGS variable, or
10196    # (2) before a word containing "conftest.", or (3) at the end.
10197    # Note that $ac_compile itself does not contain backslashes and begins
10198    # with a dollar sign (not a hyphen), so the echo should work correctly.
10199    lt_compile=`echo "$ac_compile" | $SED \
10200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10202    -e 's:$: $lt_compiler_flag:'`
10203    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10204    (eval "$lt_compile" 2>out/conftest.err)
10205    ac_status=$?
10206    cat out/conftest.err >&5
10207    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10209    then
10210      # The compiler can only warn and ignore the option if not recognized
10211      # So say no if there are warnings
10212      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10213      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10214      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10215        lt_cv_prog_compiler_c_o=yes
10216      fi
10217    fi
10218    chmod u+w . 2>&5
10219    $RM conftest*
10220    # SGI C++ compiler will create directory out/ii_files/ for
10221    # template instantiation
10222    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10223    $RM out/* && rmdir out
10224    cd ..
10225    $RM -r conftest
10226    $RM conftest*
10227
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10231
10232
10233
10234
10235 hard_links=nottested
10236 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10237   # do not overwrite the value of need_locks provided by the user
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10239 $as_echo_n "checking if we can lock with hard links... " >&6; }
10240   hard_links=yes
10241   $RM conftest*
10242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10243   touch conftest.a
10244   ln conftest.a conftest.b 2>&5 || hard_links=no
10245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10247 $as_echo "$hard_links" >&6; }
10248   if test no = "$hard_links"; then
10249     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10250 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10251     need_locks=warn
10252   fi
10253 else
10254   need_locks=no
10255 fi
10256
10257
10258
10259
10260
10261
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10264
10265   runpath_var=
10266   allow_undefined_flag=
10267   always_export_symbols=no
10268   archive_cmds=
10269   archive_expsym_cmds=
10270   compiler_needs_object=no
10271   enable_shared_with_static_runtimes=no
10272   export_dynamic_flag_spec=
10273   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10274   hardcode_automatic=no
10275   hardcode_direct=no
10276   hardcode_direct_absolute=no
10277   hardcode_libdir_flag_spec=
10278   hardcode_libdir_separator=
10279   hardcode_minus_L=no
10280   hardcode_shlibpath_var=unsupported
10281   inherit_rpath=no
10282   link_all_deplibs=unknown
10283   module_cmds=
10284   module_expsym_cmds=
10285   old_archive_from_new_cmds=
10286   old_archive_from_expsyms_cmds=
10287   thread_safe_flag_spec=
10288   whole_archive_flag_spec=
10289   # include_expsyms should be a list of space-separated symbols to be *always*
10290   # included in the symbol list
10291   include_expsyms=
10292   # exclude_expsyms can be an extended regexp of symbols to exclude
10293   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10294   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10295   # as well as any symbol that contains 'd'.
10296   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10297   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10298   # platforms (ab)use it in PIC code, but their linkers get confused if
10299   # the symbol is explicitly referenced.  Since portable code cannot
10300   # rely on this symbol name, it's probably fine to never include it in
10301   # preloaded symbol tables.
10302   # Exclude shared library initialization/finalization symbols.
10303   extract_expsyms_cmds=
10304
10305   case $host_os in
10306   cygwin* | mingw* | pw32* | cegcc*)
10307     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10308     # When not using gcc, we currently assume that we are using
10309     # Microsoft Visual C++.
10310     if test yes != "$GCC"; then
10311       with_gnu_ld=no
10312     fi
10313     ;;
10314   interix*)
10315     # we just hope/assume this is gcc and not c89 (= MSVC++)
10316     with_gnu_ld=yes
10317     ;;
10318   openbsd* | bitrig*)
10319     with_gnu_ld=no
10320     ;;
10321   esac
10322
10323   ld_shlibs=yes
10324
10325   # On some targets, GNU ld is compatible enough with the native linker
10326   # that we're better off using the native interface for both.
10327   lt_use_gnu_ld_interface=no
10328   if test yes = "$with_gnu_ld"; then
10329     case $host_os in
10330       aix*)
10331         # The AIX port of GNU ld has always aspired to compatibility
10332         # with the native linker.  However, as the warning in the GNU ld
10333         # block says, versions before 2.19.5* couldn't really create working
10334         # shared libraries, regardless of the interface used.
10335         case `$LD -v 2>&1` in
10336           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10337           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10338           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10339           *)
10340             lt_use_gnu_ld_interface=yes
10341             ;;
10342         esac
10343         ;;
10344       *)
10345         lt_use_gnu_ld_interface=yes
10346         ;;
10347     esac
10348   fi
10349
10350   if test yes = "$lt_use_gnu_ld_interface"; then
10351     # If archive_cmds runs LD, not CC, wlarc should be empty
10352     wlarc='$wl'
10353
10354     # Set some defaults for GNU ld with shared library support. These
10355     # are reset later if shared libraries are not supported. Putting them
10356     # here allows them to be overridden if necessary.
10357     runpath_var=LD_RUN_PATH
10358     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10359     export_dynamic_flag_spec='$wl--export-dynamic'
10360     # ancient GNU ld didn't support --whole-archive et. al.
10361     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10362       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10363     else
10364       whole_archive_flag_spec=
10365     fi
10366     supports_anon_versioning=no
10367     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10368       *GNU\ gold*) supports_anon_versioning=yes ;;
10369       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10370       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10371       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10372       *\ 2.11.*) ;; # other 2.11 versions
10373       *) supports_anon_versioning=yes ;;
10374     esac
10375
10376     # See if GNU ld supports shared libraries.
10377     case $host_os in
10378     aix[3-9]*)
10379       # On AIX/PPC, the GNU linker is very broken
10380       if test ia64 != "$host_cpu"; then
10381         ld_shlibs=no
10382         cat <<_LT_EOF 1>&2
10383
10384 *** Warning: the GNU linker, at least up to release 2.19, is reported
10385 *** to be unable to reliably create shared libraries on AIX.
10386 *** Therefore, libtool is disabling shared libraries support.  If you
10387 *** really care for shared libraries, you may want to install binutils
10388 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10389 *** You will then need to restart the configuration process.
10390
10391 _LT_EOF
10392       fi
10393       ;;
10394
10395     amigaos*)
10396       case $host_cpu in
10397       powerpc)
10398             # see comment about AmigaOS4 .so support
10399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10400             archive_expsym_cmds=''
10401         ;;
10402       m68k)
10403             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)'
10404             hardcode_libdir_flag_spec='-L$libdir'
10405             hardcode_minus_L=yes
10406         ;;
10407       esac
10408       ;;
10409
10410     beos*)
10411       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412         allow_undefined_flag=unsupported
10413         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414         # support --undefined.  This deserves some investigation.  FIXME
10415         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10416       else
10417         ld_shlibs=no
10418       fi
10419       ;;
10420
10421     cygwin* | mingw* | pw32* | cegcc*)
10422       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10423       # as there is no search path for DLLs.
10424       hardcode_libdir_flag_spec='-L$libdir'
10425       export_dynamic_flag_spec='$wl--export-all-symbols'
10426       allow_undefined_flag=unsupported
10427       always_export_symbols=no
10428       enable_shared_with_static_runtimes=yes
10429       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'
10430       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10431
10432       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10434         # If the export-symbols file already is a .def file, use it as
10435         # is; otherwise, prepend EXPORTS...
10436         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10437           cp $export_symbols $output_objdir/$soname.def;
10438         else
10439           echo EXPORTS > $output_objdir/$soname.def;
10440           cat $export_symbols >> $output_objdir/$soname.def;
10441         fi~
10442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10443       else
10444         ld_shlibs=no
10445       fi
10446       ;;
10447
10448     haiku*)
10449       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10450       link_all_deplibs=yes
10451       ;;
10452
10453     os2*)
10454       hardcode_libdir_flag_spec='-L$libdir'
10455       hardcode_minus_L=yes
10456       allow_undefined_flag=unsupported
10457       shrext_cmds=.dll
10458       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10459         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10460         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10461         $ECHO EXPORTS >> $output_objdir/$libname.def~
10462         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10463         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10464         emximp -o $lib $output_objdir/$libname.def'
10465       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10466         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10467         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10468         $ECHO EXPORTS >> $output_objdir/$libname.def~
10469         prefix_cmds="$SED"~
10470         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10471           prefix_cmds="$prefix_cmds -e 1d";
10472         fi~
10473         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10474         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10475         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10476         emximp -o $lib $output_objdir/$libname.def'
10477       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10478       enable_shared_with_static_runtimes=yes
10479       ;;
10480
10481     interix[3-9]*)
10482       hardcode_direct=no
10483       hardcode_shlibpath_var=no
10484       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10485       export_dynamic_flag_spec='$wl-E'
10486       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10487       # Instead, shared libraries are loaded at an image base (0x10000000 by
10488       # default) and relocated if they conflict, which is a slow very memory
10489       # consuming and fragmenting process.  To avoid this, we pick a random,
10490       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10491       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10492       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10493       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'
10494       ;;
10495
10496     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10497       tmp_diet=no
10498       if test linux-dietlibc = "$host_os"; then
10499         case $cc_basename in
10500           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10501         esac
10502       fi
10503       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10504          && test no = "$tmp_diet"
10505       then
10506         tmp_addflag=' $pic_flag'
10507         tmp_sharedflag='-shared'
10508         case $cc_basename,$host_cpu in
10509         pgcc*)                          # Portland Group C compiler
10510           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'
10511           tmp_addflag=' $pic_flag'
10512           ;;
10513         pgf77* | pgf90* | pgf95* | pgfortran*)
10514                                         # Portland Group f77 and f90 compilers
10515           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'
10516           tmp_addflag=' $pic_flag -Mnomain' ;;
10517         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10518           tmp_addflag=' -i_dynamic' ;;
10519         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10520           tmp_addflag=' -i_dynamic -nofor_main' ;;
10521         ifc* | ifort*)                  # Intel Fortran compiler
10522           tmp_addflag=' -nofor_main' ;;
10523         lf95*)                          # Lahey Fortran 8.1
10524           whole_archive_flag_spec=
10525           tmp_sharedflag='--shared' ;;
10526         nagfor*)                        # NAGFOR 5.3
10527           tmp_sharedflag='-Wl,-shared' ;;
10528         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10529           tmp_sharedflag='-qmkshrobj'
10530           tmp_addflag= ;;
10531         nvcc*)  # Cuda Compiler Driver 2.2
10532           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'
10533           compiler_needs_object=yes
10534           ;;
10535         esac
10536         case `$CC -V 2>&1 | sed 5q` in
10537         *Sun\ C*)                       # Sun C 5.9
10538           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'
10539           compiler_needs_object=yes
10540           tmp_sharedflag='-G' ;;
10541         *Sun\ F*)                       # Sun Fortran 8.3
10542           tmp_sharedflag='-G' ;;
10543         esac
10544         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10545
10546         if test yes = "$supports_anon_versioning"; then
10547           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10548             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10549             echo "local: *; };" >> $output_objdir/$libname.ver~
10550             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10551         fi
10552
10553         case $cc_basename in
10554         tcc*)
10555           export_dynamic_flag_spec='-rdynamic'
10556           ;;
10557         xlf* | bgf* | bgxlf* | mpixlf*)
10558           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10559           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10560           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10562           if test yes = "$supports_anon_versioning"; then
10563             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10564               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10565               echo "local: *; };" >> $output_objdir/$libname.ver~
10566               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10567           fi
10568           ;;
10569         esac
10570       else
10571         ld_shlibs=no
10572       fi
10573       ;;
10574
10575     netbsd*)
10576       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10577         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10578         wlarc=
10579       else
10580         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10581         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10582       fi
10583       ;;
10584
10585     solaris*)
10586       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10587         ld_shlibs=no
10588         cat <<_LT_EOF 1>&2
10589
10590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10591 *** create shared libraries on Solaris systems.  Therefore, libtool
10592 *** is disabling shared libraries support.  We urge you to upgrade GNU
10593 *** binutils to release 2.9.1 or newer.  Another option is to modify
10594 *** your PATH or compiler configuration so that the native linker is
10595 *** used, and then restart.
10596
10597 _LT_EOF
10598       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10599         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10600         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10601       else
10602         ld_shlibs=no
10603       fi
10604       ;;
10605
10606     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10607       case `$LD -v 2>&1` in
10608         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10609         ld_shlibs=no
10610         cat <<_LT_EOF 1>&2
10611
10612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10613 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10614 *** is disabling shared libraries support.  We urge you to upgrade GNU
10615 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10616 *** your PATH or compiler configuration so that the native linker is
10617 *** used, and then restart.
10618
10619 _LT_EOF
10620         ;;
10621         *)
10622           # For security reasons, it is highly recommended that you always
10623           # use absolute paths for naming shared libraries, and exclude the
10624           # DT_RUNPATH tag from executables and libraries.  But doing so
10625           # requires that you compile everything twice, which is a pain.
10626           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10627             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10628             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10629             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10630           else
10631             ld_shlibs=no
10632           fi
10633         ;;
10634       esac
10635       ;;
10636
10637     sunos4*)
10638       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10639       wlarc=
10640       hardcode_direct=yes
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     *)
10645       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10646         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10647         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10648       else
10649         ld_shlibs=no
10650       fi
10651       ;;
10652     esac
10653
10654     if test no = "$ld_shlibs"; then
10655       runpath_var=
10656       hardcode_libdir_flag_spec=
10657       export_dynamic_flag_spec=
10658       whole_archive_flag_spec=
10659     fi
10660   else
10661     # PORTME fill in a description of your system's linker (not GNU ld)
10662     case $host_os in
10663     aix3*)
10664       allow_undefined_flag=unsupported
10665       always_export_symbols=yes
10666       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'
10667       # Note: this linker hardcodes the directories in LIBPATH if there
10668       # are no directories specified by -L.
10669       hardcode_minus_L=yes
10670       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10671         # Neither direct hardcoding nor static linking is supported with a
10672         # broken collect2.
10673         hardcode_direct=unsupported
10674       fi
10675       ;;
10676
10677     aix[4-9]*)
10678       if test ia64 = "$host_cpu"; then
10679         # On IA64, the linker does run time linking by default, so we don't
10680         # have to do anything special.
10681         aix_use_runtimelinking=no
10682         exp_sym_flag='-Bexport'
10683         no_entry_flag=
10684       else
10685         # If we're using GNU nm, then we don't want the "-C" option.
10686         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10687         # Without the "-l" option, or with the "-B" option, AIX nm treats
10688         # weak defined symbols like other global defined symbols, whereas
10689         # GNU nm marks them as "W".
10690         # While the 'weak' keyword is ignored in the Export File, we need
10691         # it in the Import File for the 'aix-soname' feature, so we have
10692         # to replace the "-B" option with "-P" for AIX nm.
10693         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10694           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'
10695         else
10696           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'
10697         fi
10698         aix_use_runtimelinking=no
10699
10700         # Test if we are trying to use run time linking or normal
10701         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10702         # have runtime linking enabled, and use it for executables.
10703         # For shared libraries, we enable/disable runtime linking
10704         # depending on the kind of the shared library created -
10705         # when "with_aix_soname,aix_use_runtimelinking" is:
10706         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10707         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10708         #            lib.a           static archive
10709         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10710         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10711         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10712         #            lib.a(lib.so.V) shared, rtl:no
10713         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10714         #            lib.a           static archive
10715         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10716           for ld_flag in $LDFLAGS; do
10717           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10718             aix_use_runtimelinking=yes
10719             break
10720           fi
10721           done
10722           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10723             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10724             # so we don't have lib.a shared libs to link our executables.
10725             # We have to force runtime linking in this case.
10726             aix_use_runtimelinking=yes
10727             LDFLAGS="$LDFLAGS -Wl,-brtl"
10728           fi
10729           ;;
10730         esac
10731
10732         exp_sym_flag='-bexport'
10733         no_entry_flag='-bnoentry'
10734       fi
10735
10736       # When large executables or shared objects are built, AIX ld can
10737       # have problems creating the table of contents.  If linking a library
10738       # or program results in "error TOC overflow" add -mminimal-toc to
10739       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10740       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10741
10742       archive_cmds=''
10743       hardcode_direct=yes
10744       hardcode_direct_absolute=yes
10745       hardcode_libdir_separator=':'
10746       link_all_deplibs=yes
10747       file_list_spec='$wl-f,'
10748       case $with_aix_soname,$aix_use_runtimelinking in
10749       aix,*) ;; # traditional, no import file
10750       svr4,* | *,yes) # use import file
10751         # The Import File defines what to hardcode.
10752         hardcode_direct=no
10753         hardcode_direct_absolute=no
10754         ;;
10755       esac
10756
10757       if test yes = "$GCC"; then
10758         case $host_os in aix4.[012]|aix4.[012].*)
10759         # We only want to do this on AIX 4.2 and lower, the check
10760         # below for broken collect2 doesn't work under 4.3+
10761           collect2name=`$CC -print-prog-name=collect2`
10762           if test -f "$collect2name" &&
10763            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10764           then
10765           # We have reworked collect2
10766           :
10767           else
10768           # We have old collect2
10769           hardcode_direct=unsupported
10770           # It fails to find uninstalled libraries when the uninstalled
10771           # path is not listed in the libpath.  Setting hardcode_minus_L
10772           # to unsupported forces relinking
10773           hardcode_minus_L=yes
10774           hardcode_libdir_flag_spec='-L$libdir'
10775           hardcode_libdir_separator=
10776           fi
10777           ;;
10778         esac
10779         shared_flag='-shared'
10780         if test yes = "$aix_use_runtimelinking"; then
10781           shared_flag="$shared_flag "'$wl-G'
10782         fi
10783         # Need to ensure runtime linking is disabled for the traditional
10784         # shared library, or the linker may eventually find shared libraries
10785         # /with/ Import File - we do not want to mix them.
10786         shared_flag_aix='-shared'
10787         shared_flag_svr4='-shared $wl-G'
10788       else
10789         # not using gcc
10790         if test ia64 = "$host_cpu"; then
10791         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10792         # chokes on -Wl,-G. The following line is correct:
10793           shared_flag='-G'
10794         else
10795           if test yes = "$aix_use_runtimelinking"; then
10796             shared_flag='$wl-G'
10797           else
10798             shared_flag='$wl-bM:SRE'
10799           fi
10800           shared_flag_aix='$wl-bM:SRE'
10801           shared_flag_svr4='$wl-G'
10802         fi
10803       fi
10804
10805       export_dynamic_flag_spec='$wl-bexpall'
10806       # It seems that -bexpall does not export symbols beginning with
10807       # underscore (_), so it is better to generate a list of symbols to export.
10808       always_export_symbols=yes
10809       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10810         # Warning - without using the other runtime loading flags (-brtl),
10811         # -berok will link without error, but may produce a broken library.
10812         allow_undefined_flag='-berok'
10813         # Determine the default libpath from the value encoded in an
10814         # empty executable.
10815         if test set = "${lt_cv_aix_libpath+set}"; then
10816   aix_libpath=$lt_cv_aix_libpath
10817 else
10818   if ${lt_cv_aix_libpath_+:} false; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h.  */
10823
10824 int
10825 main ()
10826 {
10827
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833
10834   lt_aix_libpath_sed='
10835       /Import File Strings/,/^$/ {
10836           /^0/ {
10837               s/^0  *\([^ ]*\) *$/\1/
10838               p
10839           }
10840       }'
10841   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10842   # Check for a 64-bit object if we didn't find anything.
10843   if test -z "$lt_cv_aix_libpath_"; then
10844     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10845   fi
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848     conftest$ac_exeext conftest.$ac_ext
10849   if test -z "$lt_cv_aix_libpath_"; then
10850     lt_cv_aix_libpath_=/usr/lib:/lib
10851   fi
10852
10853 fi
10854
10855   aix_libpath=$lt_cv_aix_libpath_
10856 fi
10857
10858         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10859         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
10860       else
10861         if test ia64 = "$host_cpu"; then
10862           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10863           allow_undefined_flag="-z nodefs"
10864           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"
10865         else
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           # Warning - without using the other run time loading flags,
10913           # -berok will link without error, but may produce a broken library.
10914           no_undefined_flag=' $wl-bernotok'
10915           allow_undefined_flag=' $wl-berok'
10916           if test yes = "$with_gnu_ld"; then
10917             # We only use this code for GNU lds that support --whole-archive.
10918             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10919           else
10920             # Exported symbols can be pulled into shared objects from archives
10921             whole_archive_flag_spec='$convenience'
10922           fi
10923           archive_cmds_need_lc=yes
10924           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10925           # -brtl affects multiple linker settings, -berok does not and is overridden later
10926           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10927           if test svr4 != "$with_aix_soname"; then
10928             # This is similar to how AIX traditionally builds its shared libraries.
10929             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'
10930           fi
10931           if test aix != "$with_aix_soname"; then
10932             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'
10933           else
10934             # used by -dlpreopen to get the symbols
10935             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10936           fi
10937           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10938         fi
10939       fi
10940       ;;
10941
10942     amigaos*)
10943       case $host_cpu in
10944       powerpc)
10945             # see comment about AmigaOS4 .so support
10946             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10947             archive_expsym_cmds=''
10948         ;;
10949       m68k)
10950             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)'
10951             hardcode_libdir_flag_spec='-L$libdir'
10952             hardcode_minus_L=yes
10953         ;;
10954       esac
10955       ;;
10956
10957     bsdi[45]*)
10958       export_dynamic_flag_spec=-rdynamic
10959       ;;
10960
10961     cygwin* | mingw* | pw32* | cegcc*)
10962       # When not using gcc, we currently assume that we are using
10963       # Microsoft Visual C++.
10964       # hardcode_libdir_flag_spec is actually meaningless, as there is
10965       # no search path for DLLs.
10966       case $cc_basename in
10967       cl*)
10968         # Native MSVC
10969         hardcode_libdir_flag_spec=' '
10970         allow_undefined_flag=unsupported
10971         always_export_symbols=yes
10972         file_list_spec='@'
10973         # Tell ltmain to make .lib files, not .a files.
10974         libext=lib
10975         # Tell ltmain to make .dll files, not .so files.
10976         shrext_cmds=.dll
10977         # FIXME: Setting linknames here is a bad hack.
10978         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10979         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10980             cp "$export_symbols" "$output_objdir/$soname.def";
10981             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10982           else
10983             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10984           fi~
10985           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10986           linknames='
10987         # The linker will not automatically build a static lib if we build a DLL.
10988         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10989         enable_shared_with_static_runtimes=yes
10990         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10991         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10992         # Don't use ranlib
10993         old_postinstall_cmds='chmod 644 $oldlib'
10994         postlink_cmds='lt_outputfile="@OUTPUT@"~
10995           lt_tool_outputfile="@TOOL_OUTPUT@"~
10996           case $lt_outputfile in
10997             *.exe|*.EXE) ;;
10998             *)
10999               lt_outputfile=$lt_outputfile.exe
11000               lt_tool_outputfile=$lt_tool_outputfile.exe
11001               ;;
11002           esac~
11003           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11004             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11005             $RM "$lt_outputfile.manifest";
11006           fi'
11007         ;;
11008       *)
11009         # Assume MSVC wrapper
11010         hardcode_libdir_flag_spec=' '
11011         allow_undefined_flag=unsupported
11012         # Tell ltmain to make .lib files, not .a files.
11013         libext=lib
11014         # Tell ltmain to make .dll files, not .so files.
11015         shrext_cmds=.dll
11016         # FIXME: Setting linknames here is a bad hack.
11017         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11018         # The linker will automatically build a .lib file if we build a DLL.
11019         old_archive_from_new_cmds='true'
11020         # FIXME: Should let the user specify the lib program.
11021         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11022         enable_shared_with_static_runtimes=yes
11023         ;;
11024       esac
11025       ;;
11026
11027     darwin* | rhapsody*)
11028
11029
11030   archive_cmds_need_lc=no
11031   hardcode_direct=no
11032   hardcode_automatic=yes
11033   hardcode_shlibpath_var=unsupported
11034   if test yes = "$lt_cv_ld_force_load"; then
11035     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\"`'
11036
11037   else
11038     whole_archive_flag_spec=''
11039   fi
11040   link_all_deplibs=yes
11041   allow_undefined_flag=$_lt_dar_allow_undefined
11042   case $cc_basename in
11043      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11044      *) _lt_dar_can_shared=$GCC ;;
11045   esac
11046   if test yes = "$_lt_dar_can_shared"; then
11047     output_verbose_link_cmd=func_echo_all
11048     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11049     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11050     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"
11051     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"
11052
11053   else
11054   ld_shlibs=no
11055   fi
11056
11057       ;;
11058
11059     dgux*)
11060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11061       hardcode_libdir_flag_spec='-L$libdir'
11062       hardcode_shlibpath_var=no
11063       ;;
11064
11065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11066     # support.  Future versions do this automatically, but an explicit c++rt0.o
11067     # does not break anything, and helps significantly (at the cost of a little
11068     # extra space).
11069     freebsd2.2*)
11070       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11071       hardcode_libdir_flag_spec='-R$libdir'
11072       hardcode_direct=yes
11073       hardcode_shlibpath_var=no
11074       ;;
11075
11076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11077     freebsd2.*)
11078       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11079       hardcode_direct=yes
11080       hardcode_minus_L=yes
11081       hardcode_shlibpath_var=no
11082       ;;
11083
11084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11085     freebsd* | dragonfly*)
11086       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11087       hardcode_libdir_flag_spec='-R$libdir'
11088       hardcode_direct=yes
11089       hardcode_shlibpath_var=no
11090       ;;
11091
11092     hpux9*)
11093       if test yes = "$GCC"; then
11094         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'
11095       else
11096         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'
11097       fi
11098       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11099       hardcode_libdir_separator=:
11100       hardcode_direct=yes
11101
11102       # hardcode_minus_L: Not really in the search PATH,
11103       # but as the default location of the library.
11104       hardcode_minus_L=yes
11105       export_dynamic_flag_spec='$wl-E'
11106       ;;
11107
11108     hpux10*)
11109       if test yes,no = "$GCC,$with_gnu_ld"; then
11110         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11111       else
11112         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11113       fi
11114       if test no = "$with_gnu_ld"; then
11115         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11116         hardcode_libdir_separator=:
11117         hardcode_direct=yes
11118         hardcode_direct_absolute=yes
11119         export_dynamic_flag_spec='$wl-E'
11120         # hardcode_minus_L: Not really in the search PATH,
11121         # but as the default location of the library.
11122         hardcode_minus_L=yes
11123       fi
11124       ;;
11125
11126     hpux11*)
11127       if test yes,no = "$GCC,$with_gnu_ld"; then
11128         case $host_cpu in
11129         hppa*64*)
11130           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11131           ;;
11132         ia64*)
11133           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11134           ;;
11135         *)
11136           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137           ;;
11138         esac
11139       else
11140         case $host_cpu in
11141         hppa*64*)
11142           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11143           ;;
11144         ia64*)
11145           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11146           ;;
11147         *)
11148
11149           # Older versions of the 11.00 compiler do not understand -b yet
11150           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11151           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11152 $as_echo_n "checking if $CC understands -b... " >&6; }
11153 if ${lt_cv_prog_compiler__b+:} false; then :
11154   $as_echo_n "(cached) " >&6
11155 else
11156   lt_cv_prog_compiler__b=no
11157    save_LDFLAGS=$LDFLAGS
11158    LDFLAGS="$LDFLAGS -b"
11159    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11160    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11161      # The linker can only warn and ignore the option if not recognized
11162      # So say no if there are warnings
11163      if test -s conftest.err; then
11164        # Append any errors to the config.log.
11165        cat conftest.err 1>&5
11166        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11167        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11168        if diff conftest.exp conftest.er2 >/dev/null; then
11169          lt_cv_prog_compiler__b=yes
11170        fi
11171      else
11172        lt_cv_prog_compiler__b=yes
11173      fi
11174    fi
11175    $RM -r conftest*
11176    LDFLAGS=$save_LDFLAGS
11177
11178 fi
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11180 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11181
11182 if test yes = "$lt_cv_prog_compiler__b"; then
11183     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11184 else
11185     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11186 fi
11187
11188           ;;
11189         esac
11190       fi
11191       if test no = "$with_gnu_ld"; then
11192         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11193         hardcode_libdir_separator=:
11194
11195         case $host_cpu in
11196         hppa*64*|ia64*)
11197           hardcode_direct=no
11198           hardcode_shlibpath_var=no
11199           ;;
11200         *)
11201           hardcode_direct=yes
11202           hardcode_direct_absolute=yes
11203           export_dynamic_flag_spec='$wl-E'
11204
11205           # hardcode_minus_L: Not really in the search PATH,
11206           # but as the default location of the library.
11207           hardcode_minus_L=yes
11208           ;;
11209         esac
11210       fi
11211       ;;
11212
11213     irix5* | irix6* | nonstopux*)
11214       if test yes = "$GCC"; then
11215         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'
11216         # Try to use the -exported_symbol ld option, if it does not
11217         # work, assume that -exports_file does not work either and
11218         # implicitly export all symbols.
11219         # This should be the same for all languages, so no per-tag cache variable.
11220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11221 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11222 if ${lt_cv_irix_exported_symbol+:} false; then :
11223   $as_echo_n "(cached) " >&6
11224 else
11225   save_LDFLAGS=$LDFLAGS
11226            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11227            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h.  */
11229 int foo (void) { return 0; }
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"; then :
11232   lt_cv_irix_exported_symbol=yes
11233 else
11234   lt_cv_irix_exported_symbol=no
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext \
11237     conftest$ac_exeext conftest.$ac_ext
11238            LDFLAGS=$save_LDFLAGS
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11241 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11242         if test yes = "$lt_cv_irix_exported_symbol"; then
11243           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'
11244         fi
11245       else
11246         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'
11247         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'
11248       fi
11249       archive_cmds_need_lc='no'
11250       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11251       hardcode_libdir_separator=:
11252       inherit_rpath=yes
11253       link_all_deplibs=yes
11254       ;;
11255
11256     linux*)
11257       case $cc_basename in
11258       tcc*)
11259         # Fabrice Bellard et al's Tiny C Compiler
11260         ld_shlibs=yes
11261         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11262         ;;
11263       esac
11264       ;;
11265
11266     netbsd*)
11267       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11268         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11269       else
11270         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11271       fi
11272       hardcode_libdir_flag_spec='-R$libdir'
11273       hardcode_direct=yes
11274       hardcode_shlibpath_var=no
11275       ;;
11276
11277     newsos6)
11278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279       hardcode_direct=yes
11280       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281       hardcode_libdir_separator=:
11282       hardcode_shlibpath_var=no
11283       ;;
11284
11285     *nto* | *qnx*)
11286       ;;
11287
11288     openbsd* | bitrig*)
11289       if test -f /usr/libexec/ld.so; then
11290         hardcode_direct=yes
11291         hardcode_shlibpath_var=no
11292         hardcode_direct_absolute=yes
11293         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11294           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11296           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11297           export_dynamic_flag_spec='$wl-E'
11298         else
11299           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11300           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11301         fi
11302       else
11303         ld_shlibs=no
11304       fi
11305       ;;
11306
11307     os2*)
11308       hardcode_libdir_flag_spec='-L$libdir'
11309       hardcode_minus_L=yes
11310       allow_undefined_flag=unsupported
11311       shrext_cmds=.dll
11312       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11313         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11314         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11315         $ECHO EXPORTS >> $output_objdir/$libname.def~
11316         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11317         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11318         emximp -o $lib $output_objdir/$libname.def'
11319       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11320         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11321         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11322         $ECHO EXPORTS >> $output_objdir/$libname.def~
11323         prefix_cmds="$SED"~
11324         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11325           prefix_cmds="$prefix_cmds -e 1d";
11326         fi~
11327         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11328         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11329         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11330         emximp -o $lib $output_objdir/$libname.def'
11331       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11332       enable_shared_with_static_runtimes=yes
11333       ;;
11334
11335     osf3*)
11336       if test yes = "$GCC"; then
11337         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11338         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'
11339       else
11340         allow_undefined_flag=' -expect_unresolved \*'
11341         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'
11342       fi
11343       archive_cmds_need_lc='no'
11344       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11345       hardcode_libdir_separator=:
11346       ;;
11347
11348     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11349       if test yes = "$GCC"; then
11350         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11351         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'
11352         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353       else
11354         allow_undefined_flag=' -expect_unresolved \*'
11355         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'
11356         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~
11357           $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'
11358
11359         # Both c and cxx compiler support -rpath directly
11360         hardcode_libdir_flag_spec='-rpath $libdir'
11361       fi
11362       archive_cmds_need_lc='no'
11363       hardcode_libdir_separator=:
11364       ;;
11365
11366     solaris*)
11367       no_undefined_flag=' -z defs'
11368       if test yes = "$GCC"; then
11369         wlarc='$wl'
11370         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11371         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11372           $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'
11373       else
11374         case `$CC -V 2>&1` in
11375         *"Compilers 5.0"*)
11376           wlarc=''
11377           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11378           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11379             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11380           ;;
11381         *)
11382           wlarc='$wl'
11383           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11384           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11385             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11386           ;;
11387         esac
11388       fi
11389       hardcode_libdir_flag_spec='-R$libdir'
11390       hardcode_shlibpath_var=no
11391       case $host_os in
11392       solaris2.[0-5] | solaris2.[0-5].*) ;;
11393       *)
11394         # The compiler driver will combine and reorder linker options,
11395         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11396         # but is careful enough not to reorder.
11397         # Supported since Solaris 2.6 (maybe 2.5.1?)
11398         if test yes = "$GCC"; then
11399           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11400         else
11401           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11402         fi
11403         ;;
11404       esac
11405       link_all_deplibs=yes
11406       ;;
11407
11408     sunos4*)
11409       if test sequent = "$host_vendor"; then
11410         # Use $CC to link under sequent, because it throws in some extra .o
11411         # files that make .init and .fini sections work.
11412         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11413       else
11414         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11415       fi
11416       hardcode_libdir_flag_spec='-L$libdir'
11417       hardcode_direct=yes
11418       hardcode_minus_L=yes
11419       hardcode_shlibpath_var=no
11420       ;;
11421
11422     sysv4)
11423       case $host_vendor in
11424         sni)
11425           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11426           hardcode_direct=yes # is this really true???
11427         ;;
11428         siemens)
11429           ## LD is ld it makes a PLAMLIB
11430           ## CC just makes a GrossModule.
11431           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11432           reload_cmds='$CC -r -o $output$reload_objs'
11433           hardcode_direct=no
11434         ;;
11435         motorola)
11436           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11437           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11438         ;;
11439       esac
11440       runpath_var='LD_RUN_PATH'
11441       hardcode_shlibpath_var=no
11442       ;;
11443
11444     sysv4.3*)
11445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11446       hardcode_shlibpath_var=no
11447       export_dynamic_flag_spec='-Bexport'
11448       ;;
11449
11450     sysv4*MP*)
11451       if test -d /usr/nec; then
11452         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11453         hardcode_shlibpath_var=no
11454         runpath_var=LD_RUN_PATH
11455         hardcode_runpath_var=yes
11456         ld_shlibs=yes
11457       fi
11458       ;;
11459
11460     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11461       no_undefined_flag='$wl-z,text'
11462       archive_cmds_need_lc=no
11463       hardcode_shlibpath_var=no
11464       runpath_var='LD_RUN_PATH'
11465
11466       if test yes = "$GCC"; then
11467         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11468         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469       else
11470         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11471         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11472       fi
11473       ;;
11474
11475     sysv5* | sco3.2v5* | sco5v6*)
11476       # Note: We CANNOT use -z defs as we might desire, because we do not
11477       # link with -lc, and that would cause any symbols used from libc to
11478       # always be unresolved, which means just about no library would
11479       # ever link correctly.  If we're not using GNU ld we use -z text
11480       # though, which does catch some bad symbols but isn't as heavy-handed
11481       # as -z defs.
11482       no_undefined_flag='$wl-z,text'
11483       allow_undefined_flag='$wl-z,nodefs'
11484       archive_cmds_need_lc=no
11485       hardcode_shlibpath_var=no
11486       hardcode_libdir_flag_spec='$wl-R,$libdir'
11487       hardcode_libdir_separator=':'
11488       link_all_deplibs=yes
11489       export_dynamic_flag_spec='$wl-Bexport'
11490       runpath_var='LD_RUN_PATH'
11491
11492       if test yes = "$GCC"; then
11493         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495       else
11496         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498       fi
11499       ;;
11500
11501     uts4*)
11502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11503       hardcode_libdir_flag_spec='-L$libdir'
11504       hardcode_shlibpath_var=no
11505       ;;
11506
11507     *)
11508       ld_shlibs=no
11509       ;;
11510     esac
11511
11512     if test sni = "$host_vendor"; then
11513       case $host in
11514       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11515         export_dynamic_flag_spec='$wl-Blargedynsym'
11516         ;;
11517       esac
11518     fi
11519   fi
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11522 $as_echo "$ld_shlibs" >&6; }
11523 test no = "$ld_shlibs" && can_build_shared=no
11524
11525 with_gnu_ld=$with_gnu_ld
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541 #
11542 # Do we need to explicitly link libc?
11543 #
11544 case "x$archive_cmds_need_lc" in
11545 x|xyes)
11546   # Assume -lc should be added
11547   archive_cmds_need_lc=yes
11548
11549   if test yes,yes = "$GCC,$enable_shared"; then
11550     case $archive_cmds in
11551     *'~'*)
11552       # FIXME: we may have to deal with multi-command sequences.
11553       ;;
11554     '$CC '*)
11555       # Test whether the compiler implicitly links with -lc since on some
11556       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11557       # to ld, don't add -lc before -lgcc.
11558       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11559 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11560 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   $RM conftest*
11564         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11565
11566         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11567   (eval $ac_compile) 2>&5
11568   ac_status=$?
11569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570   test $ac_status = 0; } 2>conftest.err; then
11571           soname=conftest
11572           lib=conftest
11573           libobjs=conftest.$ac_objext
11574           deplibs=
11575           wl=$lt_prog_compiler_wl
11576           pic_flag=$lt_prog_compiler_pic
11577           compiler_flags=-v
11578           linker_flags=-v
11579           verstring=
11580           output_objdir=.
11581           libname=conftest
11582           lt_save_allow_undefined_flag=$allow_undefined_flag
11583           allow_undefined_flag=
11584           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11585   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11586   ac_status=$?
11587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588   test $ac_status = 0; }
11589           then
11590             lt_cv_archive_cmds_need_lc=no
11591           else
11592             lt_cv_archive_cmds_need_lc=yes
11593           fi
11594           allow_undefined_flag=$lt_save_allow_undefined_flag
11595         else
11596           cat conftest.err 1>&5
11597         fi
11598         $RM conftest*
11599
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11602 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11603       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11604       ;;
11605     esac
11606   fi
11607   ;;
11608 esac
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11763
11764 if test yes = "$GCC"; then
11765   case $host_os in
11766     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11767     *) lt_awk_arg='/^libraries:/' ;;
11768   esac
11769   case $host_os in
11770     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11771     *) lt_sed_strip_eq='s|=/|/|g' ;;
11772   esac
11773   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11774   case $lt_search_path_spec in
11775   *\;*)
11776     # if the path contains ";" then we assume it to be the separator
11777     # otherwise default to the standard path separator (i.e. ":") - it is
11778     # assumed that no part of a normal pathname contains ";" but that should
11779     # okay in the real world where ";" in dirpaths is itself problematic.
11780     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11781     ;;
11782   *)
11783     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11784     ;;
11785   esac
11786   # Ok, now we have the path, separated by spaces, we can step through it
11787   # and add multilib dir if necessary...
11788   lt_tmp_lt_search_path_spec=
11789   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11790   # ...but if some path component already ends with the multilib dir we assume
11791   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11792   case "$lt_multi_os_dir; $lt_search_path_spec " in
11793   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11794     lt_multi_os_dir=
11795     ;;
11796   esac
11797   for lt_sys_path in $lt_search_path_spec; do
11798     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11799       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11800     elif test -n "$lt_multi_os_dir"; then
11801       test -d "$lt_sys_path" && \
11802         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11803     fi
11804   done
11805   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11806 BEGIN {RS = " "; FS = "/|\n";} {
11807   lt_foo = "";
11808   lt_count = 0;
11809   for (lt_i = NF; lt_i > 0; lt_i--) {
11810     if ($lt_i != "" && $lt_i != ".") {
11811       if ($lt_i == "..") {
11812         lt_count++;
11813       } else {
11814         if (lt_count == 0) {
11815           lt_foo = "/" $lt_i lt_foo;
11816         } else {
11817           lt_count--;
11818         }
11819       }
11820     }
11821   }
11822   if (lt_foo != "") { lt_freq[lt_foo]++; }
11823   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11824 }'`
11825   # AWK program above erroneously prepends '/' to C:/dos/paths
11826   # for these hosts.
11827   case $host_os in
11828     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11829       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11830   esac
11831   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11832 else
11833   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11834 fi
11835 library_names_spec=
11836 libname_spec='lib$name'
11837 soname_spec=
11838 shrext_cmds=.so
11839 postinstall_cmds=
11840 postuninstall_cmds=
11841 finish_cmds=
11842 finish_eval=
11843 shlibpath_var=
11844 shlibpath_overrides_runpath=unknown
11845 version_type=none
11846 dynamic_linker="$host_os ld.so"
11847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11848 need_lib_prefix=unknown
11849 hardcode_into_libs=no
11850
11851 # when you set need_version to no, make sure it does not cause -set_version
11852 # flags to be left without arguments
11853 need_version=unknown
11854
11855
11856
11857 case $host_os in
11858 aix3*)
11859   version_type=linux # correct to gnu/linux during the next big refactor
11860   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11861   shlibpath_var=LIBPATH
11862
11863   # AIX 3 has no versioning support, so we append a major version to the name.
11864   soname_spec='$libname$release$shared_ext$major'
11865   ;;
11866
11867 aix[4-9]*)
11868   version_type=linux # correct to gnu/linux during the next big refactor
11869   need_lib_prefix=no
11870   need_version=no
11871   hardcode_into_libs=yes
11872   if test ia64 = "$host_cpu"; then
11873     # AIX 5 supports IA64
11874     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11875     shlibpath_var=LD_LIBRARY_PATH
11876   else
11877     # With GCC up to 2.95.x, collect2 would create an import file
11878     # for dependence libraries.  The import file would start with
11879     # the line '#! .'.  This would cause the generated library to
11880     # depend on '.', always an invalid library.  This was fixed in
11881     # development snapshots of GCC prior to 3.0.
11882     case $host_os in
11883       aix4 | aix4.[01] | aix4.[01].*)
11884       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11885            echo ' yes '
11886            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11887         :
11888       else
11889         can_build_shared=no
11890       fi
11891       ;;
11892     esac
11893     # Using Import Files as archive members, it is possible to support
11894     # filename-based versioning of shared library archives on AIX. While
11895     # this would work for both with and without runtime linking, it will
11896     # prevent static linking of such archives. So we do filename-based
11897     # shared library versioning with .so extension only, which is used
11898     # when both runtime linking and shared linking is enabled.
11899     # Unfortunately, runtime linking may impact performance, so we do
11900     # not want this to be the default eventually. Also, we use the
11901     # versioned .so libs for executables only if there is the -brtl
11902     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11903     # To allow for filename-based versioning support, we need to create
11904     # libNAME.so.V as an archive file, containing:
11905     # *) an Import File, referring to the versioned filename of the
11906     #    archive as well as the shared archive member, telling the
11907     #    bitwidth (32 or 64) of that shared object, and providing the
11908     #    list of exported symbols of that shared object, eventually
11909     #    decorated with the 'weak' keyword
11910     # *) the shared object with the F_LOADONLY flag set, to really avoid
11911     #    it being seen by the linker.
11912     # At run time we better use the real file rather than another symlink,
11913     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11914
11915     case $with_aix_soname,$aix_use_runtimelinking in
11916     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11917     # soname into executable. Probably we can add versioning support to
11918     # collect2, so additional links can be useful in future.
11919     aix,yes) # traditional libtool
11920       dynamic_linker='AIX unversionable lib.so'
11921       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11922       # instead of lib<name>.a to let people know that these are not
11923       # typical AIX shared libraries.
11924       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925       ;;
11926     aix,no) # traditional AIX only
11927       dynamic_linker='AIX lib.a(lib.so.V)'
11928       # We preserve .a as extension for shared libraries through AIX4.2
11929       # and later when we are not doing run time linking.
11930       library_names_spec='$libname$release.a $libname.a'
11931       soname_spec='$libname$release$shared_ext$major'
11932       ;;
11933     svr4,*) # full svr4 only
11934       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11935       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11936       # We do not specify a path in Import Files, so LIBPATH fires.
11937       shlibpath_overrides_runpath=yes
11938       ;;
11939     *,yes) # both, prefer svr4
11940       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11941       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11942       # unpreferred sharedlib libNAME.a needs extra handling
11943       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"'
11944       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"'
11945       # We do not specify a path in Import Files, so LIBPATH fires.
11946       shlibpath_overrides_runpath=yes
11947       ;;
11948     *,no) # both, prefer aix
11949       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11950       library_names_spec='$libname$release.a $libname.a'
11951       soname_spec='$libname$release$shared_ext$major'
11952       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11953       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)'
11954       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"'
11955       ;;
11956     esac
11957     shlibpath_var=LIBPATH
11958   fi
11959   ;;
11960
11961 amigaos*)
11962   case $host_cpu in
11963   powerpc)
11964     # Since July 2007 AmigaOS4 officially supports .so libraries.
11965     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11966     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967     ;;
11968   m68k)
11969     library_names_spec='$libname.ixlibrary $libname.a'
11970     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11971     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'
11972     ;;
11973   esac
11974   ;;
11975
11976 beos*)
11977   library_names_spec='$libname$shared_ext'
11978   dynamic_linker="$host_os ld.so"
11979   shlibpath_var=LIBRARY_PATH
11980   ;;
11981
11982 bsdi[45]*)
11983   version_type=linux # correct to gnu/linux during the next big refactor
11984   need_version=no
11985   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986   soname_spec='$libname$release$shared_ext$major'
11987   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11988   shlibpath_var=LD_LIBRARY_PATH
11989   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11990   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11991   # the default ld.so.conf also contains /usr/contrib/lib and
11992   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11993   # libtool to hard-code these into programs
11994   ;;
11995
11996 cygwin* | mingw* | pw32* | cegcc*)
11997   version_type=windows
11998   shrext_cmds=.dll
11999   need_version=no
12000   need_lib_prefix=no
12001
12002   case $GCC,$cc_basename in
12003   yes,*)
12004     # gcc
12005     library_names_spec='$libname.dll.a'
12006     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12007     postinstall_cmds='base_file=`basename \$file`~
12008       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12009       dldir=$destdir/`dirname \$dlpath`~
12010       test -d \$dldir || mkdir -p \$dldir~
12011       $install_prog $dir/$dlname \$dldir/$dlname~
12012       chmod a+x \$dldir/$dlname~
12013       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12014         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12015       fi'
12016     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12017       dlpath=$dir/\$dldll~
12018        $RM \$dlpath'
12019     shlibpath_overrides_runpath=yes
12020
12021     case $host_os in
12022     cygwin*)
12023       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12024       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12025
12026       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12027       ;;
12028     mingw* | cegcc*)
12029       # MinGW DLLs use traditional 'lib' prefix
12030       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12031       ;;
12032     pw32*)
12033       # pw32 DLLs use 'pw' prefix rather than 'lib'
12034       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12035       ;;
12036     esac
12037     dynamic_linker='Win32 ld.exe'
12038     ;;
12039
12040   *,cl*)
12041     # Native MSVC
12042     libname_spec='$name'
12043     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12044     library_names_spec='$libname.dll.lib'
12045
12046     case $build_os in
12047     mingw*)
12048       sys_lib_search_path_spec=
12049       lt_save_ifs=$IFS
12050       IFS=';'
12051       for lt_path in $LIB
12052       do
12053         IFS=$lt_save_ifs
12054         # Let DOS variable expansion print the short 8.3 style file name.
12055         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12056         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12057       done
12058       IFS=$lt_save_ifs
12059       # Convert to MSYS style.
12060       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12061       ;;
12062     cygwin*)
12063       # Convert to unix form, then to dos form, then back to unix form
12064       # but this time dos style (no spaces!) so that the unix form looks
12065       # like /cygdrive/c/PROGRA~1:/cygdr...
12066       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12067       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12068       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12069       ;;
12070     *)
12071       sys_lib_search_path_spec=$LIB
12072       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12073         # It is most probably a Windows format PATH.
12074         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12075       else
12076         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12077       fi
12078       # FIXME: find the short name or the path components, as spaces are
12079       # common. (e.g. "Program Files" -> "PROGRA~1")
12080       ;;
12081     esac
12082
12083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12084     postinstall_cmds='base_file=`basename \$file`~
12085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12086       dldir=$destdir/`dirname \$dlpath`~
12087       test -d \$dldir || mkdir -p \$dldir~
12088       $install_prog $dir/$dlname \$dldir/$dlname'
12089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12090       dlpath=$dir/\$dldll~
12091        $RM \$dlpath'
12092     shlibpath_overrides_runpath=yes
12093     dynamic_linker='Win32 link.exe'
12094     ;;
12095
12096   *)
12097     # Assume MSVC wrapper
12098     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12099     dynamic_linker='Win32 ld.exe'
12100     ;;
12101   esac
12102   # FIXME: first we should search . and the directory the executable is in
12103   shlibpath_var=PATH
12104   ;;
12105
12106 darwin* | rhapsody*)
12107   dynamic_linker="$host_os dyld"
12108   version_type=darwin
12109   need_lib_prefix=no
12110   need_version=no
12111   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12112   soname_spec='$libname$release$major$shared_ext'
12113   shlibpath_overrides_runpath=yes
12114   shlibpath_var=DYLD_LIBRARY_PATH
12115   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12116
12117   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12118   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12119   ;;
12120
12121 dgux*)
12122   version_type=linux # correct to gnu/linux during the next big refactor
12123   need_lib_prefix=no
12124   need_version=no
12125   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126   soname_spec='$libname$release$shared_ext$major'
12127   shlibpath_var=LD_LIBRARY_PATH
12128   ;;
12129
12130 freebsd* | dragonfly*)
12131   # DragonFly does not have aout.  When/if they implement a new
12132   # versioning mechanism, adjust this.
12133   if test -x /usr/bin/objformat; then
12134     objformat=`/usr/bin/objformat`
12135   else
12136     case $host_os in
12137     freebsd[23].*) objformat=aout ;;
12138     *) objformat=elf ;;
12139     esac
12140   fi
12141   version_type=freebsd-$objformat
12142   case $version_type in
12143     freebsd-elf*)
12144       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145       soname_spec='$libname$release$shared_ext$major'
12146       need_version=no
12147       need_lib_prefix=no
12148       ;;
12149     freebsd-*)
12150       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12151       need_version=yes
12152       ;;
12153   esac
12154   shlibpath_var=LD_LIBRARY_PATH
12155   case $host_os in
12156   freebsd2.*)
12157     shlibpath_overrides_runpath=yes
12158     ;;
12159   freebsd3.[01]* | freebsdelf3.[01]*)
12160     shlibpath_overrides_runpath=yes
12161     hardcode_into_libs=yes
12162     ;;
12163   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12164   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12165     shlibpath_overrides_runpath=no
12166     hardcode_into_libs=yes
12167     ;;
12168   *) # from 4.6 on, and DragonFly
12169     shlibpath_overrides_runpath=yes
12170     hardcode_into_libs=yes
12171     ;;
12172   esac
12173   ;;
12174
12175 haiku*)
12176   version_type=linux # correct to gnu/linux during the next big refactor
12177   need_lib_prefix=no
12178   need_version=no
12179   dynamic_linker="$host_os runtime_loader"
12180   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12181   soname_spec='$libname$release$shared_ext$major'
12182   shlibpath_var=LIBRARY_PATH
12183   shlibpath_overrides_runpath=no
12184   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12185   hardcode_into_libs=yes
12186   ;;
12187
12188 hpux9* | hpux10* | hpux11*)
12189   # Give a soname corresponding to the major version so that dld.sl refuses to
12190   # link against other versions.
12191   version_type=sunos
12192   need_lib_prefix=no
12193   need_version=no
12194   case $host_cpu in
12195   ia64*)
12196     shrext_cmds='.so'
12197     hardcode_into_libs=yes
12198     dynamic_linker="$host_os dld.so"
12199     shlibpath_var=LD_LIBRARY_PATH
12200     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12201     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12202     soname_spec='$libname$release$shared_ext$major'
12203     if test 32 = "$HPUX_IA64_MODE"; then
12204       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12205       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12206     else
12207       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12208       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12209     fi
12210     ;;
12211   hppa*64*)
12212     shrext_cmds='.sl'
12213     hardcode_into_libs=yes
12214     dynamic_linker="$host_os dld.sl"
12215     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12217     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218     soname_spec='$libname$release$shared_ext$major'
12219     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12221     ;;
12222   *)
12223     shrext_cmds='.sl'
12224     dynamic_linker="$host_os dld.sl"
12225     shlibpath_var=SHLIB_PATH
12226     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12227     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228     soname_spec='$libname$release$shared_ext$major'
12229     ;;
12230   esac
12231   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12232   postinstall_cmds='chmod 555 $lib'
12233   # or fails outright, so override atomically:
12234   install_override_mode=555
12235   ;;
12236
12237 interix[3-9]*)
12238   version_type=linux # correct to gnu/linux during the next big refactor
12239   need_lib_prefix=no
12240   need_version=no
12241   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242   soname_spec='$libname$release$shared_ext$major'
12243   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12244   shlibpath_var=LD_LIBRARY_PATH
12245   shlibpath_overrides_runpath=no
12246   hardcode_into_libs=yes
12247   ;;
12248
12249 irix5* | irix6* | nonstopux*)
12250   case $host_os in
12251     nonstopux*) version_type=nonstopux ;;
12252     *)
12253         if test yes = "$lt_cv_prog_gnu_ld"; then
12254                 version_type=linux # correct to gnu/linux during the next big refactor
12255         else
12256                 version_type=irix
12257         fi ;;
12258   esac
12259   need_lib_prefix=no
12260   need_version=no
12261   soname_spec='$libname$release$shared_ext$major'
12262   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12263   case $host_os in
12264   irix5* | nonstopux*)
12265     libsuff= shlibsuff=
12266     ;;
12267   *)
12268     case $LD in # libtool.m4 will add one of these switches to LD
12269     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12270       libsuff= shlibsuff= libmagic=32-bit;;
12271     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12272       libsuff=32 shlibsuff=N32 libmagic=N32;;
12273     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12274       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12275     *) libsuff= shlibsuff= libmagic=never-match;;
12276     esac
12277     ;;
12278   esac
12279   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12280   shlibpath_overrides_runpath=no
12281   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12282   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12283   hardcode_into_libs=yes
12284   ;;
12285
12286 # No shared lib support for Linux oldld, aout, or coff.
12287 linux*oldld* | linux*aout* | linux*coff*)
12288   dynamic_linker=no
12289   ;;
12290
12291 linux*android*)
12292   version_type=none # Android doesn't support versioned libraries.
12293   need_lib_prefix=no
12294   need_version=no
12295   library_names_spec='$libname$release$shared_ext'
12296   soname_spec='$libname$release$shared_ext'
12297   finish_cmds=
12298   shlibpath_var=LD_LIBRARY_PATH
12299   shlibpath_overrides_runpath=yes
12300
12301   # This implies no fast_install, which is unacceptable.
12302   # Some rework will be needed to allow for fast_install
12303   # before this can be enabled.
12304   hardcode_into_libs=yes
12305
12306   dynamic_linker='Android linker'
12307   # Don't embed -rpath directories since the linker doesn't support them.
12308   hardcode_libdir_flag_spec='-L$libdir'
12309   ;;
12310
12311 # This must be glibc/ELF.
12312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12313   version_type=linux # correct to gnu/linux during the next big refactor
12314   need_lib_prefix=no
12315   need_version=no
12316   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317   soname_spec='$libname$release$shared_ext$major'
12318   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12319   shlibpath_var=LD_LIBRARY_PATH
12320   shlibpath_overrides_runpath=no
12321
12322   # Some binutils ld are patched to set DT_RUNPATH
12323   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   lt_cv_shlibpath_overrides_runpath=no
12327     save_LDFLAGS=$LDFLAGS
12328     save_libdir=$libdir
12329     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12330          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12333
12334 int
12335 main ()
12336 {
12337
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"; then :
12343   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12344   lt_cv_shlibpath_overrides_runpath=yes
12345 fi
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348     conftest$ac_exeext conftest.$ac_ext
12349     LDFLAGS=$save_LDFLAGS
12350     libdir=$save_libdir
12351
12352 fi
12353
12354   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12355
12356   # This implies no fast_install, which is unacceptable.
12357   # Some rework will be needed to allow for fast_install
12358   # before this can be enabled.
12359   hardcode_into_libs=yes
12360
12361   # Add ABI-specific directories to the system library path.
12362   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12363
12364   # Ideally, we could use ldconfig to report *all* directores which are
12365   # searched for libraries, however this is still not possible.  Aside from not
12366   # being certain /sbin/ldconfig is available, command
12367   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12368   # even though it is searched at run-time.  Try to do the best guess by
12369   # appending ld.so.conf contents (and includes) to the search path.
12370   if test -f /etc/ld.so.conf; then
12371     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' ' '`
12372     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12373   fi
12374
12375   # We used to test for /lib/ld.so.1 and disable shared libraries on
12376   # powerpc, because MkLinux only supported shared libraries with the
12377   # GNU dynamic linker.  Since this was broken with cross compilers,
12378   # most powerpc-linux boxes support dynamic linking these days and
12379   # people can always --disable-shared, the test was removed, and we
12380   # assume the GNU/Linux dynamic linker is in use.
12381   dynamic_linker='GNU/Linux ld.so'
12382   ;;
12383
12384 netbsd*)
12385   version_type=sunos
12386   need_lib_prefix=no
12387   need_version=no
12388   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12389     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12390     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12391     dynamic_linker='NetBSD (a.out) ld.so'
12392   else
12393     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12394     soname_spec='$libname$release$shared_ext$major'
12395     dynamic_linker='NetBSD ld.elf_so'
12396   fi
12397   shlibpath_var=LD_LIBRARY_PATH
12398   shlibpath_overrides_runpath=yes
12399   hardcode_into_libs=yes
12400   ;;
12401
12402 newsos6)
12403   version_type=linux # correct to gnu/linux during the next big refactor
12404   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405   shlibpath_var=LD_LIBRARY_PATH
12406   shlibpath_overrides_runpath=yes
12407   ;;
12408
12409 *nto* | *qnx*)
12410   version_type=qnx
12411   need_lib_prefix=no
12412   need_version=no
12413   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12414   soname_spec='$libname$release$shared_ext$major'
12415   shlibpath_var=LD_LIBRARY_PATH
12416   shlibpath_overrides_runpath=no
12417   hardcode_into_libs=yes
12418   dynamic_linker='ldqnx.so'
12419   ;;
12420
12421 openbsd* | bitrig*)
12422   version_type=sunos
12423   sys_lib_dlsearch_path_spec=/usr/lib
12424   need_lib_prefix=no
12425   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12426     need_version=no
12427   else
12428     need_version=yes
12429   fi
12430   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=yes
12434   ;;
12435
12436 os2*)
12437   libname_spec='$name'
12438   version_type=windows
12439   shrext_cmds=.dll
12440   need_version=no
12441   need_lib_prefix=no
12442   # OS/2 can only load a DLL with a base name of 8 characters or less.
12443   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12444     v=$($ECHO $release$versuffix | tr -d .-);
12445     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12446     $ECHO $n$v`$shared_ext'
12447   library_names_spec='${libname}_dll.$libext'
12448   dynamic_linker='OS/2 ld.exe'
12449   shlibpath_var=BEGINLIBPATH
12450   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12451   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12452   postinstall_cmds='base_file=`basename \$file`~
12453     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12454     dldir=$destdir/`dirname \$dlpath`~
12455     test -d \$dldir || mkdir -p \$dldir~
12456     $install_prog $dir/$dlname \$dldir/$dlname~
12457     chmod a+x \$dldir/$dlname~
12458     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12459       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12460     fi'
12461   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12462     dlpath=$dir/\$dldll~
12463     $RM \$dlpath'
12464   ;;
12465
12466 osf3* | osf4* | osf5*)
12467   version_type=osf
12468   need_lib_prefix=no
12469   need_version=no
12470   soname_spec='$libname$release$shared_ext$major'
12471   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12472   shlibpath_var=LD_LIBRARY_PATH
12473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12474   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12475   ;;
12476
12477 rdos*)
12478   dynamic_linker=no
12479   ;;
12480
12481 solaris*)
12482   version_type=linux # correct to gnu/linux during the next big refactor
12483   need_lib_prefix=no
12484   need_version=no
12485   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486   soname_spec='$libname$release$shared_ext$major'
12487   shlibpath_var=LD_LIBRARY_PATH
12488   shlibpath_overrides_runpath=yes
12489   hardcode_into_libs=yes
12490   # ldd complains unless libraries are executable
12491   postinstall_cmds='chmod +x $lib'
12492   ;;
12493
12494 sunos4*)
12495   version_type=sunos
12496   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12497   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12498   shlibpath_var=LD_LIBRARY_PATH
12499   shlibpath_overrides_runpath=yes
12500   if test yes = "$with_gnu_ld"; then
12501     need_lib_prefix=no
12502   fi
12503   need_version=yes
12504   ;;
12505
12506 sysv4 | sysv4.3*)
12507   version_type=linux # correct to gnu/linux during the next big refactor
12508   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12509   soname_spec='$libname$release$shared_ext$major'
12510   shlibpath_var=LD_LIBRARY_PATH
12511   case $host_vendor in
12512     sni)
12513       shlibpath_overrides_runpath=no
12514       need_lib_prefix=no
12515       runpath_var=LD_RUN_PATH
12516       ;;
12517     siemens)
12518       need_lib_prefix=no
12519       ;;
12520     motorola)
12521       need_lib_prefix=no
12522       need_version=no
12523       shlibpath_overrides_runpath=no
12524       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12525       ;;
12526   esac
12527   ;;
12528
12529 sysv4*MP*)
12530   if test -d /usr/nec; then
12531     version_type=linux # correct to gnu/linux during the next big refactor
12532     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12533     soname_spec='$libname$shared_ext.$major'
12534     shlibpath_var=LD_LIBRARY_PATH
12535   fi
12536   ;;
12537
12538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12539   version_type=sco
12540   need_lib_prefix=no
12541   need_version=no
12542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12543   soname_spec='$libname$release$shared_ext$major'
12544   shlibpath_var=LD_LIBRARY_PATH
12545   shlibpath_overrides_runpath=yes
12546   hardcode_into_libs=yes
12547   if test yes = "$with_gnu_ld"; then
12548     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12549   else
12550     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12551     case $host_os in
12552       sco3.2v5*)
12553         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12554         ;;
12555     esac
12556   fi
12557   sys_lib_dlsearch_path_spec='/usr/lib'
12558   ;;
12559
12560 tpf*)
12561   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12562   version_type=linux # correct to gnu/linux during the next big refactor
12563   need_lib_prefix=no
12564   need_version=no
12565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=no
12568   hardcode_into_libs=yes
12569   ;;
12570
12571 uts4*)
12572   version_type=linux # correct to gnu/linux during the next big refactor
12573   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12574   soname_spec='$libname$release$shared_ext$major'
12575   shlibpath_var=LD_LIBRARY_PATH
12576   ;;
12577
12578 *)
12579   dynamic_linker=no
12580   ;;
12581 esac
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12583 $as_echo "$dynamic_linker" >&6; }
12584 test no = "$dynamic_linker" && can_build_shared=no
12585
12586 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12587 if test yes = "$GCC"; then
12588   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12589 fi
12590
12591 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12592   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12593 fi
12594
12595 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12596   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12597 fi
12598
12599 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12600 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12601
12602 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12603 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12604
12605 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12606 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12705 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12706 hardcode_action=
12707 if test -n "$hardcode_libdir_flag_spec" ||
12708    test -n "$runpath_var" ||
12709    test yes = "$hardcode_automatic"; then
12710
12711   # We can hardcode non-existent directories.
12712   if test no != "$hardcode_direct" &&
12713      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12714      # have to relink, otherwise we might link with an installed library
12715      # when we should be linking with a yet-to-be-installed one
12716      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12717      test no != "$hardcode_minus_L"; then
12718     # Linking always hardcodes the temporary library directory.
12719     hardcode_action=relink
12720   else
12721     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12722     hardcode_action=immediate
12723   fi
12724 else
12725   # We cannot hardcode anything, or else we can only hardcode existing
12726   # directories.
12727   hardcode_action=unsupported
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12730 $as_echo "$hardcode_action" >&6; }
12731
12732 if test relink = "$hardcode_action" ||
12733    test yes = "$inherit_rpath"; then
12734   # Fast installation is not supported
12735   enable_fast_install=no
12736 elif test yes = "$shlibpath_overrides_runpath" ||
12737      test no = "$enable_shared"; then
12738   # Fast installation is not necessary
12739   enable_fast_install=needless
12740 fi
12741
12742
12743
12744
12745
12746
12747   if test yes != "$enable_dlopen"; then
12748   enable_dlopen=unknown
12749   enable_dlopen_self=unknown
12750   enable_dlopen_self_static=unknown
12751 else
12752   lt_cv_dlopen=no
12753   lt_cv_dlopen_libs=
12754
12755   case $host_os in
12756   beos*)
12757     lt_cv_dlopen=load_add_on
12758     lt_cv_dlopen_libs=
12759     lt_cv_dlopen_self=yes
12760     ;;
12761
12762   mingw* | pw32* | cegcc*)
12763     lt_cv_dlopen=LoadLibrary
12764     lt_cv_dlopen_libs=
12765     ;;
12766
12767   cygwin*)
12768     lt_cv_dlopen=dlopen
12769     lt_cv_dlopen_libs=
12770     ;;
12771
12772   darwin*)
12773     # if libdl is installed we need to link against it
12774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12775 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12776 if ${ac_cv_lib_dl_dlopen+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-ldl  $LIBS"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h.  */
12783
12784 /* Override any GCC internal prototype to avoid an error.
12785    Use char because int might match the return type of a GCC
12786    builtin and then its argument prototype would still apply.  */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char dlopen ();
12791 int
12792 main ()
12793 {
12794 return dlopen ();
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800   ac_cv_lib_dl_dlopen=yes
12801 else
12802   ac_cv_lib_dl_dlopen=no
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext \
12805     conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12809 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12810 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12811   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12812 else
12813
12814     lt_cv_dlopen=dyld
12815     lt_cv_dlopen_libs=
12816     lt_cv_dlopen_self=yes
12817
12818 fi
12819
12820     ;;
12821
12822   tpf*)
12823     # Don't try to run any link tests for TPF.  We know it's impossible
12824     # because TPF is a cross-compiler, and we know how we open DSOs.
12825     lt_cv_dlopen=dlopen
12826     lt_cv_dlopen_libs=
12827     lt_cv_dlopen_self=no
12828     ;;
12829
12830   *)
12831     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12832 if test "x$ac_cv_func_shl_load" = xyes; then :
12833   lt_cv_dlopen=shl_load
12834 else
12835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12837 if ${ac_cv_lib_dld_shl_load+:} false; then :
12838   $as_echo_n "(cached) " >&6
12839 else
12840   ac_check_lib_save_LIBS=$LIBS
12841 LIBS="-ldld  $LIBS"
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h.  */
12844
12845 /* Override any GCC internal prototype to avoid an error.
12846    Use char because int might match the return type of a GCC
12847    builtin and then its argument prototype would still apply.  */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char shl_load ();
12852 int
12853 main ()
12854 {
12855 return shl_load ();
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 if ac_fn_c_try_link "$LINENO"; then :
12861   ac_cv_lib_dld_shl_load=yes
12862 else
12863   ac_cv_lib_dld_shl_load=no
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext \
12866     conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12868 fi
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12871 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12872   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12873 else
12874   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12875 if test "x$ac_cv_func_dlopen" = xyes; then :
12876   lt_cv_dlopen=dlopen
12877 else
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12880 if ${ac_cv_lib_dl_dlopen+:} false; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-ldl  $LIBS"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889    Use char because int might match the return type of a GCC
12890    builtin and then its argument prototype would still apply.  */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char dlopen ();
12895 int
12896 main ()
12897 {
12898 return dlopen ();
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904   ac_cv_lib_dl_dlopen=yes
12905 else
12906   ac_cv_lib_dl_dlopen=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909     conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12914 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12915   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12916 else
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12919 if ${ac_cv_lib_svld_dlopen+:} false; then :
12920   $as_echo_n "(cached) " >&6
12921 else
12922   ac_check_lib_save_LIBS=$LIBS
12923 LIBS="-lsvld  $LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h.  */
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928    Use char because int might match the return type of a GCC
12929    builtin and then its argument prototype would still apply.  */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char dlopen ();
12934 int
12935 main ()
12936 {
12937 return dlopen ();
12938   ;
12939   return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943   ac_cv_lib_svld_dlopen=yes
12944 else
12945   ac_cv_lib_svld_dlopen=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948     conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12953 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12954   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12955 else
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12958 if ${ac_cv_lib_dld_dld_link+:} false; then :
12959   $as_echo_n "(cached) " >&6
12960 else
12961   ac_check_lib_save_LIBS=$LIBS
12962 LIBS="-ldld  $LIBS"
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h.  */
12965
12966 /* Override any GCC internal prototype to avoid an error.
12967    Use char because int might match the return type of a GCC
12968    builtin and then its argument prototype would still apply.  */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char dld_link ();
12973 int
12974 main ()
12975 {
12976 return dld_link ();
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_link "$LINENO"; then :
12982   ac_cv_lib_dld_dld_link=yes
12983 else
12984   ac_cv_lib_dld_dld_link=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext \
12987     conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12992 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12993   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12994 fi
12995
12996
12997 fi
12998
12999
13000 fi
13001
13002
13003 fi
13004
13005
13006 fi
13007
13008
13009 fi
13010
13011     ;;
13012   esac
13013
13014   if test no = "$lt_cv_dlopen"; then
13015     enable_dlopen=no
13016   else
13017     enable_dlopen=yes
13018   fi
13019
13020   case $lt_cv_dlopen in
13021   dlopen)
13022     save_CPPFLAGS=$CPPFLAGS
13023     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13024
13025     save_LDFLAGS=$LDFLAGS
13026     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13027
13028     save_LIBS=$LIBS
13029     LIBS="$lt_cv_dlopen_libs $LIBS"
13030
13031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13033 if ${lt_cv_dlopen_self+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036           if test yes = "$cross_compiling"; then :
13037   lt_cv_dlopen_self=cross
13038 else
13039   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13040   lt_status=$lt_dlunknown
13041   cat > conftest.$ac_ext <<_LT_EOF
13042 #line $LINENO "configure"
13043 #include "confdefs.h"
13044
13045 #if HAVE_DLFCN_H
13046 #include <dlfcn.h>
13047 #endif
13048
13049 #include <stdio.h>
13050
13051 #ifdef RTLD_GLOBAL
13052 #  define LT_DLGLOBAL           RTLD_GLOBAL
13053 #else
13054 #  ifdef DL_GLOBAL
13055 #    define LT_DLGLOBAL         DL_GLOBAL
13056 #  else
13057 #    define LT_DLGLOBAL         0
13058 #  endif
13059 #endif
13060
13061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13062    find out it does not work in some platform. */
13063 #ifndef LT_DLLAZY_OR_NOW
13064 #  ifdef RTLD_LAZY
13065 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13066 #  else
13067 #    ifdef DL_LAZY
13068 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13069 #    else
13070 #      ifdef RTLD_NOW
13071 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13072 #      else
13073 #        ifdef DL_NOW
13074 #          define LT_DLLAZY_OR_NOW      DL_NOW
13075 #        else
13076 #          define LT_DLLAZY_OR_NOW      0
13077 #        endif
13078 #      endif
13079 #    endif
13080 #  endif
13081 #endif
13082
13083 /* When -fvisibility=hidden is used, assume the code has been annotated
13084    correspondingly for the symbols needed.  */
13085 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13086 int fnord () __attribute__((visibility("default")));
13087 #endif
13088
13089 int fnord () { return 42; }
13090 int main ()
13091 {
13092   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13093   int status = $lt_dlunknown;
13094
13095   if (self)
13096     {
13097       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13098       else
13099         {
13100           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13101           else puts (dlerror ());
13102         }
13103       /* dlclose (self); */
13104     }
13105   else
13106     puts (dlerror ());
13107
13108   return status;
13109 }
13110 _LT_EOF
13111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13112   (eval $ac_link) 2>&5
13113   ac_status=$?
13114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13116     (./conftest; exit; ) >&5 2>/dev/null
13117     lt_status=$?
13118     case x$lt_status in
13119       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13120       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13121       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13122     esac
13123   else :
13124     # compilation failed
13125     lt_cv_dlopen_self=no
13126   fi
13127 fi
13128 rm -fr conftest*
13129
13130
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13133 $as_echo "$lt_cv_dlopen_self" >&6; }
13134
13135     if test yes = "$lt_cv_dlopen_self"; then
13136       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13139 if ${lt_cv_dlopen_self_static+:} false; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142           if test yes = "$cross_compiling"; then :
13143   lt_cv_dlopen_self_static=cross
13144 else
13145   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13146   lt_status=$lt_dlunknown
13147   cat > conftest.$ac_ext <<_LT_EOF
13148 #line $LINENO "configure"
13149 #include "confdefs.h"
13150
13151 #if HAVE_DLFCN_H
13152 #include <dlfcn.h>
13153 #endif
13154
13155 #include <stdio.h>
13156
13157 #ifdef RTLD_GLOBAL
13158 #  define LT_DLGLOBAL           RTLD_GLOBAL
13159 #else
13160 #  ifdef DL_GLOBAL
13161 #    define LT_DLGLOBAL         DL_GLOBAL
13162 #  else
13163 #    define LT_DLGLOBAL         0
13164 #  endif
13165 #endif
13166
13167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13168    find out it does not work in some platform. */
13169 #ifndef LT_DLLAZY_OR_NOW
13170 #  ifdef RTLD_LAZY
13171 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13172 #  else
13173 #    ifdef DL_LAZY
13174 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13175 #    else
13176 #      ifdef RTLD_NOW
13177 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13178 #      else
13179 #        ifdef DL_NOW
13180 #          define LT_DLLAZY_OR_NOW      DL_NOW
13181 #        else
13182 #          define LT_DLLAZY_OR_NOW      0
13183 #        endif
13184 #      endif
13185 #    endif
13186 #  endif
13187 #endif
13188
13189 /* When -fvisibility=hidden is used, assume the code has been annotated
13190    correspondingly for the symbols needed.  */
13191 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13192 int fnord () __attribute__((visibility("default")));
13193 #endif
13194
13195 int fnord () { return 42; }
13196 int main ()
13197 {
13198   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13199   int status = $lt_dlunknown;
13200
13201   if (self)
13202     {
13203       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13204       else
13205         {
13206           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13207           else puts (dlerror ());
13208         }
13209       /* dlclose (self); */
13210     }
13211   else
13212     puts (dlerror ());
13213
13214   return status;
13215 }
13216 _LT_EOF
13217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13218   (eval $ac_link) 2>&5
13219   ac_status=$?
13220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13222     (./conftest; exit; ) >&5 2>/dev/null
13223     lt_status=$?
13224     case x$lt_status in
13225       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13226       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13227       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13228     esac
13229   else :
13230     # compilation failed
13231     lt_cv_dlopen_self_static=no
13232   fi
13233 fi
13234 rm -fr conftest*
13235
13236
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13240     fi
13241
13242     CPPFLAGS=$save_CPPFLAGS
13243     LDFLAGS=$save_LDFLAGS
13244     LIBS=$save_LIBS
13245     ;;
13246   esac
13247
13248   case $lt_cv_dlopen_self in
13249   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13250   *) enable_dlopen_self=unknown ;;
13251   esac
13252
13253   case $lt_cv_dlopen_self_static in
13254   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13255   *) enable_dlopen_self_static=unknown ;;
13256   esac
13257 fi
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275 striplib=
13276 old_striplib=
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13280   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13281   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13283 $as_echo "yes" >&6; }
13284 else
13285 # FIXME - insert some real tests, host_os isn't really good enough
13286   case $host_os in
13287   darwin*)
13288     if test -n "$STRIP"; then
13289       striplib="$STRIP -x"
13290       old_striplib="$STRIP -S"
13291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13293     else
13294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296     fi
13297     ;;
13298   *)
13299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13301     ;;
13302   esac
13303 fi
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316   # Report what library types will actually be built
13317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13320 $as_echo "$can_build_shared" >&6; }
13321
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13323 $as_echo_n "checking whether to build shared libraries... " >&6; }
13324   test no = "$can_build_shared" && enable_shared=no
13325
13326   # On AIX, shared libraries and static libraries use the same namespace, and
13327   # are all built from PIC.
13328   case $host_os in
13329   aix3*)
13330     test yes = "$enable_shared" && enable_static=no
13331     if test -n "$RANLIB"; then
13332       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13333       postinstall_cmds='$RANLIB $lib'
13334     fi
13335     ;;
13336
13337   aix[4-9]*)
13338     if test ia64 != "$host_cpu"; then
13339       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13340       yes,aix,yes) ;;                   # shared object as lib.so file only
13341       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13342       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13343       esac
13344     fi
13345     ;;
13346   esac
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13348 $as_echo "$enable_shared" >&6; }
13349
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13351 $as_echo_n "checking whether to build static libraries... " >&6; }
13352   # Make sure either enable_shared or enable_static is yes.
13353   test yes = "$enable_shared" || enable_static=yes
13354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13355 $as_echo "$enable_static" >&6; }
13356
13357
13358
13359
13360 fi
13361 ac_ext=c
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13366
13367 CC=$lt_save_CC
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383         ac_config_commands="$ac_config_commands libtool"
13384
13385
13386
13387
13388 # Only expand once:
13389
13390
13391
13392 # Check for programs
13393 ac_ext=c
13394 ac_cpp='$CPP $CPPFLAGS'
13395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 if test -n "$ac_tool_prefix"; then
13399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_prog_CC+:} false; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   if test -n "$CC"; then
13407   ac_cv_prog_CC="$CC" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412   IFS=$as_save_IFS
13413   test -z "$as_dir" && as_dir=.
13414     for ac_exec_ext in '' $ac_executable_extensions; do
13415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418     break 2
13419   fi
13420 done
13421   done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 CC=$ac_cv_prog_CC
13427 if test -n "$CC"; then
13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13429 $as_echo "$CC" >&6; }
13430 else
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 fi
13437 if test -z "$ac_cv_prog_CC"; then
13438   ac_ct_CC=$CC
13439   # Extract the first word of "gcc", so it can be a program name with args.
13440 set dummy gcc; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13444   $as_echo_n "(cached) " >&6
13445 else
13446   if test -n "$ac_ct_CC"; then
13447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13451 do
13452   IFS=$as_save_IFS
13453   test -z "$as_dir" && as_dir=.
13454     for ac_exec_ext in '' $ac_executable_extensions; do
13455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456     ac_cv_prog_ac_ct_CC="gcc"
13457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458     break 2
13459   fi
13460 done
13461   done
13462 IFS=$as_save_IFS
13463
13464 fi
13465 fi
13466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13467 if test -n "$ac_ct_CC"; then
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13469 $as_echo "$ac_ct_CC" >&6; }
13470 else
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473 fi
13474
13475   if test "x$ac_ct_CC" = x; then
13476     CC=""
13477   else
13478     case $cross_compiling:$ac_tool_warned in
13479 yes:)
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482 ac_tool_warned=yes ;;
13483 esac
13484     CC=$ac_ct_CC
13485   fi
13486 else
13487   CC="$ac_cv_prog_CC"
13488 fi
13489
13490 if test -z "$CC"; then
13491           if test -n "$ac_tool_prefix"; then
13492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13493 set dummy ${ac_tool_prefix}cc; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_prog_CC+:} false; then :
13497   $as_echo_n "(cached) " >&6
13498 else
13499   if test -n "$CC"; then
13500   ac_cv_prog_CC="$CC" # Let the user override the test.
13501 else
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13504 do
13505   IFS=$as_save_IFS
13506   test -z "$as_dir" && as_dir=.
13507     for ac_exec_ext in '' $ac_executable_extensions; do
13508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13509     ac_cv_prog_CC="${ac_tool_prefix}cc"
13510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511     break 2
13512   fi
13513 done
13514   done
13515 IFS=$as_save_IFS
13516
13517 fi
13518 fi
13519 CC=$ac_cv_prog_CC
13520 if test -n "$CC"; then
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13522 $as_echo "$CC" >&6; }
13523 else
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527
13528
13529   fi
13530 fi
13531 if test -z "$CC"; then
13532   # Extract the first word of "cc", so it can be a program name with args.
13533 set dummy cc; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_prog_CC+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   if test -n "$CC"; then
13540   ac_cv_prog_CC="$CC" # Let the user override the test.
13541 else
13542   ac_prog_rejected=no
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13545 do
13546   IFS=$as_save_IFS
13547   test -z "$as_dir" && as_dir=.
13548     for ac_exec_ext in '' $ac_executable_extensions; do
13549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13551        ac_prog_rejected=yes
13552        continue
13553      fi
13554     ac_cv_prog_CC="cc"
13555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556     break 2
13557   fi
13558 done
13559   done
13560 IFS=$as_save_IFS
13561
13562 if test $ac_prog_rejected = yes; then
13563   # We found a bogon in the path, so make sure we never use it.
13564   set dummy $ac_cv_prog_CC
13565   shift
13566   if test $# != 0; then
13567     # We chose a different compiler from the bogus one.
13568     # However, it has the same basename, so the bogon will be chosen
13569     # first if we set CC to just the basename; use the full file name.
13570     shift
13571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13572   fi
13573 fi
13574 fi
13575 fi
13576 CC=$ac_cv_prog_CC
13577 if test -n "$CC"; then
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13579 $as_echo "$CC" >&6; }
13580 else
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586 fi
13587 if test -z "$CC"; then
13588   if test -n "$ac_tool_prefix"; then
13589   for ac_prog in cl.exe
13590   do
13591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if ${ac_cv_prog_CC+:} false; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   if test -n "$CC"; then
13599   ac_cv_prog_CC="$CC" # Let the user override the test.
13600 else
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604   IFS=$as_save_IFS
13605   test -z "$as_dir" && as_dir=.
13606     for ac_exec_ext in '' $ac_executable_extensions; do
13607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610     break 2
13611   fi
13612 done
13613   done
13614 IFS=$as_save_IFS
13615
13616 fi
13617 fi
13618 CC=$ac_cv_prog_CC
13619 if test -n "$CC"; then
13620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13621 $as_echo "$CC" >&6; }
13622 else
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625 fi
13626
13627
13628     test -n "$CC" && break
13629   done
13630 fi
13631 if test -z "$CC"; then
13632   ac_ct_CC=$CC
13633   for ac_prog in cl.exe
13634 do
13635   # Extract the first word of "$ac_prog", so it can be a program name with args.
13636 set dummy $ac_prog; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   if test -n "$ac_ct_CC"; then
13643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13644 else
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13647 do
13648   IFS=$as_save_IFS
13649   test -z "$as_dir" && as_dir=.
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652     ac_cv_prog_ac_ct_CC="$ac_prog"
13653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654     break 2
13655   fi
13656 done
13657   done
13658 IFS=$as_save_IFS
13659
13660 fi
13661 fi
13662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13663 if test -n "$ac_ct_CC"; then
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13665 $as_echo "$ac_ct_CC" >&6; }
13666 else
13667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670
13671
13672   test -n "$ac_ct_CC" && break
13673 done
13674
13675   if test "x$ac_ct_CC" = x; then
13676     CC=""
13677   else
13678     case $cross_compiling:$ac_tool_warned in
13679 yes:)
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13682 ac_tool_warned=yes ;;
13683 esac
13684     CC=$ac_ct_CC
13685   fi
13686 fi
13687
13688 fi
13689
13690
13691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13693 as_fn_error $? "no acceptable C compiler found in \$PATH
13694 See \`config.log' for more details" "$LINENO" 5; }
13695
13696 # Provide some information about the compiler.
13697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13698 set X $ac_compile
13699 ac_compiler=$2
13700 for ac_option in --version -v -V -qversion; do
13701   { { ac_try="$ac_compiler $ac_option >&5"
13702 case "(($ac_try" in
13703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704   *) ac_try_echo=$ac_try;;
13705 esac
13706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13707 $as_echo "$ac_try_echo"; } >&5
13708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13709   ac_status=$?
13710   if test -s conftest.err; then
13711     sed '10a\
13712 ... rest of stderr output deleted ...
13713          10q' conftest.err >conftest.er1
13714     cat conftest.er1 >&5
13715   fi
13716   rm -f conftest.er1 conftest.err
13717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13718   test $ac_status = 0; }
13719 done
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13723 if ${ac_cv_c_compiler_gnu+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h.  */
13728
13729 int
13730 main ()
13731 {
13732 #ifndef __GNUC__
13733        choke me
13734 #endif
13735
13736   ;
13737   return 0;
13738 }
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741   ac_compiler_gnu=yes
13742 else
13743   ac_compiler_gnu=no
13744 fi
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13747
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13751 if test $ac_compiler_gnu = yes; then
13752   GCC=yes
13753 else
13754   GCC=
13755 fi
13756 ac_test_CFLAGS=${CFLAGS+set}
13757 ac_save_CFLAGS=$CFLAGS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13760 if ${ac_cv_prog_cc_g+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   ac_save_c_werror_flag=$ac_c_werror_flag
13764    ac_c_werror_flag=yes
13765    ac_cv_prog_cc_g=no
13766    CFLAGS="-g"
13767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769
13770 int
13771 main ()
13772 {
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779   ac_cv_prog_cc_g=yes
13780 else
13781   CFLAGS=""
13782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h.  */
13784
13785 int
13786 main ()
13787 {
13788
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794
13795 else
13796   ac_c_werror_flag=$ac_save_c_werror_flag
13797          CFLAGS="-g"
13798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h.  */
13800
13801 int
13802 main ()
13803 {
13804
13805   ;
13806   return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810   ac_cv_prog_cc_g=yes
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817    ac_c_werror_flag=$ac_save_c_werror_flag
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13820 $as_echo "$ac_cv_prog_cc_g" >&6; }
13821 if test "$ac_test_CFLAGS" = set; then
13822   CFLAGS=$ac_save_CFLAGS
13823 elif test $ac_cv_prog_cc_g = yes; then
13824   if test "$GCC" = yes; then
13825     CFLAGS="-g -O2"
13826   else
13827     CFLAGS="-g"
13828   fi
13829 else
13830   if test "$GCC" = yes; then
13831     CFLAGS="-O2"
13832   else
13833     CFLAGS=
13834   fi
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13838 if ${ac_cv_prog_cc_c89+:} false; then :
13839   $as_echo_n "(cached) " >&6
13840 else
13841   ac_cv_prog_cc_c89=no
13842 ac_save_CC=$CC
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h.  */
13845 #include <stdarg.h>
13846 #include <stdio.h>
13847 struct stat;
13848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13849 struct buf { int x; };
13850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13851 static char *e (p, i)
13852      char **p;
13853      int i;
13854 {
13855   return p[i];
13856 }
13857 static char *f (char * (*g) (char **, int), char **p, ...)
13858 {
13859   char *s;
13860   va_list v;
13861   va_start (v,p);
13862   s = g (p, va_arg (v,int));
13863   va_end (v);
13864   return s;
13865 }
13866
13867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13868    function prototypes and stuff, but not '\xHH' hex character constants.
13869    These don't provoke an error unfortunately, instead are silently treated
13870    as 'x'.  The following induces an error, until -std is added to get
13871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13872    array size at least.  It's necessary to write '\x00'==0 to get something
13873    that's true only with -std.  */
13874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13875
13876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13877    inside strings and character constants.  */
13878 #define FOO(x) 'x'
13879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13880
13881 int test (int i, double x);
13882 struct s1 {int (*f) (int a);};
13883 struct s2 {int (*f) (double a);};
13884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13885 int argc;
13886 char **argv;
13887 int
13888 main ()
13889 {
13890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13896         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13897 do
13898   CC="$ac_save_CC $ac_arg"
13899   if ac_fn_c_try_compile "$LINENO"; then :
13900   ac_cv_prog_cc_c89=$ac_arg
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext
13903   test "x$ac_cv_prog_cc_c89" != "xno" && break
13904 done
13905 rm -f conftest.$ac_ext
13906 CC=$ac_save_CC
13907
13908 fi
13909 # AC_CACHE_VAL
13910 case "x$ac_cv_prog_cc_c89" in
13911   x)
13912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13913 $as_echo "none needed" >&6; } ;;
13914   xno)
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13916 $as_echo "unsupported" >&6; } ;;
13917   *)
13918     CC="$CC $ac_cv_prog_cc_c89"
13919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13921 esac
13922 if test "x$ac_cv_prog_cc_c89" != xno; then :
13923
13924 fi
13925
13926 ac_ext=c
13927 ac_cpp='$CPP $CPPFLAGS'
13928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13931
13932 ac_ext=c
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13938 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13939 if ${am_cv_prog_cc_c_o+:} false; then :
13940   $as_echo_n "(cached) " >&6
13941 else
13942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h.  */
13944
13945 int
13946 main ()
13947 {
13948
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953   # Make sure it works both with $CC and with simple cc.
13954   # Following AC_PROG_CC_C_O, we do the test twice because some
13955   # compilers refuse to overwrite an existing .o file with -o,
13956   # though they will create one.
13957   am_cv_prog_cc_c_o=yes
13958   for am_i in 1 2; do
13959     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13960    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13961    ac_status=$?
13962    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963    (exit $ac_status); } \
13964          && test -f conftest2.$ac_objext; then
13965       : OK
13966     else
13967       am_cv_prog_cc_c_o=no
13968       break
13969     fi
13970   done
13971   rm -f core conftest*
13972   unset am_i
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13975 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13976 if test "$am_cv_prog_cc_c_o" != yes; then
13977    # Losing compiler, so override with the script.
13978    # FIXME: It is wrong to rewrite CC.
13979    # But if we don't then we get into trouble of one sort or another.
13980    # A longer-term fix would be to have automake use am__CC in this case,
13981    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13982    CC="$am_aux_dir/compile $CC"
13983 fi
13984 ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990
13991 depcc="$CC"   am_compiler_list=
13992
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13994 $as_echo_n "checking dependency style of $depcc... " >&6; }
13995 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13996   $as_echo_n "(cached) " >&6
13997 else
13998   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13999   # We make a subdir and do the tests there.  Otherwise we can end up
14000   # making bogus files that we don't know about and never remove.  For
14001   # instance it was reported that on HP-UX the gcc test will end up
14002   # making a dummy file named 'D' -- because '-MD' means "put the output
14003   # in D".
14004   rm -rf conftest.dir
14005   mkdir conftest.dir
14006   # Copy depcomp to subdir because otherwise we won't find it if we're
14007   # using a relative directory.
14008   cp "$am_depcomp" conftest.dir
14009   cd conftest.dir
14010   # We will build objects and dependencies in a subdirectory because
14011   # it helps to detect inapplicable dependency modes.  For instance
14012   # both Tru64's cc and ICC support -MD to output dependencies as a
14013   # side effect of compilation, but ICC will put the dependencies in
14014   # the current directory while Tru64 will put them in the object
14015   # directory.
14016   mkdir sub
14017
14018   am_cv_CC_dependencies_compiler_type=none
14019   if test "$am_compiler_list" = ""; then
14020      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14021   fi
14022   am__universal=false
14023   case " $depcc " in #(
14024      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14025      esac
14026
14027   for depmode in $am_compiler_list; do
14028     # Setup a source with many dependencies, because some compilers
14029     # like to wrap large dependency lists on column 80 (with \), and
14030     # we should not choose a depcomp mode which is confused by this.
14031     #
14032     # We need to recreate these files for each test, as the compiler may
14033     # overwrite some of them when testing with obscure command lines.
14034     # This happens at least with the AIX C compiler.
14035     : > sub/conftest.c
14036     for i in 1 2 3 4 5 6; do
14037       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14038       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14039       # Solaris 10 /bin/sh.
14040       echo '/* dummy */' > sub/conftst$i.h
14041     done
14042     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14043
14044     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14045     # mode.  It turns out that the SunPro C++ compiler does not properly
14046     # handle '-M -o', and we need to detect this.  Also, some Intel
14047     # versions had trouble with output in subdirs.
14048     am__obj=sub/conftest.${OBJEXT-o}
14049     am__minus_obj="-o $am__obj"
14050     case $depmode in
14051     gcc)
14052       # This depmode causes a compiler race in universal mode.
14053       test "$am__universal" = false || continue
14054       ;;
14055     nosideeffect)
14056       # After this tag, mechanisms are not by side-effect, so they'll
14057       # only be used when explicitly requested.
14058       if test "x$enable_dependency_tracking" = xyes; then
14059         continue
14060       else
14061         break
14062       fi
14063       ;;
14064     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14065       # This compiler won't grok '-c -o', but also, the minuso test has
14066       # not run yet.  These depmodes are late enough in the game, and
14067       # so weak that their functioning should not be impacted.
14068       am__obj=conftest.${OBJEXT-o}
14069       am__minus_obj=
14070       ;;
14071     none) break ;;
14072     esac
14073     if depmode=$depmode \
14074        source=sub/conftest.c object=$am__obj \
14075        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14076        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14077          >/dev/null 2>conftest.err &&
14078        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14079        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14080        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14081        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14082       # icc doesn't choke on unknown options, it will just issue warnings
14083       # or remarks (even with -Werror).  So we grep stderr for any message
14084       # that says an option was ignored or not supported.
14085       # When given -MP, icc 7.0 and 7.1 complain thusly:
14086       #   icc: Command line warning: ignoring option '-M'; no argument required
14087       # The diagnosis changed in icc 8.0:
14088       #   icc: Command line remark: option '-MP' not supported
14089       if (grep 'ignoring option' conftest.err ||
14090           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14091         am_cv_CC_dependencies_compiler_type=$depmode
14092         break
14093       fi
14094     fi
14095   done
14096
14097   cd ..
14098   rm -rf conftest.dir
14099 else
14100   am_cv_CC_dependencies_compiler_type=none
14101 fi
14102
14103 fi
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14107
14108  if
14109   test "x$enable_dependency_tracking" != xno \
14110   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14111   am__fastdepCC_TRUE=
14112   am__fastdepCC_FALSE='#'
14113 else
14114   am__fastdepCC_TRUE='#'
14115   am__fastdepCC_FALSE=
14116 fi
14117
14118
14119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14120 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14121 if ${ac_cv_prog_cc_c99+:} false; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   ac_cv_prog_cc_c99=no
14125 ac_save_CC=$CC
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h.  */
14128 #include <stdarg.h>
14129 #include <stdbool.h>
14130 #include <stdlib.h>
14131 #include <wchar.h>
14132 #include <stdio.h>
14133
14134 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14135 #define debug(...) fprintf (stderr, __VA_ARGS__)
14136 #define showlist(...) puts (#__VA_ARGS__)
14137 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14138 static void
14139 test_varargs_macros (void)
14140 {
14141   int x = 1234;
14142   int y = 5678;
14143   debug ("Flag");
14144   debug ("X = %d\n", x);
14145   showlist (The first, second, and third items.);
14146   report (x>y, "x is %d but y is %d", x, y);
14147 }
14148
14149 // Check long long types.
14150 #define BIG64 18446744073709551615ull
14151 #define BIG32 4294967295ul
14152 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14153 #if !BIG_OK
14154   your preprocessor is broken;
14155 #endif
14156 #if BIG_OK
14157 #else
14158   your preprocessor is broken;
14159 #endif
14160 static long long int bignum = -9223372036854775807LL;
14161 static unsigned long long int ubignum = BIG64;
14162
14163 struct incomplete_array
14164 {
14165   int datasize;
14166   double data[];
14167 };
14168
14169 struct named_init {
14170   int number;
14171   const wchar_t *name;
14172   double average;
14173 };
14174
14175 typedef const char *ccp;
14176
14177 static inline int
14178 test_restrict (ccp restrict text)
14179 {
14180   // See if C++-style comments work.
14181   // Iterate through items via the restricted pointer.
14182   // Also check for declarations in for loops.
14183   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14184     continue;
14185   return 0;
14186 }
14187
14188 // Check varargs and va_copy.
14189 static void
14190 test_varargs (const char *format, ...)
14191 {
14192   va_list args;
14193   va_start (args, format);
14194   va_list args_copy;
14195   va_copy (args_copy, args);
14196
14197   const char *str;
14198   int number;
14199   float fnumber;
14200
14201   while (*format)
14202     {
14203       switch (*format++)
14204         {
14205         case 's': // string
14206           str = va_arg (args_copy, const char *);
14207           break;
14208         case 'd': // int
14209           number = va_arg (args_copy, int);
14210           break;
14211         case 'f': // float
14212           fnumber = va_arg (args_copy, double);
14213           break;
14214         default:
14215           break;
14216         }
14217     }
14218   va_end (args_copy);
14219   va_end (args);
14220 }
14221
14222 int
14223 main ()
14224 {
14225
14226   // Check bool.
14227   _Bool success = false;
14228
14229   // Check restrict.
14230   if (test_restrict ("String literal") == 0)
14231     success = true;
14232   char *restrict newvar = "Another string";
14233
14234   // Check varargs.
14235   test_varargs ("s, d' f .", "string", 65, 34.234);
14236   test_varargs_macros ();
14237
14238   // Check flexible array members.
14239   struct incomplete_array *ia =
14240     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14241   ia->datasize = 10;
14242   for (int i = 0; i < ia->datasize; ++i)
14243     ia->data[i] = i * 1.234;
14244
14245   // Check named initializers.
14246   struct named_init ni = {
14247     .number = 34,
14248     .name = L"Test wide string",
14249     .average = 543.34343,
14250   };
14251
14252   ni.number = 58;
14253
14254   int dynamic_array[ni.number];
14255   dynamic_array[ni.number - 1] = 543;
14256
14257   // work around unused variable warnings
14258   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14259           || dynamic_array[ni.number - 1] != 543);
14260
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14266 do
14267   CC="$ac_save_CC $ac_arg"
14268   if ac_fn_c_try_compile "$LINENO"; then :
14269   ac_cv_prog_cc_c99=$ac_arg
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext
14272   test "x$ac_cv_prog_cc_c99" != "xno" && break
14273 done
14274 rm -f conftest.$ac_ext
14275 CC=$ac_save_CC
14276
14277 fi
14278 # AC_CACHE_VAL
14279 case "x$ac_cv_prog_cc_c99" in
14280   x)
14281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14282 $as_echo "none needed" >&6; } ;;
14283   xno)
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14285 $as_echo "unsupported" >&6; } ;;
14286   *)
14287     CC="$CC $ac_cv_prog_cc_c99"
14288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14289 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14290 esac
14291 if test "x$ac_cv_prog_cc_c99" != xno; then :
14292
14293 fi
14294
14295
14296
14297 ac_ext=cpp
14298 ac_cpp='$CXXCPP $CPPFLAGS'
14299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14302 if test -z "$CXX"; then
14303   if test -n "$CCC"; then
14304     CXX=$CCC
14305   else
14306     if test -n "$ac_tool_prefix"; then
14307   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14308   do
14309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if ${ac_cv_prog_CXX+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   if test -n "$CXX"; then
14317   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14318 else
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14321 do
14322   IFS=$as_save_IFS
14323   test -z "$as_dir" && as_dir=.
14324     for ac_exec_ext in '' $ac_executable_extensions; do
14325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14326     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328     break 2
14329   fi
14330 done
14331   done
14332 IFS=$as_save_IFS
14333
14334 fi
14335 fi
14336 CXX=$ac_cv_prog_CXX
14337 if test -n "$CXX"; then
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14339 $as_echo "$CXX" >&6; }
14340 else
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 fi
14344
14345
14346     test -n "$CXX" && break
14347   done
14348 fi
14349 if test -z "$CXX"; then
14350   ac_ct_CXX=$CXX
14351   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14352 do
14353   # Extract the first word of "$ac_prog", so it can be a program name with args.
14354 set dummy $ac_prog; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   if test -n "$ac_ct_CXX"; then
14361   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366   IFS=$as_save_IFS
14367   test -z "$as_dir" && as_dir=.
14368     for ac_exec_ext in '' $ac_executable_extensions; do
14369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370     ac_cv_prog_ac_ct_CXX="$ac_prog"
14371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14372     break 2
14373   fi
14374 done
14375   done
14376 IFS=$as_save_IFS
14377
14378 fi
14379 fi
14380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14381 if test -n "$ac_ct_CXX"; then
14382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14383 $as_echo "$ac_ct_CXX" >&6; }
14384 else
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14387 fi
14388
14389
14390   test -n "$ac_ct_CXX" && break
14391 done
14392
14393   if test "x$ac_ct_CXX" = x; then
14394     CXX="g++"
14395   else
14396     case $cross_compiling:$ac_tool_warned in
14397 yes:)
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14400 ac_tool_warned=yes ;;
14401 esac
14402     CXX=$ac_ct_CXX
14403   fi
14404 fi
14405
14406   fi
14407 fi
14408 # Provide some information about the compiler.
14409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14410 set X $ac_compile
14411 ac_compiler=$2
14412 for ac_option in --version -v -V -qversion; do
14413   { { ac_try="$ac_compiler $ac_option >&5"
14414 case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14419 $as_echo "$ac_try_echo"; } >&5
14420   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14421   ac_status=$?
14422   if test -s conftest.err; then
14423     sed '10a\
14424 ... rest of stderr output deleted ...
14425          10q' conftest.err >conftest.er1
14426     cat conftest.er1 >&5
14427   fi
14428   rm -f conftest.er1 conftest.err
14429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430   test $ac_status = 0; }
14431 done
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14435 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h.  */
14440
14441 int
14442 main ()
14443 {
14444 #ifndef __GNUC__
14445        choke me
14446 #endif
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_cxx_try_compile "$LINENO"; then :
14453   ac_compiler_gnu=yes
14454 else
14455   ac_compiler_gnu=no
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14463 if test $ac_compiler_gnu = yes; then
14464   GXX=yes
14465 else
14466   GXX=
14467 fi
14468 ac_test_CXXFLAGS=${CXXFLAGS+set}
14469 ac_save_CXXFLAGS=$CXXFLAGS
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14472 if ${ac_cv_prog_cxx_g+:} false; then :
14473   $as_echo_n "(cached) " >&6
14474 else
14475   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14476    ac_cxx_werror_flag=yes
14477    ac_cv_prog_cxx_g=no
14478    CXXFLAGS="-g"
14479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h.  */
14481
14482 int
14483 main ()
14484 {
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_cxx_try_compile "$LINENO"; then :
14491   ac_cv_prog_cxx_g=yes
14492 else
14493   CXXFLAGS=""
14494       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h.  */
14496
14497 int
14498 main ()
14499 {
14500
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_cxx_try_compile "$LINENO"; then :
14506
14507 else
14508   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14509          CXXFLAGS="-g"
14510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h.  */
14512
14513 int
14514 main ()
14515 {
14516
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_cxx_try_compile "$LINENO"; then :
14522   ac_cv_prog_cxx_g=yes
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14532 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14533 if test "$ac_test_CXXFLAGS" = set; then
14534   CXXFLAGS=$ac_save_CXXFLAGS
14535 elif test $ac_cv_prog_cxx_g = yes; then
14536   if test "$GXX" = yes; then
14537     CXXFLAGS="-g -O2"
14538   else
14539     CXXFLAGS="-g"
14540   fi
14541 else
14542   if test "$GXX" = yes; then
14543     CXXFLAGS="-O2"
14544   else
14545     CXXFLAGS=
14546   fi
14547 fi
14548 ac_ext=c
14549 ac_cpp='$CPP $CPPFLAGS'
14550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14553
14554 depcc="$CXX"  am_compiler_list=
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14557 $as_echo_n "checking dependency style of $depcc... " >&6; }
14558 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14559   $as_echo_n "(cached) " >&6
14560 else
14561   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14562   # We make a subdir and do the tests there.  Otherwise we can end up
14563   # making bogus files that we don't know about and never remove.  For
14564   # instance it was reported that on HP-UX the gcc test will end up
14565   # making a dummy file named 'D' -- because '-MD' means "put the output
14566   # in D".
14567   rm -rf conftest.dir
14568   mkdir conftest.dir
14569   # Copy depcomp to subdir because otherwise we won't find it if we're
14570   # using a relative directory.
14571   cp "$am_depcomp" conftest.dir
14572   cd conftest.dir
14573   # We will build objects and dependencies in a subdirectory because
14574   # it helps to detect inapplicable dependency modes.  For instance
14575   # both Tru64's cc and ICC support -MD to output dependencies as a
14576   # side effect of compilation, but ICC will put the dependencies in
14577   # the current directory while Tru64 will put them in the object
14578   # directory.
14579   mkdir sub
14580
14581   am_cv_CXX_dependencies_compiler_type=none
14582   if test "$am_compiler_list" = ""; then
14583      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14584   fi
14585   am__universal=false
14586   case " $depcc " in #(
14587      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14588      esac
14589
14590   for depmode in $am_compiler_list; do
14591     # Setup a source with many dependencies, because some compilers
14592     # like to wrap large dependency lists on column 80 (with \), and
14593     # we should not choose a depcomp mode which is confused by this.
14594     #
14595     # We need to recreate these files for each test, as the compiler may
14596     # overwrite some of them when testing with obscure command lines.
14597     # This happens at least with the AIX C compiler.
14598     : > sub/conftest.c
14599     for i in 1 2 3 4 5 6; do
14600       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14601       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14602       # Solaris 10 /bin/sh.
14603       echo '/* dummy */' > sub/conftst$i.h
14604     done
14605     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14606
14607     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14608     # mode.  It turns out that the SunPro C++ compiler does not properly
14609     # handle '-M -o', and we need to detect this.  Also, some Intel
14610     # versions had trouble with output in subdirs.
14611     am__obj=sub/conftest.${OBJEXT-o}
14612     am__minus_obj="-o $am__obj"
14613     case $depmode in
14614     gcc)
14615       # This depmode causes a compiler race in universal mode.
14616       test "$am__universal" = false || continue
14617       ;;
14618     nosideeffect)
14619       # After this tag, mechanisms are not by side-effect, so they'll
14620       # only be used when explicitly requested.
14621       if test "x$enable_dependency_tracking" = xyes; then
14622         continue
14623       else
14624         break
14625       fi
14626       ;;
14627     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14628       # This compiler won't grok '-c -o', but also, the minuso test has
14629       # not run yet.  These depmodes are late enough in the game, and
14630       # so weak that their functioning should not be impacted.
14631       am__obj=conftest.${OBJEXT-o}
14632       am__minus_obj=
14633       ;;
14634     none) break ;;
14635     esac
14636     if depmode=$depmode \
14637        source=sub/conftest.c object=$am__obj \
14638        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14639        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14640          >/dev/null 2>conftest.err &&
14641        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14642        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14643        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14644        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14645       # icc doesn't choke on unknown options, it will just issue warnings
14646       # or remarks (even with -Werror).  So we grep stderr for any message
14647       # that says an option was ignored or not supported.
14648       # When given -MP, icc 7.0 and 7.1 complain thusly:
14649       #   icc: Command line warning: ignoring option '-M'; no argument required
14650       # The diagnosis changed in icc 8.0:
14651       #   icc: Command line remark: option '-MP' not supported
14652       if (grep 'ignoring option' conftest.err ||
14653           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14654         am_cv_CXX_dependencies_compiler_type=$depmode
14655         break
14656       fi
14657     fi
14658   done
14659
14660   cd ..
14661   rm -rf conftest.dir
14662 else
14663   am_cv_CXX_dependencies_compiler_type=none
14664 fi
14665
14666 fi
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14670
14671  if
14672   test "x$enable_dependency_tracking" != xno \
14673   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14674   am__fastdepCXX_TRUE=
14675   am__fastdepCXX_FALSE='#'
14676 else
14677   am__fastdepCXX_TRUE='#'
14678   am__fastdepCXX_FALSE=
14679 fi
14680
14681
14682
14683
14684 func_stripname_cnf ()
14685 {
14686   case $2 in
14687   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14688   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14689   esac
14690 } # func_stripname_cnf
14691
14692       if test -n "$CXX" && ( test no != "$CXX" &&
14693     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14694     (test g++ != "$CXX"))); then
14695   ac_ext=cpp
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14701 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14702 if test -z "$CXXCPP"; then
14703   if ${ac_cv_prog_CXXCPP+:} false; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706       # Double quotes because CXXCPP needs to be expanded
14707     for CXXCPP in "$CXX -E" "/lib/cpp"
14708     do
14709       ac_preproc_ok=false
14710 for ac_cxx_preproc_warn_flag in '' yes
14711 do
14712   # Use a header file that comes with gcc, so configuring glibc
14713   # with a fresh cross-compiler works.
14714   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715   # <limits.h> exists even on freestanding compilers.
14716   # On the NeXT, cc -E runs the code through the compiler's parser,
14717   # not just through cpp. "Syntax error" is here to catch this case.
14718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h.  */
14720 #ifdef __STDC__
14721 # include <limits.h>
14722 #else
14723 # include <assert.h>
14724 #endif
14725                      Syntax error
14726 _ACEOF
14727 if ac_fn_cxx_try_cpp "$LINENO"; then :
14728
14729 else
14730   # Broken: fails on valid input.
14731 continue
14732 fi
14733 rm -f conftest.err conftest.i conftest.$ac_ext
14734
14735   # OK, works on sane cases.  Now check whether nonexistent headers
14736   # can be detected and how.
14737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739 #include <ac_nonexistent.h>
14740 _ACEOF
14741 if ac_fn_cxx_try_cpp "$LINENO"; then :
14742   # Broken: success on invalid input.
14743 continue
14744 else
14745   # Passes both tests.
14746 ac_preproc_ok=:
14747 break
14748 fi
14749 rm -f conftest.err conftest.i conftest.$ac_ext
14750
14751 done
14752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14753 rm -f conftest.i conftest.err conftest.$ac_ext
14754 if $ac_preproc_ok; then :
14755   break
14756 fi
14757
14758     done
14759     ac_cv_prog_CXXCPP=$CXXCPP
14760
14761 fi
14762   CXXCPP=$ac_cv_prog_CXXCPP
14763 else
14764   ac_cv_prog_CXXCPP=$CXXCPP
14765 fi
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14767 $as_echo "$CXXCPP" >&6; }
14768 ac_preproc_ok=false
14769 for ac_cxx_preproc_warn_flag in '' yes
14770 do
14771   # Use a header file that comes with gcc, so configuring glibc
14772   # with a fresh cross-compiler works.
14773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14774   # <limits.h> exists even on freestanding compilers.
14775   # On the NeXT, cc -E runs the code through the compiler's parser,
14776   # not just through cpp. "Syntax error" is here to catch this case.
14777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h.  */
14779 #ifdef __STDC__
14780 # include <limits.h>
14781 #else
14782 # include <assert.h>
14783 #endif
14784                      Syntax error
14785 _ACEOF
14786 if ac_fn_cxx_try_cpp "$LINENO"; then :
14787
14788 else
14789   # Broken: fails on valid input.
14790 continue
14791 fi
14792 rm -f conftest.err conftest.i conftest.$ac_ext
14793
14794   # OK, works on sane cases.  Now check whether nonexistent headers
14795   # can be detected and how.
14796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h.  */
14798 #include <ac_nonexistent.h>
14799 _ACEOF
14800 if ac_fn_cxx_try_cpp "$LINENO"; then :
14801   # Broken: success on invalid input.
14802 continue
14803 else
14804   # Passes both tests.
14805 ac_preproc_ok=:
14806 break
14807 fi
14808 rm -f conftest.err conftest.i conftest.$ac_ext
14809
14810 done
14811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14812 rm -f conftest.i conftest.err conftest.$ac_ext
14813 if $ac_preproc_ok; then :
14814
14815 else
14816   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14819 See \`config.log' for more details" "$LINENO" 5; }
14820 fi
14821
14822 ac_ext=c
14823 ac_cpp='$CPP $CPPFLAGS'
14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827
14828 else
14829   _lt_caught_CXX_error=yes
14830 fi
14831
14832 ac_ext=cpp
14833 ac_cpp='$CXXCPP $CPPFLAGS'
14834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14837
14838 archive_cmds_need_lc_CXX=no
14839 allow_undefined_flag_CXX=
14840 always_export_symbols_CXX=no
14841 archive_expsym_cmds_CXX=
14842 compiler_needs_object_CXX=no
14843 export_dynamic_flag_spec_CXX=
14844 hardcode_direct_CXX=no
14845 hardcode_direct_absolute_CXX=no
14846 hardcode_libdir_flag_spec_CXX=
14847 hardcode_libdir_separator_CXX=
14848 hardcode_minus_L_CXX=no
14849 hardcode_shlibpath_var_CXX=unsupported
14850 hardcode_automatic_CXX=no
14851 inherit_rpath_CXX=no
14852 module_cmds_CXX=
14853 module_expsym_cmds_CXX=
14854 link_all_deplibs_CXX=unknown
14855 old_archive_cmds_CXX=$old_archive_cmds
14856 reload_flag_CXX=$reload_flag
14857 reload_cmds_CXX=$reload_cmds
14858 no_undefined_flag_CXX=
14859 whole_archive_flag_spec_CXX=
14860 enable_shared_with_static_runtimes_CXX=no
14861
14862 # Source file extension for C++ test sources.
14863 ac_ext=cpp
14864
14865 # Object file extension for compiled C++ test sources.
14866 objext=o
14867 objext_CXX=$objext
14868
14869 # No sense in running all these tests if we already determined that
14870 # the CXX compiler isn't working.  Some variables (like enable_shared)
14871 # are currently assumed to apply to all compilers on this platform,
14872 # and will be corrupted by setting them based on a non-working compiler.
14873 if test yes != "$_lt_caught_CXX_error"; then
14874   # Code to be used in simple compile tests
14875   lt_simple_compile_test_code="int some_variable = 0;"
14876
14877   # Code to be used in simple link tests
14878   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14879
14880   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14881
14882
14883
14884
14885
14886
14887 # If no C compiler was specified, use CC.
14888 LTCC=${LTCC-"$CC"}
14889
14890 # If no C compiler flags were specified, use CFLAGS.
14891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14892
14893 # Allow CC to be a program name with arguments.
14894 compiler=$CC
14895
14896
14897   # save warnings/boilerplate of simple test code
14898   ac_outfile=conftest.$ac_objext
14899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14901 _lt_compiler_boilerplate=`cat conftest.err`
14902 $RM conftest*
14903
14904   ac_outfile=conftest.$ac_objext
14905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14907 _lt_linker_boilerplate=`cat conftest.err`
14908 $RM -r conftest*
14909
14910
14911   # Allow CC to be a program name with arguments.
14912   lt_save_CC=$CC
14913   lt_save_CFLAGS=$CFLAGS
14914   lt_save_LD=$LD
14915   lt_save_GCC=$GCC
14916   GCC=$GXX
14917   lt_save_with_gnu_ld=$with_gnu_ld
14918   lt_save_path_LD=$lt_cv_path_LD
14919   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14920     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14921   else
14922     $as_unset lt_cv_prog_gnu_ld
14923   fi
14924   if test -n "${lt_cv_path_LDCXX+set}"; then
14925     lt_cv_path_LD=$lt_cv_path_LDCXX
14926   else
14927     $as_unset lt_cv_path_LD
14928   fi
14929   test -z "${LDCXX+set}" || LD=$LDCXX
14930   CC=${CXX-"c++"}
14931   CFLAGS=$CXXFLAGS
14932   compiler=$CC
14933   compiler_CXX=$CC
14934   func_cc_basename $compiler
14935 cc_basename=$func_cc_basename_result
14936
14937
14938   if test -n "$compiler"; then
14939     # We don't want -fno-exception when compiling C++ code, so set the
14940     # no_builtin_flag separately
14941     if test yes = "$GXX"; then
14942       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14943     else
14944       lt_prog_compiler_no_builtin_flag_CXX=
14945     fi
14946
14947     if test yes = "$GXX"; then
14948       # Set up default GNU C++ configuration
14949
14950
14951
14952 # Check whether --with-gnu-ld was given.
14953 if test "${with_gnu_ld+set}" = set; then :
14954   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14955 else
14956   with_gnu_ld=no
14957 fi
14958
14959 ac_prog=ld
14960 if test yes = "$GCC"; then
14961   # Check if gcc -print-prog-name=ld gives a path.
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14963 $as_echo_n "checking for ld used by $CC... " >&6; }
14964   case $host in
14965   *-*-mingw*)
14966     # gcc leaves a trailing carriage return, which upsets mingw
14967     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14968   *)
14969     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14970   esac
14971   case $ac_prog in
14972     # Accept absolute paths.
14973     [\\/]* | ?:[\\/]*)
14974       re_direlt='/[^/][^/]*/\.\./'
14975       # Canonicalize the pathname of ld
14976       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14977       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14978         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14979       done
14980       test -z "$LD" && LD=$ac_prog
14981       ;;
14982   "")
14983     # If it fails, then pretend we aren't using GCC.
14984     ac_prog=ld
14985     ;;
14986   *)
14987     # If it is relative, then search for the first ld in PATH.
14988     with_gnu_ld=unknown
14989     ;;
14990   esac
14991 elif test yes = "$with_gnu_ld"; then
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14993 $as_echo_n "checking for GNU ld... " >&6; }
14994 else
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14996 $as_echo_n "checking for non-GNU ld... " >&6; }
14997 fi
14998 if ${lt_cv_path_LD+:} false; then :
14999   $as_echo_n "(cached) " >&6
15000 else
15001   if test -z "$LD"; then
15002   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15003   for ac_dir in $PATH; do
15004     IFS=$lt_save_ifs
15005     test -z "$ac_dir" && ac_dir=.
15006     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15007       lt_cv_path_LD=$ac_dir/$ac_prog
15008       # Check to see if the program is GNU ld.  I'd rather use --version,
15009       # but apparently some variants of GNU ld only accept -v.
15010       # Break only if it was the GNU/non-GNU ld that we prefer.
15011       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15012       *GNU* | *'with BFD'*)
15013         test no != "$with_gnu_ld" && break
15014         ;;
15015       *)
15016         test yes != "$with_gnu_ld" && break
15017         ;;
15018       esac
15019     fi
15020   done
15021   IFS=$lt_save_ifs
15022 else
15023   lt_cv_path_LD=$LD # Let the user override the test with a path.
15024 fi
15025 fi
15026
15027 LD=$lt_cv_path_LD
15028 if test -n "$LD"; then
15029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15030 $as_echo "$LD" >&6; }
15031 else
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15038 if ${lt_cv_prog_gnu_ld+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15042 case `$LD -v 2>&1 </dev/null` in
15043 *GNU* | *'with BFD'*)
15044   lt_cv_prog_gnu_ld=yes
15045   ;;
15046 *)
15047   lt_cv_prog_gnu_ld=no
15048   ;;
15049 esac
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15053 with_gnu_ld=$lt_cv_prog_gnu_ld
15054
15055
15056
15057
15058
15059
15060
15061       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15062       # archiving commands below assume that GNU ld is being used.
15063       if test yes = "$with_gnu_ld"; then
15064         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15065         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'
15066
15067         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15068         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15069
15070         # If archive_cmds runs LD, not CC, wlarc should be empty
15071         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15072         #     investigate it a little bit more. (MM)
15073         wlarc='$wl'
15074
15075         # ancient GNU ld didn't support --whole-archive et. al.
15076         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15077           $GREP 'no-whole-archive' > /dev/null; then
15078           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15079         else
15080           whole_archive_flag_spec_CXX=
15081         fi
15082       else
15083         with_gnu_ld=no
15084         wlarc=
15085
15086         # A generic and very simple default shared library creation
15087         # command for GNU C++ for the case where it uses the native
15088         # linker, instead of GNU ld.  If possible, this setting should
15089         # overridden to take advantage of the native linker features on
15090         # the platform it is being used on.
15091         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15092       fi
15093
15094       # Commands to make compiler produce verbose output that lists
15095       # what "hidden" libraries, object files and flags are used when
15096       # linking a shared library.
15097       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15098
15099     else
15100       GXX=no
15101       with_gnu_ld=no
15102       wlarc=
15103     fi
15104
15105     # PORTME: fill in a description of your system's C++ link characteristics
15106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15108     ld_shlibs_CXX=yes
15109     case $host_os in
15110       aix3*)
15111         # FIXME: insert proper C++ library support
15112         ld_shlibs_CXX=no
15113         ;;
15114       aix[4-9]*)
15115         if test ia64 = "$host_cpu"; then
15116           # On IA64, the linker does run time linking by default, so we don't
15117           # have to do anything special.
15118           aix_use_runtimelinking=no
15119           exp_sym_flag='-Bexport'
15120           no_entry_flag=
15121         else
15122           aix_use_runtimelinking=no
15123
15124           # Test if we are trying to use run time linking or normal
15125           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15126           # have runtime linking enabled, and use it for executables.
15127           # For shared libraries, we enable/disable runtime linking
15128           # depending on the kind of the shared library created -
15129           # when "with_aix_soname,aix_use_runtimelinking" is:
15130           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15131           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15132           #            lib.a           static archive
15133           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15134           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15135           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15136           #            lib.a(lib.so.V) shared, rtl:no
15137           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15138           #            lib.a           static archive
15139           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15140             for ld_flag in $LDFLAGS; do
15141               case $ld_flag in
15142               *-brtl*)
15143                 aix_use_runtimelinking=yes
15144                 break
15145                 ;;
15146               esac
15147             done
15148             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15149               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15150               # so we don't have lib.a shared libs to link our executables.
15151               # We have to force runtime linking in this case.
15152               aix_use_runtimelinking=yes
15153               LDFLAGS="$LDFLAGS -Wl,-brtl"
15154             fi
15155             ;;
15156           esac
15157
15158           exp_sym_flag='-bexport'
15159           no_entry_flag='-bnoentry'
15160         fi
15161
15162         # When large executables or shared objects are built, AIX ld can
15163         # have problems creating the table of contents.  If linking a library
15164         # or program results in "error TOC overflow" add -mminimal-toc to
15165         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15166         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15167
15168         archive_cmds_CXX=''
15169         hardcode_direct_CXX=yes
15170         hardcode_direct_absolute_CXX=yes
15171         hardcode_libdir_separator_CXX=':'
15172         link_all_deplibs_CXX=yes
15173         file_list_spec_CXX='$wl-f,'
15174         case $with_aix_soname,$aix_use_runtimelinking in
15175         aix,*) ;;       # no import file
15176         svr4,* | *,yes) # use import file
15177           # The Import File defines what to hardcode.
15178           hardcode_direct_CXX=no
15179           hardcode_direct_absolute_CXX=no
15180           ;;
15181         esac
15182
15183         if test yes = "$GXX"; then
15184           case $host_os in aix4.[012]|aix4.[012].*)
15185           # We only want to do this on AIX 4.2 and lower, the check
15186           # below for broken collect2 doesn't work under 4.3+
15187           collect2name=`$CC -print-prog-name=collect2`
15188           if test -f "$collect2name" &&
15189              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15190           then
15191             # We have reworked collect2
15192             :
15193           else
15194             # We have old collect2
15195             hardcode_direct_CXX=unsupported
15196             # It fails to find uninstalled libraries when the uninstalled
15197             # path is not listed in the libpath.  Setting hardcode_minus_L
15198             # to unsupported forces relinking
15199             hardcode_minus_L_CXX=yes
15200             hardcode_libdir_flag_spec_CXX='-L$libdir'
15201             hardcode_libdir_separator_CXX=
15202           fi
15203           esac
15204           shared_flag='-shared'
15205           if test yes = "$aix_use_runtimelinking"; then
15206             shared_flag=$shared_flag' $wl-G'
15207           fi
15208           # Need to ensure runtime linking is disabled for the traditional
15209           # shared library, or the linker may eventually find shared libraries
15210           # /with/ Import File - we do not want to mix them.
15211           shared_flag_aix='-shared'
15212           shared_flag_svr4='-shared $wl-G'
15213         else
15214           # not using gcc
15215           if test ia64 = "$host_cpu"; then
15216           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15217           # chokes on -Wl,-G. The following line is correct:
15218           shared_flag='-G'
15219           else
15220             if test yes = "$aix_use_runtimelinking"; then
15221               shared_flag='$wl-G'
15222             else
15223               shared_flag='$wl-bM:SRE'
15224             fi
15225             shared_flag_aix='$wl-bM:SRE'
15226             shared_flag_svr4='$wl-G'
15227           fi
15228         fi
15229
15230         export_dynamic_flag_spec_CXX='$wl-bexpall'
15231         # It seems that -bexpall does not export symbols beginning with
15232         # underscore (_), so it is better to generate a list of symbols to
15233         # export.
15234         always_export_symbols_CXX=yes
15235         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15236           # Warning - without using the other runtime loading flags (-brtl),
15237           # -berok will link without error, but may produce a broken library.
15238           # The "-G" linker flag allows undefined symbols.
15239           no_undefined_flag_CXX='-bernotok'
15240           # Determine the default libpath from the value encoded in an empty
15241           # executable.
15242           if test set = "${lt_cv_aix_libpath+set}"; then
15243   aix_libpath=$lt_cv_aix_libpath
15244 else
15245   if ${lt_cv_aix_libpath__CXX+:} false; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h.  */
15250
15251 int
15252 main ()
15253 {
15254
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_cxx_try_link "$LINENO"; then :
15260
15261   lt_aix_libpath_sed='
15262       /Import File Strings/,/^$/ {
15263           /^0/ {
15264               s/^0  *\([^ ]*\) *$/\1/
15265               p
15266           }
15267       }'
15268   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15269   # Check for a 64-bit object if we didn't find anything.
15270   if test -z "$lt_cv_aix_libpath__CXX"; then
15271     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15272   fi
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext \
15275     conftest$ac_exeext conftest.$ac_ext
15276   if test -z "$lt_cv_aix_libpath__CXX"; then
15277     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15278   fi
15279
15280 fi
15281
15282   aix_libpath=$lt_cv_aix_libpath__CXX
15283 fi
15284
15285           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15286
15287           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
15288         else
15289           if test ia64 = "$host_cpu"; then
15290             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15291             allow_undefined_flag_CXX="-z nodefs"
15292             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"
15293           else
15294             # Determine the default libpath from the value encoded in an
15295             # empty executable.
15296             if test set = "${lt_cv_aix_libpath+set}"; then
15297   aix_libpath=$lt_cv_aix_libpath
15298 else
15299   if ${lt_cv_aix_libpath__CXX+:} false; then :
15300   $as_echo_n "(cached) " >&6
15301 else
15302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h.  */
15304
15305 int
15306 main ()
15307 {
15308
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_cxx_try_link "$LINENO"; then :
15314
15315   lt_aix_libpath_sed='
15316       /Import File Strings/,/^$/ {
15317           /^0/ {
15318               s/^0  *\([^ ]*\) *$/\1/
15319               p
15320           }
15321       }'
15322   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15323   # Check for a 64-bit object if we didn't find anything.
15324   if test -z "$lt_cv_aix_libpath__CXX"; then
15325     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15326   fi
15327 fi
15328 rm -f core conftest.err conftest.$ac_objext \
15329     conftest$ac_exeext conftest.$ac_ext
15330   if test -z "$lt_cv_aix_libpath__CXX"; then
15331     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15332   fi
15333
15334 fi
15335
15336   aix_libpath=$lt_cv_aix_libpath__CXX
15337 fi
15338
15339             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15340             # Warning - without using the other run time loading flags,
15341             # -berok will link without error, but may produce a broken library.
15342             no_undefined_flag_CXX=' $wl-bernotok'
15343             allow_undefined_flag_CXX=' $wl-berok'
15344             if test yes = "$with_gnu_ld"; then
15345               # We only use this code for GNU lds that support --whole-archive.
15346               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15347             else
15348               # Exported symbols can be pulled into shared objects from archives
15349               whole_archive_flag_spec_CXX='$convenience'
15350             fi
15351             archive_cmds_need_lc_CXX=yes
15352             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15353             # -brtl affects multiple linker settings, -berok does not and is overridden later
15354             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15355             if test svr4 != "$with_aix_soname"; then
15356               # This is similar to how AIX traditionally builds its shared
15357               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15358               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'
15359             fi
15360             if test aix != "$with_aix_soname"; then
15361               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'
15362             else
15363               # used by -dlpreopen to get the symbols
15364               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15365             fi
15366             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15367           fi
15368         fi
15369         ;;
15370
15371       beos*)
15372         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15373           allow_undefined_flag_CXX=unsupported
15374           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15375           # support --undefined.  This deserves some investigation.  FIXME
15376           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15377         else
15378           ld_shlibs_CXX=no
15379         fi
15380         ;;
15381
15382       chorus*)
15383         case $cc_basename in
15384           *)
15385           # FIXME: insert proper C++ library support
15386           ld_shlibs_CXX=no
15387           ;;
15388         esac
15389         ;;
15390
15391       cygwin* | mingw* | pw32* | cegcc*)
15392         case $GXX,$cc_basename in
15393         ,cl* | no,cl*)
15394           # Native MSVC
15395           # hardcode_libdir_flag_spec is actually meaningless, as there is
15396           # no search path for DLLs.
15397           hardcode_libdir_flag_spec_CXX=' '
15398           allow_undefined_flag_CXX=unsupported
15399           always_export_symbols_CXX=yes
15400           file_list_spec_CXX='@'
15401           # Tell ltmain to make .lib files, not .a files.
15402           libext=lib
15403           # Tell ltmain to make .dll files, not .so files.
15404           shrext_cmds=.dll
15405           # FIXME: Setting linknames here is a bad hack.
15406           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15407           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15408               cp "$export_symbols" "$output_objdir/$soname.def";
15409               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15410             else
15411               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15412             fi~
15413             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15414             linknames='
15415           # The linker will not automatically build a static lib if we build a DLL.
15416           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15417           enable_shared_with_static_runtimes_CXX=yes
15418           # Don't use ranlib
15419           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15420           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15421             lt_tool_outputfile="@TOOL_OUTPUT@"~
15422             case $lt_outputfile in
15423               *.exe|*.EXE) ;;
15424               *)
15425                 lt_outputfile=$lt_outputfile.exe
15426                 lt_tool_outputfile=$lt_tool_outputfile.exe
15427                 ;;
15428             esac~
15429             func_to_tool_file "$lt_outputfile"~
15430             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15431               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15432               $RM "$lt_outputfile.manifest";
15433             fi'
15434           ;;
15435         *)
15436           # g++
15437           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15438           # as there is no search path for DLLs.
15439           hardcode_libdir_flag_spec_CXX='-L$libdir'
15440           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15441           allow_undefined_flag_CXX=unsupported
15442           always_export_symbols_CXX=no
15443           enable_shared_with_static_runtimes_CXX=yes
15444
15445           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15446             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'
15447             # If the export-symbols file already is a .def file, use it as
15448             # is; otherwise, prepend EXPORTS...
15449             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15450               cp $export_symbols $output_objdir/$soname.def;
15451             else
15452               echo EXPORTS > $output_objdir/$soname.def;
15453               cat $export_symbols >> $output_objdir/$soname.def;
15454             fi~
15455             $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'
15456           else
15457             ld_shlibs_CXX=no
15458           fi
15459           ;;
15460         esac
15461         ;;
15462       darwin* | rhapsody*)
15463
15464
15465   archive_cmds_need_lc_CXX=no
15466   hardcode_direct_CXX=no
15467   hardcode_automatic_CXX=yes
15468   hardcode_shlibpath_var_CXX=unsupported
15469   if test yes = "$lt_cv_ld_force_load"; then
15470     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\"`'
15471
15472   else
15473     whole_archive_flag_spec_CXX=''
15474   fi
15475   link_all_deplibs_CXX=yes
15476   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15477   case $cc_basename in
15478      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15479      *) _lt_dar_can_shared=$GCC ;;
15480   esac
15481   if test yes = "$_lt_dar_can_shared"; then
15482     output_verbose_link_cmd=func_echo_all
15483     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"
15484     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15485     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"
15486     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"
15487        if test yes != "$lt_cv_apple_cc_single_mod"; then
15488       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"
15489       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"
15490     fi
15491
15492   else
15493   ld_shlibs_CXX=no
15494   fi
15495
15496         ;;
15497
15498       os2*)
15499         hardcode_libdir_flag_spec_CXX='-L$libdir'
15500         hardcode_minus_L_CXX=yes
15501         allow_undefined_flag_CXX=unsupported
15502         shrext_cmds=.dll
15503         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15504           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15505           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15506           $ECHO EXPORTS >> $output_objdir/$libname.def~
15507           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15508           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15509           emximp -o $lib $output_objdir/$libname.def'
15510         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15511           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15512           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15513           $ECHO EXPORTS >> $output_objdir/$libname.def~
15514           prefix_cmds="$SED"~
15515           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15516             prefix_cmds="$prefix_cmds -e 1d";
15517           fi~
15518           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15519           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15520           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15521           emximp -o $lib $output_objdir/$libname.def'
15522         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15523         enable_shared_with_static_runtimes_CXX=yes
15524         ;;
15525
15526       dgux*)
15527         case $cc_basename in
15528           ec++*)
15529             # FIXME: insert proper C++ library support
15530             ld_shlibs_CXX=no
15531             ;;
15532           ghcx*)
15533             # Green Hills C++ Compiler
15534             # FIXME: insert proper C++ library support
15535             ld_shlibs_CXX=no
15536             ;;
15537           *)
15538             # FIXME: insert proper C++ library support
15539             ld_shlibs_CXX=no
15540             ;;
15541         esac
15542         ;;
15543
15544       freebsd2.*)
15545         # C++ shared libraries reported to be fairly broken before
15546         # switch to ELF
15547         ld_shlibs_CXX=no
15548         ;;
15549
15550       freebsd-elf*)
15551         archive_cmds_need_lc_CXX=no
15552         ;;
15553
15554       freebsd* | dragonfly*)
15555         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15556         # conventions
15557         ld_shlibs_CXX=yes
15558         ;;
15559
15560       haiku*)
15561         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15562         link_all_deplibs_CXX=yes
15563         ;;
15564
15565       hpux9*)
15566         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15567         hardcode_libdir_separator_CXX=:
15568         export_dynamic_flag_spec_CXX='$wl-E'
15569         hardcode_direct_CXX=yes
15570         hardcode_minus_L_CXX=yes # Not in the search PATH,
15571                                              # but as the default
15572                                              # location of the library.
15573
15574         case $cc_basename in
15575           CC*)
15576             # FIXME: insert proper C++ library support
15577             ld_shlibs_CXX=no
15578             ;;
15579           aCC*)
15580             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'
15581             # Commands to make compiler produce verbose output that lists
15582             # what "hidden" libraries, object files and flags are used when
15583             # linking a shared library.
15584             #
15585             # There doesn't appear to be a way to prevent this compiler from
15586             # explicitly linking system object files so we need to strip them
15587             # from the output so that they don't get included in the library
15588             # dependencies.
15589             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"'
15590             ;;
15591           *)
15592             if test yes = "$GXX"; then
15593               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'
15594             else
15595               # FIXME: insert proper C++ library support
15596               ld_shlibs_CXX=no
15597             fi
15598             ;;
15599         esac
15600         ;;
15601
15602       hpux10*|hpux11*)
15603         if test no = "$with_gnu_ld"; then
15604           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15605           hardcode_libdir_separator_CXX=:
15606
15607           case $host_cpu in
15608             hppa*64*|ia64*)
15609               ;;
15610             *)
15611               export_dynamic_flag_spec_CXX='$wl-E'
15612               ;;
15613           esac
15614         fi
15615         case $host_cpu in
15616           hppa*64*|ia64*)
15617             hardcode_direct_CXX=no
15618             hardcode_shlibpath_var_CXX=no
15619             ;;
15620           *)
15621             hardcode_direct_CXX=yes
15622             hardcode_direct_absolute_CXX=yes
15623             hardcode_minus_L_CXX=yes # Not in the search PATH,
15624                                                  # but as the default
15625                                                  # location of the library.
15626             ;;
15627         esac
15628
15629         case $cc_basename in
15630           CC*)
15631             # FIXME: insert proper C++ library support
15632             ld_shlibs_CXX=no
15633             ;;
15634           aCC*)
15635             case $host_cpu in
15636               hppa*64*)
15637                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15638                 ;;
15639               ia64*)
15640                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15641                 ;;
15642               *)
15643                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15644                 ;;
15645             esac
15646             # Commands to make compiler produce verbose output that lists
15647             # what "hidden" libraries, object files and flags are used when
15648             # linking a shared library.
15649             #
15650             # There doesn't appear to be a way to prevent this compiler from
15651             # explicitly linking system object files so we need to strip them
15652             # from the output so that they don't get included in the library
15653             # dependencies.
15654             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"'
15655             ;;
15656           *)
15657             if test yes = "$GXX"; then
15658               if test no = "$with_gnu_ld"; then
15659                 case $host_cpu in
15660                   hppa*64*)
15661                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15662                     ;;
15663                   ia64*)
15664                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15665                     ;;
15666                   *)
15667                     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'
15668                     ;;
15669                 esac
15670               fi
15671             else
15672               # FIXME: insert proper C++ library support
15673               ld_shlibs_CXX=no
15674             fi
15675             ;;
15676         esac
15677         ;;
15678
15679       interix[3-9]*)
15680         hardcode_direct_CXX=no
15681         hardcode_shlibpath_var_CXX=no
15682         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15683         export_dynamic_flag_spec_CXX='$wl-E'
15684         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15685         # Instead, shared libraries are loaded at an image base (0x10000000 by
15686         # default) and relocated if they conflict, which is a slow very memory
15687         # consuming and fragmenting process.  To avoid this, we pick a random,
15688         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15689         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15690         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'
15691         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'
15692         ;;
15693       irix5* | irix6*)
15694         case $cc_basename in
15695           CC*)
15696             # SGI C++
15697             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'
15698
15699             # Archives containing C++ object files must be created using
15700             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15701             # necessary to make sure instantiated templates are included
15702             # in the archive.
15703             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15704             ;;
15705           *)
15706             if test yes = "$GXX"; then
15707               if test no = "$with_gnu_ld"; then
15708                 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'
15709               else
15710                 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'
15711               fi
15712             fi
15713             link_all_deplibs_CXX=yes
15714             ;;
15715         esac
15716         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15717         hardcode_libdir_separator_CXX=:
15718         inherit_rpath_CXX=yes
15719         ;;
15720
15721       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15722         case $cc_basename in
15723           KCC*)
15724             # Kuck and Associates, Inc. (KAI) C++ Compiler
15725
15726             # KCC will only create a shared library if the output file
15727             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728             # to its proper name (with version) after linking.
15729             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'
15730             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'
15731             # Commands to make compiler produce verbose output that lists
15732             # what "hidden" libraries, object files and flags are used when
15733             # linking a shared library.
15734             #
15735             # There doesn't appear to be a way to prevent this compiler from
15736             # explicitly linking system object files so we need to strip them
15737             # from the output so that they don't get included in the library
15738             # dependencies.
15739             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"'
15740
15741             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15742             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15743
15744             # Archives containing C++ object files must be created using
15745             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15747             ;;
15748           icpc* | ecpc* )
15749             # Intel C++
15750             with_gnu_ld=yes
15751             # version 8.0 and above of icpc choke on multiply defined symbols
15752             # if we add $predep_objects and $postdep_objects, however 7.1 and
15753             # earlier do not add the objects themselves.
15754             case `$CC -V 2>&1` in
15755               *"Version 7."*)
15756                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15757                 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'
15758                 ;;
15759               *)  # Version 8.0 or newer
15760                 tmp_idyn=
15761                 case $host_cpu in
15762                   ia64*) tmp_idyn=' -i_dynamic';;
15763                 esac
15764                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15765                 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'
15766                 ;;
15767             esac
15768             archive_cmds_need_lc_CXX=no
15769             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15770             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15771             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15772             ;;
15773           pgCC* | pgcpp*)
15774             # Portland Group C++ compiler
15775             case `$CC -V` in
15776             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15777               prelink_cmds_CXX='tpldir=Template.dir~
15778                rm -rf $tpldir~
15779                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15780                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15781               old_archive_cmds_CXX='tpldir=Template.dir~
15782                 rm -rf $tpldir~
15783                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15784                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15785                 $RANLIB $oldlib'
15786               archive_cmds_CXX='tpldir=Template.dir~
15787                 rm -rf $tpldir~
15788                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15789                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15790               archive_expsym_cmds_CXX='tpldir=Template.dir~
15791                 rm -rf $tpldir~
15792                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15793                 $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'
15794               ;;
15795             *) # Version 6 and above use weak symbols
15796               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15797               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'
15798               ;;
15799             esac
15800
15801             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15802             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15803             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'
15804             ;;
15805           cxx*)
15806             # Compaq C++
15807             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15808             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'
15809
15810             runpath_var=LD_RUN_PATH
15811             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15812             hardcode_libdir_separator_CXX=:
15813
15814             # Commands to make compiler produce verbose output that lists
15815             # what "hidden" libraries, object files and flags are used when
15816             # linking a shared library.
15817             #
15818             # There doesn't appear to be a way to prevent this compiler from
15819             # explicitly linking system object files so we need to strip them
15820             # from the output so that they don't get included in the library
15821             # dependencies.
15822             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'
15823             ;;
15824           xl* | mpixl* | bgxl*)
15825             # IBM XL 8.0 on PPC, with GNU ld
15826             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15827             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15828             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15829             if test yes = "$supports_anon_versioning"; then
15830               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15831                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15832                 echo "local: *; };" >> $output_objdir/$libname.ver~
15833                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15834             fi
15835             ;;
15836           *)
15837             case `$CC -V 2>&1 | sed 5q` in
15838             *Sun\ C*)
15839               # Sun C++ 5.9
15840               no_undefined_flag_CXX=' -zdefs'
15841               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15842               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'
15843               hardcode_libdir_flag_spec_CXX='-R$libdir'
15844               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'
15845               compiler_needs_object_CXX=yes
15846
15847               # Not sure whether something based on
15848               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15849               # would be better.
15850               output_verbose_link_cmd='func_echo_all'
15851
15852               # Archives containing C++ object files must be created using
15853               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15854               # necessary to make sure instantiated templates are included
15855               # in the archive.
15856               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15857               ;;
15858             esac
15859             ;;
15860         esac
15861         ;;
15862
15863       lynxos*)
15864         # FIXME: insert proper C++ library support
15865         ld_shlibs_CXX=no
15866         ;;
15867
15868       m88k*)
15869         # FIXME: insert proper C++ library support
15870         ld_shlibs_CXX=no
15871         ;;
15872
15873       mvs*)
15874         case $cc_basename in
15875           cxx*)
15876             # FIXME: insert proper C++ library support
15877             ld_shlibs_CXX=no
15878             ;;
15879           *)
15880             # FIXME: insert proper C++ library support
15881             ld_shlibs_CXX=no
15882             ;;
15883         esac
15884         ;;
15885
15886       netbsd*)
15887         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15888           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15889           wlarc=
15890           hardcode_libdir_flag_spec_CXX='-R$libdir'
15891           hardcode_direct_CXX=yes
15892           hardcode_shlibpath_var_CXX=no
15893         fi
15894         # Workaround some broken pre-1.5 toolchains
15895         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15896         ;;
15897
15898       *nto* | *qnx*)
15899         ld_shlibs_CXX=yes
15900         ;;
15901
15902       openbsd* | bitrig*)
15903         if test -f /usr/libexec/ld.so; then
15904           hardcode_direct_CXX=yes
15905           hardcode_shlibpath_var_CXX=no
15906           hardcode_direct_absolute_CXX=yes
15907           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15908           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15909           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15910             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15911             export_dynamic_flag_spec_CXX='$wl-E'
15912             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15913           fi
15914           output_verbose_link_cmd=func_echo_all
15915         else
15916           ld_shlibs_CXX=no
15917         fi
15918         ;;
15919
15920       osf3* | osf4* | osf5*)
15921         case $cc_basename in
15922           KCC*)
15923             # Kuck and Associates, Inc. (KAI) C++ Compiler
15924
15925             # KCC will only create a shared library if the output file
15926             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15927             # to its proper name (with version) after linking.
15928             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'
15929
15930             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15931             hardcode_libdir_separator_CXX=:
15932
15933             # Archives containing C++ object files must be created using
15934             # the KAI C++ compiler.
15935             case $host in
15936               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15937               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15938             esac
15939             ;;
15940           RCC*)
15941             # Rational C++ 2.4.1
15942             # FIXME: insert proper C++ library support
15943             ld_shlibs_CXX=no
15944             ;;
15945           cxx*)
15946             case $host in
15947               osf3*)
15948                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15949                 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'
15950                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15951                 ;;
15952               *)
15953                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15954                 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'
15955                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15956                   echo "-hidden">> $lib.exp~
15957                   $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~
15958                   $RM $lib.exp'
15959                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15960                 ;;
15961             esac
15962
15963             hardcode_libdir_separator_CXX=:
15964
15965             # Commands to make compiler produce verbose output that lists
15966             # what "hidden" libraries, object files and flags are used when
15967             # linking a shared library.
15968             #
15969             # There doesn't appear to be a way to prevent this compiler from
15970             # explicitly linking system object files so we need to strip them
15971             # from the output so that they don't get included in the library
15972             # dependencies.
15973             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"'
15974             ;;
15975           *)
15976             if test yes,no = "$GXX,$with_gnu_ld"; then
15977               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15978               case $host in
15979                 osf3*)
15980                   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'
15981                   ;;
15982                 *)
15983                   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'
15984                   ;;
15985               esac
15986
15987               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15988               hardcode_libdir_separator_CXX=:
15989
15990               # Commands to make compiler produce verbose output that lists
15991               # what "hidden" libraries, object files and flags are used when
15992               # linking a shared library.
15993               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15994
15995             else
15996               # FIXME: insert proper C++ library support
15997               ld_shlibs_CXX=no
15998             fi
15999             ;;
16000         esac
16001         ;;
16002
16003       psos*)
16004         # FIXME: insert proper C++ library support
16005         ld_shlibs_CXX=no
16006         ;;
16007
16008       sunos4*)
16009         case $cc_basename in
16010           CC*)
16011             # Sun C++ 4.x
16012             # FIXME: insert proper C++ library support
16013             ld_shlibs_CXX=no
16014             ;;
16015           lcc*)
16016             # Lucid
16017             # FIXME: insert proper C++ library support
16018             ld_shlibs_CXX=no
16019             ;;
16020           *)
16021             # FIXME: insert proper C++ library support
16022             ld_shlibs_CXX=no
16023             ;;
16024         esac
16025         ;;
16026
16027       solaris*)
16028         case $cc_basename in
16029           CC* | sunCC*)
16030             # Sun C++ 4.2, 5.x and Centerline C++
16031             archive_cmds_need_lc_CXX=yes
16032             no_undefined_flag_CXX=' -zdefs'
16033             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16035               $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'
16036
16037             hardcode_libdir_flag_spec_CXX='-R$libdir'
16038             hardcode_shlibpath_var_CXX=no
16039             case $host_os in
16040               solaris2.[0-5] | solaris2.[0-5].*) ;;
16041               *)
16042                 # The compiler driver will combine and reorder linker options,
16043                 # but understands '-z linker_flag'.
16044                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16045                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16046                 ;;
16047             esac
16048             link_all_deplibs_CXX=yes
16049
16050             output_verbose_link_cmd='func_echo_all'
16051
16052             # Archives containing C++ object files must be created using
16053             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16054             # necessary to make sure instantiated templates are included
16055             # in the archive.
16056             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16057             ;;
16058           gcx*)
16059             # Green Hills C++ Compiler
16060             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16061
16062             # The C++ compiler must be used to create the archive.
16063             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16064             ;;
16065           *)
16066             # GNU C++ compiler with Solaris linker
16067             if test yes,no = "$GXX,$with_gnu_ld"; then
16068               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16069               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16070                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16071                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16072                   $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'
16073
16074                 # Commands to make compiler produce verbose output that lists
16075                 # what "hidden" libraries, object files and flags are used when
16076                 # linking a shared library.
16077                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16078               else
16079                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16080                 # platform.
16081                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16083                   $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'
16084
16085                 # Commands to make compiler produce verbose output that lists
16086                 # what "hidden" libraries, object files and flags are used when
16087                 # linking a shared library.
16088                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16089               fi
16090
16091               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16092               case $host_os in
16093                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16094                 *)
16095                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16096                   ;;
16097               esac
16098             fi
16099             ;;
16100         esac
16101         ;;
16102
16103     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16104       no_undefined_flag_CXX='$wl-z,text'
16105       archive_cmds_need_lc_CXX=no
16106       hardcode_shlibpath_var_CXX=no
16107       runpath_var='LD_RUN_PATH'
16108
16109       case $cc_basename in
16110         CC*)
16111           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16113           ;;
16114         *)
16115           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16117           ;;
16118       esac
16119       ;;
16120
16121       sysv5* | sco3.2v5* | sco5v6*)
16122         # Note: We CANNOT use -z defs as we might desire, because we do not
16123         # link with -lc, and that would cause any symbols used from libc to
16124         # always be unresolved, which means just about no library would
16125         # ever link correctly.  If we're not using GNU ld we use -z text
16126         # though, which does catch some bad symbols but isn't as heavy-handed
16127         # as -z defs.
16128         no_undefined_flag_CXX='$wl-z,text'
16129         allow_undefined_flag_CXX='$wl-z,nodefs'
16130         archive_cmds_need_lc_CXX=no
16131         hardcode_shlibpath_var_CXX=no
16132         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16133         hardcode_libdir_separator_CXX=':'
16134         link_all_deplibs_CXX=yes
16135         export_dynamic_flag_spec_CXX='$wl-Bexport'
16136         runpath_var='LD_RUN_PATH'
16137
16138         case $cc_basename in
16139           CC*)
16140             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16143               '"$old_archive_cmds_CXX"
16144             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16145               '"$reload_cmds_CXX"
16146             ;;
16147           *)
16148             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16150             ;;
16151         esac
16152       ;;
16153
16154       tandem*)
16155         case $cc_basename in
16156           NCC*)
16157             # NonStop-UX NCC 3.20
16158             # FIXME: insert proper C++ library support
16159             ld_shlibs_CXX=no
16160             ;;
16161           *)
16162             # FIXME: insert proper C++ library support
16163             ld_shlibs_CXX=no
16164             ;;
16165         esac
16166         ;;
16167
16168       vxworks*)
16169         # FIXME: insert proper C++ library support
16170         ld_shlibs_CXX=no
16171         ;;
16172
16173       *)
16174         # FIXME: insert proper C++ library support
16175         ld_shlibs_CXX=no
16176         ;;
16177     esac
16178
16179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16180 $as_echo "$ld_shlibs_CXX" >&6; }
16181     test no = "$ld_shlibs_CXX" && can_build_shared=no
16182
16183     GCC_CXX=$GXX
16184     LD_CXX=$LD
16185
16186     ## CAVEAT EMPTOR:
16187     ## There is no encapsulation within the following macros, do not change
16188     ## the running order or otherwise move them around unless you know exactly
16189     ## what you are doing...
16190     # Dependencies to place before and after the object being linked:
16191 predep_objects_CXX=
16192 postdep_objects_CXX=
16193 predeps_CXX=
16194 postdeps_CXX=
16195 compiler_lib_search_path_CXX=
16196
16197 cat > conftest.$ac_ext <<_LT_EOF
16198 class Foo
16199 {
16200 public:
16201   Foo (void) { a = 0; }
16202 private:
16203   int a;
16204 };
16205 _LT_EOF
16206
16207
16208 _lt_libdeps_save_CFLAGS=$CFLAGS
16209 case "$CC $CFLAGS " in #(
16210 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16211 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16212 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16213 esac
16214
16215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16216   (eval $ac_compile) 2>&5
16217   ac_status=$?
16218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16219   test $ac_status = 0; }; then
16220   # Parse the compiler output and extract the necessary
16221   # objects, libraries and library flags.
16222
16223   # Sentinel used to keep track of whether or not we are before
16224   # the conftest object file.
16225   pre_test_object_deps_done=no
16226
16227   for p in `eval "$output_verbose_link_cmd"`; do
16228     case $prev$p in
16229
16230     -L* | -R* | -l*)
16231        # Some compilers place space between "-{L,R}" and the path.
16232        # Remove the space.
16233        if test x-L = "$p" ||
16234           test x-R = "$p"; then
16235          prev=$p
16236          continue
16237        fi
16238
16239        # Expand the sysroot to ease extracting the directories later.
16240        if test -z "$prev"; then
16241          case $p in
16242          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16243          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16244          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16245          esac
16246        fi
16247        case $p in
16248        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16249        esac
16250        if test no = "$pre_test_object_deps_done"; then
16251          case $prev in
16252          -L | -R)
16253            # Internal compiler library paths should come after those
16254            # provided the user.  The postdeps already come after the
16255            # user supplied libs so there is no need to process them.
16256            if test -z "$compiler_lib_search_path_CXX"; then
16257              compiler_lib_search_path_CXX=$prev$p
16258            else
16259              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16260            fi
16261            ;;
16262          # The "-l" case would never come before the object being
16263          # linked, so don't bother handling this case.
16264          esac
16265        else
16266          if test -z "$postdeps_CXX"; then
16267            postdeps_CXX=$prev$p
16268          else
16269            postdeps_CXX="${postdeps_CXX} $prev$p"
16270          fi
16271        fi
16272        prev=
16273        ;;
16274
16275     *.lto.$objext) ;; # Ignore GCC LTO objects
16276     *.$objext)
16277        # This assumes that the test object file only shows up
16278        # once in the compiler output.
16279        if test "$p" = "conftest.$objext"; then
16280          pre_test_object_deps_done=yes
16281          continue
16282        fi
16283
16284        if test no = "$pre_test_object_deps_done"; then
16285          if test -z "$predep_objects_CXX"; then
16286            predep_objects_CXX=$p
16287          else
16288            predep_objects_CXX="$predep_objects_CXX $p"
16289          fi
16290        else
16291          if test -z "$postdep_objects_CXX"; then
16292            postdep_objects_CXX=$p
16293          else
16294            postdep_objects_CXX="$postdep_objects_CXX $p"
16295          fi
16296        fi
16297        ;;
16298
16299     *) ;; # Ignore the rest.
16300
16301     esac
16302   done
16303
16304   # Clean up.
16305   rm -f a.out a.exe
16306 else
16307   echo "libtool.m4: error: problem compiling CXX test program"
16308 fi
16309
16310 $RM -f confest.$objext
16311 CFLAGS=$_lt_libdeps_save_CFLAGS
16312
16313 # PORTME: override above test on systems where it is broken
16314 case $host_os in
16315 interix[3-9]*)
16316   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16317   # hack all around it, let's just trust "g++" to DTRT.
16318   predep_objects_CXX=
16319   postdep_objects_CXX=
16320   postdeps_CXX=
16321   ;;
16322 esac
16323
16324
16325 case " $postdeps_CXX " in
16326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16327 esac
16328  compiler_lib_search_dirs_CXX=
16329 if test -n "${compiler_lib_search_path_CXX}"; then
16330  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16331 fi
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363     lt_prog_compiler_wl_CXX=
16364 lt_prog_compiler_pic_CXX=
16365 lt_prog_compiler_static_CXX=
16366
16367
16368   # C++ specific cases for pic, static, wl, etc.
16369   if test yes = "$GXX"; then
16370     lt_prog_compiler_wl_CXX='-Wl,'
16371     lt_prog_compiler_static_CXX='-static'
16372
16373     case $host_os in
16374     aix*)
16375       # All AIX code is PIC.
16376       if test ia64 = "$host_cpu"; then
16377         # AIX 5 now supports IA64 processor
16378         lt_prog_compiler_static_CXX='-Bstatic'
16379       fi
16380       lt_prog_compiler_pic_CXX='-fPIC'
16381       ;;
16382
16383     amigaos*)
16384       case $host_cpu in
16385       powerpc)
16386             # see comment about AmigaOS4 .so support
16387             lt_prog_compiler_pic_CXX='-fPIC'
16388         ;;
16389       m68k)
16390             # FIXME: we need at least 68020 code to build shared libraries, but
16391             # adding the '-m68020' flag to GCC prevents building anything better,
16392             # like '-m68040'.
16393             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16394         ;;
16395       esac
16396       ;;
16397
16398     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16399       # PIC is the default for these OSes.
16400       ;;
16401     mingw* | cygwin* | os2* | pw32* | cegcc*)
16402       # This hack is so that the source file can tell whether it is being
16403       # built for inclusion in a dll (and should export symbols for example).
16404       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16405       # (--disable-auto-import) libraries
16406       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16407       case $host_os in
16408       os2*)
16409         lt_prog_compiler_static_CXX='$wl-static'
16410         ;;
16411       esac
16412       ;;
16413     darwin* | rhapsody*)
16414       # PIC is the default on this platform
16415       # Common symbols not allowed in MH_DYLIB files
16416       lt_prog_compiler_pic_CXX='-fno-common'
16417       ;;
16418     *djgpp*)
16419       # DJGPP does not support shared libraries at all
16420       lt_prog_compiler_pic_CXX=
16421       ;;
16422     haiku*)
16423       # PIC is the default for Haiku.
16424       # The "-static" flag exists, but is broken.
16425       lt_prog_compiler_static_CXX=
16426       ;;
16427     interix[3-9]*)
16428       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16429       # Instead, we relocate shared libraries at runtime.
16430       ;;
16431     sysv4*MP*)
16432       if test -d /usr/nec; then
16433         lt_prog_compiler_pic_CXX=-Kconform_pic
16434       fi
16435       ;;
16436     hpux*)
16437       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16438       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16439       # sets the default TLS model and affects inlining.
16440       case $host_cpu in
16441       hppa*64*)
16442         ;;
16443       *)
16444         lt_prog_compiler_pic_CXX='-fPIC'
16445         ;;
16446       esac
16447       ;;
16448     *qnx* | *nto*)
16449       # QNX uses GNU C++, but need to define -shared option too, otherwise
16450       # it will coredump.
16451       lt_prog_compiler_pic_CXX='-fPIC -shared'
16452       ;;
16453     *)
16454       lt_prog_compiler_pic_CXX='-fPIC'
16455       ;;
16456     esac
16457   else
16458     case $host_os in
16459       aix[4-9]*)
16460         # All AIX code is PIC.
16461         if test ia64 = "$host_cpu"; then
16462           # AIX 5 now supports IA64 processor
16463           lt_prog_compiler_static_CXX='-Bstatic'
16464         else
16465           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16466         fi
16467         ;;
16468       chorus*)
16469         case $cc_basename in
16470         cxch68*)
16471           # Green Hills C++ Compiler
16472           # _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"
16473           ;;
16474         esac
16475         ;;
16476       mingw* | cygwin* | os2* | pw32* | cegcc*)
16477         # This hack is so that the source file can tell whether it is being
16478         # built for inclusion in a dll (and should export symbols for example).
16479         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16480         ;;
16481       dgux*)
16482         case $cc_basename in
16483           ec++*)
16484             lt_prog_compiler_pic_CXX='-KPIC'
16485             ;;
16486           ghcx*)
16487             # Green Hills C++ Compiler
16488             lt_prog_compiler_pic_CXX='-pic'
16489             ;;
16490           *)
16491             ;;
16492         esac
16493         ;;
16494       freebsd* | dragonfly*)
16495         # FreeBSD uses GNU C++
16496         ;;
16497       hpux9* | hpux10* | hpux11*)
16498         case $cc_basename in
16499           CC*)
16500             lt_prog_compiler_wl_CXX='-Wl,'
16501             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16502             if test ia64 != "$host_cpu"; then
16503               lt_prog_compiler_pic_CXX='+Z'
16504             fi
16505             ;;
16506           aCC*)
16507             lt_prog_compiler_wl_CXX='-Wl,'
16508             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16509             case $host_cpu in
16510             hppa*64*|ia64*)
16511               # +Z the default
16512               ;;
16513             *)
16514               lt_prog_compiler_pic_CXX='+Z'
16515               ;;
16516             esac
16517             ;;
16518           *)
16519             ;;
16520         esac
16521         ;;
16522       interix*)
16523         # This is c89, which is MS Visual C++ (no shared libs)
16524         # Anyone wants to do a port?
16525         ;;
16526       irix5* | irix6* | nonstopux*)
16527         case $cc_basename in
16528           CC*)
16529             lt_prog_compiler_wl_CXX='-Wl,'
16530             lt_prog_compiler_static_CXX='-non_shared'
16531             # CC pic flag -KPIC is the default.
16532             ;;
16533           *)
16534             ;;
16535         esac
16536         ;;
16537       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16538         case $cc_basename in
16539           KCC*)
16540             # KAI C++ Compiler
16541             lt_prog_compiler_wl_CXX='--backend -Wl,'
16542             lt_prog_compiler_pic_CXX='-fPIC'
16543             ;;
16544           ecpc* )
16545             # old Intel C++ for x86_64, which still supported -KPIC.
16546             lt_prog_compiler_wl_CXX='-Wl,'
16547             lt_prog_compiler_pic_CXX='-KPIC'
16548             lt_prog_compiler_static_CXX='-static'
16549             ;;
16550           icpc* )
16551             # Intel C++, used to be incompatible with GCC.
16552             # ICC 10 doesn't accept -KPIC any more.
16553             lt_prog_compiler_wl_CXX='-Wl,'
16554             lt_prog_compiler_pic_CXX='-fPIC'
16555             lt_prog_compiler_static_CXX='-static'
16556             ;;
16557           pgCC* | pgcpp*)
16558             # Portland Group C++ compiler
16559             lt_prog_compiler_wl_CXX='-Wl,'
16560             lt_prog_compiler_pic_CXX='-fpic'
16561             lt_prog_compiler_static_CXX='-Bstatic'
16562             ;;
16563           cxx*)
16564             # Compaq C++
16565             # Make sure the PIC flag is empty.  It appears that all Alpha
16566             # Linux and Compaq Tru64 Unix objects are PIC.
16567             lt_prog_compiler_pic_CXX=
16568             lt_prog_compiler_static_CXX='-non_shared'
16569             ;;
16570           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16571             # IBM XL 8.0, 9.0 on PPC and BlueGene
16572             lt_prog_compiler_wl_CXX='-Wl,'
16573             lt_prog_compiler_pic_CXX='-qpic'
16574             lt_prog_compiler_static_CXX='-qstaticlink'
16575             ;;
16576           *)
16577             case `$CC -V 2>&1 | sed 5q` in
16578             *Sun\ C*)
16579               # Sun C++ 5.9
16580               lt_prog_compiler_pic_CXX='-KPIC'
16581               lt_prog_compiler_static_CXX='-Bstatic'
16582               lt_prog_compiler_wl_CXX='-Qoption ld '
16583               ;;
16584             esac
16585             ;;
16586         esac
16587         ;;
16588       lynxos*)
16589         ;;
16590       m88k*)
16591         ;;
16592       mvs*)
16593         case $cc_basename in
16594           cxx*)
16595             lt_prog_compiler_pic_CXX='-W c,exportall'
16596             ;;
16597           *)
16598             ;;
16599         esac
16600         ;;
16601       netbsd*)
16602         ;;
16603       *qnx* | *nto*)
16604         # QNX uses GNU C++, but need to define -shared option too, otherwise
16605         # it will coredump.
16606         lt_prog_compiler_pic_CXX='-fPIC -shared'
16607         ;;
16608       osf3* | osf4* | osf5*)
16609         case $cc_basename in
16610           KCC*)
16611             lt_prog_compiler_wl_CXX='--backend -Wl,'
16612             ;;
16613           RCC*)
16614             # Rational C++ 2.4.1
16615             lt_prog_compiler_pic_CXX='-pic'
16616             ;;
16617           cxx*)
16618             # Digital/Compaq C++
16619             lt_prog_compiler_wl_CXX='-Wl,'
16620             # Make sure the PIC flag is empty.  It appears that all Alpha
16621             # Linux and Compaq Tru64 Unix objects are PIC.
16622             lt_prog_compiler_pic_CXX=
16623             lt_prog_compiler_static_CXX='-non_shared'
16624             ;;
16625           *)
16626             ;;
16627         esac
16628         ;;
16629       psos*)
16630         ;;
16631       solaris*)
16632         case $cc_basename in
16633           CC* | sunCC*)
16634             # Sun C++ 4.2, 5.x and Centerline C++
16635             lt_prog_compiler_pic_CXX='-KPIC'
16636             lt_prog_compiler_static_CXX='-Bstatic'
16637             lt_prog_compiler_wl_CXX='-Qoption ld '
16638             ;;
16639           gcx*)
16640             # Green Hills C++ Compiler
16641             lt_prog_compiler_pic_CXX='-PIC'
16642             ;;
16643           *)
16644             ;;
16645         esac
16646         ;;
16647       sunos4*)
16648         case $cc_basename in
16649           CC*)
16650             # Sun C++ 4.x
16651             lt_prog_compiler_pic_CXX='-pic'
16652             lt_prog_compiler_static_CXX='-Bstatic'
16653             ;;
16654           lcc*)
16655             # Lucid
16656             lt_prog_compiler_pic_CXX='-pic'
16657             ;;
16658           *)
16659             ;;
16660         esac
16661         ;;
16662       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16663         case $cc_basename in
16664           CC*)
16665             lt_prog_compiler_wl_CXX='-Wl,'
16666             lt_prog_compiler_pic_CXX='-KPIC'
16667             lt_prog_compiler_static_CXX='-Bstatic'
16668             ;;
16669         esac
16670         ;;
16671       tandem*)
16672         case $cc_basename in
16673           NCC*)
16674             # NonStop-UX NCC 3.20
16675             lt_prog_compiler_pic_CXX='-KPIC'
16676             ;;
16677           *)
16678             ;;
16679         esac
16680         ;;
16681       vxworks*)
16682         ;;
16683       *)
16684         lt_prog_compiler_can_build_shared_CXX=no
16685         ;;
16686     esac
16687   fi
16688
16689 case $host_os in
16690   # For platforms that do not support PIC, -DPIC is meaningless:
16691   *djgpp*)
16692     lt_prog_compiler_pic_CXX=
16693     ;;
16694   *)
16695     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16696     ;;
16697 esac
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16701 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16702   $as_echo_n "(cached) " >&6
16703 else
16704   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16705 fi
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16707 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16708 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16709
16710 #
16711 # Check to make sure the PIC flag actually works.
16712 #
16713 if test -n "$lt_prog_compiler_pic_CXX"; then
16714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16715 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16716 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16717   $as_echo_n "(cached) " >&6
16718 else
16719   lt_cv_prog_compiler_pic_works_CXX=no
16720    ac_outfile=conftest.$ac_objext
16721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16722    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16723    # Insert the option either (1) after the last *FLAGS variable, or
16724    # (2) before a word containing "conftest.", or (3) at the end.
16725    # Note that $ac_compile itself does not contain backslashes and begins
16726    # with a dollar sign (not a hyphen), so the echo should work correctly.
16727    # The option is referenced via a variable to avoid confusing sed.
16728    lt_compile=`echo "$ac_compile" | $SED \
16729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16731    -e 's:$: $lt_compiler_flag:'`
16732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16733    (eval "$lt_compile" 2>conftest.err)
16734    ac_status=$?
16735    cat conftest.err >&5
16736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737    if (exit $ac_status) && test -s "$ac_outfile"; then
16738      # The compiler can only warn and ignore the option if not recognized
16739      # So say no if there are warnings other than the usual output.
16740      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16741      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16743        lt_cv_prog_compiler_pic_works_CXX=yes
16744      fi
16745    fi
16746    $RM conftest*
16747
16748 fi
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16750 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16751
16752 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16753     case $lt_prog_compiler_pic_CXX in
16754      "" | " "*) ;;
16755      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16756      esac
16757 else
16758     lt_prog_compiler_pic_CXX=
16759      lt_prog_compiler_can_build_shared_CXX=no
16760 fi
16761
16762 fi
16763
16764
16765
16766
16767
16768 #
16769 # Check to make sure the static flag actually works.
16770 #
16771 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16773 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16774 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16775   $as_echo_n "(cached) " >&6
16776 else
16777   lt_cv_prog_compiler_static_works_CXX=no
16778    save_LDFLAGS=$LDFLAGS
16779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16780    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16782      # The linker can only warn and ignore the option if not recognized
16783      # So say no if there are warnings
16784      if test -s conftest.err; then
16785        # Append any errors to the config.log.
16786        cat conftest.err 1>&5
16787        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16789        if diff conftest.exp conftest.er2 >/dev/null; then
16790          lt_cv_prog_compiler_static_works_CXX=yes
16791        fi
16792      else
16793        lt_cv_prog_compiler_static_works_CXX=yes
16794      fi
16795    fi
16796    $RM -r conftest*
16797    LDFLAGS=$save_LDFLAGS
16798
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16801 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16802
16803 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16804     :
16805 else
16806     lt_prog_compiler_static_CXX=
16807 fi
16808
16809
16810
16811
16812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16814 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16815   $as_echo_n "(cached) " >&6
16816 else
16817   lt_cv_prog_compiler_c_o_CXX=no
16818    $RM -r conftest 2>/dev/null
16819    mkdir conftest
16820    cd conftest
16821    mkdir out
16822    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16823
16824    lt_compiler_flag="-o out/conftest2.$ac_objext"
16825    # Insert the option either (1) after the last *FLAGS variable, or
16826    # (2) before a word containing "conftest.", or (3) at the end.
16827    # Note that $ac_compile itself does not contain backslashes and begins
16828    # with a dollar sign (not a hyphen), so the echo should work correctly.
16829    lt_compile=`echo "$ac_compile" | $SED \
16830    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16832    -e 's:$: $lt_compiler_flag:'`
16833    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16834    (eval "$lt_compile" 2>out/conftest.err)
16835    ac_status=$?
16836    cat out/conftest.err >&5
16837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16839    then
16840      # The compiler can only warn and ignore the option if not recognized
16841      # So say no if there are warnings
16842      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16843      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16844      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16845        lt_cv_prog_compiler_c_o_CXX=yes
16846      fi
16847    fi
16848    chmod u+w . 2>&5
16849    $RM conftest*
16850    # SGI C++ compiler will create directory out/ii_files/ for
16851    # template instantiation
16852    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16853    $RM out/* && rmdir out
16854    cd ..
16855    $RM -r conftest
16856    $RM conftest*
16857
16858 fi
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16860 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16861
16862
16863
16864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16865 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16866 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16867   $as_echo_n "(cached) " >&6
16868 else
16869   lt_cv_prog_compiler_c_o_CXX=no
16870    $RM -r conftest 2>/dev/null
16871    mkdir conftest
16872    cd conftest
16873    mkdir out
16874    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16875
16876    lt_compiler_flag="-o out/conftest2.$ac_objext"
16877    # Insert the option either (1) after the last *FLAGS variable, or
16878    # (2) before a word containing "conftest.", or (3) at the end.
16879    # Note that $ac_compile itself does not contain backslashes and begins
16880    # with a dollar sign (not a hyphen), so the echo should work correctly.
16881    lt_compile=`echo "$ac_compile" | $SED \
16882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16884    -e 's:$: $lt_compiler_flag:'`
16885    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16886    (eval "$lt_compile" 2>out/conftest.err)
16887    ac_status=$?
16888    cat out/conftest.err >&5
16889    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16891    then
16892      # The compiler can only warn and ignore the option if not recognized
16893      # So say no if there are warnings
16894      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16895      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16896      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16897        lt_cv_prog_compiler_c_o_CXX=yes
16898      fi
16899    fi
16900    chmod u+w . 2>&5
16901    $RM conftest*
16902    # SGI C++ compiler will create directory out/ii_files/ for
16903    # template instantiation
16904    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16905    $RM out/* && rmdir out
16906    cd ..
16907    $RM -r conftest
16908    $RM conftest*
16909
16910 fi
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16912 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16913
16914
16915
16916
16917 hard_links=nottested
16918 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16919   # do not overwrite the value of need_locks provided by the user
16920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16921 $as_echo_n "checking if we can lock with hard links... " >&6; }
16922   hard_links=yes
16923   $RM conftest*
16924   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16925   touch conftest.a
16926   ln conftest.a conftest.b 2>&5 || hard_links=no
16927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16929 $as_echo "$hard_links" >&6; }
16930   if test no = "$hard_links"; then
16931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16932 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16933     need_locks=warn
16934   fi
16935 else
16936   need_locks=no
16937 fi
16938
16939
16940
16941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16942 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16943
16944   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16945   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16946   case $host_os in
16947   aix[4-9]*)
16948     # If we're using GNU nm, then we don't want the "-C" option.
16949     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16950     # Without the "-l" option, or with the "-B" option, AIX nm treats
16951     # weak defined symbols like other global defined symbols, whereas
16952     # GNU nm marks them as "W".
16953     # While the 'weak' keyword is ignored in the Export File, we need
16954     # it in the Import File for the 'aix-soname' feature, so we have
16955     # to replace the "-B" option with "-P" for AIX nm.
16956     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16957       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'
16958     else
16959       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'
16960     fi
16961     ;;
16962   pw32*)
16963     export_symbols_cmds_CXX=$ltdll_cmds
16964     ;;
16965   cygwin* | mingw* | cegcc*)
16966     case $cc_basename in
16967     cl*)
16968       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16969       ;;
16970     *)
16971       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'
16972       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16973       ;;
16974     esac
16975     ;;
16976   *)
16977     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16978     ;;
16979   esac
16980
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16982 $as_echo "$ld_shlibs_CXX" >&6; }
16983 test no = "$ld_shlibs_CXX" && can_build_shared=no
16984
16985 with_gnu_ld_CXX=$with_gnu_ld
16986
16987
16988
16989
16990
16991
16992 #
16993 # Do we need to explicitly link libc?
16994 #
16995 case "x$archive_cmds_need_lc_CXX" in
16996 x|xyes)
16997   # Assume -lc should be added
16998   archive_cmds_need_lc_CXX=yes
16999
17000   if test yes,yes = "$GCC,$enable_shared"; then
17001     case $archive_cmds_CXX in
17002     *'~'*)
17003       # FIXME: we may have to deal with multi-command sequences.
17004       ;;
17005     '$CC '*)
17006       # Test whether the compiler implicitly links with -lc since on some
17007       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17008       # to ld, don't add -lc before -lgcc.
17009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17011 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17012   $as_echo_n "(cached) " >&6
17013 else
17014   $RM conftest*
17015         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17016
17017         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17018   (eval $ac_compile) 2>&5
17019   ac_status=$?
17020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021   test $ac_status = 0; } 2>conftest.err; then
17022           soname=conftest
17023           lib=conftest
17024           libobjs=conftest.$ac_objext
17025           deplibs=
17026           wl=$lt_prog_compiler_wl_CXX
17027           pic_flag=$lt_prog_compiler_pic_CXX
17028           compiler_flags=-v
17029           linker_flags=-v
17030           verstring=
17031           output_objdir=.
17032           libname=conftest
17033           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17034           allow_undefined_flag_CXX=
17035           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17036   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17037   ac_status=$?
17038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039   test $ac_status = 0; }
17040           then
17041             lt_cv_archive_cmds_need_lc_CXX=no
17042           else
17043             lt_cv_archive_cmds_need_lc_CXX=yes
17044           fi
17045           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17046         else
17047           cat conftest.err 1>&5
17048         fi
17049         $RM conftest*
17050
17051 fi
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17053 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17054       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17055       ;;
17056     esac
17057   fi
17058   ;;
17059 esac
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17123 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17124
17125 library_names_spec=
17126 libname_spec='lib$name'
17127 soname_spec=
17128 shrext_cmds=.so
17129 postinstall_cmds=
17130 postuninstall_cmds=
17131 finish_cmds=
17132 finish_eval=
17133 shlibpath_var=
17134 shlibpath_overrides_runpath=unknown
17135 version_type=none
17136 dynamic_linker="$host_os ld.so"
17137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17138 need_lib_prefix=unknown
17139 hardcode_into_libs=no
17140
17141 # when you set need_version to no, make sure it does not cause -set_version
17142 # flags to be left without arguments
17143 need_version=unknown
17144
17145
17146
17147 case $host_os in
17148 aix3*)
17149   version_type=linux # correct to gnu/linux during the next big refactor
17150   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17151   shlibpath_var=LIBPATH
17152
17153   # AIX 3 has no versioning support, so we append a major version to the name.
17154   soname_spec='$libname$release$shared_ext$major'
17155   ;;
17156
17157 aix[4-9]*)
17158   version_type=linux # correct to gnu/linux during the next big refactor
17159   need_lib_prefix=no
17160   need_version=no
17161   hardcode_into_libs=yes
17162   if test ia64 = "$host_cpu"; then
17163     # AIX 5 supports IA64
17164     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17165     shlibpath_var=LD_LIBRARY_PATH
17166   else
17167     # With GCC up to 2.95.x, collect2 would create an import file
17168     # for dependence libraries.  The import file would start with
17169     # the line '#! .'.  This would cause the generated library to
17170     # depend on '.', always an invalid library.  This was fixed in
17171     # development snapshots of GCC prior to 3.0.
17172     case $host_os in
17173       aix4 | aix4.[01] | aix4.[01].*)
17174       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17175            echo ' yes '
17176            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17177         :
17178       else
17179         can_build_shared=no
17180       fi
17181       ;;
17182     esac
17183     # Using Import Files as archive members, it is possible to support
17184     # filename-based versioning of shared library archives on AIX. While
17185     # this would work for both with and without runtime linking, it will
17186     # prevent static linking of such archives. So we do filename-based
17187     # shared library versioning with .so extension only, which is used
17188     # when both runtime linking and shared linking is enabled.
17189     # Unfortunately, runtime linking may impact performance, so we do
17190     # not want this to be the default eventually. Also, we use the
17191     # versioned .so libs for executables only if there is the -brtl
17192     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17193     # To allow for filename-based versioning support, we need to create
17194     # libNAME.so.V as an archive file, containing:
17195     # *) an Import File, referring to the versioned filename of the
17196     #    archive as well as the shared archive member, telling the
17197     #    bitwidth (32 or 64) of that shared object, and providing the
17198     #    list of exported symbols of that shared object, eventually
17199     #    decorated with the 'weak' keyword
17200     # *) the shared object with the F_LOADONLY flag set, to really avoid
17201     #    it being seen by the linker.
17202     # At run time we better use the real file rather than another symlink,
17203     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17204
17205     case $with_aix_soname,$aix_use_runtimelinking in
17206     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17207     # soname into executable. Probably we can add versioning support to
17208     # collect2, so additional links can be useful in future.
17209     aix,yes) # traditional libtool
17210       dynamic_linker='AIX unversionable lib.so'
17211       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17212       # instead of lib<name>.a to let people know that these are not
17213       # typical AIX shared libraries.
17214       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17215       ;;
17216     aix,no) # traditional AIX only
17217       dynamic_linker='AIX lib.a(lib.so.V)'
17218       # We preserve .a as extension for shared libraries through AIX4.2
17219       # and later when we are not doing run time linking.
17220       library_names_spec='$libname$release.a $libname.a'
17221       soname_spec='$libname$release$shared_ext$major'
17222       ;;
17223     svr4,*) # full svr4 only
17224       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17225       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17226       # We do not specify a path in Import Files, so LIBPATH fires.
17227       shlibpath_overrides_runpath=yes
17228       ;;
17229     *,yes) # both, prefer svr4
17230       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17231       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17232       # unpreferred sharedlib libNAME.a needs extra handling
17233       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"'
17234       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"'
17235       # We do not specify a path in Import Files, so LIBPATH fires.
17236       shlibpath_overrides_runpath=yes
17237       ;;
17238     *,no) # both, prefer aix
17239       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17240       library_names_spec='$libname$release.a $libname.a'
17241       soname_spec='$libname$release$shared_ext$major'
17242       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17243       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)'
17244       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"'
17245       ;;
17246     esac
17247     shlibpath_var=LIBPATH
17248   fi
17249   ;;
17250
17251 amigaos*)
17252   case $host_cpu in
17253   powerpc)
17254     # Since July 2007 AmigaOS4 officially supports .so libraries.
17255     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17256     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17257     ;;
17258   m68k)
17259     library_names_spec='$libname.ixlibrary $libname.a'
17260     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17261     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'
17262     ;;
17263   esac
17264   ;;
17265
17266 beos*)
17267   library_names_spec='$libname$shared_ext'
17268   dynamic_linker="$host_os ld.so"
17269   shlibpath_var=LIBRARY_PATH
17270   ;;
17271
17272 bsdi[45]*)
17273   version_type=linux # correct to gnu/linux during the next big refactor
17274   need_version=no
17275   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17276   soname_spec='$libname$release$shared_ext$major'
17277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17278   shlibpath_var=LD_LIBRARY_PATH
17279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17281   # the default ld.so.conf also contains /usr/contrib/lib and
17282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17283   # libtool to hard-code these into programs
17284   ;;
17285
17286 cygwin* | mingw* | pw32* | cegcc*)
17287   version_type=windows
17288   shrext_cmds=.dll
17289   need_version=no
17290   need_lib_prefix=no
17291
17292   case $GCC,$cc_basename in
17293   yes,*)
17294     # gcc
17295     library_names_spec='$libname.dll.a'
17296     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17297     postinstall_cmds='base_file=`basename \$file`~
17298       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17299       dldir=$destdir/`dirname \$dlpath`~
17300       test -d \$dldir || mkdir -p \$dldir~
17301       $install_prog $dir/$dlname \$dldir/$dlname~
17302       chmod a+x \$dldir/$dlname~
17303       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17304         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17305       fi'
17306     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17307       dlpath=$dir/\$dldll~
17308        $RM \$dlpath'
17309     shlibpath_overrides_runpath=yes
17310
17311     case $host_os in
17312     cygwin*)
17313       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17314       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17315
17316       ;;
17317     mingw* | cegcc*)
17318       # MinGW DLLs use traditional 'lib' prefix
17319       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17320       ;;
17321     pw32*)
17322       # pw32 DLLs use 'pw' prefix rather than 'lib'
17323       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17324       ;;
17325     esac
17326     dynamic_linker='Win32 ld.exe'
17327     ;;
17328
17329   *,cl*)
17330     # Native MSVC
17331     libname_spec='$name'
17332     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17333     library_names_spec='$libname.dll.lib'
17334
17335     case $build_os in
17336     mingw*)
17337       sys_lib_search_path_spec=
17338       lt_save_ifs=$IFS
17339       IFS=';'
17340       for lt_path in $LIB
17341       do
17342         IFS=$lt_save_ifs
17343         # Let DOS variable expansion print the short 8.3 style file name.
17344         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17345         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17346       done
17347       IFS=$lt_save_ifs
17348       # Convert to MSYS style.
17349       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17350       ;;
17351     cygwin*)
17352       # Convert to unix form, then to dos form, then back to unix form
17353       # but this time dos style (no spaces!) so that the unix form looks
17354       # like /cygdrive/c/PROGRA~1:/cygdr...
17355       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17356       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17357       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17358       ;;
17359     *)
17360       sys_lib_search_path_spec=$LIB
17361       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17362         # It is most probably a Windows format PATH.
17363         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17364       else
17365         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17366       fi
17367       # FIXME: find the short name or the path components, as spaces are
17368       # common. (e.g. "Program Files" -> "PROGRA~1")
17369       ;;
17370     esac
17371
17372     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17373     postinstall_cmds='base_file=`basename \$file`~
17374       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17375       dldir=$destdir/`dirname \$dlpath`~
17376       test -d \$dldir || mkdir -p \$dldir~
17377       $install_prog $dir/$dlname \$dldir/$dlname'
17378     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17379       dlpath=$dir/\$dldll~
17380        $RM \$dlpath'
17381     shlibpath_overrides_runpath=yes
17382     dynamic_linker='Win32 link.exe'
17383     ;;
17384
17385   *)
17386     # Assume MSVC wrapper
17387     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17388     dynamic_linker='Win32 ld.exe'
17389     ;;
17390   esac
17391   # FIXME: first we should search . and the directory the executable is in
17392   shlibpath_var=PATH
17393   ;;
17394
17395 darwin* | rhapsody*)
17396   dynamic_linker="$host_os dyld"
17397   version_type=darwin
17398   need_lib_prefix=no
17399   need_version=no
17400   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17401   soname_spec='$libname$release$major$shared_ext'
17402   shlibpath_overrides_runpath=yes
17403   shlibpath_var=DYLD_LIBRARY_PATH
17404   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17405
17406   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17407   ;;
17408
17409 dgux*)
17410   version_type=linux # correct to gnu/linux during the next big refactor
17411   need_lib_prefix=no
17412   need_version=no
17413   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17414   soname_spec='$libname$release$shared_ext$major'
17415   shlibpath_var=LD_LIBRARY_PATH
17416   ;;
17417
17418 freebsd* | dragonfly*)
17419   # DragonFly does not have aout.  When/if they implement a new
17420   # versioning mechanism, adjust this.
17421   if test -x /usr/bin/objformat; then
17422     objformat=`/usr/bin/objformat`
17423   else
17424     case $host_os in
17425     freebsd[23].*) objformat=aout ;;
17426     *) objformat=elf ;;
17427     esac
17428   fi
17429   version_type=freebsd-$objformat
17430   case $version_type in
17431     freebsd-elf*)
17432       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17433       soname_spec='$libname$release$shared_ext$major'
17434       need_version=no
17435       need_lib_prefix=no
17436       ;;
17437     freebsd-*)
17438       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17439       need_version=yes
17440       ;;
17441   esac
17442   shlibpath_var=LD_LIBRARY_PATH
17443   case $host_os in
17444   freebsd2.*)
17445     shlibpath_overrides_runpath=yes
17446     ;;
17447   freebsd3.[01]* | freebsdelf3.[01]*)
17448     shlibpath_overrides_runpath=yes
17449     hardcode_into_libs=yes
17450     ;;
17451   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17452   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17453     shlibpath_overrides_runpath=no
17454     hardcode_into_libs=yes
17455     ;;
17456   *) # from 4.6 on, and DragonFly
17457     shlibpath_overrides_runpath=yes
17458     hardcode_into_libs=yes
17459     ;;
17460   esac
17461   ;;
17462
17463 haiku*)
17464   version_type=linux # correct to gnu/linux during the next big refactor
17465   need_lib_prefix=no
17466   need_version=no
17467   dynamic_linker="$host_os runtime_loader"
17468   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469   soname_spec='$libname$release$shared_ext$major'
17470   shlibpath_var=LIBRARY_PATH
17471   shlibpath_overrides_runpath=no
17472   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17473   hardcode_into_libs=yes
17474   ;;
17475
17476 hpux9* | hpux10* | hpux11*)
17477   # Give a soname corresponding to the major version so that dld.sl refuses to
17478   # link against other versions.
17479   version_type=sunos
17480   need_lib_prefix=no
17481   need_version=no
17482   case $host_cpu in
17483   ia64*)
17484     shrext_cmds='.so'
17485     hardcode_into_libs=yes
17486     dynamic_linker="$host_os dld.so"
17487     shlibpath_var=LD_LIBRARY_PATH
17488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17489     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17490     soname_spec='$libname$release$shared_ext$major'
17491     if test 32 = "$HPUX_IA64_MODE"; then
17492       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17493       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17494     else
17495       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17496       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17497     fi
17498     ;;
17499   hppa*64*)
17500     shrext_cmds='.sl'
17501     hardcode_into_libs=yes
17502     dynamic_linker="$host_os dld.sl"
17503     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17505     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17506     soname_spec='$libname$release$shared_ext$major'
17507     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17509     ;;
17510   *)
17511     shrext_cmds='.sl'
17512     dynamic_linker="$host_os dld.sl"
17513     shlibpath_var=SHLIB_PATH
17514     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17515     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17516     soname_spec='$libname$release$shared_ext$major'
17517     ;;
17518   esac
17519   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17520   postinstall_cmds='chmod 555 $lib'
17521   # or fails outright, so override atomically:
17522   install_override_mode=555
17523   ;;
17524
17525 interix[3-9]*)
17526   version_type=linux # correct to gnu/linux during the next big refactor
17527   need_lib_prefix=no
17528   need_version=no
17529   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17530   soname_spec='$libname$release$shared_ext$major'
17531   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17532   shlibpath_var=LD_LIBRARY_PATH
17533   shlibpath_overrides_runpath=no
17534   hardcode_into_libs=yes
17535   ;;
17536
17537 irix5* | irix6* | nonstopux*)
17538   case $host_os in
17539     nonstopux*) version_type=nonstopux ;;
17540     *)
17541         if test yes = "$lt_cv_prog_gnu_ld"; then
17542                 version_type=linux # correct to gnu/linux during the next big refactor
17543         else
17544                 version_type=irix
17545         fi ;;
17546   esac
17547   need_lib_prefix=no
17548   need_version=no
17549   soname_spec='$libname$release$shared_ext$major'
17550   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17551   case $host_os in
17552   irix5* | nonstopux*)
17553     libsuff= shlibsuff=
17554     ;;
17555   *)
17556     case $LD in # libtool.m4 will add one of these switches to LD
17557     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17558       libsuff= shlibsuff= libmagic=32-bit;;
17559     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17560       libsuff=32 shlibsuff=N32 libmagic=N32;;
17561     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17562       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17563     *) libsuff= shlibsuff= libmagic=never-match;;
17564     esac
17565     ;;
17566   esac
17567   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17568   shlibpath_overrides_runpath=no
17569   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17570   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17571   hardcode_into_libs=yes
17572   ;;
17573
17574 # No shared lib support for Linux oldld, aout, or coff.
17575 linux*oldld* | linux*aout* | linux*coff*)
17576   dynamic_linker=no
17577   ;;
17578
17579 linux*android*)
17580   version_type=none # Android doesn't support versioned libraries.
17581   need_lib_prefix=no
17582   need_version=no
17583   library_names_spec='$libname$release$shared_ext'
17584   soname_spec='$libname$release$shared_ext'
17585   finish_cmds=
17586   shlibpath_var=LD_LIBRARY_PATH
17587   shlibpath_overrides_runpath=yes
17588
17589   # This implies no fast_install, which is unacceptable.
17590   # Some rework will be needed to allow for fast_install
17591   # before this can be enabled.
17592   hardcode_into_libs=yes
17593
17594   dynamic_linker='Android linker'
17595   # Don't embed -rpath directories since the linker doesn't support them.
17596   hardcode_libdir_flag_spec_CXX='-L$libdir'
17597   ;;
17598
17599 # This must be glibc/ELF.
17600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17601   version_type=linux # correct to gnu/linux during the next big refactor
17602   need_lib_prefix=no
17603   need_version=no
17604   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17605   soname_spec='$libname$release$shared_ext$major'
17606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17607   shlibpath_var=LD_LIBRARY_PATH
17608   shlibpath_overrides_runpath=no
17609
17610   # Some binutils ld are patched to set DT_RUNPATH
17611   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17612   $as_echo_n "(cached) " >&6
17613 else
17614   lt_cv_shlibpath_overrides_runpath=no
17615     save_LDFLAGS=$LDFLAGS
17616     save_libdir=$libdir
17617     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17618          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h.  */
17621
17622 int
17623 main ()
17624 {
17625
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 if ac_fn_cxx_try_link "$LINENO"; then :
17631   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17632   lt_cv_shlibpath_overrides_runpath=yes
17633 fi
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext \
17636     conftest$ac_exeext conftest.$ac_ext
17637     LDFLAGS=$save_LDFLAGS
17638     libdir=$save_libdir
17639
17640 fi
17641
17642   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17643
17644   # This implies no fast_install, which is unacceptable.
17645   # Some rework will be needed to allow for fast_install
17646   # before this can be enabled.
17647   hardcode_into_libs=yes
17648
17649   # Add ABI-specific directories to the system library path.
17650   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17651
17652   # Ideally, we could use ldconfig to report *all* directores which are
17653   # searched for libraries, however this is still not possible.  Aside from not
17654   # being certain /sbin/ldconfig is available, command
17655   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17656   # even though it is searched at run-time.  Try to do the best guess by
17657   # appending ld.so.conf contents (and includes) to the search path.
17658   if test -f /etc/ld.so.conf; then
17659     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' ' '`
17660     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17661   fi
17662
17663   # We used to test for /lib/ld.so.1 and disable shared libraries on
17664   # powerpc, because MkLinux only supported shared libraries with the
17665   # GNU dynamic linker.  Since this was broken with cross compilers,
17666   # most powerpc-linux boxes support dynamic linking these days and
17667   # people can always --disable-shared, the test was removed, and we
17668   # assume the GNU/Linux dynamic linker is in use.
17669   dynamic_linker='GNU/Linux ld.so'
17670   ;;
17671
17672 netbsd*)
17673   version_type=sunos
17674   need_lib_prefix=no
17675   need_version=no
17676   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17677     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17678     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17679     dynamic_linker='NetBSD (a.out) ld.so'
17680   else
17681     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17682     soname_spec='$libname$release$shared_ext$major'
17683     dynamic_linker='NetBSD ld.elf_so'
17684   fi
17685   shlibpath_var=LD_LIBRARY_PATH
17686   shlibpath_overrides_runpath=yes
17687   hardcode_into_libs=yes
17688   ;;
17689
17690 newsos6)
17691   version_type=linux # correct to gnu/linux during the next big refactor
17692   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   shlibpath_overrides_runpath=yes
17695   ;;
17696
17697 *nto* | *qnx*)
17698   version_type=qnx
17699   need_lib_prefix=no
17700   need_version=no
17701   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17702   soname_spec='$libname$release$shared_ext$major'
17703   shlibpath_var=LD_LIBRARY_PATH
17704   shlibpath_overrides_runpath=no
17705   hardcode_into_libs=yes
17706   dynamic_linker='ldqnx.so'
17707   ;;
17708
17709 openbsd* | bitrig*)
17710   version_type=sunos
17711   sys_lib_dlsearch_path_spec=/usr/lib
17712   need_lib_prefix=no
17713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17714     need_version=no
17715   else
17716     need_version=yes
17717   fi
17718   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17720   shlibpath_var=LD_LIBRARY_PATH
17721   shlibpath_overrides_runpath=yes
17722   ;;
17723
17724 os2*)
17725   libname_spec='$name'
17726   version_type=windows
17727   shrext_cmds=.dll
17728   need_version=no
17729   need_lib_prefix=no
17730   # OS/2 can only load a DLL with a base name of 8 characters or less.
17731   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17732     v=$($ECHO $release$versuffix | tr -d .-);
17733     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17734     $ECHO $n$v`$shared_ext'
17735   library_names_spec='${libname}_dll.$libext'
17736   dynamic_linker='OS/2 ld.exe'
17737   shlibpath_var=BEGINLIBPATH
17738   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17739   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17740   postinstall_cmds='base_file=`basename \$file`~
17741     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17742     dldir=$destdir/`dirname \$dlpath`~
17743     test -d \$dldir || mkdir -p \$dldir~
17744     $install_prog $dir/$dlname \$dldir/$dlname~
17745     chmod a+x \$dldir/$dlname~
17746     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17747       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17748     fi'
17749   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17750     dlpath=$dir/\$dldll~
17751     $RM \$dlpath'
17752   ;;
17753
17754 osf3* | osf4* | osf5*)
17755   version_type=osf
17756   need_lib_prefix=no
17757   need_version=no
17758   soname_spec='$libname$release$shared_ext$major'
17759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17760   shlibpath_var=LD_LIBRARY_PATH
17761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17762   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17763   ;;
17764
17765 rdos*)
17766   dynamic_linker=no
17767   ;;
17768
17769 solaris*)
17770   version_type=linux # correct to gnu/linux during the next big refactor
17771   need_lib_prefix=no
17772   need_version=no
17773   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774   soname_spec='$libname$release$shared_ext$major'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   shlibpath_overrides_runpath=yes
17777   hardcode_into_libs=yes
17778   # ldd complains unless libraries are executable
17779   postinstall_cmds='chmod +x $lib'
17780   ;;
17781
17782 sunos4*)
17783   version_type=sunos
17784   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17786   shlibpath_var=LD_LIBRARY_PATH
17787   shlibpath_overrides_runpath=yes
17788   if test yes = "$with_gnu_ld"; then
17789     need_lib_prefix=no
17790   fi
17791   need_version=yes
17792   ;;
17793
17794 sysv4 | sysv4.3*)
17795   version_type=linux # correct to gnu/linux during the next big refactor
17796   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17797   soname_spec='$libname$release$shared_ext$major'
17798   shlibpath_var=LD_LIBRARY_PATH
17799   case $host_vendor in
17800     sni)
17801       shlibpath_overrides_runpath=no
17802       need_lib_prefix=no
17803       runpath_var=LD_RUN_PATH
17804       ;;
17805     siemens)
17806       need_lib_prefix=no
17807       ;;
17808     motorola)
17809       need_lib_prefix=no
17810       need_version=no
17811       shlibpath_overrides_runpath=no
17812       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17813       ;;
17814   esac
17815   ;;
17816
17817 sysv4*MP*)
17818   if test -d /usr/nec; then
17819     version_type=linux # correct to gnu/linux during the next big refactor
17820     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17821     soname_spec='$libname$shared_ext.$major'
17822     shlibpath_var=LD_LIBRARY_PATH
17823   fi
17824   ;;
17825
17826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17827   version_type=sco
17828   need_lib_prefix=no
17829   need_version=no
17830   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17831   soname_spec='$libname$release$shared_ext$major'
17832   shlibpath_var=LD_LIBRARY_PATH
17833   shlibpath_overrides_runpath=yes
17834   hardcode_into_libs=yes
17835   if test yes = "$with_gnu_ld"; then
17836     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17837   else
17838     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17839     case $host_os in
17840       sco3.2v5*)
17841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17842         ;;
17843     esac
17844   fi
17845   sys_lib_dlsearch_path_spec='/usr/lib'
17846   ;;
17847
17848 tpf*)
17849   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17850   version_type=linux # correct to gnu/linux during the next big refactor
17851   need_lib_prefix=no
17852   need_version=no
17853   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17854   shlibpath_var=LD_LIBRARY_PATH
17855   shlibpath_overrides_runpath=no
17856   hardcode_into_libs=yes
17857   ;;
17858
17859 uts4*)
17860   version_type=linux # correct to gnu/linux during the next big refactor
17861   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17862   soname_spec='$libname$release$shared_ext$major'
17863   shlibpath_var=LD_LIBRARY_PATH
17864   ;;
17865
17866 *)
17867   dynamic_linker=no
17868   ;;
17869 esac
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17871 $as_echo "$dynamic_linker" >&6; }
17872 test no = "$dynamic_linker" && can_build_shared=no
17873
17874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17875 if test yes = "$GCC"; then
17876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17877 fi
17878
17879 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17880   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17881 fi
17882
17883 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17884   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17885 fi
17886
17887 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17888 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17889
17890 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17891 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17892
17893 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17894 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17937 hardcode_action_CXX=
17938 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17939    test -n "$runpath_var_CXX" ||
17940    test yes = "$hardcode_automatic_CXX"; then
17941
17942   # We can hardcode non-existent directories.
17943   if test no != "$hardcode_direct_CXX" &&
17944      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17945      # have to relink, otherwise we might link with an installed library
17946      # when we should be linking with a yet-to-be-installed one
17947      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17948      test no != "$hardcode_minus_L_CXX"; then
17949     # Linking always hardcodes the temporary library directory.
17950     hardcode_action_CXX=relink
17951   else
17952     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17953     hardcode_action_CXX=immediate
17954   fi
17955 else
17956   # We cannot hardcode anything, or else we can only hardcode existing
17957   # directories.
17958   hardcode_action_CXX=unsupported
17959 fi
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17961 $as_echo "$hardcode_action_CXX" >&6; }
17962
17963 if test relink = "$hardcode_action_CXX" ||
17964    test yes = "$inherit_rpath_CXX"; then
17965   # Fast installation is not supported
17966   enable_fast_install=no
17967 elif test yes = "$shlibpath_overrides_runpath" ||
17968      test no = "$enable_shared"; then
17969   # Fast installation is not necessary
17970   enable_fast_install=needless
17971 fi
17972
17973
17974
17975
17976
17977
17978
17979   fi # test -n "$compiler"
17980
17981   CC=$lt_save_CC
17982   CFLAGS=$lt_save_CFLAGS
17983   LDCXX=$LD
17984   LD=$lt_save_LD
17985   GCC=$lt_save_GCC
17986   with_gnu_ld=$lt_save_with_gnu_ld
17987   lt_cv_path_LDCXX=$lt_cv_path_LD
17988   lt_cv_path_LD=$lt_save_path_LD
17989   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17990   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17991 fi # test yes != "$_lt_caught_CXX_error"
17992
17993 ac_ext=c
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17998
17999
18000   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=false
18001   ac_ext=cpp
18002 ac_cpp='$CXXCPP $CPPFLAGS'
18003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18006   ac_success=no
18007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18008 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18009 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18010   $as_echo_n "(cached) " >&6
18011 else
18012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h.  */
18014
18015
18016 // If the compiler admits that it is not ready for C++11, why torture it?
18017 // Hopefully, this will speed up the test.
18018
18019 #ifndef __cplusplus
18020
18021 #error "This is not a C++ compiler"
18022
18023 #elif __cplusplus < 201103L
18024
18025 #error "This is not a C++11 compiler"
18026
18027 #else
18028
18029 namespace cxx11
18030 {
18031
18032   namespace test_static_assert
18033   {
18034
18035     template <typename T>
18036     struct check
18037     {
18038       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18039     };
18040
18041   }
18042
18043   namespace test_final_override
18044   {
18045
18046     struct Base
18047     {
18048       virtual void f() {}
18049     };
18050
18051     struct Derived : public Base
18052     {
18053       virtual void f() override {}
18054     };
18055
18056   }
18057
18058   namespace test_double_right_angle_brackets
18059   {
18060
18061     template < typename T >
18062     struct check {};
18063
18064     typedef check<void> single_type;
18065     typedef check<check<void>> double_type;
18066     typedef check<check<check<void>>> triple_type;
18067     typedef check<check<check<check<void>>>> quadruple_type;
18068
18069   }
18070
18071   namespace test_decltype
18072   {
18073
18074     int
18075     f()
18076     {
18077       int a = 1;
18078       decltype(a) b = 2;
18079       return a + b;
18080     }
18081
18082   }
18083
18084   namespace test_type_deduction
18085   {
18086
18087     template < typename T1, typename T2 >
18088     struct is_same
18089     {
18090       static const bool value = false;
18091     };
18092
18093     template < typename T >
18094     struct is_same<T, T>
18095     {
18096       static const bool value = true;
18097     };
18098
18099     template < typename T1, typename T2 >
18100     auto
18101     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18102     {
18103       return a1 + a2;
18104     }
18105
18106     int
18107     test(const int c, volatile int v)
18108     {
18109       static_assert(is_same<int, decltype(0)>::value == true, "");
18110       static_assert(is_same<int, decltype(c)>::value == false, "");
18111       static_assert(is_same<int, decltype(v)>::value == false, "");
18112       auto ac = c;
18113       auto av = v;
18114       auto sumi = ac + av + 'x';
18115       auto sumf = ac + av + 1.0;
18116       static_assert(is_same<int, decltype(ac)>::value == true, "");
18117       static_assert(is_same<int, decltype(av)>::value == true, "");
18118       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18119       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18120       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18121       return (sumf > 0.0) ? sumi : add(c, v);
18122     }
18123
18124   }
18125
18126   namespace test_noexcept
18127   {
18128
18129     int f() { return 0; }
18130     int g() noexcept { return 0; }
18131
18132     static_assert(noexcept(f()) == false, "");
18133     static_assert(noexcept(g()) == true, "");
18134
18135   }
18136
18137   namespace test_constexpr
18138   {
18139
18140     template < typename CharT >
18141     unsigned long constexpr
18142     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18143     {
18144       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18145     }
18146
18147     template < typename CharT >
18148     unsigned long constexpr
18149     strlen_c(const CharT *const s) noexcept
18150     {
18151       return strlen_c_r(s, 0UL);
18152     }
18153
18154     static_assert(strlen_c("") == 0UL, "");
18155     static_assert(strlen_c("1") == 1UL, "");
18156     static_assert(strlen_c("example") == 7UL, "");
18157     static_assert(strlen_c("another\0example") == 7UL, "");
18158
18159   }
18160
18161   namespace test_rvalue_references
18162   {
18163
18164     template < int N >
18165     struct answer
18166     {
18167       static constexpr int value = N;
18168     };
18169
18170     answer<1> f(int&)       { return answer<1>(); }
18171     answer<2> f(const int&) { return answer<2>(); }
18172     answer<3> f(int&&)      { return answer<3>(); }
18173
18174     void
18175     test()
18176     {
18177       int i = 0;
18178       const int c = 0;
18179       static_assert(decltype(f(i))::value == 1, "");
18180       static_assert(decltype(f(c))::value == 2, "");
18181       static_assert(decltype(f(0))::value == 3, "");
18182     }
18183
18184   }
18185
18186   namespace test_uniform_initialization
18187   {
18188
18189     struct test
18190     {
18191       static const int zero {};
18192       static const int one {1};
18193     };
18194
18195     static_assert(test::zero == 0, "");
18196     static_assert(test::one == 1, "");
18197
18198   }
18199
18200   namespace test_lambdas
18201   {
18202
18203     void
18204     test1()
18205     {
18206       auto lambda1 = [](){};
18207       auto lambda2 = lambda1;
18208       lambda1();
18209       lambda2();
18210     }
18211
18212     int
18213     test2()
18214     {
18215       auto a = [](int i, int j){ return i + j; }(1, 2);
18216       auto b = []() -> int { return '0'; }();
18217       auto c = [=](){ return a + b; }();
18218       auto d = [&](){ return c; }();
18219       auto e = [a, &b](int x) mutable {
18220         const auto identity = [](int y){ return y; };
18221         for (auto i = 0; i < a; ++i)
18222           a += b--;
18223         return x + identity(a + b);
18224       }(0);
18225       return a + b + c + d + e;
18226     }
18227
18228     int
18229     test3()
18230     {
18231       const auto nullary = [](){ return 0; };
18232       const auto unary = [](int x){ return x; };
18233       using nullary_t = decltype(nullary);
18234       using unary_t = decltype(unary);
18235       const auto higher1st = [](nullary_t f){ return f(); };
18236       const auto higher2nd = [unary](nullary_t f1){
18237         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18238       };
18239       return higher1st(nullary) + higher2nd(nullary)(unary);
18240     }
18241
18242   }
18243
18244   namespace test_variadic_templates
18245   {
18246
18247     template <int...>
18248     struct sum;
18249
18250     template <int N0, int... N1toN>
18251     struct sum<N0, N1toN...>
18252     {
18253       static constexpr auto value = N0 + sum<N1toN...>::value;
18254     };
18255
18256     template <>
18257     struct sum<>
18258     {
18259       static constexpr auto value = 0;
18260     };
18261
18262     static_assert(sum<>::value == 0, "");
18263     static_assert(sum<1>::value == 1, "");
18264     static_assert(sum<23>::value == 23, "");
18265     static_assert(sum<1, 2>::value == 3, "");
18266     static_assert(sum<5, 5, 11>::value == 21, "");
18267     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18268
18269   }
18270
18271   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18272   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18273   // because of this.
18274   namespace test_template_alias_sfinae
18275   {
18276
18277     struct foo {};
18278
18279     template<typename T>
18280     using member = typename T::member_type;
18281
18282     template<typename T>
18283     void func(...) {}
18284
18285     template<typename T>
18286     void func(member<T>*) {}
18287
18288     void test();
18289
18290     void test() { func<foo>(0); }
18291
18292   }
18293
18294 }  // namespace cxx11
18295
18296 #endif  // __cplusplus >= 201103L
18297
18298
18299
18300 _ACEOF
18301 if ac_fn_cxx_try_compile "$LINENO"; then :
18302   ax_cv_cxx_compile_cxx11=yes
18303 else
18304   ax_cv_cxx_compile_cxx11=no
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307 fi
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18309 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18310   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18311     ac_success=yes
18312   fi
18313
18314     if test x$ac_success = xno; then
18315     for alternative in ${ax_cxx_compile_alternatives}; do
18316       switch="-std=gnu++${alternative}"
18317       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18318       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18319 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18320 if eval \${$cachevar+:} false; then :
18321   $as_echo_n "(cached) " >&6
18322 else
18323   ac_save_CXX="$CXX"
18324          CXX="$CXX $switch"
18325          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h.  */
18327
18328
18329 // If the compiler admits that it is not ready for C++11, why torture it?
18330 // Hopefully, this will speed up the test.
18331
18332 #ifndef __cplusplus
18333
18334 #error "This is not a C++ compiler"
18335
18336 #elif __cplusplus < 201103L
18337
18338 #error "This is not a C++11 compiler"
18339
18340 #else
18341
18342 namespace cxx11
18343 {
18344
18345   namespace test_static_assert
18346   {
18347
18348     template <typename T>
18349     struct check
18350     {
18351       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18352     };
18353
18354   }
18355
18356   namespace test_final_override
18357   {
18358
18359     struct Base
18360     {
18361       virtual void f() {}
18362     };
18363
18364     struct Derived : public Base
18365     {
18366       virtual void f() override {}
18367     };
18368
18369   }
18370
18371   namespace test_double_right_angle_brackets
18372   {
18373
18374     template < typename T >
18375     struct check {};
18376
18377     typedef check<void> single_type;
18378     typedef check<check<void>> double_type;
18379     typedef check<check<check<void>>> triple_type;
18380     typedef check<check<check<check<void>>>> quadruple_type;
18381
18382   }
18383
18384   namespace test_decltype
18385   {
18386
18387     int
18388     f()
18389     {
18390       int a = 1;
18391       decltype(a) b = 2;
18392       return a + b;
18393     }
18394
18395   }
18396
18397   namespace test_type_deduction
18398   {
18399
18400     template < typename T1, typename T2 >
18401     struct is_same
18402     {
18403       static const bool value = false;
18404     };
18405
18406     template < typename T >
18407     struct is_same<T, T>
18408     {
18409       static const bool value = true;
18410     };
18411
18412     template < typename T1, typename T2 >
18413     auto
18414     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18415     {
18416       return a1 + a2;
18417     }
18418
18419     int
18420     test(const int c, volatile int v)
18421     {
18422       static_assert(is_same<int, decltype(0)>::value == true, "");
18423       static_assert(is_same<int, decltype(c)>::value == false, "");
18424       static_assert(is_same<int, decltype(v)>::value == false, "");
18425       auto ac = c;
18426       auto av = v;
18427       auto sumi = ac + av + 'x';
18428       auto sumf = ac + av + 1.0;
18429       static_assert(is_same<int, decltype(ac)>::value == true, "");
18430       static_assert(is_same<int, decltype(av)>::value == true, "");
18431       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18432       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18433       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18434       return (sumf > 0.0) ? sumi : add(c, v);
18435     }
18436
18437   }
18438
18439   namespace test_noexcept
18440   {
18441
18442     int f() { return 0; }
18443     int g() noexcept { return 0; }
18444
18445     static_assert(noexcept(f()) == false, "");
18446     static_assert(noexcept(g()) == true, "");
18447
18448   }
18449
18450   namespace test_constexpr
18451   {
18452
18453     template < typename CharT >
18454     unsigned long constexpr
18455     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18456     {
18457       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18458     }
18459
18460     template < typename CharT >
18461     unsigned long constexpr
18462     strlen_c(const CharT *const s) noexcept
18463     {
18464       return strlen_c_r(s, 0UL);
18465     }
18466
18467     static_assert(strlen_c("") == 0UL, "");
18468     static_assert(strlen_c("1") == 1UL, "");
18469     static_assert(strlen_c("example") == 7UL, "");
18470     static_assert(strlen_c("another\0example") == 7UL, "");
18471
18472   }
18473
18474   namespace test_rvalue_references
18475   {
18476
18477     template < int N >
18478     struct answer
18479     {
18480       static constexpr int value = N;
18481     };
18482
18483     answer<1> f(int&)       { return answer<1>(); }
18484     answer<2> f(const int&) { return answer<2>(); }
18485     answer<3> f(int&&)      { return answer<3>(); }
18486
18487     void
18488     test()
18489     {
18490       int i = 0;
18491       const int c = 0;
18492       static_assert(decltype(f(i))::value == 1, "");
18493       static_assert(decltype(f(c))::value == 2, "");
18494       static_assert(decltype(f(0))::value == 3, "");
18495     }
18496
18497   }
18498
18499   namespace test_uniform_initialization
18500   {
18501
18502     struct test
18503     {
18504       static const int zero {};
18505       static const int one {1};
18506     };
18507
18508     static_assert(test::zero == 0, "");
18509     static_assert(test::one == 1, "");
18510
18511   }
18512
18513   namespace test_lambdas
18514   {
18515
18516     void
18517     test1()
18518     {
18519       auto lambda1 = [](){};
18520       auto lambda2 = lambda1;
18521       lambda1();
18522       lambda2();
18523     }
18524
18525     int
18526     test2()
18527     {
18528       auto a = [](int i, int j){ return i + j; }(1, 2);
18529       auto b = []() -> int { return '0'; }();
18530       auto c = [=](){ return a + b; }();
18531       auto d = [&](){ return c; }();
18532       auto e = [a, &b](int x) mutable {
18533         const auto identity = [](int y){ return y; };
18534         for (auto i = 0; i < a; ++i)
18535           a += b--;
18536         return x + identity(a + b);
18537       }(0);
18538       return a + b + c + d + e;
18539     }
18540
18541     int
18542     test3()
18543     {
18544       const auto nullary = [](){ return 0; };
18545       const auto unary = [](int x){ return x; };
18546       using nullary_t = decltype(nullary);
18547       using unary_t = decltype(unary);
18548       const auto higher1st = [](nullary_t f){ return f(); };
18549       const auto higher2nd = [unary](nullary_t f1){
18550         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18551       };
18552       return higher1st(nullary) + higher2nd(nullary)(unary);
18553     }
18554
18555   }
18556
18557   namespace test_variadic_templates
18558   {
18559
18560     template <int...>
18561     struct sum;
18562
18563     template <int N0, int... N1toN>
18564     struct sum<N0, N1toN...>
18565     {
18566       static constexpr auto value = N0 + sum<N1toN...>::value;
18567     };
18568
18569     template <>
18570     struct sum<>
18571     {
18572       static constexpr auto value = 0;
18573     };
18574
18575     static_assert(sum<>::value == 0, "");
18576     static_assert(sum<1>::value == 1, "");
18577     static_assert(sum<23>::value == 23, "");
18578     static_assert(sum<1, 2>::value == 3, "");
18579     static_assert(sum<5, 5, 11>::value == 21, "");
18580     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18581
18582   }
18583
18584   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18585   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18586   // because of this.
18587   namespace test_template_alias_sfinae
18588   {
18589
18590     struct foo {};
18591
18592     template<typename T>
18593     using member = typename T::member_type;
18594
18595     template<typename T>
18596     void func(...) {}
18597
18598     template<typename T>
18599     void func(member<T>*) {}
18600
18601     void test();
18602
18603     void test() { func<foo>(0); }
18604
18605   }
18606
18607 }  // namespace cxx11
18608
18609 #endif  // __cplusplus >= 201103L
18610
18611
18612
18613 _ACEOF
18614 if ac_fn_cxx_try_compile "$LINENO"; then :
18615   eval $cachevar=yes
18616 else
18617   eval $cachevar=no
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620          CXX="$ac_save_CXX"
18621 fi
18622 eval ac_res=\$$cachevar
18623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18624 $as_echo "$ac_res" >&6; }
18625       if eval test x\$$cachevar = xyes; then
18626         CXX="$CXX $switch"
18627         if test -n "$CXXCPP" ; then
18628           CXXCPP="$CXXCPP $switch"
18629         fi
18630         ac_success=yes
18631         break
18632       fi
18633     done
18634   fi
18635
18636     if test x$ac_success = xno; then
18637                 for alternative in ${ax_cxx_compile_alternatives}; do
18638       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18639         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18641 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18642 if eval \${$cachevar+:} false; then :
18643   $as_echo_n "(cached) " >&6
18644 else
18645   ac_save_CXX="$CXX"
18646            CXX="$CXX $switch"
18647            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h.  */
18649
18650
18651 // If the compiler admits that it is not ready for C++11, why torture it?
18652 // Hopefully, this will speed up the test.
18653
18654 #ifndef __cplusplus
18655
18656 #error "This is not a C++ compiler"
18657
18658 #elif __cplusplus < 201103L
18659
18660 #error "This is not a C++11 compiler"
18661
18662 #else
18663
18664 namespace cxx11
18665 {
18666
18667   namespace test_static_assert
18668   {
18669
18670     template <typename T>
18671     struct check
18672     {
18673       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18674     };
18675
18676   }
18677
18678   namespace test_final_override
18679   {
18680
18681     struct Base
18682     {
18683       virtual void f() {}
18684     };
18685
18686     struct Derived : public Base
18687     {
18688       virtual void f() override {}
18689     };
18690
18691   }
18692
18693   namespace test_double_right_angle_brackets
18694   {
18695
18696     template < typename T >
18697     struct check {};
18698
18699     typedef check<void> single_type;
18700     typedef check<check<void>> double_type;
18701     typedef check<check<check<void>>> triple_type;
18702     typedef check<check<check<check<void>>>> quadruple_type;
18703
18704   }
18705
18706   namespace test_decltype
18707   {
18708
18709     int
18710     f()
18711     {
18712       int a = 1;
18713       decltype(a) b = 2;
18714       return a + b;
18715     }
18716
18717   }
18718
18719   namespace test_type_deduction
18720   {
18721
18722     template < typename T1, typename T2 >
18723     struct is_same
18724     {
18725       static const bool value = false;
18726     };
18727
18728     template < typename T >
18729     struct is_same<T, T>
18730     {
18731       static const bool value = true;
18732     };
18733
18734     template < typename T1, typename T2 >
18735     auto
18736     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18737     {
18738       return a1 + a2;
18739     }
18740
18741     int
18742     test(const int c, volatile int v)
18743     {
18744       static_assert(is_same<int, decltype(0)>::value == true, "");
18745       static_assert(is_same<int, decltype(c)>::value == false, "");
18746       static_assert(is_same<int, decltype(v)>::value == false, "");
18747       auto ac = c;
18748       auto av = v;
18749       auto sumi = ac + av + 'x';
18750       auto sumf = ac + av + 1.0;
18751       static_assert(is_same<int, decltype(ac)>::value == true, "");
18752       static_assert(is_same<int, decltype(av)>::value == true, "");
18753       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18754       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18755       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18756       return (sumf > 0.0) ? sumi : add(c, v);
18757     }
18758
18759   }
18760
18761   namespace test_noexcept
18762   {
18763
18764     int f() { return 0; }
18765     int g() noexcept { return 0; }
18766
18767     static_assert(noexcept(f()) == false, "");
18768     static_assert(noexcept(g()) == true, "");
18769
18770   }
18771
18772   namespace test_constexpr
18773   {
18774
18775     template < typename CharT >
18776     unsigned long constexpr
18777     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18778     {
18779       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18780     }
18781
18782     template < typename CharT >
18783     unsigned long constexpr
18784     strlen_c(const CharT *const s) noexcept
18785     {
18786       return strlen_c_r(s, 0UL);
18787     }
18788
18789     static_assert(strlen_c("") == 0UL, "");
18790     static_assert(strlen_c("1") == 1UL, "");
18791     static_assert(strlen_c("example") == 7UL, "");
18792     static_assert(strlen_c("another\0example") == 7UL, "");
18793
18794   }
18795
18796   namespace test_rvalue_references
18797   {
18798
18799     template < int N >
18800     struct answer
18801     {
18802       static constexpr int value = N;
18803     };
18804
18805     answer<1> f(int&)       { return answer<1>(); }
18806     answer<2> f(const int&) { return answer<2>(); }
18807     answer<3> f(int&&)      { return answer<3>(); }
18808
18809     void
18810     test()
18811     {
18812       int i = 0;
18813       const int c = 0;
18814       static_assert(decltype(f(i))::value == 1, "");
18815       static_assert(decltype(f(c))::value == 2, "");
18816       static_assert(decltype(f(0))::value == 3, "");
18817     }
18818
18819   }
18820
18821   namespace test_uniform_initialization
18822   {
18823
18824     struct test
18825     {
18826       static const int zero {};
18827       static const int one {1};
18828     };
18829
18830     static_assert(test::zero == 0, "");
18831     static_assert(test::one == 1, "");
18832
18833   }
18834
18835   namespace test_lambdas
18836   {
18837
18838     void
18839     test1()
18840     {
18841       auto lambda1 = [](){};
18842       auto lambda2 = lambda1;
18843       lambda1();
18844       lambda2();
18845     }
18846
18847     int
18848     test2()
18849     {
18850       auto a = [](int i, int j){ return i + j; }(1, 2);
18851       auto b = []() -> int { return '0'; }();
18852       auto c = [=](){ return a + b; }();
18853       auto d = [&](){ return c; }();
18854       auto e = [a, &b](int x) mutable {
18855         const auto identity = [](int y){ return y; };
18856         for (auto i = 0; i < a; ++i)
18857           a += b--;
18858         return x + identity(a + b);
18859       }(0);
18860       return a + b + c + d + e;
18861     }
18862
18863     int
18864     test3()
18865     {
18866       const auto nullary = [](){ return 0; };
18867       const auto unary = [](int x){ return x; };
18868       using nullary_t = decltype(nullary);
18869       using unary_t = decltype(unary);
18870       const auto higher1st = [](nullary_t f){ return f(); };
18871       const auto higher2nd = [unary](nullary_t f1){
18872         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18873       };
18874       return higher1st(nullary) + higher2nd(nullary)(unary);
18875     }
18876
18877   }
18878
18879   namespace test_variadic_templates
18880   {
18881
18882     template <int...>
18883     struct sum;
18884
18885     template <int N0, int... N1toN>
18886     struct sum<N0, N1toN...>
18887     {
18888       static constexpr auto value = N0 + sum<N1toN...>::value;
18889     };
18890
18891     template <>
18892     struct sum<>
18893     {
18894       static constexpr auto value = 0;
18895     };
18896
18897     static_assert(sum<>::value == 0, "");
18898     static_assert(sum<1>::value == 1, "");
18899     static_assert(sum<23>::value == 23, "");
18900     static_assert(sum<1, 2>::value == 3, "");
18901     static_assert(sum<5, 5, 11>::value == 21, "");
18902     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18903
18904   }
18905
18906   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18907   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18908   // because of this.
18909   namespace test_template_alias_sfinae
18910   {
18911
18912     struct foo {};
18913
18914     template<typename T>
18915     using member = typename T::member_type;
18916
18917     template<typename T>
18918     void func(...) {}
18919
18920     template<typename T>
18921     void func(member<T>*) {}
18922
18923     void test();
18924
18925     void test() { func<foo>(0); }
18926
18927   }
18928
18929 }  // namespace cxx11
18930
18931 #endif  // __cplusplus >= 201103L
18932
18933
18934
18935 _ACEOF
18936 if ac_fn_cxx_try_compile "$LINENO"; then :
18937   eval $cachevar=yes
18938 else
18939   eval $cachevar=no
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942            CXX="$ac_save_CXX"
18943 fi
18944 eval ac_res=\$$cachevar
18945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947         if eval test x\$$cachevar = xyes; then
18948           CXX="$CXX $switch"
18949           if test -n "$CXXCPP" ; then
18950             CXXCPP="$CXXCPP $switch"
18951           fi
18952           ac_success=yes
18953           break
18954         fi
18955       done
18956       if test x$ac_success = xyes; then
18957         break
18958       fi
18959     done
18960   fi
18961   ac_ext=c
18962 ac_cpp='$CPP $CPPFLAGS'
18963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18966
18967   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18968     if test x$ac_success = xno; then
18969       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18970     fi
18971   fi
18972   if test x$ac_success = xno; then
18973     HAVE_CXX11=0
18974     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18975 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18976   else
18977     HAVE_CXX11=1
18978
18979 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18980
18981   fi
18982
18983
18984
18985 # Check whether --enable-largefile was given.
18986 if test "${enable_largefile+set}" = set; then :
18987   enableval=$enable_largefile;
18988 fi
18989
18990 if test "$enable_largefile" != no; then
18991
18992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18993 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18994 if ${ac_cv_sys_largefile_CC+:} false; then :
18995   $as_echo_n "(cached) " >&6
18996 else
18997   ac_cv_sys_largefile_CC=no
18998      if test "$GCC" != yes; then
18999        ac_save_CC=$CC
19000        while :; do
19001          # IRIX 6.2 and later do not support large files by default,
19002          # so use the C compiler's -n32 option if that helps.
19003          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h.  */
19005 #include <sys/types.h>
19006  /* Check that off_t can represent 2**63 - 1 correctly.
19007     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19008     since some C++ compilers masquerading as C compilers
19009     incorrectly reject 9223372036854775807.  */
19010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19011   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19012                        && LARGE_OFF_T % 2147483647 == 1)
19013                       ? 1 : -1];
19014 int
19015 main ()
19016 {
19017
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022          if ac_fn_c_try_compile "$LINENO"; then :
19023   break
19024 fi
19025 rm -f core conftest.err conftest.$ac_objext
19026          CC="$CC -n32"
19027          if ac_fn_c_try_compile "$LINENO"; then :
19028   ac_cv_sys_largefile_CC=' -n32'; break
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext
19031          break
19032        done
19033        CC=$ac_save_CC
19034        rm -f conftest.$ac_ext
19035     fi
19036 fi
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19039   if test "$ac_cv_sys_largefile_CC" != no; then
19040     CC=$CC$ac_cv_sys_largefile_CC
19041   fi
19042
19043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19045 if ${ac_cv_sys_file_offset_bits+:} false; then :
19046   $as_echo_n "(cached) " >&6
19047 else
19048   while :; do
19049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h.  */
19051 #include <sys/types.h>
19052  /* Check that off_t can represent 2**63 - 1 correctly.
19053     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19054     since some C++ compilers masquerading as C compilers
19055     incorrectly reject 9223372036854775807.  */
19056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19057   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19058                        && LARGE_OFF_T % 2147483647 == 1)
19059                       ? 1 : -1];
19060 int
19061 main ()
19062 {
19063
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 if ac_fn_c_try_compile "$LINENO"; then :
19069   ac_cv_sys_file_offset_bits=no; break
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h.  */
19074 #define _FILE_OFFSET_BITS 64
19075 #include <sys/types.h>
19076  /* Check that off_t can represent 2**63 - 1 correctly.
19077     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19078     since some C++ compilers masquerading as C compilers
19079     incorrectly reject 9223372036854775807.  */
19080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19081   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19082                        && LARGE_OFF_T % 2147483647 == 1)
19083                       ? 1 : -1];
19084 int
19085 main ()
19086 {
19087
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 if ac_fn_c_try_compile "$LINENO"; then :
19093   ac_cv_sys_file_offset_bits=64; break
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096   ac_cv_sys_file_offset_bits=unknown
19097   break
19098 done
19099 fi
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19101 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19102 case $ac_cv_sys_file_offset_bits in #(
19103   no | unknown) ;;
19104   *)
19105 cat >>confdefs.h <<_ACEOF
19106 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19107 _ACEOF
19108 ;;
19109 esac
19110 rm -rf conftest*
19111   if test $ac_cv_sys_file_offset_bits = unknown; then
19112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19113 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19114 if ${ac_cv_sys_large_files+:} false; then :
19115   $as_echo_n "(cached) " >&6
19116 else
19117   while :; do
19118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h.  */
19120 #include <sys/types.h>
19121  /* Check that off_t can represent 2**63 - 1 correctly.
19122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19123     since some C++ compilers masquerading as C compilers
19124     incorrectly reject 9223372036854775807.  */
19125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19127                        && LARGE_OFF_T % 2147483647 == 1)
19128                       ? 1 : -1];
19129 int
19130 main ()
19131 {
19132
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 if ac_fn_c_try_compile "$LINENO"; then :
19138   ac_cv_sys_large_files=no; break
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h.  */
19143 #define _LARGE_FILES 1
19144 #include <sys/types.h>
19145  /* Check that off_t can represent 2**63 - 1 correctly.
19146     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19147     since some C++ compilers masquerading as C compilers
19148     incorrectly reject 9223372036854775807.  */
19149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19150   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19151                        && LARGE_OFF_T % 2147483647 == 1)
19152                       ? 1 : -1];
19153 int
19154 main ()
19155 {
19156
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 if ac_fn_c_try_compile "$LINENO"; then :
19162   ac_cv_sys_large_files=1; break
19163 fi
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165   ac_cv_sys_large_files=unknown
19166   break
19167 done
19168 fi
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19170 $as_echo "$ac_cv_sys_large_files" >&6; }
19171 case $ac_cv_sys_large_files in #(
19172   no | unknown) ;;
19173   *)
19174 cat >>confdefs.h <<_ACEOF
19175 #define _LARGE_FILES $ac_cv_sys_large_files
19176 _ACEOF
19177 ;;
19178 esac
19179 rm -rf conftest*
19180   fi
19181
19182
19183 fi
19184
19185
19186
19187
19188
19189
19190
19191
19192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19193         if test -n "$ac_tool_prefix"; then
19194   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19197 $as_echo_n "checking for $ac_word... " >&6; }
19198 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19199   $as_echo_n "(cached) " >&6
19200 else
19201   case $PKG_CONFIG in
19202   [\\/]* | ?:[\\/]*)
19203   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19204   ;;
19205   *)
19206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19207 for as_dir in $PATH
19208 do
19209   IFS=$as_save_IFS
19210   test -z "$as_dir" && as_dir=.
19211     for ac_exec_ext in '' $ac_executable_extensions; do
19212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19213     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19215     break 2
19216   fi
19217 done
19218   done
19219 IFS=$as_save_IFS
19220
19221   ;;
19222 esac
19223 fi
19224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19225 if test -n "$PKG_CONFIG"; then
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19227 $as_echo "$PKG_CONFIG" >&6; }
19228 else
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 fi
19232
19233
19234 fi
19235 if test -z "$ac_cv_path_PKG_CONFIG"; then
19236   ac_pt_PKG_CONFIG=$PKG_CONFIG
19237   # Extract the first word of "pkg-config", so it can be a program name with args.
19238 set dummy pkg-config; ac_word=$2
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19240 $as_echo_n "checking for $ac_word... " >&6; }
19241 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19242   $as_echo_n "(cached) " >&6
19243 else
19244   case $ac_pt_PKG_CONFIG in
19245   [\\/]* | ?:[\\/]*)
19246   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19247   ;;
19248   *)
19249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19251 do
19252   IFS=$as_save_IFS
19253   test -z "$as_dir" && as_dir=.
19254     for ac_exec_ext in '' $ac_executable_extensions; do
19255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19256     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19258     break 2
19259   fi
19260 done
19261   done
19262 IFS=$as_save_IFS
19263
19264   ;;
19265 esac
19266 fi
19267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19268 if test -n "$ac_pt_PKG_CONFIG"; then
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19271 else
19272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19274 fi
19275
19276   if test "x$ac_pt_PKG_CONFIG" = x; then
19277     PKG_CONFIG=""
19278   else
19279     case $cross_compiling:$ac_tool_warned in
19280 yes:)
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19283 ac_tool_warned=yes ;;
19284 esac
19285     PKG_CONFIG=$ac_pt_PKG_CONFIG
19286   fi
19287 else
19288   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19289 fi
19290
19291 fi
19292 if test -n "$PKG_CONFIG"; then
19293         _pkg_min_version=0.20
19294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19296         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19298 $as_echo "yes" >&6; }
19299         else
19300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302                 PKG_CONFIG=""
19303         fi
19304 fi
19305
19306 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19307
19308
19309 GIT=${GIT-"${am_missing_run}git"}
19310
19311
19312 # Version
19313
19314
19315
19316
19317 HB_VERSION_MAJOR=2
19318 HB_VERSION_MINOR=6
19319 HB_VERSION_MICRO=4
19320 HB_VERSION=2.6.4
19321
19322
19323
19324
19325
19326 # Libtool version
19327
19328
19329
19330
19331 HB_LIBTOOL_VERSION_INFO=20600:4:20600
19332
19333
19334
19335 # Check whether --with-libstdc++ was given.
19336 if test "${with_libstdc__+set}" = set; then :
19337   withval=$with_libstdc__; with_libstdcxx=$withval
19338 else
19339   with_libstdcxx=no
19340 fi
19341
19342  if test "x$with_libstdcxx" = "xyes"; then
19343   WITH_LIBSTDCXX_TRUE=
19344   WITH_LIBSTDCXX_FALSE='#'
19345 else
19346   WITH_LIBSTDCXX_TRUE='#'
19347   WITH_LIBSTDCXX_FALSE=
19348 fi
19349
19350
19351 # Documentation
19352 have_gtk_doc=false
19353
19354
19355
19356
19357   gtk_doc_requires="gtk-doc >= 1.15"
19358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19359 $as_echo_n "checking for gtk-doc... " >&6; }
19360   if test -n "$PKG_CONFIG" && \
19361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19362   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19363   ac_status=$?
19364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365   test $ac_status = 0; }; then
19366   have_gtk_doc=yes
19367 else
19368   have_gtk_doc=no
19369 fi
19370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19371 $as_echo "$have_gtk_doc" >&6; }
19372
19373   if test "$have_gtk_doc" = "no"; then
19374       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19375   You will not be able to create source packages with 'make dist'
19376   because $gtk_doc_requires is not found." >&5
19377 $as_echo "$as_me: WARNING:
19378   You will not be able to create source packages with 'make dist'
19379   because $gtk_doc_requires is not found." >&2;}
19380   fi
19381
19382             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19383 set dummy gtkdoc-check; ac_word=$2
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19385 $as_echo_n "checking for $ac_word... " >&6; }
19386 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19387   $as_echo_n "(cached) " >&6
19388 else
19389   if test -n "$GTKDOC_CHECK"; then
19390   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19391 else
19392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393 for as_dir in $PATH
19394 do
19395   IFS=$as_save_IFS
19396   test -z "$as_dir" && as_dir=.
19397     for ac_exec_ext in '' $ac_executable_extensions; do
19398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19399     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19401     break 2
19402   fi
19403 done
19404   done
19405 IFS=$as_save_IFS
19406
19407 fi
19408 fi
19409 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19410 if test -n "$GTKDOC_CHECK"; then
19411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19412 $as_echo "$GTKDOC_CHECK" >&6; }
19413 else
19414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19415 $as_echo "no" >&6; }
19416 fi
19417
19418
19419   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19420 set dummy gtkdoc-check; ac_word=$2
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19422 $as_echo_n "checking for $ac_word... " >&6; }
19423 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19424   $as_echo_n "(cached) " >&6
19425 else
19426   case $GTKDOC_CHECK_PATH in
19427   [\\/]* | ?:[\\/]*)
19428   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19429   ;;
19430   *)
19431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19432 for as_dir in $PATH
19433 do
19434   IFS=$as_save_IFS
19435   test -z "$as_dir" && as_dir=.
19436     for ac_exec_ext in '' $ac_executable_extensions; do
19437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19438     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19440     break 2
19441   fi
19442 done
19443   done
19444 IFS=$as_save_IFS
19445
19446   ;;
19447 esac
19448 fi
19449 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19450 if test -n "$GTKDOC_CHECK_PATH"; then
19451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19452 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19453 else
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19455 $as_echo "no" >&6; }
19456 fi
19457
19458
19459   for ac_prog in gtkdoc-rebase
19460 do
19461   # Extract the first word of "$ac_prog", so it can be a program name with args.
19462 set dummy $ac_prog; ac_word=$2
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19464 $as_echo_n "checking for $ac_word... " >&6; }
19465 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   case $GTKDOC_REBASE in
19469   [\\/]* | ?:[\\/]*)
19470   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19471   ;;
19472   *)
19473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19475 do
19476   IFS=$as_save_IFS
19477   test -z "$as_dir" && as_dir=.
19478     for ac_exec_ext in '' $ac_executable_extensions; do
19479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19480     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19482     break 2
19483   fi
19484 done
19485   done
19486 IFS=$as_save_IFS
19487
19488   ;;
19489 esac
19490 fi
19491 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19492 if test -n "$GTKDOC_REBASE"; then
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19494 $as_echo "$GTKDOC_REBASE" >&6; }
19495 else
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497 $as_echo "no" >&6; }
19498 fi
19499
19500
19501   test -n "$GTKDOC_REBASE" && break
19502 done
19503 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19504
19505   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19506 set dummy gtkdoc-mkpdf; ac_word=$2
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19508 $as_echo_n "checking for $ac_word... " >&6; }
19509 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19510   $as_echo_n "(cached) " >&6
19511 else
19512   case $GTKDOC_MKPDF in
19513   [\\/]* | ?:[\\/]*)
19514   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19515   ;;
19516   *)
19517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19519 do
19520   IFS=$as_save_IFS
19521   test -z "$as_dir" && as_dir=.
19522     for ac_exec_ext in '' $ac_executable_extensions; do
19523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19524     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19526     break 2
19527   fi
19528 done
19529   done
19530 IFS=$as_save_IFS
19531
19532   ;;
19533 esac
19534 fi
19535 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19536 if test -n "$GTKDOC_MKPDF"; then
19537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19538 $as_echo "$GTKDOC_MKPDF" >&6; }
19539 else
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541 $as_echo "no" >&6; }
19542 fi
19543
19544
19545
19546
19547 # Check whether --with-html-dir was given.
19548 if test "${with_html_dir+set}" = set; then :
19549   withval=$with_html_dir;
19550 else
19551   with_html_dir='${datadir}/gtk-doc/html'
19552 fi
19553
19554   HTML_DIR="$with_html_dir"
19555
19556
19557     # Check whether --enable-gtk-doc was given.
19558 if test "${enable_gtk_doc+set}" = set; then :
19559   enableval=$enable_gtk_doc;
19560 else
19561   enable_gtk_doc=no
19562 fi
19563
19564
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19566 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19568 $as_echo "$enable_gtk_doc" >&6; }
19569
19570   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19571     as_fn_error $? "
19572   You must have $gtk_doc_requires installed to build documentation for
19573   $PACKAGE_NAME. Please install gtk-doc or disable building the
19574   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19575   fi
19576
19577     if test "x$PACKAGE_NAME" != "xglib"; then
19578
19579 pkg_failed=no
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19581 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19582
19583 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19584     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19585  elif test -n "$PKG_CONFIG"; then
19586     if test -n "$PKG_CONFIG" && \
19587     { { $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
19588   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19589   ac_status=$?
19590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19591   test $ac_status = 0; }; then
19592   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19593                       test "x$?" != "x0" && pkg_failed=yes
19594 else
19595   pkg_failed=yes
19596 fi
19597  else
19598     pkg_failed=untried
19599 fi
19600 if test -n "$GTKDOC_DEPS_LIBS"; then
19601     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19602  elif test -n "$PKG_CONFIG"; then
19603     if test -n "$PKG_CONFIG" && \
19604     { { $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
19605   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19606   ac_status=$?
19607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19608   test $ac_status = 0; }; then
19609   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19610                       test "x$?" != "x0" && pkg_failed=yes
19611 else
19612   pkg_failed=yes
19613 fi
19614  else
19615     pkg_failed=untried
19616 fi
19617
19618
19619
19620 if test $pkg_failed = yes; then
19621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 $as_echo "no" >&6; }
19623
19624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19625         _pkg_short_errors_supported=yes
19626 else
19627         _pkg_short_errors_supported=no
19628 fi
19629         if test $_pkg_short_errors_supported = yes; then
19630                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19631         else
19632                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19633         fi
19634         # Put the nasty error message in config.log where it belongs
19635         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19636
19637         :
19638 elif test $pkg_failed = untried; then
19639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19641         :
19642 else
19643         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19644         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19647
19648 fi
19649   fi
19650
19651     # Check whether --enable-gtk-doc-html was given.
19652 if test "${enable_gtk_doc_html+set}" = set; then :
19653   enableval=$enable_gtk_doc_html;
19654 else
19655   enable_gtk_doc_html=yes
19656 fi
19657
19658     # Check whether --enable-gtk-doc-pdf was given.
19659 if test "${enable_gtk_doc_pdf+set}" = set; then :
19660   enableval=$enable_gtk_doc_pdf;
19661 else
19662   enable_gtk_doc_pdf=no
19663 fi
19664
19665
19666   if test -z "$GTKDOC_MKPDF"; then
19667     enable_gtk_doc_pdf=no
19668   fi
19669
19670   if test -z "$AM_DEFAULT_VERBOSITY"; then
19671     AM_DEFAULT_VERBOSITY=1
19672   fi
19673
19674
19675    if test x$have_gtk_doc = xyes; then
19676   HAVE_GTK_DOC_TRUE=
19677   HAVE_GTK_DOC_FALSE='#'
19678 else
19679   HAVE_GTK_DOC_TRUE='#'
19680   HAVE_GTK_DOC_FALSE=
19681 fi
19682
19683    if test x$enable_gtk_doc = xyes; then
19684   ENABLE_GTK_DOC_TRUE=
19685   ENABLE_GTK_DOC_FALSE='#'
19686 else
19687   ENABLE_GTK_DOC_TRUE='#'
19688   ENABLE_GTK_DOC_FALSE=
19689 fi
19690
19691    if test x$enable_gtk_doc_html = xyes; then
19692   GTK_DOC_BUILD_HTML_TRUE=
19693   GTK_DOC_BUILD_HTML_FALSE='#'
19694 else
19695   GTK_DOC_BUILD_HTML_TRUE='#'
19696   GTK_DOC_BUILD_HTML_FALSE=
19697 fi
19698
19699    if test x$enable_gtk_doc_pdf = xyes; then
19700   GTK_DOC_BUILD_PDF_TRUE=
19701   GTK_DOC_BUILD_PDF_FALSE='#'
19702 else
19703   GTK_DOC_BUILD_PDF_TRUE='#'
19704   GTK_DOC_BUILD_PDF_FALSE=
19705 fi
19706
19707    if test -n "$LIBTOOL"; then
19708   GTK_DOC_USE_LIBTOOL_TRUE=
19709   GTK_DOC_USE_LIBTOOL_FALSE='#'
19710 else
19711   GTK_DOC_USE_LIBTOOL_TRUE='#'
19712   GTK_DOC_USE_LIBTOOL_FALSE=
19713 fi
19714
19715    if test -n "$GTKDOC_REBASE"; then
19716   GTK_DOC_USE_REBASE_TRUE=
19717   GTK_DOC_USE_REBASE_FALSE='#'
19718 else
19719   GTK_DOC_USE_REBASE_TRUE='#'
19720   GTK_DOC_USE_REBASE_FALSE=
19721 fi
19722
19723
19724         if test "x$enable_gtk_doc" = xyes; then
19725                 have_gtk_doc=true
19726         fi
19727
19728
19729 # Functions and headers
19730 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l roundf
19731 do :
19732   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19735   cat >>confdefs.h <<_ACEOF
19736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19737 _ACEOF
19738
19739 fi
19740 done
19741
19742 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
19743 do :
19744   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19747   cat >>confdefs.h <<_ACEOF
19748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19749 _ACEOF
19750
19751 fi
19752
19753 done
19754
19755
19756 # Compiler flags
19757
19758 # The cast to long int works around a bug in the HP C Compiler,
19759 # see AC_CHECK_SIZEOF for more information.
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19761 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19762 if ${ac_cv_alignof_struct_char__+:} false; then :
19763   $as_echo_n "(cached) " >&6
19764 else
19765   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
19766 #ifndef offsetof
19767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19768 #endif
19769 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19770
19771 else
19772   if test "$ac_cv_type_struct_char__" = yes; then
19773      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19775 as_fn_error 77 "cannot compute alignment of struct{char;}
19776 See \`config.log' for more details" "$LINENO" 5; }
19777    else
19778      ac_cv_alignof_struct_char__=0
19779    fi
19780 fi
19781
19782 fi
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19784 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19785
19786
19787
19788 cat >>confdefs.h <<_ACEOF
19789 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19790 _ACEOF
19791
19792
19793 if test "x$GCC" = "xyes"; then
19794
19795         # Make symbols link locally
19796         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19797 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19798 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19799   $as_echo_n "(cached) " >&6
19800 else
19801
19802   ax_check_save_flags=$LDFLAGS
19803   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
19804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h.  */
19806
19807 int
19808 main ()
19809 {
19810
19811   ;
19812   return 0;
19813 }
19814 _ACEOF
19815 if ac_fn_c_try_link "$LINENO"; then :
19816   ax_cv_check_ldflags___Bsymbolic_functions=yes
19817 else
19818   ax_cv_check_ldflags___Bsymbolic_functions=no
19819 fi
19820 rm -f core conftest.err conftest.$ac_objext \
19821     conftest$ac_exeext conftest.$ac_ext
19822   LDFLAGS=$ax_check_save_flags
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19825 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19826 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19827   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19828 else
19829   :
19830 fi
19831
19832
19833         # Make it possible to not link to libstdc++
19834         # No threadsafe statics in C++ as we do it ourselves.
19835         # We don't use these features, so it's safe to disable them
19836         # even in the cases where we DO link to libstdc++.
19837         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19838         # by overriding CXXFLAGS.
19839         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19840
19841         case "$host" in
19842                 *-*-mingw*)
19843                 ;;
19844                 *)
19845                         # Hide inline methods
19846                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19847                 ;;
19848         esac
19849
19850         case "$host" in
19851                 arm-*-*)
19852                         if test "x$ac_cv_alignof_struct_char__" != x1; then
19853                                 # Request byte alignment
19854                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19855                         fi
19856                 ;;
19857         esac
19858 fi
19859
19860  if test "x$GCC" = "xyes"; then
19861   HAVE_GCC_TRUE=
19862   HAVE_GCC_FALSE='#'
19863 else
19864   HAVE_GCC_TRUE='#'
19865   HAVE_GCC_FALSE=
19866 fi
19867
19868
19869 hb_os_win32=no
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19871 $as_echo_n "checking for native Win32... " >&6; }
19872 case "$host" in
19873   *-*-mingw*)
19874     hb_os_win32=yes
19875     ;;
19876 esac
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19878 $as_echo "$hb_os_win32" >&6; }
19879  if test "$hb_os_win32" = "yes"; then
19880   OS_WIN32_TRUE=
19881   OS_WIN32_FALSE='#'
19882 else
19883   OS_WIN32_TRUE='#'
19884   OS_WIN32_FALSE=
19885 fi
19886
19887
19888 have_pthread=false
19889
19890
19891
19892
19893 ac_ext=c
19894 ac_cpp='$CPP $CPPFLAGS'
19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898
19899 ax_pthread_ok=no
19900
19901 # We used to check for pthread.h first, but this fails if pthread.h
19902 # requires special compiler flags (e.g. on Tru64 or Sequent).
19903 # It gets checked for in the link test anyway.
19904
19905 # First of all, check if the user has set any of the PTHREAD_LIBS,
19906 # etcetera environment variables, and if threads linking works using
19907 # them:
19908 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19909         ax_pthread_save_CC="$CC"
19910         ax_pthread_save_CFLAGS="$CFLAGS"
19911         ax_pthread_save_LIBS="$LIBS"
19912         if test "x$PTHREAD_CC" != "x"; then :
19913   CC="$PTHREAD_CC"
19914 fi
19915         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19916         LIBS="$PTHREAD_LIBS $LIBS"
19917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19918 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19919         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h.  */
19921
19922 /* Override any GCC internal prototype to avoid an error.
19923    Use char because int might match the return type of a GCC
19924    builtin and then its argument prototype would still apply.  */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char pthread_join ();
19929 int
19930 main ()
19931 {
19932 return pthread_join ();
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 if ac_fn_c_try_link "$LINENO"; then :
19938   ax_pthread_ok=yes
19939 fi
19940 rm -f core conftest.err conftest.$ac_objext \
19941     conftest$ac_exeext conftest.$ac_ext
19942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19943 $as_echo "$ax_pthread_ok" >&6; }
19944         if test "x$ax_pthread_ok" = "xno"; then
19945                 PTHREAD_LIBS=""
19946                 PTHREAD_CFLAGS=""
19947         fi
19948         CC="$ax_pthread_save_CC"
19949         CFLAGS="$ax_pthread_save_CFLAGS"
19950         LIBS="$ax_pthread_save_LIBS"
19951 fi
19952
19953 # We must check for the threads library under a number of different
19954 # names; the ordering is very important because some systems
19955 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19956 # libraries is broken (non-POSIX).
19957
19958 # Create a list of thread flags to try.  Items starting with a "-" are
19959 # C compiler flags, and other items are library names, except for "none"
19960 # which indicates that we try without any flags at all, and "pthread-config"
19961 # which is a program returning the flags for the Pth emulation library.
19962
19963 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19964
19965 # The ordering *is* (sometimes) important.  Some notes on the
19966 # individual items follow:
19967
19968 # pthreads: AIX (must check this before -lpthread)
19969 # none: in case threads are in libc; should be tried before -Kthread and
19970 #       other compiler flags to prevent continual compiler warnings
19971 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19972 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19973 #           (Note: HP C rejects this with "bad form for `-t' option")
19974 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19975 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19976 #      doesn't hurt to check since this sometimes defines pthreads and
19977 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19978 #      is present but should not be used directly; and before -mthreads,
19979 #      because the compiler interprets this as "-mt" + "-hreads")
19980 # -mthreads: Mingw32/gcc, Lynx/gcc
19981 # pthread: Linux, etcetera
19982 # --thread-safe: KAI C++
19983 # pthread-config: use pthread-config program (for GNU Pth library)
19984
19985 case $host_os in
19986
19987         freebsd*)
19988
19989         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19990         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19991
19992         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19993         ;;
19994
19995         hpux*)
19996
19997         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19998         # multi-threading and also sets -lpthread."
19999
20000         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20001         ;;
20002
20003         openedition*)
20004
20005         # IBM z/OS requires a feature-test macro to be defined in order to
20006         # enable POSIX threads at all, so give the user a hint if this is
20007         # not set. (We don't define these ourselves, as they can affect
20008         # other portions of the system API in unpredictable ways.)
20009
20010         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h.  */
20012
20013 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20014              AX_PTHREAD_ZOS_MISSING
20015 #            endif
20016
20017 _ACEOF
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20021 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20022 fi
20023 rm -f conftest*
20024
20025         ;;
20026
20027         solaris*)
20028
20029         # On Solaris (at least, for some versions), libc contains stubbed
20030         # (non-functional) versions of the pthreads routines, so link-based
20031         # tests will erroneously succeed. (N.B.: The stubs are missing
20032         # pthread_cleanup_push, or rather a function called by this macro,
20033         # so we could check for that, but who knows whether they'll stub
20034         # that too in a future libc.)  So we'll check first for the
20035         # standard Solaris way of linking pthreads (-mt -lpthread).
20036
20037         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20038         ;;
20039 esac
20040
20041 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20042
20043 if test "x$GCC" = "xyes"; then :
20044   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20045 fi
20046
20047 # The presence of a feature test macro requesting re-entrant function
20048 # definitions is, on some systems, a strong hint that pthreads support is
20049 # correctly enabled
20050
20051 case $host_os in
20052         darwin* | hpux* | linux* | osf* | solaris*)
20053         ax_pthread_check_macro="_REENTRANT"
20054         ;;
20055
20056         aix*)
20057         ax_pthread_check_macro="_THREAD_SAFE"
20058         ;;
20059
20060         *)
20061         ax_pthread_check_macro="--"
20062         ;;
20063 esac
20064 if test "x$ax_pthread_check_macro" = "x--"; then :
20065   ax_pthread_check_cond=0
20066 else
20067   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20068 fi
20069
20070 # Are we compiling with Clang?
20071
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20073 $as_echo_n "checking whether $CC is Clang... " >&6; }
20074 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20075   $as_echo_n "(cached) " >&6
20076 else
20077   ax_cv_PTHREAD_CLANG=no
20078      # Note that Autoconf sets GCC=yes for Clang as well as GCC
20079      if test "x$GCC" = "xyes"; then
20080         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h.  */
20082 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20083 #            if defined(__clang__) && defined(__llvm__)
20084              AX_PTHREAD_CC_IS_CLANG
20085 #            endif
20086
20087 _ACEOF
20088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20090   ax_cv_PTHREAD_CLANG=yes
20091 fi
20092 rm -f conftest*
20093
20094      fi
20095
20096 fi
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20098 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20099 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20100
20101 ax_pthread_clang_warning=no
20102
20103 # Clang needs special handling, because older versions handle the -pthread
20104 # option in a rather... idiosyncratic way
20105
20106 if test "x$ax_pthread_clang" = "xyes"; then
20107
20108         # Clang takes -pthread; it has never supported any other flag
20109
20110         # (Note 1: This will need to be revisited if a system that Clang
20111         # supports has POSIX threads in a separate library.  This tends not
20112         # to be the way of modern systems, but it's conceivable.)
20113
20114         # (Note 2: On some systems, notably Darwin, -pthread is not needed
20115         # to get POSIX threads support; the API is always present and
20116         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20117         # -pthread does define _REENTRANT, and while the Darwin headers
20118         # ignore this macro, third-party headers might not.)
20119
20120         PTHREAD_CFLAGS="-pthread"
20121         PTHREAD_LIBS=
20122
20123         ax_pthread_ok=yes
20124
20125         # However, older versions of Clang make a point of warning the user
20126         # that, in an invocation where only linking and no compilation is
20127         # taking place, the -pthread option has no effect ("argument unused
20128         # during compilation").  They expect -pthread to be passed in only
20129         # when source code is being compiled.
20130         #
20131         # Problem is, this is at odds with the way Automake and most other
20132         # C build frameworks function, which is that the same flags used in
20133         # compilation (CFLAGS) are also used in linking.  Many systems
20134         # supported by AX_PTHREAD require exactly this for POSIX threads
20135         # support, and in fact it is often not straightforward to specify a
20136         # flag that is used only in the compilation phase and not in
20137         # linking.  Such a scenario is extremely rare in practice.
20138         #
20139         # Even though use of the -pthread flag in linking would only print
20140         # a warning, this can be a nuisance for well-run software projects
20141         # that build with -Werror.  So if the active version of Clang has
20142         # this misfeature, we search for an option to squash it.
20143
20144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20145 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20146 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20147   $as_echo_n "(cached) " >&6
20148 else
20149   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20150              # Create an alternate version of $ac_link that compiles and
20151              # links in two steps (.c -> .o, .o -> exe) instead of one
20152              # (.c -> exe), because the warning occurs only in the second
20153              # step
20154              ax_pthread_save_ac_link="$ac_link"
20155              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20156              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20157              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20158              ax_pthread_save_CFLAGS="$CFLAGS"
20159              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20160                 if test "x$ax_pthread_try" = "xunknown"; then :
20161   break
20162 fi
20163                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20164                 ac_link="$ax_pthread_save_ac_link"
20165                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h.  */
20167 int main(void){return 0;}
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170   ac_link="$ax_pthread_2step_ac_link"
20171                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h.  */
20173 int main(void){return 0;}
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176   break
20177 fi
20178 rm -f core conftest.err conftest.$ac_objext \
20179     conftest$ac_exeext conftest.$ac_ext
20180
20181 fi
20182 rm -f core conftest.err conftest.$ac_objext \
20183     conftest$ac_exeext conftest.$ac_ext
20184              done
20185              ac_link="$ax_pthread_save_ac_link"
20186              CFLAGS="$ax_pthread_save_CFLAGS"
20187              if test "x$ax_pthread_try" = "x"; then :
20188   ax_pthread_try=no
20189 fi
20190              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20191
20192 fi
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20194 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20195
20196         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20197                 no | unknown) ;;
20198                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20199         esac
20200
20201 fi # $ax_pthread_clang = yes
20202
20203 if test "x$ax_pthread_ok" = "xno"; then
20204 for ax_pthread_try_flag in $ax_pthread_flags; do
20205
20206         case $ax_pthread_try_flag in
20207                 none)
20208                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20209 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20210                 ;;
20211
20212                 -mt,pthread)
20213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20214 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20215                 PTHREAD_CFLAGS="-mt"
20216                 PTHREAD_LIBS="-lpthread"
20217                 ;;
20218
20219                 -*)
20220                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20221 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20222                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20223                 ;;
20224
20225                 pthread-config)
20226                 # Extract the first word of "pthread-config", so it can be a program name with args.
20227 set dummy pthread-config; ac_word=$2
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20229 $as_echo_n "checking for $ac_word... " >&6; }
20230 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20231   $as_echo_n "(cached) " >&6
20232 else
20233   if test -n "$ax_pthread_config"; then
20234   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20235 else
20236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20237 for as_dir in $PATH
20238 do
20239   IFS=$as_save_IFS
20240   test -z "$as_dir" && as_dir=.
20241     for ac_exec_ext in '' $ac_executable_extensions; do
20242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20243     ac_cv_prog_ax_pthread_config="yes"
20244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20245     break 2
20246   fi
20247 done
20248   done
20249 IFS=$as_save_IFS
20250
20251   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20252 fi
20253 fi
20254 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20255 if test -n "$ax_pthread_config"; then
20256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20257 $as_echo "$ax_pthread_config" >&6; }
20258 else
20259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20260 $as_echo "no" >&6; }
20261 fi
20262
20263
20264                 if test "x$ax_pthread_config" = "xno"; then :
20265   continue
20266 fi
20267                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20268                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20269                 ;;
20270
20271                 *)
20272                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20273 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20274                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20275                 ;;
20276         esac
20277
20278         ax_pthread_save_CFLAGS="$CFLAGS"
20279         ax_pthread_save_LIBS="$LIBS"
20280         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20281         LIBS="$PTHREAD_LIBS $LIBS"
20282
20283         # Check for various functions.  We must include pthread.h,
20284         # since some functions may be macros.  (On the Sequent, we
20285         # need a special flag -Kthread to make this header compile.)
20286         # We check for pthread_join because it is in -lpthread on IRIX
20287         # while pthread_create is in libc.  We check for pthread_attr_init
20288         # due to DEC craziness with -lpthreads.  We check for
20289         # pthread_cleanup_push because it is one of the few pthread
20290         # functions on Solaris that doesn't have a non-functional libc stub.
20291         # We try pthread_create on general principles.
20292
20293         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h.  */
20295 #include <pthread.h>
20296 #                       if $ax_pthread_check_cond
20297 #                        error "$ax_pthread_check_macro must be defined"
20298 #                       endif
20299                         static void routine(void *a) { a = 0; }
20300                         static void *start_routine(void *a) { return a; }
20301 int
20302 main ()
20303 {
20304 pthread_t th; pthread_attr_t attr;
20305                         pthread_create(&th, 0, start_routine, 0);
20306                         pthread_join(th, 0);
20307                         pthread_attr_init(&attr);
20308                         pthread_cleanup_push(routine, 0);
20309                         pthread_cleanup_pop(0) /* ; */
20310   ;
20311   return 0;
20312 }
20313 _ACEOF
20314 if ac_fn_c_try_link "$LINENO"; then :
20315   ax_pthread_ok=yes
20316 fi
20317 rm -f core conftest.err conftest.$ac_objext \
20318     conftest$ac_exeext conftest.$ac_ext
20319
20320         CFLAGS="$ax_pthread_save_CFLAGS"
20321         LIBS="$ax_pthread_save_LIBS"
20322
20323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20324 $as_echo "$ax_pthread_ok" >&6; }
20325         if test "x$ax_pthread_ok" = "xyes"; then :
20326   break
20327 fi
20328
20329         PTHREAD_LIBS=""
20330         PTHREAD_CFLAGS=""
20331 done
20332 fi
20333
20334 # Various other checks:
20335 if test "x$ax_pthread_ok" = "xyes"; then
20336         ax_pthread_save_CFLAGS="$CFLAGS"
20337         ax_pthread_save_LIBS="$LIBS"
20338         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20339         LIBS="$PTHREAD_LIBS $LIBS"
20340
20341         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20342         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20343 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20344 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20345   $as_echo_n "(cached) " >&6
20346 else
20347   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20348              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20349                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h.  */
20351 #include <pthread.h>
20352 int
20353 main ()
20354 {
20355 int attr = $ax_pthread_attr; return attr /* ; */
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_link "$LINENO"; then :
20361   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext \
20364     conftest$ac_exeext conftest.$ac_ext
20365              done
20366
20367 fi
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20369 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20370         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20371                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20372                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20373
20374 cat >>confdefs.h <<_ACEOF
20375 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20376 _ACEOF
20377
20378                ax_pthread_joinable_attr_defined=yes
20379
20380 fi
20381
20382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20383 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20384 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20385   $as_echo_n "(cached) " >&6
20386 else
20387   ax_cv_PTHREAD_SPECIAL_FLAGS=no
20388              case $host_os in
20389              solaris*)
20390              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20391              ;;
20392              esac
20393
20394 fi
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20396 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20397         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20398                test "x$ax_pthread_special_flags_added" != "xyes"; then :
20399   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20400                ax_pthread_special_flags_added=yes
20401 fi
20402
20403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20404 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20405 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20406   $as_echo_n "(cached) " >&6
20407 else
20408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h.  */
20410 #include <pthread.h>
20411 int
20412 main ()
20413 {
20414 int i = PTHREAD_PRIO_INHERIT;
20415   ;
20416   return 0;
20417 }
20418 _ACEOF
20419 if ac_fn_c_try_link "$LINENO"; then :
20420   ax_cv_PTHREAD_PRIO_INHERIT=yes
20421 else
20422   ax_cv_PTHREAD_PRIO_INHERIT=no
20423 fi
20424 rm -f core conftest.err conftest.$ac_objext \
20425     conftest$ac_exeext conftest.$ac_ext
20426
20427 fi
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20429 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20430         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20431                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20432
20433 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20434
20435                ax_pthread_prio_inherit_defined=yes
20436
20437 fi
20438
20439         CFLAGS="$ax_pthread_save_CFLAGS"
20440         LIBS="$ax_pthread_save_LIBS"
20441
20442         # More AIX lossage: compile with *_r variant
20443         if test "x$GCC" != "xyes"; then
20444             case $host_os in
20445                 aix*)
20446                 case "x/$CC" in #(
20447   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20448     #handle absolute path differently from PATH based program lookup
20449                      case "x$CC" in #(
20450   x/*) :
20451     if as_fn_executable_p ${CC}_r; then :
20452   PTHREAD_CC="${CC}_r"
20453 fi ;; #(
20454   *) :
20455     for ac_prog in ${CC}_r
20456 do
20457   # Extract the first word of "$ac_prog", so it can be a program name with args.
20458 set dummy $ac_prog; ac_word=$2
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20460 $as_echo_n "checking for $ac_word... " >&6; }
20461 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20462   $as_echo_n "(cached) " >&6
20463 else
20464   if test -n "$PTHREAD_CC"; then
20465   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20466 else
20467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20468 for as_dir in $PATH
20469 do
20470   IFS=$as_save_IFS
20471   test -z "$as_dir" && as_dir=.
20472     for ac_exec_ext in '' $ac_executable_extensions; do
20473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20474     ac_cv_prog_PTHREAD_CC="$ac_prog"
20475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20476     break 2
20477   fi
20478 done
20479   done
20480 IFS=$as_save_IFS
20481
20482 fi
20483 fi
20484 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20485 if test -n "$PTHREAD_CC"; then
20486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20487 $as_echo "$PTHREAD_CC" >&6; }
20488 else
20489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20490 $as_echo "no" >&6; }
20491 fi
20492
20493
20494   test -n "$PTHREAD_CC" && break
20495 done
20496 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20497  ;;
20498 esac ;; #(
20499   *) :
20500      ;;
20501 esac
20502                 ;;
20503             esac
20504         fi
20505 fi
20506
20507 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20508
20509
20510
20511
20512
20513 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20514 if test "x$ax_pthread_ok" = "xyes"; then
20515         have_pthread=true
20516         :
20517 else
20518         ax_pthread_ok=no
20519
20520 fi
20521 ac_ext=c
20522 ac_cpp='$CPP $CPPFLAGS'
20523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20526
20527
20528 if $have_pthread; then
20529
20530 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20531
20532 fi
20533  if $have_pthread; then
20534   HAVE_PTHREAD_TRUE=
20535   HAVE_PTHREAD_FALSE='#'
20536 else
20537   HAVE_PTHREAD_TRUE='#'
20538   HAVE_PTHREAD_FALSE=
20539 fi
20540
20541
20542
20543
20544 # Check whether --with-glib was given.
20545 if test "${with_glib+set}" = set; then :
20546   withval=$with_glib;
20547 else
20548   with_glib=auto
20549 fi
20550
20551 have_glib=false
20552 GLIB_DEPS="glib-2.0 >= 2.19.1"
20553
20554 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20555
20556 pkg_failed=no
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20558 $as_echo_n "checking for GLIB... " >&6; }
20559
20560 if test -n "$GLIB_CFLAGS"; then
20561     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20562  elif test -n "$PKG_CONFIG"; then
20563     if test -n "$PKG_CONFIG" && \
20564     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20565   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20566   ac_status=$?
20567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20568   test $ac_status = 0; }; then
20569   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20570                       test "x$?" != "x0" && pkg_failed=yes
20571 else
20572   pkg_failed=yes
20573 fi
20574  else
20575     pkg_failed=untried
20576 fi
20577 if test -n "$GLIB_LIBS"; then
20578     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20579  elif test -n "$PKG_CONFIG"; then
20580     if test -n "$PKG_CONFIG" && \
20581     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20582   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20583   ac_status=$?
20584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20585   test $ac_status = 0; }; then
20586   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20587                       test "x$?" != "x0" && pkg_failed=yes
20588 else
20589   pkg_failed=yes
20590 fi
20591  else
20592     pkg_failed=untried
20593 fi
20594
20595
20596
20597 if test $pkg_failed = yes; then
20598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 $as_echo "no" >&6; }
20600
20601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20602         _pkg_short_errors_supported=yes
20603 else
20604         _pkg_short_errors_supported=no
20605 fi
20606         if test $_pkg_short_errors_supported = yes; then
20607                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20608         else
20609                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20610         fi
20611         # Put the nasty error message in config.log where it belongs
20612         echo "$GLIB_PKG_ERRORS" >&5
20613
20614         :
20615 elif test $pkg_failed = untried; then
20616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20618         :
20619 else
20620         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20621         GLIB_LIBS=$pkg_cv_GLIB_LIBS
20622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20623 $as_echo "yes" >&6; }
20624         have_glib=true
20625 fi
20626 fi
20627 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20628         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20629 fi
20630 if $have_glib; then
20631
20632 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20633
20634 fi
20635  if $have_glib; then
20636   HAVE_GLIB_TRUE=
20637   HAVE_GLIB_FALSE='#'
20638 else
20639   HAVE_GLIB_TRUE='#'
20640   HAVE_GLIB_FALSE=
20641 fi
20642
20643
20644
20645
20646 # Check whether --with-gobject was given.
20647 if test "${with_gobject+set}" = set; then :
20648   withval=$with_gobject;
20649 else
20650   with_gobject=no
20651 fi
20652
20653 have_gobject=false
20654 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20655
20656 pkg_failed=no
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20658 $as_echo_n "checking for GOBJECT... " >&6; }
20659
20660 if test -n "$GOBJECT_CFLAGS"; then
20661     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20662  elif test -n "$PKG_CONFIG"; then
20663     if test -n "$PKG_CONFIG" && \
20664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20665   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20666   ac_status=$?
20667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668   test $ac_status = 0; }; then
20669   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20670                       test "x$?" != "x0" && pkg_failed=yes
20671 else
20672   pkg_failed=yes
20673 fi
20674  else
20675     pkg_failed=untried
20676 fi
20677 if test -n "$GOBJECT_LIBS"; then
20678     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20679  elif test -n "$PKG_CONFIG"; then
20680     if test -n "$PKG_CONFIG" && \
20681     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20682   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20683   ac_status=$?
20684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685   test $ac_status = 0; }; then
20686   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20687                       test "x$?" != "x0" && pkg_failed=yes
20688 else
20689   pkg_failed=yes
20690 fi
20691  else
20692     pkg_failed=untried
20693 fi
20694
20695
20696
20697 if test $pkg_failed = yes; then
20698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20699 $as_echo "no" >&6; }
20700
20701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20702         _pkg_short_errors_supported=yes
20703 else
20704         _pkg_short_errors_supported=no
20705 fi
20706         if test $_pkg_short_errors_supported = yes; then
20707                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20708         else
20709                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20710         fi
20711         # Put the nasty error message in config.log where it belongs
20712         echo "$GOBJECT_PKG_ERRORS" >&5
20713
20714         :
20715 elif test $pkg_failed = untried; then
20716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20718         :
20719 else
20720         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20721         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723 $as_echo "yes" >&6; }
20724         have_gobject=true
20725 fi
20726 fi
20727 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20728         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20729 fi
20730 if $have_gobject; then
20731
20732 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20733
20734         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20735
20736 fi
20737  if $have_gobject; then
20738   HAVE_GOBJECT_TRUE=
20739   HAVE_GOBJECT_FALSE='#'
20740 else
20741   HAVE_GOBJECT_TRUE='#'
20742   HAVE_GOBJECT_FALSE=
20743 fi
20744
20745
20746
20747
20748
20749 # Gobject-Introspection
20750 have_introspection=false
20751
20752         if $have_gobject; then
20753
20754
20755
20756                 # Check whether --enable-introspection was given.
20757 if test "${enable_introspection+set}" = set; then :
20758   enableval=$enable_introspection;
20759 else
20760   enable_introspection=auto
20761 fi
20762
20763
20764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20765 $as_echo_n "checking for gobject-introspection... " >&6; }
20766
20767         case $enable_introspection in #(
20768   no) :
20769             found_introspection="no (disabled, use --enable-introspection to enable)"
20770      ;; #(
20771       yes) :
20772             if test -n "$PKG_CONFIG" && \
20773     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20774   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20775   ac_status=$?
20776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777   test $ac_status = 0; }; then
20778   :
20779 else
20780   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20781 fi
20782         if test -n "$PKG_CONFIG" && \
20783     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20784   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20785   ac_status=$?
20786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20787   test $ac_status = 0; }; then
20788   found_introspection=yes
20789 else
20790   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20791 fi
20792      ;; #(
20793       auto) :
20794             if test -n "$PKG_CONFIG" && \
20795     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20796   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20797   ac_status=$?
20798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20799   test $ac_status = 0; }; then
20800   found_introspection=yes
20801 else
20802   found_introspection=no
20803 fi
20804                 enable_introspection=$found_introspection
20805      ;; #(
20806   *) :
20807                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20808      ;;
20809 esac
20810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20811 $as_echo "$found_introspection" >&6; }
20812
20813     INTROSPECTION_SCANNER=
20814     INTROSPECTION_COMPILER=
20815     INTROSPECTION_GENERATE=
20816     INTROSPECTION_GIRDIR=
20817     INTROSPECTION_TYPELIBDIR=
20818     if test "x$found_introspection" = "xyes"; then
20819        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20820        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20821        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20822        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
20823        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
20824        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20825        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20826        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20827     fi
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837      if test "x$found_introspection" = "xyes"; then
20838   HAVE_INTROSPECTION_TRUE=
20839   HAVE_INTROSPECTION_FALSE='#'
20840 else
20841   HAVE_INTROSPECTION_TRUE='#'
20842   HAVE_INTROSPECTION_FALSE=
20843 fi
20844
20845
20846
20847                 if test "x$found_introspection" = xyes; then
20848                         have_introspection=true
20849                 fi
20850         else
20851                  if false; then
20852   HAVE_INTROSPECTION_TRUE=
20853   HAVE_INTROSPECTION_FALSE='#'
20854 else
20855   HAVE_INTROSPECTION_TRUE='#'
20856   HAVE_INTROSPECTION_FALSE=
20857 fi
20858
20859         fi
20860
20861
20862
20863
20864 # Check whether --with-cairo was given.
20865 if test "${with_cairo+set}" = set; then :
20866   withval=$with_cairo;
20867 else
20868   with_cairo=auto
20869 fi
20870
20871 have_cairo=false
20872 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20873
20874 pkg_failed=no
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20876 $as_echo_n "checking for CAIRO... " >&6; }
20877
20878 if test -n "$CAIRO_CFLAGS"; then
20879     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20880  elif test -n "$PKG_CONFIG"; then
20881     if test -n "$PKG_CONFIG" && \
20882     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20883   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20884   ac_status=$?
20885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20886   test $ac_status = 0; }; then
20887   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20888                       test "x$?" != "x0" && pkg_failed=yes
20889 else
20890   pkg_failed=yes
20891 fi
20892  else
20893     pkg_failed=untried
20894 fi
20895 if test -n "$CAIRO_LIBS"; then
20896     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20897  elif test -n "$PKG_CONFIG"; then
20898     if test -n "$PKG_CONFIG" && \
20899     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20900   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20901   ac_status=$?
20902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20903   test $ac_status = 0; }; then
20904   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20905                       test "x$?" != "x0" && pkg_failed=yes
20906 else
20907   pkg_failed=yes
20908 fi
20909  else
20910     pkg_failed=untried
20911 fi
20912
20913
20914
20915 if test $pkg_failed = yes; then
20916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20917 $as_echo "no" >&6; }
20918
20919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20920         _pkg_short_errors_supported=yes
20921 else
20922         _pkg_short_errors_supported=no
20923 fi
20924         if test $_pkg_short_errors_supported = yes; then
20925                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20926         else
20927                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20928         fi
20929         # Put the nasty error message in config.log where it belongs
20930         echo "$CAIRO_PKG_ERRORS" >&5
20931
20932         :
20933 elif test $pkg_failed = untried; then
20934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20935 $as_echo "no" >&6; }
20936         :
20937 else
20938         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20939         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20941 $as_echo "yes" >&6; }
20942         have_cairo=true
20943 fi
20944 fi
20945 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20946         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20947 fi
20948 if $have_cairo; then
20949
20950 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20951
20952 fi
20953  if $have_cairo; then
20954   HAVE_CAIRO_TRUE=
20955   HAVE_CAIRO_FALSE='#'
20956 else
20957   HAVE_CAIRO_TRUE='#'
20958   HAVE_CAIRO_FALSE=
20959 fi
20960
20961
20962 have_cairo_ft=false
20963 if $have_cairo; then
20964
20965 pkg_failed=no
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20967 $as_echo_n "checking for CAIRO_FT... " >&6; }
20968
20969 if test -n "$CAIRO_FT_CFLAGS"; then
20970     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20971  elif test -n "$PKG_CONFIG"; then
20972     if test -n "$PKG_CONFIG" && \
20973     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20974   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20975   ac_status=$?
20976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977   test $ac_status = 0; }; then
20978   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20979                       test "x$?" != "x0" && pkg_failed=yes
20980 else
20981   pkg_failed=yes
20982 fi
20983  else
20984     pkg_failed=untried
20985 fi
20986 if test -n "$CAIRO_FT_LIBS"; then
20987     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20988  elif test -n "$PKG_CONFIG"; then
20989     if test -n "$PKG_CONFIG" && \
20990     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20991   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20992   ac_status=$?
20993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994   test $ac_status = 0; }; then
20995   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20996                       test "x$?" != "x0" && pkg_failed=yes
20997 else
20998   pkg_failed=yes
20999 fi
21000  else
21001     pkg_failed=untried
21002 fi
21003
21004
21005
21006 if test $pkg_failed = yes; then
21007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008 $as_echo "no" >&6; }
21009
21010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21011         _pkg_short_errors_supported=yes
21012 else
21013         _pkg_short_errors_supported=no
21014 fi
21015         if test $_pkg_short_errors_supported = yes; then
21016                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21017         else
21018                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21019         fi
21020         # Put the nasty error message in config.log where it belongs
21021         echo "$CAIRO_FT_PKG_ERRORS" >&5
21022
21023         :
21024 elif test $pkg_failed = untried; then
21025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21027         :
21028 else
21029         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21030         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21032 $as_echo "yes" >&6; }
21033         have_cairo_ft=true
21034 fi
21035 fi
21036 if $have_cairo_ft; then
21037
21038 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21039
21040 fi
21041  if $have_cairo_ft; then
21042   HAVE_CAIRO_FT_TRUE=
21043   HAVE_CAIRO_FT_FALSE='#'
21044 else
21045   HAVE_CAIRO_FT_TRUE='#'
21046   HAVE_CAIRO_FT_FALSE=
21047 fi
21048
21049
21050
21051
21052 # Check whether --with-fontconfig was given.
21053 if test "${with_fontconfig+set}" = set; then :
21054   withval=$with_fontconfig;
21055 else
21056   with_fontconfig=auto
21057 fi
21058
21059 have_fontconfig=false
21060 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
21061
21062 pkg_failed=no
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
21064 $as_echo_n "checking for FONTCONFIG... " >&6; }
21065
21066 if test -n "$FONTCONFIG_CFLAGS"; then
21067     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
21068  elif test -n "$PKG_CONFIG"; then
21069     if test -n "$PKG_CONFIG" && \
21070     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21071   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21072   ac_status=$?
21073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21074   test $ac_status = 0; }; then
21075   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
21076                       test "x$?" != "x0" && pkg_failed=yes
21077 else
21078   pkg_failed=yes
21079 fi
21080  else
21081     pkg_failed=untried
21082 fi
21083 if test -n "$FONTCONFIG_LIBS"; then
21084     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
21085  elif test -n "$PKG_CONFIG"; then
21086     if test -n "$PKG_CONFIG" && \
21087     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21088   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21089   ac_status=$?
21090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21091   test $ac_status = 0; }; then
21092   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
21093                       test "x$?" != "x0" && pkg_failed=yes
21094 else
21095   pkg_failed=yes
21096 fi
21097  else
21098     pkg_failed=untried
21099 fi
21100
21101
21102
21103 if test $pkg_failed = yes; then
21104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21105 $as_echo "no" >&6; }
21106
21107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21108         _pkg_short_errors_supported=yes
21109 else
21110         _pkg_short_errors_supported=no
21111 fi
21112         if test $_pkg_short_errors_supported = yes; then
21113                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
21114         else
21115                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
21116         fi
21117         # Put the nasty error message in config.log where it belongs
21118         echo "$FONTCONFIG_PKG_ERRORS" >&5
21119
21120         :
21121 elif test $pkg_failed = untried; then
21122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21124         :
21125 else
21126         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
21127         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
21128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21129 $as_echo "yes" >&6; }
21130         have_fontconfig=true
21131 fi
21132 fi
21133 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
21134         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
21135 fi
21136 if $have_fontconfig; then
21137
21138 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
21139
21140 fi
21141  if $have_fontconfig; then
21142   HAVE_FONTCONFIG_TRUE=
21143   HAVE_FONTCONFIG_FALSE='#'
21144 else
21145   HAVE_FONTCONFIG_TRUE='#'
21146   HAVE_FONTCONFIG_FALSE=
21147 fi
21148
21149
21150
21151
21152 # Check whether --with-icu was given.
21153 if test "${with_icu+set}" = set; then :
21154   withval=$with_icu;
21155 else
21156   with_icu=auto
21157 fi
21158
21159 have_icu=false
21160 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21161
21162 pkg_failed=no
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21164 $as_echo_n "checking for ICU... " >&6; }
21165
21166 if test -n "$ICU_CFLAGS"; then
21167     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21168  elif test -n "$PKG_CONFIG"; then
21169     if test -n "$PKG_CONFIG" && \
21170     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21171   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21172   ac_status=$?
21173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21174   test $ac_status = 0; }; then
21175   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21176                       test "x$?" != "x0" && pkg_failed=yes
21177 else
21178   pkg_failed=yes
21179 fi
21180  else
21181     pkg_failed=untried
21182 fi
21183 if test -n "$ICU_LIBS"; then
21184     pkg_cv_ICU_LIBS="$ICU_LIBS"
21185  elif test -n "$PKG_CONFIG"; then
21186     if test -n "$PKG_CONFIG" && \
21187     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21188   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21189   ac_status=$?
21190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21191   test $ac_status = 0; }; then
21192   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21193                       test "x$?" != "x0" && pkg_failed=yes
21194 else
21195   pkg_failed=yes
21196 fi
21197  else
21198     pkg_failed=untried
21199 fi
21200
21201
21202
21203 if test $pkg_failed = yes; then
21204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205 $as_echo "no" >&6; }
21206
21207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21208         _pkg_short_errors_supported=yes
21209 else
21210         _pkg_short_errors_supported=no
21211 fi
21212         if test $_pkg_short_errors_supported = yes; then
21213                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21214         else
21215                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21216         fi
21217         # Put the nasty error message in config.log where it belongs
21218         echo "$ICU_PKG_ERRORS" >&5
21219
21220         :
21221 elif test $pkg_failed = untried; then
21222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21223 $as_echo "no" >&6; }
21224         :
21225 else
21226         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21227         ICU_LIBS=$pkg_cv_ICU_LIBS
21228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229 $as_echo "yes" >&6; }
21230         have_icu=true
21231 fi
21232
21233                 if test "$have_icu" != "true"; then
21234                 if test -n "$ac_tool_prefix"; then
21235   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
21236 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21238 $as_echo_n "checking for $ac_word... " >&6; }
21239 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
21240   $as_echo_n "(cached) " >&6
21241 else
21242   if test -n "$ICU_CONFIG"; then
21243   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
21244 else
21245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21246 for as_dir in $PATH
21247 do
21248   IFS=$as_save_IFS
21249   test -z "$as_dir" && as_dir=.
21250     for ac_exec_ext in '' $ac_executable_extensions; do
21251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21252     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
21253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21254     break 2
21255   fi
21256 done
21257   done
21258 IFS=$as_save_IFS
21259
21260 fi
21261 fi
21262 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
21263 if test -n "$ICU_CONFIG"; then
21264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
21265 $as_echo "$ICU_CONFIG" >&6; }
21266 else
21267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21268 $as_echo "no" >&6; }
21269 fi
21270
21271
21272 fi
21273 if test -z "$ac_cv_prog_ICU_CONFIG"; then
21274   ac_ct_ICU_CONFIG=$ICU_CONFIG
21275   # Extract the first word of "icu-config", so it can be a program name with args.
21276 set dummy icu-config; ac_word=$2
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21278 $as_echo_n "checking for $ac_word... " >&6; }
21279 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
21280   $as_echo_n "(cached) " >&6
21281 else
21282   if test -n "$ac_ct_ICU_CONFIG"; then
21283   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
21284 else
21285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21287 do
21288   IFS=$as_save_IFS
21289   test -z "$as_dir" && as_dir=.
21290     for ac_exec_ext in '' $ac_executable_extensions; do
21291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21292     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
21293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21294     break 2
21295   fi
21296 done
21297   done
21298 IFS=$as_save_IFS
21299
21300 fi
21301 fi
21302 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
21303 if test -n "$ac_ct_ICU_CONFIG"; then
21304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
21305 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
21306 else
21307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21308 $as_echo "no" >&6; }
21309 fi
21310
21311   if test "x$ac_ct_ICU_CONFIG" = x; then
21312     ICU_CONFIG="no"
21313   else
21314     case $cross_compiling:$ac_tool_warned in
21315 yes:)
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21318 ac_tool_warned=yes ;;
21319 esac
21320     ICU_CONFIG=$ac_ct_ICU_CONFIG
21321   fi
21322 else
21323   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
21324 fi
21325
21326                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
21327 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
21328                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
21329                         have_icu=true
21330                         # We don't use --cflags as this gives us a lot of things that we don't
21331                         # necessarily want, like debugging and optimization flags
21332                         # See man (1) icu-config for more info.
21333                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
21334                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
21335
21336
21337                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21338 $as_echo "yes" >&6; }
21339                 else
21340                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21341 $as_echo "no" >&6; }
21342                 fi
21343         fi
21344 fi
21345 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21346         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21347 fi
21348
21349 if $have_icu; then
21350         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21351
21352 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21353
21354         if test "x$with_icu" = "xbuiltin"; then
21355
21356 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21357
21358         fi
21359 fi
21360  if $have_icu; then
21361   HAVE_ICU_TRUE=
21362   HAVE_ICU_FALSE='#'
21363 else
21364   HAVE_ICU_TRUE='#'
21365   HAVE_ICU_FALSE=
21366 fi
21367
21368  if $have_icu && test "x$with_icu" = "xbuiltin"; then
21369   HAVE_ICU_BUILTIN_TRUE=
21370   HAVE_ICU_BUILTIN_FALSE='#'
21371 else
21372   HAVE_ICU_BUILTIN_TRUE='#'
21373   HAVE_ICU_BUILTIN_FALSE=
21374 fi
21375
21376
21377
21378
21379 # Check whether --with-graphite2 was given.
21380 if test "${with_graphite2+set}" = set; then :
21381   withval=$with_graphite2;
21382 else
21383   with_graphite2=no
21384 fi
21385
21386 have_graphite2=false
21387 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21388
21389 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21390
21391 pkg_failed=no
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21393 $as_echo_n "checking for GRAPHITE2... " >&6; }
21394
21395 if test -n "$GRAPHITE2_CFLAGS"; then
21396     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21397  elif test -n "$PKG_CONFIG"; then
21398     if test -n "$PKG_CONFIG" && \
21399     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21400   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21401   ac_status=$?
21402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403   test $ac_status = 0; }; then
21404   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21405                       test "x$?" != "x0" && pkg_failed=yes
21406 else
21407   pkg_failed=yes
21408 fi
21409  else
21410     pkg_failed=untried
21411 fi
21412 if test -n "$GRAPHITE2_LIBS"; then
21413     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21414  elif test -n "$PKG_CONFIG"; then
21415     if test -n "$PKG_CONFIG" && \
21416     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21417   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21418   ac_status=$?
21419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21420   test $ac_status = 0; }; then
21421   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21422                       test "x$?" != "x0" && pkg_failed=yes
21423 else
21424   pkg_failed=yes
21425 fi
21426  else
21427     pkg_failed=untried
21428 fi
21429
21430
21431
21432 if test $pkg_failed = yes; then
21433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21435
21436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21437         _pkg_short_errors_supported=yes
21438 else
21439         _pkg_short_errors_supported=no
21440 fi
21441         if test $_pkg_short_errors_supported = yes; then
21442                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21443         else
21444                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21445         fi
21446         # Put the nasty error message in config.log where it belongs
21447         echo "$GRAPHITE2_PKG_ERRORS" >&5
21448
21449         :
21450 elif test $pkg_failed = untried; then
21451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21453         :
21454 else
21455         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21456         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21458 $as_echo "yes" >&6; }
21459         have_graphite2=true
21460 fi
21461         if test "x$have_graphite2" != "xtrue"; then
21462                 # If pkg-config is not available, graphite2 can still be there
21463                 ac_save_CFLAGS="$CFLAGS"
21464                 ac_save_CPPFLAGS="$CPPFLAGS"
21465                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21466                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21467                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21468 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21469   have_graphite2=true
21470 else
21471   :
21472 fi
21473
21474
21475                 CPPFLAGS="$ac_save_CPPFLAGS"
21476                 CFLAGS="$ac_save_CFLAGS"
21477         fi
21478 fi
21479 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21480         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21481 fi
21482 if $have_graphite2; then
21483
21484 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21485
21486 fi
21487  if $have_graphite2; then
21488   HAVE_GRAPHITE2_TRUE=
21489   HAVE_GRAPHITE2_FALSE='#'
21490 else
21491   HAVE_GRAPHITE2_TRUE='#'
21492   HAVE_GRAPHITE2_FALSE=
21493 fi
21494
21495
21496
21497
21498 # Check whether --with-freetype was given.
21499 if test "${with_freetype+set}" = set; then :
21500   withval=$with_freetype;
21501 else
21502   with_freetype=auto
21503 fi
21504
21505 have_freetype=false
21506 FREETYPE_DEPS="freetype2 >= 12.0.6"
21507
21508 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21509         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21510
21511 pkg_failed=no
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21513 $as_echo_n "checking for FREETYPE... " >&6; }
21514
21515 if test -n "$FREETYPE_CFLAGS"; then
21516     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21517  elif test -n "$PKG_CONFIG"; then
21518     if test -n "$PKG_CONFIG" && \
21519     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21520   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21521   ac_status=$?
21522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21523   test $ac_status = 0; }; then
21524   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21525                       test "x$?" != "x0" && pkg_failed=yes
21526 else
21527   pkg_failed=yes
21528 fi
21529  else
21530     pkg_failed=untried
21531 fi
21532 if test -n "$FREETYPE_LIBS"; then
21533     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21534  elif test -n "$PKG_CONFIG"; then
21535     if test -n "$PKG_CONFIG" && \
21536     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21537   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21538   ac_status=$?
21539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21540   test $ac_status = 0; }; then
21541   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21542                       test "x$?" != "x0" && pkg_failed=yes
21543 else
21544   pkg_failed=yes
21545 fi
21546  else
21547     pkg_failed=untried
21548 fi
21549
21550
21551
21552 if test $pkg_failed = yes; then
21553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 $as_echo "no" >&6; }
21555
21556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21557         _pkg_short_errors_supported=yes
21558 else
21559         _pkg_short_errors_supported=no
21560 fi
21561         if test $_pkg_short_errors_supported = yes; then
21562                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21563         else
21564                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21565         fi
21566         # Put the nasty error message in config.log where it belongs
21567         echo "$FREETYPE_PKG_ERRORS" >&5
21568
21569         :
21570 elif test $pkg_failed = untried; then
21571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 $as_echo "no" >&6; }
21573         :
21574 else
21575         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21576         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21578 $as_echo "yes" >&6; }
21579         have_freetype=true
21580 fi
21581 fi
21582 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21583         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21584 fi
21585 if $have_freetype; then
21586
21587 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21588
21589         save_libs=$LIBS
21590         LIBS="$LIBS $FREETYPE_LIBS"
21591         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21592 do :
21593   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21596   cat >>confdefs.h <<_ACEOF
21597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21598 _ACEOF
21599
21600 fi
21601 done
21602
21603         LIBS=$save_libs
21604 fi
21605  if $have_freetype; then
21606   HAVE_FREETYPE_TRUE=
21607   HAVE_FREETYPE_FALSE='#'
21608 else
21609   HAVE_FREETYPE_TRUE='#'
21610   HAVE_FREETYPE_FALSE=
21611 fi
21612
21613
21614
21615
21616 # Check whether --with-uniscribe was given.
21617 if test "${with_uniscribe+set}" = set; then :
21618   withval=$with_uniscribe;
21619 else
21620   with_uniscribe=no
21621 fi
21622
21623 have_uniscribe=false
21624 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21625         for ac_header in usp10.h windows.h
21626 do :
21627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21630   cat >>confdefs.h <<_ACEOF
21631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21632 _ACEOF
21633  have_uniscribe=true
21634 fi
21635
21636 done
21637
21638 fi
21639 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21640         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21641 fi
21642 if $have_uniscribe; then
21643         UNISCRIBE_CFLAGS=
21644         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21645
21646
21647
21648 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21649
21650 fi
21651  if $have_uniscribe; then
21652   HAVE_UNISCRIBE_TRUE=
21653   HAVE_UNISCRIBE_FALSE='#'
21654 else
21655   HAVE_UNISCRIBE_TRUE='#'
21656   HAVE_UNISCRIBE_FALSE=
21657 fi
21658
21659
21660
21661
21662 # Check whether --with-gdi was given.
21663 if test "${with_gdi+set}" = set; then :
21664   withval=$with_gdi;
21665 else
21666   with_gdi=no
21667 fi
21668
21669 have_gdi=false
21670 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21671         for ac_header in windows.h
21672 do :
21673   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21674 if test "x$ac_cv_header_windows_h" = xyes; then :
21675   cat >>confdefs.h <<_ACEOF
21676 #define HAVE_WINDOWS_H 1
21677 _ACEOF
21678  have_gdi=true
21679 fi
21680
21681 done
21682
21683 fi
21684 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21685         as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21686 fi
21687 if $have_gdi; then
21688         GDI_CFLAGS=
21689         GDI_LIBS="-lgdi32"
21690
21691
21692
21693 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21694
21695 fi
21696  if $have_gdi; then
21697   HAVE_GDI_TRUE=
21698   HAVE_GDI_FALSE='#'
21699 else
21700   HAVE_GDI_TRUE='#'
21701   HAVE_GDI_FALSE=
21702 fi
21703
21704
21705
21706
21707 # Check whether --with-directwrite was given.
21708 if test "${with_directwrite+set}" = set; then :
21709   withval=$with_directwrite;
21710 else
21711   with_directwrite=no
21712 fi
21713
21714 have_directwrite=false
21715 ac_ext=cpp
21716 ac_cpp='$CXXCPP $CPPFLAGS'
21717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21720
21721 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21722
21723 for ac_header in dwrite.h
21724 do :
21725   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21726 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21727   cat >>confdefs.h <<_ACEOF
21728 #define HAVE_DWRITE_H 1
21729 _ACEOF
21730  have_directwrite=true
21731 fi
21732
21733 done
21734
21735 fi
21736 ac_ext=c
21737 ac_cpp='$CPP $CPPFLAGS'
21738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21741
21742 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21743         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21744 fi
21745 if $have_directwrite; then
21746         DIRECTWRITE_CXXFLAGS=
21747         DIRECTWRITE_LIBS=
21748
21749
21750
21751 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21752
21753 fi
21754  if $have_directwrite; then
21755   HAVE_DIRECTWRITE_TRUE=
21756   HAVE_DIRECTWRITE_FALSE='#'
21757 else
21758   HAVE_DIRECTWRITE_TRUE='#'
21759   HAVE_DIRECTWRITE_FALSE=
21760 fi
21761
21762
21763
21764
21765 # Check whether --with-coretext was given.
21766 if test "${with_coretext+set}" = set; then :
21767   withval=$with_coretext;
21768 else
21769   with_coretext=no
21770 fi
21771
21772 have_coretext=false
21773 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21774         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21775 "
21776 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21777   have_coretext=true
21778 fi
21779
21780
21781         if $have_coretext; then
21782                 CORETEXT_CFLAGS=
21783                 CORETEXT_LIBS="-framework ApplicationServices"
21784
21785
21786         else
21787                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21788                 if test "x$have_coretext" != "xtrue"; then
21789                         # Check for a different symbol to avoid getting cached result.
21790                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21791 "
21792 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21793   have_coretext=true
21794 fi
21795
21796                 fi
21797
21798                 if $have_coretext; then
21799                         CORETEXT_CFLAGS=
21800                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21801
21802
21803                 fi
21804         fi
21805 fi
21806 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21807         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21808 fi
21809 if $have_coretext; then
21810
21811 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21812
21813 fi
21814  if $have_coretext; then
21815   HAVE_CORETEXT_TRUE=
21816   HAVE_CORETEXT_FALSE='#'
21817 else
21818   HAVE_CORETEXT_TRUE='#'
21819   HAVE_CORETEXT_FALSE=
21820 fi
21821
21822
21823
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21825 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21826 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21827   $as_echo_n "(cached) " >&6
21828 else
21829
21830         hb_cv_have_intel_atomic_primitives=false
21831         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h.  */
21833
21834                 void memory_barrier (void) { __sync_synchronize (); }
21835                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21836                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21837                 void mutex_unlock (int *m) { __sync_lock_release (m); }
21838
21839 int
21840 main ()
21841 {
21842
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 if ac_fn_c_try_link "$LINENO"; then :
21848   hb_cv_have_intel_atomic_primitives=true
21849
21850 fi
21851 rm -f core conftest.err conftest.$ac_objext \
21852     conftest$ac_exeext conftest.$ac_ext
21853
21854 fi
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21856 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21857 if $hb_cv_have_intel_atomic_primitives; then
21858
21859 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21860
21861 fi
21862
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21865 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21866 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869
21870         hb_cv_have_solaris_atomic_ops=false
21871         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873
21874                 #include <atomic.h>
21875                 /* This requires Solaris Studio 12.2 or newer: */
21876                 #include <mbarrier.h>
21877                 void memory_barrier (void) { __machine_rw_barrier (); }
21878                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21879                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21880
21881 int
21882 main ()
21883 {
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 if ac_fn_c_try_link "$LINENO"; then :
21890   hb_cv_have_solaris_atomic_ops=true
21891
21892 fi
21893 rm -f core conftest.err conftest.$ac_objext \
21894     conftest$ac_exeext conftest.$ac_ext
21895
21896 fi
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21898 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21899 if $hb_cv_have_solaris_atomic_ops; then
21900
21901 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21902
21903 fi
21904
21905 if test "$os_win32" = no && ! $have_pthread; then
21906         for ac_header in sched.h
21907 do :
21908   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21909 if test "x$ac_cv_header_sched_h" = xyes; then :
21910   cat >>confdefs.h <<_ACEOF
21911 #define HAVE_SCHED_H 1
21912 _ACEOF
21913
21914 fi
21915
21916 done
21917
21918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21919 $as_echo_n "checking for library containing sched_yield... " >&6; }
21920 if ${ac_cv_search_sched_yield+:} false; then :
21921   $as_echo_n "(cached) " >&6
21922 else
21923   ac_func_search_save_LIBS=$LIBS
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h.  */
21926
21927 /* Override any GCC internal prototype to avoid an error.
21928    Use char because int might match the return type of a GCC
21929    builtin and then its argument prototype would still apply.  */
21930 #ifdef __cplusplus
21931 extern "C"
21932 #endif
21933 char sched_yield ();
21934 int
21935 main ()
21936 {
21937 return sched_yield ();
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 for ac_lib in '' rt; do
21943   if test -z "$ac_lib"; then
21944     ac_res="none required"
21945   else
21946     ac_res=-l$ac_lib
21947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21948   fi
21949   if ac_fn_c_try_link "$LINENO"; then :
21950   ac_cv_search_sched_yield=$ac_res
21951 fi
21952 rm -f core conftest.err conftest.$ac_objext \
21953     conftest$ac_exeext
21954   if ${ac_cv_search_sched_yield+:} false; then :
21955   break
21956 fi
21957 done
21958 if ${ac_cv_search_sched_yield+:} false; then :
21959
21960 else
21961   ac_cv_search_sched_yield=no
21962 fi
21963 rm conftest.$ac_ext
21964 LIBS=$ac_func_search_save_LIBS
21965 fi
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21967 $as_echo "$ac_cv_search_sched_yield" >&6; }
21968 ac_res=$ac_cv_search_sched_yield
21969 if test "$ac_res" != no; then :
21970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21971
21972 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21973
21974 fi
21975
21976 fi
21977
21978
21979 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/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"
21980
21981
21982 cat >confcache <<\_ACEOF
21983 # This file is a shell script that caches the results of configure
21984 # tests run on this system so they can be shared between configure
21985 # scripts and configure runs, see configure's option --config-cache.
21986 # It is not useful on other systems.  If it contains results you don't
21987 # want to keep, you may remove or edit it.
21988 #
21989 # config.status only pays attention to the cache file if you give it
21990 # the --recheck option to rerun configure.
21991 #
21992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21994 # following values.
21995
21996 _ACEOF
21997
21998 # The following way of writing the cache mishandles newlines in values,
21999 # but we know of no workaround that is simple, portable, and efficient.
22000 # So, we kill variables containing newlines.
22001 # Ultrix sh set writes to stderr and can't be redirected directly,
22002 # and sets the high bit in the cache file unless we assign to the vars.
22003 (
22004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22005     eval ac_val=\$$ac_var
22006     case $ac_val in #(
22007     *${as_nl}*)
22008       case $ac_var in #(
22009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22011       esac
22012       case $ac_var in #(
22013       _ | IFS | as_nl) ;; #(
22014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22015       *) { eval $ac_var=; unset $ac_var;} ;;
22016       esac ;;
22017     esac
22018   done
22019
22020   (set) 2>&1 |
22021     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22022     *${as_nl}ac_space=\ *)
22023       # `set' does not quote correctly, so add quotes: double-quote
22024       # substitution turns \\\\ into \\, and sed turns \\ into \.
22025       sed -n \
22026         "s/'/'\\\\''/g;
22027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22028       ;; #(
22029     *)
22030       # `set' quotes correctly as required by POSIX, so do not add quotes.
22031       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22032       ;;
22033     esac |
22034     sort
22035 ) |
22036   sed '
22037      /^ac_cv_env_/b end
22038      t clear
22039      :clear
22040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22041      t end
22042      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22043      :end' >>confcache
22044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22045   if test -w "$cache_file"; then
22046     if test "x$cache_file" != "x/dev/null"; then
22047       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22048 $as_echo "$as_me: updating cache $cache_file" >&6;}
22049       if test ! -f "$cache_file" || test -h "$cache_file"; then
22050         cat confcache >"$cache_file"
22051       else
22052         case $cache_file in #(
22053         */* | ?:*)
22054           mv -f confcache "$cache_file"$$ &&
22055           mv -f "$cache_file"$$ "$cache_file" ;; #(
22056         *)
22057           mv -f confcache "$cache_file" ;;
22058         esac
22059       fi
22060     fi
22061   else
22062     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22064   fi
22065 fi
22066 rm -f confcache
22067
22068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22069 # Let make expand exec_prefix.
22070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22071
22072 DEFS=-DHAVE_CONFIG_H
22073
22074 ac_libobjs=
22075 ac_ltlibobjs=
22076 U=
22077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22078   # 1. Remove the extension, and $U if already installed.
22079   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22080   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22081   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22082   #    will be set to the directory where LIBOBJS objects are built.
22083   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22084   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22085 done
22086 LIBOBJS=$ac_libobjs
22087
22088 LTLIBOBJS=$ac_ltlibobjs
22089
22090
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22092 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22093    if test -n "$am_sleep_pid"; then
22094      # Hide warnings about reused PIDs.
22095      wait $am_sleep_pid 2>/dev/null
22096    fi
22097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22098 $as_echo "done" >&6; }
22099  if test -n "$EXEEXT"; then
22100   am__EXEEXT_TRUE=
22101   am__EXEEXT_FALSE='#'
22102 else
22103   am__EXEEXT_TRUE='#'
22104   am__EXEEXT_FALSE=
22105 fi
22106
22107 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
22108   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
22109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22110 fi
22111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22112   as_fn_error $? "conditional \"AMDEP\" was never defined.
22113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22114 fi
22115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22116   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22118 fi
22119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22120   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22122 fi
22123 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22124   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22126 fi
22127 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22128   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22130 fi
22131 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22132   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22134 fi
22135 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22136   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22138 fi
22139 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22140   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22142 fi
22143 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22144   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22146 fi
22147 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22148   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22150 fi
22151 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22152   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22154 fi
22155 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22156   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22158 fi
22159 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22160   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22162 fi
22163 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22164   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22166 fi
22167 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22168   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22170 fi
22171 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22172   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22174 fi
22175 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22176   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22178 fi
22179 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22180   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22182 fi
22183 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22184   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22186 fi
22187 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22188   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22190 fi
22191 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
22192   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
22193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22194 fi
22195 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22196   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22198 fi
22199 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22200   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22202 fi
22203 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22204   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22206 fi
22207 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22208   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22210 fi
22211 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22212   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22214 fi
22215 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22216   as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22218 fi
22219 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22220   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22222 fi
22223 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22224   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22226 fi
22227
22228 : "${CONFIG_STATUS=./config.status}"
22229 ac_write_fail=0
22230 ac_clean_files_save=$ac_clean_files
22231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22234 as_write_fail=0
22235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22236 #! $SHELL
22237 # Generated by $as_me.
22238 # Run this file to recreate the current configuration.
22239 # Compiler output produced by configure, useful for debugging
22240 # configure, is in config.log if it exists.
22241
22242 debug=false
22243 ac_cs_recheck=false
22244 ac_cs_silent=false
22245
22246 SHELL=\${CONFIG_SHELL-$SHELL}
22247 export SHELL
22248 _ASEOF
22249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22250 ## -------------------- ##
22251 ## M4sh Initialization. ##
22252 ## -------------------- ##
22253
22254 # Be more Bourne compatible
22255 DUALCASE=1; export DUALCASE # for MKS sh
22256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22257   emulate sh
22258   NULLCMD=:
22259   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22260   # is contrary to our usage.  Disable this feature.
22261   alias -g '${1+"$@"}'='"$@"'
22262   setopt NO_GLOB_SUBST
22263 else
22264   case `(set -o) 2>/dev/null` in #(
22265   *posix*) :
22266     set -o posix ;; #(
22267   *) :
22268      ;;
22269 esac
22270 fi
22271
22272
22273 as_nl='
22274 '
22275 export as_nl
22276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22280 # Prefer a ksh shell builtin over an external printf program on Solaris,
22281 # but without wasting forks for bash or zsh.
22282 if test -z "$BASH_VERSION$ZSH_VERSION" \
22283     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22284   as_echo='print -r --'
22285   as_echo_n='print -rn --'
22286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22287   as_echo='printf %s\n'
22288   as_echo_n='printf %s'
22289 else
22290   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22291     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22292     as_echo_n='/usr/ucb/echo -n'
22293   else
22294     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22295     as_echo_n_body='eval
22296       arg=$1;
22297       case $arg in #(
22298       *"$as_nl"*)
22299         expr "X$arg" : "X\\(.*\\)$as_nl";
22300         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22301       esac;
22302       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22303     '
22304     export as_echo_n_body
22305     as_echo_n='sh -c $as_echo_n_body as_echo'
22306   fi
22307   export as_echo_body
22308   as_echo='sh -c $as_echo_body as_echo'
22309 fi
22310
22311 # The user is always right.
22312 if test "${PATH_SEPARATOR+set}" != set; then
22313   PATH_SEPARATOR=:
22314   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22315     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22316       PATH_SEPARATOR=';'
22317   }
22318 fi
22319
22320
22321 # IFS
22322 # We need space, tab and new line, in precisely that order.  Quoting is
22323 # there to prevent editors from complaining about space-tab.
22324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22325 # splitting by setting IFS to empty value.)
22326 IFS=" ""        $as_nl"
22327
22328 # Find who we are.  Look in the path if we contain no directory separator.
22329 as_myself=
22330 case $0 in #((
22331   *[\\/]* ) as_myself=$0 ;;
22332   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22333 for as_dir in $PATH
22334 do
22335   IFS=$as_save_IFS
22336   test -z "$as_dir" && as_dir=.
22337     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22338   done
22339 IFS=$as_save_IFS
22340
22341      ;;
22342 esac
22343 # We did not find ourselves, most probably we were run as `sh COMMAND'
22344 # in which case we are not to be found in the path.
22345 if test "x$as_myself" = x; then
22346   as_myself=$0
22347 fi
22348 if test ! -f "$as_myself"; then
22349   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22350   exit 1
22351 fi
22352
22353 # Unset variables that we do not need and which cause bugs (e.g. in
22354 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22355 # suppresses any "Segmentation fault" message there.  '((' could
22356 # trigger a bug in pdksh 5.2.14.
22357 for as_var in BASH_ENV ENV MAIL MAILPATH
22358 do eval test x\${$as_var+set} = xset \
22359   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22360 done
22361 PS1='$ '
22362 PS2='> '
22363 PS4='+ '
22364
22365 # NLS nuisances.
22366 LC_ALL=C
22367 export LC_ALL
22368 LANGUAGE=C
22369 export LANGUAGE
22370
22371 # CDPATH.
22372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22373
22374
22375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22376 # ----------------------------------------
22377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22379 # script with STATUS, using 1 if that was 0.
22380 as_fn_error ()
22381 {
22382   as_status=$1; test $as_status -eq 0 && as_status=1
22383   if test "$4"; then
22384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22386   fi
22387   $as_echo "$as_me: error: $2" >&2
22388   as_fn_exit $as_status
22389 } # as_fn_error
22390
22391
22392 # as_fn_set_status STATUS
22393 # -----------------------
22394 # Set $? to STATUS, without forking.
22395 as_fn_set_status ()
22396 {
22397   return $1
22398 } # as_fn_set_status
22399
22400 # as_fn_exit STATUS
22401 # -----------------
22402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22403 as_fn_exit ()
22404 {
22405   set +e
22406   as_fn_set_status $1
22407   exit $1
22408 } # as_fn_exit
22409
22410 # as_fn_unset VAR
22411 # ---------------
22412 # Portably unset VAR.
22413 as_fn_unset ()
22414 {
22415   { eval $1=; unset $1;}
22416 }
22417 as_unset=as_fn_unset
22418 # as_fn_append VAR VALUE
22419 # ----------------------
22420 # Append the text in VALUE to the end of the definition contained in VAR. Take
22421 # advantage of any shell optimizations that allow amortized linear growth over
22422 # repeated appends, instead of the typical quadratic growth present in naive
22423 # implementations.
22424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22425   eval 'as_fn_append ()
22426   {
22427     eval $1+=\$2
22428   }'
22429 else
22430   as_fn_append ()
22431   {
22432     eval $1=\$$1\$2
22433   }
22434 fi # as_fn_append
22435
22436 # as_fn_arith ARG...
22437 # ------------------
22438 # Perform arithmetic evaluation on the ARGs, and store the result in the
22439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22440 # must be portable across $(()) and expr.
22441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22442   eval 'as_fn_arith ()
22443   {
22444     as_val=$(( $* ))
22445   }'
22446 else
22447   as_fn_arith ()
22448   {
22449     as_val=`expr "$@" || test $? -eq 1`
22450   }
22451 fi # as_fn_arith
22452
22453
22454 if expr a : '\(a\)' >/dev/null 2>&1 &&
22455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22456   as_expr=expr
22457 else
22458   as_expr=false
22459 fi
22460
22461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22462   as_basename=basename
22463 else
22464   as_basename=false
22465 fi
22466
22467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22468   as_dirname=dirname
22469 else
22470   as_dirname=false
22471 fi
22472
22473 as_me=`$as_basename -- "$0" ||
22474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22475          X"$0" : 'X\(//\)$' \| \
22476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22477 $as_echo X/"$0" |
22478     sed '/^.*\/\([^/][^/]*\)\/*$/{
22479             s//\1/
22480             q
22481           }
22482           /^X\/\(\/\/\)$/{
22483             s//\1/
22484             q
22485           }
22486           /^X\/\(\/\).*/{
22487             s//\1/
22488             q
22489           }
22490           s/.*/./; q'`
22491
22492 # Avoid depending upon Character Ranges.
22493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22496 as_cr_digits='0123456789'
22497 as_cr_alnum=$as_cr_Letters$as_cr_digits
22498
22499 ECHO_C= ECHO_N= ECHO_T=
22500 case `echo -n x` in #(((((
22501 -n*)
22502   case `echo 'xy\c'` in
22503   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22504   xy)  ECHO_C='\c';;
22505   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22506        ECHO_T=' ';;
22507   esac;;
22508 *)
22509   ECHO_N='-n';;
22510 esac
22511
22512 rm -f conf$$ conf$$.exe conf$$.file
22513 if test -d conf$$.dir; then
22514   rm -f conf$$.dir/conf$$.file
22515 else
22516   rm -f conf$$.dir
22517   mkdir conf$$.dir 2>/dev/null
22518 fi
22519 if (echo >conf$$.file) 2>/dev/null; then
22520   if ln -s conf$$.file conf$$ 2>/dev/null; then
22521     as_ln_s='ln -s'
22522     # ... but there are two gotchas:
22523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22525     # In both cases, we have to default to `cp -pR'.
22526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22527       as_ln_s='cp -pR'
22528   elif ln conf$$.file conf$$ 2>/dev/null; then
22529     as_ln_s=ln
22530   else
22531     as_ln_s='cp -pR'
22532   fi
22533 else
22534   as_ln_s='cp -pR'
22535 fi
22536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22537 rmdir conf$$.dir 2>/dev/null
22538
22539
22540 # as_fn_mkdir_p
22541 # -------------
22542 # Create "$as_dir" as a directory, including parents if necessary.
22543 as_fn_mkdir_p ()
22544 {
22545
22546   case $as_dir in #(
22547   -*) as_dir=./$as_dir;;
22548   esac
22549   test -d "$as_dir" || eval $as_mkdir_p || {
22550     as_dirs=
22551     while :; do
22552       case $as_dir in #(
22553       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22554       *) as_qdir=$as_dir;;
22555       esac
22556       as_dirs="'$as_qdir' $as_dirs"
22557       as_dir=`$as_dirname -- "$as_dir" ||
22558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559          X"$as_dir" : 'X\(//\)[^/]' \| \
22560          X"$as_dir" : 'X\(//\)$' \| \
22561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22562 $as_echo X"$as_dir" |
22563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22564             s//\1/
22565             q
22566           }
22567           /^X\(\/\/\)[^/].*/{
22568             s//\1/
22569             q
22570           }
22571           /^X\(\/\/\)$/{
22572             s//\1/
22573             q
22574           }
22575           /^X\(\/\).*/{
22576             s//\1/
22577             q
22578           }
22579           s/.*/./; q'`
22580       test -d "$as_dir" && break
22581     done
22582     test -z "$as_dirs" || eval "mkdir $as_dirs"
22583   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22584
22585
22586 } # as_fn_mkdir_p
22587 if mkdir -p . 2>/dev/null; then
22588   as_mkdir_p='mkdir -p "$as_dir"'
22589 else
22590   test -d ./-p && rmdir ./-p
22591   as_mkdir_p=false
22592 fi
22593
22594
22595 # as_fn_executable_p FILE
22596 # -----------------------
22597 # Test if FILE is an executable regular file.
22598 as_fn_executable_p ()
22599 {
22600   test -f "$1" && test -x "$1"
22601 } # as_fn_executable_p
22602 as_test_x='test -x'
22603 as_executable_p=as_fn_executable_p
22604
22605 # Sed expression to map a string onto a valid CPP name.
22606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22607
22608 # Sed expression to map a string onto a valid variable name.
22609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22610
22611
22612 exec 6>&1
22613 ## ----------------------------------- ##
22614 ## Main body of $CONFIG_STATUS script. ##
22615 ## ----------------------------------- ##
22616 _ASEOF
22617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22618
22619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22620 # Save the log message, to keep $0 and so on meaningful, and to
22621 # report actual input values of CONFIG_FILES etc. instead of their
22622 # values after options handling.
22623 ac_log="
22624 This file was extended by HarfBuzz $as_me 2.6.4, which was
22625 generated by GNU Autoconf 2.69.  Invocation command line was
22626
22627   CONFIG_FILES    = $CONFIG_FILES
22628   CONFIG_HEADERS  = $CONFIG_HEADERS
22629   CONFIG_LINKS    = $CONFIG_LINKS
22630   CONFIG_COMMANDS = $CONFIG_COMMANDS
22631   $ $0 $@
22632
22633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22634 "
22635
22636 _ACEOF
22637
22638 case $ac_config_files in *"
22639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22640 esac
22641
22642 case $ac_config_headers in *"
22643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22644 esac
22645
22646
22647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22648 # Files that config.status was made for.
22649 config_files="$ac_config_files"
22650 config_headers="$ac_config_headers"
22651 config_commands="$ac_config_commands"
22652
22653 _ACEOF
22654
22655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22656 ac_cs_usage="\
22657 \`$as_me' instantiates files and other configuration actions
22658 from templates according to the current configuration.  Unless the files
22659 and actions are specified as TAGs, all are instantiated by default.
22660
22661 Usage: $0 [OPTION]... [TAG]...
22662
22663   -h, --help       print this help, then exit
22664   -V, --version    print version number and configuration settings, then exit
22665       --config     print configuration, then exit
22666   -q, --quiet, --silent
22667                    do not print progress messages
22668   -d, --debug      don't remove temporary files
22669       --recheck    update $as_me by reconfiguring in the same conditions
22670       --file=FILE[:TEMPLATE]
22671                    instantiate the configuration file FILE
22672       --header=FILE[:TEMPLATE]
22673                    instantiate the configuration header FILE
22674
22675 Configuration files:
22676 $config_files
22677
22678 Configuration headers:
22679 $config_headers
22680
22681 Configuration commands:
22682 $config_commands
22683
22684 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22685 HarfBuzz home page: <http://harfbuzz.org/>."
22686
22687 _ACEOF
22688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22690 ac_cs_version="\\
22691 HarfBuzz config.status 2.6.4
22692 configured by $0, generated by GNU Autoconf 2.69,
22693   with options \\"\$ac_cs_config\\"
22694
22695 Copyright (C) 2012 Free Software Foundation, Inc.
22696 This config.status script is free software; the Free Software Foundation
22697 gives unlimited permission to copy, distribute and modify it."
22698
22699 ac_pwd='$ac_pwd'
22700 srcdir='$srcdir'
22701 INSTALL='$INSTALL'
22702 MKDIR_P='$MKDIR_P'
22703 AWK='$AWK'
22704 test -n "\$AWK" || AWK=awk
22705 _ACEOF
22706
22707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22708 # The default lists apply if the user does not specify any file.
22709 ac_need_defaults=:
22710 while test $# != 0
22711 do
22712   case $1 in
22713   --*=?*)
22714     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22715     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22716     ac_shift=:
22717     ;;
22718   --*=)
22719     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22720     ac_optarg=
22721     ac_shift=:
22722     ;;
22723   *)
22724     ac_option=$1
22725     ac_optarg=$2
22726     ac_shift=shift
22727     ;;
22728   esac
22729
22730   case $ac_option in
22731   # Handling of the options.
22732   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22733     ac_cs_recheck=: ;;
22734   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22735     $as_echo "$ac_cs_version"; exit ;;
22736   --config | --confi | --conf | --con | --co | --c )
22737     $as_echo "$ac_cs_config"; exit ;;
22738   --debug | --debu | --deb | --de | --d | -d )
22739     debug=: ;;
22740   --file | --fil | --fi | --f )
22741     $ac_shift
22742     case $ac_optarg in
22743     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22744     '') as_fn_error $? "missing file argument" ;;
22745     esac
22746     as_fn_append CONFIG_FILES " '$ac_optarg'"
22747     ac_need_defaults=false;;
22748   --header | --heade | --head | --hea )
22749     $ac_shift
22750     case $ac_optarg in
22751     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22752     esac
22753     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22754     ac_need_defaults=false;;
22755   --he | --h)
22756     # Conflict between --help and --header
22757     as_fn_error $? "ambiguous option: \`$1'
22758 Try \`$0 --help' for more information.";;
22759   --help | --hel | -h )
22760     $as_echo "$ac_cs_usage"; exit ;;
22761   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22762   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22763     ac_cs_silent=: ;;
22764
22765   # This is an error.
22766   -*) as_fn_error $? "unrecognized option: \`$1'
22767 Try \`$0 --help' for more information." ;;
22768
22769   *) as_fn_append ac_config_targets " $1"
22770      ac_need_defaults=false ;;
22771
22772   esac
22773   shift
22774 done
22775
22776 ac_configure_extra_args=
22777
22778 if $ac_cs_silent; then
22779   exec 6>/dev/null
22780   ac_configure_extra_args="$ac_configure_extra_args --silent"
22781 fi
22782
22783 _ACEOF
22784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22785 if \$ac_cs_recheck; then
22786   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22787   shift
22788   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22789   CONFIG_SHELL='$SHELL'
22790   export CONFIG_SHELL
22791   exec "\$@"
22792 fi
22793
22794 _ACEOF
22795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22796 exec 5>>config.log
22797 {
22798   echo
22799   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22800 ## Running $as_me. ##
22801 _ASBOX
22802   $as_echo "$ac_log"
22803 } >&5
22804
22805 _ACEOF
22806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22807 #
22808 # INIT-COMMANDS
22809 #
22810 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22811
22812
22813 # The HP-UX ksh and POSIX shell print the target directory to stdout
22814 # if CDPATH is set.
22815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22816
22817 sed_quote_subst='$sed_quote_subst'
22818 double_quote_subst='$double_quote_subst'
22819 delay_variable_subst='$delay_variable_subst'
22820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22826 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22829 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22850 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22851 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22852 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22853 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22854 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22855 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22856 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22857 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22858 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22859 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22876 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22878 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"`'
22879 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22882 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22883 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22884 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22885 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22887 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22888 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22889 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22890 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22891 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22892 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22893 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22894 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22895 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22896 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22897 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22898 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22899 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22900 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22901 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22902 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22903 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22904 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22905 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22906 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22907 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22908 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22909 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22910 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22911 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22912 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22913 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22914 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22915 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22916 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22917 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22918 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22919 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22920 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22921 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22922 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22928 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22929 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22930 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22931 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22932 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22933 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22934 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22935 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22936 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22937 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22938 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22939 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22940 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22941 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22942 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22943 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22944 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22945 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22946 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22947 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22948 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22949 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22950 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22951 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22952 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22953 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22954 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22955 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22956 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22957 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22958 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22959 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22960 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22961 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22962 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22963 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22964 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22965 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22966 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22967 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22968 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22969 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22970 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22971 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22972 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22973 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22974 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22975 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22976 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22977 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22978 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22979 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22980 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22981 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22982 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22983 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22984 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22985 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22986 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22987 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22988 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22989 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22990 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22991 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22992 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22993 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22994 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22995 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22996 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22997 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22998 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22999 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23000 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23001 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23002 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23003 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23004 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23005 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23006 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23007 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23008 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23009
23010 LTCC='$LTCC'
23011 LTCFLAGS='$LTCFLAGS'
23012 compiler='$compiler_DEFAULT'
23013
23014 # A function that is used when there is no print builtin or printf.
23015 func_fallback_echo ()
23016 {
23017   eval 'cat <<_LTECHO_EOF
23018 \$1
23019 _LTECHO_EOF'
23020 }
23021
23022 # Quote evaled strings.
23023 for var in SHELL \
23024 ECHO \
23025 PATH_SEPARATOR \
23026 SED \
23027 GREP \
23028 EGREP \
23029 FGREP \
23030 LD \
23031 NM \
23032 LN_S \
23033 lt_SP2NL \
23034 lt_NL2SP \
23035 reload_flag \
23036 OBJDUMP \
23037 deplibs_check_method \
23038 file_magic_cmd \
23039 file_magic_glob \
23040 want_nocaseglob \
23041 DLLTOOL \
23042 sharedlib_from_linklib_cmd \
23043 AR \
23044 AR_FLAGS \
23045 archiver_list_spec \
23046 STRIP \
23047 RANLIB \
23048 CC \
23049 CFLAGS \
23050 compiler \
23051 lt_cv_sys_global_symbol_pipe \
23052 lt_cv_sys_global_symbol_to_cdecl \
23053 lt_cv_sys_global_symbol_to_import \
23054 lt_cv_sys_global_symbol_to_c_name_address \
23055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23056 lt_cv_nm_interface \
23057 nm_file_list_spec \
23058 lt_cv_truncate_bin \
23059 lt_prog_compiler_no_builtin_flag \
23060 lt_prog_compiler_pic \
23061 lt_prog_compiler_wl \
23062 lt_prog_compiler_static \
23063 lt_cv_prog_compiler_c_o \
23064 need_locks \
23065 MANIFEST_TOOL \
23066 DSYMUTIL \
23067 NMEDIT \
23068 LIPO \
23069 OTOOL \
23070 OTOOL64 \
23071 shrext_cmds \
23072 export_dynamic_flag_spec \
23073 whole_archive_flag_spec \
23074 compiler_needs_object \
23075 with_gnu_ld \
23076 allow_undefined_flag \
23077 no_undefined_flag \
23078 hardcode_libdir_flag_spec \
23079 hardcode_libdir_separator \
23080 exclude_expsyms \
23081 include_expsyms \
23082 file_list_spec \
23083 variables_saved_for_relink \
23084 libname_spec \
23085 library_names_spec \
23086 soname_spec \
23087 install_override_mode \
23088 finish_eval \
23089 old_striplib \
23090 striplib \
23091 compiler_lib_search_dirs \
23092 predep_objects \
23093 postdep_objects \
23094 predeps \
23095 postdeps \
23096 compiler_lib_search_path \
23097 LD_CXX \
23098 reload_flag_CXX \
23099 compiler_CXX \
23100 lt_prog_compiler_no_builtin_flag_CXX \
23101 lt_prog_compiler_pic_CXX \
23102 lt_prog_compiler_wl_CXX \
23103 lt_prog_compiler_static_CXX \
23104 lt_cv_prog_compiler_c_o_CXX \
23105 export_dynamic_flag_spec_CXX \
23106 whole_archive_flag_spec_CXX \
23107 compiler_needs_object_CXX \
23108 with_gnu_ld_CXX \
23109 allow_undefined_flag_CXX \
23110 no_undefined_flag_CXX \
23111 hardcode_libdir_flag_spec_CXX \
23112 hardcode_libdir_separator_CXX \
23113 exclude_expsyms_CXX \
23114 include_expsyms_CXX \
23115 file_list_spec_CXX \
23116 compiler_lib_search_dirs_CXX \
23117 predep_objects_CXX \
23118 postdep_objects_CXX \
23119 predeps_CXX \
23120 postdeps_CXX \
23121 compiler_lib_search_path_CXX; do
23122     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23123     *[\\\\\\\`\\"\\\$]*)
23124       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23125       ;;
23126     *)
23127       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23128       ;;
23129     esac
23130 done
23131
23132 # Double-quote double-evaled strings.
23133 for var in reload_cmds \
23134 old_postinstall_cmds \
23135 old_postuninstall_cmds \
23136 old_archive_cmds \
23137 extract_expsyms_cmds \
23138 old_archive_from_new_cmds \
23139 old_archive_from_expsyms_cmds \
23140 archive_cmds \
23141 archive_expsym_cmds \
23142 module_cmds \
23143 module_expsym_cmds \
23144 export_symbols_cmds \
23145 prelink_cmds \
23146 postlink_cmds \
23147 postinstall_cmds \
23148 postuninstall_cmds \
23149 finish_cmds \
23150 sys_lib_search_path_spec \
23151 configure_time_dlsearch_path \
23152 configure_time_lt_sys_library_path \
23153 reload_cmds_CXX \
23154 old_archive_cmds_CXX \
23155 old_archive_from_new_cmds_CXX \
23156 old_archive_from_expsyms_cmds_CXX \
23157 archive_cmds_CXX \
23158 archive_expsym_cmds_CXX \
23159 module_cmds_CXX \
23160 module_expsym_cmds_CXX \
23161 export_symbols_cmds_CXX \
23162 prelink_cmds_CXX \
23163 postlink_cmds_CXX; do
23164     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23165     *[\\\\\\\`\\"\\\$]*)
23166       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23167       ;;
23168     *)
23169       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23170       ;;
23171     esac
23172 done
23173
23174 ac_aux_dir='$ac_aux_dir'
23175
23176 # See if we are running on zsh, and set the options that allow our
23177 # commands through without removal of \ escapes INIT.
23178 if test -n "\${ZSH_VERSION+set}"; then
23179    setopt NO_GLOB_SUBST
23180 fi
23181
23182
23183     PACKAGE='$PACKAGE'
23184     VERSION='$VERSION'
23185     RM='$RM'
23186     ofile='$ofile'
23187
23188
23189
23190
23191
23192
23193 _ACEOF
23194
23195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23196
23197 # Handling of arguments.
23198 for ac_config_target in $ac_config_targets
23199 do
23200   case $ac_config_target in
23201     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23202     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23203     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23204     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23205     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23206     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23207     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23208     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23209     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23210     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23211     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
23212     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
23213     "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
23214     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
23215     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
23216     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23217     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23218     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23219     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23220
23221   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23222   esac
23223 done
23224
23225
23226 # If the user did not use the arguments to specify the items to instantiate,
23227 # then the envvar interface is used.  Set only those that are not.
23228 # We use the long form for the default assignment because of an extremely
23229 # bizarre bug on SunOS 4.1.3.
23230 if $ac_need_defaults; then
23231   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23232   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23233   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23234 fi
23235
23236 # Have a temporary directory for convenience.  Make it in the build tree
23237 # simply because there is no reason against having it here, and in addition,
23238 # creating and moving files from /tmp can sometimes cause problems.
23239 # Hook for its removal unless debugging.
23240 # Note that there is a small window in which the directory will not be cleaned:
23241 # after its creation but before its name has been assigned to `$tmp'.
23242 $debug ||
23243 {
23244   tmp= ac_tmp=
23245   trap 'exit_status=$?
23246   : "${ac_tmp:=$tmp}"
23247   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23248 ' 0
23249   trap 'as_fn_exit 1' 1 2 13 15
23250 }
23251 # Create a (secure) tmp directory for tmp files.
23252
23253 {
23254   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23255   test -d "$tmp"
23256 }  ||
23257 {
23258   tmp=./conf$$-$RANDOM
23259   (umask 077 && mkdir "$tmp")
23260 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23261 ac_tmp=$tmp
23262
23263 # Set up the scripts for CONFIG_FILES section.
23264 # No need to generate them if there are no CONFIG_FILES.
23265 # This happens for instance with `./config.status config.h'.
23266 if test -n "$CONFIG_FILES"; then
23267
23268
23269 ac_cr=`echo X | tr X '\015'`
23270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23271 # But we know of no other shell where ac_cr would be empty at this
23272 # point, so we can use a bashism as a fallback.
23273 if test "x$ac_cr" = x; then
23274   eval ac_cr=\$\'\\r\'
23275 fi
23276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23278   ac_cs_awk_cr='\\r'
23279 else
23280   ac_cs_awk_cr=$ac_cr
23281 fi
23282
23283 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23284 _ACEOF
23285
23286
23287 {
23288   echo "cat >conf$$subs.awk <<_ACEOF" &&
23289   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23290   echo "_ACEOF"
23291 } >conf$$subs.sh ||
23292   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23294 ac_delim='%!_!# '
23295 for ac_last_try in false false false false false :; do
23296   . ./conf$$subs.sh ||
23297     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23298
23299   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23300   if test $ac_delim_n = $ac_delim_num; then
23301     break
23302   elif $ac_last_try; then
23303     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23304   else
23305     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23306   fi
23307 done
23308 rm -f conf$$subs.sh
23309
23310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23311 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23312 _ACEOF
23313 sed -n '
23314 h
23315 s/^/S["/; s/!.*/"]=/
23316 p
23317 g
23318 s/^[^!]*!//
23319 :repl
23320 t repl
23321 s/'"$ac_delim"'$//
23322 t delim
23323 :nl
23324 h
23325 s/\(.\{148\}\)..*/\1/
23326 t more1
23327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23328 p
23329 n
23330 b repl
23331 :more1
23332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23333 p
23334 g
23335 s/.\{148\}//
23336 t nl
23337 :delim
23338 h
23339 s/\(.\{148\}\)..*/\1/
23340 t more2
23341 s/["\\]/\\&/g; s/^/"/; s/$/"/
23342 p
23343 b
23344 :more2
23345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23346 p
23347 g
23348 s/.\{148\}//
23349 t delim
23350 ' <conf$$subs.awk | sed '
23351 /^[^""]/{
23352   N
23353   s/\n//
23354 }
23355 ' >>$CONFIG_STATUS || ac_write_fail=1
23356 rm -f conf$$subs.awk
23357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23358 _ACAWK
23359 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23360   for (key in S) S_is_set[key] = 1
23361   FS = "\a"
23362
23363 }
23364 {
23365   line = $ 0
23366   nfields = split(line, field, "@")
23367   substed = 0
23368   len = length(field[1])
23369   for (i = 2; i < nfields; i++) {
23370     key = field[i]
23371     keylen = length(key)
23372     if (S_is_set[key]) {
23373       value = S[key]
23374       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23375       len += length(value) + length(field[++i])
23376       substed = 1
23377     } else
23378       len += 1 + keylen
23379   }
23380
23381   print line
23382 }
23383
23384 _ACAWK
23385 _ACEOF
23386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23388   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23389 else
23390   cat
23391 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23392   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23393 _ACEOF
23394
23395 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23396 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23397 # trailing colons and then remove the whole line if VPATH becomes empty
23398 # (actually we leave an empty line to preserve line numbers).
23399 if test "x$srcdir" = x.; then
23400   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23401 h
23402 s///
23403 s/^/:/
23404 s/[      ]*$/:/
23405 s/:\$(srcdir):/:/g
23406 s/:\${srcdir}:/:/g
23407 s/:@srcdir@:/:/g
23408 s/^:*//
23409 s/:*$//
23410 x
23411 s/\(=[   ]*\).*/\1/
23412 G
23413 s/\n//
23414 s/^[^=]*=[       ]*$//
23415 }'
23416 fi
23417
23418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23419 fi # test -n "$CONFIG_FILES"
23420
23421 # Set up the scripts for CONFIG_HEADERS section.
23422 # No need to generate them if there are no CONFIG_HEADERS.
23423 # This happens for instance with `./config.status Makefile'.
23424 if test -n "$CONFIG_HEADERS"; then
23425 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23426 BEGIN {
23427 _ACEOF
23428
23429 # Transform confdefs.h into an awk script `defines.awk', embedded as
23430 # here-document in config.status, that substitutes the proper values into
23431 # config.h.in to produce config.h.
23432
23433 # Create a delimiter string that does not exist in confdefs.h, to ease
23434 # handling of long lines.
23435 ac_delim='%!_!# '
23436 for ac_last_try in false false :; do
23437   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23438   if test -z "$ac_tt"; then
23439     break
23440   elif $ac_last_try; then
23441     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23442   else
23443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23444   fi
23445 done
23446
23447 # For the awk script, D is an array of macro values keyed by name,
23448 # likewise P contains macro parameters if any.  Preserve backslash
23449 # newline sequences.
23450
23451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23452 sed -n '
23453 s/.\{148\}/&'"$ac_delim"'/g
23454 t rset
23455 :rset
23456 s/^[     ]*#[    ]*define[       ][      ]*/ /
23457 t def
23458 d
23459 :def
23460 s/\\$//
23461 t bsnl
23462 s/["\\]/\\&/g
23463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23464 D["\1"]=" \3"/p
23465 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23466 d
23467 :bsnl
23468 s/["\\]/\\&/g
23469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23470 D["\1"]=" \3\\\\\\n"\\/p
23471 t cont
23472 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23473 t cont
23474 d
23475 :cont
23476 n
23477 s/.\{148\}/&'"$ac_delim"'/g
23478 t clear
23479 :clear
23480 s/\\$//
23481 t bsnlc
23482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23483 d
23484 :bsnlc
23485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23486 b cont
23487 ' <confdefs.h | sed '
23488 s/'"$ac_delim"'/"\\\
23489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23490
23491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23492   for (key in D) D_is_set[key] = 1
23493   FS = "\a"
23494 }
23495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23496   line = \$ 0
23497   split(line, arg, " ")
23498   if (arg[1] == "#") {
23499     defundef = arg[2]
23500     mac1 = arg[3]
23501   } else {
23502     defundef = substr(arg[1], 2)
23503     mac1 = arg[2]
23504   }
23505   split(mac1, mac2, "(") #)
23506   macro = mac2[1]
23507   prefix = substr(line, 1, index(line, defundef) - 1)
23508   if (D_is_set[macro]) {
23509     # Preserve the white space surrounding the "#".
23510     print prefix "define", macro P[macro] D[macro]
23511     next
23512   } else {
23513     # Replace #undef with comments.  This is necessary, for example,
23514     # in the case of _POSIX_SOURCE, which is predefined and required
23515     # on some systems where configure will not decide to define it.
23516     if (defundef == "undef") {
23517       print "/*", prefix defundef, macro, "*/"
23518       next
23519     }
23520   }
23521 }
23522 { print }
23523 _ACAWK
23524 _ACEOF
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23527 fi # test -n "$CONFIG_HEADERS"
23528
23529
23530 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23531 shift
23532 for ac_tag
23533 do
23534   case $ac_tag in
23535   :[FHLC]) ac_mode=$ac_tag; continue;;
23536   esac
23537   case $ac_mode$ac_tag in
23538   :[FHL]*:*);;
23539   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23540   :[FH]-) ac_tag=-:-;;
23541   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23542   esac
23543   ac_save_IFS=$IFS
23544   IFS=:
23545   set x $ac_tag
23546   IFS=$ac_save_IFS
23547   shift
23548   ac_file=$1
23549   shift
23550
23551   case $ac_mode in
23552   :L) ac_source=$1;;
23553   :[FH])
23554     ac_file_inputs=
23555     for ac_f
23556     do
23557       case $ac_f in
23558       -) ac_f="$ac_tmp/stdin";;
23559       *) # Look for the file first in the build tree, then in the source tree
23560          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23561          # because $ac_f cannot contain `:'.
23562          test -f "$ac_f" ||
23563            case $ac_f in
23564            [\\/$]*) false;;
23565            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23566            esac ||
23567            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23568       esac
23569       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23570       as_fn_append ac_file_inputs " '$ac_f'"
23571     done
23572
23573     # Let's still pretend it is `configure' which instantiates (i.e., don't
23574     # use $as_me), people would be surprised to read:
23575     #    /* config.h.  Generated by config.status.  */
23576     configure_input='Generated from '`
23577           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23578         `' by configure.'
23579     if test x"$ac_file" != x-; then
23580       configure_input="$ac_file.  $configure_input"
23581       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23582 $as_echo "$as_me: creating $ac_file" >&6;}
23583     fi
23584     # Neutralize special characters interpreted by sed in replacement strings.
23585     case $configure_input in #(
23586     *\&* | *\|* | *\\* )
23587        ac_sed_conf_input=`$as_echo "$configure_input" |
23588        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23589     *) ac_sed_conf_input=$configure_input;;
23590     esac
23591
23592     case $ac_tag in
23593     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23594       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23595     esac
23596     ;;
23597   esac
23598
23599   ac_dir=`$as_dirname -- "$ac_file" ||
23600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23601          X"$ac_file" : 'X\(//\)[^/]' \| \
23602          X"$ac_file" : 'X\(//\)$' \| \
23603          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23604 $as_echo X"$ac_file" |
23605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23606             s//\1/
23607             q
23608           }
23609           /^X\(\/\/\)[^/].*/{
23610             s//\1/
23611             q
23612           }
23613           /^X\(\/\/\)$/{
23614             s//\1/
23615             q
23616           }
23617           /^X\(\/\).*/{
23618             s//\1/
23619             q
23620           }
23621           s/.*/./; q'`
23622   as_dir="$ac_dir"; as_fn_mkdir_p
23623   ac_builddir=.
23624
23625 case "$ac_dir" in
23626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23627 *)
23628   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23629   # A ".." for each directory in $ac_dir_suffix.
23630   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23631   case $ac_top_builddir_sub in
23632   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23633   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23634   esac ;;
23635 esac
23636 ac_abs_top_builddir=$ac_pwd
23637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23638 # for backward compatibility:
23639 ac_top_builddir=$ac_top_build_prefix
23640
23641 case $srcdir in
23642   .)  # We are building in place.
23643     ac_srcdir=.
23644     ac_top_srcdir=$ac_top_builddir_sub
23645     ac_abs_top_srcdir=$ac_pwd ;;
23646   [\\/]* | ?:[\\/]* )  # Absolute name.
23647     ac_srcdir=$srcdir$ac_dir_suffix;
23648     ac_top_srcdir=$srcdir
23649     ac_abs_top_srcdir=$srcdir ;;
23650   *) # Relative name.
23651     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23652     ac_top_srcdir=$ac_top_build_prefix$srcdir
23653     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23654 esac
23655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23656
23657
23658   case $ac_mode in
23659   :F)
23660   #
23661   # CONFIG_FILE
23662   #
23663
23664   case $INSTALL in
23665   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23666   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23667   esac
23668   ac_MKDIR_P=$MKDIR_P
23669   case $MKDIR_P in
23670   [\\/$]* | ?:[\\/]* ) ;;
23671   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23672   esac
23673 _ACEOF
23674
23675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23676 # If the template does not know about datarootdir, expand it.
23677 # FIXME: This hack should be removed a few years after 2.60.
23678 ac_datarootdir_hack=; ac_datarootdir_seen=
23679 ac_sed_dataroot='
23680 /datarootdir/ {
23681   p
23682   q
23683 }
23684 /@datadir@/p
23685 /@docdir@/p
23686 /@infodir@/p
23687 /@localedir@/p
23688 /@mandir@/p'
23689 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23690 *datarootdir*) ac_datarootdir_seen=yes;;
23691 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23692   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23693 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23694 _ACEOF
23695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23696   ac_datarootdir_hack='
23697   s&@datadir@&$datadir&g
23698   s&@docdir@&$docdir&g
23699   s&@infodir@&$infodir&g
23700   s&@localedir@&$localedir&g
23701   s&@mandir@&$mandir&g
23702   s&\\\${datarootdir}&$datarootdir&g' ;;
23703 esac
23704 _ACEOF
23705
23706 # Neutralize VPATH when `$srcdir' = `.'.
23707 # Shell code in configure.ac might set extrasub.
23708 # FIXME: do we really want to maintain this feature?
23709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23710 ac_sed_extra="$ac_vpsub
23711 $extrasub
23712 _ACEOF
23713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23714 :t
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23716 s|@configure_input@|$ac_sed_conf_input|;t t
23717 s&@top_builddir@&$ac_top_builddir_sub&;t t
23718 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23719 s&@srcdir@&$ac_srcdir&;t t
23720 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23721 s&@top_srcdir@&$ac_top_srcdir&;t t
23722 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23723 s&@builddir@&$ac_builddir&;t t
23724 s&@abs_builddir@&$ac_abs_builddir&;t t
23725 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23726 s&@INSTALL@&$ac_INSTALL&;t t
23727 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23728 $ac_datarootdir_hack
23729 "
23730 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23731   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23732
23733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23734   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23735   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23736       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23738 which seems to be undefined.  Please make sure it is defined" >&5
23739 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23740 which seems to be undefined.  Please make sure it is defined" >&2;}
23741
23742   rm -f "$ac_tmp/stdin"
23743   case $ac_file in
23744   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23745   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23746   esac \
23747   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23748  ;;
23749   :H)
23750   #
23751   # CONFIG_HEADER
23752   #
23753   if test x"$ac_file" != x-; then
23754     {
23755       $as_echo "/* $configure_input  */" \
23756       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23757     } >"$ac_tmp/config.h" \
23758       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23759     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23760       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23761 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23762     else
23763       rm -f "$ac_file"
23764       mv "$ac_tmp/config.h" "$ac_file" \
23765         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23766     fi
23767   else
23768     $as_echo "/* $configure_input  */" \
23769       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23770       || as_fn_error $? "could not create -" "$LINENO" 5
23771   fi
23772 # Compute "$ac_file"'s index in $config_headers.
23773 _am_arg="$ac_file"
23774 _am_stamp_count=1
23775 for _am_header in $config_headers :; do
23776   case $_am_header in
23777     $_am_arg | $_am_arg:* )
23778       break ;;
23779     * )
23780       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23781   esac
23782 done
23783 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23784 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785          X"$_am_arg" : 'X\(//\)[^/]' \| \
23786          X"$_am_arg" : 'X\(//\)$' \| \
23787          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23788 $as_echo X"$_am_arg" |
23789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23790             s//\1/
23791             q
23792           }
23793           /^X\(\/\/\)[^/].*/{
23794             s//\1/
23795             q
23796           }
23797           /^X\(\/\/\)$/{
23798             s//\1/
23799             q
23800           }
23801           /^X\(\/\).*/{
23802             s//\1/
23803             q
23804           }
23805           s/.*/./; q'`/stamp-h$_am_stamp_count
23806  ;;
23807
23808   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23809 $as_echo "$as_me: executing $ac_file commands" >&6;}
23810  ;;
23811   esac
23812
23813
23814   case $ac_file$ac_mode in
23815     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23816   # Older Autoconf quotes --file arguments for eval, but not when files
23817   # are listed without --file.  Let's play safe and only enable the eval
23818   # if we detect the quoting.
23819   # TODO: see whether this extra hack can be removed once we start
23820   # requiring Autoconf 2.70 or later.
23821   case $CONFIG_FILES in #(
23822   *\'*) :
23823     eval set x "$CONFIG_FILES" ;; #(
23824   *) :
23825     set x $CONFIG_FILES ;; #(
23826   *) :
23827      ;;
23828 esac
23829   shift
23830   # Used to flag and report bootstrapping failures.
23831   am_rc=0
23832   for am_mf
23833   do
23834     # Strip MF so we end up with the name of the file.
23835     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23836     # Check whether this is an Automake generated Makefile which includes
23837     # dependency-tracking related rules and includes.
23838     # Grep'ing the whole file directly is not great: AIX grep has a line
23839     # limit of 2048, but all sed's we know have understand at least 4000.
23840     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23841       || continue
23842     am_dirpart=`$as_dirname -- "$am_mf" ||
23843 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23844          X"$am_mf" : 'X\(//\)[^/]' \| \
23845          X"$am_mf" : 'X\(//\)$' \| \
23846          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23847 $as_echo X"$am_mf" |
23848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23849             s//\1/
23850             q
23851           }
23852           /^X\(\/\/\)[^/].*/{
23853             s//\1/
23854             q
23855           }
23856           /^X\(\/\/\)$/{
23857             s//\1/
23858             q
23859           }
23860           /^X\(\/\).*/{
23861             s//\1/
23862             q
23863           }
23864           s/.*/./; q'`
23865     am_filepart=`$as_basename -- "$am_mf" ||
23866 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23867          X"$am_mf" : 'X\(//\)$' \| \
23868          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23869 $as_echo X/"$am_mf" |
23870     sed '/^.*\/\([^/][^/]*\)\/*$/{
23871             s//\1/
23872             q
23873           }
23874           /^X\/\(\/\/\)$/{
23875             s//\1/
23876             q
23877           }
23878           /^X\/\(\/\).*/{
23879             s//\1/
23880             q
23881           }
23882           s/.*/./; q'`
23883     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23884       && sed -e '/# am--include-marker/d' "$am_filepart" \
23885         | $MAKE -f - am--depfiles" >&5
23886    (cd "$am_dirpart" \
23887       && sed -e '/# am--include-marker/d' "$am_filepart" \
23888         | $MAKE -f - am--depfiles) >&5 2>&5
23889    ac_status=$?
23890    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891    (exit $ac_status); } || am_rc=$?
23892   done
23893   if test $am_rc -ne 0; then
23894     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23896 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23897     for automatic dependency tracking.  Try re-running configure with the
23898     '--disable-dependency-tracking' option to at least be able to build
23899     the package (albeit without support for automatic dependency tracking).
23900 See \`config.log' for more details" "$LINENO" 5; }
23901   fi
23902   { am_dirpart=; unset am_dirpart;}
23903   { am_filepart=; unset am_filepart;}
23904   { am_mf=; unset am_mf;}
23905   { am_rc=; unset am_rc;}
23906   rm -f conftest-deps.mk
23907 }
23908  ;;
23909     "libtool":C)
23910
23911     # See if we are running on zsh, and set the options that allow our
23912     # commands through without removal of \ escapes.
23913     if test -n "${ZSH_VERSION+set}"; then
23914       setopt NO_GLOB_SUBST
23915     fi
23916
23917     cfgfile=${ofile}T
23918     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23919     $RM "$cfgfile"
23920
23921     cat <<_LT_EOF >> "$cfgfile"
23922 #! $SHELL
23923 # Generated automatically by $as_me ($PACKAGE) $VERSION
23924 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23926
23927 # Provide generalized library-building support services.
23928 # Written by Gordon Matzigkeit, 1996
23929
23930 # Copyright (C) 2014 Free Software Foundation, Inc.
23931 # This is free software; see the source for copying conditions.  There is NO
23932 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23933
23934 # GNU Libtool is free software; you can redistribute it and/or modify
23935 # it under the terms of the GNU General Public License as published by
23936 # the Free Software Foundation; either version 2 of of the License, or
23937 # (at your option) any later version.
23938 #
23939 # As a special exception to the GNU General Public License, if you
23940 # distribute this file as part of a program or library that is built
23941 # using GNU Libtool, you may include this file under the  same
23942 # distribution terms that you use for the rest of that program.
23943 #
23944 # GNU Libtool is distributed in the hope that it will be useful, but
23945 # WITHOUT ANY WARRANTY; without even the implied warranty of
23946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23947 # GNU General Public License for more details.
23948 #
23949 # You should have received a copy of the GNU General Public License
23950 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23951
23952
23953 # The names of the tagged configurations supported by this script.
23954 available_tags='CXX '
23955
23956 # Configured defaults for sys_lib_dlsearch_path munging.
23957 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23958
23959 # ### BEGIN LIBTOOL CONFIG
23960
23961 # Which release of libtool.m4 was used?
23962 macro_version=$macro_version
23963 macro_revision=$macro_revision
23964
23965 # Whether or not to build static libraries.
23966 build_old_libs=$enable_static
23967
23968 # Whether or not to build shared libraries.
23969 build_libtool_libs=$enable_shared
23970
23971 # What type of objects to build.
23972 pic_mode=$pic_mode
23973
23974 # Whether or not to optimize for fast installation.
23975 fast_install=$enable_fast_install
23976
23977 # Shared archive member basename,for filename based shared library versioning on AIX.
23978 shared_archive_member_spec=$shared_archive_member_spec
23979
23980 # Shell to use when invoking shell scripts.
23981 SHELL=$lt_SHELL
23982
23983 # An echo program that protects backslashes.
23984 ECHO=$lt_ECHO
23985
23986 # The PATH separator for the build system.
23987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23988
23989 # The host system.
23990 host_alias=$host_alias
23991 host=$host
23992 host_os=$host_os
23993
23994 # The build system.
23995 build_alias=$build_alias
23996 build=$build
23997 build_os=$build_os
23998
23999 # A sed program that does not truncate output.
24000 SED=$lt_SED
24001
24002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24003 Xsed="\$SED -e 1s/^X//"
24004
24005 # A grep program that handles long lines.
24006 GREP=$lt_GREP
24007
24008 # An ERE matcher.
24009 EGREP=$lt_EGREP
24010
24011 # A literal string matcher.
24012 FGREP=$lt_FGREP
24013
24014 # A BSD- or MS-compatible name lister.
24015 NM=$lt_NM
24016
24017 # Whether we need soft or hard links.
24018 LN_S=$lt_LN_S
24019
24020 # What is the maximum length of a command?
24021 max_cmd_len=$max_cmd_len
24022
24023 # Object file suffix (normally "o").
24024 objext=$ac_objext
24025
24026 # Executable file suffix (normally "").
24027 exeext=$exeext
24028
24029 # whether the shell understands "unset".
24030 lt_unset=$lt_unset
24031
24032 # turn spaces into newlines.
24033 SP2NL=$lt_lt_SP2NL
24034
24035 # turn newlines into spaces.
24036 NL2SP=$lt_lt_NL2SP
24037
24038 # convert \$build file names to \$host format.
24039 to_host_file_cmd=$lt_cv_to_host_file_cmd
24040
24041 # convert \$build files to toolchain format.
24042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24043
24044 # An object symbol dumper.
24045 OBJDUMP=$lt_OBJDUMP
24046
24047 # Method to check whether dependent libraries are shared objects.
24048 deplibs_check_method=$lt_deplibs_check_method
24049
24050 # Command to use when deplibs_check_method = "file_magic".
24051 file_magic_cmd=$lt_file_magic_cmd
24052
24053 # How to find potential files when deplibs_check_method = "file_magic".
24054 file_magic_glob=$lt_file_magic_glob
24055
24056 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24057 want_nocaseglob=$lt_want_nocaseglob
24058
24059 # DLL creation program.
24060 DLLTOOL=$lt_DLLTOOL
24061
24062 # Command to associate shared and link libraries.
24063 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24064
24065 # The archiver.
24066 AR=$lt_AR
24067
24068 # Flags to create an archive.
24069 AR_FLAGS=$lt_AR_FLAGS
24070
24071 # How to feed a file listing to the archiver.
24072 archiver_list_spec=$lt_archiver_list_spec
24073
24074 # A symbol stripping program.
24075 STRIP=$lt_STRIP
24076
24077 # Commands used to install an old-style archive.
24078 RANLIB=$lt_RANLIB
24079 old_postinstall_cmds=$lt_old_postinstall_cmds
24080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24081
24082 # Whether to use a lock for old archive extraction.
24083 lock_old_archive_extraction=$lock_old_archive_extraction
24084
24085 # A C compiler.
24086 LTCC=$lt_CC
24087
24088 # LTCC compiler flags.
24089 LTCFLAGS=$lt_CFLAGS
24090
24091 # Take the output of nm and produce a listing of raw symbols and C names.
24092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24093
24094 # Transform the output of nm in a proper C declaration.
24095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24096
24097 # Transform the output of nm into a list of symbols to manually relocate.
24098 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24099
24100 # Transform the output of nm in a C name address pair.
24101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24102
24103 # Transform the output of nm in a C name address pair when lib prefix is needed.
24104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24105
24106 # The name lister interface.
24107 nm_interface=$lt_lt_cv_nm_interface
24108
24109 # Specify filename containing input files for \$NM.
24110 nm_file_list_spec=$lt_nm_file_list_spec
24111
24112 # The root where to search for dependent libraries,and where our libraries should be installed.
24113 lt_sysroot=$lt_sysroot
24114
24115 # Command to truncate a binary pipe.
24116 lt_truncate_bin=$lt_lt_cv_truncate_bin
24117
24118 # The name of the directory that contains temporary libtool files.
24119 objdir=$objdir
24120
24121 # Used to examine libraries when file_magic_cmd begins with "file".
24122 MAGIC_CMD=$MAGIC_CMD
24123
24124 # Must we lock files when doing compilation?
24125 need_locks=$lt_need_locks
24126
24127 # Manifest tool.
24128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24129
24130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24131 DSYMUTIL=$lt_DSYMUTIL
24132
24133 # Tool to change global to local symbols on Mac OS X.
24134 NMEDIT=$lt_NMEDIT
24135
24136 # Tool to manipulate fat objects and archives on Mac OS X.
24137 LIPO=$lt_LIPO
24138
24139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24140 OTOOL=$lt_OTOOL
24141
24142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24143 OTOOL64=$lt_OTOOL64
24144
24145 # Old archive suffix (normally "a").
24146 libext=$libext
24147
24148 # Shared library suffix (normally ".so").
24149 shrext_cmds=$lt_shrext_cmds
24150
24151 # The commands to extract the exported symbol list from a shared archive.
24152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24153
24154 # Variables whose values should be saved in libtool wrapper scripts and
24155 # restored at link time.
24156 variables_saved_for_relink=$lt_variables_saved_for_relink
24157
24158 # Do we need the "lib" prefix for modules?
24159 need_lib_prefix=$need_lib_prefix
24160
24161 # Do we need a version for libraries?
24162 need_version=$need_version
24163
24164 # Library versioning type.
24165 version_type=$version_type
24166
24167 # Shared library runtime path variable.
24168 runpath_var=$runpath_var
24169
24170 # Shared library path variable.
24171 shlibpath_var=$shlibpath_var
24172
24173 # Is shlibpath searched before the hard-coded library search path?
24174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24175
24176 # Format of library name prefix.
24177 libname_spec=$lt_libname_spec
24178
24179 # List of archive names.  First name is the real one, the rest are links.
24180 # The last name is the one that the linker finds with -lNAME
24181 library_names_spec=$lt_library_names_spec
24182
24183 # The coded name of the library, if different from the real name.
24184 soname_spec=$lt_soname_spec
24185
24186 # Permission mode override for installation of shared libraries.
24187 install_override_mode=$lt_install_override_mode
24188
24189 # Command to use after installation of a shared archive.
24190 postinstall_cmds=$lt_postinstall_cmds
24191
24192 # Command to use after uninstallation of a shared archive.
24193 postuninstall_cmds=$lt_postuninstall_cmds
24194
24195 # Commands used to finish a libtool library installation in a directory.
24196 finish_cmds=$lt_finish_cmds
24197
24198 # As "finish_cmds", except a single script fragment to be evaled but
24199 # not shown.
24200 finish_eval=$lt_finish_eval
24201
24202 # Whether we should hardcode library paths into libraries.
24203 hardcode_into_libs=$hardcode_into_libs
24204
24205 # Compile-time system search path for libraries.
24206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24207
24208 # Detected run-time system search path for libraries.
24209 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24210
24211 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24212 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24213
24214 # Whether dlopen is supported.
24215 dlopen_support=$enable_dlopen
24216
24217 # Whether dlopen of programs is supported.
24218 dlopen_self=$enable_dlopen_self
24219
24220 # Whether dlopen of statically linked programs is supported.
24221 dlopen_self_static=$enable_dlopen_self_static
24222
24223 # Commands to strip libraries.
24224 old_striplib=$lt_old_striplib
24225 striplib=$lt_striplib
24226
24227
24228 # The linker used to build libraries.
24229 LD=$lt_LD
24230
24231 # How to create reloadable object files.
24232 reload_flag=$lt_reload_flag
24233 reload_cmds=$lt_reload_cmds
24234
24235 # Commands used to build an old-style archive.
24236 old_archive_cmds=$lt_old_archive_cmds
24237
24238 # A language specific compiler.
24239 CC=$lt_compiler
24240
24241 # Is the compiler the GNU compiler?
24242 with_gcc=$GCC
24243
24244 # Compiler flag to turn off builtin functions.
24245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24246
24247 # Additional compiler flags for building library objects.
24248 pic_flag=$lt_lt_prog_compiler_pic
24249
24250 # How to pass a linker flag through the compiler.
24251 wl=$lt_lt_prog_compiler_wl
24252
24253 # Compiler flag to prevent dynamic linking.
24254 link_static_flag=$lt_lt_prog_compiler_static
24255
24256 # Does compiler simultaneously support -c and -o options?
24257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24258
24259 # Whether or not to add -lc for building shared libraries.
24260 build_libtool_need_lc=$archive_cmds_need_lc
24261
24262 # Whether or not to disallow shared libs when runtime libs are static.
24263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24264
24265 # Compiler flag to allow reflexive dlopens.
24266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24267
24268 # Compiler flag to generate shared objects directly from archives.
24269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24270
24271 # Whether the compiler copes with passing no objects directly.
24272 compiler_needs_object=$lt_compiler_needs_object
24273
24274 # Create an old-style archive from a shared archive.
24275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24276
24277 # Create a temporary old-style archive to link instead of a shared archive.
24278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24279
24280 # Commands used to build a shared archive.
24281 archive_cmds=$lt_archive_cmds
24282 archive_expsym_cmds=$lt_archive_expsym_cmds
24283
24284 # Commands used to build a loadable module if different from building
24285 # a shared archive.
24286 module_cmds=$lt_module_cmds
24287 module_expsym_cmds=$lt_module_expsym_cmds
24288
24289 # Whether we are building with GNU ld or not.
24290 with_gnu_ld=$lt_with_gnu_ld
24291
24292 # Flag that allows shared libraries with undefined symbols to be built.
24293 allow_undefined_flag=$lt_allow_undefined_flag
24294
24295 # Flag that enforces no undefined symbols.
24296 no_undefined_flag=$lt_no_undefined_flag
24297
24298 # Flag to hardcode \$libdir into a binary during linking.
24299 # This must work even if \$libdir does not exist
24300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24301
24302 # Whether we need a single "-rpath" flag with a separated argument.
24303 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24304
24305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24306 # DIR into the resulting binary.
24307 hardcode_direct=$hardcode_direct
24308
24309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24310 # DIR into the resulting binary and the resulting library dependency is
24311 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24312 # library is relocated.
24313 hardcode_direct_absolute=$hardcode_direct_absolute
24314
24315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24316 # into the resulting binary.
24317 hardcode_minus_L=$hardcode_minus_L
24318
24319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24320 # into the resulting binary.
24321 hardcode_shlibpath_var=$hardcode_shlibpath_var
24322
24323 # Set to "yes" if building a shared library automatically hardcodes DIR
24324 # into the library and all subsequent libraries and executables linked
24325 # against it.
24326 hardcode_automatic=$hardcode_automatic
24327
24328 # Set to yes if linker adds runtime paths of dependent libraries
24329 # to runtime path list.
24330 inherit_rpath=$inherit_rpath
24331
24332 # Whether libtool must link a program against all its dependency libraries.
24333 link_all_deplibs=$link_all_deplibs
24334
24335 # Set to "yes" if exported symbols are required.
24336 always_export_symbols=$always_export_symbols
24337
24338 # The commands to list exported symbols.
24339 export_symbols_cmds=$lt_export_symbols_cmds
24340
24341 # Symbols that should not be listed in the preloaded symbols.
24342 exclude_expsyms=$lt_exclude_expsyms
24343
24344 # Symbols that must always be exported.
24345 include_expsyms=$lt_include_expsyms
24346
24347 # Commands necessary for linking programs (against libraries) with templates.
24348 prelink_cmds=$lt_prelink_cmds
24349
24350 # Commands necessary for finishing linking programs.
24351 postlink_cmds=$lt_postlink_cmds
24352
24353 # Specify filename containing input files.
24354 file_list_spec=$lt_file_list_spec
24355
24356 # How to hardcode a shared library path into an executable.
24357 hardcode_action=$hardcode_action
24358
24359 # The directories searched by this compiler when creating a shared library.
24360 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24361
24362 # Dependencies to place before and after the objects being linked to
24363 # create a shared library.
24364 predep_objects=$lt_predep_objects
24365 postdep_objects=$lt_postdep_objects
24366 predeps=$lt_predeps
24367 postdeps=$lt_postdeps
24368
24369 # The library search path used internally by the compiler when linking
24370 # a shared library.
24371 compiler_lib_search_path=$lt_compiler_lib_search_path
24372
24373 # ### END LIBTOOL CONFIG
24374
24375 _LT_EOF
24376
24377     cat <<'_LT_EOF' >> "$cfgfile"
24378
24379 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24380
24381 # func_munge_path_list VARIABLE PATH
24382 # -----------------------------------
24383 # VARIABLE is name of variable containing _space_ separated list of
24384 # directories to be munged by the contents of PATH, which is string
24385 # having a format:
24386 # "DIR[:DIR]:"
24387 #       string "DIR[ DIR]" will be prepended to VARIABLE
24388 # ":DIR[:DIR]"
24389 #       string "DIR[ DIR]" will be appended to VARIABLE
24390 # "DIRP[:DIRP]::[DIRA:]DIRA"
24391 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24392 #       "DIRA[ DIRA]" will be appended to VARIABLE
24393 # "DIR[:DIR]"
24394 #       VARIABLE will be replaced by "DIR[ DIR]"
24395 func_munge_path_list ()
24396 {
24397     case x$2 in
24398     x)
24399         ;;
24400     *:)
24401         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24402         ;;
24403     x:*)
24404         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24405         ;;
24406     *::*)
24407         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24408         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24409         ;;
24410     *)
24411         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24412         ;;
24413     esac
24414 }
24415
24416
24417 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24418 func_cc_basename ()
24419 {
24420     for cc_temp in $*""; do
24421       case $cc_temp in
24422         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24423         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24424         \-*) ;;
24425         *) break;;
24426       esac
24427     done
24428     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24429 }
24430
24431
24432 # ### END FUNCTIONS SHARED WITH CONFIGURE
24433
24434 _LT_EOF
24435
24436   case $host_os in
24437   aix3*)
24438     cat <<\_LT_EOF >> "$cfgfile"
24439 # AIX sometimes has problems with the GCC collect2 program.  For some
24440 # reason, if we set the COLLECT_NAMES environment variable, the problems
24441 # vanish in a puff of smoke.
24442 if test set != "${COLLECT_NAMES+set}"; then
24443   COLLECT_NAMES=
24444   export COLLECT_NAMES
24445 fi
24446 _LT_EOF
24447     ;;
24448   esac
24449
24450
24451 ltmain=$ac_aux_dir/ltmain.sh
24452
24453
24454   # We use sed instead of cat because bash on DJGPP gets confused if
24455   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24456   # text mode, it properly converts lines to CR/LF.  This bash problem
24457   # is reportedly fixed, but why not run on old versions too?
24458   sed '$q' "$ltmain" >> "$cfgfile" \
24459      || (rm -f "$cfgfile"; exit 1)
24460
24461    mv -f "$cfgfile" "$ofile" ||
24462     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24463   chmod +x "$ofile"
24464
24465
24466     cat <<_LT_EOF >> "$ofile"
24467
24468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24469
24470 # The linker used to build libraries.
24471 LD=$lt_LD_CXX
24472
24473 # How to create reloadable object files.
24474 reload_flag=$lt_reload_flag_CXX
24475 reload_cmds=$lt_reload_cmds_CXX
24476
24477 # Commands used to build an old-style archive.
24478 old_archive_cmds=$lt_old_archive_cmds_CXX
24479
24480 # A language specific compiler.
24481 CC=$lt_compiler_CXX
24482
24483 # Is the compiler the GNU compiler?
24484 with_gcc=$GCC_CXX
24485
24486 # Compiler flag to turn off builtin functions.
24487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24488
24489 # Additional compiler flags for building library objects.
24490 pic_flag=$lt_lt_prog_compiler_pic_CXX
24491
24492 # How to pass a linker flag through the compiler.
24493 wl=$lt_lt_prog_compiler_wl_CXX
24494
24495 # Compiler flag to prevent dynamic linking.
24496 link_static_flag=$lt_lt_prog_compiler_static_CXX
24497
24498 # Does compiler simultaneously support -c and -o options?
24499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24500
24501 # Whether or not to add -lc for building shared libraries.
24502 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24503
24504 # Whether or not to disallow shared libs when runtime libs are static.
24505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24506
24507 # Compiler flag to allow reflexive dlopens.
24508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24509
24510 # Compiler flag to generate shared objects directly from archives.
24511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24512
24513 # Whether the compiler copes with passing no objects directly.
24514 compiler_needs_object=$lt_compiler_needs_object_CXX
24515
24516 # Create an old-style archive from a shared archive.
24517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24518
24519 # Create a temporary old-style archive to link instead of a shared archive.
24520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24521
24522 # Commands used to build a shared archive.
24523 archive_cmds=$lt_archive_cmds_CXX
24524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24525
24526 # Commands used to build a loadable module if different from building
24527 # a shared archive.
24528 module_cmds=$lt_module_cmds_CXX
24529 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24530
24531 # Whether we are building with GNU ld or not.
24532 with_gnu_ld=$lt_with_gnu_ld_CXX
24533
24534 # Flag that allows shared libraries with undefined symbols to be built.
24535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24536
24537 # Flag that enforces no undefined symbols.
24538 no_undefined_flag=$lt_no_undefined_flag_CXX
24539
24540 # Flag to hardcode \$libdir into a binary during linking.
24541 # This must work even if \$libdir does not exist
24542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24543
24544 # Whether we need a single "-rpath" flag with a separated argument.
24545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24546
24547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24548 # DIR into the resulting binary.
24549 hardcode_direct=$hardcode_direct_CXX
24550
24551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24552 # DIR into the resulting binary and the resulting library dependency is
24553 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24554 # library is relocated.
24555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24556
24557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24558 # into the resulting binary.
24559 hardcode_minus_L=$hardcode_minus_L_CXX
24560
24561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24562 # into the resulting binary.
24563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24564
24565 # Set to "yes" if building a shared library automatically hardcodes DIR
24566 # into the library and all subsequent libraries and executables linked
24567 # against it.
24568 hardcode_automatic=$hardcode_automatic_CXX
24569
24570 # Set to yes if linker adds runtime paths of dependent libraries
24571 # to runtime path list.
24572 inherit_rpath=$inherit_rpath_CXX
24573
24574 # Whether libtool must link a program against all its dependency libraries.
24575 link_all_deplibs=$link_all_deplibs_CXX
24576
24577 # Set to "yes" if exported symbols are required.
24578 always_export_symbols=$always_export_symbols_CXX
24579
24580 # The commands to list exported symbols.
24581 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24582
24583 # Symbols that should not be listed in the preloaded symbols.
24584 exclude_expsyms=$lt_exclude_expsyms_CXX
24585
24586 # Symbols that must always be exported.
24587 include_expsyms=$lt_include_expsyms_CXX
24588
24589 # Commands necessary for linking programs (against libraries) with templates.
24590 prelink_cmds=$lt_prelink_cmds_CXX
24591
24592 # Commands necessary for finishing linking programs.
24593 postlink_cmds=$lt_postlink_cmds_CXX
24594
24595 # Specify filename containing input files.
24596 file_list_spec=$lt_file_list_spec_CXX
24597
24598 # How to hardcode a shared library path into an executable.
24599 hardcode_action=$hardcode_action_CXX
24600
24601 # The directories searched by this compiler when creating a shared library.
24602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24603
24604 # Dependencies to place before and after the objects being linked to
24605 # create a shared library.
24606 predep_objects=$lt_predep_objects_CXX
24607 postdep_objects=$lt_postdep_objects_CXX
24608 predeps=$lt_predeps_CXX
24609 postdeps=$lt_postdeps_CXX
24610
24611 # The library search path used internally by the compiler when linking
24612 # a shared library.
24613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24614
24615 # ### END LIBTOOL TAG CONFIG: CXX
24616 _LT_EOF
24617
24618  ;;
24619
24620   esac
24621 done # for ac_tag
24622
24623
24624 as_fn_exit 0
24625 _ACEOF
24626 ac_clean_files=$ac_clean_files_save
24627
24628 test $ac_write_fail = 0 ||
24629   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24630
24631
24632 # configure is writing to config.log, and then calls config.status.
24633 # config.status does its own redirection, appending to config.log.
24634 # Unfortunately, on DOS this fails, as config.log is still kept open
24635 # by configure, so config.status won't be able to write to it; its
24636 # output is simply discarded.  So we exec the FD to /dev/null,
24637 # effectively closing config.log, so it can be properly (re)opened and
24638 # appended to by config.status.  When coming back to configure, we
24639 # need to make the FD available again.
24640 if test "$no_create" != yes; then
24641   ac_cs_success=:
24642   ac_config_status_args=
24643   test "$silent" = yes &&
24644     ac_config_status_args="$ac_config_status_args --quiet"
24645   exec 5>/dev/null
24646   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24647   exec 5>>config.log
24648   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24649   # would make configure fail if this is the last instruction.
24650   $ac_cs_success || as_fn_exit 1
24651 fi
24652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24653   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24655 fi
24656
24657
24658 echo
24659 echo "C++ compiler version:"
24660 $CXX --version
24661 echo
24662
24663 { $as_echo "$as_me:${as_lineno-$LINENO}:
24664
24665 Build configuration:
24666
24667 Unicode callbacks (you want at least one):
24668         Builtin                 true
24669         Glib:                   ${have_glib}
24670         ICU:                    ${have_icu}
24671
24672 Font callbacks (the more the merrier):
24673         FreeType:               ${have_freetype}
24674
24675 Tools used for command-line utilities:
24676         Cairo:                  ${have_cairo}
24677         Fontconfig:             ${have_fontconfig}
24678
24679 Additional shapers (the more the merrier):
24680         Graphite2:              ${have_graphite2}
24681
24682 Platform shapers (not normally needed):
24683         CoreText:               ${have_coretext}
24684         DirectWrite:            ${have_directwrite}
24685         GDI:                    ${have_gdi}
24686         Uniscribe:              ${have_uniscribe}
24687
24688 Other features:
24689         Documentation:          ${enable_gtk_doc}
24690         GObject bindings:       ${have_gobject}
24691         Introspection:          ${have_introspection}
24692 " >&5
24693 $as_echo "$as_me:
24694
24695 Build configuration:
24696
24697 Unicode callbacks (you want at least one):
24698         Builtin                 true
24699         Glib:                   ${have_glib}
24700         ICU:                    ${have_icu}
24701
24702 Font callbacks (the more the merrier):
24703         FreeType:               ${have_freetype}
24704
24705 Tools used for command-line utilities:
24706         Cairo:                  ${have_cairo}
24707         Fontconfig:             ${have_fontconfig}
24708
24709 Additional shapers (the more the merrier):
24710         Graphite2:              ${have_graphite2}
24711
24712 Platform shapers (not normally needed):
24713         CoreText:               ${have_coretext}
24714         DirectWrite:            ${have_directwrite}
24715         GDI:                    ${have_gdi}
24716         Uniscribe:              ${have_uniscribe}
24717
24718 Other features:
24719         Documentation:          ${enable_gtk_doc}
24720         GObject bindings:       ${have_gobject}
24721         Introspection:          ${have_introspection}
24722 " >&6;}