update to 0.19.5
[platform/upstream/fribidi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU FriBidi 0.19.5.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='GNU FriBidi'
573 PACKAGE_TARNAME='fribidi'
574 PACKAGE_VERSION='0.19.5'
575 PACKAGE_STRING='GNU FriBidi 0.19.5'
576 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi'
577 PACKAGE_URL='http://fribidi.org/'
578
579 ac_unique_file="fribidi.pc.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 MISC_PACKAGES
621 MISC_LIBS
622 MISC_CFLAGS
623 FRIBIDI_USE_GLIB_FALSE
624 FRIBIDI_USE_GLIB_TRUE
625 FRIBIDI_USE_GLIB
626 GLIB_LIBS
627 GLIB_CFLAGS
628 PKG_CONFIG_LIBDIR
629 PKG_CONFIG_PATH
630 PKG_CONFIG
631 FRIBIDI_CHARSETS_FALSE
632 FRIBIDI_CHARSETS_TRUE
633 FRIBIDI_CHARSETS
634 FRIBIDI_NO_DEPRECATED
635 SIZEOF_INT
636 PLATFORM_WIN32_FALSE
637 PLATFORM_WIN32_TRUE
638 OS_WIN32_FALSE
639 OS_WIN32_TRUE
640 LT_CURRENT_MINUS_AGE
641 LT_VERSION_INFO
642 FRIBIDI_BINARY_AGE
643 FRIBIDI_INTERFACE_AGE
644 FRIBIDI_INTERFACE_VERSION
645 FRIBIDI_VERSION
646 FRIBIDI_MICRO_VERSION
647 FRIBIDI_MINOR_VERSION
648 FRIBIDI_MAJOR_VERSION
649 CPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_static
766 enable_shared
767 with_pic
768 enable_fast_install
769 enable_dependency_tracking
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_debug
774 enable_deprecated
775 enable_malloc
776 enable_charsets
777 with_glib
778 '
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 PKG_CONFIG
789 PKG_CONFIG_PATH
790 PKG_CONFIG_LIBDIR
791 GLIB_CFLAGS
792 GLIB_LIBS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847   # If the previous option needs an argument, assign it.
848   if test -n "$ac_prev"; then
849     eval $ac_prev=\$ac_option
850     ac_prev=
851     continue
852   fi
853
854   case $ac_option in
855   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856   *=)   ac_optarg= ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     case $ac_envvar in #(
1186       '' | [0-9]* | *[!_$as_cr_alnum]* )
1187       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188     esac
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209   case $enable_option_checking in
1210     no) ;;
1211     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213   esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   # Remove trailing slashes.
1224   case $ac_val in
1225     */ )
1226       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227       eval $ac_var=\$ac_val;;
1228   esac
1229   # Be sure to have absolute directory names.
1230   case $ac_val in
1231     [\\/$]* | ?:[\\/]* )  continue;;
1232     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233   esac
1234   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246   if test "x$build_alias" = x; then
1247     cross_compiling=maybe
1248     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249     If a cross compiler is detected then cross compile mode will be used" >&2
1250   elif test "x$build_alias" != "x$host_alias"; then
1251     cross_compiling=yes
1252   fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264   as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266   as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271   ac_srcdir_defaulted=yes
1272   # Try the directory containing this script, then the parent directory.
1273   ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275          X"$as_myself" : 'X\(//\)[^/]' \| \
1276          X"$as_myself" : 'X\(//\)$' \| \
1277          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)[^/].*/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\).*/{
1292             s//\1/
1293             q
1294           }
1295           s/.*/./; q'`
1296   srcdir=$ac_confdir
1297   if test ! -r "$srcdir/$ac_unique_file"; then
1298     srcdir=..
1299   fi
1300 else
1301   ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310         pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313   srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_env_${ac_var}_value=\$${ac_var}
1324   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332   # Omit some internal or obsolete options to make the list less imposing.
1333   # This message is too long to be a string in the A/UX 3.1 sh.
1334   cat <<_ACEOF
1335 \`configure' configures GNU FriBidi 0.19.5 to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345   -h, --help              display this help and exit
1346       --help=short        display options specific to this package
1347       --help=recursive    display the short help of all the included packages
1348   -V, --version           display version information and exit
1349   -q, --quiet, --silent   do not print \`checking ...' messages
1350       --cache-file=FILE   cache test results in FILE [disabled]
1351   -C, --config-cache      alias for \`--cache-file=config.cache'
1352   -n, --no-create         do not create output files
1353       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356   --prefix=PREFIX         install architecture-independent files in PREFIX
1357                           [$ac_default_prefix]
1358   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                           [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369   --bindir=DIR            user executables [EPREFIX/bin]
1370   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371   --libexecdir=DIR        program executables [EPREFIX/libexec]
1372   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375   --libdir=DIR            object code libraries [EPREFIX/lib]
1376   --includedir=DIR        C header files [PREFIX/include]
1377   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380   --infodir=DIR           info documentation [DATAROOTDIR/info]
1381   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382   --mandir=DIR            man documentation [DATAROOTDIR/man]
1383   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1384   --htmldir=DIR           html documentation [DOCDIR]
1385   --dvidir=DIR            dvi documentation [DOCDIR]
1386   --pdfdir=DIR            pdf documentation [DOCDIR]
1387   --psdir=DIR             ps documentation [DOCDIR]
1388 _ACEOF
1389
1390   cat <<\_ACEOF
1391
1392 Program names:
1393   --program-prefix=PREFIX            prepend PREFIX to installed program names
1394   --program-suffix=SUFFIX            append SUFFIX to installed program names
1395   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1396
1397 System types:
1398   --build=BUILD     configure for building on BUILD [guessed]
1399   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404   case $ac_init_help in
1405      short | recursive ) echo "Configuration of GNU FriBidi 0.19.5:";;
1406    esac
1407   cat <<\_ACEOF
1408
1409 Optional Features:
1410   --disable-option-checking  ignore unrecognized --enable/--with options
1411   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413   --enable-silent-rules          less verbose build output (undo: `make V=1')
1414   --disable-silent-rules         verbose build output (undo: `make V=0')
1415   --enable-static[=PKGS]  build static libraries [default=no]
1416   --enable-shared[=PKGS]  build shared libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-dependency-tracking  speeds up one-time build
1420   --enable-dependency-tracking   do not reject slow dependency extractors
1421   --disable-libtool-lock  avoid locking (might break parallel builds)
1422   --enable-debug          turn on debugging [default=yes]
1423   --disable-deprecated    do not build deprecated functionality
1424   --enable-malloc         use simple malloc instead of memory chunks
1425   --disable-charsets      exclude charset conversion routines from library
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1431                           both]
1432   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433   --with-sysroot=DIR Search for dependent libraries within DIR
1434                         (or the compiler's sysroot if not specified).
1435   --with-glib=[no/auto/yes]
1436                           use Glib [default=auto]
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   CPP         C preprocessor
1447   PKG_CONFIG  path to pkg-config utility
1448   PKG_CONFIG_PATH
1449               directories to add to pkg-config's search path
1450   PKG_CONFIG_LIBDIR
1451               path overriding pkg-config's built-in search path
1452   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1453   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
1459 GNU FriBidi home page: <http://fribidi.org/>.
1460 General help using GNU software: <http://www.gnu.org/gethelp/>.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466   # If there are subdirs, report their specific --help.
1467   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468     test -d "$ac_dir" ||
1469       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470       continue
1471     ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477   # A ".." for each directory in $ac_dir_suffix.
1478   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479   case $ac_top_builddir_sub in
1480   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482   esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490   .)  # We are building in place.
1491     ac_srcdir=.
1492     ac_top_srcdir=$ac_top_builddir_sub
1493     ac_abs_top_srcdir=$ac_pwd ;;
1494   [\\/]* | ?:[\\/]* )  # Absolute name.
1495     ac_srcdir=$srcdir$ac_dir_suffix;
1496     ac_top_srcdir=$srcdir
1497     ac_abs_top_srcdir=$srcdir ;;
1498   *) # Relative name.
1499     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500     ac_top_srcdir=$ac_top_build_prefix$srcdir
1501     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505     cd "$ac_dir" || { ac_status=$?; continue; }
1506     # Check for guested configure.
1507     if test -f "$ac_srcdir/configure.gnu"; then
1508       echo &&
1509       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510     elif test -f "$ac_srcdir/configure"; then
1511       echo &&
1512       $SHELL "$ac_srcdir/configure" --help=recursive
1513     else
1514       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515     fi || ac_status=$?
1516     cd "$ac_pwd" || { ac_status=$?; break; }
1517   done
1518 fi
1519
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522   cat <<\_ACEOF
1523 GNU FriBidi configure 0.19.5
1524 generated by GNU Autoconf 2.68
1525
1526 Copyright (C) 2010 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530   exit
1531 fi
1532
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1536
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1541 {
1542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543   rm -f conftest.$ac_objext
1544   if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547   *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551   (eval "$ac_compile") 2>conftest.err
1552   ac_status=$?
1553   if test -s conftest.err; then
1554     grep -v '^ *+' conftest.err >conftest.er1
1555     cat conftest.er1 >&5
1556     mv -f conftest.er1 conftest.err
1557   fi
1558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559   test $ac_status = 0; } && {
1560          test -z "$ac_c_werror_flag" ||
1561          test ! -s conftest.err
1562        } && test -s conftest.$ac_objext; then :
1563   ac_retval=0
1564 else
1565   $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568         ac_retval=1
1569 fi
1570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571   as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581   rm -f conftest.$ac_objext conftest$ac_exeext
1582   if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585   *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589   (eval "$ac_link") 2>conftest.err
1590   ac_status=$?
1591   if test -s conftest.err; then
1592     grep -v '^ *+' conftest.err >conftest.er1
1593     cat conftest.er1 >&5
1594     mv -f conftest.er1 conftest.err
1595   fi
1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597   test $ac_status = 0; } && {
1598          test -z "$ac_c_werror_flag" ||
1599          test ! -s conftest.err
1600        } && test -s conftest$ac_exeext && {
1601          test "$cross_compiling" = yes ||
1602          $as_test_x conftest$ac_exeext
1603        }; then :
1604   ac_retval=0
1605 else
1606   $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609         ac_retval=1
1610 fi
1611   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613   # interfere with the next link command; also delete a directory that is
1614   # left behind by Apple's compiler.  We do this before executing the actions.
1615   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_link
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631   $as_echo_n "(cached) " >&6
1632 else
1633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h.  */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639   eval "$3=yes"
1640 else
1641   eval "$3=no"
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 fi
1645 eval ac_res=\$$3
1646                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } > conftest.i && {
1674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        }; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682     ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>&5
1704   ac_status=$?
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707   { { case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_try") 2>&5
1714   ac_status=$?
1715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716   test $ac_status = 0; }; }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: program exited with status $ac_status" >&5
1720        $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723        ac_retval=$ac_status
1724 fi
1725   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_func LINENO FUNC VAR
1732 # ----------------------------------
1733 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1734 ac_fn_c_check_func ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h.  */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1746 #define $2 innocuous_$2
1747
1748 /* System header to define __stub macros and hopefully few prototypes,
1749     which can conflict with char $2 (); below.
1750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751     <limits.h> exists even on freestanding compilers.  */
1752
1753 #ifdef __STDC__
1754 # include <limits.h>
1755 #else
1756 # include <assert.h>
1757 #endif
1758
1759 #undef $2
1760
1761 /* Override any GCC internal prototype to avoid an error.
1762    Use char because int might match the return type of a GCC
1763    builtin and then its argument prototype would still apply.  */
1764 #ifdef __cplusplus
1765 extern "C"
1766 #endif
1767 char $2 ();
1768 /* The GNU C library defines this for functions which it implements
1769     to always fail with ENOSYS.  Some functions are actually named
1770     something starting with __ and the normal name is an alias.  */
1771 #if defined __stub_$2 || defined __stub___$2
1772 choke me
1773 #endif
1774
1775 int
1776 main ()
1777 {
1778 return $2 ();
1779   ;
1780   return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_link "$LINENO"; then :
1784   eval "$3=yes"
1785 else
1786   eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext \
1789     conftest$ac_exeext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_header_mongrel ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   if eval \${$3+:} false; then :
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 else
1816   # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   ac_header_compiler=yes
1826 else
1827   ac_header_compiler=no
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1832
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841   ac_header_preproc=yes
1842 else
1843   ac_header_preproc=no
1844 fi
1845 rm -f conftest.err conftest.i conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1848
1849 # So?  What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851   yes:no: )
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856     ;;
1857   no:yes:* )
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ( $as_echo "## ------------------------------------------------------------------------ ##
1869 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi ##
1870 ## ------------------------------------------------------------------------ ##"
1871      ) | sed "s/^/$as_me: WARNING:     /" >&2
1872     ;;
1873 esac
1874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877   $as_echo_n "(cached) " >&6
1878 else
1879   eval "$3=\$ac_header_compiler"
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 fi
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_header_mongrel
1888
1889 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1890 # --------------------------------------------
1891 # Tries to find the compile-time value of EXPR in a program that includes
1892 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1893 # computed
1894 ac_fn_c_compute_int ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if test "$cross_compiling" = yes; then
1898     # Depending upon the size, compute the lo and hi bounds.
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h.  */
1901 $4
1902 int
1903 main ()
1904 {
1905 static int test_array [1 - 2 * !(($2) >= 0)];
1906 test_array [0] = 0
1907
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_lo=0 ac_mid=0
1914   while :; do
1915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 $4
1918 int
1919 main ()
1920 {
1921 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1922 test_array [0] = 0
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   ac_hi=$ac_mid; break
1930 else
1931   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1932                         if test $ac_lo -le $ac_mid; then
1933                           ac_lo= ac_hi=
1934                           break
1935                         fi
1936                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939   done
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 int
1945 main ()
1946 {
1947 static int test_array [1 - 2 * !(($2) < 0)];
1948 test_array [0] = 0
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955   ac_hi=-1 ac_mid=-1
1956   while :; do
1957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1964 test_array [0] = 0
1965
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_lo=$ac_mid; break
1972 else
1973   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1974                         if test $ac_mid -le $ac_hi; then
1975                           ac_lo= ac_hi=
1976                           break
1977                         fi
1978                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981   done
1982 else
1983   ac_lo= ac_hi=
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 # Binary search between lo and hi bounds.
1989 while test "x$ac_lo" != "x$ac_hi"; do
1990   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h.  */
1993 $4
1994 int
1995 main ()
1996 {
1997 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1998 test_array [0] = 0
1999
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005   ac_hi=$ac_mid
2006 else
2007   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 done
2011 case $ac_lo in #((
2012 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2013 '') ac_retval=1 ;;
2014 esac
2015   else
2016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 static long int longval () { return $2; }
2020 static unsigned long int ulongval () { return $2; }
2021 #include <stdio.h>
2022 #include <stdlib.h>
2023 int
2024 main ()
2025 {
2026
2027   FILE *f = fopen ("conftest.val", "w");
2028   if (! f)
2029     return 1;
2030   if (($2) < 0)
2031     {
2032       long int i = longval ();
2033       if (i != ($2))
2034         return 1;
2035       fprintf (f, "%ld", i);
2036     }
2037   else
2038     {
2039       unsigned long int i = ulongval ();
2040       if (i != ($2))
2041         return 1;
2042       fprintf (f, "%lu", i);
2043     }
2044   /* Do not output a trailing newline, as this causes \r\n confusion
2045      on some platforms.  */
2046   return ferror (f) || fclose (f) != 0;
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_run "$LINENO"; then :
2053   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2054 else
2055   ac_retval=1
2056 fi
2057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2058   conftest.$ac_objext conftest.beam conftest.$ac_ext
2059 rm -f conftest.val
2060
2061   fi
2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063   as_fn_set_status $ac_retval
2064
2065 } # ac_fn_c_compute_int
2066 cat >config.log <<_ACEOF
2067 This file contains any messages produced by compilers while
2068 running configure, to aid debugging if configure makes a mistake.
2069
2070 It was created by GNU FriBidi $as_me 0.19.5, which was
2071 generated by GNU Autoconf 2.68.  Invocation command line was
2072
2073   $ $0 $@
2074
2075 _ACEOF
2076 exec 5>>config.log
2077 {
2078 cat <<_ASUNAME
2079 ## --------- ##
2080 ## Platform. ##
2081 ## --------- ##
2082
2083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2091
2092 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2093 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2095 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2096 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2097 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2098 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2099
2100 _ASUNAME
2101
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107     $as_echo "PATH: $as_dir"
2108   done
2109 IFS=$as_save_IFS
2110
2111 } >&5
2112
2113 cat >&5 <<_ACEOF
2114
2115
2116 ## ----------- ##
2117 ## Core tests. ##
2118 ## ----------- ##
2119
2120 _ACEOF
2121
2122
2123 # Keep a trace of the command line.
2124 # Strip out --no-create and --no-recursion so they do not pile up.
2125 # Strip out --silent because we don't want to record it for future runs.
2126 # Also quote any args containing shell meta-characters.
2127 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_configure_args=
2129 ac_configure_args0=
2130 ac_configure_args1=
2131 ac_must_keep_next=false
2132 for ac_pass in 1 2
2133 do
2134   for ac_arg
2135   do
2136     case $ac_arg in
2137     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139     | -silent | --silent | --silen | --sile | --sil)
2140       continue ;;
2141     *\'*)
2142       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2143     esac
2144     case $ac_pass in
2145     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146     2)
2147       as_fn_append ac_configure_args1 " '$ac_arg'"
2148       if test $ac_must_keep_next = true; then
2149         ac_must_keep_next=false # Got value, back to normal.
2150       else
2151         case $ac_arg in
2152           *=* | --config-cache | -C | -disable-* | --disable-* \
2153           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155           | -with-* | --with-* | -without-* | --without-* | --x)
2156             case "$ac_configure_args0 " in
2157               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158             esac
2159             ;;
2160           -* ) ac_must_keep_next=true ;;
2161         esac
2162       fi
2163       as_fn_append ac_configure_args " '$ac_arg'"
2164       ;;
2165     esac
2166   done
2167 done
2168 { ac_configure_args0=; unset ac_configure_args0;}
2169 { ac_configure_args1=; unset ac_configure_args1;}
2170
2171 # When interrupted or exit'd, cleanup temporary files, and complete
2172 # config.log.  We remove comments because anyway the quotes in there
2173 # would cause problems or look ugly.
2174 # WARNING: Use '\'' to represent an apostrophe within the trap.
2175 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2176 trap 'exit_status=$?
2177   # Save into config.log some information that might help in debugging.
2178   {
2179     echo
2180
2181     $as_echo "## ---------------- ##
2182 ## Cache variables. ##
2183 ## ---------------- ##"
2184     echo
2185     # The following way of writing the cache mishandles newlines in values,
2186 (
2187   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188     eval ac_val=\$$ac_var
2189     case $ac_val in #(
2190     *${as_nl}*)
2191       case $ac_var in #(
2192       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194       esac
2195       case $ac_var in #(
2196       _ | IFS | as_nl) ;; #(
2197       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198       *) { eval $ac_var=; unset $ac_var;} ;;
2199       esac ;;
2200     esac
2201   done
2202   (set) 2>&1 |
2203     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204     *${as_nl}ac_space=\ *)
2205       sed -n \
2206         "s/'\''/'\''\\\\'\'''\''/g;
2207           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208       ;; #(
2209     *)
2210       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211       ;;
2212     esac |
2213     sort
2214 )
2215     echo
2216
2217     $as_echo "## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##"
2220     echo
2221     for ac_var in $ac_subst_vars
2222     do
2223       eval ac_val=\$$ac_var
2224       case $ac_val in
2225       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226       esac
2227       $as_echo "$ac_var='\''$ac_val'\''"
2228     done | sort
2229     echo
2230
2231     if test -n "$ac_subst_files"; then
2232       $as_echo "## ------------------- ##
2233 ## File substitutions. ##
2234 ## ------------------- ##"
2235       echo
2236       for ac_var in $ac_subst_files
2237       do
2238         eval ac_val=\$$ac_var
2239         case $ac_val in
2240         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241         esac
2242         $as_echo "$ac_var='\''$ac_val'\''"
2243       done | sort
2244       echo
2245     fi
2246
2247     if test -s confdefs.h; then
2248       $as_echo "## ----------- ##
2249 ## confdefs.h. ##
2250 ## ----------- ##"
2251       echo
2252       cat confdefs.h
2253       echo
2254     fi
2255     test "$ac_signal" != 0 &&
2256       $as_echo "$as_me: caught signal $ac_signal"
2257     $as_echo "$as_me: exit $exit_status"
2258   } >&5
2259   rm -f core *.core core.conftest.* &&
2260     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2261     exit $exit_status
2262 ' 0
2263 for ac_signal in 1 2 13 15; do
2264   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2265 done
2266 ac_signal=0
2267
2268 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2269 rm -f -r conftest* confdefs.h
2270
2271 $as_echo "/* confdefs.h */" > confdefs.h
2272
2273 # Predefined preprocessor variables.
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_NAME "$PACKAGE_NAME"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_STRING "$PACKAGE_STRING"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_URL "$PACKAGE_URL"
2297 _ACEOF
2298
2299
2300 # Let the site file select an alternate cache file if it wants to.
2301 # Prefer an explicitly selected file to automatically selected ones.
2302 ac_site_file1=NONE
2303 ac_site_file2=NONE
2304 if test -n "$CONFIG_SITE"; then
2305   # We do not want a PATH search for config.site.
2306   case $CONFIG_SITE in #((
2307     -*)  ac_site_file1=./$CONFIG_SITE;;
2308     */*) ac_site_file1=$CONFIG_SITE;;
2309     *)   ac_site_file1=./$CONFIG_SITE;;
2310   esac
2311 elif test "x$prefix" != xNONE; then
2312   ac_site_file1=$prefix/share/config.site
2313   ac_site_file2=$prefix/etc/config.site
2314 else
2315   ac_site_file1=$ac_default_prefix/share/config.site
2316   ac_site_file2=$ac_default_prefix/etc/config.site
2317 fi
2318 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 do
2320   test "x$ac_site_file" = xNONE && continue
2321   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2322     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2324     sed 's/^/| /' "$ac_site_file" >&5
2325     . "$ac_site_file" \
2326       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 as_fn_error $? "failed to load site script $ac_site_file
2329 See \`config.log' for more details" "$LINENO" 5; }
2330   fi
2331 done
2332
2333 if test -r "$cache_file"; then
2334   # Some versions of bash will fail to source /dev/null (special files
2335   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2336   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339     case $cache_file in
2340       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341       *)                      . "./$cache_file";;
2342     esac
2343   fi
2344 else
2345   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346 $as_echo "$as_me: creating cache $cache_file" >&6;}
2347   >$cache_file
2348 fi
2349
2350 # Check that the precious variables saved in the cache have kept the same
2351 # value.
2352 ac_cache_corrupted=false
2353 for ac_var in $ac_precious_vars; do
2354   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2355   eval ac_new_set=\$ac_env_${ac_var}_set
2356   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2357   eval ac_new_val=\$ac_env_${ac_var}_value
2358   case $ac_old_set,$ac_new_set in
2359     set,)
2360       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2362       ac_cache_corrupted=: ;;
2363     ,set)
2364       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2365 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2366       ac_cache_corrupted=: ;;
2367     ,);;
2368     *)
2369       if test "x$ac_old_val" != "x$ac_new_val"; then
2370         # differences in whitespace do not lead to failure.
2371         ac_old_val_w=`echo x $ac_old_val`
2372         ac_new_val_w=`echo x $ac_new_val`
2373         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2374           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2375 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376           ac_cache_corrupted=:
2377         else
2378           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2379 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2380           eval $ac_var=\$ac_old_val
2381         fi
2382         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2383 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2384         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2385 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2386       fi;;
2387   esac
2388   # Pass precious variables to config.status.
2389   if test "$ac_new_set" = set; then
2390     case $ac_new_val in
2391     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2392     *) ac_arg=$ac_var=$ac_new_val ;;
2393     esac
2394     case " $ac_configure_args " in
2395       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2396       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2397     esac
2398   fi
2399 done
2400 if $ac_cache_corrupted; then
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2404 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2405   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2406 fi
2407 ## -------------------- ##
2408 ## Main body of script. ##
2409 ## -------------------- ##
2410
2411 ac_ext=c
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416
2417
2418
2419
2420 ac_config_headers="$ac_config_headers config.h"
2421
2422
2423 am__api_version='1.11'
2424
2425 ac_aux_dir=
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427   if test -f "$ac_dir/install-sh"; then
2428     ac_aux_dir=$ac_dir
2429     ac_install_sh="$ac_aux_dir/install-sh -c"
2430     break
2431   elif test -f "$ac_dir/install.sh"; then
2432     ac_aux_dir=$ac_dir
2433     ac_install_sh="$ac_aux_dir/install.sh -c"
2434     break
2435   elif test -f "$ac_dir/shtool"; then
2436     ac_aux_dir=$ac_dir
2437     ac_install_sh="$ac_aux_dir/shtool install -c"
2438     break
2439   fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454 # Find a good install program.  We prefer a C program (faster),
2455 # so one script is as good as another.  But avoid the broken or
2456 # incompatible versions:
2457 # SysV /etc/install, /usr/sbin/install
2458 # SunOS /usr/etc/install
2459 # IRIX /sbin/install
2460 # AIX /bin/install
2461 # AmigaOS /C/install, which installs bootblocks on floppy discs
2462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2465 # OS/2's system install, which has a completely different semantic
2466 # ./install, which can be erroneously created by make from ./install.sh.
2467 # Reject install programs that cannot install multiple files.
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2469 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2470 if test -z "$INSTALL"; then
2471 if ${ac_cv_path_install+:} false; then :
2472   $as_echo_n "(cached) " >&6
2473 else
2474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479     # Account for people who put trailing slashes in PATH elements.
2480 case $as_dir/ in #((
2481   ./ | .// | /[cC]/* | \
2482   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2483   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2484   /usr/ucb/* ) ;;
2485   *)
2486     # OSF1 and SCO ODT 3.0 have their own names for install.
2487     # Don't use installbsd from OSF since it installs stuff as root
2488     # by default.
2489     for ac_prog in ginstall scoinst install; do
2490       for ac_exec_ext in '' $ac_executable_extensions; do
2491         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2492           if test $ac_prog = install &&
2493             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494             # AIX install.  It has an incompatible calling convention.
2495             :
2496           elif test $ac_prog = install &&
2497             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498             # program-specific install script used by HP pwplus--don't use.
2499             :
2500           else
2501             rm -rf conftest.one conftest.two conftest.dir
2502             echo one > conftest.one
2503             echo two > conftest.two
2504             mkdir conftest.dir
2505             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2506               test -s conftest.one && test -s conftest.two &&
2507               test -s conftest.dir/conftest.one &&
2508               test -s conftest.dir/conftest.two
2509             then
2510               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511               break 3
2512             fi
2513           fi
2514         fi
2515       done
2516     done
2517     ;;
2518 esac
2519
2520   done
2521 IFS=$as_save_IFS
2522
2523 rm -rf conftest.one conftest.two conftest.dir
2524
2525 fi
2526   if test "${ac_cv_path_install+set}" = set; then
2527     INSTALL=$ac_cv_path_install
2528   else
2529     # As a last resort, use the slow shell script.  Don't cache a
2530     # value for INSTALL within a source directory, because that will
2531     # break other packages using the cache if that directory is
2532     # removed, or if the value is a relative name.
2533     INSTALL=$ac_install_sh
2534   fi
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2537 $as_echo "$INSTALL" >&6; }
2538
2539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2540 # It thinks the first close brace ends the variable substitution.
2541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2542
2543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2544
2545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2546
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2548 $as_echo_n "checking whether build environment is sane... " >&6; }
2549 # Just in case
2550 sleep 1
2551 echo timestamp > conftest.file
2552 # Reject unsafe characters in $srcdir or the absolute working directory
2553 # name.  Accept space and tab only in the latter.
2554 am_lf='
2555 '
2556 case `pwd` in
2557   *[\\\"\#\$\&\'\`$am_lf]*)
2558     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2559 esac
2560 case $srcdir in
2561   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2562     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2563 esac
2564
2565 # Do `set' in a subshell so we don't clobber the current shell's
2566 # arguments.  Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2569 # directory).
2570 if (
2571    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2572    if test "$*" = "X"; then
2573       # -L didn't work.
2574       set X `ls -t "$srcdir/configure" conftest.file`
2575    fi
2576    rm -f conftest.file
2577    if test "$*" != "X $srcdir/configure conftest.file" \
2578       && test "$*" != "X conftest.file $srcdir/configure"; then
2579
2580       # If neither matched, then we have a broken ls.  This can happen
2581       # if, for instance, CONFIG_SHELL is bash and it inherits a
2582       # broken ls alias from the environment.  This has actually
2583       # happened.  Such a system could not be considered "sane".
2584       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2585 alias in your environment" "$LINENO" 5
2586    fi
2587
2588    test "$2" = conftest.file
2589    )
2590 then
2591    # Ok.
2592    :
2593 else
2594    as_fn_error $? "newly created file is older than distributed files!
2595 Check your system clock" "$LINENO" 5
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2599 test "$program_prefix" != NONE &&
2600   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2601 # Use a double $ so make ignores it.
2602 test "$program_suffix" != NONE &&
2603   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2604 # Double any \ or $.
2605 # By default was `s,x,x', remove it if useless.
2606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2608
2609 # expand $ac_aux_dir to an absolute path
2610 am_aux_dir=`cd $ac_aux_dir && pwd`
2611
2612 if test x"${MISSING+set}" != xset; then
2613   case $am_aux_dir in
2614   *\ * | *\     *)
2615     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2616   *)
2617     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2618   esac
2619 fi
2620 # Use eval to expand $SHELL
2621 if eval "$MISSING --run true"; then
2622   am_missing_run="$MISSING --run "
2623 else
2624   am_missing_run=
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2626 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2627 fi
2628
2629 if test x"${install_sh}" != xset; then
2630   case $am_aux_dir in
2631   *\ * | *\     *)
2632     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2633   *)
2634     install_sh="\${SHELL} $am_aux_dir/install-sh"
2635   esac
2636 fi
2637
2638 # Installed binaries are usually stripped using `strip' when the user
2639 # run `make install-strip'.  However `strip' might not be the right
2640 # tool to use in cross-compilation environments, therefore Automake
2641 # will honor the `STRIP' environment variable to overrule this program.
2642 if test "$cross_compiling" != no; then
2643   if test -n "$ac_tool_prefix"; then
2644   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_STRIP+:} false; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test -n "$STRIP"; then
2652   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 STRIP=$ac_cv_prog_STRIP
2672 if test -n "$STRIP"; then
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2674 $as_echo "$STRIP" >&6; }
2675 else
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$ac_cv_prog_STRIP"; then
2683   ac_ct_STRIP=$STRIP
2684   # Extract the first word of "strip", so it can be a program name with args.
2685 set dummy strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2689   $as_echo_n "(cached) " >&6
2690 else
2691   if test -n "$ac_ct_STRIP"; then
2692   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_exec_ext in '' $ac_executable_extensions; do
2700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701     ac_cv_prog_ac_ct_STRIP="strip"
2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706   done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2712 if test -n "$ac_ct_STRIP"; then
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2714 $as_echo "$ac_ct_STRIP" >&6; }
2715 else
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720   if test "x$ac_ct_STRIP" = x; then
2721     STRIP=":"
2722   else
2723     case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     STRIP=$ac_ct_STRIP
2730   fi
2731 else
2732   STRIP="$ac_cv_prog_STRIP"
2733 fi
2734
2735 fi
2736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2740 if test -z "$MKDIR_P"; then
2741   if ${ac_cv_path_mkdir+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749     for ac_prog in mkdir gmkdir; do
2750          for ac_exec_ext in '' $ac_executable_extensions; do
2751            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2752            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2753              'mkdir (GNU coreutils) '* | \
2754              'mkdir (coreutils) '* | \
2755              'mkdir (fileutils) '4.1*)
2756                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2757                break 3;;
2758            esac
2759          done
2760        done
2761   done
2762 IFS=$as_save_IFS
2763
2764 fi
2765
2766   test -d ./--version && rmdir ./--version
2767   if test "${ac_cv_path_mkdir+set}" = set; then
2768     MKDIR_P="$ac_cv_path_mkdir -p"
2769   else
2770     # As a last resort, use the slow shell script.  Don't cache a
2771     # value for MKDIR_P within a source directory, because that will
2772     # break other packages using the cache if that directory is
2773     # removed, or if the value is a relative name.
2774     MKDIR_P="$ac_install_sh -d"
2775   fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2778 $as_echo "$MKDIR_P" >&6; }
2779
2780 mkdir_p="$MKDIR_P"
2781 case $mkdir_p in
2782   [\\/$]* | ?:[\\/]*) ;;
2783   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2784 esac
2785
2786 for ac_prog in gawk mawk nawk awk
2787 do
2788   # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_AWK+:} false; then :
2793   $as_echo_n "(cached) " >&6
2794 else
2795   if test -n "$AWK"; then
2796   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803     for ac_exec_ext in '' $ac_executable_extensions; do
2804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805     ac_cv_prog_AWK="$ac_prog"
2806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810   done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 AWK=$ac_cv_prog_AWK
2816 if test -n "$AWK"; then
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2818 $as_echo "$AWK" >&6; }
2819 else
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825   test -n "$AWK" && break
2826 done
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2829 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2830 set x ${MAKE-make}
2831 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2832 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   cat >conftest.make <<\_ACEOF
2836 SHELL = /bin/sh
2837 all:
2838         @echo '@@@%%%=$(MAKE)=@@@%%%'
2839 _ACEOF
2840 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2841 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2842   *@@@%%%=?*=@@@%%%*)
2843     eval ac_cv_prog_make_${ac_make}_set=yes;;
2844   *)
2845     eval ac_cv_prog_make_${ac_make}_set=no;;
2846 esac
2847 rm -f conftest.make
2848 fi
2849 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851 $as_echo "yes" >&6; }
2852   SET_MAKE=
2853 else
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856   SET_MAKE="MAKE=${MAKE-make}"
2857 fi
2858
2859 rm -rf .tst 2>/dev/null
2860 mkdir .tst 2>/dev/null
2861 if test -d .tst; then
2862   am__leading_dot=.
2863 else
2864   am__leading_dot=_
2865 fi
2866 rmdir .tst 2>/dev/null
2867
2868 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2869   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2870   # is not polluted with repeated "-I."
2871   am__isrc=' -I$(srcdir)'
2872   # test to see if srcdir already configured
2873   if test -f $srcdir/config.status; then
2874     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2875   fi
2876 fi
2877
2878 # test whether we have cygpath
2879 if test -z "$CYGPATH_W"; then
2880   if (cygpath --version) >/dev/null 2>/dev/null; then
2881     CYGPATH_W='cygpath -w'
2882   else
2883     CYGPATH_W=echo
2884   fi
2885 fi
2886
2887
2888 # Define the identity of the package.
2889  PACKAGE='fribidi'
2890  VERSION='0.19.5'
2891
2892
2893 # Some tools Automake needs.
2894
2895 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2896
2897
2898 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2899
2900
2901 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2902
2903
2904 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2905
2906
2907 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2908
2909 # We need awk for the "check" target.  The system "awk" is bad on
2910 # some platforms.
2911 # Always define AMTAR for backward compatibility.  Yes, it's still used
2912 # in the wild :-(  We should find a proper way to deprecate it ...
2913 AMTAR='$${TAR-tar}'
2914
2915 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2916
2917
2918
2919
2920
2921 # Check whether --enable-silent-rules was given.
2922 if test "${enable_silent_rules+set}" = set; then :
2923   enableval=$enable_silent_rules;
2924 fi
2925
2926 case $enable_silent_rules in
2927 yes) AM_DEFAULT_VERBOSITY=0;;
2928 no)  AM_DEFAULT_VERBOSITY=1;;
2929 *)   AM_DEFAULT_VERBOSITY=0;;
2930 esac
2931 am_make=${MAKE-make}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2933 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2934 if ${am_cv_make_support_nested_variables+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if $as_echo 'TRUE=$(BAR$(V))
2938 BAR0=false
2939 BAR1=true
2940 V=1
2941 am__doit:
2942         @$(TRUE)
2943 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2944   am_cv_make_support_nested_variables=yes
2945 else
2946   am_cv_make_support_nested_variables=no
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2950 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2951 if test $am_cv_make_support_nested_variables = yes; then
2952     AM_V='$(V)'
2953   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2954 else
2955   AM_V=$AM_DEFAULT_VERBOSITY
2956   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2957 fi
2958 AM_BACKSLASH='\'
2959
2960
2961 # Initialize libtool
2962
2963 case `pwd` in
2964   *\ * | *\     *)
2965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2967 esac
2968
2969
2970
2971 macro_version='2.4.2'
2972 macro_revision='1.3337'
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986 ltmain="$ac_aux_dir/ltmain.sh"
2987
2988 # Make sure we can run config.sub.
2989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2990   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2993 $as_echo_n "checking build system type... " >&6; }
2994 if ${ac_cv_build+:} false; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   ac_build_alias=$build_alias
2998 test "x$ac_build_alias" = x &&
2999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3000 test "x$ac_build_alias" = x &&
3001   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3003   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3004
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3007 $as_echo "$ac_cv_build" >&6; }
3008 case $ac_cv_build in
3009 *-*-*) ;;
3010 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3011 esac
3012 build=$ac_cv_build
3013 ac_save_IFS=$IFS; IFS='-'
3014 set x $ac_cv_build
3015 shift
3016 build_cpu=$1
3017 build_vendor=$2
3018 shift; shift
3019 # Remember, the first character of IFS is used to create $*,
3020 # except with old shells:
3021 build_os=$*
3022 IFS=$ac_save_IFS
3023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3024
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3027 $as_echo_n "checking host system type... " >&6; }
3028 if ${ac_cv_host+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test "x$host_alias" = x; then
3032   ac_cv_host=$ac_cv_build
3033 else
3034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3035     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3036 fi
3037
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3040 $as_echo "$ac_cv_host" >&6; }
3041 case $ac_cv_host in
3042 *-*-*) ;;
3043 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3044 esac
3045 host=$ac_cv_host
3046 ac_save_IFS=$IFS; IFS='-'
3047 set x $ac_cv_host
3048 shift
3049 host_cpu=$1
3050 host_vendor=$2
3051 shift; shift
3052 # Remember, the first character of IFS is used to create $*,
3053 # except with old shells:
3054 host_os=$*
3055 IFS=$ac_save_IFS
3056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3057
3058
3059 # Backslashify metacharacters that are still active within
3060 # double-quoted strings.
3061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3062
3063 # Same as above, but do not quote variable references.
3064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3065
3066 # Sed substitution to delay expansion of an escaped shell variable in a
3067 # double_quote_subst'ed string.
3068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3069
3070 # Sed substitution to delay expansion of an escaped single quote.
3071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3072
3073 # Sed substitution to avoid accidental globbing in evaled expressions
3074 no_glob_subst='s/\*/\\\*/g'
3075
3076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3081 $as_echo_n "checking how to print strings... " >&6; }
3082 # Test print first, because it will be a builtin if present.
3083 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3084    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3085   ECHO='print -r --'
3086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3087   ECHO='printf %s\n'
3088 else
3089   # Use this function as a fallback that always works.
3090   func_fallback_echo ()
3091   {
3092     eval 'cat <<_LTECHO_EOF
3093 $1
3094 _LTECHO_EOF'
3095   }
3096   ECHO='func_fallback_echo'
3097 fi
3098
3099 # func_echo_all arg...
3100 # Invoke $ECHO with all args, space-separated.
3101 func_echo_all ()
3102 {
3103     $ECHO ""
3104 }
3105
3106 case "$ECHO" in
3107   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3108 $as_echo "printf" >&6; } ;;
3109   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3110 $as_echo "print -r" >&6; } ;;
3111   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3112 $as_echo "cat" >&6; } ;;
3113 esac
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128 DEPDIR="${am__leading_dot}deps"
3129
3130 ac_config_commands="$ac_config_commands depfiles"
3131
3132
3133 am_make=${MAKE-make}
3134 cat > confinc << 'END'
3135 am__doit:
3136         @echo this is the am__doit target
3137 .PHONY: am__doit
3138 END
3139 # If we don't find an include directive, just comment out the code.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3141 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3142 am__include="#"
3143 am__quote=
3144 _am_result=none
3145 # First try GNU make style include.
3146 echo "include confinc" > confmf
3147 # Ignore all kinds of additional output from `make'.
3148 case `$am_make -s -f confmf 2> /dev/null` in #(
3149 *the\ am__doit\ target*)
3150   am__include=include
3151   am__quote=
3152   _am_result=GNU
3153   ;;
3154 esac
3155 # Now try BSD make style include.
3156 if test "$am__include" = "#"; then
3157    echo '.include "confinc"' > confmf
3158    case `$am_make -s -f confmf 2> /dev/null` in #(
3159    *the\ am__doit\ target*)
3160      am__include=.include
3161      am__quote="\""
3162      _am_result=BSD
3163      ;;
3164    esac
3165 fi
3166
3167
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3169 $as_echo "$_am_result" >&6; }
3170 rm -f confinc confmf
3171
3172 # Check whether --enable-dependency-tracking was given.
3173 if test "${enable_dependency_tracking+set}" = set; then :
3174   enableval=$enable_dependency_tracking;
3175 fi
3176
3177 if test "x$enable_dependency_tracking" != xno; then
3178   am_depcomp="$ac_aux_dir/depcomp"
3179   AMDEPBACKSLASH='\'
3180   am__nodep='_no'
3181 fi
3182  if test "x$enable_dependency_tracking" != xno; then
3183   AMDEP_TRUE=
3184   AMDEP_FALSE='#'
3185 else
3186   AMDEP_TRUE='#'
3187   AMDEP_FALSE=
3188 fi
3189
3190
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 if test -n "$ac_tool_prefix"; then
3197   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$CC"; then
3205   ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219   done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234 fi
3235 if test -z "$ac_cv_prog_CC"; then
3236   ac_ct_CC=$CC
3237   # Extract the first word of "gcc", so it can be a program name with args.
3238 set dummy gcc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$ac_ct_CC"; then
3245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_ac_ct_CC="gcc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273   if test "x$ac_ct_CC" = x; then
3274     CC=""
3275   else
3276     case $cross_compiling:$ac_tool_warned in
3277 yes:)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3280 ac_tool_warned=yes ;;
3281 esac
3282     CC=$ac_ct_CC
3283   fi
3284 else
3285   CC="$ac_cv_prog_CC"
3286 fi
3287
3288 if test -z "$CC"; then
3289           if test -n "$ac_tool_prefix"; then
3290     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}cc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -n "$CC"; then
3298   ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_exec_ext in '' $ac_executable_extensions; do
3306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307     ac_cv_prog_CC="${ac_tool_prefix}cc"
3308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312   done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327   fi
3328 fi
3329 if test -z "$CC"; then
3330   # Extract the first word of "cc", so it can be a program name with args.
3331 set dummy cc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$CC"; then
3338   ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340   ac_prog_rejected=no
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346     for ac_exec_ext in '' $ac_executable_extensions; do
3347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3349        ac_prog_rejected=yes
3350        continue
3351      fi
3352     ac_cv_prog_CC="cc"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 if test $ac_prog_rejected = yes; then
3361   # We found a bogon in the path, so make sure we never use it.
3362   set dummy $ac_cv_prog_CC
3363   shift
3364   if test $# != 0; then
3365     # We chose a different compiler from the bogus one.
3366     # However, it has the same basename, so the bogon will be chosen
3367     # first if we set CC to just the basename; use the full file name.
3368     shift
3369     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3370   fi
3371 fi
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 fi
3385 if test -z "$CC"; then
3386   if test -n "$ac_tool_prefix"; then
3387   for ac_prog in cl.exe
3388   do
3389     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if test -n "$CC"; then
3397   ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404     for ac_exec_ext in '' $ac_executable_extensions; do
3405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411   done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426     test -n "$CC" && break
3427   done
3428 fi
3429 if test -z "$CC"; then
3430   ac_ct_CC=$CC
3431   for ac_prog in cl.exe
3432 do
3433   # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if test -n "$ac_ct_CC"; then
3441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448     for ac_exec_ext in '' $ac_executable_extensions; do
3449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450     ac_cv_prog_ac_ct_CC="$ac_prog"
3451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455   done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463 $as_echo "$ac_ct_CC" >&6; }
3464 else
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469
3470   test -n "$ac_ct_CC" && break
3471 done
3472
3473   if test "x$ac_ct_CC" = x; then
3474     CC=""
3475   else
3476     case $cross_compiling:$ac_tool_warned in
3477 yes:)
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482     CC=$ac_ct_CC
3483   fi
3484 fi
3485
3486 fi
3487
3488
3489 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "no acceptable C compiler found in \$PATH
3492 See \`config.log' for more details" "$LINENO" 5; }
3493
3494 # Provide some information about the compiler.
3495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3496 set X $ac_compile
3497 ac_compiler=$2
3498 for ac_option in --version -v -V -qversion; do
3499   { { ac_try="$ac_compiler $ac_option >&5"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3507   ac_status=$?
3508   if test -s conftest.err; then
3509     sed '10a\
3510 ... rest of stderr output deleted ...
3511          10q' conftest.err >conftest.er1
3512     cat conftest.er1 >&5
3513   fi
3514   rm -f conftest.er1 conftest.err
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }
3517 done
3518
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 ac_clean_files_save=$ac_clean_files
3531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3532 # Try to create an executable without -o first, disregard a.out.
3533 # It will help us diagnose broken compilers, and finding out an intuition
3534 # of exeext.
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3536 $as_echo_n "checking whether the C compiler works... " >&6; }
3537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3538
3539 # The possible output files:
3540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3541
3542 ac_rmfiles=
3543 for ac_file in $ac_files
3544 do
3545   case $ac_file in
3546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3548   esac
3549 done
3550 rm -f $ac_rmfiles
3551
3552 if { { ac_try="$ac_link_default"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559   (eval "$ac_link_default") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562   test $ac_status = 0; }; then :
3563   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3565 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3566 # so that the user can short-circuit this test for compilers unknown to
3567 # Autoconf.
3568 for ac_file in $ac_files ''
3569 do
3570   test -f "$ac_file" || continue
3571   case $ac_file in
3572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3573         ;;
3574     [ab].out )
3575         # We found the default executable, but exeext='' is most
3576         # certainly right.
3577         break;;
3578     *.* )
3579         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3580         then :; else
3581            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582         fi
3583         # We set ac_cv_exeext here because the later test for it is not
3584         # safe: cross compilers may not add the suffix if given an `-o'
3585         # argument, so we may need to know it at that point already.
3586         # Even if this section looks crufty: it has the advantage of
3587         # actually working.
3588         break;;
3589     * )
3590         break;;
3591   esac
3592 done
3593 test "$ac_cv_exeext" = no && ac_cv_exeext=
3594
3595 else
3596   ac_file=''
3597 fi
3598 if test -z "$ac_file"; then :
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error 77 "C compiler cannot create executables
3607 See \`config.log' for more details" "$LINENO" 5; }
3608 else
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3610 $as_echo "yes" >&6; }
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3613 $as_echo_n "checking for C compiler default output file name... " >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3615 $as_echo "$ac_file" >&6; }
3616 ac_exeext=$ac_cv_exeext
3617
3618 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3619 ac_clean_files=$ac_clean_files_save
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3621 $as_echo_n "checking for suffix of executables... " >&6; }
3622 if { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_link") 2>&5
3630   ac_status=$?
3631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632   test $ac_status = 0; }; then :
3633   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3634 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3635 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 # `rm'.
3637 for ac_file in conftest.exe conftest conftest.*; do
3638   test -f "$ac_file" || continue
3639   case $ac_file in
3640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642           break;;
3643     * ) break;;
3644   esac
3645 done
3646 else
3647   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details" "$LINENO" 5; }
3651 fi
3652 rm -f conftest conftest$ac_cv_exeext
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3654 $as_echo "$ac_cv_exeext" >&6; }
3655
3656 rm -f conftest.$ac_ext
3657 EXEEXT=$ac_cv_exeext
3658 ac_exeext=$EXEEXT
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661 #include <stdio.h>
3662 int
3663 main ()
3664 {
3665 FILE *f = fopen ("conftest.out", "w");
3666  return ferror (f) || fclose (f) != 0;
3667
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 ac_clean_files="$ac_clean_files conftest.out"
3673 # Check that the compiler produces executables we can run.  If not, either
3674 # the compiler is broken, or we cross compile.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3676 $as_echo_n "checking whether we are cross compiling... " >&6; }
3677 if test "$cross_compiling" != yes; then
3678   { { ac_try="$ac_link"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685   (eval "$ac_link") 2>&5
3686   ac_status=$?
3687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688   test $ac_status = 0; }
3689   if { ac_try='./conftest$ac_cv_exeext'
3690   { { case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; }; then
3700     cross_compiling=no
3701   else
3702     if test "$cross_compiling" = maybe; then
3703         cross_compiling=yes
3704     else
3705         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details" "$LINENO" 5; }
3710     fi
3711   fi
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3714 $as_echo "$cross_compiling" >&6; }
3715
3716 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3717 ac_clean_files=$ac_clean_files_save
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3719 $as_echo_n "checking for suffix of object files... " >&6; }
3720 if ${ac_cv_objext+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 rm -f conftest.o conftest.obj
3735 if { { ac_try="$ac_compile"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742   (eval "$ac_compile") 2>&5
3743   ac_status=$?
3744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745   test $ac_status = 0; }; then :
3746   for ac_file in conftest.o conftest.obj conftest.*; do
3747   test -f "$ac_file" || continue;
3748   case $ac_file in
3749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3750     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3751        break;;
3752   esac
3753 done
3754 else
3755   $as_echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "cannot compute suffix of object files: cannot compile
3761 See \`config.log' for more details" "$LINENO" 5; }
3762 fi
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3766 $as_echo "$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3768 ac_objext=$OBJEXT
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3770 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3771 if ${ac_cv_c_compiler_gnu+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780 #ifndef __GNUC__
3781        choke me
3782 #endif
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789   ac_compiler_gnu=yes
3790 else
3791   ac_compiler_gnu=no
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3798 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3799 if test $ac_compiler_gnu = yes; then
3800   GCC=yes
3801 else
3802   GCC=
3803 fi
3804 ac_test_CFLAGS=${CFLAGS+set}
3805 ac_save_CFLAGS=$CFLAGS
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3807 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3808 if ${ac_cv_prog_cc_g+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   ac_save_c_werror_flag=$ac_c_werror_flag
3812    ac_c_werror_flag=yes
3813    ac_cv_prog_cc_g=no
3814    CFLAGS="-g"
3815    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h.  */
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_cv_prog_cc_g=yes
3828 else
3829   CFLAGS=""
3830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842
3843 else
3844   ac_c_werror_flag=$ac_save_c_werror_flag
3845          CFLAGS="-g"
3846          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858   ac_cv_prog_cc_g=yes
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865    ac_c_werror_flag=$ac_save_c_werror_flag
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3868 $as_echo "$ac_cv_prog_cc_g" >&6; }
3869 if test "$ac_test_CFLAGS" = set; then
3870   CFLAGS=$ac_save_CFLAGS
3871 elif test $ac_cv_prog_cc_g = yes; then
3872   if test "$GCC" = yes; then
3873     CFLAGS="-g -O2"
3874   else
3875     CFLAGS="-g"
3876   fi
3877 else
3878   if test "$GCC" = yes; then
3879     CFLAGS="-O2"
3880   else
3881     CFLAGS=
3882   fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3885 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3886 if ${ac_cv_prog_cc_c89+:} false; then :
3887   $as_echo_n "(cached) " >&6
3888 else
3889   ac_cv_prog_cc_c89=no
3890 ac_save_CC=$CC
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893 #include <stdarg.h>
3894 #include <stdio.h>
3895 #include <sys/types.h>
3896 #include <sys/stat.h>
3897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3898 struct buf { int x; };
3899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3900 static char *e (p, i)
3901      char **p;
3902      int i;
3903 {
3904   return p[i];
3905 }
3906 static char *f (char * (*g) (char **, int), char **p, ...)
3907 {
3908   char *s;
3909   va_list v;
3910   va_start (v,p);
3911   s = g (p, va_arg (v,int));
3912   va_end (v);
3913   return s;
3914 }
3915
3916 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3917    function prototypes and stuff, but not '\xHH' hex character constants.
3918    These don't provoke an error unfortunately, instead are silently treated
3919    as 'x'.  The following induces an error, until -std is added to get
3920    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3921    array size at least.  It's necessary to write '\x00'==0 to get something
3922    that's true only with -std.  */
3923 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3924
3925 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3926    inside strings and character constants.  */
3927 #define FOO(x) 'x'
3928 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3929
3930 int test (int i, double x);
3931 struct s1 {int (*f) (int a);};
3932 struct s2 {int (*f) (double a);};
3933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3934 int argc;
3935 char **argv;
3936 int
3937 main ()
3938 {
3939 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3945         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3946 do
3947   CC="$ac_save_CC $ac_arg"
3948   if ac_fn_c_try_compile "$LINENO"; then :
3949   ac_cv_prog_cc_c89=$ac_arg
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext
3952   test "x$ac_cv_prog_cc_c89" != "xno" && break
3953 done
3954 rm -f conftest.$ac_ext
3955 CC=$ac_save_CC
3956
3957 fi
3958 # AC_CACHE_VAL
3959 case "x$ac_cv_prog_cc_c89" in
3960   x)
3961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3962 $as_echo "none needed" >&6; } ;;
3963   xno)
3964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3965 $as_echo "unsupported" >&6; } ;;
3966   *)
3967     CC="$CC $ac_cv_prog_cc_c89"
3968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3970 esac
3971 if test "x$ac_cv_prog_cc_c89" != xno; then :
3972
3973 fi
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981 depcc="$CC"   am_compiler_list=
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3984 $as_echo_n "checking dependency style of $depcc... " >&6; }
3985 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3989   # We make a subdir and do the tests there.  Otherwise we can end up
3990   # making bogus files that we don't know about and never remove.  For
3991   # instance it was reported that on HP-UX the gcc test will end up
3992   # making a dummy file named `D' -- because `-MD' means `put the output
3993   # in D'.
3994   rm -rf conftest.dir
3995   mkdir conftest.dir
3996   # Copy depcomp to subdir because otherwise we won't find it if we're
3997   # using a relative directory.
3998   cp "$am_depcomp" conftest.dir
3999   cd conftest.dir
4000   # We will build objects and dependencies in a subdirectory because
4001   # it helps to detect inapplicable dependency modes.  For instance
4002   # both Tru64's cc and ICC support -MD to output dependencies as a
4003   # side effect of compilation, but ICC will put the dependencies in
4004   # the current directory while Tru64 will put them in the object
4005   # directory.
4006   mkdir sub
4007
4008   am_cv_CC_dependencies_compiler_type=none
4009   if test "$am_compiler_list" = ""; then
4010      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4011   fi
4012   am__universal=false
4013   case " $depcc " in #(
4014      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4015      esac
4016
4017   for depmode in $am_compiler_list; do
4018     # Setup a source with many dependencies, because some compilers
4019     # like to wrap large dependency lists on column 80 (with \), and
4020     # we should not choose a depcomp mode which is confused by this.
4021     #
4022     # We need to recreate these files for each test, as the compiler may
4023     # overwrite some of them when testing with obscure command lines.
4024     # This happens at least with the AIX C compiler.
4025     : > sub/conftest.c
4026     for i in 1 2 3 4 5 6; do
4027       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4028       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4029       # Solaris 8's {/usr,}/bin/sh.
4030       touch sub/conftst$i.h
4031     done
4032     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4033
4034     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4035     # mode.  It turns out that the SunPro C++ compiler does not properly
4036     # handle `-M -o', and we need to detect this.  Also, some Intel
4037     # versions had trouble with output in subdirs
4038     am__obj=sub/conftest.${OBJEXT-o}
4039     am__minus_obj="-o $am__obj"
4040     case $depmode in
4041     gcc)
4042       # This depmode causes a compiler race in universal mode.
4043       test "$am__universal" = false || continue
4044       ;;
4045     nosideeffect)
4046       # after this tag, mechanisms are not by side-effect, so they'll
4047       # only be used when explicitly requested
4048       if test "x$enable_dependency_tracking" = xyes; then
4049         continue
4050       else
4051         break
4052       fi
4053       ;;
4054     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4055       # This compiler won't grok `-c -o', but also, the minuso test has
4056       # not run yet.  These depmodes are late enough in the game, and
4057       # so weak that their functioning should not be impacted.
4058       am__obj=conftest.${OBJEXT-o}
4059       am__minus_obj=
4060       ;;
4061     none) break ;;
4062     esac
4063     if depmode=$depmode \
4064        source=sub/conftest.c object=$am__obj \
4065        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4066        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4067          >/dev/null 2>conftest.err &&
4068        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4069        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4070        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4071        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4072       # icc doesn't choke on unknown options, it will just issue warnings
4073       # or remarks (even with -Werror).  So we grep stderr for any message
4074       # that says an option was ignored or not supported.
4075       # When given -MP, icc 7.0 and 7.1 complain thusly:
4076       #   icc: Command line warning: ignoring option '-M'; no argument required
4077       # The diagnosis changed in icc 8.0:
4078       #   icc: Command line remark: option '-MP' not supported
4079       if (grep 'ignoring option' conftest.err ||
4080           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4081         am_cv_CC_dependencies_compiler_type=$depmode
4082         break
4083       fi
4084     fi
4085   done
4086
4087   cd ..
4088   rm -rf conftest.dir
4089 else
4090   am_cv_CC_dependencies_compiler_type=none
4091 fi
4092
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4097
4098  if
4099   test "x$enable_dependency_tracking" != xno \
4100   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4101   am__fastdepCC_TRUE=
4102   am__fastdepCC_FALSE='#'
4103 else
4104   am__fastdepCC_TRUE='#'
4105   am__fastdepCC_FALSE=
4106 fi
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4111 if ${ac_cv_path_SED+:} false; then :
4112   $as_echo_n "(cached) " >&6
4113 else
4114             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4115      for ac_i in 1 2 3 4 5 6 7; do
4116        ac_script="$ac_script$as_nl$ac_script"
4117      done
4118      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4119      { ac_script=; unset ac_script;}
4120      if test -z "$SED"; then
4121   ac_path_SED_found=false
4122   # Loop through the user's path and test for each of PROGNAME-LIST
4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128     for ac_prog in sed gsed; do
4129     for ac_exec_ext in '' $ac_executable_extensions; do
4130       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4131       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4132 # Check for GNU ac_path_SED and select it if it is found.
4133   # Check for GNU $ac_path_SED
4134 case `"$ac_path_SED" --version 2>&1` in
4135 *GNU*)
4136   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4137 *)
4138   ac_count=0
4139   $as_echo_n 0123456789 >"conftest.in"
4140   while :
4141   do
4142     cat "conftest.in" "conftest.in" >"conftest.tmp"
4143     mv "conftest.tmp" "conftest.in"
4144     cp "conftest.in" "conftest.nl"
4145     $as_echo '' >> "conftest.nl"
4146     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148     as_fn_arith $ac_count + 1 && ac_count=$as_val
4149     if test $ac_count -gt ${ac_path_SED_max-0}; then
4150       # Best one so far, save it but keep looking for a better one
4151       ac_cv_path_SED="$ac_path_SED"
4152       ac_path_SED_max=$ac_count
4153     fi
4154     # 10*(2^10) chars as input seems more than enough
4155     test $ac_count -gt 10 && break
4156   done
4157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158 esac
4159
4160       $ac_path_SED_found && break 3
4161     done
4162   done
4163   done
4164 IFS=$as_save_IFS
4165   if test -z "$ac_cv_path_SED"; then
4166     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4167   fi
4168 else
4169   ac_cv_path_SED=$SED
4170 fi
4171
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4174 $as_echo "$ac_cv_path_SED" >&6; }
4175  SED="$ac_cv_path_SED"
4176   rm -f conftest.sed
4177
4178 test -z "$SED" && SED=sed
4179 Xsed="$SED -e 1s/^X//"
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4192 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4193 if ${ac_cv_path_GREP+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -z "$GREP"; then
4197   ac_path_GREP_found=false
4198   # Loop through the user's path and test for each of PROGNAME-LIST
4199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_prog in grep ggrep; do
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4207       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4208 # Check for GNU ac_path_GREP and select it if it is found.
4209   # Check for GNU $ac_path_GREP
4210 case `"$ac_path_GREP" --version 2>&1` in
4211 *GNU*)
4212   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213 *)
4214   ac_count=0
4215   $as_echo_n 0123456789 >"conftest.in"
4216   while :
4217   do
4218     cat "conftest.in" "conftest.in" >"conftest.tmp"
4219     mv "conftest.tmp" "conftest.in"
4220     cp "conftest.in" "conftest.nl"
4221     $as_echo 'GREP' >> "conftest.nl"
4222     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224     as_fn_arith $ac_count + 1 && ac_count=$as_val
4225     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226       # Best one so far, save it but keep looking for a better one
4227       ac_cv_path_GREP="$ac_path_GREP"
4228       ac_path_GREP_max=$ac_count
4229     fi
4230     # 10*(2^10) chars as input seems more than enough
4231     test $ac_count -gt 10 && break
4232   done
4233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236       $ac_path_GREP_found && break 3
4237     done
4238   done
4239   done
4240 IFS=$as_save_IFS
4241   if test -z "$ac_cv_path_GREP"; then
4242     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243   fi
4244 else
4245   ac_cv_path_GREP=$GREP
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4250 $as_echo "$ac_cv_path_GREP" >&6; }
4251  GREP="$ac_cv_path_GREP"
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4255 $as_echo_n "checking for egrep... " >&6; }
4256 if ${ac_cv_path_EGREP+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4260    then ac_cv_path_EGREP="$GREP -E"
4261    else
4262      if test -z "$EGREP"; then
4263   ac_path_EGREP_found=false
4264   # Loop through the user's path and test for each of PROGNAME-LIST
4265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_prog in egrep; do
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4274 # Check for GNU ac_path_EGREP and select it if it is found.
4275   # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280   ac_count=0
4281   $as_echo_n 0123456789 >"conftest.in"
4282   while :
4283   do
4284     cat "conftest.in" "conftest.in" >"conftest.tmp"
4285     mv "conftest.tmp" "conftest.in"
4286     cp "conftest.in" "conftest.nl"
4287     $as_echo 'EGREP' >> "conftest.nl"
4288     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290     as_fn_arith $ac_count + 1 && ac_count=$as_val
4291     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292       # Best one so far, save it but keep looking for a better one
4293       ac_cv_path_EGREP="$ac_path_EGREP"
4294       ac_path_EGREP_max=$ac_count
4295     fi
4296     # 10*(2^10) chars as input seems more than enough
4297     test $ac_count -gt 10 && break
4298   done
4299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302       $ac_path_EGREP_found && break 3
4303     done
4304   done
4305   done
4306 IFS=$as_save_IFS
4307   if test -z "$ac_cv_path_EGREP"; then
4308     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309   fi
4310 else
4311   ac_cv_path_EGREP=$EGREP
4312 fi
4313
4314    fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4317 $as_echo "$ac_cv_path_EGREP" >&6; }
4318  EGREP="$ac_cv_path_EGREP"
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4322 $as_echo_n "checking for fgrep... " >&6; }
4323 if ${ac_cv_path_FGREP+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4327    then ac_cv_path_FGREP="$GREP -F"
4328    else
4329      if test -z "$FGREP"; then
4330   ac_path_FGREP_found=false
4331   # Loop through the user's path and test for each of PROGNAME-LIST
4332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337     for ac_prog in fgrep; do
4338     for ac_exec_ext in '' $ac_executable_extensions; do
4339       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4340       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4341 # Check for GNU ac_path_FGREP and select it if it is found.
4342   # Check for GNU $ac_path_FGREP
4343 case `"$ac_path_FGREP" --version 2>&1` in
4344 *GNU*)
4345   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4346 *)
4347   ac_count=0
4348   $as_echo_n 0123456789 >"conftest.in"
4349   while :
4350   do
4351     cat "conftest.in" "conftest.in" >"conftest.tmp"
4352     mv "conftest.tmp" "conftest.in"
4353     cp "conftest.in" "conftest.nl"
4354     $as_echo 'FGREP' >> "conftest.nl"
4355     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357     as_fn_arith $ac_count + 1 && ac_count=$as_val
4358     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4359       # Best one so far, save it but keep looking for a better one
4360       ac_cv_path_FGREP="$ac_path_FGREP"
4361       ac_path_FGREP_max=$ac_count
4362     fi
4363     # 10*(2^10) chars as input seems more than enough
4364     test $ac_count -gt 10 && break
4365   done
4366   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367 esac
4368
4369       $ac_path_FGREP_found && break 3
4370     done
4371   done
4372   done
4373 IFS=$as_save_IFS
4374   if test -z "$ac_cv_path_FGREP"; then
4375     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376   fi
4377 else
4378   ac_cv_path_FGREP=$FGREP
4379 fi
4380
4381    fi
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4384 $as_echo "$ac_cv_path_FGREP" >&6; }
4385  FGREP="$ac_cv_path_FGREP"
4386
4387
4388 test -z "$GREP" && GREP=grep
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 # Check whether --with-gnu-ld was given.
4409 if test "${with_gnu_ld+set}" = set; then :
4410   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4411 else
4412   with_gnu_ld=no
4413 fi
4414
4415 ac_prog=ld
4416 if test "$GCC" = yes; then
4417   # Check if gcc -print-prog-name=ld gives a path.
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4419 $as_echo_n "checking for ld used by $CC... " >&6; }
4420   case $host in
4421   *-*-mingw*)
4422     # gcc leaves a trailing carriage return which upsets mingw
4423     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4424   *)
4425     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4426   esac
4427   case $ac_prog in
4428     # Accept absolute paths.
4429     [\\/]* | ?:[\\/]*)
4430       re_direlt='/[^/][^/]*/\.\./'
4431       # Canonicalize the pathname of ld
4432       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4433       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4434         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4435       done
4436       test -z "$LD" && LD="$ac_prog"
4437       ;;
4438   "")
4439     # If it fails, then pretend we aren't using GCC.
4440     ac_prog=ld
4441     ;;
4442   *)
4443     # If it is relative, then search for the first ld in PATH.
4444     with_gnu_ld=unknown
4445     ;;
4446   esac
4447 elif test "$with_gnu_ld" = yes; then
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4449 $as_echo_n "checking for GNU ld... " >&6; }
4450 else
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4452 $as_echo_n "checking for non-GNU ld... " >&6; }
4453 fi
4454 if ${lt_cv_path_LD+:} false; then :
4455   $as_echo_n "(cached) " >&6
4456 else
4457   if test -z "$LD"; then
4458   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4459   for ac_dir in $PATH; do
4460     IFS="$lt_save_ifs"
4461     test -z "$ac_dir" && ac_dir=.
4462     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4463       lt_cv_path_LD="$ac_dir/$ac_prog"
4464       # Check to see if the program is GNU ld.  I'd rather use --version,
4465       # but apparently some variants of GNU ld only accept -v.
4466       # Break only if it was the GNU/non-GNU ld that we prefer.
4467       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4468       *GNU* | *'with BFD'*)
4469         test "$with_gnu_ld" != no && break
4470         ;;
4471       *)
4472         test "$with_gnu_ld" != yes && break
4473         ;;
4474       esac
4475     fi
4476   done
4477   IFS="$lt_save_ifs"
4478 else
4479   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4480 fi
4481 fi
4482
4483 LD="$lt_cv_path_LD"
4484 if test -n "$LD"; then
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4486 $as_echo "$LD" >&6; }
4487 else
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4493 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4494 if ${lt_cv_prog_gnu_ld+:} false; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4498 case `$LD -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500   lt_cv_prog_gnu_ld=yes
4501   ;;
4502 *)
4503   lt_cv_prog_gnu_ld=no
4504   ;;
4505 esac
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4508 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4509 with_gnu_ld=$lt_cv_prog_gnu_ld
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4520 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4521 if ${lt_cv_path_NM+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if test -n "$NM"; then
4525   # Let the user override the test.
4526   lt_cv_path_NM="$NM"
4527 else
4528   lt_nm_to_check="${ac_tool_prefix}nm"
4529   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4530     lt_nm_to_check="$lt_nm_to_check nm"
4531   fi
4532   for lt_tmp_nm in $lt_nm_to_check; do
4533     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4534     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4535       IFS="$lt_save_ifs"
4536       test -z "$ac_dir" && ac_dir=.
4537       tmp_nm="$ac_dir/$lt_tmp_nm"
4538       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4539         # Check to see if the nm accepts a BSD-compat flag.
4540         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4541         #   nm: unknown option "B" ignored
4542         # Tru64's nm complains that /dev/null is an invalid object file
4543         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4544         */dev/null* | *'Invalid file or object type'*)
4545           lt_cv_path_NM="$tmp_nm -B"
4546           break
4547           ;;
4548         *)
4549           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4550           */dev/null*)
4551             lt_cv_path_NM="$tmp_nm -p"
4552             break
4553             ;;
4554           *)
4555             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4556             continue # so that we can try to find one that supports BSD flags
4557             ;;
4558           esac
4559           ;;
4560         esac
4561       fi
4562     done
4563     IFS="$lt_save_ifs"
4564   done
4565   : ${lt_cv_path_NM=no}
4566 fi
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4569 $as_echo "$lt_cv_path_NM" >&6; }
4570 if test "$lt_cv_path_NM" != "no"; then
4571   NM="$lt_cv_path_NM"
4572 else
4573   # Didn't find any BSD compatible name lister, look for dumpbin.
4574   if test -n "$DUMPBIN"; then :
4575     # Let the user override the test.
4576   else
4577     if test -n "$ac_tool_prefix"; then
4578   for ac_prog in dumpbin "link -dump"
4579   do
4580     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_DUMPBIN+:} false; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -n "$DUMPBIN"; then
4588   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_exec_ext in '' $ac_executable_extensions; do
4596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602   done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 DUMPBIN=$ac_cv_prog_DUMPBIN
4608 if test -n "$DUMPBIN"; then
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4610 $as_echo "$DUMPBIN" >&6; }
4611 else
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617     test -n "$DUMPBIN" && break
4618   done
4619 fi
4620 if test -z "$DUMPBIN"; then
4621   ac_ct_DUMPBIN=$DUMPBIN
4622   for ac_prog in dumpbin "link -dump"
4623 do
4624   # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4629   $as_echo_n "(cached) " >&6
4630 else
4631   if test -n "$ac_ct_DUMPBIN"; then
4632   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646   done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4652 if test -n "$ac_ct_DUMPBIN"; then
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4654 $as_echo "$ac_ct_DUMPBIN" >&6; }
4655 else
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661   test -n "$ac_ct_DUMPBIN" && break
4662 done
4663
4664   if test "x$ac_ct_DUMPBIN" = x; then
4665     DUMPBIN=":"
4666   else
4667     case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673     DUMPBIN=$ac_ct_DUMPBIN
4674   fi
4675 fi
4676
4677     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4678     *COFF*)
4679       DUMPBIN="$DUMPBIN -symbols"
4680       ;;
4681     *)
4682       DUMPBIN=:
4683       ;;
4684     esac
4685   fi
4686
4687   if test "$DUMPBIN" != ":"; then
4688     NM="$DUMPBIN"
4689   fi
4690 fi
4691 test -z "$NM" && NM=nm
4692
4693
4694
4695
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4699 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4700 if ${lt_cv_nm_interface+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   lt_cv_nm_interface="BSD nm"
4704   echo "int some_variable = 0;" > conftest.$ac_ext
4705   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4706   (eval "$ac_compile" 2>conftest.err)
4707   cat conftest.err >&5
4708   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4709   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4710   cat conftest.err >&5
4711   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4712   cat conftest.out >&5
4713   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4714     lt_cv_nm_interface="MS dumpbin"
4715   fi
4716   rm -f conftest*
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4719 $as_echo "$lt_cv_nm_interface" >&6; }
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4722 $as_echo_n "checking whether ln -s works... " >&6; }
4723 LN_S=$as_ln_s
4724 if test "$LN_S" = "ln -s"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4729 $as_echo "no, using $LN_S" >&6; }
4730 fi
4731
4732 # find the maximum length of command line arguments
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4734 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4735 if ${lt_cv_sys_max_cmd_len+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738     i=0
4739   teststring="ABCD"
4740
4741   case $build_os in
4742   msdosdjgpp*)
4743     # On DJGPP, this test can blow up pretty badly due to problems in libc
4744     # (any single argument exceeding 2000 bytes causes a buffer overrun
4745     # during glob expansion).  Even if it were fixed, the result of this
4746     # check would be larger than it should be.
4747     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4748     ;;
4749
4750   gnu*)
4751     # Under GNU Hurd, this test is not required because there is
4752     # no limit to the length of command line arguments.
4753     # Libtool will interpret -1 as no limit whatsoever
4754     lt_cv_sys_max_cmd_len=-1;
4755     ;;
4756
4757   cygwin* | mingw* | cegcc*)
4758     # On Win9x/ME, this test blows up -- it succeeds, but takes
4759     # about 5 minutes as the teststring grows exponentially.
4760     # Worse, since 9x/ME are not pre-emptively multitasking,
4761     # you end up with a "frozen" computer, even though with patience
4762     # the test eventually succeeds (with a max line length of 256k).
4763     # Instead, let's just punt: use the minimum linelength reported by
4764     # all of the supported platforms: 8192 (on NT/2K/XP).
4765     lt_cv_sys_max_cmd_len=8192;
4766     ;;
4767
4768   mint*)
4769     # On MiNT this can take a long time and run out of memory.
4770     lt_cv_sys_max_cmd_len=8192;
4771     ;;
4772
4773   amigaos*)
4774     # On AmigaOS with pdksh, this test takes hours, literally.
4775     # So we just punt and use a minimum line length of 8192.
4776     lt_cv_sys_max_cmd_len=8192;
4777     ;;
4778
4779   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4780     # This has been around since 386BSD, at least.  Likely further.
4781     if test -x /sbin/sysctl; then
4782       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4783     elif test -x /usr/sbin/sysctl; then
4784       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4785     else
4786       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4787     fi
4788     # And add a safety zone
4789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4790     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4791     ;;
4792
4793   interix*)
4794     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4795     lt_cv_sys_max_cmd_len=196608
4796     ;;
4797
4798   os2*)
4799     # The test takes a long time on OS/2.
4800     lt_cv_sys_max_cmd_len=8192
4801     ;;
4802
4803   osf*)
4804     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4805     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4806     # nice to cause kernel panics so lets avoid the loop below.
4807     # First set a reasonable default.
4808     lt_cv_sys_max_cmd_len=16384
4809     #
4810     if test -x /sbin/sysconfig; then
4811       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4812         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4813       esac
4814     fi
4815     ;;
4816   sco3.2v5*)
4817     lt_cv_sys_max_cmd_len=102400
4818     ;;
4819   sysv5* | sco5v6* | sysv4.2uw2*)
4820     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4821     if test -n "$kargmax"; then
4822       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4823     else
4824       lt_cv_sys_max_cmd_len=32768
4825     fi
4826     ;;
4827   *)
4828     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4829     if test -n "$lt_cv_sys_max_cmd_len"; then
4830       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4831       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4832     else
4833       # Make teststring a little bigger before we do anything with it.
4834       # a 1K string should be a reasonable start.
4835       for i in 1 2 3 4 5 6 7 8 ; do
4836         teststring=$teststring$teststring
4837       done
4838       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4839       # If test is not a shell built-in, we'll probably end up computing a
4840       # maximum length that is only half of the actual maximum length, but
4841       # we can't tell.
4842       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4843                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4844               test $i != 17 # 1/2 MB should be enough
4845       do
4846         i=`expr $i + 1`
4847         teststring=$teststring$teststring
4848       done
4849       # Only check the string length outside the loop.
4850       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4851       teststring=
4852       # Add a significant safety factor because C++ compilers can tack on
4853       # massive amounts of additional arguments before passing them to the
4854       # linker.  It appears as though 1/2 is a usable value.
4855       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4856     fi
4857     ;;
4858   esac
4859
4860 fi
4861
4862 if test -n $lt_cv_sys_max_cmd_len ; then
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4864 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4865 else
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4867 $as_echo "none" >&6; }
4868 fi
4869 max_cmd_len=$lt_cv_sys_max_cmd_len
4870
4871
4872
4873
4874
4875
4876 : ${CP="cp -f"}
4877 : ${MV="mv -f"}
4878 : ${RM="rm -f"}
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4881 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4882 # Try some XSI features
4883 xsi_shell=no
4884 ( _lt_dummy="a/b/c"
4885   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4886       = c,a/b,b/c, \
4887     && eval 'test $(( 1 + 1 )) -eq 2 \
4888     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4889   && xsi_shell=yes
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4891 $as_echo "$xsi_shell" >&6; }
4892
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4895 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4896 lt_shell_append=no
4897 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4898     >/dev/null 2>&1 \
4899   && lt_shell_append=yes
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4901 $as_echo "$lt_shell_append" >&6; }
4902
4903
4904 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4905   lt_unset=unset
4906 else
4907   lt_unset=false
4908 fi
4909
4910
4911
4912
4913
4914 # test EBCDIC or ASCII
4915 case `echo X|tr X '\101'` in
4916  A) # ASCII based system
4917     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4918   lt_SP2NL='tr \040 \012'
4919   lt_NL2SP='tr \015\012 \040\040'
4920   ;;
4921  *) # EBCDIC based system
4922   lt_SP2NL='tr \100 \n'
4923   lt_NL2SP='tr \r\n \100\100'
4924   ;;
4925 esac
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4936 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4937 if ${lt_cv_to_host_file_cmd+:} false; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   case $host in
4941   *-*-mingw* )
4942     case $build in
4943       *-*-mingw* ) # actually msys
4944         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4945         ;;
4946       *-*-cygwin* )
4947         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4948         ;;
4949       * ) # otherwise, assume *nix
4950         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4951         ;;
4952     esac
4953     ;;
4954   *-*-cygwin* )
4955     case $build in
4956       *-*-mingw* ) # actually msys
4957         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4958         ;;
4959       *-*-cygwin* )
4960         lt_cv_to_host_file_cmd=func_convert_file_noop
4961         ;;
4962       * ) # otherwise, assume *nix
4963         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4964         ;;
4965     esac
4966     ;;
4967   * ) # unhandled hosts (and "normal" native builds)
4968     lt_cv_to_host_file_cmd=func_convert_file_noop
4969     ;;
4970 esac
4971
4972 fi
4973
4974 to_host_file_cmd=$lt_cv_to_host_file_cmd
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4976 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4977
4978
4979
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4983 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4984 if ${lt_cv_to_tool_file_cmd+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   #assume ordinary cross tools, or native build.
4988 lt_cv_to_tool_file_cmd=func_convert_file_noop
4989 case $host in
4990   *-*-mingw* )
4991     case $build in
4992       *-*-mingw* ) # actually msys
4993         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4994         ;;
4995     esac
4996     ;;
4997 esac
4998
4999 fi
5000
5001 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5003 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5004
5005
5006
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5011 if ${lt_cv_ld_reload_flag+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   lt_cv_ld_reload_flag='-r'
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5018 reload_flag=$lt_cv_ld_reload_flag
5019 case $reload_flag in
5020 "" | " "*) ;;
5021 *) reload_flag=" $reload_flag" ;;
5022 esac
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024 case $host_os in
5025   cygwin* | mingw* | pw32* | cegcc*)
5026     if test "$GCC" != yes; then
5027       reload_cmds=false
5028     fi
5029     ;;
5030   darwin*)
5031     if test "$GCC" = yes; then
5032       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5033     else
5034       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5035     fi
5036     ;;
5037 esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 if test -n "$ac_tool_prefix"; then
5048   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_OBJDUMP+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$OBJDUMP"; then
5056   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 OBJDUMP=$ac_cv_prog_OBJDUMP
5076 if test -n "$OBJDUMP"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5078 $as_echo "$OBJDUMP" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085 fi
5086 if test -z "$ac_cv_prog_OBJDUMP"; then
5087   ac_ct_OBJDUMP=$OBJDUMP
5088   # Extract the first word of "objdump", so it can be a program name with args.
5089 set dummy objdump; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -n "$ac_ct_OBJDUMP"; then
5096   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5116 if test -n "$ac_ct_OBJDUMP"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5118 $as_echo "$ac_ct_OBJDUMP" >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124   if test "x$ac_ct_OBJDUMP" = x; then
5125     OBJDUMP="false"
5126   else
5127     case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133     OBJDUMP=$ac_ct_OBJDUMP
5134   fi
5135 else
5136   OBJDUMP="$ac_cv_prog_OBJDUMP"
5137 fi
5138
5139 test -z "$OBJDUMP" && OBJDUMP=objdump
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5150 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5151 if ${lt_cv_deplibs_check_method+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   lt_cv_file_magic_cmd='$MAGIC_CMD'
5155 lt_cv_file_magic_test_file=
5156 lt_cv_deplibs_check_method='unknown'
5157 # Need to set the preceding variable on all platforms that support
5158 # interlibrary dependencies.
5159 # 'none' -- dependencies not supported.
5160 # `unknown' -- same as none, but documents that we really don't know.
5161 # 'pass_all' -- all dependencies passed with no checks.
5162 # 'test_compile' -- check by making test program.
5163 # 'file_magic [[regex]]' -- check by looking for files in library path
5164 # which responds to the $file_magic_cmd with a given extended regex.
5165 # If you have `file' or equivalent on your system and you're not sure
5166 # whether `pass_all' will *always* work, you probably want this one.
5167
5168 case $host_os in
5169 aix[4-9]*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 beos*)
5174   lt_cv_deplibs_check_method=pass_all
5175   ;;
5176
5177 bsdi[45]*)
5178   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5179   lt_cv_file_magic_cmd='/usr/bin/file -L'
5180   lt_cv_file_magic_test_file=/shlib/libc.so
5181   ;;
5182
5183 cygwin*)
5184   # func_win32_libid is a shell function defined in ltmain.sh
5185   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5186   lt_cv_file_magic_cmd='func_win32_libid'
5187   ;;
5188
5189 mingw* | pw32*)
5190   # Base MSYS/MinGW do not provide the 'file' command needed by
5191   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5192   # unless we find 'file', for example because we are cross-compiling.
5193   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5194   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5195     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5196     lt_cv_file_magic_cmd='func_win32_libid'
5197   else
5198     # Keep this pattern in sync with the one in func_win32_libid.
5199     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5200     lt_cv_file_magic_cmd='$OBJDUMP -f'
5201   fi
5202   ;;
5203
5204 cegcc*)
5205   # use the weaker test based on 'objdump'. See mingw*.
5206   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5207   lt_cv_file_magic_cmd='$OBJDUMP -f'
5208   ;;
5209
5210 darwin* | rhapsody*)
5211   lt_cv_deplibs_check_method=pass_all
5212   ;;
5213
5214 freebsd* | dragonfly*)
5215   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5216     case $host_cpu in
5217     i*86 )
5218       # Not sure whether the presence of OpenBSD here was a mistake.
5219       # Let's accept both of them until this is cleared up.
5220       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5221       lt_cv_file_magic_cmd=/usr/bin/file
5222       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5223       ;;
5224     esac
5225   else
5226     lt_cv_deplibs_check_method=pass_all
5227   fi
5228   ;;
5229
5230 gnu*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 haiku*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237
5238 hpux10.20* | hpux11*)
5239   lt_cv_file_magic_cmd=/usr/bin/file
5240   case $host_cpu in
5241   ia64*)
5242     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5243     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5244     ;;
5245   hppa*64*)
5246     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]'
5247     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5248     ;;
5249   *)
5250     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5251     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5252     ;;
5253   esac
5254   ;;
5255
5256 interix[3-9]*)
5257   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5258   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5259   ;;
5260
5261 irix5* | irix6* | nonstopux*)
5262   case $LD in
5263   *-32|*"-32 ") libmagic=32-bit;;
5264   *-n32|*"-n32 ") libmagic=N32;;
5265   *-64|*"-64 ") libmagic=64-bit;;
5266   *) libmagic=never-match;;
5267   esac
5268   lt_cv_deplibs_check_method=pass_all
5269   ;;
5270
5271 # This must be glibc/ELF.
5272 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5273   lt_cv_deplibs_check_method=pass_all
5274   ;;
5275
5276 netbsd* | netbsdelf*-gnu)
5277   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279   else
5280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5281   fi
5282   ;;
5283
5284 newos6*)
5285   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5286   lt_cv_file_magic_cmd=/usr/bin/file
5287   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5288   ;;
5289
5290 *nto* | *qnx*)
5291   lt_cv_deplibs_check_method=pass_all
5292   ;;
5293
5294 openbsd*)
5295   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5296     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5297   else
5298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5299   fi
5300   ;;
5301
5302 osf3* | osf4* | osf5*)
5303   lt_cv_deplibs_check_method=pass_all
5304   ;;
5305
5306 rdos*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 solaris*)
5311   lt_cv_deplibs_check_method=pass_all
5312   ;;
5313
5314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5315   lt_cv_deplibs_check_method=pass_all
5316   ;;
5317
5318 sysv4 | sysv4.3*)
5319   case $host_vendor in
5320   motorola)
5321     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]'
5322     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5323     ;;
5324   ncr)
5325     lt_cv_deplibs_check_method=pass_all
5326     ;;
5327   sequent)
5328     lt_cv_file_magic_cmd='/bin/file'
5329     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5330     ;;
5331   sni)
5332     lt_cv_file_magic_cmd='/bin/file'
5333     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5334     lt_cv_file_magic_test_file=/lib/libc.so
5335     ;;
5336   siemens)
5337     lt_cv_deplibs_check_method=pass_all
5338     ;;
5339   pc)
5340     lt_cv_deplibs_check_method=pass_all
5341     ;;
5342   esac
5343   ;;
5344
5345 tpf*)
5346   lt_cv_deplibs_check_method=pass_all
5347   ;;
5348 esac
5349
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5352 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5353
5354 file_magic_glob=
5355 want_nocaseglob=no
5356 if test "$build" = "$host"; then
5357   case $host_os in
5358   mingw* | pw32*)
5359     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5360       want_nocaseglob=yes
5361     else
5362       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5363     fi
5364     ;;
5365   esac
5366 fi
5367
5368 file_magic_cmd=$lt_cv_file_magic_cmd
5369 deplibs_check_method=$lt_cv_deplibs_check_method
5370 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_DLLTOOL+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$DLLTOOL"; then
5402   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 DLLTOOL=$ac_cv_prog_DLLTOOL
5422 if test -n "$DLLTOOL"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5424 $as_echo "$DLLTOOL" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_DLLTOOL"; then
5433   ac_ct_DLLTOOL=$DLLTOOL
5434   # Extract the first word of "dlltool", so it can be a program name with args.
5435 set dummy dlltool; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$ac_ct_DLLTOOL"; then
5442   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456   done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5462 if test -n "$ac_ct_DLLTOOL"; then
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5464 $as_echo "$ac_ct_DLLTOOL" >&6; }
5465 else
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470   if test "x$ac_ct_DLLTOOL" = x; then
5471     DLLTOOL="false"
5472   else
5473     case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479     DLLTOOL=$ac_ct_DLLTOOL
5480   fi
5481 else
5482   DLLTOOL="$ac_cv_prog_DLLTOOL"
5483 fi
5484
5485 test -z "$DLLTOOL" && DLLTOOL=dlltool
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5497 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5498 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   lt_cv_sharedlib_from_linklib_cmd='unknown'
5502
5503 case $host_os in
5504 cygwin* | mingw* | pw32* | cegcc*)
5505   # two different shell functions defined in ltmain.sh
5506   # decide which to use based on capabilities of $DLLTOOL
5507   case `$DLLTOOL --help 2>&1` in
5508   *--identify-strict*)
5509     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5510     ;;
5511   *)
5512     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5513     ;;
5514   esac
5515   ;;
5516 *)
5517   # fallback: assume linklib IS sharedlib
5518   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5519   ;;
5520 esac
5521
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5524 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5525 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5526 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5527
5528
5529
5530
5531
5532
5533
5534
5535 if test -n "$ac_tool_prefix"; then
5536   for ac_prog in ar
5537   do
5538     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_AR+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$AR"; then
5546   ac_cv_prog_AR="$AR" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 AR=$ac_cv_prog_AR
5566 if test -n "$AR"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5568 $as_echo "$AR" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575     test -n "$AR" && break
5576   done
5577 fi
5578 if test -z "$AR"; then
5579   ac_ct_AR=$AR
5580   for ac_prog in ar
5581 do
5582   # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 set dummy $ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   if test -n "$ac_ct_AR"; then
5590   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599     ac_cv_prog_ac_ct_AR="$ac_prog"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5610 if test -n "$ac_ct_AR"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5612 $as_echo "$ac_ct_AR" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619   test -n "$ac_ct_AR" && break
5620 done
5621
5622   if test "x$ac_ct_AR" = x; then
5623     AR="false"
5624   else
5625     case $cross_compiling:$ac_tool_warned in
5626 yes:)
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 ac_tool_warned=yes ;;
5630 esac
5631     AR=$ac_ct_AR
5632   fi
5633 fi
5634
5635 : ${AR=ar}
5636 : ${AR_FLAGS=cru}
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5649 $as_echo_n "checking for archiver @FILE support... " >&6; }
5650 if ${lt_cv_ar_at_file+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   lt_cv_ar_at_file=no
5654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h.  */
5656
5657 int
5658 main ()
5659 {
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666   echo conftest.$ac_objext > conftest.lst
5667       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5668       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5669   (eval $lt_ar_try) 2>&5
5670   ac_status=$?
5671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672   test $ac_status = 0; }
5673       if test "$ac_status" -eq 0; then
5674         # Ensure the archiver fails upon bogus file names.
5675         rm -f conftest.$ac_objext libconftest.a
5676         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5677   (eval $lt_ar_try) 2>&5
5678   ac_status=$?
5679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680   test $ac_status = 0; }
5681         if test "$ac_status" -ne 0; then
5682           lt_cv_ar_at_file=@
5683         fi
5684       fi
5685       rm -f conftest.* libconftest.a
5686
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5692 $as_echo "$lt_cv_ar_at_file" >&6; }
5693
5694 if test "x$lt_cv_ar_at_file" = xno; then
5695   archiver_list_spec=
5696 else
5697   archiver_list_spec=$lt_cv_ar_at_file
5698 fi
5699
5700
5701
5702
5703
5704
5705
5706 if test -n "$ac_tool_prefix"; then
5707   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}strip; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_STRIP+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -n "$STRIP"; then
5715   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729   done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 STRIP=$ac_cv_prog_STRIP
5735 if test -n "$STRIP"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5737 $as_echo "$STRIP" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744 fi
5745 if test -z "$ac_cv_prog_STRIP"; then
5746   ac_ct_STRIP=$STRIP
5747   # Extract the first word of "strip", so it can be a program name with args.
5748 set dummy strip; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   if test -n "$ac_ct_STRIP"; then
5755   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762     for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_prog_ac_ct_STRIP="strip"
5765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769   done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5775 if test -n "$ac_ct_STRIP"; then
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5777 $as_echo "$ac_ct_STRIP" >&6; }
5778 else
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783   if test "x$ac_ct_STRIP" = x; then
5784     STRIP=":"
5785   else
5786     case $cross_compiling:$ac_tool_warned in
5787 yes:)
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790 ac_tool_warned=yes ;;
5791 esac
5792     STRIP=$ac_ct_STRIP
5793   fi
5794 else
5795   STRIP="$ac_cv_prog_STRIP"
5796 fi
5797
5798 test -z "$STRIP" && STRIP=:
5799
5800
5801
5802
5803
5804
5805 if test -n "$ac_tool_prefix"; then
5806   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_prog_RANLIB+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   if test -n "$RANLIB"; then
5814   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821     for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828   done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 RANLIB=$ac_cv_prog_RANLIB
5834 if test -n "$RANLIB"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5836 $as_echo "$RANLIB" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842
5843 fi
5844 if test -z "$ac_cv_prog_RANLIB"; then
5845   ac_ct_RANLIB=$RANLIB
5846   # Extract the first word of "ranlib", so it can be a program name with args.
5847 set dummy ranlib; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   if test -n "$ac_ct_RANLIB"; then
5854   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_ac_ct_RANLIB="ranlib"
5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868   done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5874 if test -n "$ac_ct_RANLIB"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5876 $as_echo "$ac_ct_RANLIB" >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882   if test "x$ac_ct_RANLIB" = x; then
5883     RANLIB=":"
5884   else
5885     case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889 ac_tool_warned=yes ;;
5890 esac
5891     RANLIB=$ac_ct_RANLIB
5892   fi
5893 else
5894   RANLIB="$ac_cv_prog_RANLIB"
5895 fi
5896
5897 test -z "$RANLIB" && RANLIB=:
5898
5899
5900
5901
5902
5903
5904 # Determine commands to create old-style static archives.
5905 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5906 old_postinstall_cmds='chmod 644 $oldlib'
5907 old_postuninstall_cmds=
5908
5909 if test -n "$RANLIB"; then
5910   case $host_os in
5911   openbsd*)
5912     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5913     ;;
5914   *)
5915     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5916     ;;
5917   esac
5918   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5919 fi
5920
5921 case $host_os in
5922   darwin*)
5923     lock_old_archive_extraction=yes ;;
5924   *)
5925     lock_old_archive_extraction=no ;;
5926 esac
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 # If no C compiler was specified, use CC.
5967 LTCC=${LTCC-"$CC"}
5968
5969 # If no C compiler flags were specified, use CFLAGS.
5970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5971
5972 # Allow CC to be a program name with arguments.
5973 compiler=$CC
5974
5975
5976 # Check for command to grab the raw symbol name followed by C symbol from nm.
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5978 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5979 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5980   $as_echo_n "(cached) " >&6
5981 else
5982
5983 # These are sane defaults that work on at least a few old systems.
5984 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5985
5986 # Character class describing NM global symbol codes.
5987 symcode='[BCDEGRST]'
5988
5989 # Regexp to match symbols that can be accessed directly from C.
5990 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5991
5992 # Define system-specific variables.
5993 case $host_os in
5994 aix*)
5995   symcode='[BCDT]'
5996   ;;
5997 cygwin* | mingw* | pw32* | cegcc*)
5998   symcode='[ABCDGISTW]'
5999   ;;
6000 hpux*)
6001   if test "$host_cpu" = ia64; then
6002     symcode='[ABCDEGRST]'
6003   fi
6004   ;;
6005 irix* | nonstopux*)
6006   symcode='[BCDEGRST]'
6007   ;;
6008 osf*)
6009   symcode='[BCDEGQRST]'
6010   ;;
6011 solaris*)
6012   symcode='[BDRT]'
6013   ;;
6014 sco3.2v5*)
6015   symcode='[DT]'
6016   ;;
6017 sysv4.2uw2*)
6018   symcode='[DT]'
6019   ;;
6020 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6021   symcode='[ABDT]'
6022   ;;
6023 sysv4)
6024   symcode='[DFNSTU]'
6025   ;;
6026 esac
6027
6028 # If we're using GNU nm, then use its standard symbol codes.
6029 case `$NM -V 2>&1` in
6030 *GNU* | *'with BFD'*)
6031   symcode='[ABCDGIRSTW]' ;;
6032 esac
6033
6034 # Transform an extracted symbol line into a proper C declaration.
6035 # Some systems (esp. on ia64) link data and code symbols differently,
6036 # so use this general approach.
6037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6038
6039 # Transform an extracted symbol line into symbol name and symbol address
6040 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6041 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6042
6043 # Handle CRLF in mingw tool chain
6044 opt_cr=
6045 case $build_os in
6046 mingw*)
6047   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6048   ;;
6049 esac
6050
6051 # Try without a prefix underscore, then with it.
6052 for ac_symprfx in "" "_"; do
6053
6054   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6055   symxfrm="\\1 $ac_symprfx\\2 \\2"
6056
6057   # Write the raw and C identifiers.
6058   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6059     # Fake it for dumpbin and say T for any non-static function
6060     # and D for any global variable.
6061     # Also find C++ and __fastcall symbols from MSVC++,
6062     # which start with @ or ?.
6063     lt_cv_sys_global_symbol_pipe="$AWK '"\
6064 "     {last_section=section; section=\$ 3};"\
6065 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6066 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6067 "     \$ 0!~/External *\|/{next};"\
6068 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6069 "     {if(hide[section]) next};"\
6070 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6071 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6072 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6073 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6074 "     ' prfx=^$ac_symprfx"
6075   else
6076     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6077   fi
6078   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6079
6080   # Check to see that the pipe works correctly.
6081   pipe_works=no
6082
6083   rm -f conftest*
6084   cat > conftest.$ac_ext <<_LT_EOF
6085 #ifdef __cplusplus
6086 extern "C" {
6087 #endif
6088 char nm_test_var;
6089 void nm_test_func(void);
6090 void nm_test_func(void){}
6091 #ifdef __cplusplus
6092 }
6093 #endif
6094 int main(){nm_test_var='a';nm_test_func();return(0);}
6095 _LT_EOF
6096
6097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6098   (eval $ac_compile) 2>&5
6099   ac_status=$?
6100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101   test $ac_status = 0; }; then
6102     # Now try to grab the symbols.
6103     nlist=conftest.nm
6104     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6105   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; } && test -s "$nlist"; then
6109       # Try sorting and uniquifying the output.
6110       if sort "$nlist" | uniq > "$nlist"T; then
6111         mv -f "$nlist"T "$nlist"
6112       else
6113         rm -f "$nlist"T
6114       fi
6115
6116       # Make sure that we snagged all the symbols we need.
6117       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6118         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6119           cat <<_LT_EOF > conftest.$ac_ext
6120 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6121 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6122 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6123    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6124 # define LT_DLSYM_CONST
6125 #elif defined(__osf__)
6126 /* This system does not cope well with relocations in const data.  */
6127 # define LT_DLSYM_CONST
6128 #else
6129 # define LT_DLSYM_CONST const
6130 #endif
6131
6132 #ifdef __cplusplus
6133 extern "C" {
6134 #endif
6135
6136 _LT_EOF
6137           # Now generate the symbol file.
6138           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6139
6140           cat <<_LT_EOF >> conftest.$ac_ext
6141
6142 /* The mapping between symbol names and symbols.  */
6143 LT_DLSYM_CONST struct {
6144   const char *name;
6145   void       *address;
6146 }
6147 lt__PROGRAM__LTX_preloaded_symbols[] =
6148 {
6149   { "@PROGRAM@", (void *) 0 },
6150 _LT_EOF
6151           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6152           cat <<\_LT_EOF >> conftest.$ac_ext
6153   {0, (void *) 0}
6154 };
6155
6156 /* This works around a problem in FreeBSD linker */
6157 #ifdef FREEBSD_WORKAROUND
6158 static const void *lt_preloaded_setup() {
6159   return lt__PROGRAM__LTX_preloaded_symbols;
6160 }
6161 #endif
6162
6163 #ifdef __cplusplus
6164 }
6165 #endif
6166 _LT_EOF
6167           # Now try linking the two files.
6168           mv conftest.$ac_objext conftstm.$ac_objext
6169           lt_globsym_save_LIBS=$LIBS
6170           lt_globsym_save_CFLAGS=$CFLAGS
6171           LIBS="conftstm.$ac_objext"
6172           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6173           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6174   (eval $ac_link) 2>&5
6175   ac_status=$?
6176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6178             pipe_works=yes
6179           fi
6180           LIBS=$lt_globsym_save_LIBS
6181           CFLAGS=$lt_globsym_save_CFLAGS
6182         else
6183           echo "cannot find nm_test_func in $nlist" >&5
6184         fi
6185       else
6186         echo "cannot find nm_test_var in $nlist" >&5
6187       fi
6188     else
6189       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6190     fi
6191   else
6192     echo "$progname: failed program was:" >&5
6193     cat conftest.$ac_ext >&5
6194   fi
6195   rm -rf conftest* conftst*
6196
6197   # Do not use the global_symbol_pipe unless it works.
6198   if test "$pipe_works" = yes; then
6199     break
6200   else
6201     lt_cv_sys_global_symbol_pipe=
6202   fi
6203 done
6204
6205 fi
6206
6207 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6208   lt_cv_sys_global_symbol_to_cdecl=
6209 fi
6210 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6212 $as_echo "failed" >&6; }
6213 else
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6215 $as_echo "ok" >&6; }
6216 fi
6217
6218 # Response file support.
6219 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6220   nm_file_list_spec='@'
6221 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6222   nm_file_list_spec='@'
6223 fi
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6252 $as_echo_n "checking for sysroot... " >&6; }
6253
6254 # Check whether --with-sysroot was given.
6255 if test "${with_sysroot+set}" = set; then :
6256   withval=$with_sysroot;
6257 else
6258   with_sysroot=no
6259 fi
6260
6261
6262 lt_sysroot=
6263 case ${with_sysroot} in #(
6264  yes)
6265    if test "$GCC" = yes; then
6266      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6267    fi
6268    ;; #(
6269  /*)
6270    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6271    ;; #(
6272  no|'')
6273    ;; #(
6274  *)
6275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6276 $as_echo "${with_sysroot}" >&6; }
6277    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6278    ;;
6279 esac
6280
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6282 $as_echo "${lt_sysroot:-no}" >&6; }
6283
6284
6285
6286
6287
6288 # Check whether --enable-libtool-lock was given.
6289 if test "${enable_libtool_lock+set}" = set; then :
6290   enableval=$enable_libtool_lock;
6291 fi
6292
6293 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6294
6295 # Some flags need to be propagated to the compiler or linker for good
6296 # libtool support.
6297 case $host in
6298 ia64-*-hpux*)
6299   # Find out which ABI we are using.
6300   echo 'int i;' > conftest.$ac_ext
6301   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305   test $ac_status = 0; }; then
6306     case `/usr/bin/file conftest.$ac_objext` in
6307       *ELF-32*)
6308         HPUX_IA64_MODE="32"
6309         ;;
6310       *ELF-64*)
6311         HPUX_IA64_MODE="64"
6312         ;;
6313     esac
6314   fi
6315   rm -rf conftest*
6316   ;;
6317 *-*-irix6*)
6318   # Find out which ABI we are using.
6319   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6320   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324   test $ac_status = 0; }; then
6325     if test "$lt_cv_prog_gnu_ld" = yes; then
6326       case `/usr/bin/file conftest.$ac_objext` in
6327         *32-bit*)
6328           LD="${LD-ld} -melf32bsmip"
6329           ;;
6330         *N32*)
6331           LD="${LD-ld} -melf32bmipn32"
6332           ;;
6333         *64-bit*)
6334           LD="${LD-ld} -melf64bmip"
6335         ;;
6336       esac
6337     else
6338       case `/usr/bin/file conftest.$ac_objext` in
6339         *32-bit*)
6340           LD="${LD-ld} -32"
6341           ;;
6342         *N32*)
6343           LD="${LD-ld} -n32"
6344           ;;
6345         *64-bit*)
6346           LD="${LD-ld} -64"
6347           ;;
6348       esac
6349     fi
6350   fi
6351   rm -rf conftest*
6352   ;;
6353
6354 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6355 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6356   # Find out which ABI we are using.
6357   echo 'int i;' > conftest.$ac_ext
6358   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6359   (eval $ac_compile) 2>&5
6360   ac_status=$?
6361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362   test $ac_status = 0; }; then
6363     case `/usr/bin/file conftest.o` in
6364       *32-bit*)
6365         case $host in
6366           x86_64-*kfreebsd*-gnu)
6367             LD="${LD-ld} -m elf_i386_fbsd"
6368             ;;
6369           x86_64-*linux*)
6370             LD="${LD-ld} -m elf_i386"
6371             ;;
6372           ppc64-*linux*|powerpc64-*linux*)
6373             LD="${LD-ld} -m elf32ppclinux"
6374             ;;
6375           s390x-*linux*)
6376             LD="${LD-ld} -m elf_s390"
6377             ;;
6378           sparc64-*linux*)
6379             LD="${LD-ld} -m elf32_sparc"
6380             ;;
6381         esac
6382         ;;
6383       *64-bit*)
6384         case $host in
6385           x86_64-*kfreebsd*-gnu)
6386             LD="${LD-ld} -m elf_x86_64_fbsd"
6387             ;;
6388           x86_64-*linux*)
6389             LD="${LD-ld} -m elf_x86_64"
6390             ;;
6391           ppc*-*linux*|powerpc*-*linux*)
6392             LD="${LD-ld} -m elf64ppc"
6393             ;;
6394           s390*-*linux*|s390*-*tpf*)
6395             LD="${LD-ld} -m elf64_s390"
6396             ;;
6397           sparc*-*linux*)
6398             LD="${LD-ld} -m elf64_sparc"
6399             ;;
6400         esac
6401         ;;
6402     esac
6403   fi
6404   rm -rf conftest*
6405   ;;
6406
6407 *-*-sco3.2v5*)
6408   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6409   SAVE_CFLAGS="$CFLAGS"
6410   CFLAGS="$CFLAGS -belf"
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6412 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6413 if ${lt_cv_cc_needs_belf+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   ac_ext=c
6417 ac_cpp='$CPP $CPPFLAGS'
6418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421
6422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424
6425 int
6426 main ()
6427 {
6428
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_link "$LINENO"; then :
6434   lt_cv_cc_needs_belf=yes
6435 else
6436   lt_cv_cc_needs_belf=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext \
6439     conftest$ac_exeext conftest.$ac_ext
6440      ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6448 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6449   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6450     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6451     CFLAGS="$SAVE_CFLAGS"
6452   fi
6453   ;;
6454 *-*solaris*)
6455   # Find out which ABI we are using.
6456   echo 'int i;' > conftest.$ac_ext
6457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461   test $ac_status = 0; }; then
6462     case `/usr/bin/file conftest.o` in
6463     *64-bit*)
6464       case $lt_cv_prog_gnu_ld in
6465       yes*)
6466         case $host in
6467         i?86-*-solaris*)
6468           LD="${LD-ld} -m elf_x86_64"
6469           ;;
6470         sparc*-*-solaris*)
6471           LD="${LD-ld} -m elf64_sparc"
6472           ;;
6473         esac
6474         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6475         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6476           LD="${LD-ld}_sol2"
6477         fi
6478         ;;
6479       *)
6480         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6481           LD="${LD-ld} -64"
6482         fi
6483         ;;
6484       esac
6485       ;;
6486     esac
6487   fi
6488   rm -rf conftest*
6489   ;;
6490 esac
6491
6492 need_locks="$enable_libtool_lock"
6493
6494 if test -n "$ac_tool_prefix"; then
6495   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}mt; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   if test -n "$MANIFEST_TOOL"; then
6503   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6523 if test -n "$MANIFEST_TOOL"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6525 $as_echo "$MANIFEST_TOOL" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 fi
6533 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6534   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6535   # Extract the first word of "mt", so it can be a program name with args.
6536 set dummy mt; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$ac_ct_MANIFEST_TOOL"; then
6543   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6563 if test -n "$ac_ct_MANIFEST_TOOL"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6565 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6572     MANIFEST_TOOL=":"
6573   else
6574     case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6581   fi
6582 else
6583   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6584 fi
6585
6586 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6588 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6589 if ${lt_cv_path_mainfest_tool+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   lt_cv_path_mainfest_tool=no
6593   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6594   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6595   cat conftest.err >&5
6596   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6597     lt_cv_path_mainfest_tool=yes
6598   fi
6599   rm -f conftest*
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6602 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6603 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6604   MANIFEST_TOOL=:
6605 fi
6606
6607
6608
6609
6610
6611
6612   case $host_os in
6613     rhapsody* | darwin*)
6614     if test -n "$ac_tool_prefix"; then
6615   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$DSYMUTIL"; then
6623   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6643 if test -n "$DSYMUTIL"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6645 $as_echo "$DSYMUTIL" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_DSYMUTIL"; then
6654   ac_ct_DSYMUTIL=$DSYMUTIL
6655   # Extract the first word of "dsymutil", so it can be a program name with args.
6656 set dummy dsymutil; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$ac_ct_DSYMUTIL"; then
6663   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670     for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677   done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6683 if test -n "$ac_ct_DSYMUTIL"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6685 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691   if test "x$ac_ct_DSYMUTIL" = x; then
6692     DSYMUTIL=":"
6693   else
6694     case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700     DSYMUTIL=$ac_ct_DSYMUTIL
6701   fi
6702 else
6703   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6704 fi
6705
6706     if test -n "$ac_tool_prefix"; then
6707   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_NMEDIT+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if test -n "$NMEDIT"; then
6715   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722     for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729   done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 NMEDIT=$ac_cv_prog_NMEDIT
6735 if test -n "$NMEDIT"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6737 $as_echo "$NMEDIT" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744 fi
6745 if test -z "$ac_cv_prog_NMEDIT"; then
6746   ac_ct_NMEDIT=$NMEDIT
6747   # Extract the first word of "nmedit", so it can be a program name with args.
6748 set dummy nmedit; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$ac_ct_NMEDIT"; then
6755   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769   done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6775 if test -n "$ac_ct_NMEDIT"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6777 $as_echo "$ac_ct_NMEDIT" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783   if test "x$ac_ct_NMEDIT" = x; then
6784     NMEDIT=":"
6785   else
6786     case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792     NMEDIT=$ac_ct_NMEDIT
6793   fi
6794 else
6795   NMEDIT="$ac_cv_prog_NMEDIT"
6796 fi
6797
6798     if test -n "$ac_tool_prefix"; then
6799   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_LIPO+:} false; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   if test -n "$LIPO"; then
6807   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814     for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821   done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 LIPO=$ac_cv_prog_LIPO
6827 if test -n "$LIPO"; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6829 $as_echo "$LIPO" >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_LIPO"; then
6838   ac_ct_LIPO=$LIPO
6839   # Extract the first word of "lipo", so it can be a program name with args.
6840 set dummy lipo; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$ac_ct_LIPO"; then
6847   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856     ac_cv_prog_ac_ct_LIPO="lipo"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6867 if test -n "$ac_ct_LIPO"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6869 $as_echo "$ac_ct_LIPO" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875   if test "x$ac_ct_LIPO" = x; then
6876     LIPO=":"
6877   else
6878     case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6883 esac
6884     LIPO=$ac_ct_LIPO
6885   fi
6886 else
6887   LIPO="$ac_cv_prog_LIPO"
6888 fi
6889
6890     if test -n "$ac_tool_prefix"; then
6891   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}otool; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_OTOOL+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   if test -n "$OTOOL"; then
6899   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906     for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913   done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 OTOOL=$ac_cv_prog_OTOOL
6919 if test -n "$OTOOL"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6921 $as_echo "$OTOOL" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_OTOOL"; then
6930   ac_ct_OTOOL=$OTOOL
6931   # Extract the first word of "otool", so it can be a program name with args.
6932 set dummy otool; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$ac_ct_OTOOL"; then
6939   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_prog_ac_ct_OTOOL="otool"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6959 if test -n "$ac_ct_OTOOL"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6961 $as_echo "$ac_ct_OTOOL" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967   if test "x$ac_ct_OTOOL" = x; then
6968     OTOOL=":"
6969   else
6970     case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976     OTOOL=$ac_ct_OTOOL
6977   fi
6978 else
6979   OTOOL="$ac_cv_prog_OTOOL"
6980 fi
6981
6982     if test -n "$ac_tool_prefix"; then
6983   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_OTOOL64+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test -n "$OTOOL64"; then
6991   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998     for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005   done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 OTOOL64=$ac_cv_prog_OTOOL64
7011 if test -n "$OTOOL64"; then
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7013 $as_echo "$OTOOL64" >&6; }
7014 else
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_OTOOL64"; then
7022   ac_ct_OTOOL64=$OTOOL64
7023   # Extract the first word of "otool64", so it can be a program name with args.
7024 set dummy otool64; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$ac_ct_OTOOL64"; then
7031   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_ac_ct_OTOOL64="otool64"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7051 if test -n "$ac_ct_OTOOL64"; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7053 $as_echo "$ac_ct_OTOOL64" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059   if test "x$ac_ct_OTOOL64" = x; then
7060     OTOOL64=":"
7061   else
7062     case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068     OTOOL64=$ac_ct_OTOOL64
7069   fi
7070 else
7071   OTOOL64="$ac_cv_prog_OTOOL64"
7072 fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7101 $as_echo_n "checking for -single_module linker flag... " >&6; }
7102 if ${lt_cv_apple_cc_single_mod+:} false; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   lt_cv_apple_cc_single_mod=no
7106       if test -z "${LT_MULTI_MODULE}"; then
7107         # By default we will add the -single_module flag. You can override
7108         # by either setting the environment variable LT_MULTI_MODULE
7109         # non-empty at configure time, or by adding -multi_module to the
7110         # link flags.
7111         rm -rf libconftest.dylib*
7112         echo "int foo(void){return 1;}" > conftest.c
7113         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7114 -dynamiclib -Wl,-single_module conftest.c" >&5
7115         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7116           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7117         _lt_result=$?
7118         # If there is a non-empty error log, and "single_module"
7119         # appears in it, assume the flag caused a linker warning
7120         if test -s conftest.err && $GREP single_module conftest.err; then
7121           cat conftest.err >&5
7122         # Otherwise, if the output was created with a 0 exit code from
7123         # the compiler, it worked.
7124         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7125           lt_cv_apple_cc_single_mod=yes
7126         else
7127           cat conftest.err >&5
7128         fi
7129         rm -rf libconftest.dylib*
7130         rm -f conftest.*
7131       fi
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7134 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7135
7136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7137 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7138 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   lt_cv_ld_exported_symbols_list=no
7142       save_LDFLAGS=$LDFLAGS
7143       echo "_main" > conftest.sym
7144       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7145       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h.  */
7147
7148 int
7149 main ()
7150 {
7151
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 if ac_fn_c_try_link "$LINENO"; then :
7157   lt_cv_ld_exported_symbols_list=yes
7158 else
7159   lt_cv_ld_exported_symbols_list=no
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext \
7162     conftest$ac_exeext conftest.$ac_ext
7163         LDFLAGS="$save_LDFLAGS"
7164
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7167 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7168
7169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7170 $as_echo_n "checking for -force_load linker flag... " >&6; }
7171 if ${lt_cv_ld_force_load+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   lt_cv_ld_force_load=no
7175       cat > conftest.c << _LT_EOF
7176 int forced_loaded() { return 2;}
7177 _LT_EOF
7178       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7179       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7180       echo "$AR cru libconftest.a conftest.o" >&5
7181       $AR cru libconftest.a conftest.o 2>&5
7182       echo "$RANLIB libconftest.a" >&5
7183       $RANLIB libconftest.a 2>&5
7184       cat > conftest.c << _LT_EOF
7185 int main() { return 0;}
7186 _LT_EOF
7187       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7188       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7189       _lt_result=$?
7190       if test -s conftest.err && $GREP force_load conftest.err; then
7191         cat conftest.err >&5
7192       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7193         lt_cv_ld_force_load=yes
7194       else
7195         cat conftest.err >&5
7196       fi
7197         rm -f conftest.err libconftest.a conftest conftest.c
7198         rm -rf conftest.dSYM
7199
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7202 $as_echo "$lt_cv_ld_force_load" >&6; }
7203     case $host_os in
7204     rhapsody* | darwin1.[012])
7205       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7206     darwin1.*)
7207       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7208     darwin*) # darwin 5.x on
7209       # if running on 10.5 or later, the deployment target defaults
7210       # to the OS version, if on x86, and 10.4, the deployment
7211       # target defaults to 10.4. Don't you love it?
7212       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7213         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7214           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7215         10.[012]*)
7216           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217         10.*)
7218           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7219       esac
7220     ;;
7221   esac
7222     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7223       _lt_dar_single_mod='$single_module'
7224     fi
7225     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7226       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7227     else
7228       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7229     fi
7230     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7231       _lt_dsymutil='~$DSYMUTIL $lib || :'
7232     else
7233       _lt_dsymutil=
7234     fi
7235     ;;
7236   esac
7237
7238 ac_ext=c
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7245 # On Suns, sometimes $CPP names a directory.
7246 if test -n "$CPP" && test -d "$CPP"; then
7247   CPP=
7248 fi
7249 if test -z "$CPP"; then
7250   if ${ac_cv_prog_CPP+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253       # Double quotes because CPP needs to be expanded
7254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7255     do
7256       ac_preproc_ok=false
7257 for ac_c_preproc_warn_flag in '' yes
7258 do
7259   # Use a header file that comes with gcc, so configuring glibc
7260   # with a fresh cross-compiler works.
7261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262   # <limits.h> exists even on freestanding compilers.
7263   # On the NeXT, cc -E runs the code through the compiler's parser,
7264   # not just through cpp. "Syntax error" is here to catch this case.
7265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h.  */
7267 #ifdef __STDC__
7268 # include <limits.h>
7269 #else
7270 # include <assert.h>
7271 #endif
7272                      Syntax error
7273 _ACEOF
7274 if ac_fn_c_try_cpp "$LINENO"; then :
7275
7276 else
7277   # Broken: fails on valid input.
7278 continue
7279 fi
7280 rm -f conftest.err conftest.i conftest.$ac_ext
7281
7282   # OK, works on sane cases.  Now check whether nonexistent headers
7283   # can be detected and how.
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 #include <ac_nonexistent.h>
7287 _ACEOF
7288 if ac_fn_c_try_cpp "$LINENO"; then :
7289   # Broken: success on invalid input.
7290 continue
7291 else
7292   # Passes both tests.
7293 ac_preproc_ok=:
7294 break
7295 fi
7296 rm -f conftest.err conftest.i conftest.$ac_ext
7297
7298 done
7299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7300 rm -f conftest.i conftest.err conftest.$ac_ext
7301 if $ac_preproc_ok; then :
7302   break
7303 fi
7304
7305     done
7306     ac_cv_prog_CPP=$CPP
7307
7308 fi
7309   CPP=$ac_cv_prog_CPP
7310 else
7311   ac_cv_prog_CPP=$CPP
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7314 $as_echo "$CPP" >&6; }
7315 ac_preproc_ok=false
7316 for ac_c_preproc_warn_flag in '' yes
7317 do
7318   # Use a header file that comes with gcc, so configuring glibc
7319   # with a fresh cross-compiler works.
7320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7321   # <limits.h> exists even on freestanding compilers.
7322   # On the NeXT, cc -E runs the code through the compiler's parser,
7323   # not just through cpp. "Syntax error" is here to catch this case.
7324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h.  */
7326 #ifdef __STDC__
7327 # include <limits.h>
7328 #else
7329 # include <assert.h>
7330 #endif
7331                      Syntax error
7332 _ACEOF
7333 if ac_fn_c_try_cpp "$LINENO"; then :
7334
7335 else
7336   # Broken: fails on valid input.
7337 continue
7338 fi
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7340
7341   # OK, works on sane cases.  Now check whether nonexistent headers
7342   # can be detected and how.
7343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h.  */
7345 #include <ac_nonexistent.h>
7346 _ACEOF
7347 if ac_fn_c_try_cpp "$LINENO"; then :
7348   # Broken: success on invalid input.
7349 continue
7350 else
7351   # Passes both tests.
7352 ac_preproc_ok=:
7353 break
7354 fi
7355 rm -f conftest.err conftest.i conftest.$ac_ext
7356
7357 done
7358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7359 rm -f conftest.i conftest.err conftest.$ac_ext
7360 if $ac_preproc_ok; then :
7361
7362 else
7363   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7366 See \`config.log' for more details" "$LINENO" 5; }
7367 fi
7368
7369 ac_ext=c
7370 ac_cpp='$CPP $CPPFLAGS'
7371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7377 $as_echo_n "checking for ANSI C header files... " >&6; }
7378 if ${ac_cv_header_stdc+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h.  */
7383 #include <stdlib.h>
7384 #include <stdarg.h>
7385 #include <string.h>
7386 #include <float.h>
7387
7388 int
7389 main ()
7390 {
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"; then :
7397   ac_cv_header_stdc=yes
7398 else
7399   ac_cv_header_stdc=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402
7403 if test $ac_cv_header_stdc = yes; then
7404   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h.  */
7407 #include <string.h>
7408
7409 _ACEOF
7410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7411   $EGREP "memchr" >/dev/null 2>&1; then :
7412
7413 else
7414   ac_cv_header_stdc=no
7415 fi
7416 rm -f conftest*
7417
7418 fi
7419
7420 if test $ac_cv_header_stdc = yes; then
7421   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h.  */
7424 #include <stdlib.h>
7425
7426 _ACEOF
7427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428   $EGREP "free" >/dev/null 2>&1; then :
7429
7430 else
7431   ac_cv_header_stdc=no
7432 fi
7433 rm -f conftest*
7434
7435 fi
7436
7437 if test $ac_cv_header_stdc = yes; then
7438   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7439   if test "$cross_compiling" = yes; then :
7440   :
7441 else
7442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h.  */
7444 #include <ctype.h>
7445 #include <stdlib.h>
7446 #if ((' ' & 0x0FF) == 0x020)
7447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7449 #else
7450 # define ISLOWER(c) \
7451                    (('a' <= (c) && (c) <= 'i') \
7452                      || ('j' <= (c) && (c) <= 'r') \
7453                      || ('s' <= (c) && (c) <= 'z'))
7454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7455 #endif
7456
7457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7458 int
7459 main ()
7460 {
7461   int i;
7462   for (i = 0; i < 256; i++)
7463     if (XOR (islower (i), ISLOWER (i))
7464         || toupper (i) != TOUPPER (i))
7465       return 2;
7466   return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_run "$LINENO"; then :
7470
7471 else
7472   ac_cv_header_stdc=no
7473 fi
7474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7475   conftest.$ac_objext conftest.beam conftest.$ac_ext
7476 fi
7477
7478 fi
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7481 $as_echo "$ac_cv_header_stdc" >&6; }
7482 if test $ac_cv_header_stdc = yes; then
7483
7484 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7485
7486 fi
7487
7488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7490                   inttypes.h stdint.h unistd.h
7491 do :
7492   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7494 "
7495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7496   cat >>confdefs.h <<_ACEOF
7497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7498 _ACEOF
7499
7500 fi
7501
7502 done
7503
7504
7505 for ac_header in dlfcn.h
7506 do :
7507   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7508 "
7509 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7510   cat >>confdefs.h <<_ACEOF
7511 #define HAVE_DLFCN_H 1
7512 _ACEOF
7513
7514 fi
7515
7516 done
7517
7518
7519
7520
7521
7522 # Set options
7523 # Check whether --enable-static was given.
7524 if test "${enable_static+set}" = set; then :
7525   enableval=$enable_static; p=${PACKAGE-default}
7526     case $enableval in
7527     yes) enable_static=yes ;;
7528     no) enable_static=no ;;
7529     *)
7530      enable_static=no
7531       # Look at the argument we got.  We use all the common list separators.
7532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533       for pkg in $enableval; do
7534         IFS="$lt_save_ifs"
7535         if test "X$pkg" = "X$p"; then
7536           enable_static=yes
7537         fi
7538       done
7539       IFS="$lt_save_ifs"
7540       ;;
7541     esac
7542 else
7543   enable_static=no
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555         enable_dlopen=no
7556
7557
7558   enable_win32_dll=no
7559
7560
7561             # Check whether --enable-shared was given.
7562 if test "${enable_shared+set}" = set; then :
7563   enableval=$enable_shared; p=${PACKAGE-default}
7564     case $enableval in
7565     yes) enable_shared=yes ;;
7566     no) enable_shared=no ;;
7567     *)
7568       enable_shared=no
7569       # Look at the argument we got.  We use all the common list separators.
7570       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7571       for pkg in $enableval; do
7572         IFS="$lt_save_ifs"
7573         if test "X$pkg" = "X$p"; then
7574           enable_shared=yes
7575         fi
7576       done
7577       IFS="$lt_save_ifs"
7578       ;;
7579     esac
7580 else
7581   enable_shared=yes
7582 fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 # Check whether --with-pic was given.
7595 if test "${with_pic+set}" = set; then :
7596   withval=$with_pic; lt_p=${PACKAGE-default}
7597     case $withval in
7598     yes|no) pic_mode=$withval ;;
7599     *)
7600       pic_mode=default
7601       # Look at the argument we got.  We use all the common list separators.
7602       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7603       for lt_pkg in $withval; do
7604         IFS="$lt_save_ifs"
7605         if test "X$lt_pkg" = "X$lt_p"; then
7606           pic_mode=yes
7607         fi
7608       done
7609       IFS="$lt_save_ifs"
7610       ;;
7611     esac
7612 else
7613   pic_mode=default
7614 fi
7615
7616
7617 test -z "$pic_mode" && pic_mode=default
7618
7619
7620
7621
7622
7623
7624
7625   # Check whether --enable-fast-install was given.
7626 if test "${enable_fast_install+set}" = set; then :
7627   enableval=$enable_fast_install; p=${PACKAGE-default}
7628     case $enableval in
7629     yes) enable_fast_install=yes ;;
7630     no) enable_fast_install=no ;;
7631     *)
7632       enable_fast_install=no
7633       # Look at the argument we got.  We use all the common list separators.
7634       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7635       for pkg in $enableval; do
7636         IFS="$lt_save_ifs"
7637         if test "X$pkg" = "X$p"; then
7638           enable_fast_install=yes
7639         fi
7640       done
7641       IFS="$lt_save_ifs"
7642       ;;
7643     esac
7644 else
7645   enable_fast_install=yes
7646 fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658 # This can be used to rebuild libtool when needed
7659 LIBTOOL_DEPS="$ltmain"
7660
7661 # Always use our own libtool.
7662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 test -z "$LN_S" && LN_S="ln -s"
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708 if test -n "${ZSH_VERSION+set}" ; then
7709    setopt NO_GLOB_SUBST
7710 fi
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7713 $as_echo_n "checking for objdir... " >&6; }
7714 if ${lt_cv_objdir+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   rm -f .libs 2>/dev/null
7718 mkdir .libs 2>/dev/null
7719 if test -d .libs; then
7720   lt_cv_objdir=.libs
7721 else
7722   # MS-DOS does not allow filenames that begin with a dot.
7723   lt_cv_objdir=_libs
7724 fi
7725 rmdir .libs 2>/dev/null
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7728 $as_echo "$lt_cv_objdir" >&6; }
7729 objdir=$lt_cv_objdir
7730
7731
7732
7733
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define LT_OBJDIR "$lt_cv_objdir/"
7737 _ACEOF
7738
7739
7740
7741
7742 case $host_os in
7743 aix3*)
7744   # AIX sometimes has problems with the GCC collect2 program.  For some
7745   # reason, if we set the COLLECT_NAMES environment variable, the problems
7746   # vanish in a puff of smoke.
7747   if test "X${COLLECT_NAMES+set}" != Xset; then
7748     COLLECT_NAMES=
7749     export COLLECT_NAMES
7750   fi
7751   ;;
7752 esac
7753
7754 # Global variables:
7755 ofile=libtool
7756 can_build_shared=yes
7757
7758 # All known linkers require a `.a' archive for static linking (except MSVC,
7759 # which needs '.lib').
7760 libext=a
7761
7762 with_gnu_ld="$lt_cv_prog_gnu_ld"
7763
7764 old_CC="$CC"
7765 old_CFLAGS="$CFLAGS"
7766
7767 # Set sane defaults for various variables
7768 test -z "$CC" && CC=cc
7769 test -z "$LTCC" && LTCC=$CC
7770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7771 test -z "$LD" && LD=ld
7772 test -z "$ac_objext" && ac_objext=o
7773
7774 for cc_temp in $compiler""; do
7775   case $cc_temp in
7776     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7777     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7778     \-*) ;;
7779     *) break;;
7780   esac
7781 done
7782 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7783
7784
7785 # Only perform the check for file, if the check method requires it
7786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7787 case $deplibs_check_method in
7788 file_magic*)
7789   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7791 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7792 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   case $MAGIC_CMD in
7796 [\\/*] |  ?:[\\/]*)
7797   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7798   ;;
7799 *)
7800   lt_save_MAGIC_CMD="$MAGIC_CMD"
7801   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7802   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7803   for ac_dir in $ac_dummy; do
7804     IFS="$lt_save_ifs"
7805     test -z "$ac_dir" && ac_dir=.
7806     if test -f $ac_dir/${ac_tool_prefix}file; then
7807       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7808       if test -n "$file_magic_test_file"; then
7809         case $deplibs_check_method in
7810         "file_magic "*)
7811           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7812           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7814             $EGREP "$file_magic_regex" > /dev/null; then
7815             :
7816           else
7817             cat <<_LT_EOF 1>&2
7818
7819 *** Warning: the command libtool uses to detect shared libraries,
7820 *** $file_magic_cmd, produces output that libtool cannot recognize.
7821 *** The result is that libtool may fail to recognize shared libraries
7822 *** as such.  This will affect the creation of libtool libraries that
7823 *** depend on shared libraries, but programs linked with such libtool
7824 *** libraries will work regardless of this problem.  Nevertheless, you
7825 *** may want to report the problem to your system manager and/or to
7826 *** bug-libtool@gnu.org
7827
7828 _LT_EOF
7829           fi ;;
7830         esac
7831       fi
7832       break
7833     fi
7834   done
7835   IFS="$lt_save_ifs"
7836   MAGIC_CMD="$lt_save_MAGIC_CMD"
7837   ;;
7838 esac
7839 fi
7840
7841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7842 if test -n "$MAGIC_CMD"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7844 $as_echo "$MAGIC_CMD" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850
7851
7852
7853
7854 if test -z "$lt_cv_path_MAGIC_CMD"; then
7855   if test -n "$ac_tool_prefix"; then
7856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7857 $as_echo_n "checking for file... " >&6; }
7858 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   case $MAGIC_CMD in
7862 [\\/*] |  ?:[\\/]*)
7863   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7864   ;;
7865 *)
7866   lt_save_MAGIC_CMD="$MAGIC_CMD"
7867   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7868   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7869   for ac_dir in $ac_dummy; do
7870     IFS="$lt_save_ifs"
7871     test -z "$ac_dir" && ac_dir=.
7872     if test -f $ac_dir/file; then
7873       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7874       if test -n "$file_magic_test_file"; then
7875         case $deplibs_check_method in
7876         "file_magic "*)
7877           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7878           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7880             $EGREP "$file_magic_regex" > /dev/null; then
7881             :
7882           else
7883             cat <<_LT_EOF 1>&2
7884
7885 *** Warning: the command libtool uses to detect shared libraries,
7886 *** $file_magic_cmd, produces output that libtool cannot recognize.
7887 *** The result is that libtool may fail to recognize shared libraries
7888 *** as such.  This will affect the creation of libtool libraries that
7889 *** depend on shared libraries, but programs linked with such libtool
7890 *** libraries will work regardless of this problem.  Nevertheless, you
7891 *** may want to report the problem to your system manager and/or to
7892 *** bug-libtool@gnu.org
7893
7894 _LT_EOF
7895           fi ;;
7896         esac
7897       fi
7898       break
7899     fi
7900   done
7901   IFS="$lt_save_ifs"
7902   MAGIC_CMD="$lt_save_MAGIC_CMD"
7903   ;;
7904 esac
7905 fi
7906
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if test -n "$MAGIC_CMD"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7910 $as_echo "$MAGIC_CMD" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917   else
7918     MAGIC_CMD=:
7919   fi
7920 fi
7921
7922   fi
7923   ;;
7924 esac
7925
7926 # Use C for the default configuration in the libtool script
7927
7928 lt_save_CC="$CC"
7929 ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935
7936 # Source file extension for C test sources.
7937 ac_ext=c
7938
7939 # Object file extension for compiled C test sources.
7940 objext=o
7941 objext=$objext
7942
7943 # Code to be used in simple compile tests
7944 lt_simple_compile_test_code="int some_variable = 0;"
7945
7946 # Code to be used in simple link tests
7947 lt_simple_link_test_code='int main(){return(0);}'
7948
7949
7950
7951
7952
7953
7954
7955 # If no C compiler was specified, use CC.
7956 LTCC=${LTCC-"$CC"}
7957
7958 # If no C compiler flags were specified, use CFLAGS.
7959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7960
7961 # Allow CC to be a program name with arguments.
7962 compiler=$CC
7963
7964 # Save the default compiler, since it gets overwritten when the other
7965 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7966 compiler_DEFAULT=$CC
7967
7968 # save warnings/boilerplate of simple test code
7969 ac_outfile=conftest.$ac_objext
7970 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7972 _lt_compiler_boilerplate=`cat conftest.err`
7973 $RM conftest*
7974
7975 ac_outfile=conftest.$ac_objext
7976 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7978 _lt_linker_boilerplate=`cat conftest.err`
7979 $RM -r conftest*
7980
7981
7982 if test -n "$compiler"; then
7983
7984 lt_prog_compiler_no_builtin_flag=
7985
7986 if test "$GCC" = yes; then
7987   case $cc_basename in
7988   nvcc*)
7989     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7990   *)
7991     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7992   esac
7993
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7995 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7996 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   lt_cv_prog_compiler_rtti_exceptions=no
8000    ac_outfile=conftest.$ac_objext
8001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8002    lt_compiler_flag="-fno-rtti -fno-exceptions"
8003    # Insert the option either (1) after the last *FLAGS variable, or
8004    # (2) before a word containing "conftest.", or (3) at the end.
8005    # Note that $ac_compile itself does not contain backslashes and begins
8006    # with a dollar sign (not a hyphen), so the echo should work correctly.
8007    # The option is referenced via a variable to avoid confusing sed.
8008    lt_compile=`echo "$ac_compile" | $SED \
8009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8011    -e 's:$: $lt_compiler_flag:'`
8012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8013    (eval "$lt_compile" 2>conftest.err)
8014    ac_status=$?
8015    cat conftest.err >&5
8016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017    if (exit $ac_status) && test -s "$ac_outfile"; then
8018      # The compiler can only warn and ignore the option if not recognized
8019      # So say no if there are warnings other than the usual output.
8020      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8021      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8022      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8023        lt_cv_prog_compiler_rtti_exceptions=yes
8024      fi
8025    fi
8026    $RM conftest*
8027
8028 fi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8030 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8031
8032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8033     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8034 else
8035     :
8036 fi
8037
8038 fi
8039
8040
8041
8042
8043
8044
8045   lt_prog_compiler_wl=
8046 lt_prog_compiler_pic=
8047 lt_prog_compiler_static=
8048
8049
8050   if test "$GCC" = yes; then
8051     lt_prog_compiler_wl='-Wl,'
8052     lt_prog_compiler_static='-static'
8053
8054     case $host_os in
8055       aix*)
8056       # All AIX code is PIC.
8057       if test "$host_cpu" = ia64; then
8058         # AIX 5 now supports IA64 processor
8059         lt_prog_compiler_static='-Bstatic'
8060       fi
8061       ;;
8062
8063     amigaos*)
8064       case $host_cpu in
8065       powerpc)
8066             # see comment about AmigaOS4 .so support
8067             lt_prog_compiler_pic='-fPIC'
8068         ;;
8069       m68k)
8070             # FIXME: we need at least 68020 code to build shared libraries, but
8071             # adding the `-m68020' flag to GCC prevents building anything better,
8072             # like `-m68040'.
8073             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8074         ;;
8075       esac
8076       ;;
8077
8078     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8079       # PIC is the default for these OSes.
8080       ;;
8081
8082     mingw* | cygwin* | pw32* | os2* | cegcc*)
8083       # This hack is so that the source file can tell whether it is being
8084       # built for inclusion in a dll (and should export symbols for example).
8085       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8086       # (--disable-auto-import) libraries
8087       lt_prog_compiler_pic='-DDLL_EXPORT'
8088       ;;
8089
8090     darwin* | rhapsody*)
8091       # PIC is the default on this platform
8092       # Common symbols not allowed in MH_DYLIB files
8093       lt_prog_compiler_pic='-fno-common'
8094       ;;
8095
8096     haiku*)
8097       # PIC is the default for Haiku.
8098       # The "-static" flag exists, but is broken.
8099       lt_prog_compiler_static=
8100       ;;
8101
8102     hpux*)
8103       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8104       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8105       # sets the default TLS model and affects inlining.
8106       case $host_cpu in
8107       hppa*64*)
8108         # +Z the default
8109         ;;
8110       *)
8111         lt_prog_compiler_pic='-fPIC'
8112         ;;
8113       esac
8114       ;;
8115
8116     interix[3-9]*)
8117       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8118       # Instead, we relocate shared libraries at runtime.
8119       ;;
8120
8121     msdosdjgpp*)
8122       # Just because we use GCC doesn't mean we suddenly get shared libraries
8123       # on systems that don't support them.
8124       lt_prog_compiler_can_build_shared=no
8125       enable_shared=no
8126       ;;
8127
8128     *nto* | *qnx*)
8129       # QNX uses GNU C++, but need to define -shared option too, otherwise
8130       # it will coredump.
8131       lt_prog_compiler_pic='-fPIC -shared'
8132       ;;
8133
8134     sysv4*MP*)
8135       if test -d /usr/nec; then
8136         lt_prog_compiler_pic=-Kconform_pic
8137       fi
8138       ;;
8139
8140     *)
8141       lt_prog_compiler_pic='-fPIC'
8142       ;;
8143     esac
8144
8145     case $cc_basename in
8146     nvcc*) # Cuda Compiler Driver 2.2
8147       lt_prog_compiler_wl='-Xlinker '
8148       if test -n "$lt_prog_compiler_pic"; then
8149         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8150       fi
8151       ;;
8152     esac
8153   else
8154     # PORTME Check for flag to pass linker flags through the system compiler.
8155     case $host_os in
8156     aix*)
8157       lt_prog_compiler_wl='-Wl,'
8158       if test "$host_cpu" = ia64; then
8159         # AIX 5 now supports IA64 processor
8160         lt_prog_compiler_static='-Bstatic'
8161       else
8162         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8163       fi
8164       ;;
8165
8166     mingw* | cygwin* | pw32* | os2* | cegcc*)
8167       # This hack is so that the source file can tell whether it is being
8168       # built for inclusion in a dll (and should export symbols for example).
8169       lt_prog_compiler_pic='-DDLL_EXPORT'
8170       ;;
8171
8172     hpux9* | hpux10* | hpux11*)
8173       lt_prog_compiler_wl='-Wl,'
8174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8175       # not for PA HP-UX.
8176       case $host_cpu in
8177       hppa*64*|ia64*)
8178         # +Z the default
8179         ;;
8180       *)
8181         lt_prog_compiler_pic='+Z'
8182         ;;
8183       esac
8184       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8185       lt_prog_compiler_static='${wl}-a ${wl}archive'
8186       ;;
8187
8188     irix5* | irix6* | nonstopux*)
8189       lt_prog_compiler_wl='-Wl,'
8190       # PIC (with -KPIC) is the default.
8191       lt_prog_compiler_static='-non_shared'
8192       ;;
8193
8194     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8195       case $cc_basename in
8196       # old Intel for x86_64 which still supported -KPIC.
8197       ecc*)
8198         lt_prog_compiler_wl='-Wl,'
8199         lt_prog_compiler_pic='-KPIC'
8200         lt_prog_compiler_static='-static'
8201         ;;
8202       # icc used to be incompatible with GCC.
8203       # ICC 10 doesn't accept -KPIC any more.
8204       icc* | ifort*)
8205         lt_prog_compiler_wl='-Wl,'
8206         lt_prog_compiler_pic='-fPIC'
8207         lt_prog_compiler_static='-static'
8208         ;;
8209       # Lahey Fortran 8.1.
8210       lf95*)
8211         lt_prog_compiler_wl='-Wl,'
8212         lt_prog_compiler_pic='--shared'
8213         lt_prog_compiler_static='--static'
8214         ;;
8215       nagfor*)
8216         # NAG Fortran compiler
8217         lt_prog_compiler_wl='-Wl,-Wl,,'
8218         lt_prog_compiler_pic='-PIC'
8219         lt_prog_compiler_static='-Bstatic'
8220         ;;
8221       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8222         # Portland Group compilers (*not* the Pentium gcc compiler,
8223         # which looks to be a dead project)
8224         lt_prog_compiler_wl='-Wl,'
8225         lt_prog_compiler_pic='-fpic'
8226         lt_prog_compiler_static='-Bstatic'
8227         ;;
8228       ccc*)
8229         lt_prog_compiler_wl='-Wl,'
8230         # All Alpha code is PIC.
8231         lt_prog_compiler_static='-non_shared'
8232         ;;
8233       xl* | bgxl* | bgf* | mpixl*)
8234         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8235         lt_prog_compiler_wl='-Wl,'
8236         lt_prog_compiler_pic='-qpic'
8237         lt_prog_compiler_static='-qstaticlink'
8238         ;;
8239       *)
8240         case `$CC -V 2>&1 | sed 5q` in
8241         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8242           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8243           lt_prog_compiler_pic='-KPIC'
8244           lt_prog_compiler_static='-Bstatic'
8245           lt_prog_compiler_wl=''
8246           ;;
8247         *Sun\ F* | *Sun*Fortran*)
8248           lt_prog_compiler_pic='-KPIC'
8249           lt_prog_compiler_static='-Bstatic'
8250           lt_prog_compiler_wl='-Qoption ld '
8251           ;;
8252         *Sun\ C*)
8253           # Sun C 5.9
8254           lt_prog_compiler_pic='-KPIC'
8255           lt_prog_compiler_static='-Bstatic'
8256           lt_prog_compiler_wl='-Wl,'
8257           ;;
8258         *Intel*\ [CF]*Compiler*)
8259           lt_prog_compiler_wl='-Wl,'
8260           lt_prog_compiler_pic='-fPIC'
8261           lt_prog_compiler_static='-static'
8262           ;;
8263         *Portland\ Group*)
8264           lt_prog_compiler_wl='-Wl,'
8265           lt_prog_compiler_pic='-fpic'
8266           lt_prog_compiler_static='-Bstatic'
8267           ;;
8268         esac
8269         ;;
8270       esac
8271       ;;
8272
8273     newsos6)
8274       lt_prog_compiler_pic='-KPIC'
8275       lt_prog_compiler_static='-Bstatic'
8276       ;;
8277
8278     *nto* | *qnx*)
8279       # QNX uses GNU C++, but need to define -shared option too, otherwise
8280       # it will coredump.
8281       lt_prog_compiler_pic='-fPIC -shared'
8282       ;;
8283
8284     osf3* | osf4* | osf5*)
8285       lt_prog_compiler_wl='-Wl,'
8286       # All OSF/1 code is PIC.
8287       lt_prog_compiler_static='-non_shared'
8288       ;;
8289
8290     rdos*)
8291       lt_prog_compiler_static='-non_shared'
8292       ;;
8293
8294     solaris*)
8295       lt_prog_compiler_pic='-KPIC'
8296       lt_prog_compiler_static='-Bstatic'
8297       case $cc_basename in
8298       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8299         lt_prog_compiler_wl='-Qoption ld ';;
8300       *)
8301         lt_prog_compiler_wl='-Wl,';;
8302       esac
8303       ;;
8304
8305     sunos4*)
8306       lt_prog_compiler_wl='-Qoption ld '
8307       lt_prog_compiler_pic='-PIC'
8308       lt_prog_compiler_static='-Bstatic'
8309       ;;
8310
8311     sysv4 | sysv4.2uw2* | sysv4.3*)
8312       lt_prog_compiler_wl='-Wl,'
8313       lt_prog_compiler_pic='-KPIC'
8314       lt_prog_compiler_static='-Bstatic'
8315       ;;
8316
8317     sysv4*MP*)
8318       if test -d /usr/nec ;then
8319         lt_prog_compiler_pic='-Kconform_pic'
8320         lt_prog_compiler_static='-Bstatic'
8321       fi
8322       ;;
8323
8324     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8325       lt_prog_compiler_wl='-Wl,'
8326       lt_prog_compiler_pic='-KPIC'
8327       lt_prog_compiler_static='-Bstatic'
8328       ;;
8329
8330     unicos*)
8331       lt_prog_compiler_wl='-Wl,'
8332       lt_prog_compiler_can_build_shared=no
8333       ;;
8334
8335     uts4*)
8336       lt_prog_compiler_pic='-pic'
8337       lt_prog_compiler_static='-Bstatic'
8338       ;;
8339
8340     *)
8341       lt_prog_compiler_can_build_shared=no
8342       ;;
8343     esac
8344   fi
8345
8346 case $host_os in
8347   # For platforms which do not support PIC, -DPIC is meaningless:
8348   *djgpp*)
8349     lt_prog_compiler_pic=
8350     ;;
8351   *)
8352     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8353     ;;
8354 esac
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8358 if ${lt_cv_prog_compiler_pic+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8364 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8365 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8366
8367 #
8368 # Check to make sure the PIC flag actually works.
8369 #
8370 if test -n "$lt_prog_compiler_pic"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8373 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   lt_cv_prog_compiler_pic_works=no
8377    ac_outfile=conftest.$ac_objext
8378    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8380    # Insert the option either (1) after the last *FLAGS variable, or
8381    # (2) before a word containing "conftest.", or (3) at the end.
8382    # Note that $ac_compile itself does not contain backslashes and begins
8383    # with a dollar sign (not a hyphen), so the echo should work correctly.
8384    # The option is referenced via a variable to avoid confusing sed.
8385    lt_compile=`echo "$ac_compile" | $SED \
8386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388    -e 's:$: $lt_compiler_flag:'`
8389    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390    (eval "$lt_compile" 2>conftest.err)
8391    ac_status=$?
8392    cat conftest.err >&5
8393    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394    if (exit $ac_status) && test -s "$ac_outfile"; then
8395      # The compiler can only warn and ignore the option if not recognized
8396      # So say no if there are warnings other than the usual output.
8397      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8398      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8400        lt_cv_prog_compiler_pic_works=yes
8401      fi
8402    fi
8403    $RM conftest*
8404
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8407 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8408
8409 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8410     case $lt_prog_compiler_pic in
8411      "" | " "*) ;;
8412      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8413      esac
8414 else
8415     lt_prog_compiler_pic=
8416      lt_prog_compiler_can_build_shared=no
8417 fi
8418
8419 fi
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431 #
8432 # Check to make sure the static flag actually works.
8433 #
8434 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8436 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8437 if ${lt_cv_prog_compiler_static_works+:} false; then :
8438   $as_echo_n "(cached) " >&6
8439 else
8440   lt_cv_prog_compiler_static_works=no
8441    save_LDFLAGS="$LDFLAGS"
8442    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8443    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8444    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8445      # The linker can only warn and ignore the option if not recognized
8446      # So say no if there are warnings
8447      if test -s conftest.err; then
8448        # Append any errors to the config.log.
8449        cat conftest.err 1>&5
8450        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8451        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8452        if diff conftest.exp conftest.er2 >/dev/null; then
8453          lt_cv_prog_compiler_static_works=yes
8454        fi
8455      else
8456        lt_cv_prog_compiler_static_works=yes
8457      fi
8458    fi
8459    $RM -r conftest*
8460    LDFLAGS="$save_LDFLAGS"
8461
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8464 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8465
8466 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8467     :
8468 else
8469     lt_prog_compiler_static=
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8480 if ${lt_cv_prog_compiler_c_o+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   lt_cv_prog_compiler_c_o=no
8484    $RM -r conftest 2>/dev/null
8485    mkdir conftest
8486    cd conftest
8487    mkdir out
8488    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489
8490    lt_compiler_flag="-o out/conftest2.$ac_objext"
8491    # Insert the option either (1) after the last *FLAGS variable, or
8492    # (2) before a word containing "conftest.", or (3) at the end.
8493    # Note that $ac_compile itself does not contain backslashes and begins
8494    # with a dollar sign (not a hyphen), so the echo should work correctly.
8495    lt_compile=`echo "$ac_compile" | $SED \
8496    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498    -e 's:$: $lt_compiler_flag:'`
8499    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500    (eval "$lt_compile" 2>out/conftest.err)
8501    ac_status=$?
8502    cat out/conftest.err >&5
8503    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8505    then
8506      # The compiler can only warn and ignore the option if not recognized
8507      # So say no if there are warnings
8508      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8509      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8510      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8511        lt_cv_prog_compiler_c_o=yes
8512      fi
8513    fi
8514    chmod u+w . 2>&5
8515    $RM conftest*
8516    # SGI C++ compiler will create directory out/ii_files/ for
8517    # template instantiation
8518    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8519    $RM out/* && rmdir out
8520    cd ..
8521    $RM -r conftest
8522    $RM conftest*
8523
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8526 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8527
8528
8529
8530
8531
8532
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8535 if ${lt_cv_prog_compiler_c_o+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   lt_cv_prog_compiler_c_o=no
8539    $RM -r conftest 2>/dev/null
8540    mkdir conftest
8541    cd conftest
8542    mkdir out
8543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544
8545    lt_compiler_flag="-o out/conftest2.$ac_objext"
8546    # Insert the option either (1) after the last *FLAGS variable, or
8547    # (2) before a word containing "conftest.", or (3) at the end.
8548    # Note that $ac_compile itself does not contain backslashes and begins
8549    # with a dollar sign (not a hyphen), so the echo should work correctly.
8550    lt_compile=`echo "$ac_compile" | $SED \
8551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553    -e 's:$: $lt_compiler_flag:'`
8554    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8555    (eval "$lt_compile" 2>out/conftest.err)
8556    ac_status=$?
8557    cat out/conftest.err >&5
8558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8560    then
8561      # The compiler can only warn and ignore the option if not recognized
8562      # So say no if there are warnings
8563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8564      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8565      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8566        lt_cv_prog_compiler_c_o=yes
8567      fi
8568    fi
8569    chmod u+w . 2>&5
8570    $RM conftest*
8571    # SGI C++ compiler will create directory out/ii_files/ for
8572    # template instantiation
8573    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8574    $RM out/* && rmdir out
8575    cd ..
8576    $RM -r conftest
8577    $RM conftest*
8578
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8582
8583
8584
8585
8586 hard_links="nottested"
8587 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8588   # do not overwrite the value of need_locks provided by the user
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8590 $as_echo_n "checking if we can lock with hard links... " >&6; }
8591   hard_links=yes
8592   $RM conftest*
8593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8594   touch conftest.a
8595   ln conftest.a conftest.b 2>&5 || hard_links=no
8596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8598 $as_echo "$hard_links" >&6; }
8599   if test "$hard_links" = no; then
8600     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8601 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8602     need_locks=warn
8603   fi
8604 else
8605   need_locks=no
8606 fi
8607
8608
8609
8610
8611
8612
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8614 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8615
8616   runpath_var=
8617   allow_undefined_flag=
8618   always_export_symbols=no
8619   archive_cmds=
8620   archive_expsym_cmds=
8621   compiler_needs_object=no
8622   enable_shared_with_static_runtimes=no
8623   export_dynamic_flag_spec=
8624   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8625   hardcode_automatic=no
8626   hardcode_direct=no
8627   hardcode_direct_absolute=no
8628   hardcode_libdir_flag_spec=
8629   hardcode_libdir_separator=
8630   hardcode_minus_L=no
8631   hardcode_shlibpath_var=unsupported
8632   inherit_rpath=no
8633   link_all_deplibs=unknown
8634   module_cmds=
8635   module_expsym_cmds=
8636   old_archive_from_new_cmds=
8637   old_archive_from_expsyms_cmds=
8638   thread_safe_flag_spec=
8639   whole_archive_flag_spec=
8640   # include_expsyms should be a list of space-separated symbols to be *always*
8641   # included in the symbol list
8642   include_expsyms=
8643   # exclude_expsyms can be an extended regexp of symbols to exclude
8644   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8645   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8646   # as well as any symbol that contains `d'.
8647   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8648   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8649   # platforms (ab)use it in PIC code, but their linkers get confused if
8650   # the symbol is explicitly referenced.  Since portable code cannot
8651   # rely on this symbol name, it's probably fine to never include it in
8652   # preloaded symbol tables.
8653   # Exclude shared library initialization/finalization symbols.
8654   extract_expsyms_cmds=
8655
8656   case $host_os in
8657   cygwin* | mingw* | pw32* | cegcc*)
8658     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8659     # When not using gcc, we currently assume that we are using
8660     # Microsoft Visual C++.
8661     if test "$GCC" != yes; then
8662       with_gnu_ld=no
8663     fi
8664     ;;
8665   interix*)
8666     # we just hope/assume this is gcc and not c89 (= MSVC++)
8667     with_gnu_ld=yes
8668     ;;
8669   openbsd*)
8670     with_gnu_ld=no
8671     ;;
8672   linux* | k*bsd*-gnu | gnu*)
8673     link_all_deplibs=no
8674     ;;
8675   esac
8676
8677   ld_shlibs=yes
8678
8679   # On some targets, GNU ld is compatible enough with the native linker
8680   # that we're better off using the native interface for both.
8681   lt_use_gnu_ld_interface=no
8682   if test "$with_gnu_ld" = yes; then
8683     case $host_os in
8684       aix*)
8685         # The AIX port of GNU ld has always aspired to compatibility
8686         # with the native linker.  However, as the warning in the GNU ld
8687         # block says, versions before 2.19.5* couldn't really create working
8688         # shared libraries, regardless of the interface used.
8689         case `$LD -v 2>&1` in
8690           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8691           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8692           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8693           *)
8694             lt_use_gnu_ld_interface=yes
8695             ;;
8696         esac
8697         ;;
8698       *)
8699         lt_use_gnu_ld_interface=yes
8700         ;;
8701     esac
8702   fi
8703
8704   if test "$lt_use_gnu_ld_interface" = yes; then
8705     # If archive_cmds runs LD, not CC, wlarc should be empty
8706     wlarc='${wl}'
8707
8708     # Set some defaults for GNU ld with shared library support. These
8709     # are reset later if shared libraries are not supported. Putting them
8710     # here allows them to be overridden if necessary.
8711     runpath_var=LD_RUN_PATH
8712     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713     export_dynamic_flag_spec='${wl}--export-dynamic'
8714     # ancient GNU ld didn't support --whole-archive et. al.
8715     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8716       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8717     else
8718       whole_archive_flag_spec=
8719     fi
8720     supports_anon_versioning=no
8721     case `$LD -v 2>&1` in
8722       *GNU\ gold*) supports_anon_versioning=yes ;;
8723       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8724       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8725       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8726       *\ 2.11.*) ;; # other 2.11 versions
8727       *) supports_anon_versioning=yes ;;
8728     esac
8729
8730     # See if GNU ld supports shared libraries.
8731     case $host_os in
8732     aix[3-9]*)
8733       # On AIX/PPC, the GNU linker is very broken
8734       if test "$host_cpu" != ia64; then
8735         ld_shlibs=no
8736         cat <<_LT_EOF 1>&2
8737
8738 *** Warning: the GNU linker, at least up to release 2.19, is reported
8739 *** to be unable to reliably create shared libraries on AIX.
8740 *** Therefore, libtool is disabling shared libraries support.  If you
8741 *** really care for shared libraries, you may want to install binutils
8742 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8743 *** You will then need to restart the configuration process.
8744
8745 _LT_EOF
8746       fi
8747       ;;
8748
8749     amigaos*)
8750       case $host_cpu in
8751       powerpc)
8752             # see comment about AmigaOS4 .so support
8753             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8754             archive_expsym_cmds=''
8755         ;;
8756       m68k)
8757             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)'
8758             hardcode_libdir_flag_spec='-L$libdir'
8759             hardcode_minus_L=yes
8760         ;;
8761       esac
8762       ;;
8763
8764     beos*)
8765       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766         allow_undefined_flag=unsupported
8767         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8768         # support --undefined.  This deserves some investigation.  FIXME
8769         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774
8775     cygwin* | mingw* | pw32* | cegcc*)
8776       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8777       # as there is no search path for DLLs.
8778       hardcode_libdir_flag_spec='-L$libdir'
8779       export_dynamic_flag_spec='${wl}--export-all-symbols'
8780       allow_undefined_flag=unsupported
8781       always_export_symbols=no
8782       enable_shared_with_static_runtimes=yes
8783       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'
8784       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8785
8786       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8787         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8788         # If the export-symbols file already is a .def file (1st line
8789         # is EXPORTS), use it as is; otherwise, prepend...
8790         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8791           cp $export_symbols $output_objdir/$soname.def;
8792         else
8793           echo EXPORTS > $output_objdir/$soname.def;
8794           cat $export_symbols >> $output_objdir/$soname.def;
8795         fi~
8796         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8797       else
8798         ld_shlibs=no
8799       fi
8800       ;;
8801
8802     haiku*)
8803       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8804       link_all_deplibs=yes
8805       ;;
8806
8807     interix[3-9]*)
8808       hardcode_direct=no
8809       hardcode_shlibpath_var=no
8810       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811       export_dynamic_flag_spec='${wl}-E'
8812       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8813       # Instead, shared libraries are loaded at an image base (0x10000000 by
8814       # default) and relocated if they conflict, which is a slow very memory
8815       # consuming and fragmenting process.  To avoid this, we pick a random,
8816       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8817       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8818       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8819       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'
8820       ;;
8821
8822     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8823       tmp_diet=no
8824       if test "$host_os" = linux-dietlibc; then
8825         case $cc_basename in
8826           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8827         esac
8828       fi
8829       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8830          && test "$tmp_diet" = no
8831       then
8832         tmp_addflag=' $pic_flag'
8833         tmp_sharedflag='-shared'
8834         case $cc_basename,$host_cpu in
8835         pgcc*)                          # Portland Group C compiler
8836           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'
8837           tmp_addflag=' $pic_flag'
8838           ;;
8839         pgf77* | pgf90* | pgf95* | pgfortran*)
8840                                         # Portland Group f77 and f90 compilers
8841           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'
8842           tmp_addflag=' $pic_flag -Mnomain' ;;
8843         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8844           tmp_addflag=' -i_dynamic' ;;
8845         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8846           tmp_addflag=' -i_dynamic -nofor_main' ;;
8847         ifc* | ifort*)                  # Intel Fortran compiler
8848           tmp_addflag=' -nofor_main' ;;
8849         lf95*)                          # Lahey Fortran 8.1
8850           whole_archive_flag_spec=
8851           tmp_sharedflag='--shared' ;;
8852         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8853           tmp_sharedflag='-qmkshrobj'
8854           tmp_addflag= ;;
8855         nvcc*)  # Cuda Compiler Driver 2.2
8856           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'
8857           compiler_needs_object=yes
8858           ;;
8859         esac
8860         case `$CC -V 2>&1 | sed 5q` in
8861         *Sun\ C*)                       # Sun C 5.9
8862           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'
8863           compiler_needs_object=yes
8864           tmp_sharedflag='-G' ;;
8865         *Sun\ F*)                       # Sun Fortran 8.3
8866           tmp_sharedflag='-G' ;;
8867         esac
8868         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869
8870         if test "x$supports_anon_versioning" = xyes; then
8871           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8872             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8873             echo "local: *; };" >> $output_objdir/$libname.ver~
8874             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8875         fi
8876
8877         case $cc_basename in
8878         xlf* | bgf* | bgxlf* | mpixlf*)
8879           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8880           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8881           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8883           if test "x$supports_anon_versioning" = xyes; then
8884             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8885               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8886               echo "local: *; };" >> $output_objdir/$libname.ver~
8887               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8888           fi
8889           ;;
8890         esac
8891       else
8892         ld_shlibs=no
8893       fi
8894       ;;
8895
8896     netbsd* | netbsdelf*-gnu)
8897       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8898         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8899         wlarc=
8900       else
8901         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8902         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8903       fi
8904       ;;
8905
8906     solaris*)
8907       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8908         ld_shlibs=no
8909         cat <<_LT_EOF 1>&2
8910
8911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8912 *** create shared libraries on Solaris systems.  Therefore, libtool
8913 *** is disabling shared libraries support.  We urge you to upgrade GNU
8914 *** binutils to release 2.9.1 or newer.  Another option is to modify
8915 *** your PATH or compiler configuration so that the native linker is
8916 *** used, and then restart.
8917
8918 _LT_EOF
8919       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922       else
8923         ld_shlibs=no
8924       fi
8925       ;;
8926
8927     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8928       case `$LD -v 2>&1` in
8929         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8930         ld_shlibs=no
8931         cat <<_LT_EOF 1>&2
8932
8933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8934 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8935 *** is disabling shared libraries support.  We urge you to upgrade GNU
8936 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8937 *** your PATH or compiler configuration so that the native linker is
8938 *** used, and then restart.
8939
8940 _LT_EOF
8941         ;;
8942         *)
8943           # For security reasons, it is highly recommended that you always
8944           # use absolute paths for naming shared libraries, and exclude the
8945           # DT_RUNPATH tag from executables and libraries.  But doing so
8946           # requires that you compile everything twice, which is a pain.
8947           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8948             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8951           else
8952             ld_shlibs=no
8953           fi
8954         ;;
8955       esac
8956       ;;
8957
8958     sunos4*)
8959       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960       wlarc=
8961       hardcode_direct=yes
8962       hardcode_shlibpath_var=no
8963       ;;
8964
8965     *)
8966       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969       else
8970         ld_shlibs=no
8971       fi
8972       ;;
8973     esac
8974
8975     if test "$ld_shlibs" = no; then
8976       runpath_var=
8977       hardcode_libdir_flag_spec=
8978       export_dynamic_flag_spec=
8979       whole_archive_flag_spec=
8980     fi
8981   else
8982     # PORTME fill in a description of your system's linker (not GNU ld)
8983     case $host_os in
8984     aix3*)
8985       allow_undefined_flag=unsupported
8986       always_export_symbols=yes
8987       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'
8988       # Note: this linker hardcodes the directories in LIBPATH if there
8989       # are no directories specified by -L.
8990       hardcode_minus_L=yes
8991       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8992         # Neither direct hardcoding nor static linking is supported with a
8993         # broken collect2.
8994         hardcode_direct=unsupported
8995       fi
8996       ;;
8997
8998     aix[4-9]*)
8999       if test "$host_cpu" = ia64; then
9000         # On IA64, the linker does run time linking by default, so we don't
9001         # have to do anything special.
9002         aix_use_runtimelinking=no
9003         exp_sym_flag='-Bexport'
9004         no_entry_flag=""
9005       else
9006         # If we're using GNU nm, then we don't want the "-C" option.
9007         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9008         # Also, AIX nm treats weak defined symbols like other global
9009         # defined symbols, whereas GNU nm marks them as "W".
9010         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9011           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9012         else
9013           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9014         fi
9015         aix_use_runtimelinking=no
9016
9017         # Test if we are trying to use run time linking or normal
9018         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9019         # need to do runtime linking.
9020         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9021           for ld_flag in $LDFLAGS; do
9022           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9023             aix_use_runtimelinking=yes
9024             break
9025           fi
9026           done
9027           ;;
9028         esac
9029
9030         exp_sym_flag='-bexport'
9031         no_entry_flag='-bnoentry'
9032       fi
9033
9034       # When large executables or shared objects are built, AIX ld can
9035       # have problems creating the table of contents.  If linking a library
9036       # or program results in "error TOC overflow" add -mminimal-toc to
9037       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9038       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9039
9040       archive_cmds=''
9041       hardcode_direct=yes
9042       hardcode_direct_absolute=yes
9043       hardcode_libdir_separator=':'
9044       link_all_deplibs=yes
9045       file_list_spec='${wl}-f,'
9046
9047       if test "$GCC" = yes; then
9048         case $host_os in aix4.[012]|aix4.[012].*)
9049         # We only want to do this on AIX 4.2 and lower, the check
9050         # below for broken collect2 doesn't work under 4.3+
9051           collect2name=`${CC} -print-prog-name=collect2`
9052           if test -f "$collect2name" &&
9053            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9054           then
9055           # We have reworked collect2
9056           :
9057           else
9058           # We have old collect2
9059           hardcode_direct=unsupported
9060           # It fails to find uninstalled libraries when the uninstalled
9061           # path is not listed in the libpath.  Setting hardcode_minus_L
9062           # to unsupported forces relinking
9063           hardcode_minus_L=yes
9064           hardcode_libdir_flag_spec='-L$libdir'
9065           hardcode_libdir_separator=
9066           fi
9067           ;;
9068         esac
9069         shared_flag='-shared'
9070         if test "$aix_use_runtimelinking" = yes; then
9071           shared_flag="$shared_flag "'${wl}-G'
9072         fi
9073         link_all_deplibs=no
9074       else
9075         # not using gcc
9076         if test "$host_cpu" = ia64; then
9077         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9078         # chokes on -Wl,-G. The following line is correct:
9079           shared_flag='-G'
9080         else
9081           if test "$aix_use_runtimelinking" = yes; then
9082             shared_flag='${wl}-G'
9083           else
9084             shared_flag='${wl}-bM:SRE'
9085           fi
9086         fi
9087       fi
9088
9089       export_dynamic_flag_spec='${wl}-bexpall'
9090       # It seems that -bexpall does not export symbols beginning with
9091       # underscore (_), so it is better to generate a list of symbols to export.
9092       always_export_symbols=yes
9093       if test "$aix_use_runtimelinking" = yes; then
9094         # Warning - without using the other runtime loading flags (-brtl),
9095         # -berok will link without error, but may produce a broken library.
9096         allow_undefined_flag='-berok'
9097         # Determine the default libpath from the value encoded in an
9098         # empty executable.
9099         if test "${lt_cv_aix_libpath+set}" = set; then
9100   aix_libpath=$lt_cv_aix_libpath
9101 else
9102   if ${lt_cv_aix_libpath_+:} false; then :
9103   $as_echo_n "(cached) " >&6
9104 else
9105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h.  */
9107
9108 int
9109 main ()
9110 {
9111
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117
9118   lt_aix_libpath_sed='
9119       /Import File Strings/,/^$/ {
9120           /^0/ {
9121               s/^0  *\([^ ]*\) *$/\1/
9122               p
9123           }
9124       }'
9125   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9126   # Check for a 64-bit object if we didn't find anything.
9127   if test -z "$lt_cv_aix_libpath_"; then
9128     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129   fi
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext \
9132     conftest$ac_exeext conftest.$ac_ext
9133   if test -z "$lt_cv_aix_libpath_"; then
9134     lt_cv_aix_libpath_="/usr/lib:/lib"
9135   fi
9136
9137 fi
9138
9139   aix_libpath=$lt_cv_aix_libpath_
9140 fi
9141
9142         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9143         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9144       else
9145         if test "$host_cpu" = ia64; then
9146           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9147           allow_undefined_flag="-z nodefs"
9148           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"
9149         else
9150          # Determine the default libpath from the value encoded in an
9151          # empty executable.
9152          if test "${lt_cv_aix_libpath+set}" = set; then
9153   aix_libpath=$lt_cv_aix_libpath
9154 else
9155   if ${lt_cv_aix_libpath_+:} false; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h.  */
9160
9161 int
9162 main ()
9163 {
9164
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170
9171   lt_aix_libpath_sed='
9172       /Import File Strings/,/^$/ {
9173           /^0/ {
9174               s/^0  *\([^ ]*\) *$/\1/
9175               p
9176           }
9177       }'
9178   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179   # Check for a 64-bit object if we didn't find anything.
9180   if test -z "$lt_cv_aix_libpath_"; then
9181     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182   fi
9183 fi
9184 rm -f core conftest.err conftest.$ac_objext \
9185     conftest$ac_exeext conftest.$ac_ext
9186   if test -z "$lt_cv_aix_libpath_"; then
9187     lt_cv_aix_libpath_="/usr/lib:/lib"
9188   fi
9189
9190 fi
9191
9192   aix_libpath=$lt_cv_aix_libpath_
9193 fi
9194
9195          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196           # Warning - without using the other run time loading flags,
9197           # -berok will link without error, but may produce a broken library.
9198           no_undefined_flag=' ${wl}-bernotok'
9199           allow_undefined_flag=' ${wl}-berok'
9200           if test "$with_gnu_ld" = yes; then
9201             # We only use this code for GNU lds that support --whole-archive.
9202             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9203           else
9204             # Exported symbols can be pulled into shared objects from archives
9205             whole_archive_flag_spec='$convenience'
9206           fi
9207           archive_cmds_need_lc=yes
9208           # This is similar to how AIX traditionally builds its shared libraries.
9209           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9210         fi
9211       fi
9212       ;;
9213
9214     amigaos*)
9215       case $host_cpu in
9216       powerpc)
9217             # see comment about AmigaOS4 .so support
9218             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219             archive_expsym_cmds=''
9220         ;;
9221       m68k)
9222             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)'
9223             hardcode_libdir_flag_spec='-L$libdir'
9224             hardcode_minus_L=yes
9225         ;;
9226       esac
9227       ;;
9228
9229     bsdi[45]*)
9230       export_dynamic_flag_spec=-rdynamic
9231       ;;
9232
9233     cygwin* | mingw* | pw32* | cegcc*)
9234       # When not using gcc, we currently assume that we are using
9235       # Microsoft Visual C++.
9236       # hardcode_libdir_flag_spec is actually meaningless, as there is
9237       # no search path for DLLs.
9238       case $cc_basename in
9239       cl*)
9240         # Native MSVC
9241         hardcode_libdir_flag_spec=' '
9242         allow_undefined_flag=unsupported
9243         always_export_symbols=yes
9244         file_list_spec='@'
9245         # Tell ltmain to make .lib files, not .a files.
9246         libext=lib
9247         # Tell ltmain to make .dll files, not .so files.
9248         shrext_cmds=".dll"
9249         # FIXME: Setting linknames here is a bad hack.
9250         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9251         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9252             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9253           else
9254             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9255           fi~
9256           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9257           linknames='
9258         # The linker will not automatically build a static lib if we build a DLL.
9259         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9260         enable_shared_with_static_runtimes=yes
9261         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9262         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9263         # Don't use ranlib
9264         old_postinstall_cmds='chmod 644 $oldlib'
9265         postlink_cmds='lt_outputfile="@OUTPUT@"~
9266           lt_tool_outputfile="@TOOL_OUTPUT@"~
9267           case $lt_outputfile in
9268             *.exe|*.EXE) ;;
9269             *)
9270               lt_outputfile="$lt_outputfile.exe"
9271               lt_tool_outputfile="$lt_tool_outputfile.exe"
9272               ;;
9273           esac~
9274           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9275             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9276             $RM "$lt_outputfile.manifest";
9277           fi'
9278         ;;
9279       *)
9280         # Assume MSVC wrapper
9281         hardcode_libdir_flag_spec=' '
9282         allow_undefined_flag=unsupported
9283         # Tell ltmain to make .lib files, not .a files.
9284         libext=lib
9285         # Tell ltmain to make .dll files, not .so files.
9286         shrext_cmds=".dll"
9287         # FIXME: Setting linknames here is a bad hack.
9288         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9289         # The linker will automatically build a .lib file if we build a DLL.
9290         old_archive_from_new_cmds='true'
9291         # FIXME: Should let the user specify the lib program.
9292         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9293         enable_shared_with_static_runtimes=yes
9294         ;;
9295       esac
9296       ;;
9297
9298     darwin* | rhapsody*)
9299
9300
9301   archive_cmds_need_lc=no
9302   hardcode_direct=no
9303   hardcode_automatic=yes
9304   hardcode_shlibpath_var=unsupported
9305   if test "$lt_cv_ld_force_load" = "yes"; then
9306     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\"`'
9307
9308   else
9309     whole_archive_flag_spec=''
9310   fi
9311   link_all_deplibs=yes
9312   allow_undefined_flag="$_lt_dar_allow_undefined"
9313   case $cc_basename in
9314      ifort*) _lt_dar_can_shared=yes ;;
9315      *) _lt_dar_can_shared=$GCC ;;
9316   esac
9317   if test "$_lt_dar_can_shared" = "yes"; then
9318     output_verbose_link_cmd=func_echo_all
9319     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9320     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9321     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}"
9322     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}"
9323
9324   else
9325   ld_shlibs=no
9326   fi
9327
9328       ;;
9329
9330     dgux*)
9331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332       hardcode_libdir_flag_spec='-L$libdir'
9333       hardcode_shlibpath_var=no
9334       ;;
9335
9336     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9337     # support.  Future versions do this automatically, but an explicit c++rt0.o
9338     # does not break anything, and helps significantly (at the cost of a little
9339     # extra space).
9340     freebsd2.2*)
9341       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9342       hardcode_libdir_flag_spec='-R$libdir'
9343       hardcode_direct=yes
9344       hardcode_shlibpath_var=no
9345       ;;
9346
9347     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9348     freebsd2.*)
9349       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350       hardcode_direct=yes
9351       hardcode_minus_L=yes
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9356     freebsd* | dragonfly*)
9357       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9358       hardcode_libdir_flag_spec='-R$libdir'
9359       hardcode_direct=yes
9360       hardcode_shlibpath_var=no
9361       ;;
9362
9363     hpux9*)
9364       if test "$GCC" = yes; then
9365         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9366       else
9367         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9368       fi
9369       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370       hardcode_libdir_separator=:
9371       hardcode_direct=yes
9372
9373       # hardcode_minus_L: Not really in the search PATH,
9374       # but as the default location of the library.
9375       hardcode_minus_L=yes
9376       export_dynamic_flag_spec='${wl}-E'
9377       ;;
9378
9379     hpux10*)
9380       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9381         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9382       else
9383         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9384       fi
9385       if test "$with_gnu_ld" = no; then
9386         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387         hardcode_libdir_separator=:
9388         hardcode_direct=yes
9389         hardcode_direct_absolute=yes
9390         export_dynamic_flag_spec='${wl}-E'
9391         # hardcode_minus_L: Not really in the search PATH,
9392         # but as the default location of the library.
9393         hardcode_minus_L=yes
9394       fi
9395       ;;
9396
9397     hpux11*)
9398       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9399         case $host_cpu in
9400         hppa*64*)
9401           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402           ;;
9403         ia64*)
9404           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9405           ;;
9406         *)
9407           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408           ;;
9409         esac
9410       else
9411         case $host_cpu in
9412         hppa*64*)
9413           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414           ;;
9415         ia64*)
9416           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9417           ;;
9418         *)
9419
9420           # Older versions of the 11.00 compiler do not understand -b yet
9421           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9422           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9423 $as_echo_n "checking if $CC understands -b... " >&6; }
9424 if ${lt_cv_prog_compiler__b+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   lt_cv_prog_compiler__b=no
9428    save_LDFLAGS="$LDFLAGS"
9429    LDFLAGS="$LDFLAGS -b"
9430    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9431    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9432      # The linker can only warn and ignore the option if not recognized
9433      # So say no if there are warnings
9434      if test -s conftest.err; then
9435        # Append any errors to the config.log.
9436        cat conftest.err 1>&5
9437        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9438        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439        if diff conftest.exp conftest.er2 >/dev/null; then
9440          lt_cv_prog_compiler__b=yes
9441        fi
9442      else
9443        lt_cv_prog_compiler__b=yes
9444      fi
9445    fi
9446    $RM -r conftest*
9447    LDFLAGS="$save_LDFLAGS"
9448
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9451 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9452
9453 if test x"$lt_cv_prog_compiler__b" = xyes; then
9454     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 else
9456     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457 fi
9458
9459           ;;
9460         esac
9461       fi
9462       if test "$with_gnu_ld" = no; then
9463         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9464         hardcode_libdir_separator=:
9465
9466         case $host_cpu in
9467         hppa*64*|ia64*)
9468           hardcode_direct=no
9469           hardcode_shlibpath_var=no
9470           ;;
9471         *)
9472           hardcode_direct=yes
9473           hardcode_direct_absolute=yes
9474           export_dynamic_flag_spec='${wl}-E'
9475
9476           # hardcode_minus_L: Not really in the search PATH,
9477           # but as the default location of the library.
9478           hardcode_minus_L=yes
9479           ;;
9480         esac
9481       fi
9482       ;;
9483
9484     irix5* | irix6* | nonstopux*)
9485       if test "$GCC" = yes; then
9486         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'
9487         # Try to use the -exported_symbol ld option, if it does not
9488         # work, assume that -exports_file does not work either and
9489         # implicitly export all symbols.
9490         # This should be the same for all languages, so no per-tag cache variable.
9491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9492 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9493 if ${lt_cv_irix_exported_symbol+:} false; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   save_LDFLAGS="$LDFLAGS"
9497            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9498            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500 int foo (void) { return 0; }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503   lt_cv_irix_exported_symbol=yes
9504 else
9505   lt_cv_irix_exported_symbol=no
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext \
9508     conftest$ac_exeext conftest.$ac_ext
9509            LDFLAGS="$save_LDFLAGS"
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9512 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9513         if test "$lt_cv_irix_exported_symbol" = yes; then
9514           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'
9515         fi
9516       else
9517         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'
9518         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'
9519       fi
9520       archive_cmds_need_lc='no'
9521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522       hardcode_libdir_separator=:
9523       inherit_rpath=yes
9524       link_all_deplibs=yes
9525       ;;
9526
9527     netbsd* | netbsdelf*-gnu)
9528       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9529         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9530       else
9531         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9532       fi
9533       hardcode_libdir_flag_spec='-R$libdir'
9534       hardcode_direct=yes
9535       hardcode_shlibpath_var=no
9536       ;;
9537
9538     newsos6)
9539       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540       hardcode_direct=yes
9541       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542       hardcode_libdir_separator=:
9543       hardcode_shlibpath_var=no
9544       ;;
9545
9546     *nto* | *qnx*)
9547       ;;
9548
9549     openbsd*)
9550       if test -f /usr/libexec/ld.so; then
9551         hardcode_direct=yes
9552         hardcode_shlibpath_var=no
9553         hardcode_direct_absolute=yes
9554         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558           export_dynamic_flag_spec='${wl}-E'
9559         else
9560           case $host_os in
9561            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563              hardcode_libdir_flag_spec='-R$libdir'
9564              ;;
9565            *)
9566              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568              ;;
9569           esac
9570         fi
9571       else
9572         ld_shlibs=no
9573       fi
9574       ;;
9575
9576     os2*)
9577       hardcode_libdir_flag_spec='-L$libdir'
9578       hardcode_minus_L=yes
9579       allow_undefined_flag=unsupported
9580       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9581       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9582       ;;
9583
9584     osf3*)
9585       if test "$GCC" = yes; then
9586         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9587         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'
9588       else
9589         allow_undefined_flag=' -expect_unresolved \*'
9590         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'
9591       fi
9592       archive_cmds_need_lc='no'
9593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594       hardcode_libdir_separator=:
9595       ;;
9596
9597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9598       if test "$GCC" = yes; then
9599         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9600         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'
9601         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       else
9603         allow_undefined_flag=' -expect_unresolved \*'
9604         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'
9605         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~
9606         $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'
9607
9608         # Both c and cxx compiler support -rpath directly
9609         hardcode_libdir_flag_spec='-rpath $libdir'
9610       fi
9611       archive_cmds_need_lc='no'
9612       hardcode_libdir_separator=:
9613       ;;
9614
9615     solaris*)
9616       no_undefined_flag=' -z defs'
9617       if test "$GCC" = yes; then
9618         wlarc='${wl}'
9619         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9620         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9621           $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'
9622       else
9623         case `$CC -V 2>&1` in
9624         *"Compilers 5.0"*)
9625           wlarc=''
9626           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9629           ;;
9630         *)
9631           wlarc='${wl}'
9632           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9634           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9635           ;;
9636         esac
9637       fi
9638       hardcode_libdir_flag_spec='-R$libdir'
9639       hardcode_shlibpath_var=no
9640       case $host_os in
9641       solaris2.[0-5] | solaris2.[0-5].*) ;;
9642       *)
9643         # The compiler driver will combine and reorder linker options,
9644         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9645         # but is careful enough not to reorder.
9646         # Supported since Solaris 2.6 (maybe 2.5.1?)
9647         if test "$GCC" = yes; then
9648           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9649         else
9650           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9651         fi
9652         ;;
9653       esac
9654       link_all_deplibs=yes
9655       ;;
9656
9657     sunos4*)
9658       if test "x$host_vendor" = xsequent; then
9659         # Use $CC to link under sequent, because it throws in some extra .o
9660         # files that make .init and .fini sections work.
9661         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662       else
9663         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9664       fi
9665       hardcode_libdir_flag_spec='-L$libdir'
9666       hardcode_direct=yes
9667       hardcode_minus_L=yes
9668       hardcode_shlibpath_var=no
9669       ;;
9670
9671     sysv4)
9672       case $host_vendor in
9673         sni)
9674           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675           hardcode_direct=yes # is this really true???
9676         ;;
9677         siemens)
9678           ## LD is ld it makes a PLAMLIB
9679           ## CC just makes a GrossModule.
9680           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681           reload_cmds='$CC -r -o $output$reload_objs'
9682           hardcode_direct=no
9683         ;;
9684         motorola)
9685           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9687         ;;
9688       esac
9689       runpath_var='LD_RUN_PATH'
9690       hardcode_shlibpath_var=no
9691       ;;
9692
9693     sysv4.3*)
9694       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695       hardcode_shlibpath_var=no
9696       export_dynamic_flag_spec='-Bexport'
9697       ;;
9698
9699     sysv4*MP*)
9700       if test -d /usr/nec; then
9701         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702         hardcode_shlibpath_var=no
9703         runpath_var=LD_RUN_PATH
9704         hardcode_runpath_var=yes
9705         ld_shlibs=yes
9706       fi
9707       ;;
9708
9709     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9710       no_undefined_flag='${wl}-z,text'
9711       archive_cmds_need_lc=no
9712       hardcode_shlibpath_var=no
9713       runpath_var='LD_RUN_PATH'
9714
9715       if test "$GCC" = yes; then
9716         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718       else
9719         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721       fi
9722       ;;
9723
9724     sysv5* | sco3.2v5* | sco5v6*)
9725       # Note: We can NOT use -z defs as we might desire, because we do not
9726       # link with -lc, and that would cause any symbols used from libc to
9727       # always be unresolved, which means just about no library would
9728       # ever link correctly.  If we're not using GNU ld we use -z text
9729       # though, which does catch some bad symbols but isn't as heavy-handed
9730       # as -z defs.
9731       no_undefined_flag='${wl}-z,text'
9732       allow_undefined_flag='${wl}-z,nodefs'
9733       archive_cmds_need_lc=no
9734       hardcode_shlibpath_var=no
9735       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9736       hardcode_libdir_separator=':'
9737       link_all_deplibs=yes
9738       export_dynamic_flag_spec='${wl}-Bexport'
9739       runpath_var='LD_RUN_PATH'
9740
9741       if test "$GCC" = yes; then
9742         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744       else
9745         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747       fi
9748       ;;
9749
9750     uts4*)
9751       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752       hardcode_libdir_flag_spec='-L$libdir'
9753       hardcode_shlibpath_var=no
9754       ;;
9755
9756     *)
9757       ld_shlibs=no
9758       ;;
9759     esac
9760
9761     if test x$host_vendor = xsni; then
9762       case $host in
9763       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9764         export_dynamic_flag_spec='${wl}-Blargedynsym'
9765         ;;
9766       esac
9767     fi
9768   fi
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9771 $as_echo "$ld_shlibs" >&6; }
9772 test "$ld_shlibs" = no && can_build_shared=no
9773
9774 with_gnu_ld=$with_gnu_ld
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790 #
9791 # Do we need to explicitly link libc?
9792 #
9793 case "x$archive_cmds_need_lc" in
9794 x|xyes)
9795   # Assume -lc should be added
9796   archive_cmds_need_lc=yes
9797
9798   if test "$enable_shared" = yes && test "$GCC" = yes; then
9799     case $archive_cmds in
9800     *'~'*)
9801       # FIXME: we may have to deal with multi-command sequences.
9802       ;;
9803     '$CC '*)
9804       # Test whether the compiler implicitly links with -lc since on some
9805       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9806       # to ld, don't add -lc before -lgcc.
9807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9809 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   $RM conftest*
9813         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9816   (eval $ac_compile) 2>&5
9817   ac_status=$?
9818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819   test $ac_status = 0; } 2>conftest.err; then
9820           soname=conftest
9821           lib=conftest
9822           libobjs=conftest.$ac_objext
9823           deplibs=
9824           wl=$lt_prog_compiler_wl
9825           pic_flag=$lt_prog_compiler_pic
9826           compiler_flags=-v
9827           linker_flags=-v
9828           verstring=
9829           output_objdir=.
9830           libname=conftest
9831           lt_save_allow_undefined_flag=$allow_undefined_flag
9832           allow_undefined_flag=
9833           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9834   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835   ac_status=$?
9836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9837   test $ac_status = 0; }
9838           then
9839             lt_cv_archive_cmds_need_lc=no
9840           else
9841             lt_cv_archive_cmds_need_lc=yes
9842           fi
9843           allow_undefined_flag=$lt_save_allow_undefined_flag
9844         else
9845           cat conftest.err 1>&5
9846         fi
9847         $RM conftest*
9848
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9851 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9852       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9853       ;;
9854     esac
9855   fi
9856   ;;
9857 esac
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10012
10013 if test "$GCC" = yes; then
10014   case $host_os in
10015     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10016     *) lt_awk_arg="/^libraries:/" ;;
10017   esac
10018   case $host_os in
10019     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10020     *) lt_sed_strip_eq="s,=/,/,g" ;;
10021   esac
10022   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10023   case $lt_search_path_spec in
10024   *\;*)
10025     # if the path contains ";" then we assume it to be the separator
10026     # otherwise default to the standard path separator (i.e. ":") - it is
10027     # assumed that no part of a normal pathname contains ";" but that should
10028     # okay in the real world where ";" in dirpaths is itself problematic.
10029     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10030     ;;
10031   *)
10032     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10033     ;;
10034   esac
10035   # Ok, now we have the path, separated by spaces, we can step through it
10036   # and add multilib dir if necessary.
10037   lt_tmp_lt_search_path_spec=
10038   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10039   for lt_sys_path in $lt_search_path_spec; do
10040     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10041       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10042     else
10043       test -d "$lt_sys_path" && \
10044         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10045     fi
10046   done
10047   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10048 BEGIN {RS=" "; FS="/|\n";} {
10049   lt_foo="";
10050   lt_count=0;
10051   for (lt_i = NF; lt_i > 0; lt_i--) {
10052     if ($lt_i != "" && $lt_i != ".") {
10053       if ($lt_i == "..") {
10054         lt_count++;
10055       } else {
10056         if (lt_count == 0) {
10057           lt_foo="/" $lt_i lt_foo;
10058         } else {
10059           lt_count--;
10060         }
10061       }
10062     }
10063   }
10064   if (lt_foo != "") { lt_freq[lt_foo]++; }
10065   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10066 }'`
10067   # AWK program above erroneously prepends '/' to C:/dos/paths
10068   # for these hosts.
10069   case $host_os in
10070     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10071       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10072   esac
10073   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10074 else
10075   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10076 fi
10077 library_names_spec=
10078 libname_spec='lib$name'
10079 soname_spec=
10080 shrext_cmds=".so"
10081 postinstall_cmds=
10082 postuninstall_cmds=
10083 finish_cmds=
10084 finish_eval=
10085 shlibpath_var=
10086 shlibpath_overrides_runpath=unknown
10087 version_type=none
10088 dynamic_linker="$host_os ld.so"
10089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10090 need_lib_prefix=unknown
10091 hardcode_into_libs=no
10092
10093 # when you set need_version to no, make sure it does not cause -set_version
10094 # flags to be left without arguments
10095 need_version=unknown
10096
10097 case $host_os in
10098 aix3*)
10099   version_type=linux # correct to gnu/linux during the next big refactor
10100   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10101   shlibpath_var=LIBPATH
10102
10103   # AIX 3 has no versioning support, so we append a major version to the name.
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   ;;
10106
10107 aix[4-9]*)
10108   version_type=linux # correct to gnu/linux during the next big refactor
10109   need_lib_prefix=no
10110   need_version=no
10111   hardcode_into_libs=yes
10112   if test "$host_cpu" = ia64; then
10113     # AIX 5 supports IA64
10114     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10115     shlibpath_var=LD_LIBRARY_PATH
10116   else
10117     # With GCC up to 2.95.x, collect2 would create an import file
10118     # for dependence libraries.  The import file would start with
10119     # the line `#! .'.  This would cause the generated library to
10120     # depend on `.', always an invalid library.  This was fixed in
10121     # development snapshots of GCC prior to 3.0.
10122     case $host_os in
10123       aix4 | aix4.[01] | aix4.[01].*)
10124       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10125            echo ' yes '
10126            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10127         :
10128       else
10129         can_build_shared=no
10130       fi
10131       ;;
10132     esac
10133     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10134     # soname into executable. Probably we can add versioning support to
10135     # collect2, so additional links can be useful in future.
10136     if test "$aix_use_runtimelinking" = yes; then
10137       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10138       # instead of lib<name>.a to let people know that these are not
10139       # typical AIX shared libraries.
10140       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141     else
10142       # We preserve .a as extension for shared libraries through AIX4.2
10143       # and later when we are not doing run time linking.
10144       library_names_spec='${libname}${release}.a $libname.a'
10145       soname_spec='${libname}${release}${shared_ext}$major'
10146     fi
10147     shlibpath_var=LIBPATH
10148   fi
10149   ;;
10150
10151 amigaos*)
10152   case $host_cpu in
10153   powerpc)
10154     # Since July 2007 AmigaOS4 officially supports .so libraries.
10155     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157     ;;
10158   m68k)
10159     library_names_spec='$libname.ixlibrary $libname.a'
10160     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10161     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10162     ;;
10163   esac
10164   ;;
10165
10166 beos*)
10167   library_names_spec='${libname}${shared_ext}'
10168   dynamic_linker="$host_os ld.so"
10169   shlibpath_var=LIBRARY_PATH
10170   ;;
10171
10172 bsdi[45]*)
10173   version_type=linux # correct to gnu/linux during the next big refactor
10174   need_version=no
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176   soname_spec='${libname}${release}${shared_ext}$major'
10177   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10178   shlibpath_var=LD_LIBRARY_PATH
10179   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10180   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10181   # the default ld.so.conf also contains /usr/contrib/lib and
10182   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10183   # libtool to hard-code these into programs
10184   ;;
10185
10186 cygwin* | mingw* | pw32* | cegcc*)
10187   version_type=windows
10188   shrext_cmds=".dll"
10189   need_version=no
10190   need_lib_prefix=no
10191
10192   case $GCC,$cc_basename in
10193   yes,*)
10194     # gcc
10195     library_names_spec='$libname.dll.a'
10196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197     postinstall_cmds='base_file=`basename \${file}`~
10198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199       dldir=$destdir/`dirname \$dlpath`~
10200       test -d \$dldir || mkdir -p \$dldir~
10201       $install_prog $dir/$dlname \$dldir/$dlname~
10202       chmod a+x \$dldir/$dlname~
10203       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10204         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10205       fi'
10206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207       dlpath=$dir/\$dldll~
10208        $RM \$dlpath'
10209     shlibpath_overrides_runpath=yes
10210
10211     case $host_os in
10212     cygwin*)
10213       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10214       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215
10216       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10217       ;;
10218     mingw* | cegcc*)
10219       # MinGW DLLs use traditional 'lib' prefix
10220       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221       ;;
10222     pw32*)
10223       # pw32 DLLs use 'pw' prefix rather than 'lib'
10224       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225       ;;
10226     esac
10227     dynamic_linker='Win32 ld.exe'
10228     ;;
10229
10230   *,cl*)
10231     # Native MSVC
10232     libname_spec='$name'
10233     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234     library_names_spec='${libname}.dll.lib'
10235
10236     case $build_os in
10237     mingw*)
10238       sys_lib_search_path_spec=
10239       lt_save_ifs=$IFS
10240       IFS=';'
10241       for lt_path in $LIB
10242       do
10243         IFS=$lt_save_ifs
10244         # Let DOS variable expansion print the short 8.3 style file name.
10245         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10246         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10247       done
10248       IFS=$lt_save_ifs
10249       # Convert to MSYS style.
10250       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10251       ;;
10252     cygwin*)
10253       # Convert to unix form, then to dos form, then back to unix form
10254       # but this time dos style (no spaces!) so that the unix form looks
10255       # like /cygdrive/c/PROGRA~1:/cygdr...
10256       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10257       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10258       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10259       ;;
10260     *)
10261       sys_lib_search_path_spec="$LIB"
10262       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10263         # It is most probably a Windows format PATH.
10264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10265       else
10266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10267       fi
10268       # FIXME: find the short name or the path components, as spaces are
10269       # common. (e.g. "Program Files" -> "PROGRA~1")
10270       ;;
10271     esac
10272
10273     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10274     postinstall_cmds='base_file=`basename \${file}`~
10275       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10276       dldir=$destdir/`dirname \$dlpath`~
10277       test -d \$dldir || mkdir -p \$dldir~
10278       $install_prog $dir/$dlname \$dldir/$dlname'
10279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10280       dlpath=$dir/\$dldll~
10281        $RM \$dlpath'
10282     shlibpath_overrides_runpath=yes
10283     dynamic_linker='Win32 link.exe'
10284     ;;
10285
10286   *)
10287     # Assume MSVC wrapper
10288     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10289     dynamic_linker='Win32 ld.exe'
10290     ;;
10291   esac
10292   # FIXME: first we should search . and the directory the executable is in
10293   shlibpath_var=PATH
10294   ;;
10295
10296 darwin* | rhapsody*)
10297   dynamic_linker="$host_os dyld"
10298   version_type=darwin
10299   need_lib_prefix=no
10300   need_version=no
10301   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10302   soname_spec='${libname}${release}${major}$shared_ext'
10303   shlibpath_overrides_runpath=yes
10304   shlibpath_var=DYLD_LIBRARY_PATH
10305   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10306
10307   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10308   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10309   ;;
10310
10311 dgux*)
10312   version_type=linux # correct to gnu/linux during the next big refactor
10313   need_lib_prefix=no
10314   need_version=no
10315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10316   soname_spec='${libname}${release}${shared_ext}$major'
10317   shlibpath_var=LD_LIBRARY_PATH
10318   ;;
10319
10320 freebsd* | dragonfly*)
10321   # DragonFly does not have aout.  When/if they implement a new
10322   # versioning mechanism, adjust this.
10323   if test -x /usr/bin/objformat; then
10324     objformat=`/usr/bin/objformat`
10325   else
10326     case $host_os in
10327     freebsd[23].*) objformat=aout ;;
10328     *) objformat=elf ;;
10329     esac
10330   fi
10331   version_type=freebsd-$objformat
10332   case $version_type in
10333     freebsd-elf*)
10334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10335       need_version=no
10336       need_lib_prefix=no
10337       ;;
10338     freebsd-*)
10339       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10340       need_version=yes
10341       ;;
10342   esac
10343   shlibpath_var=LD_LIBRARY_PATH
10344   case $host_os in
10345   freebsd2.*)
10346     shlibpath_overrides_runpath=yes
10347     ;;
10348   freebsd3.[01]* | freebsdelf3.[01]*)
10349     shlibpath_overrides_runpath=yes
10350     hardcode_into_libs=yes
10351     ;;
10352   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10353   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10354     shlibpath_overrides_runpath=no
10355     hardcode_into_libs=yes
10356     ;;
10357   *) # from 4.6 on, and DragonFly
10358     shlibpath_overrides_runpath=yes
10359     hardcode_into_libs=yes
10360     ;;
10361   esac
10362   ;;
10363
10364 gnu*)
10365   version_type=linux # correct to gnu/linux during the next big refactor
10366   need_lib_prefix=no
10367   need_version=no
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   shlibpath_overrides_runpath=no
10372   hardcode_into_libs=yes
10373   ;;
10374
10375 haiku*)
10376   version_type=linux # correct to gnu/linux during the next big refactor
10377   need_lib_prefix=no
10378   need_version=no
10379   dynamic_linker="$host_os runtime_loader"
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LIBRARY_PATH
10383   shlibpath_overrides_runpath=yes
10384   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10385   hardcode_into_libs=yes
10386   ;;
10387
10388 hpux9* | hpux10* | hpux11*)
10389   # Give a soname corresponding to the major version so that dld.sl refuses to
10390   # link against other versions.
10391   version_type=sunos
10392   need_lib_prefix=no
10393   need_version=no
10394   case $host_cpu in
10395   ia64*)
10396     shrext_cmds='.so'
10397     hardcode_into_libs=yes
10398     dynamic_linker="$host_os dld.so"
10399     shlibpath_var=LD_LIBRARY_PATH
10400     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402     soname_spec='${libname}${release}${shared_ext}$major'
10403     if test "X$HPUX_IA64_MODE" = X32; then
10404       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10405     else
10406       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10407     fi
10408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10409     ;;
10410   hppa*64*)
10411     shrext_cmds='.sl'
10412     hardcode_into_libs=yes
10413     dynamic_linker="$host_os dld.sl"
10414     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10415     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417     soname_spec='${libname}${release}${shared_ext}$major'
10418     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10419     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10420     ;;
10421   *)
10422     shrext_cmds='.sl'
10423     dynamic_linker="$host_os dld.sl"
10424     shlibpath_var=SHLIB_PATH
10425     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427     soname_spec='${libname}${release}${shared_ext}$major'
10428     ;;
10429   esac
10430   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10431   postinstall_cmds='chmod 555 $lib'
10432   # or fails outright, so override atomically:
10433   install_override_mode=555
10434   ;;
10435
10436 interix[3-9]*)
10437   version_type=linux # correct to gnu/linux during the next big refactor
10438   need_lib_prefix=no
10439   need_version=no
10440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10441   soname_spec='${libname}${release}${shared_ext}$major'
10442   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10443   shlibpath_var=LD_LIBRARY_PATH
10444   shlibpath_overrides_runpath=no
10445   hardcode_into_libs=yes
10446   ;;
10447
10448 irix5* | irix6* | nonstopux*)
10449   case $host_os in
10450     nonstopux*) version_type=nonstopux ;;
10451     *)
10452         if test "$lt_cv_prog_gnu_ld" = yes; then
10453                 version_type=linux # correct to gnu/linux during the next big refactor
10454         else
10455                 version_type=irix
10456         fi ;;
10457   esac
10458   need_lib_prefix=no
10459   need_version=no
10460   soname_spec='${libname}${release}${shared_ext}$major'
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10462   case $host_os in
10463   irix5* | nonstopux*)
10464     libsuff= shlibsuff=
10465     ;;
10466   *)
10467     case $LD in # libtool.m4 will add one of these switches to LD
10468     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10469       libsuff= shlibsuff= libmagic=32-bit;;
10470     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10471       libsuff=32 shlibsuff=N32 libmagic=N32;;
10472     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10473       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10474     *) libsuff= shlibsuff= libmagic=never-match;;
10475     esac
10476     ;;
10477   esac
10478   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10479   shlibpath_overrides_runpath=no
10480   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10481   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10482   hardcode_into_libs=yes
10483   ;;
10484
10485 # No shared lib support for Linux oldld, aout, or coff.
10486 linux*oldld* | linux*aout* | linux*coff*)
10487   dynamic_linker=no
10488   ;;
10489
10490 # This must be glibc/ELF.
10491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10492   version_type=linux # correct to gnu/linux during the next big refactor
10493   need_lib_prefix=no
10494   need_version=no
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496   soname_spec='${libname}${release}${shared_ext}$major'
10497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10498   shlibpath_var=LD_LIBRARY_PATH
10499   shlibpath_overrides_runpath=no
10500
10501   # Some binutils ld are patched to set DT_RUNPATH
10502   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10503   $as_echo_n "(cached) " >&6
10504 else
10505   lt_cv_shlibpath_overrides_runpath=no
10506     save_LDFLAGS=$LDFLAGS
10507     save_libdir=$libdir
10508     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10509          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10523   lt_cv_shlibpath_overrides_runpath=yes
10524 fi
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527     conftest$ac_exeext conftest.$ac_ext
10528     LDFLAGS=$save_LDFLAGS
10529     libdir=$save_libdir
10530
10531 fi
10532
10533   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10534
10535   # This implies no fast_install, which is unacceptable.
10536   # Some rework will be needed to allow for fast_install
10537   # before this can be enabled.
10538   hardcode_into_libs=yes
10539
10540   # Append ld.so.conf contents to the search path
10541   if test -f /etc/ld.so.conf; then
10542     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' ' '`
10543     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10544   fi
10545
10546   # We used to test for /lib/ld.so.1 and disable shared libraries on
10547   # powerpc, because MkLinux only supported shared libraries with the
10548   # GNU dynamic linker.  Since this was broken with cross compilers,
10549   # most powerpc-linux boxes support dynamic linking these days and
10550   # people can always --disable-shared, the test was removed, and we
10551   # assume the GNU/Linux dynamic linker is in use.
10552   dynamic_linker='GNU/Linux ld.so'
10553   ;;
10554
10555 netbsdelf*-gnu)
10556   version_type=linux
10557   need_lib_prefix=no
10558   need_version=no
10559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560   soname_spec='${libname}${release}${shared_ext}$major'
10561   shlibpath_var=LD_LIBRARY_PATH
10562   shlibpath_overrides_runpath=no
10563   hardcode_into_libs=yes
10564   dynamic_linker='NetBSD ld.elf_so'
10565   ;;
10566
10567 netbsd*)
10568   version_type=sunos
10569   need_lib_prefix=no
10570   need_version=no
10571   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574     dynamic_linker='NetBSD (a.out) ld.so'
10575   else
10576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577     soname_spec='${libname}${release}${shared_ext}$major'
10578     dynamic_linker='NetBSD ld.elf_so'
10579   fi
10580   shlibpath_var=LD_LIBRARY_PATH
10581   shlibpath_overrides_runpath=yes
10582   hardcode_into_libs=yes
10583   ;;
10584
10585 newsos6)
10586   version_type=linux # correct to gnu/linux during the next big refactor
10587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588   shlibpath_var=LD_LIBRARY_PATH
10589   shlibpath_overrides_runpath=yes
10590   ;;
10591
10592 *nto* | *qnx*)
10593   version_type=qnx
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   shlibpath_overrides_runpath=no
10600   hardcode_into_libs=yes
10601   dynamic_linker='ldqnx.so'
10602   ;;
10603
10604 openbsd*)
10605   version_type=sunos
10606   sys_lib_dlsearch_path_spec="/usr/lib"
10607   need_lib_prefix=no
10608   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609   case $host_os in
10610     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10611     *)                          need_version=no  ;;
10612   esac
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615   shlibpath_var=LD_LIBRARY_PATH
10616   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617     case $host_os in
10618       openbsd2.[89] | openbsd2.[89].*)
10619         shlibpath_overrides_runpath=no
10620         ;;
10621       *)
10622         shlibpath_overrides_runpath=yes
10623         ;;
10624       esac
10625   else
10626     shlibpath_overrides_runpath=yes
10627   fi
10628   ;;
10629
10630 os2*)
10631   libname_spec='$name'
10632   shrext_cmds=".dll"
10633   need_lib_prefix=no
10634   library_names_spec='$libname${shared_ext} $libname.a'
10635   dynamic_linker='OS/2 ld.exe'
10636   shlibpath_var=LIBPATH
10637   ;;
10638
10639 osf3* | osf4* | osf5*)
10640   version_type=osf
10641   need_lib_prefix=no
10642   need_version=no
10643   soname_spec='${libname}${release}${shared_ext}$major'
10644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645   shlibpath_var=LD_LIBRARY_PATH
10646   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10647   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10648   ;;
10649
10650 rdos*)
10651   dynamic_linker=no
10652   ;;
10653
10654 solaris*)
10655   version_type=linux # correct to gnu/linux during the next big refactor
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   shlibpath_overrides_runpath=yes
10662   hardcode_into_libs=yes
10663   # ldd complains unless libraries are executable
10664   postinstall_cmds='chmod +x $lib'
10665   ;;
10666
10667 sunos4*)
10668   version_type=sunos
10669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=yes
10673   if test "$with_gnu_ld" = yes; then
10674     need_lib_prefix=no
10675   fi
10676   need_version=yes
10677   ;;
10678
10679 sysv4 | sysv4.3*)
10680   version_type=linux # correct to gnu/linux during the next big refactor
10681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682   soname_spec='${libname}${release}${shared_ext}$major'
10683   shlibpath_var=LD_LIBRARY_PATH
10684   case $host_vendor in
10685     sni)
10686       shlibpath_overrides_runpath=no
10687       need_lib_prefix=no
10688       runpath_var=LD_RUN_PATH
10689       ;;
10690     siemens)
10691       need_lib_prefix=no
10692       ;;
10693     motorola)
10694       need_lib_prefix=no
10695       need_version=no
10696       shlibpath_overrides_runpath=no
10697       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10698       ;;
10699   esac
10700   ;;
10701
10702 sysv4*MP*)
10703   if test -d /usr/nec ;then
10704     version_type=linux # correct to gnu/linux during the next big refactor
10705     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10706     soname_spec='$libname${shared_ext}.$major'
10707     shlibpath_var=LD_LIBRARY_PATH
10708   fi
10709   ;;
10710
10711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10712   version_type=freebsd-elf
10713   need_lib_prefix=no
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   shlibpath_overrides_runpath=yes
10719   hardcode_into_libs=yes
10720   if test "$with_gnu_ld" = yes; then
10721     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10722   else
10723     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724     case $host_os in
10725       sco3.2v5*)
10726         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727         ;;
10728     esac
10729   fi
10730   sys_lib_dlsearch_path_spec='/usr/lib'
10731   ;;
10732
10733 tpf*)
10734   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10735   version_type=linux # correct to gnu/linux during the next big refactor
10736   need_lib_prefix=no
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   shlibpath_var=LD_LIBRARY_PATH
10740   shlibpath_overrides_runpath=no
10741   hardcode_into_libs=yes
10742   ;;
10743
10744 uts4*)
10745   version_type=linux # correct to gnu/linux during the next big refactor
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   shlibpath_var=LD_LIBRARY_PATH
10749   ;;
10750
10751 *)
10752   dynamic_linker=no
10753   ;;
10754 esac
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10756 $as_echo "$dynamic_linker" >&6; }
10757 test "$dynamic_linker" = no && can_build_shared=no
10758
10759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10760 if test "$GCC" = yes; then
10761   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10762 fi
10763
10764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10765   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10766 fi
10767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10768   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10769 fi
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10863 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10864 hardcode_action=
10865 if test -n "$hardcode_libdir_flag_spec" ||
10866    test -n "$runpath_var" ||
10867    test "X$hardcode_automatic" = "Xyes" ; then
10868
10869   # We can hardcode non-existent directories.
10870   if test "$hardcode_direct" != no &&
10871      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10872      # have to relink, otherwise we might link with an installed library
10873      # when we should be linking with a yet-to-be-installed one
10874      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10875      test "$hardcode_minus_L" != no; then
10876     # Linking always hardcodes the temporary library directory.
10877     hardcode_action=relink
10878   else
10879     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10880     hardcode_action=immediate
10881   fi
10882 else
10883   # We cannot hardcode anything, or else we can only hardcode existing
10884   # directories.
10885   hardcode_action=unsupported
10886 fi
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10888 $as_echo "$hardcode_action" >&6; }
10889
10890 if test "$hardcode_action" = relink ||
10891    test "$inherit_rpath" = yes; then
10892   # Fast installation is not supported
10893   enable_fast_install=no
10894 elif test "$shlibpath_overrides_runpath" = yes ||
10895      test "$enable_shared" = no; then
10896   # Fast installation is not necessary
10897   enable_fast_install=needless
10898 fi
10899
10900
10901
10902
10903
10904
10905   if test "x$enable_dlopen" != xyes; then
10906   enable_dlopen=unknown
10907   enable_dlopen_self=unknown
10908   enable_dlopen_self_static=unknown
10909 else
10910   lt_cv_dlopen=no
10911   lt_cv_dlopen_libs=
10912
10913   case $host_os in
10914   beos*)
10915     lt_cv_dlopen="load_add_on"
10916     lt_cv_dlopen_libs=
10917     lt_cv_dlopen_self=yes
10918     ;;
10919
10920   mingw* | pw32* | cegcc*)
10921     lt_cv_dlopen="LoadLibrary"
10922     lt_cv_dlopen_libs=
10923     ;;
10924
10925   cygwin*)
10926     lt_cv_dlopen="dlopen"
10927     lt_cv_dlopen_libs=
10928     ;;
10929
10930   darwin*)
10931   # if libdl is installed we need to link against it
10932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10933 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10934 if ${ac_cv_lib_dl_dlopen+:} false; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldl  $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h.  */
10941
10942 /* Override any GCC internal prototype to avoid an error.
10943    Use char because int might match the return type of a GCC
10944    builtin and then its argument prototype would still apply.  */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char dlopen ();
10949 int
10950 main ()
10951 {
10952 return dlopen ();
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958   ac_cv_lib_dl_dlopen=yes
10959 else
10960   ac_cv_lib_dl_dlopen=no
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963     conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10965 fi
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10967 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10968 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10970 else
10971
10972     lt_cv_dlopen="dyld"
10973     lt_cv_dlopen_libs=
10974     lt_cv_dlopen_self=yes
10975
10976 fi
10977
10978     ;;
10979
10980   *)
10981     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10982 if test "x$ac_cv_func_shl_load" = xyes; then :
10983   lt_cv_dlopen="shl_load"
10984 else
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10986 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10987 if ${ac_cv_lib_dld_shl_load+:} false; then :
10988   $as_echo_n "(cached) " >&6
10989 else
10990   ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldld  $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h.  */
10994
10995 /* Override any GCC internal prototype to avoid an error.
10996    Use char because int might match the return type of a GCC
10997    builtin and then its argument prototype would still apply.  */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char shl_load ();
11002 int
11003 main ()
11004 {
11005 return shl_load ();
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011   ac_cv_lib_dld_shl_load=yes
11012 else
11013   ac_cv_lib_dld_shl_load=no
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext \
11016     conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11020 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11021 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11022   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11023 else
11024   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11025 if test "x$ac_cv_func_dlopen" = xyes; then :
11026   lt_cv_dlopen="dlopen"
11027 else
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11029 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11030 if ${ac_cv_lib_dl_dlopen+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-ldl  $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039    Use char because int might match the return type of a GCC
11040    builtin and then its argument prototype would still apply.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char dlopen ();
11045 int
11046 main ()
11047 {
11048 return dlopen ();
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054   ac_cv_lib_dl_dlopen=yes
11055 else
11056   ac_cv_lib_dl_dlopen=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059     conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11064 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11065   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11066 else
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11069 if ${ac_cv_lib_svld_dlopen+:} false; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   ac_check_lib_save_LIBS=$LIBS
11073 LIBS="-lsvld  $LIBS"
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h.  */
11076
11077 /* Override any GCC internal prototype to avoid an error.
11078    Use char because int might match the return type of a GCC
11079    builtin and then its argument prototype would still apply.  */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 char dlopen ();
11084 int
11085 main ()
11086 {
11087 return dlopen ();
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093   ac_cv_lib_svld_dlopen=yes
11094 else
11095   ac_cv_lib_svld_dlopen=no
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098     conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11102 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11103 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11107 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11108 if ${ac_cv_lib_dld_dld_link+:} false; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   ac_check_lib_save_LIBS=$LIBS
11112 LIBS="-ldld  $LIBS"
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h.  */
11115
11116 /* Override any GCC internal prototype to avoid an error.
11117    Use char because int might match the return type of a GCC
11118    builtin and then its argument prototype would still apply.  */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 char dld_link ();
11123 int
11124 main ()
11125 {
11126 return dld_link ();
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 if ac_fn_c_try_link "$LINENO"; then :
11132   ac_cv_lib_dld_dld_link=yes
11133 else
11134   ac_cv_lib_dld_dld_link=no
11135 fi
11136 rm -f core conftest.err conftest.$ac_objext \
11137     conftest$ac_exeext conftest.$ac_ext
11138 LIBS=$ac_check_lib_save_LIBS
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11141 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11142 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11143   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11144 fi
11145
11146
11147 fi
11148
11149
11150 fi
11151
11152
11153 fi
11154
11155
11156 fi
11157
11158
11159 fi
11160
11161     ;;
11162   esac
11163
11164   if test "x$lt_cv_dlopen" != xno; then
11165     enable_dlopen=yes
11166   else
11167     enable_dlopen=no
11168   fi
11169
11170   case $lt_cv_dlopen in
11171   dlopen)
11172     save_CPPFLAGS="$CPPFLAGS"
11173     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11174
11175     save_LDFLAGS="$LDFLAGS"
11176     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11177
11178     save_LIBS="$LIBS"
11179     LIBS="$lt_cv_dlopen_libs $LIBS"
11180
11181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11182 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11183 if ${lt_cv_dlopen_self+:} false; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186           if test "$cross_compiling" = yes; then :
11187   lt_cv_dlopen_self=cross
11188 else
11189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190   lt_status=$lt_dlunknown
11191   cat > conftest.$ac_ext <<_LT_EOF
11192 #line $LINENO "configure"
11193 #include "confdefs.h"
11194
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11198
11199 #include <stdio.h>
11200
11201 #ifdef RTLD_GLOBAL
11202 #  define LT_DLGLOBAL           RTLD_GLOBAL
11203 #else
11204 #  ifdef DL_GLOBAL
11205 #    define LT_DLGLOBAL         DL_GLOBAL
11206 #  else
11207 #    define LT_DLGLOBAL         0
11208 #  endif
11209 #endif
11210
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212    find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 #  ifdef RTLD_LAZY
11215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11216 #  else
11217 #    ifdef DL_LAZY
11218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11219 #    else
11220 #      ifdef RTLD_NOW
11221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11222 #      else
11223 #        ifdef DL_NOW
11224 #          define LT_DLLAZY_OR_NOW      DL_NOW
11225 #        else
11226 #          define LT_DLLAZY_OR_NOW      0
11227 #        endif
11228 #      endif
11229 #    endif
11230 #  endif
11231 #endif
11232
11233 /* When -fvisbility=hidden is used, assume the code has been annotated
11234    correspondingly for the symbols needed.  */
11235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11236 int fnord () __attribute__((visibility("default")));
11237 #endif
11238
11239 int fnord () { return 42; }
11240 int main ()
11241 {
11242   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11243   int status = $lt_dlunknown;
11244
11245   if (self)
11246     {
11247       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11248       else
11249         {
11250           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11251           else puts (dlerror ());
11252         }
11253       /* dlclose (self); */
11254     }
11255   else
11256     puts (dlerror ());
11257
11258   return status;
11259 }
11260 _LT_EOF
11261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11262   (eval $ac_link) 2>&5
11263   ac_status=$?
11264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11266     (./conftest; exit; ) >&5 2>/dev/null
11267     lt_status=$?
11268     case x$lt_status in
11269       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11270       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11271       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11272     esac
11273   else :
11274     # compilation failed
11275     lt_cv_dlopen_self=no
11276   fi
11277 fi
11278 rm -fr conftest*
11279
11280
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11283 $as_echo "$lt_cv_dlopen_self" >&6; }
11284
11285     if test "x$lt_cv_dlopen_self" = xyes; then
11286       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11287       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11289 if ${lt_cv_dlopen_self_static+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292           if test "$cross_compiling" = yes; then :
11293   lt_cv_dlopen_self_static=cross
11294 else
11295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11296   lt_status=$lt_dlunknown
11297   cat > conftest.$ac_ext <<_LT_EOF
11298 #line $LINENO "configure"
11299 #include "confdefs.h"
11300
11301 #if HAVE_DLFCN_H
11302 #include <dlfcn.h>
11303 #endif
11304
11305 #include <stdio.h>
11306
11307 #ifdef RTLD_GLOBAL
11308 #  define LT_DLGLOBAL           RTLD_GLOBAL
11309 #else
11310 #  ifdef DL_GLOBAL
11311 #    define LT_DLGLOBAL         DL_GLOBAL
11312 #  else
11313 #    define LT_DLGLOBAL         0
11314 #  endif
11315 #endif
11316
11317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11318    find out it does not work in some platform. */
11319 #ifndef LT_DLLAZY_OR_NOW
11320 #  ifdef RTLD_LAZY
11321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11322 #  else
11323 #    ifdef DL_LAZY
11324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11325 #    else
11326 #      ifdef RTLD_NOW
11327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11328 #      else
11329 #        ifdef DL_NOW
11330 #          define LT_DLLAZY_OR_NOW      DL_NOW
11331 #        else
11332 #          define LT_DLLAZY_OR_NOW      0
11333 #        endif
11334 #      endif
11335 #    endif
11336 #  endif
11337 #endif
11338
11339 /* When -fvisbility=hidden is used, assume the code has been annotated
11340    correspondingly for the symbols needed.  */
11341 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11342 int fnord () __attribute__((visibility("default")));
11343 #endif
11344
11345 int fnord () { return 42; }
11346 int main ()
11347 {
11348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11349   int status = $lt_dlunknown;
11350
11351   if (self)
11352     {
11353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11354       else
11355         {
11356           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11357           else puts (dlerror ());
11358         }
11359       /* dlclose (self); */
11360     }
11361   else
11362     puts (dlerror ());
11363
11364   return status;
11365 }
11366 _LT_EOF
11367   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11368   (eval $ac_link) 2>&5
11369   ac_status=$?
11370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11372     (./conftest; exit; ) >&5 2>/dev/null
11373     lt_status=$?
11374     case x$lt_status in
11375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11378     esac
11379   else :
11380     # compilation failed
11381     lt_cv_dlopen_self_static=no
11382   fi
11383 fi
11384 rm -fr conftest*
11385
11386
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11389 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11390     fi
11391
11392     CPPFLAGS="$save_CPPFLAGS"
11393     LDFLAGS="$save_LDFLAGS"
11394     LIBS="$save_LIBS"
11395     ;;
11396   esac
11397
11398   case $lt_cv_dlopen_self in
11399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400   *) enable_dlopen_self=unknown ;;
11401   esac
11402
11403   case $lt_cv_dlopen_self_static in
11404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405   *) enable_dlopen_self_static=unknown ;;
11406   esac
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425 striplib=
11426 old_striplib=
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11428 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11430   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11431   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433 $as_echo "yes" >&6; }
11434 else
11435 # FIXME - insert some real tests, host_os isn't really good enough
11436   case $host_os in
11437   darwin*)
11438     if test -n "$STRIP" ; then
11439       striplib="$STRIP -x"
11440       old_striplib="$STRIP -S"
11441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442 $as_echo "yes" >&6; }
11443     else
11444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446     fi
11447     ;;
11448   *)
11449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451     ;;
11452   esac
11453 fi
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466   # Report which library types will actually be built
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11468 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11470 $as_echo "$can_build_shared" >&6; }
11471
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11473 $as_echo_n "checking whether to build shared libraries... " >&6; }
11474   test "$can_build_shared" = "no" && enable_shared=no
11475
11476   # On AIX, shared libraries and static libraries use the same namespace, and
11477   # are all built from PIC.
11478   case $host_os in
11479   aix3*)
11480     test "$enable_shared" = yes && enable_static=no
11481     if test -n "$RANLIB"; then
11482       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11483       postinstall_cmds='$RANLIB $lib'
11484     fi
11485     ;;
11486
11487   aix[4-9]*)
11488     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11489       test "$enable_shared" = yes && enable_static=no
11490     fi
11491     ;;
11492   esac
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11494 $as_echo "$enable_shared" >&6; }
11495
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11497 $as_echo_n "checking whether to build static libraries... " >&6; }
11498   # Make sure either enable_shared or enable_static is yes.
11499   test "$enable_shared" = yes || enable_static=yes
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11501 $as_echo "$enable_static" >&6; }
11502
11503
11504
11505
11506 fi
11507 ac_ext=c
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513 CC="$lt_save_CC"
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529         ac_config_commands="$ac_config_commands libtool"
11530
11531
11532
11533
11534 # Only expand once:
11535
11536
11537
11538 FRIBIDI_MAJOR_VERSION=0
11539 FRIBIDI_MINOR_VERSION=19
11540 FRIBIDI_MICRO_VERSION=5
11541 FRIBIDI_VERSION=0.19.5
11542 FRIBIDI_INTERFACE_VERSION=3
11543 FRIBIDI_INTERFACE_AGE=4
11544 FRIBIDI_BINARY_AGE=3
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 LT_VERSION_INFO=3:4:3
11555 LT_CURRENT_MINUS_AGE=0
11556
11557
11558
11559
11560
11561 # Checks for programs.
11562 ac_ext=c
11563 ac_cpp='$CPP $CPPFLAGS'
11564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11567 if test -n "$ac_tool_prefix"; then
11568   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11569 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_prog_CC+:} false; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   if test -n "$CC"; then
11576   ac_cv_prog_CC="$CC" # Let the user override the test.
11577 else
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583     for ac_exec_ext in '' $ac_executable_extensions; do
11584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587     break 2
11588   fi
11589 done
11590   done
11591 IFS=$as_save_IFS
11592
11593 fi
11594 fi
11595 CC=$ac_cv_prog_CC
11596 if test -n "$CC"; then
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11598 $as_echo "$CC" >&6; }
11599 else
11600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 fi
11603
11604
11605 fi
11606 if test -z "$ac_cv_prog_CC"; then
11607   ac_ct_CC=$CC
11608   # Extract the first word of "gcc", so it can be a program name with args.
11609 set dummy gcc; ac_word=$2
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 $as_echo_n "checking for $ac_word... " >&6; }
11612 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   if test -n "$ac_ct_CC"; then
11616   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11617 else
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11620 do
11621   IFS=$as_save_IFS
11622   test -z "$as_dir" && as_dir=.
11623     for ac_exec_ext in '' $ac_executable_extensions; do
11624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625     ac_cv_prog_ac_ct_CC="gcc"
11626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627     break 2
11628   fi
11629 done
11630   done
11631 IFS=$as_save_IFS
11632
11633 fi
11634 fi
11635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11636 if test -n "$ac_ct_CC"; then
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11638 $as_echo "$ac_ct_CC" >&6; }
11639 else
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11642 fi
11643
11644   if test "x$ac_ct_CC" = x; then
11645     CC=""
11646   else
11647     case $cross_compiling:$ac_tool_warned in
11648 yes:)
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11651 ac_tool_warned=yes ;;
11652 esac
11653     CC=$ac_ct_CC
11654   fi
11655 else
11656   CC="$ac_cv_prog_CC"
11657 fi
11658
11659 if test -z "$CC"; then
11660           if test -n "$ac_tool_prefix"; then
11661     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11662 set dummy ${ac_tool_prefix}cc; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_prog_CC+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -n "$CC"; then
11669   ac_cv_prog_CC="$CC" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_exec_ext in '' $ac_executable_extensions; do
11677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678     ac_cv_prog_CC="${ac_tool_prefix}cc"
11679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 CC=$ac_cv_prog_CC
11689 if test -n "$CC"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11691 $as_echo "$CC" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698   fi
11699 fi
11700 if test -z "$CC"; then
11701   # Extract the first word of "cc", so it can be a program name with args.
11702 set dummy cc; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_prog_CC+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   if test -n "$CC"; then
11709   ac_cv_prog_CC="$CC" # Let the user override the test.
11710 else
11711   ac_prog_rejected=no
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_exec_ext in '' $ac_executable_extensions; do
11718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11720        ac_prog_rejected=yes
11721        continue
11722      fi
11723     ac_cv_prog_CC="cc"
11724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725     break 2
11726   fi
11727 done
11728   done
11729 IFS=$as_save_IFS
11730
11731 if test $ac_prog_rejected = yes; then
11732   # We found a bogon in the path, so make sure we never use it.
11733   set dummy $ac_cv_prog_CC
11734   shift
11735   if test $# != 0; then
11736     # We chose a different compiler from the bogus one.
11737     # However, it has the same basename, so the bogon will be chosen
11738     # first if we set CC to just the basename; use the full file name.
11739     shift
11740     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11741   fi
11742 fi
11743 fi
11744 fi
11745 CC=$ac_cv_prog_CC
11746 if test -n "$CC"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11748 $as_echo "$CC" >&6; }
11749 else
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753
11754
11755 fi
11756 if test -z "$CC"; then
11757   if test -n "$ac_tool_prefix"; then
11758   for ac_prog in cl.exe
11759   do
11760     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_prog_CC+:} false; then :
11765   $as_echo_n "(cached) " >&6
11766 else
11767   if test -n "$CC"; then
11768   ac_cv_prog_CC="$CC" # Let the user override the test.
11769 else
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773   IFS=$as_save_IFS
11774   test -z "$as_dir" && as_dir=.
11775     for ac_exec_ext in '' $ac_executable_extensions; do
11776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11777     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779     break 2
11780   fi
11781 done
11782   done
11783 IFS=$as_save_IFS
11784
11785 fi
11786 fi
11787 CC=$ac_cv_prog_CC
11788 if test -n "$CC"; then
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11790 $as_echo "$CC" >&6; }
11791 else
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795
11796
11797     test -n "$CC" && break
11798   done
11799 fi
11800 if test -z "$CC"; then
11801   ac_ct_CC=$CC
11802   for ac_prog in cl.exe
11803 do
11804   # Extract the first word of "$ac_prog", so it can be a program name with args.
11805 set dummy $ac_prog; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   if test -n "$ac_ct_CC"; then
11812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
11817   IFS=$as_save_IFS
11818   test -z "$as_dir" && as_dir=.
11819     for ac_exec_ext in '' $ac_executable_extensions; do
11820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821     ac_cv_prog_ac_ct_CC="$ac_prog"
11822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826   done
11827 IFS=$as_save_IFS
11828
11829 fi
11830 fi
11831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11832 if test -n "$ac_ct_CC"; then
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11834 $as_echo "$ac_ct_CC" >&6; }
11835 else
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 fi
11839
11840
11841   test -n "$ac_ct_CC" && break
11842 done
11843
11844   if test "x$ac_ct_CC" = x; then
11845     CC=""
11846   else
11847     case $cross_compiling:$ac_tool_warned in
11848 yes:)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11852 esac
11853     CC=$ac_ct_CC
11854   fi
11855 fi
11856
11857 fi
11858
11859
11860 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11862 as_fn_error $? "no acceptable C compiler found in \$PATH
11863 See \`config.log' for more details" "$LINENO" 5; }
11864
11865 # Provide some information about the compiler.
11866 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11867 set X $ac_compile
11868 ac_compiler=$2
11869 for ac_option in --version -v -V -qversion; do
11870   { { ac_try="$ac_compiler $ac_option >&5"
11871 case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11876 $as_echo "$ac_try_echo"; } >&5
11877   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11878   ac_status=$?
11879   if test -s conftest.err; then
11880     sed '10a\
11881 ... rest of stderr output deleted ...
11882          10q' conftest.err >conftest.er1
11883     cat conftest.er1 >&5
11884   fi
11885   rm -f conftest.er1 conftest.err
11886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887   test $ac_status = 0; }
11888 done
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11891 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11892 if ${ac_cv_c_compiler_gnu+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h.  */
11897
11898 int
11899 main ()
11900 {
11901 #ifndef __GNUC__
11902        choke me
11903 #endif
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_compile "$LINENO"; then :
11910   ac_compiler_gnu=yes
11911 else
11912   ac_compiler_gnu=no
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11916
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11919 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11920 if test $ac_compiler_gnu = yes; then
11921   GCC=yes
11922 else
11923   GCC=
11924 fi
11925 ac_test_CFLAGS=${CFLAGS+set}
11926 ac_save_CFLAGS=$CFLAGS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11928 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11929 if ${ac_cv_prog_cc_g+:} false; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   ac_save_c_werror_flag=$ac_c_werror_flag
11933    ac_c_werror_flag=yes
11934    ac_cv_prog_cc_g=no
11935    CFLAGS="-g"
11936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h.  */
11938
11939 int
11940 main ()
11941 {
11942
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_compile "$LINENO"; then :
11948   ac_cv_prog_cc_g=yes
11949 else
11950   CFLAGS=""
11951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h.  */
11953
11954 int
11955 main ()
11956 {
11957
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 if ac_fn_c_try_compile "$LINENO"; then :
11963
11964 else
11965   ac_c_werror_flag=$ac_save_c_werror_flag
11966          CFLAGS="-g"
11967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969
11970 int
11971 main ()
11972 {
11973
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_compile "$LINENO"; then :
11979   ac_cv_prog_cc_g=yes
11980 fi
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986    ac_c_werror_flag=$ac_save_c_werror_flag
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11989 $as_echo "$ac_cv_prog_cc_g" >&6; }
11990 if test "$ac_test_CFLAGS" = set; then
11991   CFLAGS=$ac_save_CFLAGS
11992 elif test $ac_cv_prog_cc_g = yes; then
11993   if test "$GCC" = yes; then
11994     CFLAGS="-g -O2"
11995   else
11996     CFLAGS="-g"
11997   fi
11998 else
11999   if test "$GCC" = yes; then
12000     CFLAGS="-O2"
12001   else
12002     CFLAGS=
12003   fi
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12006 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12007 if ${ac_cv_prog_cc_c89+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   ac_cv_prog_cc_c89=no
12011 ac_save_CC=$CC
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12014 #include <stdarg.h>
12015 #include <stdio.h>
12016 #include <sys/types.h>
12017 #include <sys/stat.h>
12018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12019 struct buf { int x; };
12020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12021 static char *e (p, i)
12022      char **p;
12023      int i;
12024 {
12025   return p[i];
12026 }
12027 static char *f (char * (*g) (char **, int), char **p, ...)
12028 {
12029   char *s;
12030   va_list v;
12031   va_start (v,p);
12032   s = g (p, va_arg (v,int));
12033   va_end (v);
12034   return s;
12035 }
12036
12037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12038    function prototypes and stuff, but not '\xHH' hex character constants.
12039    These don't provoke an error unfortunately, instead are silently treated
12040    as 'x'.  The following induces an error, until -std is added to get
12041    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12042    array size at least.  It's necessary to write '\x00'==0 to get something
12043    that's true only with -std.  */
12044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12045
12046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12047    inside strings and character constants.  */
12048 #define FOO(x) 'x'
12049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12050
12051 int test (int i, double x);
12052 struct s1 {int (*f) (int a);};
12053 struct s2 {int (*f) (double a);};
12054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12055 int argc;
12056 char **argv;
12057 int
12058 main ()
12059 {
12060 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12066         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12067 do
12068   CC="$ac_save_CC $ac_arg"
12069   if ac_fn_c_try_compile "$LINENO"; then :
12070   ac_cv_prog_cc_c89=$ac_arg
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext
12073   test "x$ac_cv_prog_cc_c89" != "xno" && break
12074 done
12075 rm -f conftest.$ac_ext
12076 CC=$ac_save_CC
12077
12078 fi
12079 # AC_CACHE_VAL
12080 case "x$ac_cv_prog_cc_c89" in
12081   x)
12082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12083 $as_echo "none needed" >&6; } ;;
12084   xno)
12085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12086 $as_echo "unsupported" >&6; } ;;
12087   *)
12088     CC="$CC $ac_cv_prog_cc_c89"
12089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12091 esac
12092 if test "x$ac_cv_prog_cc_c89" != xno; then :
12093
12094 fi
12095
12096 ac_ext=c
12097 ac_cpp='$CPP $CPPFLAGS'
12098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12101
12102 depcc="$CC"   am_compiler_list=
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12105 $as_echo_n "checking dependency style of $depcc... " >&6; }
12106 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12110   # We make a subdir and do the tests there.  Otherwise we can end up
12111   # making bogus files that we don't know about and never remove.  For
12112   # instance it was reported that on HP-UX the gcc test will end up
12113   # making a dummy file named `D' -- because `-MD' means `put the output
12114   # in D'.
12115   rm -rf conftest.dir
12116   mkdir conftest.dir
12117   # Copy depcomp to subdir because otherwise we won't find it if we're
12118   # using a relative directory.
12119   cp "$am_depcomp" conftest.dir
12120   cd conftest.dir
12121   # We will build objects and dependencies in a subdirectory because
12122   # it helps to detect inapplicable dependency modes.  For instance
12123   # both Tru64's cc and ICC support -MD to output dependencies as a
12124   # side effect of compilation, but ICC will put the dependencies in
12125   # the current directory while Tru64 will put them in the object
12126   # directory.
12127   mkdir sub
12128
12129   am_cv_CC_dependencies_compiler_type=none
12130   if test "$am_compiler_list" = ""; then
12131      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12132   fi
12133   am__universal=false
12134   case " $depcc " in #(
12135      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12136      esac
12137
12138   for depmode in $am_compiler_list; do
12139     # Setup a source with many dependencies, because some compilers
12140     # like to wrap large dependency lists on column 80 (with \), and
12141     # we should not choose a depcomp mode which is confused by this.
12142     #
12143     # We need to recreate these files for each test, as the compiler may
12144     # overwrite some of them when testing with obscure command lines.
12145     # This happens at least with the AIX C compiler.
12146     : > sub/conftest.c
12147     for i in 1 2 3 4 5 6; do
12148       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12149       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12150       # Solaris 8's {/usr,}/bin/sh.
12151       touch sub/conftst$i.h
12152     done
12153     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12154
12155     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12156     # mode.  It turns out that the SunPro C++ compiler does not properly
12157     # handle `-M -o', and we need to detect this.  Also, some Intel
12158     # versions had trouble with output in subdirs
12159     am__obj=sub/conftest.${OBJEXT-o}
12160     am__minus_obj="-o $am__obj"
12161     case $depmode in
12162     gcc)
12163       # This depmode causes a compiler race in universal mode.
12164       test "$am__universal" = false || continue
12165       ;;
12166     nosideeffect)
12167       # after this tag, mechanisms are not by side-effect, so they'll
12168       # only be used when explicitly requested
12169       if test "x$enable_dependency_tracking" = xyes; then
12170         continue
12171       else
12172         break
12173       fi
12174       ;;
12175     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12176       # This compiler won't grok `-c -o', but also, the minuso test has
12177       # not run yet.  These depmodes are late enough in the game, and
12178       # so weak that their functioning should not be impacted.
12179       am__obj=conftest.${OBJEXT-o}
12180       am__minus_obj=
12181       ;;
12182     none) break ;;
12183     esac
12184     if depmode=$depmode \
12185        source=sub/conftest.c object=$am__obj \
12186        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12187        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12188          >/dev/null 2>conftest.err &&
12189        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12190        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12191        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12192        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12193       # icc doesn't choke on unknown options, it will just issue warnings
12194       # or remarks (even with -Werror).  So we grep stderr for any message
12195       # that says an option was ignored or not supported.
12196       # When given -MP, icc 7.0 and 7.1 complain thusly:
12197       #   icc: Command line warning: ignoring option '-M'; no argument required
12198       # The diagnosis changed in icc 8.0:
12199       #   icc: Command line remark: option '-MP' not supported
12200       if (grep 'ignoring option' conftest.err ||
12201           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12202         am_cv_CC_dependencies_compiler_type=$depmode
12203         break
12204       fi
12205     fi
12206   done
12207
12208   cd ..
12209   rm -rf conftest.dir
12210 else
12211   am_cv_CC_dependencies_compiler_type=none
12212 fi
12213
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12216 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12218
12219  if
12220   test "x$enable_dependency_tracking" != xno \
12221   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12222   am__fastdepCC_TRUE=
12223   am__fastdepCC_FALSE='#'
12224 else
12225   am__fastdepCC_TRUE='#'
12226   am__fastdepCC_FALSE=
12227 fi
12228
12229
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
12232 $as_echo_n "checking for native Win32... " >&6; }
12233   case $build_os in
12234     mingw*) os_win32=yes ;;
12235     *) os_win32=no ;;
12236   esac
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
12238 $as_echo "$os_win32" >&6; }
12239  if test "$os_win32" = "yes"; then
12240   OS_WIN32_TRUE=
12241   OS_WIN32_FALSE='#'
12242 else
12243   OS_WIN32_TRUE='#'
12244   OS_WIN32_FALSE=
12245 fi
12246
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
12248 $as_echo_n "checking for some Win32 platform... " >&6; }
12249   case $build_os in
12250     mingw*|cygwin*) platform_win32=yes ;;
12251     *) platform_win32=no ;;
12252   esac
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
12254 $as_echo "$platform_win32" >&6; }
12255  if test "$platform_win32" = "yes"; then
12256   PLATFORM_WIN32_TRUE=
12257   PLATFORM_WIN32_FALSE='#'
12258 else
12259   PLATFORM_WIN32_TRUE='#'
12260   PLATFORM_WIN32_FALSE=
12261 fi
12262
12263
12264
12265 # Checks for header files.
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12267 $as_echo_n "checking for ANSI C header files... " >&6; }
12268 if ${ac_cv_header_stdc+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273 #include <stdlib.h>
12274 #include <stdarg.h>
12275 #include <string.h>
12276 #include <float.h>
12277
12278 int
12279 main ()
12280 {
12281
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_compile "$LINENO"; then :
12287   ac_cv_header_stdc=yes
12288 else
12289   ac_cv_header_stdc=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292
12293 if test $ac_cv_header_stdc = yes; then
12294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297 #include <string.h>
12298
12299 _ACEOF
12300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12301   $EGREP "memchr" >/dev/null 2>&1; then :
12302
12303 else
12304   ac_cv_header_stdc=no
12305 fi
12306 rm -f conftest*
12307
12308 fi
12309
12310 if test $ac_cv_header_stdc = yes; then
12311   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h.  */
12314 #include <stdlib.h>
12315
12316 _ACEOF
12317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12318   $EGREP "free" >/dev/null 2>&1; then :
12319
12320 else
12321   ac_cv_header_stdc=no
12322 fi
12323 rm -f conftest*
12324
12325 fi
12326
12327 if test $ac_cv_header_stdc = yes; then
12328   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12329   if test "$cross_compiling" = yes; then :
12330   :
12331 else
12332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h.  */
12334 #include <ctype.h>
12335 #include <stdlib.h>
12336 #if ((' ' & 0x0FF) == 0x020)
12337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12339 #else
12340 # define ISLOWER(c) \
12341                    (('a' <= (c) && (c) <= 'i') \
12342                      || ('j' <= (c) && (c) <= 'r') \
12343                      || ('s' <= (c) && (c) <= 'z'))
12344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12345 #endif
12346
12347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12348 int
12349 main ()
12350 {
12351   int i;
12352   for (i = 0; i < 256; i++)
12353     if (XOR (islower (i), ISLOWER (i))
12354         || toupper (i) != TOUPPER (i))
12355       return 2;
12356   return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_run "$LINENO"; then :
12360
12361 else
12362   ac_cv_header_stdc=no
12363 fi
12364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12365   conftest.$ac_objext conftest.beam conftest.$ac_ext
12366 fi
12367
12368 fi
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12371 $as_echo "$ac_cv_header_stdc" >&6; }
12372 if test $ac_cv_header_stdc = yes; then
12373
12374 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12375
12376 fi
12377
12378 for ac_header in stdlib.h string.h strings.h inttypes.h wchar.h asm/page.h sys/times.h
12379 do :
12380   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12383   cat >>confdefs.h <<_ACEOF
12384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12385 _ACEOF
12386
12387 fi
12388
12389 done
12390
12391
12392 # Checks for typedefs and structures.
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12394 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12395 if ${ac_cv_c_const+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h.  */
12400
12401 int
12402 main ()
12403 {
12404 /* FIXME: Include the comments suggested by Paul. */
12405 #ifndef __cplusplus
12406   /* Ultrix mips cc rejects this.  */
12407   typedef int charset[2];
12408   const charset cs;
12409   /* SunOS 4.1.1 cc rejects this.  */
12410   char const *const *pcpcc;
12411   char **ppc;
12412   /* NEC SVR4.0.2 mips cc rejects this.  */
12413   struct point {int x, y;};
12414   static struct point const zero = {0,0};
12415   /* AIX XL C 1.02.0.0 rejects this.
12416      It does not let you subtract one const X* pointer from another in
12417      an arm of an if-expression whose if-part is not a constant
12418      expression */
12419   const char *g = "string";
12420   pcpcc = &g + (g ? g-g : 0);
12421   /* HPUX 7.0 cc rejects these. */
12422   ++pcpcc;
12423   ppc = (char**) pcpcc;
12424   pcpcc = (char const *const *) ppc;
12425   { /* SCO 3.2v4 cc rejects this.  */
12426     char *t;
12427     char const *s = 0 ? (char *) 0 : (char const *) 0;
12428
12429     *t++ = 0;
12430     if (s) return 0;
12431   }
12432   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12433     int x[] = {25, 17};
12434     const int *foo = &x[0];
12435     ++foo;
12436   }
12437   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12438     typedef const int *iptr;
12439     iptr p = 0;
12440     ++p;
12441   }
12442   { /* AIX XL C 1.02.0.0 rejects this saying
12443        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12444     struct s { int j; const int *ap[3]; };
12445     struct s *b; b->j = 5;
12446   }
12447   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12448     const int foo = 10;
12449     if (!foo) return 0;
12450   }
12451   return !cs[0] && !zero.x;
12452 #endif
12453
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459   ac_cv_c_const=yes
12460 else
12461   ac_cv_c_const=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12466 $as_echo "$ac_cv_c_const" >&6; }
12467 if test $ac_cv_c_const = no; then
12468
12469 $as_echo "#define const /**/" >>confdefs.h
12470
12471 fi
12472
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
12474 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
12475 if ${ac_cv_c_stringize+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h.  */
12480 #define x(y) #y
12481
12482 char *s = x(teststring);
12483 _ACEOF
12484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12485   $EGREP "#teststring" >/dev/null 2>&1; then :
12486   ac_cv_c_stringize=no
12487 else
12488   ac_cv_c_stringize=yes
12489 fi
12490 rm -f conftest*
12491
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
12494 $as_echo "$ac_cv_c_stringize" >&6; }
12495 if test $ac_cv_c_stringize = yes; then
12496
12497 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
12498
12499 fi
12500
12501 # The cast to long int works around a bug in the HP C Compiler
12502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12504 # This bug is HP SR number 8606223364.
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12506 $as_echo_n "checking size of int... " >&6; }
12507 if ${ac_cv_sizeof_int+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12511
12512 else
12513   if test "$ac_cv_type_int" = yes; then
12514      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error 77 "cannot compute sizeof (int)
12517 See \`config.log' for more details" "$LINENO" 5; }
12518    else
12519      ac_cv_sizeof_int=0
12520    fi
12521 fi
12522
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12525 $as_echo "$ac_cv_sizeof_int" >&6; }
12526
12527
12528
12529 cat >>confdefs.h <<_ACEOF
12530 #define SIZEOF_INT $ac_cv_sizeof_int
12531 _ACEOF
12532
12533
12534 SIZEOF_INT=$ac_cv_sizeof_int
12535
12536 # The cast to long int works around a bug in the HP C Compiler
12537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12539 # This bug is HP SR number 8606223364.
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12541 $as_echo_n "checking size of short... " >&6; }
12542 if ${ac_cv_sizeof_short+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12546
12547 else
12548   if test "$ac_cv_type_short" = yes; then
12549      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12551 as_fn_error 77 "cannot compute sizeof (short)
12552 See \`config.log' for more details" "$LINENO" 5; }
12553    else
12554      ac_cv_sizeof_short=0
12555    fi
12556 fi
12557
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12560 $as_echo "$ac_cv_sizeof_short" >&6; }
12561
12562
12563
12564 cat >>confdefs.h <<_ACEOF
12565 #define SIZEOF_SHORT $ac_cv_sizeof_short
12566 _ACEOF
12567
12568
12569 # The cast to long int works around a bug in the HP C Compiler
12570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12572 # This bug is HP SR number 8606223364.
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12574 $as_echo_n "checking size of void *... " >&6; }
12575 if ${ac_cv_sizeof_void_p+:} false; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12579
12580 else
12581   if test "$ac_cv_type_void_p" = yes; then
12582      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12584 as_fn_error 77 "cannot compute sizeof (void *)
12585 See \`config.log' for more details" "$LINENO" 5; }
12586    else
12587      ac_cv_sizeof_void_p=0
12588    fi
12589 fi
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12593 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12594
12595
12596
12597 cat >>confdefs.h <<_ACEOF
12598 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12599 _ACEOF
12600
12601
12602 # The cast to long int works around a bug in the HP C Compiler
12603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12605 # This bug is HP SR number 8606223364.
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
12607 $as_echo_n "checking size of wchar_t... " >&6; }
12608 if ${ac_cv_sizeof_wchar_t+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
12612
12613 else
12614   if test "$ac_cv_type_wchar_t" = yes; then
12615      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12617 as_fn_error 77 "cannot compute sizeof (wchar_t)
12618 See \`config.log' for more details" "$LINENO" 5; }
12619    else
12620      ac_cv_sizeof_wchar_t=0
12621    fi
12622 fi
12623
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
12626 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
12627
12628
12629
12630 cat >>confdefs.h <<_ACEOF
12631 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
12632 _ACEOF
12633
12634
12635
12636 # Checks for compiler characteristics.
12637 if test "x$GCC" = "xyes"; then
12638   CFLAGS="$CFLAGS -Wall -ansi "
12639 fi
12640
12641 # Checks for library functions.
12642 for ac_func in memmove memset strdup
12643 do :
12644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12647   cat >>confdefs.h <<_ACEOF
12648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12649 _ACEOF
12650
12651 fi
12652 done
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12655 $as_echo_n "checking return type of signal handlers... " >&6; }
12656 if ${ac_cv_type_signal+:} false; then :
12657   $as_echo_n "(cached) " >&6
12658 else
12659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661 #include <sys/types.h>
12662 #include <signal.h>
12663
12664 int
12665 main ()
12666 {
12667 return *(signal (0, 0)) (0) == 1;
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672 if ac_fn_c_try_compile "$LINENO"; then :
12673   ac_cv_type_signal=int
12674 else
12675   ac_cv_type_signal=void
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12680 $as_echo "$ac_cv_type_signal" >&6; }
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define RETSIGTYPE $ac_cv_type_signal
12684 _ACEOF
12685
12686
12687
12688 # Checks for configure options
12689
12690 # --enable-debug
12691
12692 # Check whether --enable-debug was given.
12693 if test "${enable_debug+set}" = set; then :
12694   enableval=$enable_debug;
12695 else
12696   enable_debug=yes
12697 fi
12698
12699 if test x$enable_debug = xyes; then
12700
12701 $as_echo "#define DEBUG 1" >>confdefs.h
12702
12703 fi
12704
12705 # --disable-deprecated
12706 # Check whether --enable-deprecated was given.
12707 if test "${enable_deprecated+set}" = set; then :
12708   enableval=$enable_deprecated;
12709 fi
12710
12711 if test x$enable_deprecated = xno; then
12712         FRIBIDI_NO_DEPRECATED=1
12713 else
12714         FRIBIDI_NO_DEPRECATED=0
12715 fi
12716
12717
12718 # --enable-malloc
12719 # Check whether --enable-malloc was given.
12720 if test "${enable_malloc+set}" = set; then :
12721   enableval=$enable_malloc;
12722 fi
12723
12724 if test x$enable_malloc = xyes; then
12725
12726 $as_echo "#define USE_SIMPLE_MALLOC 1" >>confdefs.h
12727
12728 fi
12729
12730 # --disable-charsets
12731 # Check whether --enable-charsets was given.
12732 if test "${enable_charsets+set}" = set; then :
12733   enableval=$enable_charsets;
12734 fi
12735
12736 if test x$enable_charsets = xno; then
12737         FRIBIDI_CHARSETS=0
12738 else
12739         FRIBIDI_CHARSETS=1
12740 fi
12741
12742  if test x$FRIBIDI_CHARSETS = x1; then
12743   FRIBIDI_CHARSETS_TRUE=
12744   FRIBIDI_CHARSETS_FALSE='#'
12745 else
12746   FRIBIDI_CHARSETS_TRUE='#'
12747   FRIBIDI_CHARSETS_FALSE=
12748 fi
12749
12750
12751 # --with[out]-glib
12752
12753 # Check whether --with-glib was given.
12754 if test "${with_glib+set}" = set; then :
12755   withval=$with_glib;
12756 fi
12757
12758 GLIB_PACKAGE=glib-2.0
12759 GLIB_MINVERSION=2.4
12760 GLIB_LIBS=
12761 GLIB_CFLAGS=
12762 if test x$with_glib = xyes; then
12763
12764
12765
12766
12767
12768
12769
12770 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12771         if test -n "$ac_tool_prefix"; then
12772   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12773 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   case $PKG_CONFIG in
12780   [\\/]* | ?:[\\/]*)
12781   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12782   ;;
12783   *)
12784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798
12799   ;;
12800 esac
12801 fi
12802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12803 if test -n "$PKG_CONFIG"; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12805 $as_echo "$PKG_CONFIG" >&6; }
12806 else
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811
12812 fi
12813 if test -z "$ac_cv_path_PKG_CONFIG"; then
12814   ac_pt_PKG_CONFIG=$PKG_CONFIG
12815   # Extract the first word of "pkg-config", so it can be a program name with args.
12816 set dummy pkg-config; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822   case $ac_pt_PKG_CONFIG in
12823   [\\/]* | ?:[\\/]*)
12824   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12825   ;;
12826   *)
12827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832     for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839   done
12840 IFS=$as_save_IFS
12841
12842   ;;
12843 esac
12844 fi
12845 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12846 if test -n "$ac_pt_PKG_CONFIG"; then
12847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12848 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12849 else
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853
12854   if test "x$ac_pt_PKG_CONFIG" = x; then
12855     PKG_CONFIG=""
12856   else
12857     case $cross_compiling:$ac_tool_warned in
12858 yes:)
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12861 ac_tool_warned=yes ;;
12862 esac
12863     PKG_CONFIG=$ac_pt_PKG_CONFIG
12864   fi
12865 else
12866   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12867 fi
12868
12869 fi
12870 if test -n "$PKG_CONFIG"; then
12871         _pkg_min_version=0.9.0
12872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12873 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12874         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12875                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12876 $as_echo "yes" >&6; }
12877         else
12878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12880                 PKG_CONFIG=""
12881         fi
12882 fi
12883
12884 pkg_failed=no
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12886 $as_echo_n "checking for GLIB... " >&6; }
12887
12888 if test -n "$GLIB_CFLAGS"; then
12889     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12890  elif test -n "$PKG_CONFIG"; then
12891     if test -n "$PKG_CONFIG" && \
12892     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12893   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12894   ac_status=$?
12895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896   test $ac_status = 0; }; then
12897   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12898                       test "x$?" != "x0" && pkg_failed=yes
12899 else
12900   pkg_failed=yes
12901 fi
12902  else
12903     pkg_failed=untried
12904 fi
12905 if test -n "$GLIB_LIBS"; then
12906     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12907  elif test -n "$PKG_CONFIG"; then
12908     if test -n "$PKG_CONFIG" && \
12909     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12910   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12911   ac_status=$?
12912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913   test $ac_status = 0; }; then
12914   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12915                       test "x$?" != "x0" && pkg_failed=yes
12916 else
12917   pkg_failed=yes
12918 fi
12919  else
12920     pkg_failed=untried
12921 fi
12922
12923
12924
12925 if test $pkg_failed = yes; then
12926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928
12929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12930         _pkg_short_errors_supported=yes
12931 else
12932         _pkg_short_errors_supported=no
12933 fi
12934         if test $_pkg_short_errors_supported = yes; then
12935                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
12936         else
12937                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
12938         fi
12939         # Put the nasty error message in config.log where it belongs
12940         echo "$GLIB_PKG_ERRORS" >&5
12941
12942         as_fn_error $? "Package requirements ($GLIB_PACKAGE >= $GLIB_MINVERSION) were not met:
12943
12944 $GLIB_PKG_ERRORS
12945
12946 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12947 installed software in a non-standard prefix.
12948
12949 Alternatively, you may set the environment variables GLIB_CFLAGS
12950 and GLIB_LIBS to avoid the need to call pkg-config.
12951 See the pkg-config man page for more details." "$LINENO" 5
12952 elif test $pkg_failed = untried; then
12953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12957 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12958 is in your PATH or set the PKG_CONFIG environment variable to the full
12959 path to pkg-config.
12960
12961 Alternatively, you may set the environment variables GLIB_CFLAGS
12962 and GLIB_LIBS to avoid the need to call pkg-config.
12963 See the pkg-config man page for more details.
12964
12965 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12966 See \`config.log' for more details" "$LINENO" 5; }
12967 else
12968         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12969         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972
12973 fi
12974         FRIBIDI_USE_GLIB=1
12975 else
12976 if test x$with_glib = xno; then
12977         FRIBIDI_USE_GLIB=0
12978 else
12979
12980 pkg_failed=no
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12982 $as_echo_n "checking for GLIB... " >&6; }
12983
12984 if test -n "$GLIB_CFLAGS"; then
12985     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12986  elif test -n "$PKG_CONFIG"; then
12987     if test -n "$PKG_CONFIG" && \
12988     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12989   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12990   ac_status=$?
12991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992   test $ac_status = 0; }; then
12993   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12994                       test "x$?" != "x0" && pkg_failed=yes
12995 else
12996   pkg_failed=yes
12997 fi
12998  else
12999     pkg_failed=untried
13000 fi
13001 if test -n "$GLIB_LIBS"; then
13002     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13003  elif test -n "$PKG_CONFIG"; then
13004     if test -n "$PKG_CONFIG" && \
13005     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
13006   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
13007   ac_status=$?
13008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13009   test $ac_status = 0; }; then
13010   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
13011                       test "x$?" != "x0" && pkg_failed=yes
13012 else
13013   pkg_failed=yes
13014 fi
13015  else
13016     pkg_failed=untried
13017 fi
13018
13019
13020
13021 if test $pkg_failed = yes; then
13022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024
13025 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13026         _pkg_short_errors_supported=yes
13027 else
13028         _pkg_short_errors_supported=no
13029 fi
13030         if test $_pkg_short_errors_supported = yes; then
13031                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13032         else
13033                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13034         fi
13035         # Put the nasty error message in config.log where it belongs
13036         echo "$GLIB_PKG_ERRORS" >&5
13037
13038         FRIBIDI_USE_GLIB=0
13039 elif test $pkg_failed = untried; then
13040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042         FRIBIDI_USE_GLIB=0
13043 else
13044         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13045         GLIB_LIBS=$pkg_cv_GLIB_LIBS
13046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13047 $as_echo "yes" >&6; }
13048         FRIBIDI_USE_GLIB=1
13049 fi
13050 fi
13051 fi
13052 if test x$FRIBIDI_USE_GLIB = x0; then
13053         GLIB_PACKAGE=
13054 fi
13055
13056  if test x$FRIBIDI_USE_GLIB = x1; then
13057   FRIBIDI_USE_GLIB_TRUE=
13058   FRIBIDI_USE_GLIB_FALSE='#'
13059 else
13060   FRIBIDI_USE_GLIB_TRUE='#'
13061   FRIBIDI_USE_GLIB_FALSE=
13062 fi
13063
13064
13065
13066 MISC_CFLAGS="$GLIB_CFLAGS"
13067 MISC_LIBS="$GLIB_LIBS"
13068 MISC_PACKAGES="$GLIB_PACKAGE"
13069
13070
13071
13072
13073 # Generate output
13074 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile charset/Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile"
13075
13076 cat >confcache <<\_ACEOF
13077 # This file is a shell script that caches the results of configure
13078 # tests run on this system so they can be shared between configure
13079 # scripts and configure runs, see configure's option --config-cache.
13080 # It is not useful on other systems.  If it contains results you don't
13081 # want to keep, you may remove or edit it.
13082 #
13083 # config.status only pays attention to the cache file if you give it
13084 # the --recheck option to rerun configure.
13085 #
13086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13088 # following values.
13089
13090 _ACEOF
13091
13092 # The following way of writing the cache mishandles newlines in values,
13093 # but we know of no workaround that is simple, portable, and efficient.
13094 # So, we kill variables containing newlines.
13095 # Ultrix sh set writes to stderr and can't be redirected directly,
13096 # and sets the high bit in the cache file unless we assign to the vars.
13097 (
13098   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13099     eval ac_val=\$$ac_var
13100     case $ac_val in #(
13101     *${as_nl}*)
13102       case $ac_var in #(
13103       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13105       esac
13106       case $ac_var in #(
13107       _ | IFS | as_nl) ;; #(
13108       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13109       *) { eval $ac_var=; unset $ac_var;} ;;
13110       esac ;;
13111     esac
13112   done
13113
13114   (set) 2>&1 |
13115     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13116     *${as_nl}ac_space=\ *)
13117       # `set' does not quote correctly, so add quotes: double-quote
13118       # substitution turns \\\\ into \\, and sed turns \\ into \.
13119       sed -n \
13120         "s/'/'\\\\''/g;
13121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13122       ;; #(
13123     *)
13124       # `set' quotes correctly as required by POSIX, so do not add quotes.
13125       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13126       ;;
13127     esac |
13128     sort
13129 ) |
13130   sed '
13131      /^ac_cv_env_/b end
13132      t clear
13133      :clear
13134      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13135      t end
13136      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13137      :end' >>confcache
13138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13139   if test -w "$cache_file"; then
13140     if test "x$cache_file" != "x/dev/null"; then
13141       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13142 $as_echo "$as_me: updating cache $cache_file" >&6;}
13143       if test ! -f "$cache_file" || test -h "$cache_file"; then
13144         cat confcache >"$cache_file"
13145       else
13146         case $cache_file in #(
13147         */* | ?:*)
13148           mv -f confcache "$cache_file"$$ &&
13149           mv -f "$cache_file"$$ "$cache_file" ;; #(
13150         *)
13151           mv -f confcache "$cache_file" ;;
13152         esac
13153       fi
13154     fi
13155   else
13156     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13158   fi
13159 fi
13160 rm -f confcache
13161
13162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13163 # Let make expand exec_prefix.
13164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13165
13166 DEFS=-DHAVE_CONFIG_H
13167
13168 ac_libobjs=
13169 ac_ltlibobjs=
13170 U=
13171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13172   # 1. Remove the extension, and $U if already installed.
13173   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13174   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13175   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13176   #    will be set to the directory where LIBOBJS objects are built.
13177   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13178   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13179 done
13180 LIBOBJS=$ac_libobjs
13181
13182 LTLIBOBJS=$ac_ltlibobjs
13183
13184
13185  if test -n "$EXEEXT"; then
13186   am__EXEEXT_TRUE=
13187   am__EXEEXT_FALSE='#'
13188 else
13189   am__EXEEXT_TRUE='#'
13190   am__EXEEXT_FALSE=
13191 fi
13192
13193 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13194   as_fn_error $? "conditional \"AMDEP\" was never defined.
13195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13196 fi
13197 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13198   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13200 fi
13201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13202   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13204 fi
13205 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13206   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13208 fi
13209 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
13210   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
13211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13212 fi
13213 if test -z "${FRIBIDI_CHARSETS_TRUE}" && test -z "${FRIBIDI_CHARSETS_FALSE}"; then
13214   as_fn_error $? "conditional \"FRIBIDI_CHARSETS\" was never defined.
13215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13216 fi
13217 if test -z "${FRIBIDI_USE_GLIB_TRUE}" && test -z "${FRIBIDI_USE_GLIB_FALSE}"; then
13218   as_fn_error $? "conditional \"FRIBIDI_USE_GLIB\" was never defined.
13219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13220 fi
13221
13222 : "${CONFIG_STATUS=./config.status}"
13223 ac_write_fail=0
13224 ac_clean_files_save=$ac_clean_files
13225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13228 as_write_fail=0
13229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13230 #! $SHELL
13231 # Generated by $as_me.
13232 # Run this file to recreate the current configuration.
13233 # Compiler output produced by configure, useful for debugging
13234 # configure, is in config.log if it exists.
13235
13236 debug=false
13237 ac_cs_recheck=false
13238 ac_cs_silent=false
13239
13240 SHELL=\${CONFIG_SHELL-$SHELL}
13241 export SHELL
13242 _ASEOF
13243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13244 ## -------------------- ##
13245 ## M4sh Initialization. ##
13246 ## -------------------- ##
13247
13248 # Be more Bourne compatible
13249 DUALCASE=1; export DUALCASE # for MKS sh
13250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13251   emulate sh
13252   NULLCMD=:
13253   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13254   # is contrary to our usage.  Disable this feature.
13255   alias -g '${1+"$@"}'='"$@"'
13256   setopt NO_GLOB_SUBST
13257 else
13258   case `(set -o) 2>/dev/null` in #(
13259   *posix*) :
13260     set -o posix ;; #(
13261   *) :
13262      ;;
13263 esac
13264 fi
13265
13266
13267 as_nl='
13268 '
13269 export as_nl
13270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13274 # Prefer a ksh shell builtin over an external printf program on Solaris,
13275 # but without wasting forks for bash or zsh.
13276 if test -z "$BASH_VERSION$ZSH_VERSION" \
13277     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13278   as_echo='print -r --'
13279   as_echo_n='print -rn --'
13280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13281   as_echo='printf %s\n'
13282   as_echo_n='printf %s'
13283 else
13284   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13285     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13286     as_echo_n='/usr/ucb/echo -n'
13287   else
13288     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13289     as_echo_n_body='eval
13290       arg=$1;
13291       case $arg in #(
13292       *"$as_nl"*)
13293         expr "X$arg" : "X\\(.*\\)$as_nl";
13294         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13295       esac;
13296       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13297     '
13298     export as_echo_n_body
13299     as_echo_n='sh -c $as_echo_n_body as_echo'
13300   fi
13301   export as_echo_body
13302   as_echo='sh -c $as_echo_body as_echo'
13303 fi
13304
13305 # The user is always right.
13306 if test "${PATH_SEPARATOR+set}" != set; then
13307   PATH_SEPARATOR=:
13308   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13309     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13310       PATH_SEPARATOR=';'
13311   }
13312 fi
13313
13314
13315 # IFS
13316 # We need space, tab and new line, in precisely that order.  Quoting is
13317 # there to prevent editors from complaining about space-tab.
13318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13319 # splitting by setting IFS to empty value.)
13320 IFS=" ""        $as_nl"
13321
13322 # Find who we are.  Look in the path if we contain no directory separator.
13323 as_myself=
13324 case $0 in #((
13325   *[\\/]* ) as_myself=$0 ;;
13326   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13328 do
13329   IFS=$as_save_IFS
13330   test -z "$as_dir" && as_dir=.
13331     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13332   done
13333 IFS=$as_save_IFS
13334
13335      ;;
13336 esac
13337 # We did not find ourselves, most probably we were run as `sh COMMAND'
13338 # in which case we are not to be found in the path.
13339 if test "x$as_myself" = x; then
13340   as_myself=$0
13341 fi
13342 if test ! -f "$as_myself"; then
13343   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13344   exit 1
13345 fi
13346
13347 # Unset variables that we do not need and which cause bugs (e.g. in
13348 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13349 # suppresses any "Segmentation fault" message there.  '((' could
13350 # trigger a bug in pdksh 5.2.14.
13351 for as_var in BASH_ENV ENV MAIL MAILPATH
13352 do eval test x\${$as_var+set} = xset \
13353   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13354 done
13355 PS1='$ '
13356 PS2='> '
13357 PS4='+ '
13358
13359 # NLS nuisances.
13360 LC_ALL=C
13361 export LC_ALL
13362 LANGUAGE=C
13363 export LANGUAGE
13364
13365 # CDPATH.
13366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13367
13368
13369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13370 # ----------------------------------------
13371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13373 # script with STATUS, using 1 if that was 0.
13374 as_fn_error ()
13375 {
13376   as_status=$1; test $as_status -eq 0 && as_status=1
13377   if test "$4"; then
13378     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13379     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13380   fi
13381   $as_echo "$as_me: error: $2" >&2
13382   as_fn_exit $as_status
13383 } # as_fn_error
13384
13385
13386 # as_fn_set_status STATUS
13387 # -----------------------
13388 # Set $? to STATUS, without forking.
13389 as_fn_set_status ()
13390 {
13391   return $1
13392 } # as_fn_set_status
13393
13394 # as_fn_exit STATUS
13395 # -----------------
13396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13397 as_fn_exit ()
13398 {
13399   set +e
13400   as_fn_set_status $1
13401   exit $1
13402 } # as_fn_exit
13403
13404 # as_fn_unset VAR
13405 # ---------------
13406 # Portably unset VAR.
13407 as_fn_unset ()
13408 {
13409   { eval $1=; unset $1;}
13410 }
13411 as_unset=as_fn_unset
13412 # as_fn_append VAR VALUE
13413 # ----------------------
13414 # Append the text in VALUE to the end of the definition contained in VAR. Take
13415 # advantage of any shell optimizations that allow amortized linear growth over
13416 # repeated appends, instead of the typical quadratic growth present in naive
13417 # implementations.
13418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13419   eval 'as_fn_append ()
13420   {
13421     eval $1+=\$2
13422   }'
13423 else
13424   as_fn_append ()
13425   {
13426     eval $1=\$$1\$2
13427   }
13428 fi # as_fn_append
13429
13430 # as_fn_arith ARG...
13431 # ------------------
13432 # Perform arithmetic evaluation on the ARGs, and store the result in the
13433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13434 # must be portable across $(()) and expr.
13435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13436   eval 'as_fn_arith ()
13437   {
13438     as_val=$(( $* ))
13439   }'
13440 else
13441   as_fn_arith ()
13442   {
13443     as_val=`expr "$@" || test $? -eq 1`
13444   }
13445 fi # as_fn_arith
13446
13447
13448 if expr a : '\(a\)' >/dev/null 2>&1 &&
13449    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13450   as_expr=expr
13451 else
13452   as_expr=false
13453 fi
13454
13455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13456   as_basename=basename
13457 else
13458   as_basename=false
13459 fi
13460
13461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13462   as_dirname=dirname
13463 else
13464   as_dirname=false
13465 fi
13466
13467 as_me=`$as_basename -- "$0" ||
13468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13469          X"$0" : 'X\(//\)$' \| \
13470          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13471 $as_echo X/"$0" |
13472     sed '/^.*\/\([^/][^/]*\)\/*$/{
13473             s//\1/
13474             q
13475           }
13476           /^X\/\(\/\/\)$/{
13477             s//\1/
13478             q
13479           }
13480           /^X\/\(\/\).*/{
13481             s//\1/
13482             q
13483           }
13484           s/.*/./; q'`
13485
13486 # Avoid depending upon Character Ranges.
13487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13490 as_cr_digits='0123456789'
13491 as_cr_alnum=$as_cr_Letters$as_cr_digits
13492
13493 ECHO_C= ECHO_N= ECHO_T=
13494 case `echo -n x` in #(((((
13495 -n*)
13496   case `echo 'xy\c'` in
13497   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13498   xy)  ECHO_C='\c';;
13499   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13500        ECHO_T=' ';;
13501   esac;;
13502 *)
13503   ECHO_N='-n';;
13504 esac
13505
13506 rm -f conf$$ conf$$.exe conf$$.file
13507 if test -d conf$$.dir; then
13508   rm -f conf$$.dir/conf$$.file
13509 else
13510   rm -f conf$$.dir
13511   mkdir conf$$.dir 2>/dev/null
13512 fi
13513 if (echo >conf$$.file) 2>/dev/null; then
13514   if ln -s conf$$.file conf$$ 2>/dev/null; then
13515     as_ln_s='ln -s'
13516     # ... but there are two gotchas:
13517     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13518     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13519     # In both cases, we have to default to `cp -p'.
13520     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13521       as_ln_s='cp -p'
13522   elif ln conf$$.file conf$$ 2>/dev/null; then
13523     as_ln_s=ln
13524   else
13525     as_ln_s='cp -p'
13526   fi
13527 else
13528   as_ln_s='cp -p'
13529 fi
13530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13531 rmdir conf$$.dir 2>/dev/null
13532
13533
13534 # as_fn_mkdir_p
13535 # -------------
13536 # Create "$as_dir" as a directory, including parents if necessary.
13537 as_fn_mkdir_p ()
13538 {
13539
13540   case $as_dir in #(
13541   -*) as_dir=./$as_dir;;
13542   esac
13543   test -d "$as_dir" || eval $as_mkdir_p || {
13544     as_dirs=
13545     while :; do
13546       case $as_dir in #(
13547       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13548       *) as_qdir=$as_dir;;
13549       esac
13550       as_dirs="'$as_qdir' $as_dirs"
13551       as_dir=`$as_dirname -- "$as_dir" ||
13552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13553          X"$as_dir" : 'X\(//\)[^/]' \| \
13554          X"$as_dir" : 'X\(//\)$' \| \
13555          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13556 $as_echo X"$as_dir" |
13557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13558             s//\1/
13559             q
13560           }
13561           /^X\(\/\/\)[^/].*/{
13562             s//\1/
13563             q
13564           }
13565           /^X\(\/\/\)$/{
13566             s//\1/
13567             q
13568           }
13569           /^X\(\/\).*/{
13570             s//\1/
13571             q
13572           }
13573           s/.*/./; q'`
13574       test -d "$as_dir" && break
13575     done
13576     test -z "$as_dirs" || eval "mkdir $as_dirs"
13577   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13578
13579
13580 } # as_fn_mkdir_p
13581 if mkdir -p . 2>/dev/null; then
13582   as_mkdir_p='mkdir -p "$as_dir"'
13583 else
13584   test -d ./-p && rmdir ./-p
13585   as_mkdir_p=false
13586 fi
13587
13588 if test -x / >/dev/null 2>&1; then
13589   as_test_x='test -x'
13590 else
13591   if ls -dL / >/dev/null 2>&1; then
13592     as_ls_L_option=L
13593   else
13594     as_ls_L_option=
13595   fi
13596   as_test_x='
13597     eval sh -c '\''
13598       if test -d "$1"; then
13599         test -d "$1/.";
13600       else
13601         case $1 in #(
13602         -*)set "./$1";;
13603         esac;
13604         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13605         ???[sx]*):;;*)false;;esac;fi
13606     '\'' sh
13607   '
13608 fi
13609 as_executable_p=$as_test_x
13610
13611 # Sed expression to map a string onto a valid CPP name.
13612 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13613
13614 # Sed expression to map a string onto a valid variable name.
13615 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13616
13617
13618 exec 6>&1
13619 ## ----------------------------------- ##
13620 ## Main body of $CONFIG_STATUS script. ##
13621 ## ----------------------------------- ##
13622 _ASEOF
13623 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13624
13625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13626 # Save the log message, to keep $0 and so on meaningful, and to
13627 # report actual input values of CONFIG_FILES etc. instead of their
13628 # values after options handling.
13629 ac_log="
13630 This file was extended by GNU FriBidi $as_me 0.19.5, which was
13631 generated by GNU Autoconf 2.68.  Invocation command line was
13632
13633   CONFIG_FILES    = $CONFIG_FILES
13634   CONFIG_HEADERS  = $CONFIG_HEADERS
13635   CONFIG_LINKS    = $CONFIG_LINKS
13636   CONFIG_COMMANDS = $CONFIG_COMMANDS
13637   $ $0 $@
13638
13639 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13640 "
13641
13642 _ACEOF
13643
13644 case $ac_config_files in *"
13645 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13646 esac
13647
13648 case $ac_config_headers in *"
13649 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13650 esac
13651
13652
13653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654 # Files that config.status was made for.
13655 config_files="$ac_config_files"
13656 config_headers="$ac_config_headers"
13657 config_commands="$ac_config_commands"
13658
13659 _ACEOF
13660
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662 ac_cs_usage="\
13663 \`$as_me' instantiates files and other configuration actions
13664 from templates according to the current configuration.  Unless the files
13665 and actions are specified as TAGs, all are instantiated by default.
13666
13667 Usage: $0 [OPTION]... [TAG]...
13668
13669   -h, --help       print this help, then exit
13670   -V, --version    print version number and configuration settings, then exit
13671       --config     print configuration, then exit
13672   -q, --quiet, --silent
13673                    do not print progress messages
13674   -d, --debug      don't remove temporary files
13675       --recheck    update $as_me by reconfiguring in the same conditions
13676       --file=FILE[:TEMPLATE]
13677                    instantiate the configuration file FILE
13678       --header=FILE[:TEMPLATE]
13679                    instantiate the configuration header FILE
13680
13681 Configuration files:
13682 $config_files
13683
13684 Configuration headers:
13685 $config_headers
13686
13687 Configuration commands:
13688 $config_commands
13689
13690 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
13691 GNU FriBidi home page: <http://fribidi.org/>.
13692 General help using GNU software: <http://www.gnu.org/gethelp/>."
13693
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13696 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13697 ac_cs_version="\\
13698 GNU FriBidi config.status 0.19.5
13699 configured by $0, generated by GNU Autoconf 2.68,
13700   with options \\"\$ac_cs_config\\"
13701
13702 Copyright (C) 2010 Free Software Foundation, Inc.
13703 This config.status script is free software; the Free Software Foundation
13704 gives unlimited permission to copy, distribute and modify it."
13705
13706 ac_pwd='$ac_pwd'
13707 srcdir='$srcdir'
13708 INSTALL='$INSTALL'
13709 MKDIR_P='$MKDIR_P'
13710 AWK='$AWK'
13711 test -n "\$AWK" || AWK=awk
13712 _ACEOF
13713
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 # The default lists apply if the user does not specify any file.
13716 ac_need_defaults=:
13717 while test $# != 0
13718 do
13719   case $1 in
13720   --*=?*)
13721     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13722     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13723     ac_shift=:
13724     ;;
13725   --*=)
13726     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13727     ac_optarg=
13728     ac_shift=:
13729     ;;
13730   *)
13731     ac_option=$1
13732     ac_optarg=$2
13733     ac_shift=shift
13734     ;;
13735   esac
13736
13737   case $ac_option in
13738   # Handling of the options.
13739   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13740     ac_cs_recheck=: ;;
13741   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13742     $as_echo "$ac_cs_version"; exit ;;
13743   --config | --confi | --conf | --con | --co | --c )
13744     $as_echo "$ac_cs_config"; exit ;;
13745   --debug | --debu | --deb | --de | --d | -d )
13746     debug=: ;;
13747   --file | --fil | --fi | --f )
13748     $ac_shift
13749     case $ac_optarg in
13750     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13751     '') as_fn_error $? "missing file argument" ;;
13752     esac
13753     as_fn_append CONFIG_FILES " '$ac_optarg'"
13754     ac_need_defaults=false;;
13755   --header | --heade | --head | --hea )
13756     $ac_shift
13757     case $ac_optarg in
13758     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13759     esac
13760     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13761     ac_need_defaults=false;;
13762   --he | --h)
13763     # Conflict between --help and --header
13764     as_fn_error $? "ambiguous option: \`$1'
13765 Try \`$0 --help' for more information.";;
13766   --help | --hel | -h )
13767     $as_echo "$ac_cs_usage"; exit ;;
13768   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13769   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13770     ac_cs_silent=: ;;
13771
13772   # This is an error.
13773   -*) as_fn_error $? "unrecognized option: \`$1'
13774 Try \`$0 --help' for more information." ;;
13775
13776   *) as_fn_append ac_config_targets " $1"
13777      ac_need_defaults=false ;;
13778
13779   esac
13780   shift
13781 done
13782
13783 ac_configure_extra_args=
13784
13785 if $ac_cs_silent; then
13786   exec 6>/dev/null
13787   ac_configure_extra_args="$ac_configure_extra_args --silent"
13788 fi
13789
13790 _ACEOF
13791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792 if \$ac_cs_recheck; then
13793   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13794   shift
13795   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13796   CONFIG_SHELL='$SHELL'
13797   export CONFIG_SHELL
13798   exec "\$@"
13799 fi
13800
13801 _ACEOF
13802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13803 exec 5>>config.log
13804 {
13805   echo
13806   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13807 ## Running $as_me. ##
13808 _ASBOX
13809   $as_echo "$ac_log"
13810 } >&5
13811
13812 _ACEOF
13813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13814 #
13815 # INIT-COMMANDS
13816 #
13817 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13818
13819
13820 # The HP-UX ksh and POSIX shell print the target directory to stdout
13821 # if CDPATH is set.
13822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13823
13824 sed_quote_subst='$sed_quote_subst'
13825 double_quote_subst='$double_quote_subst'
13826 delay_variable_subst='$delay_variable_subst'
13827 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13828 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13829 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13830 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13831 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13832 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13833 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13834 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13835 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13836 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13837 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13838 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13839 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13840 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13841 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13842 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13843 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13844 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13845 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13846 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13847 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13848 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13849 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13850 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13851 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13852 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13853 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13854 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13855 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13856 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13857 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13858 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13859 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13860 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13861 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13862 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13863 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13864 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13865 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13866 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13867 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13868 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13869 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13870 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13871 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13872 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13873 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13874 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13875 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13876 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13877 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13878 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13879 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13880 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13881 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13882 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13883 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"`'
13884 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13885 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13886 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13887 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13888 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13889 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13890 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13891 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13892 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13893 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13894 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13895 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13896 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13897 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13898 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13899 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13900 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13901 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13902 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13903 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13904 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13905 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13906 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13907 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13908 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13909 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13910 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13911 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13912 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13913 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13914 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13915 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13916 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13917 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13918 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13919 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13920 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13921 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13922 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13923 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13924 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13925 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13926 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13927 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13928 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13929 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13930 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13931 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13932 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13933 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13934 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13935 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13936 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13937 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13938 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13939 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13940 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13941 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13942 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13943 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13944 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13945 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13946 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13947 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13948 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13949 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13950 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13951 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13952 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13953 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13954 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13955 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13956 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13957
13958 LTCC='$LTCC'
13959 LTCFLAGS='$LTCFLAGS'
13960 compiler='$compiler_DEFAULT'
13961
13962 # A function that is used when there is no print builtin or printf.
13963 func_fallback_echo ()
13964 {
13965   eval 'cat <<_LTECHO_EOF
13966 \$1
13967 _LTECHO_EOF'
13968 }
13969
13970 # Quote evaled strings.
13971 for var in SHELL \
13972 ECHO \
13973 PATH_SEPARATOR \
13974 SED \
13975 GREP \
13976 EGREP \
13977 FGREP \
13978 LD \
13979 NM \
13980 LN_S \
13981 lt_SP2NL \
13982 lt_NL2SP \
13983 reload_flag \
13984 OBJDUMP \
13985 deplibs_check_method \
13986 file_magic_cmd \
13987 file_magic_glob \
13988 want_nocaseglob \
13989 DLLTOOL \
13990 sharedlib_from_linklib_cmd \
13991 AR \
13992 AR_FLAGS \
13993 archiver_list_spec \
13994 STRIP \
13995 RANLIB \
13996 CC \
13997 CFLAGS \
13998 compiler \
13999 lt_cv_sys_global_symbol_pipe \
14000 lt_cv_sys_global_symbol_to_cdecl \
14001 lt_cv_sys_global_symbol_to_c_name_address \
14002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14003 nm_file_list_spec \
14004 lt_prog_compiler_no_builtin_flag \
14005 lt_prog_compiler_pic \
14006 lt_prog_compiler_wl \
14007 lt_prog_compiler_static \
14008 lt_cv_prog_compiler_c_o \
14009 need_locks \
14010 MANIFEST_TOOL \
14011 DSYMUTIL \
14012 NMEDIT \
14013 LIPO \
14014 OTOOL \
14015 OTOOL64 \
14016 shrext_cmds \
14017 export_dynamic_flag_spec \
14018 whole_archive_flag_spec \
14019 compiler_needs_object \
14020 with_gnu_ld \
14021 allow_undefined_flag \
14022 no_undefined_flag \
14023 hardcode_libdir_flag_spec \
14024 hardcode_libdir_separator \
14025 exclude_expsyms \
14026 include_expsyms \
14027 file_list_spec \
14028 variables_saved_for_relink \
14029 libname_spec \
14030 library_names_spec \
14031 soname_spec \
14032 install_override_mode \
14033 finish_eval \
14034 old_striplib \
14035 striplib; do
14036     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14037     *[\\\\\\\`\\"\\\$]*)
14038       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14039       ;;
14040     *)
14041       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14042       ;;
14043     esac
14044 done
14045
14046 # Double-quote double-evaled strings.
14047 for var in reload_cmds \
14048 old_postinstall_cmds \
14049 old_postuninstall_cmds \
14050 old_archive_cmds \
14051 extract_expsyms_cmds \
14052 old_archive_from_new_cmds \
14053 old_archive_from_expsyms_cmds \
14054 archive_cmds \
14055 archive_expsym_cmds \
14056 module_cmds \
14057 module_expsym_cmds \
14058 export_symbols_cmds \
14059 prelink_cmds \
14060 postlink_cmds \
14061 postinstall_cmds \
14062 postuninstall_cmds \
14063 finish_cmds \
14064 sys_lib_search_path_spec \
14065 sys_lib_dlsearch_path_spec; do
14066     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14067     *[\\\\\\\`\\"\\\$]*)
14068       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14069       ;;
14070     *)
14071       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14072       ;;
14073     esac
14074 done
14075
14076 ac_aux_dir='$ac_aux_dir'
14077 xsi_shell='$xsi_shell'
14078 lt_shell_append='$lt_shell_append'
14079
14080 # See if we are running on zsh, and set the options which allow our
14081 # commands through without removal of \ escapes INIT.
14082 if test -n "\${ZSH_VERSION+set}" ; then
14083    setopt NO_GLOB_SUBST
14084 fi
14085
14086
14087     PACKAGE='$PACKAGE'
14088     VERSION='$VERSION'
14089     TIMESTAMP='$TIMESTAMP'
14090     RM='$RM'
14091     ofile='$ofile'
14092
14093
14094
14095
14096 _ACEOF
14097
14098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14099
14100 # Handling of arguments.
14101 for ac_config_target in $ac_config_targets
14102 do
14103   case $ac_config_target in
14104     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14105     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14106     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14107     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
14108     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
14109     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14110     "charset/Makefile") CONFIG_FILES="$CONFIG_FILES charset/Makefile" ;;
14111     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
14112     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14113     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14114     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14115     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14116
14117   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14118   esac
14119 done
14120
14121
14122 # If the user did not use the arguments to specify the items to instantiate,
14123 # then the envvar interface is used.  Set only those that are not.
14124 # We use the long form for the default assignment because of an extremely
14125 # bizarre bug on SunOS 4.1.3.
14126 if $ac_need_defaults; then
14127   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14128   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14129   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14130 fi
14131
14132 # Have a temporary directory for convenience.  Make it in the build tree
14133 # simply because there is no reason against having it here, and in addition,
14134 # creating and moving files from /tmp can sometimes cause problems.
14135 # Hook for its removal unless debugging.
14136 # Note that there is a small window in which the directory will not be cleaned:
14137 # after its creation but before its name has been assigned to `$tmp'.
14138 $debug ||
14139 {
14140   tmp= ac_tmp=
14141   trap 'exit_status=$?
14142   : "${ac_tmp:=$tmp}"
14143   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14144 ' 0
14145   trap 'as_fn_exit 1' 1 2 13 15
14146 }
14147 # Create a (secure) tmp directory for tmp files.
14148
14149 {
14150   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14151   test -d "$tmp"
14152 }  ||
14153 {
14154   tmp=./conf$$-$RANDOM
14155   (umask 077 && mkdir "$tmp")
14156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14157 ac_tmp=$tmp
14158
14159 # Set up the scripts for CONFIG_FILES section.
14160 # No need to generate them if there are no CONFIG_FILES.
14161 # This happens for instance with `./config.status config.h'.
14162 if test -n "$CONFIG_FILES"; then
14163
14164
14165 ac_cr=`echo X | tr X '\015'`
14166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14167 # But we know of no other shell where ac_cr would be empty at this
14168 # point, so we can use a bashism as a fallback.
14169 if test "x$ac_cr" = x; then
14170   eval ac_cr=\$\'\\r\'
14171 fi
14172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14174   ac_cs_awk_cr='\\r'
14175 else
14176   ac_cs_awk_cr=$ac_cr
14177 fi
14178
14179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14180 _ACEOF
14181
14182
14183 {
14184   echo "cat >conf$$subs.awk <<_ACEOF" &&
14185   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14186   echo "_ACEOF"
14187 } >conf$$subs.sh ||
14188   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14190 ac_delim='%!_!# '
14191 for ac_last_try in false false false false false :; do
14192   . ./conf$$subs.sh ||
14193     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14194
14195   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14196   if test $ac_delim_n = $ac_delim_num; then
14197     break
14198   elif $ac_last_try; then
14199     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14200   else
14201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14202   fi
14203 done
14204 rm -f conf$$subs.sh
14205
14206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14208 _ACEOF
14209 sed -n '
14210 h
14211 s/^/S["/; s/!.*/"]=/
14212 p
14213 g
14214 s/^[^!]*!//
14215 :repl
14216 t repl
14217 s/'"$ac_delim"'$//
14218 t delim
14219 :nl
14220 h
14221 s/\(.\{148\}\)..*/\1/
14222 t more1
14223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14224 p
14225 n
14226 b repl
14227 :more1
14228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14229 p
14230 g
14231 s/.\{148\}//
14232 t nl
14233 :delim
14234 h
14235 s/\(.\{148\}\)..*/\1/
14236 t more2
14237 s/["\\]/\\&/g; s/^/"/; s/$/"/
14238 p
14239 b
14240 :more2
14241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14242 p
14243 g
14244 s/.\{148\}//
14245 t delim
14246 ' <conf$$subs.awk | sed '
14247 /^[^""]/{
14248   N
14249   s/\n//
14250 }
14251 ' >>$CONFIG_STATUS || ac_write_fail=1
14252 rm -f conf$$subs.awk
14253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254 _ACAWK
14255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14256   for (key in S) S_is_set[key] = 1
14257   FS = "\a"
14258
14259 }
14260 {
14261   line = $ 0
14262   nfields = split(line, field, "@")
14263   substed = 0
14264   len = length(field[1])
14265   for (i = 2; i < nfields; i++) {
14266     key = field[i]
14267     keylen = length(key)
14268     if (S_is_set[key]) {
14269       value = S[key]
14270       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14271       len += length(value) + length(field[++i])
14272       substed = 1
14273     } else
14274       len += 1 + keylen
14275   }
14276
14277   print line
14278 }
14279
14280 _ACAWK
14281 _ACEOF
14282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14284   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14285 else
14286   cat
14287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14288   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14289 _ACEOF
14290
14291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14293 # trailing colons and then remove the whole line if VPATH becomes empty
14294 # (actually we leave an empty line to preserve line numbers).
14295 if test "x$srcdir" = x.; then
14296   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14297 h
14298 s///
14299 s/^/:/
14300 s/[      ]*$/:/
14301 s/:\$(srcdir):/:/g
14302 s/:\${srcdir}:/:/g
14303 s/:@srcdir@:/:/g
14304 s/^:*//
14305 s/:*$//
14306 x
14307 s/\(=[   ]*\).*/\1/
14308 G
14309 s/\n//
14310 s/^[^=]*=[       ]*$//
14311 }'
14312 fi
14313
14314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315 fi # test -n "$CONFIG_FILES"
14316
14317 # Set up the scripts for CONFIG_HEADERS section.
14318 # No need to generate them if there are no CONFIG_HEADERS.
14319 # This happens for instance with `./config.status Makefile'.
14320 if test -n "$CONFIG_HEADERS"; then
14321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14322 BEGIN {
14323 _ACEOF
14324
14325 # Transform confdefs.h into an awk script `defines.awk', embedded as
14326 # here-document in config.status, that substitutes the proper values into
14327 # config.h.in to produce config.h.
14328
14329 # Create a delimiter string that does not exist in confdefs.h, to ease
14330 # handling of long lines.
14331 ac_delim='%!_!# '
14332 for ac_last_try in false false :; do
14333   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14334   if test -z "$ac_tt"; then
14335     break
14336   elif $ac_last_try; then
14337     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14338   else
14339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14340   fi
14341 done
14342
14343 # For the awk script, D is an array of macro values keyed by name,
14344 # likewise P contains macro parameters if any.  Preserve backslash
14345 # newline sequences.
14346
14347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14348 sed -n '
14349 s/.\{148\}/&'"$ac_delim"'/g
14350 t rset
14351 :rset
14352 s/^[     ]*#[    ]*define[       ][      ]*/ /
14353 t def
14354 d
14355 :def
14356 s/\\$//
14357 t bsnl
14358 s/["\\]/\\&/g
14359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14360 D["\1"]=" \3"/p
14361 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14362 d
14363 :bsnl
14364 s/["\\]/\\&/g
14365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14366 D["\1"]=" \3\\\\\\n"\\/p
14367 t cont
14368 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14369 t cont
14370 d
14371 :cont
14372 n
14373 s/.\{148\}/&'"$ac_delim"'/g
14374 t clear
14375 :clear
14376 s/\\$//
14377 t bsnlc
14378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14379 d
14380 :bsnlc
14381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14382 b cont
14383 ' <confdefs.h | sed '
14384 s/'"$ac_delim"'/"\\\
14385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14386
14387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388   for (key in D) D_is_set[key] = 1
14389   FS = "\a"
14390 }
14391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14392   line = \$ 0
14393   split(line, arg, " ")
14394   if (arg[1] == "#") {
14395     defundef = arg[2]
14396     mac1 = arg[3]
14397   } else {
14398     defundef = substr(arg[1], 2)
14399     mac1 = arg[2]
14400   }
14401   split(mac1, mac2, "(") #)
14402   macro = mac2[1]
14403   prefix = substr(line, 1, index(line, defundef) - 1)
14404   if (D_is_set[macro]) {
14405     # Preserve the white space surrounding the "#".
14406     print prefix "define", macro P[macro] D[macro]
14407     next
14408   } else {
14409     # Replace #undef with comments.  This is necessary, for example,
14410     # in the case of _POSIX_SOURCE, which is predefined and required
14411     # on some systems where configure will not decide to define it.
14412     if (defundef == "undef") {
14413       print "/*", prefix defundef, macro, "*/"
14414       next
14415     }
14416   }
14417 }
14418 { print }
14419 _ACAWK
14420 _ACEOF
14421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14423 fi # test -n "$CONFIG_HEADERS"
14424
14425
14426 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14427 shift
14428 for ac_tag
14429 do
14430   case $ac_tag in
14431   :[FHLC]) ac_mode=$ac_tag; continue;;
14432   esac
14433   case $ac_mode$ac_tag in
14434   :[FHL]*:*);;
14435   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14436   :[FH]-) ac_tag=-:-;;
14437   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14438   esac
14439   ac_save_IFS=$IFS
14440   IFS=:
14441   set x $ac_tag
14442   IFS=$ac_save_IFS
14443   shift
14444   ac_file=$1
14445   shift
14446
14447   case $ac_mode in
14448   :L) ac_source=$1;;
14449   :[FH])
14450     ac_file_inputs=
14451     for ac_f
14452     do
14453       case $ac_f in
14454       -) ac_f="$ac_tmp/stdin";;
14455       *) # Look for the file first in the build tree, then in the source tree
14456          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14457          # because $ac_f cannot contain `:'.
14458          test -f "$ac_f" ||
14459            case $ac_f in
14460            [\\/$]*) false;;
14461            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14462            esac ||
14463            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14464       esac
14465       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14466       as_fn_append ac_file_inputs " '$ac_f'"
14467     done
14468
14469     # Let's still pretend it is `configure' which instantiates (i.e., don't
14470     # use $as_me), people would be surprised to read:
14471     #    /* config.h.  Generated by config.status.  */
14472     configure_input='Generated from '`
14473           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14474         `' by configure.'
14475     if test x"$ac_file" != x-; then
14476       configure_input="$ac_file.  $configure_input"
14477       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14478 $as_echo "$as_me: creating $ac_file" >&6;}
14479     fi
14480     # Neutralize special characters interpreted by sed in replacement strings.
14481     case $configure_input in #(
14482     *\&* | *\|* | *\\* )
14483        ac_sed_conf_input=`$as_echo "$configure_input" |
14484        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14485     *) ac_sed_conf_input=$configure_input;;
14486     esac
14487
14488     case $ac_tag in
14489     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14490       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14491     esac
14492     ;;
14493   esac
14494
14495   ac_dir=`$as_dirname -- "$ac_file" ||
14496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14497          X"$ac_file" : 'X\(//\)[^/]' \| \
14498          X"$ac_file" : 'X\(//\)$' \| \
14499          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14500 $as_echo X"$ac_file" |
14501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14502             s//\1/
14503             q
14504           }
14505           /^X\(\/\/\)[^/].*/{
14506             s//\1/
14507             q
14508           }
14509           /^X\(\/\/\)$/{
14510             s//\1/
14511             q
14512           }
14513           /^X\(\/\).*/{
14514             s//\1/
14515             q
14516           }
14517           s/.*/./; q'`
14518   as_dir="$ac_dir"; as_fn_mkdir_p
14519   ac_builddir=.
14520
14521 case "$ac_dir" in
14522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14523 *)
14524   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14525   # A ".." for each directory in $ac_dir_suffix.
14526   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14527   case $ac_top_builddir_sub in
14528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14530   esac ;;
14531 esac
14532 ac_abs_top_builddir=$ac_pwd
14533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14534 # for backward compatibility:
14535 ac_top_builddir=$ac_top_build_prefix
14536
14537 case $srcdir in
14538   .)  # We are building in place.
14539     ac_srcdir=.
14540     ac_top_srcdir=$ac_top_builddir_sub
14541     ac_abs_top_srcdir=$ac_pwd ;;
14542   [\\/]* | ?:[\\/]* )  # Absolute name.
14543     ac_srcdir=$srcdir$ac_dir_suffix;
14544     ac_top_srcdir=$srcdir
14545     ac_abs_top_srcdir=$srcdir ;;
14546   *) # Relative name.
14547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14548     ac_top_srcdir=$ac_top_build_prefix$srcdir
14549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14550 esac
14551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14552
14553
14554   case $ac_mode in
14555   :F)
14556   #
14557   # CONFIG_FILE
14558   #
14559
14560   case $INSTALL in
14561   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14562   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14563   esac
14564   ac_MKDIR_P=$MKDIR_P
14565   case $MKDIR_P in
14566   [\\/$]* | ?:[\\/]* ) ;;
14567   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14568   esac
14569 _ACEOF
14570
14571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572 # If the template does not know about datarootdir, expand it.
14573 # FIXME: This hack should be removed a few years after 2.60.
14574 ac_datarootdir_hack=; ac_datarootdir_seen=
14575 ac_sed_dataroot='
14576 /datarootdir/ {
14577   p
14578   q
14579 }
14580 /@datadir@/p
14581 /@docdir@/p
14582 /@infodir@/p
14583 /@localedir@/p
14584 /@mandir@/p'
14585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14586 *datarootdir*) ac_datarootdir_seen=yes;;
14587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14588   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14590 _ACEOF
14591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14592   ac_datarootdir_hack='
14593   s&@datadir@&$datadir&g
14594   s&@docdir@&$docdir&g
14595   s&@infodir@&$infodir&g
14596   s&@localedir@&$localedir&g
14597   s&@mandir@&$mandir&g
14598   s&\\\${datarootdir}&$datarootdir&g' ;;
14599 esac
14600 _ACEOF
14601
14602 # Neutralize VPATH when `$srcdir' = `.'.
14603 # Shell code in configure.ac might set extrasub.
14604 # FIXME: do we really want to maintain this feature?
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 ac_sed_extra="$ac_vpsub
14607 $extrasub
14608 _ACEOF
14609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14610 :t
14611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14612 s|@configure_input@|$ac_sed_conf_input|;t t
14613 s&@top_builddir@&$ac_top_builddir_sub&;t t
14614 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14615 s&@srcdir@&$ac_srcdir&;t t
14616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14617 s&@top_srcdir@&$ac_top_srcdir&;t t
14618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14619 s&@builddir@&$ac_builddir&;t t
14620 s&@abs_builddir@&$ac_abs_builddir&;t t
14621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14622 s&@INSTALL@&$ac_INSTALL&;t t
14623 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14624 $ac_datarootdir_hack
14625 "
14626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14627   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14628
14629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14630   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14631   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14632       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14634 which seems to be undefined.  Please make sure it is defined" >&5
14635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14636 which seems to be undefined.  Please make sure it is defined" >&2;}
14637
14638   rm -f "$ac_tmp/stdin"
14639   case $ac_file in
14640   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14641   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14642   esac \
14643   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14644  ;;
14645   :H)
14646   #
14647   # CONFIG_HEADER
14648   #
14649   if test x"$ac_file" != x-; then
14650     {
14651       $as_echo "/* $configure_input  */" \
14652       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14653     } >"$ac_tmp/config.h" \
14654       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14655     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14656       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14658     else
14659       rm -f "$ac_file"
14660       mv "$ac_tmp/config.h" "$ac_file" \
14661         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14662     fi
14663   else
14664     $as_echo "/* $configure_input  */" \
14665       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14666       || as_fn_error $? "could not create -" "$LINENO" 5
14667   fi
14668 # Compute "$ac_file"'s index in $config_headers.
14669 _am_arg="$ac_file"
14670 _am_stamp_count=1
14671 for _am_header in $config_headers :; do
14672   case $_am_header in
14673     $_am_arg | $_am_arg:* )
14674       break ;;
14675     * )
14676       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14677   esac
14678 done
14679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681          X"$_am_arg" : 'X\(//\)[^/]' \| \
14682          X"$_am_arg" : 'X\(//\)$' \| \
14683          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14684 $as_echo X"$_am_arg" |
14685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14686             s//\1/
14687             q
14688           }
14689           /^X\(\/\/\)[^/].*/{
14690             s//\1/
14691             q
14692           }
14693           /^X\(\/\/\)$/{
14694             s//\1/
14695             q
14696           }
14697           /^X\(\/\).*/{
14698             s//\1/
14699             q
14700           }
14701           s/.*/./; q'`/stamp-h$_am_stamp_count
14702  ;;
14703
14704   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14705 $as_echo "$as_me: executing $ac_file commands" >&6;}
14706  ;;
14707   esac
14708
14709
14710   case $ac_file$ac_mode in
14711     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14712   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14713   # are listed without --file.  Let's play safe and only enable the eval
14714   # if we detect the quoting.
14715   case $CONFIG_FILES in
14716   *\'*) eval set x "$CONFIG_FILES" ;;
14717   *)   set x $CONFIG_FILES ;;
14718   esac
14719   shift
14720   for mf
14721   do
14722     # Strip MF so we end up with the name of the file.
14723     mf=`echo "$mf" | sed -e 's/:.*$//'`
14724     # Check whether this is an Automake generated Makefile or not.
14725     # We used to match only the files named `Makefile.in', but
14726     # some people rename them; so instead we look at the file content.
14727     # Grep'ing the first line is not enough: some people post-process
14728     # each Makefile.in and add a new line on top of each file to say so.
14729     # Grep'ing the whole file is not good either: AIX grep has a line
14730     # limit of 2048, but all sed's we know have understand at least 4000.
14731     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14732       dirpart=`$as_dirname -- "$mf" ||
14733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14734          X"$mf" : 'X\(//\)[^/]' \| \
14735          X"$mf" : 'X\(//\)$' \| \
14736          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14737 $as_echo X"$mf" |
14738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14739             s//\1/
14740             q
14741           }
14742           /^X\(\/\/\)[^/].*/{
14743             s//\1/
14744             q
14745           }
14746           /^X\(\/\/\)$/{
14747             s//\1/
14748             q
14749           }
14750           /^X\(\/\).*/{
14751             s//\1/
14752             q
14753           }
14754           s/.*/./; q'`
14755     else
14756       continue
14757     fi
14758     # Extract the definition of DEPDIR, am__include, and am__quote
14759     # from the Makefile without running `make'.
14760     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14761     test -z "$DEPDIR" && continue
14762     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14763     test -z "am__include" && continue
14764     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14765     # When using ansi2knr, U may be empty or an underscore; expand it
14766     U=`sed -n 's/^U = //p' < "$mf"`
14767     # Find all dependency output files, they are included files with
14768     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14769     # simplest approach to changing $(DEPDIR) to its actual value in the
14770     # expansion.
14771     for file in `sed -n "
14772       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14773          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14774       # Make sure the directory exists.
14775       test -f "$dirpart/$file" && continue
14776       fdir=`$as_dirname -- "$file" ||
14777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14778          X"$file" : 'X\(//\)[^/]' \| \
14779          X"$file" : 'X\(//\)$' \| \
14780          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14781 $as_echo X"$file" |
14782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14783             s//\1/
14784             q
14785           }
14786           /^X\(\/\/\)[^/].*/{
14787             s//\1/
14788             q
14789           }
14790           /^X\(\/\/\)$/{
14791             s//\1/
14792             q
14793           }
14794           /^X\(\/\).*/{
14795             s//\1/
14796             q
14797           }
14798           s/.*/./; q'`
14799       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14800       # echo "creating $dirpart/$file"
14801       echo '# dummy' > "$dirpart/$file"
14802     done
14803   done
14804 }
14805  ;;
14806     "libtool":C)
14807
14808     # See if we are running on zsh, and set the options which allow our
14809     # commands through without removal of \ escapes.
14810     if test -n "${ZSH_VERSION+set}" ; then
14811       setopt NO_GLOB_SUBST
14812     fi
14813
14814     cfgfile="${ofile}T"
14815     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14816     $RM "$cfgfile"
14817
14818     cat <<_LT_EOF >> "$cfgfile"
14819 #! $SHELL
14820
14821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14825 #
14826 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14827 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14828 #                 Foundation, Inc.
14829 #   Written by Gordon Matzigkeit, 1996
14830 #
14831 #   This file is part of GNU Libtool.
14832 #
14833 # GNU Libtool is free software; you can redistribute it and/or
14834 # modify it under the terms of the GNU General Public License as
14835 # published by the Free Software Foundation; either version 2 of
14836 # the License, or (at your option) any later version.
14837 #
14838 # As a special exception to the GNU General Public License,
14839 # if you distribute this file as part of a program or library that
14840 # is built using GNU Libtool, you may include this file under the
14841 # same distribution terms that you use for the rest of that program.
14842 #
14843 # GNU Libtool is distributed in the hope that it will be useful,
14844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14846 # GNU General Public License for more details.
14847 #
14848 # You should have received a copy of the GNU General Public License
14849 # along with GNU Libtool; see the file COPYING.  If not, a copy
14850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14851 # obtained by writing to the Free Software Foundation, Inc.,
14852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14853
14854
14855 # The names of the tagged configurations supported by this script.
14856 available_tags=""
14857
14858 # ### BEGIN LIBTOOL CONFIG
14859
14860 # Which release of libtool.m4 was used?
14861 macro_version=$macro_version
14862 macro_revision=$macro_revision
14863
14864 # Whether or not to build static libraries.
14865 build_old_libs=$enable_static
14866
14867 # Whether or not to build shared libraries.
14868 build_libtool_libs=$enable_shared
14869
14870 # What type of objects to build.
14871 pic_mode=$pic_mode
14872
14873 # Whether or not to optimize for fast installation.
14874 fast_install=$enable_fast_install
14875
14876 # Shell to use when invoking shell scripts.
14877 SHELL=$lt_SHELL
14878
14879 # An echo program that protects backslashes.
14880 ECHO=$lt_ECHO
14881
14882 # The PATH separator for the build system.
14883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14884
14885 # The host system.
14886 host_alias=$host_alias
14887 host=$host
14888 host_os=$host_os
14889
14890 # The build system.
14891 build_alias=$build_alias
14892 build=$build
14893 build_os=$build_os
14894
14895 # A sed program that does not truncate output.
14896 SED=$lt_SED
14897
14898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14899 Xsed="\$SED -e 1s/^X//"
14900
14901 # A grep program that handles long lines.
14902 GREP=$lt_GREP
14903
14904 # An ERE matcher.
14905 EGREP=$lt_EGREP
14906
14907 # A literal string matcher.
14908 FGREP=$lt_FGREP
14909
14910 # A BSD- or MS-compatible name lister.
14911 NM=$lt_NM
14912
14913 # Whether we need soft or hard links.
14914 LN_S=$lt_LN_S
14915
14916 # What is the maximum length of a command?
14917 max_cmd_len=$max_cmd_len
14918
14919 # Object file suffix (normally "o").
14920 objext=$ac_objext
14921
14922 # Executable file suffix (normally "").
14923 exeext=$exeext
14924
14925 # whether the shell understands "unset".
14926 lt_unset=$lt_unset
14927
14928 # turn spaces into newlines.
14929 SP2NL=$lt_lt_SP2NL
14930
14931 # turn newlines into spaces.
14932 NL2SP=$lt_lt_NL2SP
14933
14934 # convert \$build file names to \$host format.
14935 to_host_file_cmd=$lt_cv_to_host_file_cmd
14936
14937 # convert \$build files to toolchain format.
14938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14939
14940 # An object symbol dumper.
14941 OBJDUMP=$lt_OBJDUMP
14942
14943 # Method to check whether dependent libraries are shared objects.
14944 deplibs_check_method=$lt_deplibs_check_method
14945
14946 # Command to use when deplibs_check_method = "file_magic".
14947 file_magic_cmd=$lt_file_magic_cmd
14948
14949 # How to find potential files when deplibs_check_method = "file_magic".
14950 file_magic_glob=$lt_file_magic_glob
14951
14952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14953 want_nocaseglob=$lt_want_nocaseglob
14954
14955 # DLL creation program.
14956 DLLTOOL=$lt_DLLTOOL
14957
14958 # Command to associate shared and link libraries.
14959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14960
14961 # The archiver.
14962 AR=$lt_AR
14963
14964 # Flags to create an archive.
14965 AR_FLAGS=$lt_AR_FLAGS
14966
14967 # How to feed a file listing to the archiver.
14968 archiver_list_spec=$lt_archiver_list_spec
14969
14970 # A symbol stripping program.
14971 STRIP=$lt_STRIP
14972
14973 # Commands used to install an old-style archive.
14974 RANLIB=$lt_RANLIB
14975 old_postinstall_cmds=$lt_old_postinstall_cmds
14976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14977
14978 # Whether to use a lock for old archive extraction.
14979 lock_old_archive_extraction=$lock_old_archive_extraction
14980
14981 # A C compiler.
14982 LTCC=$lt_CC
14983
14984 # LTCC compiler flags.
14985 LTCFLAGS=$lt_CFLAGS
14986
14987 # Take the output of nm and produce a listing of raw symbols and C names.
14988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14989
14990 # Transform the output of nm in a proper C declaration.
14991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14992
14993 # Transform the output of nm in a C name address pair.
14994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14995
14996 # Transform the output of nm in a C name address pair when lib prefix is needed.
14997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14998
14999 # Specify filename containing input files for \$NM.
15000 nm_file_list_spec=$lt_nm_file_list_spec
15001
15002 # The root where to search for dependent libraries,and in which our libraries should be installed.
15003 lt_sysroot=$lt_sysroot
15004
15005 # The name of the directory that contains temporary libtool files.
15006 objdir=$objdir
15007
15008 # Used to examine libraries when file_magic_cmd begins with "file".
15009 MAGIC_CMD=$MAGIC_CMD
15010
15011 # Must we lock files when doing compilation?
15012 need_locks=$lt_need_locks
15013
15014 # Manifest tool.
15015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15016
15017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15018 DSYMUTIL=$lt_DSYMUTIL
15019
15020 # Tool to change global to local symbols on Mac OS X.
15021 NMEDIT=$lt_NMEDIT
15022
15023 # Tool to manipulate fat objects and archives on Mac OS X.
15024 LIPO=$lt_LIPO
15025
15026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15027 OTOOL=$lt_OTOOL
15028
15029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15030 OTOOL64=$lt_OTOOL64
15031
15032 # Old archive suffix (normally "a").
15033 libext=$libext
15034
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds=$lt_shrext_cmds
15037
15038 # The commands to extract the exported symbol list from a shared archive.
15039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15040
15041 # Variables whose values should be saved in libtool wrapper scripts and
15042 # restored at link time.
15043 variables_saved_for_relink=$lt_variables_saved_for_relink
15044
15045 # Do we need the "lib" prefix for modules?
15046 need_lib_prefix=$need_lib_prefix
15047
15048 # Do we need a version for libraries?
15049 need_version=$need_version
15050
15051 # Library versioning type.
15052 version_type=$version_type
15053
15054 # Shared library runtime path variable.
15055 runpath_var=$runpath_var
15056
15057 # Shared library path variable.
15058 shlibpath_var=$shlibpath_var
15059
15060 # Is shlibpath searched before the hard-coded library search path?
15061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15062
15063 # Format of library name prefix.
15064 libname_spec=$lt_libname_spec
15065
15066 # List of archive names.  First name is the real one, the rest are links.
15067 # The last name is the one that the linker finds with -lNAME
15068 library_names_spec=$lt_library_names_spec
15069
15070 # The coded name of the library, if different from the real name.
15071 soname_spec=$lt_soname_spec
15072
15073 # Permission mode override for installation of shared libraries.
15074 install_override_mode=$lt_install_override_mode
15075
15076 # Command to use after installation of a shared archive.
15077 postinstall_cmds=$lt_postinstall_cmds
15078
15079 # Command to use after uninstallation of a shared archive.
15080 postuninstall_cmds=$lt_postuninstall_cmds
15081
15082 # Commands used to finish a libtool library installation in a directory.
15083 finish_cmds=$lt_finish_cmds
15084
15085 # As "finish_cmds", except a single script fragment to be evaled but
15086 # not shown.
15087 finish_eval=$lt_finish_eval
15088
15089 # Whether we should hardcode library paths into libraries.
15090 hardcode_into_libs=$hardcode_into_libs
15091
15092 # Compile-time system search path for libraries.
15093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15094
15095 # Run-time system search path for libraries.
15096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15097
15098 # Whether dlopen is supported.
15099 dlopen_support=$enable_dlopen
15100
15101 # Whether dlopen of programs is supported.
15102 dlopen_self=$enable_dlopen_self
15103
15104 # Whether dlopen of statically linked programs is supported.
15105 dlopen_self_static=$enable_dlopen_self_static
15106
15107 # Commands to strip libraries.
15108 old_striplib=$lt_old_striplib
15109 striplib=$lt_striplib
15110
15111
15112 # The linker used to build libraries.
15113 LD=$lt_LD
15114
15115 # How to create reloadable object files.
15116 reload_flag=$lt_reload_flag
15117 reload_cmds=$lt_reload_cmds
15118
15119 # Commands used to build an old-style archive.
15120 old_archive_cmds=$lt_old_archive_cmds
15121
15122 # A language specific compiler.
15123 CC=$lt_compiler
15124
15125 # Is the compiler the GNU compiler?
15126 with_gcc=$GCC
15127
15128 # Compiler flag to turn off builtin functions.
15129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15130
15131 # Additional compiler flags for building library objects.
15132 pic_flag=$lt_lt_prog_compiler_pic
15133
15134 # How to pass a linker flag through the compiler.
15135 wl=$lt_lt_prog_compiler_wl
15136
15137 # Compiler flag to prevent dynamic linking.
15138 link_static_flag=$lt_lt_prog_compiler_static
15139
15140 # Does compiler simultaneously support -c and -o options?
15141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15142
15143 # Whether or not to add -lc for building shared libraries.
15144 build_libtool_need_lc=$archive_cmds_need_lc
15145
15146 # Whether or not to disallow shared libs when runtime libs are static.
15147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15148
15149 # Compiler flag to allow reflexive dlopens.
15150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15151
15152 # Compiler flag to generate shared objects directly from archives.
15153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15154
15155 # Whether the compiler copes with passing no objects directly.
15156 compiler_needs_object=$lt_compiler_needs_object
15157
15158 # Create an old-style archive from a shared archive.
15159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15160
15161 # Create a temporary old-style archive to link instead of a shared archive.
15162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15163
15164 # Commands used to build a shared archive.
15165 archive_cmds=$lt_archive_cmds
15166 archive_expsym_cmds=$lt_archive_expsym_cmds
15167
15168 # Commands used to build a loadable module if different from building
15169 # a shared archive.
15170 module_cmds=$lt_module_cmds
15171 module_expsym_cmds=$lt_module_expsym_cmds
15172
15173 # Whether we are building with GNU ld or not.
15174 with_gnu_ld=$lt_with_gnu_ld
15175
15176 # Flag that allows shared libraries with undefined symbols to be built.
15177 allow_undefined_flag=$lt_allow_undefined_flag
15178
15179 # Flag that enforces no undefined symbols.
15180 no_undefined_flag=$lt_no_undefined_flag
15181
15182 # Flag to hardcode \$libdir into a binary during linking.
15183 # This must work even if \$libdir does not exist
15184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15185
15186 # Whether we need a single "-rpath" flag with a separated argument.
15187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15188
15189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15190 # DIR into the resulting binary.
15191 hardcode_direct=$hardcode_direct
15192
15193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15194 # DIR into the resulting binary and the resulting library dependency is
15195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15196 # library is relocated.
15197 hardcode_direct_absolute=$hardcode_direct_absolute
15198
15199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15200 # into the resulting binary.
15201 hardcode_minus_L=$hardcode_minus_L
15202
15203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15204 # into the resulting binary.
15205 hardcode_shlibpath_var=$hardcode_shlibpath_var
15206
15207 # Set to "yes" if building a shared library automatically hardcodes DIR
15208 # into the library and all subsequent libraries and executables linked
15209 # against it.
15210 hardcode_automatic=$hardcode_automatic
15211
15212 # Set to yes if linker adds runtime paths of dependent libraries
15213 # to runtime path list.
15214 inherit_rpath=$inherit_rpath
15215
15216 # Whether libtool must link a program against all its dependency libraries.
15217 link_all_deplibs=$link_all_deplibs
15218
15219 # Set to "yes" if exported symbols are required.
15220 always_export_symbols=$always_export_symbols
15221
15222 # The commands to list exported symbols.
15223 export_symbols_cmds=$lt_export_symbols_cmds
15224
15225 # Symbols that should not be listed in the preloaded symbols.
15226 exclude_expsyms=$lt_exclude_expsyms
15227
15228 # Symbols that must always be exported.
15229 include_expsyms=$lt_include_expsyms
15230
15231 # Commands necessary for linking programs (against libraries) with templates.
15232 prelink_cmds=$lt_prelink_cmds
15233
15234 # Commands necessary for finishing linking programs.
15235 postlink_cmds=$lt_postlink_cmds
15236
15237 # Specify filename containing input files.
15238 file_list_spec=$lt_file_list_spec
15239
15240 # How to hardcode a shared library path into an executable.
15241 hardcode_action=$hardcode_action
15242
15243 # ### END LIBTOOL CONFIG
15244
15245 _LT_EOF
15246
15247   case $host_os in
15248   aix3*)
15249     cat <<\_LT_EOF >> "$cfgfile"
15250 # AIX sometimes has problems with the GCC collect2 program.  For some
15251 # reason, if we set the COLLECT_NAMES environment variable, the problems
15252 # vanish in a puff of smoke.
15253 if test "X${COLLECT_NAMES+set}" != Xset; then
15254   COLLECT_NAMES=
15255   export COLLECT_NAMES
15256 fi
15257 _LT_EOF
15258     ;;
15259   esac
15260
15261
15262 ltmain="$ac_aux_dir/ltmain.sh"
15263
15264
15265   # We use sed instead of cat because bash on DJGPP gets confused if
15266   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15267   # text mode, it properly converts lines to CR/LF.  This bash problem
15268   # is reportedly fixed, but why not run on old versions too?
15269   sed '$q' "$ltmain" >> "$cfgfile" \
15270      || (rm -f "$cfgfile"; exit 1)
15271
15272   if test x"$xsi_shell" = xyes; then
15273   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15274 func_dirname ()\
15275 {\
15276 \    case ${1} in\
15277 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15278 \      *  ) func_dirname_result="${3}" ;;\
15279 \    esac\
15280 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15281   && mv -f "$cfgfile.tmp" "$cfgfile" \
15282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15283 test 0 -eq $? || _lt_function_replace_fail=:
15284
15285
15286   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15287 func_basename ()\
15288 {\
15289 \    func_basename_result="${1##*/}"\
15290 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15291   && mv -f "$cfgfile.tmp" "$cfgfile" \
15292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15293 test 0 -eq $? || _lt_function_replace_fail=:
15294
15295
15296   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15297 func_dirname_and_basename ()\
15298 {\
15299 \    case ${1} in\
15300 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15301 \      *  ) func_dirname_result="${3}" ;;\
15302 \    esac\
15303 \    func_basename_result="${1##*/}"\
15304 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15305   && mv -f "$cfgfile.tmp" "$cfgfile" \
15306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15307 test 0 -eq $? || _lt_function_replace_fail=:
15308
15309
15310   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15311 func_stripname ()\
15312 {\
15313 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15314 \    # positional parameters, so assign one to ordinary parameter first.\
15315 \    func_stripname_result=${3}\
15316 \    func_stripname_result=${func_stripname_result#"${1}"}\
15317 \    func_stripname_result=${func_stripname_result%"${2}"}\
15318 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15319   && mv -f "$cfgfile.tmp" "$cfgfile" \
15320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15321 test 0 -eq $? || _lt_function_replace_fail=:
15322
15323
15324   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15325 func_split_long_opt ()\
15326 {\
15327 \    func_split_long_opt_name=${1%%=*}\
15328 \    func_split_long_opt_arg=${1#*=}\
15329 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15330   && mv -f "$cfgfile.tmp" "$cfgfile" \
15331     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15332 test 0 -eq $? || _lt_function_replace_fail=:
15333
15334
15335   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15336 func_split_short_opt ()\
15337 {\
15338 \    func_split_short_opt_arg=${1#??}\
15339 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15340 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15341   && mv -f "$cfgfile.tmp" "$cfgfile" \
15342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15343 test 0 -eq $? || _lt_function_replace_fail=:
15344
15345
15346   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15347 func_lo2o ()\
15348 {\
15349 \    case ${1} in\
15350 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15351 \      *)    func_lo2o_result=${1} ;;\
15352 \    esac\
15353 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15354   && mv -f "$cfgfile.tmp" "$cfgfile" \
15355     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15356 test 0 -eq $? || _lt_function_replace_fail=:
15357
15358
15359   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15360 func_xform ()\
15361 {\
15362     func_xform_result=${1%.*}.lo\
15363 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15364   && mv -f "$cfgfile.tmp" "$cfgfile" \
15365     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15366 test 0 -eq $? || _lt_function_replace_fail=:
15367
15368
15369   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15370 func_arith ()\
15371 {\
15372     func_arith_result=$(( $* ))\
15373 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15374   && mv -f "$cfgfile.tmp" "$cfgfile" \
15375     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15376 test 0 -eq $? || _lt_function_replace_fail=:
15377
15378
15379   sed -e '/^func_len ()$/,/^} # func_len /c\
15380 func_len ()\
15381 {\
15382     func_len_result=${#1}\
15383 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15384   && mv -f "$cfgfile.tmp" "$cfgfile" \
15385     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15386 test 0 -eq $? || _lt_function_replace_fail=:
15387
15388 fi
15389
15390 if test x"$lt_shell_append" = xyes; then
15391   sed -e '/^func_append ()$/,/^} # func_append /c\
15392 func_append ()\
15393 {\
15394     eval "${1}+=\\${2}"\
15395 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15396   && mv -f "$cfgfile.tmp" "$cfgfile" \
15397     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15398 test 0 -eq $? || _lt_function_replace_fail=:
15399
15400
15401   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15402 func_append_quoted ()\
15403 {\
15404 \    func_quote_for_eval "${2}"\
15405 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15406 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15407   && mv -f "$cfgfile.tmp" "$cfgfile" \
15408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15409 test 0 -eq $? || _lt_function_replace_fail=:
15410
15411
15412   # Save a `func_append' function call where possible by direct use of '+='
15413   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15414     && mv -f "$cfgfile.tmp" "$cfgfile" \
15415       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15416   test 0 -eq $? || _lt_function_replace_fail=:
15417 else
15418   # Save a `func_append' function call even when '+=' is not available
15419   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15420     && mv -f "$cfgfile.tmp" "$cfgfile" \
15421       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15422   test 0 -eq $? || _lt_function_replace_fail=:
15423 fi
15424
15425 if test x"$_lt_function_replace_fail" = x":"; then
15426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15427 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15428 fi
15429
15430
15431    mv -f "$cfgfile" "$ofile" ||
15432     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15433   chmod +x "$ofile"
15434
15435  ;;
15436
15437   esac
15438 done # for ac_tag
15439
15440
15441 as_fn_exit 0
15442 _ACEOF
15443 ac_clean_files=$ac_clean_files_save
15444
15445 test $ac_write_fail = 0 ||
15446   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15447
15448
15449 # configure is writing to config.log, and then calls config.status.
15450 # config.status does its own redirection, appending to config.log.
15451 # Unfortunately, on DOS this fails, as config.log is still kept open
15452 # by configure, so config.status won't be able to write to it; its
15453 # output is simply discarded.  So we exec the FD to /dev/null,
15454 # effectively closing config.log, so it can be properly (re)opened and
15455 # appended to by config.status.  When coming back to configure, we
15456 # need to make the FD available again.
15457 if test "$no_create" != yes; then
15458   ac_cs_success=:
15459   ac_config_status_args=
15460   test "$silent" = yes &&
15461     ac_config_status_args="$ac_config_status_args --quiet"
15462   exec 5>/dev/null
15463   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15464   exec 5>>config.log
15465   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15466   # would make configure fail if this is the last instruction.
15467   $ac_cs_success || as_fn_exit 1
15468 fi
15469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15470   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15472 fi
15473