Imported Upstream version 1.0.10
[platform/upstream/fribidi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU FriBidi 1.0.10.
4 #
5 # Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/fribidi/fribidi/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='GNU FriBidi'
592 PACKAGE_TARNAME='fribidi'
593 PACKAGE_VERSION='1.0.10'
594 PACKAGE_STRING='GNU FriBidi 1.0.10'
595 PACKAGE_BUGREPORT='https://github.com/fribidi/fribidi/issues/new'
596 PACKAGE_URL='http://fribidi.org/'
597
598 ac_unique_file="fribidi.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 FRIBIDI_CPPFLAGS
640 LDFLAGS_FOR_BUILD
641 CPPFLAGS_FOR_BUILD
642 CFLAGS_FOR_BUILD
643 BUILD_OBJEXT
644 BUILD_EXEEXT
645 CPP_FOR_BUILD
646 ac_ct_CC_FOR_BUILD
647 CC_FOR_BUILD
648 SIZEOF_INT
649 PLATFORM_WIN32_FALSE
650 PLATFORM_WIN32_TRUE
651 OS_WIN32_FALSE
652 OS_WIN32_TRUE
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 LT_CURRENT_MINUS_AGE
657 LT_VERSION_INFO
658 FRIBIDI_MSVC_BUILD_PLACEHOLDER
659 FRIBIDI_BINARY_AGE
660 FRIBIDI_INTERFACE_AGE
661 FRIBIDI_INTERFACE_VERSION
662 FRIBIDI_VERSION
663 FRIBIDI_MICRO_VERSION
664 FRIBIDI_MINOR_VERSION
665 FRIBIDI_MAJOR_VERSION
666 CPP
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 ac_ct_AR
712 AR
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 AM_DEFAULT_V
716 AM_V
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_dependency_tracking
784 enable_static
785 enable_shared
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_debug
793 enable_deprecated
794 '
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 LT_SYS_LIBRARY_PATH
804 CPP
805 PKG_CONFIG
806 PKG_CONFIG_PATH
807 PKG_CONFIG_LIBDIR'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862   # If the previous option needs an argument, assign it.
863   if test -n "$ac_prev"; then
864     eval $ac_prev=\$ac_option
865     ac_prev=
866     continue
867   fi
868
869   case $ac_option in
870   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871   *=)   ac_optarg= ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error $? "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error $? "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263   elif test "x$build_alias" != "x$host_alias"; then
1264     cross_compiling=yes
1265   fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277   as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279   as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284   ac_srcdir_defaulted=yes
1285   # Try the directory containing this script, then the parent directory.
1286   ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288          X"$as_myself" : 'X\(//\)[^/]' \| \
1289          X"$as_myself" : 'X\(//\)$' \| \
1290          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)[^/].*/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\).*/{
1305             s//\1/
1306             q
1307           }
1308           s/.*/./; q'`
1309   srcdir=$ac_confdir
1310   if test ! -r "$srcdir/$ac_unique_file"; then
1311     srcdir=..
1312   fi
1313 else
1314   ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323         pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326   srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_env_${ac_var}_value=\$${ac_var}
1337   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345   # Omit some internal or obsolete options to make the list less imposing.
1346   # This message is too long to be a string in the A/UX 3.1 sh.
1347   cat <<_ACEOF
1348 \`configure' configures GNU FriBidi 1.0.10 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358   -h, --help              display this help and exit
1359       --help=short        display options specific to this package
1360       --help=recursive    display the short help of all the included packages
1361   -V, --version           display version information and exit
1362   -q, --quiet, --silent   do not print \`checking ...' messages
1363       --cache-file=FILE   cache test results in FILE [disabled]
1364   -C, --config-cache      alias for \`--cache-file=config.cache'
1365   -n, --no-create         do not create output files
1366       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369   --prefix=PREFIX         install architecture-independent files in PREFIX
1370                           [$ac_default_prefix]
1371   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                           [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382   --bindir=DIR            user executables [EPREFIX/bin]
1383   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384   --libexecdir=DIR        program executables [EPREFIX/libexec]
1385   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388   --libdir=DIR            object code libraries [EPREFIX/lib]
1389   --includedir=DIR        C header files [PREFIX/include]
1390   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393   --infodir=DIR           info documentation [DATAROOTDIR/info]
1394   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395   --mandir=DIR            man documentation [DATAROOTDIR/man]
1396   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1397   --htmldir=DIR           html documentation [DOCDIR]
1398   --dvidir=DIR            dvi documentation [DOCDIR]
1399   --pdfdir=DIR            pdf documentation [DOCDIR]
1400   --psdir=DIR             ps documentation [DOCDIR]
1401 _ACEOF
1402
1403   cat <<\_ACEOF
1404
1405 Program names:
1406   --program-prefix=PREFIX            prepend PREFIX to installed program names
1407   --program-suffix=SUFFIX            append SUFFIX to installed program names
1408   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410 System types:
1411   --build=BUILD     configure for building on BUILD [guessed]
1412   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417   case $ac_init_help in
1418      short | recursive ) echo "Configuration of GNU FriBidi 1.0.10:";;
1419    esac
1420   cat <<\_ACEOF
1421
1422 Optional Features:
1423   --disable-option-checking  ignore unrecognized --enable/--with options
1424   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426   --enable-silent-rules   less verbose build output (undo: "make V=1")
1427   --disable-silent-rules  verbose build output (undo: "make V=0")
1428   --enable-dependency-tracking
1429                           do not reject slow dependency extractors
1430   --disable-dependency-tracking
1431                           speeds up one-time build
1432   --enable-static[=PKGS]  build static libraries [default=no]
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-fast-install[=PKGS]
1435                           optimize for fast installation [default=yes]
1436   --disable-libtool-lock  avoid locking (might break parallel builds)
1437   --enable-debug          turn on debugging [default=no]
1438   --disable-deprecated    do not build deprecated functionality
1439
1440 Optional Packages:
1441   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1444                           both]
1445   --with-aix-soname=aix|svr4|both
1446                           shared library versioning (aka "SONAME") variant to
1447                           provide on AIX, [default=aix].
1448   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1449   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1450                           compiler's sysroot if not specified).
1451
1452 Some influential environment variables:
1453   CC          C compiler command
1454   CFLAGS      C compiler flags
1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456               nonstandard directory <lib dir>
1457   LIBS        libraries to pass to the linker, e.g. -l<library>
1458   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459               you have headers in a nonstandard directory <include dir>
1460   LT_SYS_LIBRARY_PATH
1461               User-defined run-time library search path.
1462   CPP         C preprocessor
1463   PKG_CONFIG  path to pkg-config utility
1464   PKG_CONFIG_PATH
1465               directories to add to pkg-config's search path
1466   PKG_CONFIG_LIBDIR
1467               path overriding pkg-config's built-in search path
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
1473 GNU FriBidi home page: <http://fribidi.org/>.
1474 General help using GNU software: <http://www.gnu.org/gethelp/>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" ||
1483       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484       continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 GNU FriBidi configure 1.0.10
1538 generated by GNU Autoconf 2.69
1539
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544   exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557   rm -f conftest.$ac_objext
1558   if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561   *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565   (eval "$ac_compile") 2>conftest.err
1566   ac_status=$?
1567   if test -s conftest.err; then
1568     grep -v '^ *+' conftest.err >conftest.er1
1569     cat conftest.er1 >&5
1570     mv -f conftest.er1 conftest.err
1571   fi
1572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573   test $ac_status = 0; } && {
1574          test -z "$ac_c_werror_flag" ||
1575          test ! -s conftest.err
1576        } && test -s conftest.$ac_objext; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582         ac_retval=1
1583 fi
1584   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585   as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   rm -f conftest.$ac_objext conftest$ac_exeext
1596   if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_link") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } && {
1612          test -z "$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        } && test -s conftest$ac_exeext && {
1615          test "$cross_compiling" = yes ||
1616          test -x conftest$ac_exeext
1617        }; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623         ac_retval=1
1624 fi
1625   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627   # interfere with the next link command; also delete a directory that is
1628   # left behind by Apple's compiler.  We do this before executing the actions.
1629   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631   as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_link
1634
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645   $as_echo_n "(cached) " >&6
1646 else
1647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h.  */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653   eval "$3=yes"
1654 else
1655   eval "$3=no"
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 fi
1659 eval ac_res=\$$3
1660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664 } # ac_fn_c_check_header_compile
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680   ac_status=$?
1681   if test -s conftest.err; then
1682     grep -v '^ *+' conftest.err >conftest.er1
1683     cat conftest.er1 >&5
1684     mv -f conftest.er1 conftest.err
1685   fi
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } > conftest.i && {
1688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689          test ! -s conftest.err
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696     ac_retval=1
1697 fi
1698   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699   as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1707 ac_fn_c_try_run ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717   (eval "$ac_link") 2>&5
1718   ac_status=$?
1719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721   { { case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_try") 2>&5
1728   ac_status=$?
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; }; }; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: program exited with status $ac_status" >&5
1734        $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737        ac_retval=$ac_status
1738 fi
1739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741   as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_run
1744
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754   $as_echo_n "(cached) " >&6
1755 else
1756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h.  */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763     which can conflict with char $2 (); below.
1764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765     <limits.h> exists even on freestanding compilers.  */
1766
1767 #ifdef __STDC__
1768 # include <limits.h>
1769 #else
1770 # include <assert.h>
1771 #endif
1772
1773 #undef $2
1774
1775 /* Override any GCC internal prototype to avoid an error.
1776    Use char because int might match the return type of a GCC
1777    builtin and then its argument prototype would still apply.  */
1778 #ifdef __cplusplus
1779 extern "C"
1780 #endif
1781 char $2 ();
1782 /* The GNU C library defines this for functions which it implements
1783     to always fail with ENOSYS.  Some functions are actually named
1784     something starting with __ and the normal name is an alias.  */
1785 #if defined __stub_$2 || defined __stub___$2
1786 choke me
1787 #endif
1788
1789 int
1790 main ()
1791 {
1792 return $2 ();
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_link "$LINENO"; then :
1798   eval "$3=yes"
1799 else
1800   eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext \
1803     conftest$ac_exeext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_func
1811
1812 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815 # the include files in INCLUDES and setting the cache variable VAR
1816 # accordingly.
1817 ac_fn_c_check_header_mongrel ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if eval \${$3+:} false; then :
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824   $as_echo_n "(cached) " >&6
1825 fi
1826 eval ac_res=\$$3
1827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 else
1830   # Is the header compilable?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832 $as_echo_n "checking $2 usability... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   ac_header_compiler=yes
1840 else
1841   ac_header_compiler=no
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845 $as_echo "$ac_header_compiler" >&6; }
1846
1847 # Is the header present?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849 $as_echo_n "checking $2 presence... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h.  */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_cpp "$LINENO"; then :
1855   ac_header_preproc=yes
1856 else
1857   ac_header_preproc=no
1858 fi
1859 rm -f conftest.err conftest.i conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861 $as_echo "$ac_header_preproc" >&6; }
1862
1863 # So?  What about this header?
1864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865   yes:no: )
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870     ;;
1871   no:yes:* )
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1875 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1879 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 ( $as_echo "## ------------------------------------------------------------ ##
1883 ## Report this to https://github.com/fribidi/fribidi/issues/new ##
1884 ## ------------------------------------------------------------ ##"
1885      ) | sed "s/^/$as_me: WARNING:     /" >&2
1886     ;;
1887 esac
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   eval "$3=\$ac_header_compiler"
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 fi
1899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_header_mongrel
1902
1903 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1904 # --------------------------------------------
1905 # Tries to find the compile-time value of EXPR in a program that includes
1906 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1907 # computed
1908 ac_fn_c_compute_int ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if test "$cross_compiling" = yes; then
1912     # Depending upon the size, compute the lo and hi bounds.
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 int
1917 main ()
1918 {
1919 static int test_array [1 - 2 * !(($2) >= 0)];
1920 test_array [0] = 0;
1921 return test_array [0];
1922
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   ac_lo=0 ac_mid=0
1929   while :; do
1930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0;
1938 return test_array [0];
1939
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   ac_hi=$ac_mid; break
1946 else
1947   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1948                         if test $ac_lo -le $ac_mid; then
1949                           ac_lo= ac_hi=
1950                           break
1951                         fi
1952                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955   done
1956 else
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) < 0)];
1964 test_array [0] = 0;
1965 return test_array [0];
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   ac_hi=-1 ac_mid=-1
1973   while :; do
1974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1981 test_array [0] = 0;
1982 return test_array [0];
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   ac_lo=$ac_mid; break
1990 else
1991   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1992                         if test $ac_mid -le $ac_hi; then
1993                           ac_lo= ac_hi=
1994                           break
1995                         fi
1996                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999   done
2000 else
2001   ac_lo= ac_hi=
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 # Binary search between lo and hi bounds.
2007 while test "x$ac_lo" != "x$ac_hi"; do
2008   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 int
2013 main ()
2014 {
2015 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2016 test_array [0] = 0;
2017 return test_array [0];
2018
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   ac_hi=$ac_mid
2025 else
2026   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030 case $ac_lo in #((
2031 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2032 '') ac_retval=1 ;;
2033 esac
2034   else
2035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 static long int longval () { return $2; }
2039 static unsigned long int ulongval () { return $2; }
2040 #include <stdio.h>
2041 #include <stdlib.h>
2042 int
2043 main ()
2044 {
2045
2046   FILE *f = fopen ("conftest.val", "w");
2047   if (! f)
2048     return 1;
2049   if (($2) < 0)
2050     {
2051       long int i = longval ();
2052       if (i != ($2))
2053         return 1;
2054       fprintf (f, "%ld", i);
2055     }
2056   else
2057     {
2058       unsigned long int i = ulongval ();
2059       if (i != ($2))
2060         return 1;
2061       fprintf (f, "%lu", i);
2062     }
2063   /* Do not output a trailing newline, as this causes \r\n confusion
2064      on some platforms.  */
2065   return ferror (f) || fclose (f) != 0;
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_run "$LINENO"; then :
2072   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2073 else
2074   ac_retval=1
2075 fi
2076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2077   conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 rm -f conftest.val
2079
2080   fi
2081   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082   as_fn_set_status $ac_retval
2083
2084 } # ac_fn_c_compute_int
2085 cat >config.log <<_ACEOF
2086 This file contains any messages produced by compilers while
2087 running configure, to aid debugging if configure makes a mistake.
2088
2089 It was created by GNU FriBidi $as_me 1.0.10, which was
2090 generated by GNU Autoconf 2.69.  Invocation command line was
2091
2092   $ $0 $@
2093
2094 _ACEOF
2095 exec 5>>config.log
2096 {
2097 cat <<_ASUNAME
2098 ## --------- ##
2099 ## Platform. ##
2100 ## --------- ##
2101
2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2107
2108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2109 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2110
2111 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2112 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2114 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2115 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2116 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2117 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2118
2119 _ASUNAME
2120
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126     $as_echo "PATH: $as_dir"
2127   done
2128 IFS=$as_save_IFS
2129
2130 } >&5
2131
2132 cat >&5 <<_ACEOF
2133
2134
2135 ## ----------- ##
2136 ## Core tests. ##
2137 ## ----------- ##
2138
2139 _ACEOF
2140
2141
2142 # Keep a trace of the command line.
2143 # Strip out --no-create and --no-recursion so they do not pile up.
2144 # Strip out --silent because we don't want to record it for future runs.
2145 # Also quote any args containing shell meta-characters.
2146 # Make two passes to allow for proper duplicate-argument suppression.
2147 ac_configure_args=
2148 ac_configure_args0=
2149 ac_configure_args1=
2150 ac_must_keep_next=false
2151 for ac_pass in 1 2
2152 do
2153   for ac_arg
2154   do
2155     case $ac_arg in
2156     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2157     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2158     | -silent | --silent | --silen | --sile | --sil)
2159       continue ;;
2160     *\'*)
2161       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2162     esac
2163     case $ac_pass in
2164     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2165     2)
2166       as_fn_append ac_configure_args1 " '$ac_arg'"
2167       if test $ac_must_keep_next = true; then
2168         ac_must_keep_next=false # Got value, back to normal.
2169       else
2170         case $ac_arg in
2171           *=* | --config-cache | -C | -disable-* | --disable-* \
2172           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2173           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2174           | -with-* | --with-* | -without-* | --without-* | --x)
2175             case "$ac_configure_args0 " in
2176               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177             esac
2178             ;;
2179           -* ) ac_must_keep_next=true ;;
2180         esac
2181       fi
2182       as_fn_append ac_configure_args " '$ac_arg'"
2183       ;;
2184     esac
2185   done
2186 done
2187 { ac_configure_args0=; unset ac_configure_args0;}
2188 { ac_configure_args1=; unset ac_configure_args1;}
2189
2190 # When interrupted or exit'd, cleanup temporary files, and complete
2191 # config.log.  We remove comments because anyway the quotes in there
2192 # would cause problems or look ugly.
2193 # WARNING: Use '\'' to represent an apostrophe within the trap.
2194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2195 trap 'exit_status=$?
2196   # Save into config.log some information that might help in debugging.
2197   {
2198     echo
2199
2200     $as_echo "## ---------------- ##
2201 ## Cache variables. ##
2202 ## ---------------- ##"
2203     echo
2204     # The following way of writing the cache mishandles newlines in values,
2205 (
2206   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2207     eval ac_val=\$$ac_var
2208     case $ac_val in #(
2209     *${as_nl}*)
2210       case $ac_var in #(
2211       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213       esac
2214       case $ac_var in #(
2215       _ | IFS | as_nl) ;; #(
2216       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2217       *) { eval $ac_var=; unset $ac_var;} ;;
2218       esac ;;
2219     esac
2220   done
2221   (set) 2>&1 |
2222     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2223     *${as_nl}ac_space=\ *)
2224       sed -n \
2225         "s/'\''/'\''\\\\'\'''\''/g;
2226           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227       ;; #(
2228     *)
2229       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2230       ;;
2231     esac |
2232     sort
2233 )
2234     echo
2235
2236     $as_echo "## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##"
2239     echo
2240     for ac_var in $ac_subst_vars
2241     do
2242       eval ac_val=\$$ac_var
2243       case $ac_val in
2244       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245       esac
2246       $as_echo "$ac_var='\''$ac_val'\''"
2247     done | sort
2248     echo
2249
2250     if test -n "$ac_subst_files"; then
2251       $as_echo "## ------------------- ##
2252 ## File substitutions. ##
2253 ## ------------------- ##"
2254       echo
2255       for ac_var in $ac_subst_files
2256       do
2257         eval ac_val=\$$ac_var
2258         case $ac_val in
2259         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260         esac
2261         $as_echo "$ac_var='\''$ac_val'\''"
2262       done | sort
2263       echo
2264     fi
2265
2266     if test -s confdefs.h; then
2267       $as_echo "## ----------- ##
2268 ## confdefs.h. ##
2269 ## ----------- ##"
2270       echo
2271       cat confdefs.h
2272       echo
2273     fi
2274     test "$ac_signal" != 0 &&
2275       $as_echo "$as_me: caught signal $ac_signal"
2276     $as_echo "$as_me: exit $exit_status"
2277   } >&5
2278   rm -f core *.core core.conftest.* &&
2279     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280     exit $exit_status
2281 ' 0
2282 for ac_signal in 1 2 13 15; do
2283   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284 done
2285 ac_signal=0
2286
2287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2288 rm -f -r conftest* confdefs.h
2289
2290 $as_echo "/* confdefs.h */" > confdefs.h
2291
2292 # Predefined preprocessor variables.
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_URL "$PACKAGE_URL"
2316 _ACEOF
2317
2318
2319 # Let the site file select an alternate cache file if it wants to.
2320 # Prefer an explicitly selected file to automatically selected ones.
2321 ac_site_file1=NONE
2322 ac_site_file2=NONE
2323 if test -n "$CONFIG_SITE"; then
2324   # We do not want a PATH search for config.site.
2325   case $CONFIG_SITE in #((
2326     -*)  ac_site_file1=./$CONFIG_SITE;;
2327     */*) ac_site_file1=$CONFIG_SITE;;
2328     *)   ac_site_file1=./$CONFIG_SITE;;
2329   esac
2330 elif test "x$prefix" != xNONE; then
2331   ac_site_file1=$prefix/share/config.site
2332   ac_site_file2=$prefix/etc/config.site
2333 else
2334   ac_site_file1=$ac_default_prefix/share/config.site
2335   ac_site_file2=$ac_default_prefix/etc/config.site
2336 fi
2337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2338 do
2339   test "x$ac_site_file" = xNONE && continue
2340   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343     sed 's/^/| /' "$ac_site_file" >&5
2344     . "$ac_site_file" \
2345       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 as_fn_error $? "failed to load site script $ac_site_file
2348 See \`config.log' for more details" "$LINENO" 5; }
2349   fi
2350 done
2351
2352 if test -r "$cache_file"; then
2353   # Some versions of bash will fail to source /dev/null (special files
2354   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2355   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2356     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357 $as_echo "$as_me: loading cache $cache_file" >&6;}
2358     case $cache_file in
2359       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2360       *)                      . "./$cache_file";;
2361     esac
2362   fi
2363 else
2364   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365 $as_echo "$as_me: creating cache $cache_file" >&6;}
2366   >$cache_file
2367 fi
2368
2369 # Check that the precious variables saved in the cache have kept the same
2370 # value.
2371 ac_cache_corrupted=false
2372 for ac_var in $ac_precious_vars; do
2373   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2374   eval ac_new_set=\$ac_env_${ac_var}_set
2375   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2376   eval ac_new_val=\$ac_env_${ac_var}_value
2377   case $ac_old_set,$ac_new_set in
2378     set,)
2379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2381       ac_cache_corrupted=: ;;
2382     ,set)
2383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2385       ac_cache_corrupted=: ;;
2386     ,);;
2387     *)
2388       if test "x$ac_old_val" != "x$ac_new_val"; then
2389         # differences in whitespace do not lead to failure.
2390         ac_old_val_w=`echo x $ac_old_val`
2391         ac_new_val_w=`echo x $ac_new_val`
2392         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2393           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395           ac_cache_corrupted=:
2396         else
2397           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2399           eval $ac_var=\$ac_old_val
2400         fi
2401         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2402 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2403         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2404 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2405       fi;;
2406   esac
2407   # Pass precious variables to config.status.
2408   if test "$ac_new_set" = set; then
2409     case $ac_new_val in
2410     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411     *) ac_arg=$ac_var=$ac_new_val ;;
2412     esac
2413     case " $ac_configure_args " in
2414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2415       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2416     esac
2417   fi
2418 done
2419 if $ac_cache_corrupted; then
2420   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2424   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2425 fi
2426 ## -------------------- ##
2427 ## Main body of script. ##
2428 ## -------------------- ##
2429
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435
2436
2437
2438
2439 ac_config_headers="$ac_config_headers config.h"
2440
2441
2442
2443 am__api_version='1.16'
2444
2445 ac_aux_dir=
2446 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2447   if test -f "$ac_dir/install-sh"; then
2448     ac_aux_dir=$ac_dir
2449     ac_install_sh="$ac_aux_dir/install-sh -c"
2450     break
2451   elif test -f "$ac_dir/install.sh"; then
2452     ac_aux_dir=$ac_dir
2453     ac_install_sh="$ac_aux_dir/install.sh -c"
2454     break
2455   elif test -f "$ac_dir/shtool"; then
2456     ac_aux_dir=$ac_dir
2457     ac_install_sh="$ac_aux_dir/shtool install -c"
2458     break
2459   fi
2460 done
2461 if test -z "$ac_aux_dir"; then
2462   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2463 fi
2464
2465 # These three variables are undocumented and unsupported,
2466 # and are intended to be withdrawn in a future Autoconf release.
2467 # They can cause serious problems if a builder's source tree is in a directory
2468 # whose full name contains unusual characters.
2469 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2470 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2471 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2472
2473
2474 # Find a good install program.  We prefer a C program (faster),
2475 # so one script is as good as another.  But avoid the broken or
2476 # incompatible versions:
2477 # SysV /etc/install, /usr/sbin/install
2478 # SunOS /usr/etc/install
2479 # IRIX /sbin/install
2480 # AIX /bin/install
2481 # AmigaOS /C/install, which installs bootblocks on floppy discs
2482 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2483 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2484 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2485 # OS/2's system install, which has a completely different semantic
2486 # ./install, which can be erroneously created by make from ./install.sh.
2487 # Reject install programs that cannot install multiple files.
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2489 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2490 if test -z "$INSTALL"; then
2491 if ${ac_cv_path_install+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499     # Account for people who put trailing slashes in PATH elements.
2500 case $as_dir/ in #((
2501   ./ | .// | /[cC]/* | \
2502   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2503   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2504   /usr/ucb/* ) ;;
2505   *)
2506     # OSF1 and SCO ODT 3.0 have their own names for install.
2507     # Don't use installbsd from OSF since it installs stuff as root
2508     # by default.
2509     for ac_prog in ginstall scoinst install; do
2510       for ac_exec_ext in '' $ac_executable_extensions; do
2511         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2512           if test $ac_prog = install &&
2513             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514             # AIX install.  It has an incompatible calling convention.
2515             :
2516           elif test $ac_prog = install &&
2517             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518             # program-specific install script used by HP pwplus--don't use.
2519             :
2520           else
2521             rm -rf conftest.one conftest.two conftest.dir
2522             echo one > conftest.one
2523             echo two > conftest.two
2524             mkdir conftest.dir
2525             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2526               test -s conftest.one && test -s conftest.two &&
2527               test -s conftest.dir/conftest.one &&
2528               test -s conftest.dir/conftest.two
2529             then
2530               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2531               break 3
2532             fi
2533           fi
2534         fi
2535       done
2536     done
2537     ;;
2538 esac
2539
2540   done
2541 IFS=$as_save_IFS
2542
2543 rm -rf conftest.one conftest.two conftest.dir
2544
2545 fi
2546   if test "${ac_cv_path_install+set}" = set; then
2547     INSTALL=$ac_cv_path_install
2548   else
2549     # As a last resort, use the slow shell script.  Don't cache a
2550     # value for INSTALL within a source directory, because that will
2551     # break other packages using the cache if that directory is
2552     # removed, or if the value is a relative name.
2553     INSTALL=$ac_install_sh
2554   fi
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2557 $as_echo "$INSTALL" >&6; }
2558
2559 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560 # It thinks the first close brace ends the variable substitution.
2561 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
2563 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564
2565 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2568 $as_echo_n "checking whether build environment is sane... " >&6; }
2569 # Reject unsafe characters in $srcdir or the absolute working directory
2570 # name.  Accept space and tab only in the latter.
2571 am_lf='
2572 '
2573 case `pwd` in
2574   *[\\\"\#\$\&\'\`$am_lf]*)
2575     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2576 esac
2577 case $srcdir in
2578   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2579     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2580 esac
2581
2582 # Do 'set' in a subshell so we don't clobber the current shell's
2583 # arguments.  Must try -L first in case configure is actually a
2584 # symlink; some systems play weird games with the mod time of symlinks
2585 # (eg FreeBSD returns the mod time of the symlink's containing
2586 # directory).
2587 if (
2588    am_has_slept=no
2589    for am_try in 1 2; do
2590      echo "timestamp, slept: $am_has_slept" > conftest.file
2591      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2592      if test "$*" = "X"; then
2593         # -L didn't work.
2594         set X `ls -t "$srcdir/configure" conftest.file`
2595      fi
2596      if test "$*" != "X $srcdir/configure conftest.file" \
2597         && test "$*" != "X conftest.file $srcdir/configure"; then
2598
2599         # If neither matched, then we have a broken ls.  This can happen
2600         # if, for instance, CONFIG_SHELL is bash and it inherits a
2601         # broken ls alias from the environment.  This has actually
2602         # happened.  Such a system could not be considered "sane".
2603         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2604   alias in your environment" "$LINENO" 5
2605      fi
2606      if test "$2" = conftest.file || test $am_try -eq 2; then
2607        break
2608      fi
2609      # Just in case.
2610      sleep 1
2611      am_has_slept=yes
2612    done
2613    test "$2" = conftest.file
2614    )
2615 then
2616    # Ok.
2617    :
2618 else
2619    as_fn_error $? "newly created file is older than distributed files!
2620 Check your system clock" "$LINENO" 5
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623 $as_echo "yes" >&6; }
2624 # If we didn't sleep, we still need to ensure time stamps of config.status and
2625 # generated files are strictly newer.
2626 am_sleep_pid=
2627 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2628   ( sleep 1 ) &
2629   am_sleep_pid=$!
2630 fi
2631
2632 rm -f conftest.file
2633
2634 test "$program_prefix" != NONE &&
2635   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2636 # Use a double $ so make ignores it.
2637 test "$program_suffix" != NONE &&
2638   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2639 # Double any \ or $.
2640 # By default was `s,x,x', remove it if useless.
2641 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2642 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2643
2644 # Expand $ac_aux_dir to an absolute path.
2645 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2646
2647 if test x"${MISSING+set}" != xset; then
2648   case $am_aux_dir in
2649   *\ * | *\     *)
2650     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2651   *)
2652     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2653   esac
2654 fi
2655 # Use eval to expand $SHELL
2656 if eval "$MISSING --is-lightweight"; then
2657   am_missing_run="$MISSING "
2658 else
2659   am_missing_run=
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2661 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2662 fi
2663
2664 if test x"${install_sh+set}" != xset; then
2665   case $am_aux_dir in
2666   *\ * | *\     *)
2667     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2668   *)
2669     install_sh="\${SHELL} $am_aux_dir/install-sh"
2670   esac
2671 fi
2672
2673 # Installed binaries are usually stripped using 'strip' when the user
2674 # run "make install-strip".  However 'strip' might not be the right
2675 # tool to use in cross-compilation environments, therefore Automake
2676 # will honor the 'STRIP' environment variable to overrule this program.
2677 if test "$cross_compiling" != no; then
2678   if test -n "$ac_tool_prefix"; then
2679   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_STRIP+:} false; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$STRIP"; then
2687   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     for ac_exec_ext in '' $ac_executable_extensions; do
2695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2709 $as_echo "$STRIP" >&6; }
2710 else
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 fi
2717 if test -z "$ac_cv_prog_STRIP"; then
2718   ac_ct_STRIP=$STRIP
2719   # Extract the first word of "strip", so it can be a program name with args.
2720 set dummy strip; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   if test -n "$ac_ct_STRIP"; then
2727   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_exec_ext in '' $ac_executable_extensions; do
2735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736     ac_cv_prog_ac_ct_STRIP="strip"
2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741   done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2747 if test -n "$ac_ct_STRIP"; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2749 $as_echo "$ac_ct_STRIP" >&6; }
2750 else
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755   if test "x$ac_ct_STRIP" = x; then
2756     STRIP=":"
2757   else
2758     case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764     STRIP=$ac_ct_STRIP
2765   fi
2766 else
2767   STRIP="$ac_cv_prog_STRIP"
2768 fi
2769
2770 fi
2771 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2774 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2775 if test -z "$MKDIR_P"; then
2776   if ${ac_cv_path_mkdir+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_prog in mkdir gmkdir; do
2785          for ac_exec_ext in '' $ac_executable_extensions; do
2786            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2787            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2788              'mkdir (GNU coreutils) '* | \
2789              'mkdir (coreutils) '* | \
2790              'mkdir (fileutils) '4.1*)
2791                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2792                break 3;;
2793            esac
2794          done
2795        done
2796   done
2797 IFS=$as_save_IFS
2798
2799 fi
2800
2801   test -d ./--version && rmdir ./--version
2802   if test "${ac_cv_path_mkdir+set}" = set; then
2803     MKDIR_P="$ac_cv_path_mkdir -p"
2804   else
2805     # As a last resort, use the slow shell script.  Don't cache a
2806     # value for MKDIR_P within a source directory, because that will
2807     # break other packages using the cache if that directory is
2808     # removed, or if the value is a relative name.
2809     MKDIR_P="$ac_install_sh -d"
2810   fi
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2813 $as_echo "$MKDIR_P" >&6; }
2814
2815 for ac_prog in gawk mawk nawk awk
2816 do
2817   # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_AWK+:} false; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   if test -n "$AWK"; then
2825   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832     for ac_exec_ext in '' $ac_executable_extensions; do
2833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834     ac_cv_prog_AWK="$ac_prog"
2835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836     break 2
2837   fi
2838 done
2839   done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 AWK=$ac_cv_prog_AWK
2845 if test -n "$AWK"; then
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2847 $as_echo "$AWK" >&6; }
2848 else
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854   test -n "$AWK" && break
2855 done
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2858 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2859 set x ${MAKE-make}
2860 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2861 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   cat >conftest.make <<\_ACEOF
2865 SHELL = /bin/sh
2866 all:
2867         @echo '@@@%%%=$(MAKE)=@@@%%%'
2868 _ACEOF
2869 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2870 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2871   *@@@%%%=?*=@@@%%%*)
2872     eval ac_cv_prog_make_${ac_make}_set=yes;;
2873   *)
2874     eval ac_cv_prog_make_${ac_make}_set=no;;
2875 esac
2876 rm -f conftest.make
2877 fi
2878 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880 $as_echo "yes" >&6; }
2881   SET_MAKE=
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885   SET_MAKE="MAKE=${MAKE-make}"
2886 fi
2887
2888 rm -rf .tst 2>/dev/null
2889 mkdir .tst 2>/dev/null
2890 if test -d .tst; then
2891   am__leading_dot=.
2892 else
2893   am__leading_dot=_
2894 fi
2895 rmdir .tst 2>/dev/null
2896
2897 # Check whether --enable-silent-rules was given.
2898 if test "${enable_silent_rules+set}" = set; then :
2899   enableval=$enable_silent_rules;
2900 fi
2901
2902 case $enable_silent_rules in # (((
2903   yes) AM_DEFAULT_VERBOSITY=0;;
2904    no) AM_DEFAULT_VERBOSITY=1;;
2905     *) AM_DEFAULT_VERBOSITY=1;;
2906 esac
2907 am_make=${MAKE-make}
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2909 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2910 if ${am_cv_make_support_nested_variables+:} false; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   if $as_echo 'TRUE=$(BAR$(V))
2914 BAR0=false
2915 BAR1=true
2916 V=1
2917 am__doit:
2918         @$(TRUE)
2919 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2920   am_cv_make_support_nested_variables=yes
2921 else
2922   am_cv_make_support_nested_variables=no
2923 fi
2924 fi
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2926 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2927 if test $am_cv_make_support_nested_variables = yes; then
2928     AM_V='$(V)'
2929   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2930 else
2931   AM_V=$AM_DEFAULT_VERBOSITY
2932   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2933 fi
2934 AM_BACKSLASH='\'
2935
2936 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2937   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2938   # is not polluted with repeated "-I."
2939   am__isrc=' -I$(srcdir)'
2940   # test to see if srcdir already configured
2941   if test -f $srcdir/config.status; then
2942     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2943   fi
2944 fi
2945
2946 # test whether we have cygpath
2947 if test -z "$CYGPATH_W"; then
2948   if (cygpath --version) >/dev/null 2>/dev/null; then
2949     CYGPATH_W='cygpath -w'
2950   else
2951     CYGPATH_W=echo
2952   fi
2953 fi
2954
2955
2956 # Define the identity of the package.
2957  PACKAGE='fribidi'
2958  VERSION='1.0.10'
2959
2960
2961 # Some tools Automake needs.
2962
2963 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964
2965
2966 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967
2968
2969 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970
2971
2972 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973
2974
2975 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2976
2977 # For better backward compatibility.  To be removed once Automake 1.9.x
2978 # dies out for good.  For more background, see:
2979 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2980 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2981 mkdir_p='$(MKDIR_P)'
2982
2983 # We need awk for the "check" target (and possibly the TAP driver).  The
2984 # system "awk" is bad on some platforms.
2985 # Always define AMTAR for backward compatibility.  Yes, it's still used
2986 # in the wild :-(  We should find a proper way to deprecate it ...
2987 AMTAR='$${TAR-tar}'
2988
2989
2990 # We'll loop over all known methods to create a tar archive until one works.
2991 _am_tools='gnutar  pax cpio none'
2992
2993 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2994
2995
2996
2997
2998
2999
3000 # POSIX will say in a future version that running "rm -f" with no argument
3001 # is OK; and we want to be able to make that assumption in our Makefile
3002 # recipes.  So use an aggressive probe to check that the usage we want is
3003 # actually supported "in the wild" to an acceptable degree.
3004 # See automake bug#10828.
3005 # To make any issue more visible, cause the running configure to be aborted
3006 # by default if the 'rm' program in use doesn't match our expectations; the
3007 # user can still override this though.
3008 if rm -f && rm -fr && rm -rf; then : OK; else
3009   cat >&2 <<'END'
3010 Oops!
3011
3012 Your 'rm' program seems unable to run without file operands specified
3013 on the command line, even when the '-f' option is present.  This is contrary
3014 to the behaviour of most rm programs out there, and not conforming with
3015 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3016
3017 Please tell bug-automake@gnu.org about your system, including the value
3018 of your $PATH and any error possibly output before this message.  This
3019 can help us improve future automake versions.
3020
3021 END
3022   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3023     echo 'Configuration will proceed anyway, since you have set the' >&2
3024     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3025     echo >&2
3026   else
3027     cat >&2 <<'END'
3028 Aborting the configuration process, to ensure you take notice of the issue.
3029
3030 You can download and install GNU coreutils to get an 'rm' implementation
3031 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3032
3033 If you want to complete the configuration process using your problematic
3034 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3035 to "yes", and re-run configure.
3036
3037 END
3038     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3039   fi
3040 fi
3041
3042 # Check whether --enable-silent-rules was given.
3043 if test "${enable_silent_rules+set}" = set; then :
3044   enableval=$enable_silent_rules;
3045 fi
3046
3047 case $enable_silent_rules in # (((
3048   yes) AM_DEFAULT_VERBOSITY=0;;
3049    no) AM_DEFAULT_VERBOSITY=1;;
3050     *) AM_DEFAULT_VERBOSITY=0;;
3051 esac
3052 am_make=${MAKE-make}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3054 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3055 if ${am_cv_make_support_nested_variables+:} false; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   if $as_echo 'TRUE=$(BAR$(V))
3059 BAR0=false
3060 BAR1=true
3061 V=1
3062 am__doit:
3063         @$(TRUE)
3064 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3065   am_cv_make_support_nested_variables=yes
3066 else
3067   am_cv_make_support_nested_variables=no
3068 fi
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3071 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3072 if test $am_cv_make_support_nested_variables = yes; then
3073     AM_V='$(V)'
3074   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3075 else
3076   AM_V=$AM_DEFAULT_VERBOSITY
3077   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3078 fi
3079 AM_BACKSLASH='\'
3080
3081
3082 DEPDIR="${am__leading_dot}deps"
3083
3084 ac_config_commands="$ac_config_commands depfiles"
3085
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3087 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3088 cat > confinc.mk << 'END'
3089 am__doit:
3090         @echo this is the am__doit target >confinc.out
3091 .PHONY: am__doit
3092 END
3093 am__include="#"
3094 am__quote=
3095 # BSD make does it like this.
3096 echo '.include "confinc.mk" # ignored' > confmf.BSD
3097 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3098 echo 'include confinc.mk # ignored' > confmf.GNU
3099 _am_result=no
3100 for s in GNU BSD; do
3101   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3102    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3103    ac_status=$?
3104    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105    (exit $ac_status); }
3106   case $?:`cat confinc.out 2>/dev/null` in #(
3107   '0:this is the am__doit target') :
3108     case $s in #(
3109   BSD) :
3110     am__include='.include' am__quote='"' ;; #(
3111   *) :
3112     am__include='include' am__quote='' ;;
3113 esac ;; #(
3114   *) :
3115      ;;
3116 esac
3117   if test "$am__include" != "#"; then
3118     _am_result="yes ($s style)"
3119     break
3120   fi
3121 done
3122 rm -f confinc.* confmf.*
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3124 $as_echo "${_am_result}" >&6; }
3125
3126 # Check whether --enable-dependency-tracking was given.
3127 if test "${enable_dependency_tracking+set}" = set; then :
3128   enableval=$enable_dependency_tracking;
3129 fi
3130
3131 if test "x$enable_dependency_tracking" != xno; then
3132   am_depcomp="$ac_aux_dir/depcomp"
3133   AMDEPBACKSLASH='\'
3134   am__nodep='_no'
3135 fi
3136  if test "x$enable_dependency_tracking" != xno; then
3137   AMDEP_TRUE=
3138   AMDEP_FALSE='#'
3139 else
3140   AMDEP_TRUE='#'
3141   AMDEP_FALSE=
3142 fi
3143
3144
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 if test -n "$ac_tool_prefix"; then
3151   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if test -n "$CC"; then
3159   ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$ac_cv_prog_CC"; then
3190   ac_ct_CC=$CC
3191   # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$ac_ct_CC"; then
3199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208     ac_cv_prog_ac_ct_CC="gcc"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227   if test "x$ac_ct_CC" = x; then
3228     CC=""
3229   else
3230     case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236     CC=$ac_ct_CC
3237   fi
3238 else
3239   CC="$ac_cv_prog_CC"
3240 fi
3241
3242 if test -z "$CC"; then
3243           if test -n "$ac_tool_prefix"; then
3244     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}cc; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_CC+:} false; then :
3249   $as_echo_n "(cached) " >&6
3250 else
3251   if test -n "$CC"; then
3252   ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261     ac_cv_prog_CC="${ac_tool_prefix}cc"
3262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266   done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281   fi
3282 fi
3283 if test -z "$CC"; then
3284   # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_CC+:} false; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   if test -n "$CC"; then
3292   ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294   ac_prog_rejected=no
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303        ac_prog_rejected=yes
3304        continue
3305      fi
3306     ac_cv_prog_CC="cc"
3307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311   done
3312 IFS=$as_save_IFS
3313
3314 if test $ac_prog_rejected = yes; then
3315   # We found a bogon in the path, so make sure we never use it.
3316   set dummy $ac_cv_prog_CC
3317   shift
3318   if test $# != 0; then
3319     # We chose a different compiler from the bogus one.
3320     # However, it has the same basename, so the bogon will be chosen
3321     # first if we set CC to just the basename; use the full file name.
3322     shift
3323     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324   fi
3325 fi
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 fi
3339 if test -z "$CC"; then
3340   if test -n "$ac_tool_prefix"; then
3341   for ac_prog in cl.exe
3342   do
3343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$CC"; then
3351   ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380     test -n "$CC" && break
3381   done
3382 fi
3383 if test -z "$CC"; then
3384   ac_ct_CC=$CC
3385   for ac_prog in cl.exe
3386 do
3387   # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3392   $as_echo_n "(cached) " >&6
3393 else
3394   if test -n "$ac_ct_CC"; then
3395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402     for ac_exec_ext in '' $ac_executable_extensions; do
3403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404     ac_cv_prog_ac_ct_CC="$ac_prog"
3405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409   done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417 $as_echo "$ac_ct_CC" >&6; }
3418 else
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424   test -n "$ac_ct_CC" && break
3425 done
3426
3427   if test "x$ac_ct_CC" = x; then
3428     CC=""
3429   else
3430     case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436     CC=$ac_ct_CC
3437   fi
3438 fi
3439
3440 fi
3441
3442
3443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "no acceptable C compiler found in \$PATH
3446 See \`config.log' for more details" "$LINENO" 5; }
3447
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 for ac_option in --version -v -V -qversion; do
3453   { { ac_try="$ac_compiler $ac_option >&5"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461   ac_status=$?
3462   if test -s conftest.err; then
3463     sed '10a\
3464 ... rest of stderr output deleted ...
3465          10q' conftest.err >conftest.er1
3466     cat conftest.er1 >&5
3467   fi
3468   rm -f conftest.er1 conftest.err
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }
3471 done
3472
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3488 # of exeext.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3490 $as_echo_n "checking whether the C compiler works... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
3496 ac_rmfiles=
3497 for ac_file in $ac_files
3498 do
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502   esac
3503 done
3504 rm -f $ac_rmfiles
3505
3506 if { { ac_try="$ac_link_default"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link_default") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3521 # Autoconf.
3522 for ac_file in $ac_files ''
3523 do
3524   test -f "$ac_file" || continue
3525   case $ac_file in
3526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527         ;;
3528     [ab].out )
3529         # We found the default executable, but exeext='' is most
3530         # certainly right.
3531         break;;
3532     *.* )
3533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534         then :; else
3535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536         fi
3537         # We set ac_cv_exeext here because the later test for it is not
3538         # safe: cross compilers may not add the suffix if given an `-o'
3539         # argument, so we may need to know it at that point already.
3540         # Even if this section looks crufty: it has the advantage of
3541         # actually working.
3542         break;;
3543     * )
3544         break;;
3545   esac
3546 done
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
3549 else
3550   ac_file=''
3551 fi
3552 if test -z "$ac_file"; then :
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error 77 "C compiler cannot create executables
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3571
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_link") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586   test $ac_status = 0; }; then :
3587   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 # `rm'.
3591 for ac_file in conftest.exe conftest conftest.*; do
3592   test -f "$ac_file" || continue
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596           break;;
3597     * ) break;;
3598   esac
3599 done
3600 else
3601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details" "$LINENO" 5; }
3605 fi
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3609
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3612 ac_exeext=$EXEEXT
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <stdio.h>
3616 int
3617 main ()
3618 {
3619 FILE *f = fopen ("conftest.out", "w");
3620  return ferror (f) || fclose (f) != 0;
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632   { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_link") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }
3643   if { ac_try='./conftest$ac_cv_exeext'
3644   { { case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }; }; then
3654     cross_compiling=no
3655   else
3656     if test "$cross_compiling" = maybe; then
3657         cross_compiling=yes
3658     else
3659         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details" "$LINENO" 5; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3669
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if ${ac_cv_objext+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
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_compile") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   for ac_file in conftest.o conftest.obj conftest.*; do
3701   test -f "$ac_file" || continue;
3702   case $ac_file in
3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3705        break;;
3706   esac
3707 done
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3722 ac_objext=$OBJEXT
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3725 if ${ac_cv_c_compiler_gnu+:} false; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734 #ifndef __GNUC__
3735        choke me
3736 #endif
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743   ac_compiler_gnu=yes
3744 else
3745   ac_compiler_gnu=no
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3754   GCC=yes
3755 else
3756   GCC=
3757 fi
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if ${ac_cv_prog_cc_g+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   ac_save_c_werror_flag=$ac_c_werror_flag
3766    ac_c_werror_flag=yes
3767    ac_cv_prog_cc_g=no
3768    CFLAGS="-g"
3769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_cv_prog_cc_g=yes
3782 else
3783   CFLAGS=""
3784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796
3797 else
3798   ac_c_werror_flag=$ac_save_c_werror_flag
3799          CFLAGS="-g"
3800          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812   ac_cv_prog_cc_g=yes
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819    ac_c_werror_flag=$ac_save_c_werror_flag
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824   CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826   if test "$GCC" = yes; then
3827     CFLAGS="-g -O2"
3828   else
3829     CFLAGS="-g"
3830   fi
3831 else
3832   if test "$GCC" = yes; then
3833     CFLAGS="-O2"
3834   else
3835     CFLAGS=
3836   fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if ${ac_cv_prog_cc_c89+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   ac_cv_prog_cc_c89=no
3844 ac_save_CC=$CC
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847 #include <stdarg.h>
3848 #include <stdio.h>
3849 struct stat;
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854      char **p;
3855      int i;
3856 {
3857   return p[i];
3858 }
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3860 {
3861   char *s;
3862   va_list v;
3863   va_start (v,p);
3864   s = g (p, va_arg (v,int));
3865   va_end (v);
3866   return s;
3867 }
3868
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3870    function prototypes and stuff, but not '\xHH' hex character constants.
3871    These don't provoke an error unfortunately, instead are silently treated
3872    as 'x'.  The following induces an error, until -std is added to get
3873    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3874    array size at least.  It's necessary to write '\x00'==0 to get something
3875    that's true only with -std.  */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879    inside strings and character constants.  */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3889 int
3890 main ()
3891 {
3892 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 do
3900   CC="$ac_save_CC $ac_arg"
3901   if ac_fn_c_try_compile "$LINENO"; then :
3902   ac_cv_prog_cc_c89=$ac_arg
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext
3905   test "x$ac_cv_prog_cc_c89" != "xno" && break
3906 done
3907 rm -f conftest.$ac_ext
3908 CC=$ac_save_CC
3909
3910 fi
3911 # AC_CACHE_VAL
3912 case "x$ac_cv_prog_cc_c89" in
3913   x)
3914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3915 $as_echo "none needed" >&6; } ;;
3916   xno)
3917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3918 $as_echo "unsupported" >&6; } ;;
3919   *)
3920     CC="$CC $ac_cv_prog_cc_c89"
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3922 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3923 esac
3924 if test "x$ac_cv_prog_cc_c89" != xno; then :
3925
3926 fi
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3940 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3941 if ${am_cv_prog_cc_c_o+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955   # Make sure it works both with $CC and with simple cc.
3956   # Following AC_PROG_CC_C_O, we do the test twice because some
3957   # compilers refuse to overwrite an existing .o file with -o,
3958   # though they will create one.
3959   am_cv_prog_cc_c_o=yes
3960   for am_i in 1 2; do
3961     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3962    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3963    ac_status=$?
3964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965    (exit $ac_status); } \
3966          && test -f conftest2.$ac_objext; then
3967       : OK
3968     else
3969       am_cv_prog_cc_c_o=no
3970       break
3971     fi
3972   done
3973   rm -f core conftest*
3974   unset am_i
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3977 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3978 if test "$am_cv_prog_cc_c_o" != yes; then
3979    # Losing compiler, so override with the script.
3980    # FIXME: It is wrong to rewrite CC.
3981    # But if we don't then we get into trouble of one sort or another.
3982    # A longer-term fix would be to have automake use am__CC in this case,
3983    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3984    CC="$am_aux_dir/compile $CC"
3985 fi
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992
3993 depcc="$CC"   am_compiler_list=
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3996 $as_echo_n "checking dependency style of $depcc... " >&6; }
3997 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4001   # We make a subdir and do the tests there.  Otherwise we can end up
4002   # making bogus files that we don't know about and never remove.  For
4003   # instance it was reported that on HP-UX the gcc test will end up
4004   # making a dummy file named 'D' -- because '-MD' means "put the output
4005   # in D".
4006   rm -rf conftest.dir
4007   mkdir conftest.dir
4008   # Copy depcomp to subdir because otherwise we won't find it if we're
4009   # using a relative directory.
4010   cp "$am_depcomp" conftest.dir
4011   cd conftest.dir
4012   # We will build objects and dependencies in a subdirectory because
4013   # it helps to detect inapplicable dependency modes.  For instance
4014   # both Tru64's cc and ICC support -MD to output dependencies as a
4015   # side effect of compilation, but ICC will put the dependencies in
4016   # the current directory while Tru64 will put them in the object
4017   # directory.
4018   mkdir sub
4019
4020   am_cv_CC_dependencies_compiler_type=none
4021   if test "$am_compiler_list" = ""; then
4022      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4023   fi
4024   am__universal=false
4025   case " $depcc " in #(
4026      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4027      esac
4028
4029   for depmode in $am_compiler_list; do
4030     # Setup a source with many dependencies, because some compilers
4031     # like to wrap large dependency lists on column 80 (with \), and
4032     # we should not choose a depcomp mode which is confused by this.
4033     #
4034     # We need to recreate these files for each test, as the compiler may
4035     # overwrite some of them when testing with obscure command lines.
4036     # This happens at least with the AIX C compiler.
4037     : > sub/conftest.c
4038     for i in 1 2 3 4 5 6; do
4039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4040       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4041       # Solaris 10 /bin/sh.
4042       echo '/* dummy */' > sub/conftst$i.h
4043     done
4044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4045
4046     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4047     # mode.  It turns out that the SunPro C++ compiler does not properly
4048     # handle '-M -o', and we need to detect this.  Also, some Intel
4049     # versions had trouble with output in subdirs.
4050     am__obj=sub/conftest.${OBJEXT-o}
4051     am__minus_obj="-o $am__obj"
4052     case $depmode in
4053     gcc)
4054       # This depmode causes a compiler race in universal mode.
4055       test "$am__universal" = false || continue
4056       ;;
4057     nosideeffect)
4058       # After this tag, mechanisms are not by side-effect, so they'll
4059       # only be used when explicitly requested.
4060       if test "x$enable_dependency_tracking" = xyes; then
4061         continue
4062       else
4063         break
4064       fi
4065       ;;
4066     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4067       # This compiler won't grok '-c -o', but also, the minuso test has
4068       # not run yet.  These depmodes are late enough in the game, and
4069       # so weak that their functioning should not be impacted.
4070       am__obj=conftest.${OBJEXT-o}
4071       am__minus_obj=
4072       ;;
4073     none) break ;;
4074     esac
4075     if depmode=$depmode \
4076        source=sub/conftest.c object=$am__obj \
4077        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4078        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4079          >/dev/null 2>conftest.err &&
4080        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4081        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4082        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4083        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4084       # icc doesn't choke on unknown options, it will just issue warnings
4085       # or remarks (even with -Werror).  So we grep stderr for any message
4086       # that says an option was ignored or not supported.
4087       # When given -MP, icc 7.0 and 7.1 complain thusly:
4088       #   icc: Command line warning: ignoring option '-M'; no argument required
4089       # The diagnosis changed in icc 8.0:
4090       #   icc: Command line remark: option '-MP' not supported
4091       if (grep 'ignoring option' conftest.err ||
4092           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4093         am_cv_CC_dependencies_compiler_type=$depmode
4094         break
4095       fi
4096     fi
4097   done
4098
4099   cd ..
4100   rm -rf conftest.dir
4101 else
4102   am_cv_CC_dependencies_compiler_type=none
4103 fi
4104
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109
4110  if
4111   test "x$enable_dependency_tracking" != xno \
4112   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4113   am__fastdepCC_TRUE=
4114   am__fastdepCC_FALSE='#'
4115 else
4116   am__fastdepCC_TRUE='#'
4117   am__fastdepCC_FALSE=
4118 fi
4119
4120
4121
4122 if test -n "$ac_tool_prefix"; then
4123   for ac_prog in ar lib "link -lib"
4124   do
4125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_AR+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test -n "$AR"; then
4133   ac_cv_prog_AR="$AR" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147   done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 AR=$ac_cv_prog_AR
4153 if test -n "$AR"; then
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4155 $as_echo "$AR" >&6; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162     test -n "$AR" && break
4163   done
4164 fi
4165 if test -z "$AR"; then
4166   ac_ct_AR=$AR
4167   for ac_prog in ar lib "link -lib"
4168 do
4169   # Extract the first word of "$ac_prog", so it can be a program name with args.
4170 set dummy $ac_prog; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   if test -n "$ac_ct_AR"; then
4177   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186     ac_cv_prog_ac_ct_AR="$ac_prog"
4187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188     break 2
4189   fi
4190 done
4191   done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4197 if test -n "$ac_ct_AR"; then
4198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4199 $as_echo "$ac_ct_AR" >&6; }
4200 else
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205
4206   test -n "$ac_ct_AR" && break
4207 done
4208
4209   if test "x$ac_ct_AR" = x; then
4210     AR="false"
4211   else
4212     case $cross_compiling:$ac_tool_warned in
4213 yes:)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218     AR=$ac_ct_AR
4219   fi
4220 fi
4221
4222 : ${AR=ar}
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4225 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4226 if ${am_cv_ar_interface+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235    am_cv_ar_interface=ar
4236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 int some_variable = 0;
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4242       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4243   (eval $am_ar_try) 2>&5
4244   ac_status=$?
4245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246   test $ac_status = 0; }
4247       if test "$ac_status" -eq 0; then
4248         am_cv_ar_interface=ar
4249       else
4250         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4251         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4252   (eval $am_ar_try) 2>&5
4253   ac_status=$?
4254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255   test $ac_status = 0; }
4256         if test "$ac_status" -eq 0; then
4257           am_cv_ar_interface=lib
4258         else
4259           am_cv_ar_interface=unknown
4260         fi
4261       fi
4262       rm -f conftest.lib libconftest.a
4263
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266    ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4274 $as_echo "$am_cv_ar_interface" >&6; }
4275
4276 case $am_cv_ar_interface in
4277 ar)
4278   ;;
4279 lib)
4280   # Microsoft lib, so override with the ar-lib wrapper script.
4281   # FIXME: It is wrong to rewrite AR.
4282   # But if we don't then we get into trouble of one sort or another.
4283   # A longer-term fix would be to have automake use am__AR in this case,
4284   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4285   # similar.
4286   AR="$am_aux_dir/ar-lib $AR"
4287   ;;
4288 unknown)
4289   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4290   ;;
4291 esac
4292
4293
4294 # Initialize libtool
4295
4296 case `pwd` in
4297   *\ * | *\     *)
4298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4299 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4300 esac
4301
4302
4303
4304 macro_version='2.4.6'
4305 macro_revision='2.4.6'
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319 ltmain=$ac_aux_dir/ltmain.sh
4320
4321 # Make sure we can run config.sub.
4322 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4323   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4326 $as_echo_n "checking build system type... " >&6; }
4327 if ${ac_cv_build+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   ac_build_alias=$build_alias
4331 test "x$ac_build_alias" = x &&
4332   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4333 test "x$ac_build_alias" = x &&
4334   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4336   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4337
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4340 $as_echo "$ac_cv_build" >&6; }
4341 case $ac_cv_build in
4342 *-*-*) ;;
4343 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4344 esac
4345 build=$ac_cv_build
4346 ac_save_IFS=$IFS; IFS='-'
4347 set x $ac_cv_build
4348 shift
4349 build_cpu=$1
4350 build_vendor=$2
4351 shift; shift
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4354 build_os=$*
4355 IFS=$ac_save_IFS
4356 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4357
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4360 $as_echo_n "checking host system type... " >&6; }
4361 if ${ac_cv_host+:} false; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test "x$host_alias" = x; then
4365   ac_cv_host=$ac_cv_build
4366 else
4367   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4368     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4369 fi
4370
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4373 $as_echo "$ac_cv_host" >&6; }
4374 case $ac_cv_host in
4375 *-*-*) ;;
4376 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4377 esac
4378 host=$ac_cv_host
4379 ac_save_IFS=$IFS; IFS='-'
4380 set x $ac_cv_host
4381 shift
4382 host_cpu=$1
4383 host_vendor=$2
4384 shift; shift
4385 # Remember, the first character of IFS is used to create $*,
4386 # except with old shells:
4387 host_os=$*
4388 IFS=$ac_save_IFS
4389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4390
4391
4392 # Backslashify metacharacters that are still active within
4393 # double-quoted strings.
4394 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4395
4396 # Same as above, but do not quote variable references.
4397 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4398
4399 # Sed substitution to delay expansion of an escaped shell variable in a
4400 # double_quote_subst'ed string.
4401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4402
4403 # Sed substitution to delay expansion of an escaped single quote.
4404 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4405
4406 # Sed substitution to avoid accidental globbing in evaled expressions
4407 no_glob_subst='s/\*/\\\*/g'
4408
4409 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4411 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4414 $as_echo_n "checking how to print strings... " >&6; }
4415 # Test print first, because it will be a builtin if present.
4416 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4417    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4418   ECHO='print -r --'
4419 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4420   ECHO='printf %s\n'
4421 else
4422   # Use this function as a fallback that always works.
4423   func_fallback_echo ()
4424   {
4425     eval 'cat <<_LTECHO_EOF
4426 $1
4427 _LTECHO_EOF'
4428   }
4429   ECHO='func_fallback_echo'
4430 fi
4431
4432 # func_echo_all arg...
4433 # Invoke $ECHO with all args, space-separated.
4434 func_echo_all ()
4435 {
4436     $ECHO ""
4437 }
4438
4439 case $ECHO in
4440   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4441 $as_echo "printf" >&6; } ;;
4442   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4443 $as_echo "print -r" >&6; } ;;
4444   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4445 $as_echo "cat" >&6; } ;;
4446 esac
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4462 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4463 if ${ac_cv_path_SED+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4467      for ac_i in 1 2 3 4 5 6 7; do
4468        ac_script="$ac_script$as_nl$ac_script"
4469      done
4470      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4471      { ac_script=; unset ac_script;}
4472      if test -z "$SED"; then
4473   ac_path_SED_found=false
4474   # Loop through the user's path and test for each of PROGNAME-LIST
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_prog in sed gsed; do
4481     for ac_exec_ext in '' $ac_executable_extensions; do
4482       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4483       as_fn_executable_p "$ac_path_SED" || continue
4484 # Check for GNU ac_path_SED and select it if it is found.
4485   # Check for GNU $ac_path_SED
4486 case `"$ac_path_SED" --version 2>&1` in
4487 *GNU*)
4488   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4489 *)
4490   ac_count=0
4491   $as_echo_n 0123456789 >"conftest.in"
4492   while :
4493   do
4494     cat "conftest.in" "conftest.in" >"conftest.tmp"
4495     mv "conftest.tmp" "conftest.in"
4496     cp "conftest.in" "conftest.nl"
4497     $as_echo '' >> "conftest.nl"
4498     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500     as_fn_arith $ac_count + 1 && ac_count=$as_val
4501     if test $ac_count -gt ${ac_path_SED_max-0}; then
4502       # Best one so far, save it but keep looking for a better one
4503       ac_cv_path_SED="$ac_path_SED"
4504       ac_path_SED_max=$ac_count
4505     fi
4506     # 10*(2^10) chars as input seems more than enough
4507     test $ac_count -gt 10 && break
4508   done
4509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 esac
4511
4512       $ac_path_SED_found && break 3
4513     done
4514   done
4515   done
4516 IFS=$as_save_IFS
4517   if test -z "$ac_cv_path_SED"; then
4518     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4519   fi
4520 else
4521   ac_cv_path_SED=$SED
4522 fi
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4526 $as_echo "$ac_cv_path_SED" >&6; }
4527  SED="$ac_cv_path_SED"
4528   rm -f conftest.sed
4529
4530 test -z "$SED" && SED=sed
4531 Xsed="$SED -e 1s/^X//"
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4545 if ${ac_cv_path_GREP+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -z "$GREP"; then
4549   ac_path_GREP_found=false
4550   # Loop through the user's path and test for each of PROGNAME-LIST
4551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_prog in grep ggrep; do
4557     for ac_exec_ext in '' $ac_executable_extensions; do
4558       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4559       as_fn_executable_p "$ac_path_GREP" || continue
4560 # Check for GNU ac_path_GREP and select it if it is found.
4561   # Check for GNU $ac_path_GREP
4562 case `"$ac_path_GREP" --version 2>&1` in
4563 *GNU*)
4564   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4565 *)
4566   ac_count=0
4567   $as_echo_n 0123456789 >"conftest.in"
4568   while :
4569   do
4570     cat "conftest.in" "conftest.in" >"conftest.tmp"
4571     mv "conftest.tmp" "conftest.in"
4572     cp "conftest.in" "conftest.nl"
4573     $as_echo 'GREP' >> "conftest.nl"
4574     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576     as_fn_arith $ac_count + 1 && ac_count=$as_val
4577     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4578       # Best one so far, save it but keep looking for a better one
4579       ac_cv_path_GREP="$ac_path_GREP"
4580       ac_path_GREP_max=$ac_count
4581     fi
4582     # 10*(2^10) chars as input seems more than enough
4583     test $ac_count -gt 10 && break
4584   done
4585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586 esac
4587
4588       $ac_path_GREP_found && break 3
4589     done
4590   done
4591   done
4592 IFS=$as_save_IFS
4593   if test -z "$ac_cv_path_GREP"; then
4594     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595   fi
4596 else
4597   ac_cv_path_GREP=$GREP
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4602 $as_echo "$ac_cv_path_GREP" >&6; }
4603  GREP="$ac_cv_path_GREP"
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4607 $as_echo_n "checking for egrep... " >&6; }
4608 if ${ac_cv_path_EGREP+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4612    then ac_cv_path_EGREP="$GREP -E"
4613    else
4614      if test -z "$EGREP"; then
4615   ac_path_EGREP_found=false
4616   # Loop through the user's path and test for each of PROGNAME-LIST
4617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_prog in egrep; do
4623     for ac_exec_ext in '' $ac_executable_extensions; do
4624       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4625       as_fn_executable_p "$ac_path_EGREP" || continue
4626 # Check for GNU ac_path_EGREP and select it if it is found.
4627   # Check for GNU $ac_path_EGREP
4628 case `"$ac_path_EGREP" --version 2>&1` in
4629 *GNU*)
4630   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4631 *)
4632   ac_count=0
4633   $as_echo_n 0123456789 >"conftest.in"
4634   while :
4635   do
4636     cat "conftest.in" "conftest.in" >"conftest.tmp"
4637     mv "conftest.tmp" "conftest.in"
4638     cp "conftest.in" "conftest.nl"
4639     $as_echo 'EGREP' >> "conftest.nl"
4640     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4642     as_fn_arith $ac_count + 1 && ac_count=$as_val
4643     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4644       # Best one so far, save it but keep looking for a better one
4645       ac_cv_path_EGREP="$ac_path_EGREP"
4646       ac_path_EGREP_max=$ac_count
4647     fi
4648     # 10*(2^10) chars as input seems more than enough
4649     test $ac_count -gt 10 && break
4650   done
4651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652 esac
4653
4654       $ac_path_EGREP_found && break 3
4655     done
4656   done
4657   done
4658 IFS=$as_save_IFS
4659   if test -z "$ac_cv_path_EGREP"; then
4660     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4661   fi
4662 else
4663   ac_cv_path_EGREP=$EGREP
4664 fi
4665
4666    fi
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4669 $as_echo "$ac_cv_path_EGREP" >&6; }
4670  EGREP="$ac_cv_path_EGREP"
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4674 $as_echo_n "checking for fgrep... " >&6; }
4675 if ${ac_cv_path_FGREP+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4679    then ac_cv_path_FGREP="$GREP -F"
4680    else
4681      if test -z "$FGREP"; then
4682   ac_path_FGREP_found=false
4683   # Loop through the user's path and test for each of PROGNAME-LIST
4684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689     for ac_prog in fgrep; do
4690     for ac_exec_ext in '' $ac_executable_extensions; do
4691       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4692       as_fn_executable_p "$ac_path_FGREP" || continue
4693 # Check for GNU ac_path_FGREP and select it if it is found.
4694   # Check for GNU $ac_path_FGREP
4695 case `"$ac_path_FGREP" --version 2>&1` in
4696 *GNU*)
4697   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4698 *)
4699   ac_count=0
4700   $as_echo_n 0123456789 >"conftest.in"
4701   while :
4702   do
4703     cat "conftest.in" "conftest.in" >"conftest.tmp"
4704     mv "conftest.tmp" "conftest.in"
4705     cp "conftest.in" "conftest.nl"
4706     $as_echo 'FGREP' >> "conftest.nl"
4707     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4709     as_fn_arith $ac_count + 1 && ac_count=$as_val
4710     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4711       # Best one so far, save it but keep looking for a better one
4712       ac_cv_path_FGREP="$ac_path_FGREP"
4713       ac_path_FGREP_max=$ac_count
4714     fi
4715     # 10*(2^10) chars as input seems more than enough
4716     test $ac_count -gt 10 && break
4717   done
4718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 esac
4720
4721       $ac_path_FGREP_found && break 3
4722     done
4723   done
4724   done
4725 IFS=$as_save_IFS
4726   if test -z "$ac_cv_path_FGREP"; then
4727     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4728   fi
4729 else
4730   ac_cv_path_FGREP=$FGREP
4731 fi
4732
4733    fi
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4736 $as_echo "$ac_cv_path_FGREP" >&6; }
4737  FGREP="$ac_cv_path_FGREP"
4738
4739
4740 test -z "$GREP" && GREP=grep
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760 # Check whether --with-gnu-ld was given.
4761 if test "${with_gnu_ld+set}" = set; then :
4762   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4763 else
4764   with_gnu_ld=no
4765 fi
4766
4767 ac_prog=ld
4768 if test yes = "$GCC"; then
4769   # Check if gcc -print-prog-name=ld gives a path.
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4771 $as_echo_n "checking for ld used by $CC... " >&6; }
4772   case $host in
4773   *-*-mingw*)
4774     # gcc leaves a trailing carriage return, which upsets mingw
4775     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4776   *)
4777     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4778   esac
4779   case $ac_prog in
4780     # Accept absolute paths.
4781     [\\/]* | ?:[\\/]*)
4782       re_direlt='/[^/][^/]*/\.\./'
4783       # Canonicalize the pathname of ld
4784       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4785       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4786         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4787       done
4788       test -z "$LD" && LD=$ac_prog
4789       ;;
4790   "")
4791     # If it fails, then pretend we aren't using GCC.
4792     ac_prog=ld
4793     ;;
4794   *)
4795     # If it is relative, then search for the first ld in PATH.
4796     with_gnu_ld=unknown
4797     ;;
4798   esac
4799 elif test yes = "$with_gnu_ld"; then
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4801 $as_echo_n "checking for GNU ld... " >&6; }
4802 else
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4804 $as_echo_n "checking for non-GNU ld... " >&6; }
4805 fi
4806 if ${lt_cv_path_LD+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   if test -z "$LD"; then
4810   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4811   for ac_dir in $PATH; do
4812     IFS=$lt_save_ifs
4813     test -z "$ac_dir" && ac_dir=.
4814     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4815       lt_cv_path_LD=$ac_dir/$ac_prog
4816       # Check to see if the program is GNU ld.  I'd rather use --version,
4817       # but apparently some variants of GNU ld only accept -v.
4818       # Break only if it was the GNU/non-GNU ld that we prefer.
4819       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4820       *GNU* | *'with BFD'*)
4821         test no != "$with_gnu_ld" && break
4822         ;;
4823       *)
4824         test yes != "$with_gnu_ld" && break
4825         ;;
4826       esac
4827     fi
4828   done
4829   IFS=$lt_save_ifs
4830 else
4831   lt_cv_path_LD=$LD # Let the user override the test with a path.
4832 fi
4833 fi
4834
4835 LD=$lt_cv_path_LD
4836 if test -n "$LD"; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4838 $as_echo "$LD" >&6; }
4839 else
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4845 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4846 if ${lt_cv_prog_gnu_ld+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4850 case `$LD -v 2>&1 </dev/null` in
4851 *GNU* | *'with BFD'*)
4852   lt_cv_prog_gnu_ld=yes
4853   ;;
4854 *)
4855   lt_cv_prog_gnu_ld=no
4856   ;;
4857 esac
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4860 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4861 with_gnu_ld=$lt_cv_prog_gnu_ld
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4872 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4873 if ${lt_cv_path_NM+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   if test -n "$NM"; then
4877   # Let the user override the test.
4878   lt_cv_path_NM=$NM
4879 else
4880   lt_nm_to_check=${ac_tool_prefix}nm
4881   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4882     lt_nm_to_check="$lt_nm_to_check nm"
4883   fi
4884   for lt_tmp_nm in $lt_nm_to_check; do
4885     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4886     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4887       IFS=$lt_save_ifs
4888       test -z "$ac_dir" && ac_dir=.
4889       tmp_nm=$ac_dir/$lt_tmp_nm
4890       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4891         # Check to see if the nm accepts a BSD-compat flag.
4892         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4893         #   nm: unknown option "B" ignored
4894         # Tru64's nm complains that /dev/null is an invalid object file
4895         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4896         case $build_os in
4897         mingw*) lt_bad_file=conftest.nm/nofile ;;
4898         *) lt_bad_file=/dev/null ;;
4899         esac
4900         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4901         *$lt_bad_file* | *'Invalid file or object type'*)
4902           lt_cv_path_NM="$tmp_nm -B"
4903           break 2
4904           ;;
4905         *)
4906           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4907           */dev/null*)
4908             lt_cv_path_NM="$tmp_nm -p"
4909             break 2
4910             ;;
4911           *)
4912             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4913             continue # so that we can try to find one that supports BSD flags
4914             ;;
4915           esac
4916           ;;
4917         esac
4918       fi
4919     done
4920     IFS=$lt_save_ifs
4921   done
4922   : ${lt_cv_path_NM=no}
4923 fi
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4926 $as_echo "$lt_cv_path_NM" >&6; }
4927 if test no != "$lt_cv_path_NM"; then
4928   NM=$lt_cv_path_NM
4929 else
4930   # Didn't find any BSD compatible name lister, look for dumpbin.
4931   if test -n "$DUMPBIN"; then :
4932     # Let the user override the test.
4933   else
4934     if test -n "$ac_tool_prefix"; then
4935   for ac_prog in dumpbin "link -dump"
4936   do
4937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_DUMPBIN+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if test -n "$DUMPBIN"; then
4945   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959   done
4960 IFS=$as_save_IFS
4961
4962 fi
4963 fi
4964 DUMPBIN=$ac_cv_prog_DUMPBIN
4965 if test -n "$DUMPBIN"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4967 $as_echo "$DUMPBIN" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973
4974     test -n "$DUMPBIN" && break
4975   done
4976 fi
4977 if test -z "$DUMPBIN"; then
4978   ac_ct_DUMPBIN=$DUMPBIN
4979   for ac_prog in dumpbin "link -dump"
4980 do
4981   # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$ac_ct_DUMPBIN"; then
4989   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5009 if test -n "$ac_ct_DUMPBIN"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5011 $as_echo "$ac_ct_DUMPBIN" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017
5018   test -n "$ac_ct_DUMPBIN" && break
5019 done
5020
5021   if test "x$ac_ct_DUMPBIN" = x; then
5022     DUMPBIN=":"
5023   else
5024     case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030     DUMPBIN=$ac_ct_DUMPBIN
5031   fi
5032 fi
5033
5034     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5035     *COFF*)
5036       DUMPBIN="$DUMPBIN -symbols -headers"
5037       ;;
5038     *)
5039       DUMPBIN=:
5040       ;;
5041     esac
5042   fi
5043
5044   if test : != "$DUMPBIN"; then
5045     NM=$DUMPBIN
5046   fi
5047 fi
5048 test -z "$NM" && NM=nm
5049
5050
5051
5052
5053
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5057 if ${lt_cv_nm_interface+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   lt_cv_nm_interface="BSD nm"
5061   echo "int some_variable = 0;" > conftest.$ac_ext
5062   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5063   (eval "$ac_compile" 2>conftest.err)
5064   cat conftest.err >&5
5065   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5066   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5067   cat conftest.err >&5
5068   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5069   cat conftest.out >&5
5070   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5071     lt_cv_nm_interface="MS dumpbin"
5072   fi
5073   rm -f conftest*
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5076 $as_echo "$lt_cv_nm_interface" >&6; }
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5079 $as_echo_n "checking whether ln -s works... " >&6; }
5080 LN_S=$as_ln_s
5081 if test "$LN_S" = "ln -s"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083 $as_echo "yes" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5086 $as_echo "no, using $LN_S" >&6; }
5087 fi
5088
5089 # find the maximum length of command line arguments
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5091 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5092 if ${lt_cv_sys_max_cmd_len+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095     i=0
5096   teststring=ABCD
5097
5098   case $build_os in
5099   msdosdjgpp*)
5100     # On DJGPP, this test can blow up pretty badly due to problems in libc
5101     # (any single argument exceeding 2000 bytes causes a buffer overrun
5102     # during glob expansion).  Even if it were fixed, the result of this
5103     # check would be larger than it should be.
5104     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5105     ;;
5106
5107   gnu*)
5108     # Under GNU Hurd, this test is not required because there is
5109     # no limit to the length of command line arguments.
5110     # Libtool will interpret -1 as no limit whatsoever
5111     lt_cv_sys_max_cmd_len=-1;
5112     ;;
5113
5114   cygwin* | mingw* | cegcc*)
5115     # On Win9x/ME, this test blows up -- it succeeds, but takes
5116     # about 5 minutes as the teststring grows exponentially.
5117     # Worse, since 9x/ME are not pre-emptively multitasking,
5118     # you end up with a "frozen" computer, even though with patience
5119     # the test eventually succeeds (with a max line length of 256k).
5120     # Instead, let's just punt: use the minimum linelength reported by
5121     # all of the supported platforms: 8192 (on NT/2K/XP).
5122     lt_cv_sys_max_cmd_len=8192;
5123     ;;
5124
5125   mint*)
5126     # On MiNT this can take a long time and run out of memory.
5127     lt_cv_sys_max_cmd_len=8192;
5128     ;;
5129
5130   amigaos*)
5131     # On AmigaOS with pdksh, this test takes hours, literally.
5132     # So we just punt and use a minimum line length of 8192.
5133     lt_cv_sys_max_cmd_len=8192;
5134     ;;
5135
5136   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5137     # This has been around since 386BSD, at least.  Likely further.
5138     if test -x /sbin/sysctl; then
5139       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5140     elif test -x /usr/sbin/sysctl; then
5141       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5142     else
5143       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5144     fi
5145     # And add a safety zone
5146     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148     ;;
5149
5150   interix*)
5151     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5152     lt_cv_sys_max_cmd_len=196608
5153     ;;
5154
5155   os2*)
5156     # The test takes a long time on OS/2.
5157     lt_cv_sys_max_cmd_len=8192
5158     ;;
5159
5160   osf*)
5161     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5162     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5163     # nice to cause kernel panics so lets avoid the loop below.
5164     # First set a reasonable default.
5165     lt_cv_sys_max_cmd_len=16384
5166     #
5167     if test -x /sbin/sysconfig; then
5168       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5169         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5170       esac
5171     fi
5172     ;;
5173   sco3.2v5*)
5174     lt_cv_sys_max_cmd_len=102400
5175     ;;
5176   sysv5* | sco5v6* | sysv4.2uw2*)
5177     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5178     if test -n "$kargmax"; then
5179       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5180     else
5181       lt_cv_sys_max_cmd_len=32768
5182     fi
5183     ;;
5184   *)
5185     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5186     if test -n "$lt_cv_sys_max_cmd_len" && \
5187        test undefined != "$lt_cv_sys_max_cmd_len"; then
5188       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5189       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5190     else
5191       # Make teststring a little bigger before we do anything with it.
5192       # a 1K string should be a reasonable start.
5193       for i in 1 2 3 4 5 6 7 8; do
5194         teststring=$teststring$teststring
5195       done
5196       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5197       # If test is not a shell built-in, we'll probably end up computing a
5198       # maximum length that is only half of the actual maximum length, but
5199       # we can't tell.
5200       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5201                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5202               test 17 != "$i" # 1/2 MB should be enough
5203       do
5204         i=`expr $i + 1`
5205         teststring=$teststring$teststring
5206       done
5207       # Only check the string length outside the loop.
5208       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5209       teststring=
5210       # Add a significant safety factor because C++ compilers can tack on
5211       # massive amounts of additional arguments before passing them to the
5212       # linker.  It appears as though 1/2 is a usable value.
5213       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5214     fi
5215     ;;
5216   esac
5217
5218 fi
5219
5220 if test -n "$lt_cv_sys_max_cmd_len"; then
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5222 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5223 else
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5225 $as_echo "none" >&6; }
5226 fi
5227 max_cmd_len=$lt_cv_sys_max_cmd_len
5228
5229
5230
5231
5232
5233
5234 : ${CP="cp -f"}
5235 : ${MV="mv -f"}
5236 : ${RM="rm -f"}
5237
5238 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5239   lt_unset=unset
5240 else
5241   lt_unset=false
5242 fi
5243
5244
5245
5246
5247
5248 # test EBCDIC or ASCII
5249 case `echo X|tr X '\101'` in
5250  A) # ASCII based system
5251     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5252   lt_SP2NL='tr \040 \012'
5253   lt_NL2SP='tr \015\012 \040\040'
5254   ;;
5255  *) # EBCDIC based system
5256   lt_SP2NL='tr \100 \n'
5257   lt_NL2SP='tr \r\n \100\100'
5258   ;;
5259 esac
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5270 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5271 if ${lt_cv_to_host_file_cmd+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   case $host in
5275   *-*-mingw* )
5276     case $build in
5277       *-*-mingw* ) # actually msys
5278         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5279         ;;
5280       *-*-cygwin* )
5281         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5282         ;;
5283       * ) # otherwise, assume *nix
5284         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5285         ;;
5286     esac
5287     ;;
5288   *-*-cygwin* )
5289     case $build in
5290       *-*-mingw* ) # actually msys
5291         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5292         ;;
5293       *-*-cygwin* )
5294         lt_cv_to_host_file_cmd=func_convert_file_noop
5295         ;;
5296       * ) # otherwise, assume *nix
5297         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5298         ;;
5299     esac
5300     ;;
5301   * ) # unhandled hosts (and "normal" native builds)
5302     lt_cv_to_host_file_cmd=func_convert_file_noop
5303     ;;
5304 esac
5305
5306 fi
5307
5308 to_host_file_cmd=$lt_cv_to_host_file_cmd
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5310 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5311
5312
5313
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5317 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5318 if ${lt_cv_to_tool_file_cmd+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   #assume ordinary cross tools, or native build.
5322 lt_cv_to_tool_file_cmd=func_convert_file_noop
5323 case $host in
5324   *-*-mingw* )
5325     case $build in
5326       *-*-mingw* ) # actually msys
5327         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5328         ;;
5329     esac
5330     ;;
5331 esac
5332
5333 fi
5334
5335 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5337 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5344 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5345 if ${lt_cv_ld_reload_flag+:} false; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   lt_cv_ld_reload_flag='-r'
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5351 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5352 reload_flag=$lt_cv_ld_reload_flag
5353 case $reload_flag in
5354 "" | " "*) ;;
5355 *) reload_flag=" $reload_flag" ;;
5356 esac
5357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5358 case $host_os in
5359   cygwin* | mingw* | pw32* | cegcc*)
5360     if test yes != "$GCC"; then
5361       reload_cmds=false
5362     fi
5363     ;;
5364   darwin*)
5365     if test yes = "$GCC"; then
5366       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5367     else
5368       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369     fi
5370     ;;
5371 esac
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 if test -n "$ac_tool_prefix"; then
5382   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5383 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_OBJDUMP+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if test -n "$OBJDUMP"; then
5390   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404   done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 OBJDUMP=$ac_cv_prog_OBJDUMP
5410 if test -n "$OBJDUMP"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5412 $as_echo "$OBJDUMP" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418
5419 fi
5420 if test -z "$ac_cv_prog_OBJDUMP"; then
5421   ac_ct_OBJDUMP=$OBJDUMP
5422   # Extract the first word of "objdump", so it can be a program name with args.
5423 set dummy objdump; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   if test -n "$ac_ct_OBJDUMP"; then
5430   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5450 if test -n "$ac_ct_OBJDUMP"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5452 $as_echo "$ac_ct_OBJDUMP" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458   if test "x$ac_ct_OBJDUMP" = x; then
5459     OBJDUMP="false"
5460   else
5461     case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465 ac_tool_warned=yes ;;
5466 esac
5467     OBJDUMP=$ac_ct_OBJDUMP
5468   fi
5469 else
5470   OBJDUMP="$ac_cv_prog_OBJDUMP"
5471 fi
5472
5473 test -z "$OBJDUMP" && OBJDUMP=objdump
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5484 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485 if ${lt_cv_deplibs_check_method+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   lt_cv_file_magic_cmd='$MAGIC_CMD'
5489 lt_cv_file_magic_test_file=
5490 lt_cv_deplibs_check_method='unknown'
5491 # Need to set the preceding variable on all platforms that support
5492 # interlibrary dependencies.
5493 # 'none' -- dependencies not supported.
5494 # 'unknown' -- same as none, but documents that we really don't know.
5495 # 'pass_all' -- all dependencies passed with no checks.
5496 # 'test_compile' -- check by making test program.
5497 # 'file_magic [[regex]]' -- check by looking for files in library path
5498 # that responds to the $file_magic_cmd with a given extended regex.
5499 # If you have 'file' or equivalent on your system and you're not sure
5500 # whether 'pass_all' will *always* work, you probably want this one.
5501
5502 case $host_os in
5503 aix[4-9]*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 beos*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 bsdi[45]*)
5512   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513   lt_cv_file_magic_cmd='/usr/bin/file -L'
5514   lt_cv_file_magic_test_file=/shlib/libc.so
5515   ;;
5516
5517 cygwin*)
5518   # func_win32_libid is a shell function defined in ltmain.sh
5519   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520   lt_cv_file_magic_cmd='func_win32_libid'
5521   ;;
5522
5523 mingw* | pw32*)
5524   # Base MSYS/MinGW do not provide the 'file' command needed by
5525   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526   # unless we find 'file', for example because we are cross-compiling.
5527   if ( file / ) >/dev/null 2>&1; then
5528     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529     lt_cv_file_magic_cmd='func_win32_libid'
5530   else
5531     # Keep this pattern in sync with the one in func_win32_libid.
5532     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5533     lt_cv_file_magic_cmd='$OBJDUMP -f'
5534   fi
5535   ;;
5536
5537 cegcc*)
5538   # use the weaker test based on 'objdump'. See mingw*.
5539   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5540   lt_cv_file_magic_cmd='$OBJDUMP -f'
5541   ;;
5542
5543 darwin* | rhapsody*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 freebsd* | dragonfly*)
5548   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549     case $host_cpu in
5550     i*86 )
5551       # Not sure whether the presence of OpenBSD here was a mistake.
5552       # Let's accept both of them until this is cleared up.
5553       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554       lt_cv_file_magic_cmd=/usr/bin/file
5555       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5556       ;;
5557     esac
5558   else
5559     lt_cv_deplibs_check_method=pass_all
5560   fi
5561   ;;
5562
5563 haiku*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 hpux10.20* | hpux11*)
5568   lt_cv_file_magic_cmd=/usr/bin/file
5569   case $host_cpu in
5570   ia64*)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5572     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5573     ;;
5574   hppa*64*)
5575     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]'
5576     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5577     ;;
5578   *)
5579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5580     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5581     ;;
5582   esac
5583   ;;
5584
5585 interix[3-9]*)
5586   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5587   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5588   ;;
5589
5590 irix5* | irix6* | nonstopux*)
5591   case $LD in
5592   *-32|*"-32 ") libmagic=32-bit;;
5593   *-n32|*"-n32 ") libmagic=N32;;
5594   *-64|*"-64 ") libmagic=64-bit;;
5595   *) libmagic=never-match;;
5596   esac
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 # This must be glibc/ELF.
5601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 netbsd*)
5606   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5608   else
5609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610   fi
5611   ;;
5612
5613 newos6*)
5614   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5615   lt_cv_file_magic_cmd=/usr/bin/file
5616   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5617   ;;
5618
5619 *nto* | *qnx*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 openbsd* | bitrig*)
5624   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5626   else
5627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5628   fi
5629   ;;
5630
5631 osf3* | osf4* | osf5*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 rdos*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 solaris*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 sysv4 | sysv4.3*)
5648   case $host_vendor in
5649   motorola)
5650     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]'
5651     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5652     ;;
5653   ncr)
5654     lt_cv_deplibs_check_method=pass_all
5655     ;;
5656   sequent)
5657     lt_cv_file_magic_cmd='/bin/file'
5658     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5659     ;;
5660   sni)
5661     lt_cv_file_magic_cmd='/bin/file'
5662     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5663     lt_cv_file_magic_test_file=/lib/libc.so
5664     ;;
5665   siemens)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668   pc)
5669     lt_cv_deplibs_check_method=pass_all
5670     ;;
5671   esac
5672   ;;
5673
5674 tpf*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677 os2*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680 esac
5681
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5684 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5685
5686 file_magic_glob=
5687 want_nocaseglob=no
5688 if test "$build" = "$host"; then
5689   case $host_os in
5690   mingw* | pw32*)
5691     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5692       want_nocaseglob=yes
5693     else
5694       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5695     fi
5696     ;;
5697   esac
5698 fi
5699
5700 file_magic_cmd=$lt_cv_file_magic_cmd
5701 deplibs_check_method=$lt_cv_deplibs_check_method
5702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 if test -n "$ac_tool_prefix"; then
5726   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_prog_DLLTOOL+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test -n "$DLLTOOL"; then
5734   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 DLLTOOL=$ac_cv_prog_DLLTOOL
5754 if test -n "$DLLTOOL"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5756 $as_echo "$DLLTOOL" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 fi
5764 if test -z "$ac_cv_prog_DLLTOOL"; then
5765   ac_ct_DLLTOOL=$DLLTOOL
5766   # Extract the first word of "dlltool", so it can be a program name with args.
5767 set dummy dlltool; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test -n "$ac_ct_DLLTOOL"; then
5774   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5794 if test -n "$ac_ct_DLLTOOL"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5796 $as_echo "$ac_ct_DLLTOOL" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802   if test "x$ac_ct_DLLTOOL" = x; then
5803     DLLTOOL="false"
5804   else
5805     case $cross_compiling:$ac_tool_warned in
5806 yes:)
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5810 esac
5811     DLLTOOL=$ac_ct_DLLTOOL
5812   fi
5813 else
5814   DLLTOOL="$ac_cv_prog_DLLTOOL"
5815 fi
5816
5817 test -z "$DLLTOOL" && DLLTOOL=dlltool
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5829 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5830 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   lt_cv_sharedlib_from_linklib_cmd='unknown'
5834
5835 case $host_os in
5836 cygwin* | mingw* | pw32* | cegcc*)
5837   # two different shell functions defined in ltmain.sh;
5838   # decide which one to use based on capabilities of $DLLTOOL
5839   case `$DLLTOOL --help 2>&1` in
5840   *--identify-strict*)
5841     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5842     ;;
5843   *)
5844     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5845     ;;
5846   esac
5847   ;;
5848 *)
5849   # fallback: assume linklib IS sharedlib
5850   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5851   ;;
5852 esac
5853
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5856 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5857 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5858 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5859
5860
5861
5862
5863
5864
5865
5866 if test -n "$ac_tool_prefix"; then
5867   for ac_prog in ar
5868   do
5869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if ${ac_cv_prog_AR+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$AR"; then
5877   ac_cv_prog_AR="$AR" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 AR=$ac_cv_prog_AR
5897 if test -n "$AR"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5899 $as_echo "$AR" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906     test -n "$AR" && break
5907   done
5908 fi
5909 if test -z "$AR"; then
5910   ac_ct_AR=$AR
5911   for ac_prog in ar
5912 do
5913   # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if test -n "$ac_ct_AR"; then
5921   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_exec_ext in '' $ac_executable_extensions; do
5929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_ac_ct_AR="$ac_prog"
5931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935   done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941 if test -n "$ac_ct_AR"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5943 $as_echo "$ac_ct_AR" >&6; }
5944 else
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949
5950   test -n "$ac_ct_AR" && break
5951 done
5952
5953   if test "x$ac_ct_AR" = x; then
5954     AR="false"
5955   else
5956     case $cross_compiling:$ac_tool_warned in
5957 yes:)
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned=yes ;;
5961 esac
5962     AR=$ac_ct_AR
5963   fi
5964 fi
5965
5966 : ${AR=ar}
5967 : ${AR_FLAGS=cru}
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5980 $as_echo_n "checking for archiver @FILE support... " >&6; }
5981 if ${lt_cv_ar_at_file+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   lt_cv_ar_at_file=no
5985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988 int
5989 main ()
5990 {
5991
5992   ;
5993   return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997   echo conftest.$ac_objext > conftest.lst
5998       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5999       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6000   (eval $lt_ar_try) 2>&5
6001   ac_status=$?
6002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003   test $ac_status = 0; }
6004       if test 0 -eq "$ac_status"; then
6005         # Ensure the archiver fails upon bogus file names.
6006         rm -f conftest.$ac_objext libconftest.a
6007         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6008   (eval $lt_ar_try) 2>&5
6009   ac_status=$?
6010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6011   test $ac_status = 0; }
6012         if test 0 -ne "$ac_status"; then
6013           lt_cv_ar_at_file=@
6014         fi
6015       fi
6016       rm -f conftest.* libconftest.a
6017
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6023 $as_echo "$lt_cv_ar_at_file" >&6; }
6024
6025 if test no = "$lt_cv_ar_at_file"; then
6026   archiver_list_spec=
6027 else
6028   archiver_list_spec=$lt_cv_ar_at_file
6029 fi
6030
6031
6032
6033
6034
6035
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}strip; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_STRIP+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$STRIP"; then
6046   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_exec_ext in '' $ac_executable_extensions; do
6054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060   done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 STRIP=$ac_cv_prog_STRIP
6066 if test -n "$STRIP"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6068 $as_echo "$STRIP" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_STRIP"; then
6077   ac_ct_STRIP=$STRIP
6078   # Extract the first word of "strip", so it can be a program name with args.
6079 set dummy strip; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$ac_ct_STRIP"; then
6086   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_prog_ac_ct_STRIP="strip"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6106 if test -n "$ac_ct_STRIP"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6108 $as_echo "$ac_ct_STRIP" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114   if test "x$ac_ct_STRIP" = x; then
6115     STRIP=":"
6116   else
6117     case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123     STRIP=$ac_ct_STRIP
6124   fi
6125 else
6126   STRIP="$ac_cv_prog_STRIP"
6127 fi
6128
6129 test -z "$STRIP" && STRIP=:
6130
6131
6132
6133
6134
6135
6136 if test -n "$ac_tool_prefix"; then
6137   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_RANLIB+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$RANLIB"; then
6145   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152     for ac_exec_ext in '' $ac_executable_extensions; do
6153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159   done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6167 $as_echo "$RANLIB" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173
6174 fi
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176   ac_ct_RANLIB=$RANLIB
6177   # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if test -n "$ac_ct_RANLIB"; then
6185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192     for ac_exec_ext in '' $ac_executable_extensions; do
6193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194     ac_cv_prog_ac_ct_RANLIB="ranlib"
6195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199   done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6207 $as_echo "$ac_ct_RANLIB" >&6; }
6208 else
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6211 fi
6212
6213   if test "x$ac_ct_RANLIB" = x; then
6214     RANLIB=":"
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222     RANLIB=$ac_ct_RANLIB
6223   fi
6224 else
6225   RANLIB="$ac_cv_prog_RANLIB"
6226 fi
6227
6228 test -z "$RANLIB" && RANLIB=:
6229
6230
6231
6232
6233
6234
6235 # Determine commands to create old-style static archives.
6236 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6237 old_postinstall_cmds='chmod 644 $oldlib'
6238 old_postuninstall_cmds=
6239
6240 if test -n "$RANLIB"; then
6241   case $host_os in
6242   bitrig* | openbsd*)
6243     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6244     ;;
6245   *)
6246     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6247     ;;
6248   esac
6249   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6250 fi
6251
6252 case $host_os in
6253   darwin*)
6254     lock_old_archive_extraction=yes ;;
6255   *)
6256     lock_old_archive_extraction=no ;;
6257 esac
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 # If no C compiler was specified, use CC.
6298 LTCC=${LTCC-"$CC"}
6299
6300 # If no C compiler flags were specified, use CFLAGS.
6301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6302
6303 # Allow CC to be a program name with arguments.
6304 compiler=$CC
6305
6306
6307 # Check for command to grab the raw symbol name followed by C symbol from nm.
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6309 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6310 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313
6314 # These are sane defaults that work on at least a few old systems.
6315 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6316
6317 # Character class describing NM global symbol codes.
6318 symcode='[BCDEGRST]'
6319
6320 # Regexp to match symbols that can be accessed directly from C.
6321 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6322
6323 # Define system-specific variables.
6324 case $host_os in
6325 aix*)
6326   symcode='[BCDT]'
6327   ;;
6328 cygwin* | mingw* | pw32* | cegcc*)
6329   symcode='[ABCDGISTW]'
6330   ;;
6331 hpux*)
6332   if test ia64 = "$host_cpu"; then
6333     symcode='[ABCDEGRST]'
6334   fi
6335   ;;
6336 irix* | nonstopux*)
6337   symcode='[BCDEGRST]'
6338   ;;
6339 osf*)
6340   symcode='[BCDEGQRST]'
6341   ;;
6342 solaris*)
6343   symcode='[BDRT]'
6344   ;;
6345 sco3.2v5*)
6346   symcode='[DT]'
6347   ;;
6348 sysv4.2uw2*)
6349   symcode='[DT]'
6350   ;;
6351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6352   symcode='[ABDT]'
6353   ;;
6354 sysv4)
6355   symcode='[DFNSTU]'
6356   ;;
6357 esac
6358
6359 # If we're using GNU nm, then use its standard symbol codes.
6360 case `$NM -V 2>&1` in
6361 *GNU* | *'with BFD'*)
6362   symcode='[ABCDGIRSTW]' ;;
6363 esac
6364
6365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6366   # Gets list of data symbols to import.
6367   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6368   # Adjust the below global symbol transforms to fixup imported variables.
6369   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6370   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6371   lt_c_name_lib_hook="\
6372   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6373   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6374 else
6375   # Disable hooks by default.
6376   lt_cv_sys_global_symbol_to_import=
6377   lt_cdecl_hook=
6378   lt_c_name_hook=
6379   lt_c_name_lib_hook=
6380 fi
6381
6382 # Transform an extracted symbol line into a proper C declaration.
6383 # Some systems (esp. on ia64) link data and code symbols differently,
6384 # so use this general approach.
6385 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6386 $lt_cdecl_hook\
6387 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6388 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6389
6390 # Transform an extracted symbol line into symbol name and symbol address
6391 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6392 $lt_c_name_hook\
6393 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6394 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6395
6396 # Transform an extracted symbol line into symbol name with lib prefix and
6397 # symbol address.
6398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6399 $lt_c_name_lib_hook\
6400 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6401 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6402 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6403
6404 # Handle CRLF in mingw tool chain
6405 opt_cr=
6406 case $build_os in
6407 mingw*)
6408   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6409   ;;
6410 esac
6411
6412 # Try without a prefix underscore, then with it.
6413 for ac_symprfx in "" "_"; do
6414
6415   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6416   symxfrm="\\1 $ac_symprfx\\2 \\2"
6417
6418   # Write the raw and C identifiers.
6419   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6420     # Fake it for dumpbin and say T for any non-static function,
6421     # D for any global variable and I for any imported variable.
6422     # Also find C++ and __fastcall symbols from MSVC++,
6423     # which start with @ or ?.
6424     lt_cv_sys_global_symbol_pipe="$AWK '"\
6425 "     {last_section=section; section=\$ 3};"\
6426 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6427 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6428 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6429 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6430 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6431 "     \$ 0!~/External *\|/{next};"\
6432 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6433 "     {if(hide[section]) next};"\
6434 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6435 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6436 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6437 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6438 "     ' prfx=^$ac_symprfx"
6439   else
6440     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6441   fi
6442   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6443
6444   # Check to see that the pipe works correctly.
6445   pipe_works=no
6446
6447   rm -f conftest*
6448   cat > conftest.$ac_ext <<_LT_EOF
6449 #ifdef __cplusplus
6450 extern "C" {
6451 #endif
6452 char nm_test_var;
6453 void nm_test_func(void);
6454 void nm_test_func(void){}
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 _LT_EOF
6460
6461   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }; then
6466     # Now try to grab the symbols.
6467     nlist=conftest.nm
6468     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6469   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6470   ac_status=$?
6471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472   test $ac_status = 0; } && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6485 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6486 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6487    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6488 # define LT_DLSYM_CONST
6489 #elif defined __osf__
6490 /* This system does not cope well with relocations in const data.  */
6491 # define LT_DLSYM_CONST
6492 #else
6493 # define LT_DLSYM_CONST const
6494 #endif
6495
6496 #ifdef __cplusplus
6497 extern "C" {
6498 #endif
6499
6500 _LT_EOF
6501           # Now generate the symbol file.
6502           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6503
6504           cat <<_LT_EOF >> conftest.$ac_ext
6505
6506 /* The mapping between symbol names and symbols.  */
6507 LT_DLSYM_CONST struct {
6508   const char *name;
6509   void       *address;
6510 }
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6512 {
6513   { "@PROGRAM@", (void *) 0 },
6514 _LT_EOF
6515           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516           cat <<\_LT_EOF >> conftest.$ac_ext
6517   {0, (void *) 0}
6518 };
6519
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523   return lt__PROGRAM__LTX_preloaded_symbols;
6524 }
6525 #endif
6526
6527 #ifdef __cplusplus
6528 }
6529 #endif
6530 _LT_EOF
6531           # Now try linking the two files.
6532           mv conftest.$ac_objext conftstm.$ac_objext
6533           lt_globsym_save_LIBS=$LIBS
6534           lt_globsym_save_CFLAGS=$CFLAGS
6535           LIBS=conftstm.$ac_objext
6536           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6542             pipe_works=yes
6543           fi
6544           LIBS=$lt_globsym_save_LIBS
6545           CFLAGS=$lt_globsym_save_CFLAGS
6546         else
6547           echo "cannot find nm_test_func in $nlist" >&5
6548         fi
6549       else
6550         echo "cannot find nm_test_var in $nlist" >&5
6551       fi
6552     else
6553       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6554     fi
6555   else
6556     echo "$progname: failed program was:" >&5
6557     cat conftest.$ac_ext >&5
6558   fi
6559   rm -rf conftest* conftst*
6560
6561   # Do not use the global_symbol_pipe unless it works.
6562   if test yes = "$pipe_works"; then
6563     break
6564   else
6565     lt_cv_sys_global_symbol_pipe=
6566   fi
6567 done
6568
6569 fi
6570
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572   lt_cv_sys_global_symbol_to_cdecl=
6573 fi
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6580 fi
6581
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584   nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586   nm_file_list_spec='@'
6587 fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6626 $as_echo_n "checking for sysroot... " >&6; }
6627
6628 # Check whether --with-sysroot was given.
6629 if test "${with_sysroot+set}" = set; then :
6630   withval=$with_sysroot;
6631 else
6632   with_sysroot=no
6633 fi
6634
6635
6636 lt_sysroot=
6637 case $with_sysroot in #(
6638  yes)
6639    if test yes = "$GCC"; then
6640      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6641    fi
6642    ;; #(
6643  /*)
6644    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6645    ;; #(
6646  no|'')
6647    ;; #(
6648  *)
6649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6650 $as_echo "$with_sysroot" >&6; }
6651    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6652    ;;
6653 esac
6654
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6656 $as_echo "${lt_sysroot:-no}" >&6; }
6657
6658
6659
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6663 $as_echo_n "checking for a working dd... " >&6; }
6664 if ${ac_cv_path_lt_DD+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   printf 0123456789abcdef0123456789abcdef >conftest.i
6668 cat conftest.i conftest.i >conftest2.i
6669 : ${lt_DD:=$DD}
6670 if test -z "$lt_DD"; then
6671   ac_path_lt_DD_found=false
6672   # Loop through the user's path and test for each of PROGNAME-LIST
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_prog in dd; do
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6681       as_fn_executable_p "$ac_path_lt_DD" || continue
6682 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6683   cmp -s conftest.i conftest.out \
6684   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6685 fi
6686       $ac_path_lt_DD_found && break 3
6687     done
6688   done
6689   done
6690 IFS=$as_save_IFS
6691   if test -z "$ac_cv_path_lt_DD"; then
6692     :
6693   fi
6694 else
6695   ac_cv_path_lt_DD=$lt_DD
6696 fi
6697
6698 rm -f conftest.i conftest2.i conftest.out
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6701 $as_echo "$ac_cv_path_lt_DD" >&6; }
6702
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6705 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6706 if ${lt_cv_truncate_bin+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   printf 0123456789abcdef0123456789abcdef >conftest.i
6710 cat conftest.i conftest.i >conftest2.i
6711 lt_cv_truncate_bin=
6712 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6713   cmp -s conftest.i conftest.out \
6714   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6715 fi
6716 rm -f conftest.i conftest2.i conftest.out
6717 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6720 $as_echo "$lt_cv_truncate_bin" >&6; }
6721
6722
6723
6724
6725
6726
6727
6728 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6729 func_cc_basename ()
6730 {
6731     for cc_temp in $*""; do
6732       case $cc_temp in
6733         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6734         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6735         \-*) ;;
6736         *) break;;
6737       esac
6738     done
6739     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6740 }
6741
6742 # Check whether --enable-libtool-lock was given.
6743 if test "${enable_libtool_lock+set}" = set; then :
6744   enableval=$enable_libtool_lock;
6745 fi
6746
6747 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6748
6749 # Some flags need to be propagated to the compiler or linker for good
6750 # libtool support.
6751 case $host in
6752 ia64-*-hpux*)
6753   # Find out what ABI is being produced by ac_compile, and set mode
6754   # options accordingly.
6755   echo 'int i;' > conftest.$ac_ext
6756   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757   (eval $ac_compile) 2>&5
6758   ac_status=$?
6759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760   test $ac_status = 0; }; then
6761     case `/usr/bin/file conftest.$ac_objext` in
6762       *ELF-32*)
6763         HPUX_IA64_MODE=32
6764         ;;
6765       *ELF-64*)
6766         HPUX_IA64_MODE=64
6767         ;;
6768     esac
6769   fi
6770   rm -rf conftest*
6771   ;;
6772 *-*-irix6*)
6773   # Find out what ABI is being produced by ac_compile, and set linker
6774   # options accordingly.
6775   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777   (eval $ac_compile) 2>&5
6778   ac_status=$?
6779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780   test $ac_status = 0; }; then
6781     if test yes = "$lt_cv_prog_gnu_ld"; then
6782       case `/usr/bin/file conftest.$ac_objext` in
6783         *32-bit*)
6784           LD="${LD-ld} -melf32bsmip"
6785           ;;
6786         *N32*)
6787           LD="${LD-ld} -melf32bmipn32"
6788           ;;
6789         *64-bit*)
6790           LD="${LD-ld} -melf64bmip"
6791         ;;
6792       esac
6793     else
6794       case `/usr/bin/file conftest.$ac_objext` in
6795         *32-bit*)
6796           LD="${LD-ld} -32"
6797           ;;
6798         *N32*)
6799           LD="${LD-ld} -n32"
6800           ;;
6801         *64-bit*)
6802           LD="${LD-ld} -64"
6803           ;;
6804       esac
6805     fi
6806   fi
6807   rm -rf conftest*
6808   ;;
6809
6810 mips64*-*linux*)
6811   # Find out what ABI is being produced by ac_compile, and set linker
6812   # options accordingly.
6813   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815   (eval $ac_compile) 2>&5
6816   ac_status=$?
6817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818   test $ac_status = 0; }; then
6819     emul=elf
6820     case `/usr/bin/file conftest.$ac_objext` in
6821       *32-bit*)
6822         emul="${emul}32"
6823         ;;
6824       *64-bit*)
6825         emul="${emul}64"
6826         ;;
6827     esac
6828     case `/usr/bin/file conftest.$ac_objext` in
6829       *MSB*)
6830         emul="${emul}btsmip"
6831         ;;
6832       *LSB*)
6833         emul="${emul}ltsmip"
6834         ;;
6835     esac
6836     case `/usr/bin/file conftest.$ac_objext` in
6837       *N32*)
6838         emul="${emul}n32"
6839         ;;
6840     esac
6841     LD="${LD-ld} -m $emul"
6842   fi
6843   rm -rf conftest*
6844   ;;
6845
6846 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6847 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6848   # Find out what ABI is being produced by ac_compile, and set linker
6849   # options accordingly.  Note that the listed cases only cover the
6850   # situations where additional linker options are needed (such as when
6851   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6852   # vice versa); the common cases where no linker options are needed do
6853   # not appear in the list.
6854   echo 'int i;' > conftest.$ac_ext
6855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856   (eval $ac_compile) 2>&5
6857   ac_status=$?
6858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859   test $ac_status = 0; }; then
6860     case `/usr/bin/file conftest.o` in
6861       *32-bit*)
6862         case $host in
6863           x86_64-*kfreebsd*-gnu)
6864             LD="${LD-ld} -m elf_i386_fbsd"
6865             ;;
6866           x86_64-*linux*)
6867             case `/usr/bin/file conftest.o` in
6868               *x86-64*)
6869                 LD="${LD-ld} -m elf32_x86_64"
6870                 ;;
6871               *)
6872                 LD="${LD-ld} -m elf_i386"
6873                 ;;
6874             esac
6875             ;;
6876           powerpc64le-*linux*)
6877             LD="${LD-ld} -m elf32lppclinux"
6878             ;;
6879           powerpc64-*linux*)
6880             LD="${LD-ld} -m elf32ppclinux"
6881             ;;
6882           s390x-*linux*)
6883             LD="${LD-ld} -m elf_s390"
6884             ;;
6885           sparc64-*linux*)
6886             LD="${LD-ld} -m elf32_sparc"
6887             ;;
6888         esac
6889         ;;
6890       *64-bit*)
6891         case $host in
6892           x86_64-*kfreebsd*-gnu)
6893             LD="${LD-ld} -m elf_x86_64_fbsd"
6894             ;;
6895           x86_64-*linux*)
6896             LD="${LD-ld} -m elf_x86_64"
6897             ;;
6898           powerpcle-*linux*)
6899             LD="${LD-ld} -m elf64lppc"
6900             ;;
6901           powerpc-*linux*)
6902             LD="${LD-ld} -m elf64ppc"
6903             ;;
6904           s390*-*linux*|s390*-*tpf*)
6905             LD="${LD-ld} -m elf64_s390"
6906             ;;
6907           sparc*-*linux*)
6908             LD="${LD-ld} -m elf64_sparc"
6909             ;;
6910         esac
6911         ;;
6912     esac
6913   fi
6914   rm -rf conftest*
6915   ;;
6916
6917 *-*-sco3.2v5*)
6918   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6919   SAVE_CFLAGS=$CFLAGS
6920   CFLAGS="$CFLAGS -belf"
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6923 if ${lt_cv_cc_needs_belf+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944   lt_cv_cc_needs_belf=yes
6945 else
6946   lt_cv_cc_needs_belf=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext \
6949     conftest$ac_exeext conftest.$ac_ext
6950      ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6959   if test yes != "$lt_cv_cc_needs_belf"; then
6960     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6961     CFLAGS=$SAVE_CFLAGS
6962   fi
6963   ;;
6964 *-*solaris*)
6965   # Find out what ABI is being produced by ac_compile, and set linker
6966   # options accordingly.
6967   echo 'int i;' > conftest.$ac_ext
6968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969   (eval $ac_compile) 2>&5
6970   ac_status=$?
6971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972   test $ac_status = 0; }; then
6973     case `/usr/bin/file conftest.o` in
6974     *64-bit*)
6975       case $lt_cv_prog_gnu_ld in
6976       yes*)
6977         case $host in
6978         i?86-*-solaris*|x86_64-*-solaris*)
6979           LD="${LD-ld} -m elf_x86_64"
6980           ;;
6981         sparc*-*-solaris*)
6982           LD="${LD-ld} -m elf64_sparc"
6983           ;;
6984         esac
6985         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6986         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6987           LD=${LD-ld}_sol2
6988         fi
6989         ;;
6990       *)
6991         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6992           LD="${LD-ld} -64"
6993         fi
6994         ;;
6995       esac
6996       ;;
6997     esac
6998   fi
6999   rm -rf conftest*
7000   ;;
7001 esac
7002
7003 need_locks=$enable_libtool_lock
7004
7005 if test -n "$ac_tool_prefix"; then
7006   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}mt; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   if test -n "$MANIFEST_TOOL"; then
7014   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7034 if test -n "$MANIFEST_TOOL"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7036 $as_echo "$MANIFEST_TOOL" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7045   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7046   # Extract the first word of "mt", so it can be a program name with args.
7047 set dummy mt; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   if test -n "$ac_ct_MANIFEST_TOOL"; then
7054   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061     for ac_exec_ext in '' $ac_executable_extensions; do
7062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068   done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7074 if test -n "$ac_ct_MANIFEST_TOOL"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7076 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7083     MANIFEST_TOOL=":"
7084   else
7085     case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7092   fi
7093 else
7094   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7095 fi
7096
7097 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7099 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7100 if ${lt_cv_path_mainfest_tool+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   lt_cv_path_mainfest_tool=no
7104   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7105   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7106   cat conftest.err >&5
7107   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7108     lt_cv_path_mainfest_tool=yes
7109   fi
7110   rm -f conftest*
7111 fi
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7113 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7114 if test yes != "$lt_cv_path_mainfest_tool"; then
7115   MANIFEST_TOOL=:
7116 fi
7117
7118
7119
7120
7121
7122
7123   case $host_os in
7124     rhapsody* | darwin*)
7125     if test -n "$ac_tool_prefix"; then
7126   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$DSYMUTIL"; then
7134   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165   ac_ct_DSYMUTIL=$DSYMUTIL
7166   # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$ac_ct_DSYMUTIL"; then
7174   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202   if test "x$ac_ct_DSYMUTIL" = x; then
7203     DSYMUTIL=":"
7204   else
7205     case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211     DSYMUTIL=$ac_ct_DSYMUTIL
7212   fi
7213 else
7214   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7215 fi
7216
7217     if test -n "$ac_tool_prefix"; then
7218   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_NMEDIT+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$NMEDIT"; then
7226   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257   ac_ct_NMEDIT=$NMEDIT
7258   # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$ac_ct_NMEDIT"; then
7266   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294   if test "x$ac_ct_NMEDIT" = x; then
7295     NMEDIT=":"
7296   else
7297     case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303     NMEDIT=$ac_ct_NMEDIT
7304   fi
7305 else
7306   NMEDIT="$ac_cv_prog_NMEDIT"
7307 fi
7308
7309     if test -n "$ac_tool_prefix"; then
7310   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_LIPO+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if test -n "$LIPO"; then
7318   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325     for ac_exec_ext in '' $ac_executable_extensions; do
7326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332   done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_LIPO"; then
7349   ac_ct_LIPO=$LIPO
7350   # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$ac_ct_LIPO"; then
7358   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_ac_ct_LIPO="lipo"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386   if test "x$ac_ct_LIPO" = x; then
7387     LIPO=":"
7388   else
7389     case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395     LIPO=$ac_ct_LIPO
7396   fi
7397 else
7398   LIPO="$ac_cv_prog_LIPO"
7399 fi
7400
7401     if test -n "$ac_tool_prefix"; then
7402   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OTOOL+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   if test -n "$OTOOL"; then
7410   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7433 else
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_OTOOL"; then
7441   ac_ct_OTOOL=$OTOOL
7442   # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$ac_ct_OTOOL"; then
7450   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459     ac_cv_prog_ac_ct_OTOOL="otool"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478   if test "x$ac_ct_OTOOL" = x; then
7479     OTOOL=":"
7480   else
7481     case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487     OTOOL=$ac_ct_OTOOL
7488   fi
7489 else
7490   OTOOL="$ac_cv_prog_OTOOL"
7491 fi
7492
7493     if test -n "$ac_tool_prefix"; then
7494   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_OTOOL64+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$OTOOL64"; then
7502   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533   ac_ct_OTOOL64=$OTOOL64
7534   # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$ac_ct_OTOOL64"; then
7542   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_prog_ac_ct_OTOOL64="otool64"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570   if test "x$ac_ct_OTOOL64" = x; then
7571     OTOOL64=":"
7572   else
7573     case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579     OTOOL64=$ac_ct_OTOOL64
7580   fi
7581 else
7582   OTOOL64="$ac_cv_prog_OTOOL64"
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if ${lt_cv_apple_cc_single_mod+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   lt_cv_apple_cc_single_mod=no
7617       if test -z "$LT_MULTI_MODULE"; then
7618         # By default we will add the -single_module flag. You can override
7619         # by either setting the environment variable LT_MULTI_MODULE
7620         # non-empty at configure time, or by adding -multi_module to the
7621         # link flags.
7622         rm -rf libconftest.dylib*
7623         echo "int foo(void){return 1;}" > conftest.c
7624         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7628         _lt_result=$?
7629         # If there is a non-empty error log, and "single_module"
7630         # appears in it, assume the flag caused a linker warning
7631         if test -s conftest.err && $GREP single_module conftest.err; then
7632           cat conftest.err >&5
7633         # Otherwise, if the output was created with a 0 exit code from
7634         # the compiler, it worked.
7635         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7636           lt_cv_apple_cc_single_mod=yes
7637         else
7638           cat conftest.err >&5
7639         fi
7640         rm -rf libconftest.dylib*
7641         rm -f conftest.*
7642       fi
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7646
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7648 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7649 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   lt_cv_ld_exported_symbols_list=no
7653       save_LDFLAGS=$LDFLAGS
7654       echo "_main" > conftest.sym
7655       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h.  */
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668   lt_cv_ld_exported_symbols_list=yes
7669 else
7670   lt_cv_ld_exported_symbols_list=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674         LDFLAGS=$save_LDFLAGS
7675
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7678 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7679
7680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7681 $as_echo_n "checking for -force_load linker flag... " >&6; }
7682 if ${lt_cv_ld_force_load+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   lt_cv_ld_force_load=no
7686       cat > conftest.c << _LT_EOF
7687 int forced_loaded() { return 2;}
7688 _LT_EOF
7689       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7690       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7691       echo "$AR cru libconftest.a conftest.o" >&5
7692       $AR cru libconftest.a conftest.o 2>&5
7693       echo "$RANLIB libconftest.a" >&5
7694       $RANLIB libconftest.a 2>&5
7695       cat > conftest.c << _LT_EOF
7696 int main() { return 0;}
7697 _LT_EOF
7698       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7699       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7700       _lt_result=$?
7701       if test -s conftest.err && $GREP force_load conftest.err; then
7702         cat conftest.err >&5
7703       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7704         lt_cv_ld_force_load=yes
7705       else
7706         cat conftest.err >&5
7707       fi
7708         rm -f conftest.err libconftest.a conftest conftest.c
7709         rm -rf conftest.dSYM
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7713 $as_echo "$lt_cv_ld_force_load" >&6; }
7714     case $host_os in
7715     rhapsody* | darwin1.[012])
7716       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7717     darwin1.*)
7718       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7719     darwin*) # darwin 5.x on
7720       # if running on 10.5 or later, the deployment target defaults
7721       # to the OS version, if on x86, and 10.4, the deployment
7722       # target defaults to 10.4. Don't you love it?
7723       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7724         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7725           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7726         10.[012][,.]*)
7727           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7728         10.*)
7729           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7730       esac
7731     ;;
7732   esac
7733     if test yes = "$lt_cv_apple_cc_single_mod"; then
7734       _lt_dar_single_mod='$single_module'
7735     fi
7736     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7737       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7738     else
7739       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7740     fi
7741     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7742       _lt_dsymutil='~$DSYMUTIL $lib || :'
7743     else
7744       _lt_dsymutil=
7745     fi
7746     ;;
7747   esac
7748
7749 # func_munge_path_list VARIABLE PATH
7750 # -----------------------------------
7751 # VARIABLE is name of variable containing _space_ separated list of
7752 # directories to be munged by the contents of PATH, which is string
7753 # having a format:
7754 # "DIR[:DIR]:"
7755 #       string "DIR[ DIR]" will be prepended to VARIABLE
7756 # ":DIR[:DIR]"
7757 #       string "DIR[ DIR]" will be appended to VARIABLE
7758 # "DIRP[:DIRP]::[DIRA:]DIRA"
7759 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7760 #       "DIRA[ DIRA]" will be appended to VARIABLE
7761 # "DIR[:DIR]"
7762 #       VARIABLE will be replaced by "DIR[ DIR]"
7763 func_munge_path_list ()
7764 {
7765     case x$2 in
7766     x)
7767         ;;
7768     *:)
7769         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7770         ;;
7771     x:*)
7772         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7773         ;;
7774     *::*)
7775         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7776         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7777         ;;
7778     *)
7779         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7780         ;;
7781     esac
7782 }
7783
7784 ac_ext=c
7785 ac_cpp='$CPP $CPPFLAGS'
7786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7790 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7791 # On Suns, sometimes $CPP names a directory.
7792 if test -n "$CPP" && test -d "$CPP"; then
7793   CPP=
7794 fi
7795 if test -z "$CPP"; then
7796   if ${ac_cv_prog_CPP+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799       # Double quotes because CPP needs to be expanded
7800     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7801     do
7802       ac_preproc_ok=false
7803 for ac_c_preproc_warn_flag in '' yes
7804 do
7805   # Use a header file that comes with gcc, so configuring glibc
7806   # with a fresh cross-compiler works.
7807   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7808   # <limits.h> exists even on freestanding compilers.
7809   # On the NeXT, cc -E runs the code through the compiler's parser,
7810   # not just through cpp. "Syntax error" is here to catch this case.
7811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h.  */
7813 #ifdef __STDC__
7814 # include <limits.h>
7815 #else
7816 # include <assert.h>
7817 #endif
7818                      Syntax error
7819 _ACEOF
7820 if ac_fn_c_try_cpp "$LINENO"; then :
7821
7822 else
7823   # Broken: fails on valid input.
7824 continue
7825 fi
7826 rm -f conftest.err conftest.i conftest.$ac_ext
7827
7828   # OK, works on sane cases.  Now check whether nonexistent headers
7829   # can be detected and how.
7830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832 #include <ac_nonexistent.h>
7833 _ACEOF
7834 if ac_fn_c_try_cpp "$LINENO"; then :
7835   # Broken: success on invalid input.
7836 continue
7837 else
7838   # Passes both tests.
7839 ac_preproc_ok=:
7840 break
7841 fi
7842 rm -f conftest.err conftest.i conftest.$ac_ext
7843
7844 done
7845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7846 rm -f conftest.i conftest.err conftest.$ac_ext
7847 if $ac_preproc_ok; then :
7848   break
7849 fi
7850
7851     done
7852     ac_cv_prog_CPP=$CPP
7853
7854 fi
7855   CPP=$ac_cv_prog_CPP
7856 else
7857   ac_cv_prog_CPP=$CPP
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7860 $as_echo "$CPP" >&6; }
7861 ac_preproc_ok=false
7862 for ac_c_preproc_warn_flag in '' yes
7863 do
7864   # Use a header file that comes with gcc, so configuring glibc
7865   # with a fresh cross-compiler works.
7866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7867   # <limits.h> exists even on freestanding compilers.
7868   # On the NeXT, cc -E runs the code through the compiler's parser,
7869   # not just through cpp. "Syntax error" is here to catch this case.
7870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872 #ifdef __STDC__
7873 # include <limits.h>
7874 #else
7875 # include <assert.h>
7876 #endif
7877                      Syntax error
7878 _ACEOF
7879 if ac_fn_c_try_cpp "$LINENO"; then :
7880
7881 else
7882   # Broken: fails on valid input.
7883 continue
7884 fi
7885 rm -f conftest.err conftest.i conftest.$ac_ext
7886
7887   # OK, works on sane cases.  Now check whether nonexistent headers
7888   # can be detected and how.
7889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891 #include <ac_nonexistent.h>
7892 _ACEOF
7893 if ac_fn_c_try_cpp "$LINENO"; then :
7894   # Broken: success on invalid input.
7895 continue
7896 else
7897   # Passes both tests.
7898 ac_preproc_ok=:
7899 break
7900 fi
7901 rm -f conftest.err conftest.i conftest.$ac_ext
7902
7903 done
7904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7905 rm -f conftest.i conftest.err conftest.$ac_ext
7906 if $ac_preproc_ok; then :
7907
7908 else
7909   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7911 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7912 See \`config.log' for more details" "$LINENO" 5; }
7913 fi
7914
7915 ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7923 $as_echo_n "checking for ANSI C header files... " >&6; }
7924 if ${ac_cv_header_stdc+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h.  */
7929 #include <stdlib.h>
7930 #include <stdarg.h>
7931 #include <string.h>
7932 #include <float.h>
7933
7934 int
7935 main ()
7936 {
7937
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943   ac_cv_header_stdc=yes
7944 else
7945   ac_cv_header_stdc=no
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948
7949 if test $ac_cv_header_stdc = yes; then
7950   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953 #include <string.h>
7954
7955 _ACEOF
7956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957   $EGREP "memchr" >/dev/null 2>&1; then :
7958
7959 else
7960   ac_cv_header_stdc=no
7961 fi
7962 rm -f conftest*
7963
7964 fi
7965
7966 if test $ac_cv_header_stdc = yes; then
7967   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h.  */
7970 #include <stdlib.h>
7971
7972 _ACEOF
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974   $EGREP "free" >/dev/null 2>&1; then :
7975
7976 else
7977   ac_cv_header_stdc=no
7978 fi
7979 rm -f conftest*
7980
7981 fi
7982
7983 if test $ac_cv_header_stdc = yes; then
7984   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7985   if test "$cross_compiling" = yes; then :
7986   :
7987 else
7988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h.  */
7990 #include <ctype.h>
7991 #include <stdlib.h>
7992 #if ((' ' & 0x0FF) == 0x020)
7993 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7994 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7995 #else
7996 # define ISLOWER(c) \
7997                    (('a' <= (c) && (c) <= 'i') \
7998                      || ('j' <= (c) && (c) <= 'r') \
7999                      || ('s' <= (c) && (c) <= 'z'))
8000 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8001 #endif
8002
8003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8004 int
8005 main ()
8006 {
8007   int i;
8008   for (i = 0; i < 256; i++)
8009     if (XOR (islower (i), ISLOWER (i))
8010         || toupper (i) != TOUPPER (i))
8011       return 2;
8012   return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_run "$LINENO"; then :
8016
8017 else
8018   ac_cv_header_stdc=no
8019 fi
8020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8021   conftest.$ac_objext conftest.beam conftest.$ac_ext
8022 fi
8023
8024 fi
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8027 $as_echo "$ac_cv_header_stdc" >&6; }
8028 if test $ac_cv_header_stdc = yes; then
8029
8030 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8031
8032 fi
8033
8034 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8035 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8036                   inttypes.h stdint.h unistd.h
8037 do :
8038   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8039 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8040 "
8041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8042   cat >>confdefs.h <<_ACEOF
8043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044 _ACEOF
8045
8046 fi
8047
8048 done
8049
8050
8051 for ac_header in dlfcn.h
8052 do :
8053   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8054 "
8055 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8056   cat >>confdefs.h <<_ACEOF
8057 #define HAVE_DLFCN_H 1
8058 _ACEOF
8059
8060 fi
8061
8062 done
8063
8064
8065
8066
8067
8068 # Set options
8069 # Check whether --enable-static was given.
8070 if test "${enable_static+set}" = set; then :
8071   enableval=$enable_static; p=${PACKAGE-default}
8072     case $enableval in
8073     yes) enable_static=yes ;;
8074     no) enable_static=no ;;
8075     *)
8076      enable_static=no
8077       # Look at the argument we got.  We use all the common list separators.
8078       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8079       for pkg in $enableval; do
8080         IFS=$lt_save_ifs
8081         if test "X$pkg" = "X$p"; then
8082           enable_static=yes
8083         fi
8084       done
8085       IFS=$lt_save_ifs
8086       ;;
8087     esac
8088 else
8089   enable_static=no
8090 fi
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101         enable_dlopen=no
8102
8103
8104   enable_win32_dll=no
8105
8106
8107             # Check whether --enable-shared was given.
8108 if test "${enable_shared+set}" = set; then :
8109   enableval=$enable_shared; p=${PACKAGE-default}
8110     case $enableval in
8111     yes) enable_shared=yes ;;
8112     no) enable_shared=no ;;
8113     *)
8114       enable_shared=no
8115       # Look at the argument we got.  We use all the common list separators.
8116       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8117       for pkg in $enableval; do
8118         IFS=$lt_save_ifs
8119         if test "X$pkg" = "X$p"; then
8120           enable_shared=yes
8121         fi
8122       done
8123       IFS=$lt_save_ifs
8124       ;;
8125     esac
8126 else
8127   enable_shared=yes
8128 fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 # Check whether --with-pic was given.
8141 if test "${with_pic+set}" = set; then :
8142   withval=$with_pic; lt_p=${PACKAGE-default}
8143     case $withval in
8144     yes|no) pic_mode=$withval ;;
8145     *)
8146       pic_mode=default
8147       # Look at the argument we got.  We use all the common list separators.
8148       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8149       for lt_pkg in $withval; do
8150         IFS=$lt_save_ifs
8151         if test "X$lt_pkg" = "X$lt_p"; then
8152           pic_mode=yes
8153         fi
8154       done
8155       IFS=$lt_save_ifs
8156       ;;
8157     esac
8158 else
8159   pic_mode=default
8160 fi
8161
8162
8163
8164
8165
8166
8167
8168
8169   # Check whether --enable-fast-install was given.
8170 if test "${enable_fast_install+set}" = set; then :
8171   enableval=$enable_fast_install; p=${PACKAGE-default}
8172     case $enableval in
8173     yes) enable_fast_install=yes ;;
8174     no) enable_fast_install=no ;;
8175     *)
8176       enable_fast_install=no
8177       # Look at the argument we got.  We use all the common list separators.
8178       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8179       for pkg in $enableval; do
8180         IFS=$lt_save_ifs
8181         if test "X$pkg" = "X$p"; then
8182           enable_fast_install=yes
8183         fi
8184       done
8185       IFS=$lt_save_ifs
8186       ;;
8187     esac
8188 else
8189   enable_fast_install=yes
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199   shared_archive_member_spec=
8200 case $host,$enable_shared in
8201 power*-*-aix[5-9]*,yes)
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8203 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8204
8205 # Check whether --with-aix-soname was given.
8206 if test "${with_aix_soname+set}" = set; then :
8207   withval=$with_aix_soname; case $withval in
8208     aix|svr4|both)
8209       ;;
8210     *)
8211       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8212       ;;
8213     esac
8214     lt_cv_with_aix_soname=$with_aix_soname
8215 else
8216   if ${lt_cv_with_aix_soname+:} false; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   lt_cv_with_aix_soname=aix
8220 fi
8221
8222     with_aix_soname=$lt_cv_with_aix_soname
8223 fi
8224
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8226 $as_echo "$with_aix_soname" >&6; }
8227   if test aix != "$with_aix_soname"; then
8228     # For the AIX way of multilib, we name the shared archive member
8229     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8230     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8231     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8232     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8233     if test 64 = "${OBJECT_MODE-32}"; then
8234       shared_archive_member_spec=shr_64
8235     else
8236       shared_archive_member_spec=shr
8237     fi
8238   fi
8239   ;;
8240 *)
8241   with_aix_soname=aix
8242   ;;
8243 esac
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254 # This can be used to rebuild libtool when needed
8255 LIBTOOL_DEPS=$ltmain
8256
8257 # Always use our own libtool.
8258 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 test -z "$LN_S" && LN_S="ln -s"
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304 if test -n "${ZSH_VERSION+set}"; then
8305    setopt NO_GLOB_SUBST
8306 fi
8307
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8309 $as_echo_n "checking for objdir... " >&6; }
8310 if ${lt_cv_objdir+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   rm -f .libs 2>/dev/null
8314 mkdir .libs 2>/dev/null
8315 if test -d .libs; then
8316   lt_cv_objdir=.libs
8317 else
8318   # MS-DOS does not allow filenames that begin with a dot.
8319   lt_cv_objdir=_libs
8320 fi
8321 rmdir .libs 2>/dev/null
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8324 $as_echo "$lt_cv_objdir" >&6; }
8325 objdir=$lt_cv_objdir
8326
8327
8328
8329
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define LT_OBJDIR "$lt_cv_objdir/"
8333 _ACEOF
8334
8335
8336
8337
8338 case $host_os in
8339 aix3*)
8340   # AIX sometimes has problems with the GCC collect2 program.  For some
8341   # reason, if we set the COLLECT_NAMES environment variable, the problems
8342   # vanish in a puff of smoke.
8343   if test set != "${COLLECT_NAMES+set}"; then
8344     COLLECT_NAMES=
8345     export COLLECT_NAMES
8346   fi
8347   ;;
8348 esac
8349
8350 # Global variables:
8351 ofile=libtool
8352 can_build_shared=yes
8353
8354 # All known linkers require a '.a' archive for static linking (except MSVC,
8355 # which needs '.lib').
8356 libext=a
8357
8358 with_gnu_ld=$lt_cv_prog_gnu_ld
8359
8360 old_CC=$CC
8361 old_CFLAGS=$CFLAGS
8362
8363 # Set sane defaults for various variables
8364 test -z "$CC" && CC=cc
8365 test -z "$LTCC" && LTCC=$CC
8366 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8367 test -z "$LD" && LD=ld
8368 test -z "$ac_objext" && ac_objext=o
8369
8370 func_cc_basename $compiler
8371 cc_basename=$func_cc_basename_result
8372
8373
8374 # Only perform the check for file, if the check method requires it
8375 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8376 case $deplibs_check_method in
8377 file_magic*)
8378   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8380 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8381 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   case $MAGIC_CMD in
8385 [\\/*] |  ?:[\\/]*)
8386   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8387   ;;
8388 *)
8389   lt_save_MAGIC_CMD=$MAGIC_CMD
8390   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8391   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8392   for ac_dir in $ac_dummy; do
8393     IFS=$lt_save_ifs
8394     test -z "$ac_dir" && ac_dir=.
8395     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8396       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8397       if test -n "$file_magic_test_file"; then
8398         case $deplibs_check_method in
8399         "file_magic "*)
8400           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8401           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8402           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8403             $EGREP "$file_magic_regex" > /dev/null; then
8404             :
8405           else
8406             cat <<_LT_EOF 1>&2
8407
8408 *** Warning: the command libtool uses to detect shared libraries,
8409 *** $file_magic_cmd, produces output that libtool cannot recognize.
8410 *** The result is that libtool may fail to recognize shared libraries
8411 *** as such.  This will affect the creation of libtool libraries that
8412 *** depend on shared libraries, but programs linked with such libtool
8413 *** libraries will work regardless of this problem.  Nevertheless, you
8414 *** may want to report the problem to your system manager and/or to
8415 *** bug-libtool@gnu.org
8416
8417 _LT_EOF
8418           fi ;;
8419         esac
8420       fi
8421       break
8422     fi
8423   done
8424   IFS=$lt_save_ifs
8425   MAGIC_CMD=$lt_save_MAGIC_CMD
8426   ;;
8427 esac
8428 fi
8429
8430 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8431 if test -n "$MAGIC_CMD"; then
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8433 $as_echo "$MAGIC_CMD" >&6; }
8434 else
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 fi
8438
8439
8440
8441
8442
8443 if test -z "$lt_cv_path_MAGIC_CMD"; then
8444   if test -n "$ac_tool_prefix"; then
8445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8446 $as_echo_n "checking for file... " >&6; }
8447 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   case $MAGIC_CMD in
8451 [\\/*] |  ?:[\\/]*)
8452   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8453   ;;
8454 *)
8455   lt_save_MAGIC_CMD=$MAGIC_CMD
8456   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8458   for ac_dir in $ac_dummy; do
8459     IFS=$lt_save_ifs
8460     test -z "$ac_dir" && ac_dir=.
8461     if test -f "$ac_dir/file"; then
8462       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8463       if test -n "$file_magic_test_file"; then
8464         case $deplibs_check_method in
8465         "file_magic "*)
8466           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8467           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8469             $EGREP "$file_magic_regex" > /dev/null; then
8470             :
8471           else
8472             cat <<_LT_EOF 1>&2
8473
8474 *** Warning: the command libtool uses to detect shared libraries,
8475 *** $file_magic_cmd, produces output that libtool cannot recognize.
8476 *** The result is that libtool may fail to recognize shared libraries
8477 *** as such.  This will affect the creation of libtool libraries that
8478 *** depend on shared libraries, but programs linked with such libtool
8479 *** libraries will work regardless of this problem.  Nevertheless, you
8480 *** may want to report the problem to your system manager and/or to
8481 *** bug-libtool@gnu.org
8482
8483 _LT_EOF
8484           fi ;;
8485         esac
8486       fi
8487       break
8488     fi
8489   done
8490   IFS=$lt_save_ifs
8491   MAGIC_CMD=$lt_save_MAGIC_CMD
8492   ;;
8493 esac
8494 fi
8495
8496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8497 if test -n "$MAGIC_CMD"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8499 $as_echo "$MAGIC_CMD" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506   else
8507     MAGIC_CMD=:
8508   fi
8509 fi
8510
8511   fi
8512   ;;
8513 esac
8514
8515 # Use C for the default configuration in the libtool script
8516
8517 lt_save_CC=$CC
8518 ac_ext=c
8519 ac_cpp='$CPP $CPPFLAGS'
8520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524
8525 # Source file extension for C test sources.
8526 ac_ext=c
8527
8528 # Object file extension for compiled C test sources.
8529 objext=o
8530 objext=$objext
8531
8532 # Code to be used in simple compile tests
8533 lt_simple_compile_test_code="int some_variable = 0;"
8534
8535 # Code to be used in simple link tests
8536 lt_simple_link_test_code='int main(){return(0);}'
8537
8538
8539
8540
8541
8542
8543
8544 # If no C compiler was specified, use CC.
8545 LTCC=${LTCC-"$CC"}
8546
8547 # If no C compiler flags were specified, use CFLAGS.
8548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8549
8550 # Allow CC to be a program name with arguments.
8551 compiler=$CC
8552
8553 # Save the default compiler, since it gets overwritten when the other
8554 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8555 compiler_DEFAULT=$CC
8556
8557 # save warnings/boilerplate of simple test code
8558 ac_outfile=conftest.$ac_objext
8559 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8561 _lt_compiler_boilerplate=`cat conftest.err`
8562 $RM conftest*
8563
8564 ac_outfile=conftest.$ac_objext
8565 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8567 _lt_linker_boilerplate=`cat conftest.err`
8568 $RM -r conftest*
8569
8570
8571 ## CAVEAT EMPTOR:
8572 ## There is no encapsulation within the following macros, do not change
8573 ## the running order or otherwise move them around unless you know exactly
8574 ## what you are doing...
8575 if test -n "$compiler"; then
8576
8577 lt_prog_compiler_no_builtin_flag=
8578
8579 if test yes = "$GCC"; then
8580   case $cc_basename in
8581   nvcc*)
8582     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8583   *)
8584     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8585   esac
8586
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8588 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8589 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   lt_cv_prog_compiler_rtti_exceptions=no
8593    ac_outfile=conftest.$ac_objext
8594    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8595    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8596    # Insert the option either (1) after the last *FLAGS variable, or
8597    # (2) before a word containing "conftest.", or (3) at the end.
8598    # Note that $ac_compile itself does not contain backslashes and begins
8599    # with a dollar sign (not a hyphen), so the echo should work correctly.
8600    # The option is referenced via a variable to avoid confusing sed.
8601    lt_compile=`echo "$ac_compile" | $SED \
8602    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8603    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8604    -e 's:$: $lt_compiler_flag:'`
8605    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8606    (eval "$lt_compile" 2>conftest.err)
8607    ac_status=$?
8608    cat conftest.err >&5
8609    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610    if (exit $ac_status) && test -s "$ac_outfile"; then
8611      # The compiler can only warn and ignore the option if not recognized
8612      # So say no if there are warnings other than the usual output.
8613      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8614      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8615      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8616        lt_cv_prog_compiler_rtti_exceptions=yes
8617      fi
8618    fi
8619    $RM conftest*
8620
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8623 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8624
8625 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8626     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8627 else
8628     :
8629 fi
8630
8631 fi
8632
8633
8634
8635
8636
8637
8638   lt_prog_compiler_wl=
8639 lt_prog_compiler_pic=
8640 lt_prog_compiler_static=
8641
8642
8643   if test yes = "$GCC"; then
8644     lt_prog_compiler_wl='-Wl,'
8645     lt_prog_compiler_static='-static'
8646
8647     case $host_os in
8648       aix*)
8649       # All AIX code is PIC.
8650       if test ia64 = "$host_cpu"; then
8651         # AIX 5 now supports IA64 processor
8652         lt_prog_compiler_static='-Bstatic'
8653       fi
8654       lt_prog_compiler_pic='-fPIC'
8655       ;;
8656
8657     amigaos*)
8658       case $host_cpu in
8659       powerpc)
8660             # see comment about AmigaOS4 .so support
8661             lt_prog_compiler_pic='-fPIC'
8662         ;;
8663       m68k)
8664             # FIXME: we need at least 68020 code to build shared libraries, but
8665             # adding the '-m68020' flag to GCC prevents building anything better,
8666             # like '-m68040'.
8667             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8668         ;;
8669       esac
8670       ;;
8671
8672     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8673       # PIC is the default for these OSes.
8674       ;;
8675
8676     mingw* | cygwin* | pw32* | os2* | cegcc*)
8677       # This hack is so that the source file can tell whether it is being
8678       # built for inclusion in a dll (and should export symbols for example).
8679       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8680       # (--disable-auto-import) libraries
8681       lt_prog_compiler_pic='-DDLL_EXPORT'
8682       case $host_os in
8683       os2*)
8684         lt_prog_compiler_static='$wl-static'
8685         ;;
8686       esac
8687       ;;
8688
8689     darwin* | rhapsody*)
8690       # PIC is the default on this platform
8691       # Common symbols not allowed in MH_DYLIB files
8692       lt_prog_compiler_pic='-fno-common'
8693       ;;
8694
8695     haiku*)
8696       # PIC is the default for Haiku.
8697       # The "-static" flag exists, but is broken.
8698       lt_prog_compiler_static=
8699       ;;
8700
8701     hpux*)
8702       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8703       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8704       # sets the default TLS model and affects inlining.
8705       case $host_cpu in
8706       hppa*64*)
8707         # +Z the default
8708         ;;
8709       *)
8710         lt_prog_compiler_pic='-fPIC'
8711         ;;
8712       esac
8713       ;;
8714
8715     interix[3-9]*)
8716       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8717       # Instead, we relocate shared libraries at runtime.
8718       ;;
8719
8720     msdosdjgpp*)
8721       # Just because we use GCC doesn't mean we suddenly get shared libraries
8722       # on systems that don't support them.
8723       lt_prog_compiler_can_build_shared=no
8724       enable_shared=no
8725       ;;
8726
8727     *nto* | *qnx*)
8728       # QNX uses GNU C++, but need to define -shared option too, otherwise
8729       # it will coredump.
8730       lt_prog_compiler_pic='-fPIC -shared'
8731       ;;
8732
8733     sysv4*MP*)
8734       if test -d /usr/nec; then
8735         lt_prog_compiler_pic=-Kconform_pic
8736       fi
8737       ;;
8738
8739     *)
8740       lt_prog_compiler_pic='-fPIC'
8741       ;;
8742     esac
8743
8744     case $cc_basename in
8745     nvcc*) # Cuda Compiler Driver 2.2
8746       lt_prog_compiler_wl='-Xlinker '
8747       if test -n "$lt_prog_compiler_pic"; then
8748         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8749       fi
8750       ;;
8751     esac
8752   else
8753     # PORTME Check for flag to pass linker flags through the system compiler.
8754     case $host_os in
8755     aix*)
8756       lt_prog_compiler_wl='-Wl,'
8757       if test ia64 = "$host_cpu"; then
8758         # AIX 5 now supports IA64 processor
8759         lt_prog_compiler_static='-Bstatic'
8760       else
8761         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8762       fi
8763       ;;
8764
8765     darwin* | rhapsody*)
8766       # PIC is the default on this platform
8767       # Common symbols not allowed in MH_DYLIB files
8768       lt_prog_compiler_pic='-fno-common'
8769       case $cc_basename in
8770       nagfor*)
8771         # NAG Fortran compiler
8772         lt_prog_compiler_wl='-Wl,-Wl,,'
8773         lt_prog_compiler_pic='-PIC'
8774         lt_prog_compiler_static='-Bstatic'
8775         ;;
8776       esac
8777       ;;
8778
8779     mingw* | cygwin* | pw32* | os2* | cegcc*)
8780       # This hack is so that the source file can tell whether it is being
8781       # built for inclusion in a dll (and should export symbols for example).
8782       lt_prog_compiler_pic='-DDLL_EXPORT'
8783       case $host_os in
8784       os2*)
8785         lt_prog_compiler_static='$wl-static'
8786         ;;
8787       esac
8788       ;;
8789
8790     hpux9* | hpux10* | hpux11*)
8791       lt_prog_compiler_wl='-Wl,'
8792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8793       # not for PA HP-UX.
8794       case $host_cpu in
8795       hppa*64*|ia64*)
8796         # +Z the default
8797         ;;
8798       *)
8799         lt_prog_compiler_pic='+Z'
8800         ;;
8801       esac
8802       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8803       lt_prog_compiler_static='$wl-a ${wl}archive'
8804       ;;
8805
8806     irix5* | irix6* | nonstopux*)
8807       lt_prog_compiler_wl='-Wl,'
8808       # PIC (with -KPIC) is the default.
8809       lt_prog_compiler_static='-non_shared'
8810       ;;
8811
8812     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8813       case $cc_basename in
8814       # old Intel for x86_64, which still supported -KPIC.
8815       ecc*)
8816         lt_prog_compiler_wl='-Wl,'
8817         lt_prog_compiler_pic='-KPIC'
8818         lt_prog_compiler_static='-static'
8819         ;;
8820       # icc used to be incompatible with GCC.
8821       # ICC 10 doesn't accept -KPIC any more.
8822       icc* | ifort*)
8823         lt_prog_compiler_wl='-Wl,'
8824         lt_prog_compiler_pic='-fPIC'
8825         lt_prog_compiler_static='-static'
8826         ;;
8827       # Lahey Fortran 8.1.
8828       lf95*)
8829         lt_prog_compiler_wl='-Wl,'
8830         lt_prog_compiler_pic='--shared'
8831         lt_prog_compiler_static='--static'
8832         ;;
8833       nagfor*)
8834         # NAG Fortran compiler
8835         lt_prog_compiler_wl='-Wl,-Wl,,'
8836         lt_prog_compiler_pic='-PIC'
8837         lt_prog_compiler_static='-Bstatic'
8838         ;;
8839       tcc*)
8840         # Fabrice Bellard et al's Tiny C Compiler
8841         lt_prog_compiler_wl='-Wl,'
8842         lt_prog_compiler_pic='-fPIC'
8843         lt_prog_compiler_static='-static'
8844         ;;
8845       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8846         # Portland Group compilers (*not* the Pentium gcc compiler,
8847         # which looks to be a dead project)
8848         lt_prog_compiler_wl='-Wl,'
8849         lt_prog_compiler_pic='-fpic'
8850         lt_prog_compiler_static='-Bstatic'
8851         ;;
8852       ccc*)
8853         lt_prog_compiler_wl='-Wl,'
8854         # All Alpha code is PIC.
8855         lt_prog_compiler_static='-non_shared'
8856         ;;
8857       xl* | bgxl* | bgf* | mpixl*)
8858         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8859         lt_prog_compiler_wl='-Wl,'
8860         lt_prog_compiler_pic='-qpic'
8861         lt_prog_compiler_static='-qstaticlink'
8862         ;;
8863       *)
8864         case `$CC -V 2>&1 | sed 5q` in
8865         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8866           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8867           lt_prog_compiler_pic='-KPIC'
8868           lt_prog_compiler_static='-Bstatic'
8869           lt_prog_compiler_wl=''
8870           ;;
8871         *Sun\ F* | *Sun*Fortran*)
8872           lt_prog_compiler_pic='-KPIC'
8873           lt_prog_compiler_static='-Bstatic'
8874           lt_prog_compiler_wl='-Qoption ld '
8875           ;;
8876         *Sun\ C*)
8877           # Sun C 5.9
8878           lt_prog_compiler_pic='-KPIC'
8879           lt_prog_compiler_static='-Bstatic'
8880           lt_prog_compiler_wl='-Wl,'
8881           ;;
8882         *Intel*\ [CF]*Compiler*)
8883           lt_prog_compiler_wl='-Wl,'
8884           lt_prog_compiler_pic='-fPIC'
8885           lt_prog_compiler_static='-static'
8886           ;;
8887         *Portland\ Group*)
8888           lt_prog_compiler_wl='-Wl,'
8889           lt_prog_compiler_pic='-fpic'
8890           lt_prog_compiler_static='-Bstatic'
8891           ;;
8892         esac
8893         ;;
8894       esac
8895       ;;
8896
8897     newsos6)
8898       lt_prog_compiler_pic='-KPIC'
8899       lt_prog_compiler_static='-Bstatic'
8900       ;;
8901
8902     *nto* | *qnx*)
8903       # QNX uses GNU C++, but need to define -shared option too, otherwise
8904       # it will coredump.
8905       lt_prog_compiler_pic='-fPIC -shared'
8906       ;;
8907
8908     osf3* | osf4* | osf5*)
8909       lt_prog_compiler_wl='-Wl,'
8910       # All OSF/1 code is PIC.
8911       lt_prog_compiler_static='-non_shared'
8912       ;;
8913
8914     rdos*)
8915       lt_prog_compiler_static='-non_shared'
8916       ;;
8917
8918     solaris*)
8919       lt_prog_compiler_pic='-KPIC'
8920       lt_prog_compiler_static='-Bstatic'
8921       case $cc_basename in
8922       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8923         lt_prog_compiler_wl='-Qoption ld ';;
8924       *)
8925         lt_prog_compiler_wl='-Wl,';;
8926       esac
8927       ;;
8928
8929     sunos4*)
8930       lt_prog_compiler_wl='-Qoption ld '
8931       lt_prog_compiler_pic='-PIC'
8932       lt_prog_compiler_static='-Bstatic'
8933       ;;
8934
8935     sysv4 | sysv4.2uw2* | sysv4.3*)
8936       lt_prog_compiler_wl='-Wl,'
8937       lt_prog_compiler_pic='-KPIC'
8938       lt_prog_compiler_static='-Bstatic'
8939       ;;
8940
8941     sysv4*MP*)
8942       if test -d /usr/nec; then
8943         lt_prog_compiler_pic='-Kconform_pic'
8944         lt_prog_compiler_static='-Bstatic'
8945       fi
8946       ;;
8947
8948     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8949       lt_prog_compiler_wl='-Wl,'
8950       lt_prog_compiler_pic='-KPIC'
8951       lt_prog_compiler_static='-Bstatic'
8952       ;;
8953
8954     unicos*)
8955       lt_prog_compiler_wl='-Wl,'
8956       lt_prog_compiler_can_build_shared=no
8957       ;;
8958
8959     uts4*)
8960       lt_prog_compiler_pic='-pic'
8961       lt_prog_compiler_static='-Bstatic'
8962       ;;
8963
8964     *)
8965       lt_prog_compiler_can_build_shared=no
8966       ;;
8967     esac
8968   fi
8969
8970 case $host_os in
8971   # For platforms that do not support PIC, -DPIC is meaningless:
8972   *djgpp*)
8973     lt_prog_compiler_pic=
8974     ;;
8975   *)
8976     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8977     ;;
8978 esac
8979
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8981 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8982 if ${lt_cv_prog_compiler_pic+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8988 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8989 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8990
8991 #
8992 # Check to make sure the PIC flag actually works.
8993 #
8994 if test -n "$lt_prog_compiler_pic"; then
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8996 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8997 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8998   $as_echo_n "(cached) " >&6
8999 else
9000   lt_cv_prog_compiler_pic_works=no
9001    ac_outfile=conftest.$ac_objext
9002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9003    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9004    # Insert the option either (1) after the last *FLAGS variable, or
9005    # (2) before a word containing "conftest.", or (3) at the end.
9006    # Note that $ac_compile itself does not contain backslashes and begins
9007    # with a dollar sign (not a hyphen), so the echo should work correctly.
9008    # The option is referenced via a variable to avoid confusing sed.
9009    lt_compile=`echo "$ac_compile" | $SED \
9010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9012    -e 's:$: $lt_compiler_flag:'`
9013    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9014    (eval "$lt_compile" 2>conftest.err)
9015    ac_status=$?
9016    cat conftest.err >&5
9017    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018    if (exit $ac_status) && test -s "$ac_outfile"; then
9019      # The compiler can only warn and ignore the option if not recognized
9020      # So say no if there are warnings other than the usual output.
9021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9024        lt_cv_prog_compiler_pic_works=yes
9025      fi
9026    fi
9027    $RM conftest*
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9031 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9032
9033 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9034     case $lt_prog_compiler_pic in
9035      "" | " "*) ;;
9036      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9037      esac
9038 else
9039     lt_prog_compiler_pic=
9040      lt_prog_compiler_can_build_shared=no
9041 fi
9042
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 #
9056 # Check to make sure the static flag actually works.
9057 #
9058 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9060 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9061 if ${lt_cv_prog_compiler_static_works+:} false; then :
9062   $as_echo_n "(cached) " >&6
9063 else
9064   lt_cv_prog_compiler_static_works=no
9065    save_LDFLAGS=$LDFLAGS
9066    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9067    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9068    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9069      # The linker can only warn and ignore the option if not recognized
9070      # So say no if there are warnings
9071      if test -s conftest.err; then
9072        # Append any errors to the config.log.
9073        cat conftest.err 1>&5
9074        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9075        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9076        if diff conftest.exp conftest.er2 >/dev/null; then
9077          lt_cv_prog_compiler_static_works=yes
9078        fi
9079      else
9080        lt_cv_prog_compiler_static_works=yes
9081      fi
9082    fi
9083    $RM -r conftest*
9084    LDFLAGS=$save_LDFLAGS
9085
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9088 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9089
9090 if test yes = "$lt_cv_prog_compiler_static_works"; then
9091     :
9092 else
9093     lt_prog_compiler_static=
9094 fi
9095
9096
9097
9098
9099
9100
9101
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9104 if ${lt_cv_prog_compiler_c_o+:} false; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   lt_cv_prog_compiler_c_o=no
9108    $RM -r conftest 2>/dev/null
9109    mkdir conftest
9110    cd conftest
9111    mkdir out
9112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9113
9114    lt_compiler_flag="-o out/conftest2.$ac_objext"
9115    # Insert the option either (1) after the last *FLAGS variable, or
9116    # (2) before a word containing "conftest.", or (3) at the end.
9117    # Note that $ac_compile itself does not contain backslashes and begins
9118    # with a dollar sign (not a hyphen), so the echo should work correctly.
9119    lt_compile=`echo "$ac_compile" | $SED \
9120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122    -e 's:$: $lt_compiler_flag:'`
9123    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9124    (eval "$lt_compile" 2>out/conftest.err)
9125    ac_status=$?
9126    cat out/conftest.err >&5
9127    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9129    then
9130      # The compiler can only warn and ignore the option if not recognized
9131      # So say no if there are warnings
9132      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9135        lt_cv_prog_compiler_c_o=yes
9136      fi
9137    fi
9138    chmod u+w . 2>&5
9139    $RM conftest*
9140    # SGI C++ compiler will create directory out/ii_files/ for
9141    # template instantiation
9142    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9143    $RM out/* && rmdir out
9144    cd ..
9145    $RM -r conftest
9146    $RM conftest*
9147
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9150 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9151
9152
9153
9154
9155
9156
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159 if ${lt_cv_prog_compiler_c_o+:} false; then :
9160   $as_echo_n "(cached) " >&6
9161 else
9162   lt_cv_prog_compiler_c_o=no
9163    $RM -r conftest 2>/dev/null
9164    mkdir conftest
9165    cd conftest
9166    mkdir out
9167    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9168
9169    lt_compiler_flag="-o out/conftest2.$ac_objext"
9170    # Insert the option either (1) after the last *FLAGS variable, or
9171    # (2) before a word containing "conftest.", or (3) at the end.
9172    # Note that $ac_compile itself does not contain backslashes and begins
9173    # with a dollar sign (not a hyphen), so the echo should work correctly.
9174    lt_compile=`echo "$ac_compile" | $SED \
9175    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177    -e 's:$: $lt_compiler_flag:'`
9178    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9179    (eval "$lt_compile" 2>out/conftest.err)
9180    ac_status=$?
9181    cat out/conftest.err >&5
9182    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184    then
9185      # The compiler can only warn and ignore the option if not recognized
9186      # So say no if there are warnings
9187      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9188      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190        lt_cv_prog_compiler_c_o=yes
9191      fi
9192    fi
9193    chmod u+w . 2>&5
9194    $RM conftest*
9195    # SGI C++ compiler will create directory out/ii_files/ for
9196    # template instantiation
9197    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198    $RM out/* && rmdir out
9199    cd ..
9200    $RM -r conftest
9201    $RM conftest*
9202
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206
9207
9208
9209
9210 hard_links=nottested
9211 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9212   # do not overwrite the value of need_locks provided by the user
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9214 $as_echo_n "checking if we can lock with hard links... " >&6; }
9215   hard_links=yes
9216   $RM conftest*
9217   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9218   touch conftest.a
9219   ln conftest.a conftest.b 2>&5 || hard_links=no
9220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9222 $as_echo "$hard_links" >&6; }
9223   if test no = "$hard_links"; then
9224     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9225 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9226     need_locks=warn
9227   fi
9228 else
9229   need_locks=no
9230 fi
9231
9232
9233
9234
9235
9236
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9239
9240   runpath_var=
9241   allow_undefined_flag=
9242   always_export_symbols=no
9243   archive_cmds=
9244   archive_expsym_cmds=
9245   compiler_needs_object=no
9246   enable_shared_with_static_runtimes=no
9247   export_dynamic_flag_spec=
9248   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9249   hardcode_automatic=no
9250   hardcode_direct=no
9251   hardcode_direct_absolute=no
9252   hardcode_libdir_flag_spec=
9253   hardcode_libdir_separator=
9254   hardcode_minus_L=no
9255   hardcode_shlibpath_var=unsupported
9256   inherit_rpath=no
9257   link_all_deplibs=unknown
9258   module_cmds=
9259   module_expsym_cmds=
9260   old_archive_from_new_cmds=
9261   old_archive_from_expsyms_cmds=
9262   thread_safe_flag_spec=
9263   whole_archive_flag_spec=
9264   # include_expsyms should be a list of space-separated symbols to be *always*
9265   # included in the symbol list
9266   include_expsyms=
9267   # exclude_expsyms can be an extended regexp of symbols to exclude
9268   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9269   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9270   # as well as any symbol that contains 'd'.
9271   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9273   # platforms (ab)use it in PIC code, but their linkers get confused if
9274   # the symbol is explicitly referenced.  Since portable code cannot
9275   # rely on this symbol name, it's probably fine to never include it in
9276   # preloaded symbol tables.
9277   # Exclude shared library initialization/finalization symbols.
9278   extract_expsyms_cmds=
9279
9280   case $host_os in
9281   cygwin* | mingw* | pw32* | cegcc*)
9282     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9283     # When not using gcc, we currently assume that we are using
9284     # Microsoft Visual C++.
9285     if test yes != "$GCC"; then
9286       with_gnu_ld=no
9287     fi
9288     ;;
9289   interix*)
9290     # we just hope/assume this is gcc and not c89 (= MSVC++)
9291     with_gnu_ld=yes
9292     ;;
9293   openbsd* | bitrig*)
9294     with_gnu_ld=no
9295     ;;
9296   esac
9297
9298   ld_shlibs=yes
9299
9300   # On some targets, GNU ld is compatible enough with the native linker
9301   # that we're better off using the native interface for both.
9302   lt_use_gnu_ld_interface=no
9303   if test yes = "$with_gnu_ld"; then
9304     case $host_os in
9305       aix*)
9306         # The AIX port of GNU ld has always aspired to compatibility
9307         # with the native linker.  However, as the warning in the GNU ld
9308         # block says, versions before 2.19.5* couldn't really create working
9309         # shared libraries, regardless of the interface used.
9310         case `$LD -v 2>&1` in
9311           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9312           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9313           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9314           *)
9315             lt_use_gnu_ld_interface=yes
9316             ;;
9317         esac
9318         ;;
9319       *)
9320         lt_use_gnu_ld_interface=yes
9321         ;;
9322     esac
9323   fi
9324
9325   if test yes = "$lt_use_gnu_ld_interface"; then
9326     # If archive_cmds runs LD, not CC, wlarc should be empty
9327     wlarc='$wl'
9328
9329     # Set some defaults for GNU ld with shared library support. These
9330     # are reset later if shared libraries are not supported. Putting them
9331     # here allows them to be overridden if necessary.
9332     runpath_var=LD_RUN_PATH
9333     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9334     export_dynamic_flag_spec='$wl--export-dynamic'
9335     # ancient GNU ld didn't support --whole-archive et. al.
9336     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9337       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9338     else
9339       whole_archive_flag_spec=
9340     fi
9341     supports_anon_versioning=no
9342     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9343       *GNU\ gold*) supports_anon_versioning=yes ;;
9344       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9345       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9346       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9347       *\ 2.11.*) ;; # other 2.11 versions
9348       *) supports_anon_versioning=yes ;;
9349     esac
9350
9351     # See if GNU ld supports shared libraries.
9352     case $host_os in
9353     aix[3-9]*)
9354       # On AIX/PPC, the GNU linker is very broken
9355       if test ia64 != "$host_cpu"; then
9356         ld_shlibs=no
9357         cat <<_LT_EOF 1>&2
9358
9359 *** Warning: the GNU linker, at least up to release 2.19, is reported
9360 *** to be unable to reliably create shared libraries on AIX.
9361 *** Therefore, libtool is disabling shared libraries support.  If you
9362 *** really care for shared libraries, you may want to install binutils
9363 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9364 *** You will then need to restart the configuration process.
9365
9366 _LT_EOF
9367       fi
9368       ;;
9369
9370     amigaos*)
9371       case $host_cpu in
9372       powerpc)
9373             # see comment about AmigaOS4 .so support
9374             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9375             archive_expsym_cmds=''
9376         ;;
9377       m68k)
9378             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)'
9379             hardcode_libdir_flag_spec='-L$libdir'
9380             hardcode_minus_L=yes
9381         ;;
9382       esac
9383       ;;
9384
9385     beos*)
9386       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9387         allow_undefined_flag=unsupported
9388         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9389         # support --undefined.  This deserves some investigation.  FIXME
9390         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9391       else
9392         ld_shlibs=no
9393       fi
9394       ;;
9395
9396     cygwin* | mingw* | pw32* | cegcc*)
9397       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9398       # as there is no search path for DLLs.
9399       hardcode_libdir_flag_spec='-L$libdir'
9400       export_dynamic_flag_spec='$wl--export-all-symbols'
9401       allow_undefined_flag=unsupported
9402       always_export_symbols=no
9403       enable_shared_with_static_runtimes=yes
9404       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'
9405       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9406
9407       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9408         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9409         # If the export-symbols file already is a .def file, use it as
9410         # is; otherwise, prepend EXPORTS...
9411         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9412           cp $export_symbols $output_objdir/$soname.def;
9413         else
9414           echo EXPORTS > $output_objdir/$soname.def;
9415           cat $export_symbols >> $output_objdir/$soname.def;
9416         fi~
9417         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418       else
9419         ld_shlibs=no
9420       fi
9421       ;;
9422
9423     haiku*)
9424       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9425       link_all_deplibs=yes
9426       ;;
9427
9428     os2*)
9429       hardcode_libdir_flag_spec='-L$libdir'
9430       hardcode_minus_L=yes
9431       allow_undefined_flag=unsupported
9432       shrext_cmds=.dll
9433       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9434         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9435         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9436         $ECHO EXPORTS >> $output_objdir/$libname.def~
9437         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9438         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9439         emximp -o $lib $output_objdir/$libname.def'
9440       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9441         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9442         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9443         $ECHO EXPORTS >> $output_objdir/$libname.def~
9444         prefix_cmds="$SED"~
9445         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9446           prefix_cmds="$prefix_cmds -e 1d";
9447         fi~
9448         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9449         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9450         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9451         emximp -o $lib $output_objdir/$libname.def'
9452       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9453       enable_shared_with_static_runtimes=yes
9454       ;;
9455
9456     interix[3-9]*)
9457       hardcode_direct=no
9458       hardcode_shlibpath_var=no
9459       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9460       export_dynamic_flag_spec='$wl-E'
9461       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9462       # Instead, shared libraries are loaded at an image base (0x10000000 by
9463       # default) and relocated if they conflict, which is a slow very memory
9464       # consuming and fragmenting process.  To avoid this, we pick a random,
9465       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9466       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9467       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9468       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'
9469       ;;
9470
9471     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9472       tmp_diet=no
9473       if test linux-dietlibc = "$host_os"; then
9474         case $cc_basename in
9475           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9476         esac
9477       fi
9478       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9479          && test no = "$tmp_diet"
9480       then
9481         tmp_addflag=' $pic_flag'
9482         tmp_sharedflag='-shared'
9483         case $cc_basename,$host_cpu in
9484         pgcc*)                          # Portland Group C compiler
9485           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'
9486           tmp_addflag=' $pic_flag'
9487           ;;
9488         pgf77* | pgf90* | pgf95* | pgfortran*)
9489                                         # Portland Group f77 and f90 compilers
9490           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'
9491           tmp_addflag=' $pic_flag -Mnomain' ;;
9492         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9493           tmp_addflag=' -i_dynamic' ;;
9494         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9495           tmp_addflag=' -i_dynamic -nofor_main' ;;
9496         ifc* | ifort*)                  # Intel Fortran compiler
9497           tmp_addflag=' -nofor_main' ;;
9498         lf95*)                          # Lahey Fortran 8.1
9499           whole_archive_flag_spec=
9500           tmp_sharedflag='--shared' ;;
9501         nagfor*)                        # NAGFOR 5.3
9502           tmp_sharedflag='-Wl,-shared' ;;
9503         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9504           tmp_sharedflag='-qmkshrobj'
9505           tmp_addflag= ;;
9506         nvcc*)  # Cuda Compiler Driver 2.2
9507           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'
9508           compiler_needs_object=yes
9509           ;;
9510         esac
9511         case `$CC -V 2>&1 | sed 5q` in
9512         *Sun\ C*)                       # Sun C 5.9
9513           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'
9514           compiler_needs_object=yes
9515           tmp_sharedflag='-G' ;;
9516         *Sun\ F*)                       # Sun Fortran 8.3
9517           tmp_sharedflag='-G' ;;
9518         esac
9519         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9520
9521         if test yes = "$supports_anon_versioning"; then
9522           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9523             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9524             echo "local: *; };" >> $output_objdir/$libname.ver~
9525             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9526         fi
9527
9528         case $cc_basename in
9529         tcc*)
9530           export_dynamic_flag_spec='-rdynamic'
9531           ;;
9532         xlf* | bgf* | bgxlf* | mpixlf*)
9533           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9534           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9535           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9536           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9537           if test yes = "$supports_anon_versioning"; then
9538             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9539               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9540               echo "local: *; };" >> $output_objdir/$libname.ver~
9541               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9542           fi
9543           ;;
9544         esac
9545       else
9546         ld_shlibs=no
9547       fi
9548       ;;
9549
9550     netbsd*)
9551       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9553         wlarc=
9554       else
9555         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9556         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9557       fi
9558       ;;
9559
9560     solaris*)
9561       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9562         ld_shlibs=no
9563         cat <<_LT_EOF 1>&2
9564
9565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9566 *** create shared libraries on Solaris systems.  Therefore, libtool
9567 *** is disabling shared libraries support.  We urge you to upgrade GNU
9568 *** binutils to release 2.9.1 or newer.  Another option is to modify
9569 *** your PATH or compiler configuration so that the native linker is
9570 *** used, and then restart.
9571
9572 _LT_EOF
9573       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9576       else
9577         ld_shlibs=no
9578       fi
9579       ;;
9580
9581     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9582       case `$LD -v 2>&1` in
9583         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9588 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595         ;;
9596         *)
9597           # For security reasons, it is highly recommended that you always
9598           # use absolute paths for naming shared libraries, and exclude the
9599           # DT_RUNPATH tag from executables and libraries.  But doing so
9600           # requires that you compile everything twice, which is a pain.
9601           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9603             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9605           else
9606             ld_shlibs=no
9607           fi
9608         ;;
9609       esac
9610       ;;
9611
9612     sunos4*)
9613       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9614       wlarc=
9615       hardcode_direct=yes
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     *)
9620       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9622         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9623       else
9624         ld_shlibs=no
9625       fi
9626       ;;
9627     esac
9628
9629     if test no = "$ld_shlibs"; then
9630       runpath_var=
9631       hardcode_libdir_flag_spec=
9632       export_dynamic_flag_spec=
9633       whole_archive_flag_spec=
9634     fi
9635   else
9636     # PORTME fill in a description of your system's linker (not GNU ld)
9637     case $host_os in
9638     aix3*)
9639       allow_undefined_flag=unsupported
9640       always_export_symbols=yes
9641       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'
9642       # Note: this linker hardcodes the directories in LIBPATH if there
9643       # are no directories specified by -L.
9644       hardcode_minus_L=yes
9645       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9646         # Neither direct hardcoding nor static linking is supported with a
9647         # broken collect2.
9648         hardcode_direct=unsupported
9649       fi
9650       ;;
9651
9652     aix[4-9]*)
9653       if test ia64 = "$host_cpu"; then
9654         # On IA64, the linker does run time linking by default, so we don't
9655         # have to do anything special.
9656         aix_use_runtimelinking=no
9657         exp_sym_flag='-Bexport'
9658         no_entry_flag=
9659       else
9660         # If we're using GNU nm, then we don't want the "-C" option.
9661         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9662         # Without the "-l" option, or with the "-B" option, AIX nm treats
9663         # weak defined symbols like other global defined symbols, whereas
9664         # GNU nm marks them as "W".
9665         # While the 'weak' keyword is ignored in the Export File, we need
9666         # it in the Import File for the 'aix-soname' feature, so we have
9667         # to replace the "-B" option with "-P" for AIX nm.
9668         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9669           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9670         else
9671           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9672         fi
9673         aix_use_runtimelinking=no
9674
9675         # Test if we are trying to use run time linking or normal
9676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677         # have runtime linking enabled, and use it for executables.
9678         # For shared libraries, we enable/disable runtime linking
9679         # depending on the kind of the shared library created -
9680         # when "with_aix_soname,aix_use_runtimelinking" is:
9681         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9682         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9683         #            lib.a           static archive
9684         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9685         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9686         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9687         #            lib.a(lib.so.V) shared, rtl:no
9688         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9689         #            lib.a           static archive
9690         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9691           for ld_flag in $LDFLAGS; do
9692           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9693             aix_use_runtimelinking=yes
9694             break
9695           fi
9696           done
9697           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9698             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9699             # so we don't have lib.a shared libs to link our executables.
9700             # We have to force runtime linking in this case.
9701             aix_use_runtimelinking=yes
9702             LDFLAGS="$LDFLAGS -Wl,-brtl"
9703           fi
9704           ;;
9705         esac
9706
9707         exp_sym_flag='-bexport'
9708         no_entry_flag='-bnoentry'
9709       fi
9710
9711       # When large executables or shared objects are built, AIX ld can
9712       # have problems creating the table of contents.  If linking a library
9713       # or program results in "error TOC overflow" add -mminimal-toc to
9714       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9715       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716
9717       archive_cmds=''
9718       hardcode_direct=yes
9719       hardcode_direct_absolute=yes
9720       hardcode_libdir_separator=':'
9721       link_all_deplibs=yes
9722       file_list_spec='$wl-f,'
9723       case $with_aix_soname,$aix_use_runtimelinking in
9724       aix,*) ;; # traditional, no import file
9725       svr4,* | *,yes) # use import file
9726         # The Import File defines what to hardcode.
9727         hardcode_direct=no
9728         hardcode_direct_absolute=no
9729         ;;
9730       esac
9731
9732       if test yes = "$GCC"; then
9733         case $host_os in aix4.[012]|aix4.[012].*)
9734         # We only want to do this on AIX 4.2 and lower, the check
9735         # below for broken collect2 doesn't work under 4.3+
9736           collect2name=`$CC -print-prog-name=collect2`
9737           if test -f "$collect2name" &&
9738            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9739           then
9740           # We have reworked collect2
9741           :
9742           else
9743           # We have old collect2
9744           hardcode_direct=unsupported
9745           # It fails to find uninstalled libraries when the uninstalled
9746           # path is not listed in the libpath.  Setting hardcode_minus_L
9747           # to unsupported forces relinking
9748           hardcode_minus_L=yes
9749           hardcode_libdir_flag_spec='-L$libdir'
9750           hardcode_libdir_separator=
9751           fi
9752           ;;
9753         esac
9754         shared_flag='-shared'
9755         if test yes = "$aix_use_runtimelinking"; then
9756           shared_flag="$shared_flag "'$wl-G'
9757         fi
9758         # Need to ensure runtime linking is disabled for the traditional
9759         # shared library, or the linker may eventually find shared libraries
9760         # /with/ Import File - we do not want to mix them.
9761         shared_flag_aix='-shared'
9762         shared_flag_svr4='-shared $wl-G'
9763       else
9764         # not using gcc
9765         if test ia64 = "$host_cpu"; then
9766         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9767         # chokes on -Wl,-G. The following line is correct:
9768           shared_flag='-G'
9769         else
9770           if test yes = "$aix_use_runtimelinking"; then
9771             shared_flag='$wl-G'
9772           else
9773             shared_flag='$wl-bM:SRE'
9774           fi
9775           shared_flag_aix='$wl-bM:SRE'
9776           shared_flag_svr4='$wl-G'
9777         fi
9778       fi
9779
9780       export_dynamic_flag_spec='$wl-bexpall'
9781       # It seems that -bexpall does not export symbols beginning with
9782       # underscore (_), so it is better to generate a list of symbols to export.
9783       always_export_symbols=yes
9784       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9785         # Warning - without using the other runtime loading flags (-brtl),
9786         # -berok will link without error, but may produce a broken library.
9787         allow_undefined_flag='-berok'
9788         # Determine the default libpath from the value encoded in an
9789         # empty executable.
9790         if test set = "${lt_cv_aix_libpath+set}"; then
9791   aix_libpath=$lt_cv_aix_libpath
9792 else
9793   if ${lt_cv_aix_libpath_+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h.  */
9798
9799 int
9800 main ()
9801 {
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808
9809   lt_aix_libpath_sed='
9810       /Import File Strings/,/^$/ {
9811           /^0/ {
9812               s/^0  *\([^ ]*\) *$/\1/
9813               p
9814           }
9815       }'
9816   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9817   # Check for a 64-bit object if we didn't find anything.
9818   if test -z "$lt_cv_aix_libpath_"; then
9819     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820   fi
9821 fi
9822 rm -f core conftest.err conftest.$ac_objext \
9823     conftest$ac_exeext conftest.$ac_ext
9824   if test -z "$lt_cv_aix_libpath_"; then
9825     lt_cv_aix_libpath_=/usr/lib:/lib
9826   fi
9827
9828 fi
9829
9830   aix_libpath=$lt_cv_aix_libpath_
9831 fi
9832
9833         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9834         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9835       else
9836         if test ia64 = "$host_cpu"; then
9837           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9838           allow_undefined_flag="-z nodefs"
9839           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"
9840         else
9841          # Determine the default libpath from the value encoded in an
9842          # empty executable.
9843          if test set = "${lt_cv_aix_libpath+set}"; then
9844   aix_libpath=$lt_cv_aix_libpath
9845 else
9846   if ${lt_cv_aix_libpath_+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h.  */
9851
9852 int
9853 main ()
9854 {
9855
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"; then :
9861
9862   lt_aix_libpath_sed='
9863       /Import File Strings/,/^$/ {
9864           /^0/ {
9865               s/^0  *\([^ ]*\) *$/\1/
9866               p
9867           }
9868       }'
9869   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9870   # Check for a 64-bit object if we didn't find anything.
9871   if test -z "$lt_cv_aix_libpath_"; then
9872     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9873   fi
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext \
9876     conftest$ac_exeext conftest.$ac_ext
9877   if test -z "$lt_cv_aix_libpath_"; then
9878     lt_cv_aix_libpath_=/usr/lib:/lib
9879   fi
9880
9881 fi
9882
9883   aix_libpath=$lt_cv_aix_libpath_
9884 fi
9885
9886          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9887           # Warning - without using the other run time loading flags,
9888           # -berok will link without error, but may produce a broken library.
9889           no_undefined_flag=' $wl-bernotok'
9890           allow_undefined_flag=' $wl-berok'
9891           if test yes = "$with_gnu_ld"; then
9892             # We only use this code for GNU lds that support --whole-archive.
9893             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9894           else
9895             # Exported symbols can be pulled into shared objects from archives
9896             whole_archive_flag_spec='$convenience'
9897           fi
9898           archive_cmds_need_lc=yes
9899           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9900           # -brtl affects multiple linker settings, -berok does not and is overridden later
9901           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9902           if test svr4 != "$with_aix_soname"; then
9903             # This is similar to how AIX traditionally builds its shared libraries.
9904             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9905           fi
9906           if test aix != "$with_aix_soname"; then
9907             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9908           else
9909             # used by -dlpreopen to get the symbols
9910             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9911           fi
9912           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9913         fi
9914       fi
9915       ;;
9916
9917     amigaos*)
9918       case $host_cpu in
9919       powerpc)
9920             # see comment about AmigaOS4 .so support
9921             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9922             archive_expsym_cmds=''
9923         ;;
9924       m68k)
9925             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)'
9926             hardcode_libdir_flag_spec='-L$libdir'
9927             hardcode_minus_L=yes
9928         ;;
9929       esac
9930       ;;
9931
9932     bsdi[45]*)
9933       export_dynamic_flag_spec=-rdynamic
9934       ;;
9935
9936     cygwin* | mingw* | pw32* | cegcc*)
9937       # When not using gcc, we currently assume that we are using
9938       # Microsoft Visual C++.
9939       # hardcode_libdir_flag_spec is actually meaningless, as there is
9940       # no search path for DLLs.
9941       case $cc_basename in
9942       cl*)
9943         # Native MSVC
9944         hardcode_libdir_flag_spec=' '
9945         allow_undefined_flag=unsupported
9946         always_export_symbols=yes
9947         file_list_spec='@'
9948         # Tell ltmain to make .lib files, not .a files.
9949         libext=lib
9950         # Tell ltmain to make .dll files, not .so files.
9951         shrext_cmds=.dll
9952         # FIXME: Setting linknames here is a bad hack.
9953         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9954         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9955             cp "$export_symbols" "$output_objdir/$soname.def";
9956             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9957           else
9958             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9959           fi~
9960           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9961           linknames='
9962         # The linker will not automatically build a static lib if we build a DLL.
9963         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9964         enable_shared_with_static_runtimes=yes
9965         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9966         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9967         # Don't use ranlib
9968         old_postinstall_cmds='chmod 644 $oldlib'
9969         postlink_cmds='lt_outputfile="@OUTPUT@"~
9970           lt_tool_outputfile="@TOOL_OUTPUT@"~
9971           case $lt_outputfile in
9972             *.exe|*.EXE) ;;
9973             *)
9974               lt_outputfile=$lt_outputfile.exe
9975               lt_tool_outputfile=$lt_tool_outputfile.exe
9976               ;;
9977           esac~
9978           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9979             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9980             $RM "$lt_outputfile.manifest";
9981           fi'
9982         ;;
9983       *)
9984         # Assume MSVC wrapper
9985         hardcode_libdir_flag_spec=' '
9986         allow_undefined_flag=unsupported
9987         # Tell ltmain to make .lib files, not .a files.
9988         libext=lib
9989         # Tell ltmain to make .dll files, not .so files.
9990         shrext_cmds=.dll
9991         # FIXME: Setting linknames here is a bad hack.
9992         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9993         # The linker will automatically build a .lib file if we build a DLL.
9994         old_archive_from_new_cmds='true'
9995         # FIXME: Should let the user specify the lib program.
9996         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9997         enable_shared_with_static_runtimes=yes
9998         ;;
9999       esac
10000       ;;
10001
10002     darwin* | rhapsody*)
10003
10004
10005   archive_cmds_need_lc=no
10006   hardcode_direct=no
10007   hardcode_automatic=yes
10008   hardcode_shlibpath_var=unsupported
10009   if test yes = "$lt_cv_ld_force_load"; then
10010     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\"`'
10011
10012   else
10013     whole_archive_flag_spec=''
10014   fi
10015   link_all_deplibs=yes
10016   allow_undefined_flag=$_lt_dar_allow_undefined
10017   case $cc_basename in
10018      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10019      *) _lt_dar_can_shared=$GCC ;;
10020   esac
10021   if test yes = "$_lt_dar_can_shared"; then
10022     output_verbose_link_cmd=func_echo_all
10023     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10024     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10025     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"
10026     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"
10027
10028   else
10029   ld_shlibs=no
10030   fi
10031
10032       ;;
10033
10034     dgux*)
10035       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036       hardcode_libdir_flag_spec='-L$libdir'
10037       hardcode_shlibpath_var=no
10038       ;;
10039
10040     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10041     # support.  Future versions do this automatically, but an explicit c++rt0.o
10042     # does not break anything, and helps significantly (at the cost of a little
10043     # extra space).
10044     freebsd2.2*)
10045       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10046       hardcode_libdir_flag_spec='-R$libdir'
10047       hardcode_direct=yes
10048       hardcode_shlibpath_var=no
10049       ;;
10050
10051     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10052     freebsd2.*)
10053       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10054       hardcode_direct=yes
10055       hardcode_minus_L=yes
10056       hardcode_shlibpath_var=no
10057       ;;
10058
10059     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10060     freebsd* | dragonfly*)
10061       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10062       hardcode_libdir_flag_spec='-R$libdir'
10063       hardcode_direct=yes
10064       hardcode_shlibpath_var=no
10065       ;;
10066
10067     hpux9*)
10068       if test yes = "$GCC"; then
10069         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10070       else
10071         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10072       fi
10073       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10074       hardcode_libdir_separator=:
10075       hardcode_direct=yes
10076
10077       # hardcode_minus_L: Not really in the search PATH,
10078       # but as the default location of the library.
10079       hardcode_minus_L=yes
10080       export_dynamic_flag_spec='$wl-E'
10081       ;;
10082
10083     hpux10*)
10084       if test yes,no = "$GCC,$with_gnu_ld"; then
10085         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10086       else
10087         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10088       fi
10089       if test no = "$with_gnu_ld"; then
10090         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10091         hardcode_libdir_separator=:
10092         hardcode_direct=yes
10093         hardcode_direct_absolute=yes
10094         export_dynamic_flag_spec='$wl-E'
10095         # hardcode_minus_L: Not really in the search PATH,
10096         # but as the default location of the library.
10097         hardcode_minus_L=yes
10098       fi
10099       ;;
10100
10101     hpux11*)
10102       if test yes,no = "$GCC,$with_gnu_ld"; then
10103         case $host_cpu in
10104         hppa*64*)
10105           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10106           ;;
10107         ia64*)
10108           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10109           ;;
10110         *)
10111           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10112           ;;
10113         esac
10114       else
10115         case $host_cpu in
10116         hppa*64*)
10117           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10118           ;;
10119         ia64*)
10120           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10121           ;;
10122         *)
10123
10124           # Older versions of the 11.00 compiler do not understand -b yet
10125           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10126           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10127 $as_echo_n "checking if $CC understands -b... " >&6; }
10128 if ${lt_cv_prog_compiler__b+:} false; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   lt_cv_prog_compiler__b=no
10132    save_LDFLAGS=$LDFLAGS
10133    LDFLAGS="$LDFLAGS -b"
10134    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10136      # The linker can only warn and ignore the option if not recognized
10137      # So say no if there are warnings
10138      if test -s conftest.err; then
10139        # Append any errors to the config.log.
10140        cat conftest.err 1>&5
10141        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10143        if diff conftest.exp conftest.er2 >/dev/null; then
10144          lt_cv_prog_compiler__b=yes
10145        fi
10146      else
10147        lt_cv_prog_compiler__b=yes
10148      fi
10149    fi
10150    $RM -r conftest*
10151    LDFLAGS=$save_LDFLAGS
10152
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10155 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10156
10157 if test yes = "$lt_cv_prog_compiler__b"; then
10158     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10159 else
10160     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10161 fi
10162
10163           ;;
10164         esac
10165       fi
10166       if test no = "$with_gnu_ld"; then
10167         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10168         hardcode_libdir_separator=:
10169
10170         case $host_cpu in
10171         hppa*64*|ia64*)
10172           hardcode_direct=no
10173           hardcode_shlibpath_var=no
10174           ;;
10175         *)
10176           hardcode_direct=yes
10177           hardcode_direct_absolute=yes
10178           export_dynamic_flag_spec='$wl-E'
10179
10180           # hardcode_minus_L: Not really in the search PATH,
10181           # but as the default location of the library.
10182           hardcode_minus_L=yes
10183           ;;
10184         esac
10185       fi
10186       ;;
10187
10188     irix5* | irix6* | nonstopux*)
10189       if test yes = "$GCC"; then
10190         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'
10191         # Try to use the -exported_symbol ld option, if it does not
10192         # work, assume that -exports_file does not work either and
10193         # implicitly export all symbols.
10194         # This should be the same for all languages, so no per-tag cache variable.
10195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10196 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10197 if ${lt_cv_irix_exported_symbol+:} false; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   save_LDFLAGS=$LDFLAGS
10201            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10202            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204 int foo (void) { return 0; }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   lt_cv_irix_exported_symbol=yes
10208 else
10209   lt_cv_irix_exported_symbol=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213            LDFLAGS=$save_LDFLAGS
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10216 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10217         if test yes = "$lt_cv_irix_exported_symbol"; then
10218           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'
10219         fi
10220       else
10221         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'
10222         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'
10223       fi
10224       archive_cmds_need_lc='no'
10225       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10226       hardcode_libdir_separator=:
10227       inherit_rpath=yes
10228       link_all_deplibs=yes
10229       ;;
10230
10231     linux*)
10232       case $cc_basename in
10233       tcc*)
10234         # Fabrice Bellard et al's Tiny C Compiler
10235         ld_shlibs=yes
10236         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10237         ;;
10238       esac
10239       ;;
10240
10241     netbsd*)
10242       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10243         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10244       else
10245         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10246       fi
10247       hardcode_libdir_flag_spec='-R$libdir'
10248       hardcode_direct=yes
10249       hardcode_shlibpath_var=no
10250       ;;
10251
10252     newsos6)
10253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254       hardcode_direct=yes
10255       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10256       hardcode_libdir_separator=:
10257       hardcode_shlibpath_var=no
10258       ;;
10259
10260     *nto* | *qnx*)
10261       ;;
10262
10263     openbsd* | bitrig*)
10264       if test -f /usr/libexec/ld.so; then
10265         hardcode_direct=yes
10266         hardcode_shlibpath_var=no
10267         hardcode_direct_absolute=yes
10268         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10269           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10270           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10271           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10272           export_dynamic_flag_spec='$wl-E'
10273         else
10274           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10275           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10276         fi
10277       else
10278         ld_shlibs=no
10279       fi
10280       ;;
10281
10282     os2*)
10283       hardcode_libdir_flag_spec='-L$libdir'
10284       hardcode_minus_L=yes
10285       allow_undefined_flag=unsupported
10286       shrext_cmds=.dll
10287       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10288         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10289         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10290         $ECHO EXPORTS >> $output_objdir/$libname.def~
10291         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10292         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10293         emximp -o $lib $output_objdir/$libname.def'
10294       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10295         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10296         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10297         $ECHO EXPORTS >> $output_objdir/$libname.def~
10298         prefix_cmds="$SED"~
10299         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10300           prefix_cmds="$prefix_cmds -e 1d";
10301         fi~
10302         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10303         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10304         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10305         emximp -o $lib $output_objdir/$libname.def'
10306       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10307       enable_shared_with_static_runtimes=yes
10308       ;;
10309
10310     osf3*)
10311       if test yes = "$GCC"; then
10312         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10313         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'
10314       else
10315         allow_undefined_flag=' -expect_unresolved \*'
10316         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'
10317       fi
10318       archive_cmds_need_lc='no'
10319       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10320       hardcode_libdir_separator=:
10321       ;;
10322
10323     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10324       if test yes = "$GCC"; then
10325         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10326         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'
10327         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10328       else
10329         allow_undefined_flag=' -expect_unresolved \*'
10330         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'
10331         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~
10332           $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'
10333
10334         # Both c and cxx compiler support -rpath directly
10335         hardcode_libdir_flag_spec='-rpath $libdir'
10336       fi
10337       archive_cmds_need_lc='no'
10338       hardcode_libdir_separator=:
10339       ;;
10340
10341     solaris*)
10342       no_undefined_flag=' -z defs'
10343       if test yes = "$GCC"; then
10344         wlarc='$wl'
10345         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10346         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10347           $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'
10348       else
10349         case `$CC -V 2>&1` in
10350         *"Compilers 5.0"*)
10351           wlarc=''
10352           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10354             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10355           ;;
10356         *)
10357           wlarc='$wl'
10358           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10359           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361           ;;
10362         esac
10363       fi
10364       hardcode_libdir_flag_spec='-R$libdir'
10365       hardcode_shlibpath_var=no
10366       case $host_os in
10367       solaris2.[0-5] | solaris2.[0-5].*) ;;
10368       *)
10369         # The compiler driver will combine and reorder linker options,
10370         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10371         # but is careful enough not to reorder.
10372         # Supported since Solaris 2.6 (maybe 2.5.1?)
10373         if test yes = "$GCC"; then
10374           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10375         else
10376           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10377         fi
10378         ;;
10379       esac
10380       link_all_deplibs=yes
10381       ;;
10382
10383     sunos4*)
10384       if test sequent = "$host_vendor"; then
10385         # Use $CC to link under sequent, because it throws in some extra .o
10386         # files that make .init and .fini sections work.
10387         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388       else
10389         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390       fi
10391       hardcode_libdir_flag_spec='-L$libdir'
10392       hardcode_direct=yes
10393       hardcode_minus_L=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     sysv4)
10398       case $host_vendor in
10399         sni)
10400           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401           hardcode_direct=yes # is this really true???
10402         ;;
10403         siemens)
10404           ## LD is ld it makes a PLAMLIB
10405           ## CC just makes a GrossModule.
10406           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10407           reload_cmds='$CC -r -o $output$reload_objs'
10408           hardcode_direct=no
10409         ;;
10410         motorola)
10411           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10413         ;;
10414       esac
10415       runpath_var='LD_RUN_PATH'
10416       hardcode_shlibpath_var=no
10417       ;;
10418
10419     sysv4.3*)
10420       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421       hardcode_shlibpath_var=no
10422       export_dynamic_flag_spec='-Bexport'
10423       ;;
10424
10425     sysv4*MP*)
10426       if test -d /usr/nec; then
10427         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428         hardcode_shlibpath_var=no
10429         runpath_var=LD_RUN_PATH
10430         hardcode_runpath_var=yes
10431         ld_shlibs=yes
10432       fi
10433       ;;
10434
10435     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10436       no_undefined_flag='$wl-z,text'
10437       archive_cmds_need_lc=no
10438       hardcode_shlibpath_var=no
10439       runpath_var='LD_RUN_PATH'
10440
10441       if test yes = "$GCC"; then
10442         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444       else
10445         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447       fi
10448       ;;
10449
10450     sysv5* | sco3.2v5* | sco5v6*)
10451       # Note: We CANNOT use -z defs as we might desire, because we do not
10452       # link with -lc, and that would cause any symbols used from libc to
10453       # always be unresolved, which means just about no library would
10454       # ever link correctly.  If we're not using GNU ld we use -z text
10455       # though, which does catch some bad symbols but isn't as heavy-handed
10456       # as -z defs.
10457       no_undefined_flag='$wl-z,text'
10458       allow_undefined_flag='$wl-z,nodefs'
10459       archive_cmds_need_lc=no
10460       hardcode_shlibpath_var=no
10461       hardcode_libdir_flag_spec='$wl-R,$libdir'
10462       hardcode_libdir_separator=':'
10463       link_all_deplibs=yes
10464       export_dynamic_flag_spec='$wl-Bexport'
10465       runpath_var='LD_RUN_PATH'
10466
10467       if test yes = "$GCC"; then
10468         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470       else
10471         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473       fi
10474       ;;
10475
10476     uts4*)
10477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478       hardcode_libdir_flag_spec='-L$libdir'
10479       hardcode_shlibpath_var=no
10480       ;;
10481
10482     *)
10483       ld_shlibs=no
10484       ;;
10485     esac
10486
10487     if test sni = "$host_vendor"; then
10488       case $host in
10489       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10490         export_dynamic_flag_spec='$wl-Blargedynsym'
10491         ;;
10492       esac
10493     fi
10494   fi
10495
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10497 $as_echo "$ld_shlibs" >&6; }
10498 test no = "$ld_shlibs" && can_build_shared=no
10499
10500 with_gnu_ld=$with_gnu_ld
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516 #
10517 # Do we need to explicitly link libc?
10518 #
10519 case "x$archive_cmds_need_lc" in
10520 x|xyes)
10521   # Assume -lc should be added
10522   archive_cmds_need_lc=yes
10523
10524   if test yes,yes = "$GCC,$enable_shared"; then
10525     case $archive_cmds in
10526     *'~'*)
10527       # FIXME: we may have to deal with multi-command sequences.
10528       ;;
10529     '$CC '*)
10530       # Test whether the compiler implicitly links with -lc since on some
10531       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10532       # to ld, don't add -lc before -lgcc.
10533       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10534 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10535 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   $RM conftest*
10539         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10540
10541         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10542   (eval $ac_compile) 2>&5
10543   ac_status=$?
10544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545   test $ac_status = 0; } 2>conftest.err; then
10546           soname=conftest
10547           lib=conftest
10548           libobjs=conftest.$ac_objext
10549           deplibs=
10550           wl=$lt_prog_compiler_wl
10551           pic_flag=$lt_prog_compiler_pic
10552           compiler_flags=-v
10553           linker_flags=-v
10554           verstring=
10555           output_objdir=.
10556           libname=conftest
10557           lt_save_allow_undefined_flag=$allow_undefined_flag
10558           allow_undefined_flag=
10559           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10560   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10561   ac_status=$?
10562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10563   test $ac_status = 0; }
10564           then
10565             lt_cv_archive_cmds_need_lc=no
10566           else
10567             lt_cv_archive_cmds_need_lc=yes
10568           fi
10569           allow_undefined_flag=$lt_save_allow_undefined_flag
10570         else
10571           cat conftest.err 1>&5
10572         fi
10573         $RM conftest*
10574
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10577 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10578       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10579       ;;
10580     esac
10581   fi
10582   ;;
10583 esac
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10737 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10738
10739 if test yes = "$GCC"; then
10740   case $host_os in
10741     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10742     *) lt_awk_arg='/^libraries:/' ;;
10743   esac
10744   case $host_os in
10745     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10746     *) lt_sed_strip_eq='s|=/|/|g' ;;
10747   esac
10748   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10749   case $lt_search_path_spec in
10750   *\;*)
10751     # if the path contains ";" then we assume it to be the separator
10752     # otherwise default to the standard path separator (i.e. ":") - it is
10753     # assumed that no part of a normal pathname contains ";" but that should
10754     # okay in the real world where ";" in dirpaths is itself problematic.
10755     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10756     ;;
10757   *)
10758     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10759     ;;
10760   esac
10761   # Ok, now we have the path, separated by spaces, we can step through it
10762   # and add multilib dir if necessary...
10763   lt_tmp_lt_search_path_spec=
10764   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10765   # ...but if some path component already ends with the multilib dir we assume
10766   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10767   case "$lt_multi_os_dir; $lt_search_path_spec " in
10768   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10769     lt_multi_os_dir=
10770     ;;
10771   esac
10772   for lt_sys_path in $lt_search_path_spec; do
10773     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10774       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10775     elif test -n "$lt_multi_os_dir"; then
10776       test -d "$lt_sys_path" && \
10777         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10778     fi
10779   done
10780   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10781 BEGIN {RS = " "; FS = "/|\n";} {
10782   lt_foo = "";
10783   lt_count = 0;
10784   for (lt_i = NF; lt_i > 0; lt_i--) {
10785     if ($lt_i != "" && $lt_i != ".") {
10786       if ($lt_i == "..") {
10787         lt_count++;
10788       } else {
10789         if (lt_count == 0) {
10790           lt_foo = "/" $lt_i lt_foo;
10791         } else {
10792           lt_count--;
10793         }
10794       }
10795     }
10796   }
10797   if (lt_foo != "") { lt_freq[lt_foo]++; }
10798   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10799 }'`
10800   # AWK program above erroneously prepends '/' to C:/dos/paths
10801   # for these hosts.
10802   case $host_os in
10803     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10804       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10805   esac
10806   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10807 else
10808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10809 fi
10810 library_names_spec=
10811 libname_spec='lib$name'
10812 soname_spec=
10813 shrext_cmds=.so
10814 postinstall_cmds=
10815 postuninstall_cmds=
10816 finish_cmds=
10817 finish_eval=
10818 shlibpath_var=
10819 shlibpath_overrides_runpath=unknown
10820 version_type=none
10821 dynamic_linker="$host_os ld.so"
10822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10823 need_lib_prefix=unknown
10824 hardcode_into_libs=no
10825
10826 # when you set need_version to no, make sure it does not cause -set_version
10827 # flags to be left without arguments
10828 need_version=unknown
10829
10830
10831
10832 case $host_os in
10833 aix3*)
10834   version_type=linux # correct to gnu/linux during the next big refactor
10835   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10836   shlibpath_var=LIBPATH
10837
10838   # AIX 3 has no versioning support, so we append a major version to the name.
10839   soname_spec='$libname$release$shared_ext$major'
10840   ;;
10841
10842 aix[4-9]*)
10843   version_type=linux # correct to gnu/linux during the next big refactor
10844   need_lib_prefix=no
10845   need_version=no
10846   hardcode_into_libs=yes
10847   if test ia64 = "$host_cpu"; then
10848     # AIX 5 supports IA64
10849     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10850     shlibpath_var=LD_LIBRARY_PATH
10851   else
10852     # With GCC up to 2.95.x, collect2 would create an import file
10853     # for dependence libraries.  The import file would start with
10854     # the line '#! .'.  This would cause the generated library to
10855     # depend on '.', always an invalid library.  This was fixed in
10856     # development snapshots of GCC prior to 3.0.
10857     case $host_os in
10858       aix4 | aix4.[01] | aix4.[01].*)
10859       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10860            echo ' yes '
10861            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10862         :
10863       else
10864         can_build_shared=no
10865       fi
10866       ;;
10867     esac
10868     # Using Import Files as archive members, it is possible to support
10869     # filename-based versioning of shared library archives on AIX. While
10870     # this would work for both with and without runtime linking, it will
10871     # prevent static linking of such archives. So we do filename-based
10872     # shared library versioning with .so extension only, which is used
10873     # when both runtime linking and shared linking is enabled.
10874     # Unfortunately, runtime linking may impact performance, so we do
10875     # not want this to be the default eventually. Also, we use the
10876     # versioned .so libs for executables only if there is the -brtl
10877     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10878     # To allow for filename-based versioning support, we need to create
10879     # libNAME.so.V as an archive file, containing:
10880     # *) an Import File, referring to the versioned filename of the
10881     #    archive as well as the shared archive member, telling the
10882     #    bitwidth (32 or 64) of that shared object, and providing the
10883     #    list of exported symbols of that shared object, eventually
10884     #    decorated with the 'weak' keyword
10885     # *) the shared object with the F_LOADONLY flag set, to really avoid
10886     #    it being seen by the linker.
10887     # At run time we better use the real file rather than another symlink,
10888     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10889
10890     case $with_aix_soname,$aix_use_runtimelinking in
10891     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10892     # soname into executable. Probably we can add versioning support to
10893     # collect2, so additional links can be useful in future.
10894     aix,yes) # traditional libtool
10895       dynamic_linker='AIX unversionable lib.so'
10896       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10897       # instead of lib<name>.a to let people know that these are not
10898       # typical AIX shared libraries.
10899       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900       ;;
10901     aix,no) # traditional AIX only
10902       dynamic_linker='AIX lib.a(lib.so.V)'
10903       # We preserve .a as extension for shared libraries through AIX4.2
10904       # and later when we are not doing run time linking.
10905       library_names_spec='$libname$release.a $libname.a'
10906       soname_spec='$libname$release$shared_ext$major'
10907       ;;
10908     svr4,*) # full svr4 only
10909       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10910       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10911       # We do not specify a path in Import Files, so LIBPATH fires.
10912       shlibpath_overrides_runpath=yes
10913       ;;
10914     *,yes) # both, prefer svr4
10915       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10916       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10917       # unpreferred sharedlib libNAME.a needs extra handling
10918       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10919       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10920       # We do not specify a path in Import Files, so LIBPATH fires.
10921       shlibpath_overrides_runpath=yes
10922       ;;
10923     *,no) # both, prefer aix
10924       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10925       library_names_spec='$libname$release.a $libname.a'
10926       soname_spec='$libname$release$shared_ext$major'
10927       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10928       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10929       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10930       ;;
10931     esac
10932     shlibpath_var=LIBPATH
10933   fi
10934   ;;
10935
10936 amigaos*)
10937   case $host_cpu in
10938   powerpc)
10939     # Since July 2007 AmigaOS4 officially supports .so libraries.
10940     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10941     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942     ;;
10943   m68k)
10944     library_names_spec='$libname.ixlibrary $libname.a'
10945     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10946     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10947     ;;
10948   esac
10949   ;;
10950
10951 beos*)
10952   library_names_spec='$libname$shared_ext'
10953   dynamic_linker="$host_os ld.so"
10954   shlibpath_var=LIBRARY_PATH
10955   ;;
10956
10957 bsdi[45]*)
10958   version_type=linux # correct to gnu/linux during the next big refactor
10959   need_version=no
10960   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961   soname_spec='$libname$release$shared_ext$major'
10962   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10965   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10966   # the default ld.so.conf also contains /usr/contrib/lib and
10967   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10968   # libtool to hard-code these into programs
10969   ;;
10970
10971 cygwin* | mingw* | pw32* | cegcc*)
10972   version_type=windows
10973   shrext_cmds=.dll
10974   need_version=no
10975   need_lib_prefix=no
10976
10977   case $GCC,$cc_basename in
10978   yes,*)
10979     # gcc
10980     library_names_spec='$libname.dll.a'
10981     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10982     postinstall_cmds='base_file=`basename \$file`~
10983       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10984       dldir=$destdir/`dirname \$dlpath`~
10985       test -d \$dldir || mkdir -p \$dldir~
10986       $install_prog $dir/$dlname \$dldir/$dlname~
10987       chmod a+x \$dldir/$dlname~
10988       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10989         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10990       fi'
10991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10992       dlpath=$dir/\$dldll~
10993        $RM \$dlpath'
10994     shlibpath_overrides_runpath=yes
10995
10996     case $host_os in
10997     cygwin*)
10998       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10999       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11000
11001       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11002       ;;
11003     mingw* | cegcc*)
11004       # MinGW DLLs use traditional 'lib' prefix
11005       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11006       ;;
11007     pw32*)
11008       # pw32 DLLs use 'pw' prefix rather than 'lib'
11009       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11010       ;;
11011     esac
11012     dynamic_linker='Win32 ld.exe'
11013     ;;
11014
11015   *,cl*)
11016     # Native MSVC
11017     libname_spec='$name'
11018     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11019     library_names_spec='$libname.dll.lib'
11020
11021     case $build_os in
11022     mingw*)
11023       sys_lib_search_path_spec=
11024       lt_save_ifs=$IFS
11025       IFS=';'
11026       for lt_path in $LIB
11027       do
11028         IFS=$lt_save_ifs
11029         # Let DOS variable expansion print the short 8.3 style file name.
11030         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11031         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11032       done
11033       IFS=$lt_save_ifs
11034       # Convert to MSYS style.
11035       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11036       ;;
11037     cygwin*)
11038       # Convert to unix form, then to dos form, then back to unix form
11039       # but this time dos style (no spaces!) so that the unix form looks
11040       # like /cygdrive/c/PROGRA~1:/cygdr...
11041       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11042       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11043       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11044       ;;
11045     *)
11046       sys_lib_search_path_spec=$LIB
11047       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11048         # It is most probably a Windows format PATH.
11049         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11050       else
11051         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11052       fi
11053       # FIXME: find the short name or the path components, as spaces are
11054       # common. (e.g. "Program Files" -> "PROGRA~1")
11055       ;;
11056     esac
11057
11058     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11059     postinstall_cmds='base_file=`basename \$file`~
11060       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11061       dldir=$destdir/`dirname \$dlpath`~
11062       test -d \$dldir || mkdir -p \$dldir~
11063       $install_prog $dir/$dlname \$dldir/$dlname'
11064     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11065       dlpath=$dir/\$dldll~
11066        $RM \$dlpath'
11067     shlibpath_overrides_runpath=yes
11068     dynamic_linker='Win32 link.exe'
11069     ;;
11070
11071   *)
11072     # Assume MSVC wrapper
11073     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11074     dynamic_linker='Win32 ld.exe'
11075     ;;
11076   esac
11077   # FIXME: first we should search . and the directory the executable is in
11078   shlibpath_var=PATH
11079   ;;
11080
11081 darwin* | rhapsody*)
11082   dynamic_linker="$host_os dyld"
11083   version_type=darwin
11084   need_lib_prefix=no
11085   need_version=no
11086   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11087   soname_spec='$libname$release$major$shared_ext'
11088   shlibpath_overrides_runpath=yes
11089   shlibpath_var=DYLD_LIBRARY_PATH
11090   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11091
11092   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11093   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11094   ;;
11095
11096 dgux*)
11097   version_type=linux # correct to gnu/linux during the next big refactor
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101   soname_spec='$libname$release$shared_ext$major'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   ;;
11104
11105 freebsd* | dragonfly*)
11106   # DragonFly does not have aout.  When/if they implement a new
11107   # versioning mechanism, adjust this.
11108   if test -x /usr/bin/objformat; then
11109     objformat=`/usr/bin/objformat`
11110   else
11111     case $host_os in
11112     freebsd[23].*) objformat=aout ;;
11113     *) objformat=elf ;;
11114     esac
11115   fi
11116   version_type=freebsd-$objformat
11117   case $version_type in
11118     freebsd-elf*)
11119       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120       soname_spec='$libname$release$shared_ext$major'
11121       need_version=no
11122       need_lib_prefix=no
11123       ;;
11124     freebsd-*)
11125       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11126       need_version=yes
11127       ;;
11128   esac
11129   shlibpath_var=LD_LIBRARY_PATH
11130   case $host_os in
11131   freebsd2.*)
11132     shlibpath_overrides_runpath=yes
11133     ;;
11134   freebsd3.[01]* | freebsdelf3.[01]*)
11135     shlibpath_overrides_runpath=yes
11136     hardcode_into_libs=yes
11137     ;;
11138   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11139   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11140     shlibpath_overrides_runpath=no
11141     hardcode_into_libs=yes
11142     ;;
11143   *) # from 4.6 on, and DragonFly
11144     shlibpath_overrides_runpath=yes
11145     hardcode_into_libs=yes
11146     ;;
11147   esac
11148   ;;
11149
11150 haiku*)
11151   version_type=linux # correct to gnu/linux during the next big refactor
11152   need_lib_prefix=no
11153   need_version=no
11154   dynamic_linker="$host_os runtime_loader"
11155   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156   soname_spec='$libname$release$shared_ext$major'
11157   shlibpath_var=LIBRARY_PATH
11158   shlibpath_overrides_runpath=no
11159   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11160   hardcode_into_libs=yes
11161   ;;
11162
11163 hpux9* | hpux10* | hpux11*)
11164   # Give a soname corresponding to the major version so that dld.sl refuses to
11165   # link against other versions.
11166   version_type=sunos
11167   need_lib_prefix=no
11168   need_version=no
11169   case $host_cpu in
11170   ia64*)
11171     shrext_cmds='.so'
11172     hardcode_into_libs=yes
11173     dynamic_linker="$host_os dld.so"
11174     shlibpath_var=LD_LIBRARY_PATH
11175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11177     soname_spec='$libname$release$shared_ext$major'
11178     if test 32 = "$HPUX_IA64_MODE"; then
11179       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11180       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11181     else
11182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11183       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11184     fi
11185     ;;
11186   hppa*64*)
11187     shrext_cmds='.sl'
11188     hardcode_into_libs=yes
11189     dynamic_linker="$host_os dld.sl"
11190     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11191     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11192     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11193     soname_spec='$libname$release$shared_ext$major'
11194     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11196     ;;
11197   *)
11198     shrext_cmds='.sl'
11199     dynamic_linker="$host_os dld.sl"
11200     shlibpath_var=SHLIB_PATH
11201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11202     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203     soname_spec='$libname$release$shared_ext$major'
11204     ;;
11205   esac
11206   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11207   postinstall_cmds='chmod 555 $lib'
11208   # or fails outright, so override atomically:
11209   install_override_mode=555
11210   ;;
11211
11212 interix[3-9]*)
11213   version_type=linux # correct to gnu/linux during the next big refactor
11214   need_lib_prefix=no
11215   need_version=no
11216   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217   soname_spec='$libname$release$shared_ext$major'
11218   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221   hardcode_into_libs=yes
11222   ;;
11223
11224 irix5* | irix6* | nonstopux*)
11225   case $host_os in
11226     nonstopux*) version_type=nonstopux ;;
11227     *)
11228         if test yes = "$lt_cv_prog_gnu_ld"; then
11229                 version_type=linux # correct to gnu/linux during the next big refactor
11230         else
11231                 version_type=irix
11232         fi ;;
11233   esac
11234   need_lib_prefix=no
11235   need_version=no
11236   soname_spec='$libname$release$shared_ext$major'
11237   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11238   case $host_os in
11239   irix5* | nonstopux*)
11240     libsuff= shlibsuff=
11241     ;;
11242   *)
11243     case $LD in # libtool.m4 will add one of these switches to LD
11244     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11245       libsuff= shlibsuff= libmagic=32-bit;;
11246     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11247       libsuff=32 shlibsuff=N32 libmagic=N32;;
11248     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11249       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11250     *) libsuff= shlibsuff= libmagic=never-match;;
11251     esac
11252     ;;
11253   esac
11254   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11255   shlibpath_overrides_runpath=no
11256   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11257   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11258   hardcode_into_libs=yes
11259   ;;
11260
11261 # No shared lib support for Linux oldld, aout, or coff.
11262 linux*oldld* | linux*aout* | linux*coff*)
11263   dynamic_linker=no
11264   ;;
11265
11266 linux*android*)
11267   version_type=none # Android doesn't support versioned libraries.
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='$libname$release$shared_ext'
11271   soname_spec='$libname$release$shared_ext'
11272   finish_cmds=
11273   shlibpath_var=LD_LIBRARY_PATH
11274   shlibpath_overrides_runpath=yes
11275
11276   # This implies no fast_install, which is unacceptable.
11277   # Some rework will be needed to allow for fast_install
11278   # before this can be enabled.
11279   hardcode_into_libs=yes
11280
11281   dynamic_linker='Android linker'
11282   # Don't embed -rpath directories since the linker doesn't support them.
11283   hardcode_libdir_flag_spec='-L$libdir'
11284   ;;
11285
11286 # This must be glibc/ELF.
11287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11288   version_type=linux # correct to gnu/linux during the next big refactor
11289   need_lib_prefix=no
11290   need_version=no
11291   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292   soname_spec='$libname$release$shared_ext$major'
11293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   shlibpath_overrides_runpath=no
11296
11297   # Some binutils ld are patched to set DT_RUNPATH
11298   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   lt_cv_shlibpath_overrides_runpath=no
11302     save_LDFLAGS=$LDFLAGS
11303     save_libdir=$libdir
11304     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11305          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 int
11310 main ()
11311 {
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11319   lt_cv_shlibpath_overrides_runpath=yes
11320 fi
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext \
11323     conftest$ac_exeext conftest.$ac_ext
11324     LDFLAGS=$save_LDFLAGS
11325     libdir=$save_libdir
11326
11327 fi
11328
11329   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11330
11331   # This implies no fast_install, which is unacceptable.
11332   # Some rework will be needed to allow for fast_install
11333   # before this can be enabled.
11334   hardcode_into_libs=yes
11335
11336   # Add ABI-specific directories to the system library path.
11337   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11338
11339   # Ideally, we could use ldconfig to report *all* directores which are
11340   # searched for libraries, however this is still not possible.  Aside from not
11341   # being certain /sbin/ldconfig is available, command
11342   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11343   # even though it is searched at run-time.  Try to do the best guess by
11344   # appending ld.so.conf contents (and includes) to the search path.
11345   if test -f /etc/ld.so.conf; then
11346     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' ' '`
11347     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11348   fi
11349
11350   # We used to test for /lib/ld.so.1 and disable shared libraries on
11351   # powerpc, because MkLinux only supported shared libraries with the
11352   # GNU dynamic linker.  Since this was broken with cross compilers,
11353   # most powerpc-linux boxes support dynamic linking these days and
11354   # people can always --disable-shared, the test was removed, and we
11355   # assume the GNU/Linux dynamic linker is in use.
11356   dynamic_linker='GNU/Linux ld.so'
11357   ;;
11358
11359 netbsd*)
11360   version_type=sunos
11361   need_lib_prefix=no
11362   need_version=no
11363   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11364     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11365     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11366     dynamic_linker='NetBSD (a.out) ld.so'
11367   else
11368     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369     soname_spec='$libname$release$shared_ext$major'
11370     dynamic_linker='NetBSD ld.elf_so'
11371   fi
11372   shlibpath_var=LD_LIBRARY_PATH
11373   shlibpath_overrides_runpath=yes
11374   hardcode_into_libs=yes
11375   ;;
11376
11377 newsos6)
11378   version_type=linux # correct to gnu/linux during the next big refactor
11379   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380   shlibpath_var=LD_LIBRARY_PATH
11381   shlibpath_overrides_runpath=yes
11382   ;;
11383
11384 *nto* | *qnx*)
11385   version_type=qnx
11386   need_lib_prefix=no
11387   need_version=no
11388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11389   soname_spec='$libname$release$shared_ext$major'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   shlibpath_overrides_runpath=no
11392   hardcode_into_libs=yes
11393   dynamic_linker='ldqnx.so'
11394   ;;
11395
11396 openbsd* | bitrig*)
11397   version_type=sunos
11398   sys_lib_dlsearch_path_spec=/usr/lib
11399   need_lib_prefix=no
11400   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11401     need_version=no
11402   else
11403     need_version=yes
11404   fi
11405   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11407   shlibpath_var=LD_LIBRARY_PATH
11408   shlibpath_overrides_runpath=yes
11409   ;;
11410
11411 os2*)
11412   libname_spec='$name'
11413   version_type=windows
11414   shrext_cmds=.dll
11415   need_version=no
11416   need_lib_prefix=no
11417   # OS/2 can only load a DLL with a base name of 8 characters or less.
11418   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11419     v=$($ECHO $release$versuffix | tr -d .-);
11420     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11421     $ECHO $n$v`$shared_ext'
11422   library_names_spec='${libname}_dll.$libext'
11423   dynamic_linker='OS/2 ld.exe'
11424   shlibpath_var=BEGINLIBPATH
11425   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11426   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11427   postinstall_cmds='base_file=`basename \$file`~
11428     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11429     dldir=$destdir/`dirname \$dlpath`~
11430     test -d \$dldir || mkdir -p \$dldir~
11431     $install_prog $dir/$dlname \$dldir/$dlname~
11432     chmod a+x \$dldir/$dlname~
11433     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11434       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11435     fi'
11436   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11437     dlpath=$dir/\$dldll~
11438     $RM \$dlpath'
11439   ;;
11440
11441 osf3* | osf4* | osf5*)
11442   version_type=osf
11443   need_lib_prefix=no
11444   need_version=no
11445   soname_spec='$libname$release$shared_ext$major'
11446   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11449   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11450   ;;
11451
11452 rdos*)
11453   dynamic_linker=no
11454   ;;
11455
11456 solaris*)
11457   version_type=linux # correct to gnu/linux during the next big refactor
11458   need_lib_prefix=no
11459   need_version=no
11460   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461   soname_spec='$libname$release$shared_ext$major'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   shlibpath_overrides_runpath=yes
11464   hardcode_into_libs=yes
11465   # ldd complains unless libraries are executable
11466   postinstall_cmds='chmod +x $lib'
11467   ;;
11468
11469 sunos4*)
11470   version_type=sunos
11471   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11472   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11473   shlibpath_var=LD_LIBRARY_PATH
11474   shlibpath_overrides_runpath=yes
11475   if test yes = "$with_gnu_ld"; then
11476     need_lib_prefix=no
11477   fi
11478   need_version=yes
11479   ;;
11480
11481 sysv4 | sysv4.3*)
11482   version_type=linux # correct to gnu/linux during the next big refactor
11483   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484   soname_spec='$libname$release$shared_ext$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   case $host_vendor in
11487     sni)
11488       shlibpath_overrides_runpath=no
11489       need_lib_prefix=no
11490       runpath_var=LD_RUN_PATH
11491       ;;
11492     siemens)
11493       need_lib_prefix=no
11494       ;;
11495     motorola)
11496       need_lib_prefix=no
11497       need_version=no
11498       shlibpath_overrides_runpath=no
11499       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11500       ;;
11501   esac
11502   ;;
11503
11504 sysv4*MP*)
11505   if test -d /usr/nec; then
11506     version_type=linux # correct to gnu/linux during the next big refactor
11507     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11508     soname_spec='$libname$shared_ext.$major'
11509     shlibpath_var=LD_LIBRARY_PATH
11510   fi
11511   ;;
11512
11513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11514   version_type=sco
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11518   soname_spec='$libname$release$shared_ext$major'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   shlibpath_overrides_runpath=yes
11521   hardcode_into_libs=yes
11522   if test yes = "$with_gnu_ld"; then
11523     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11524   else
11525     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11526     case $host_os in
11527       sco3.2v5*)
11528         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11529         ;;
11530     esac
11531   fi
11532   sys_lib_dlsearch_path_spec='/usr/lib'
11533   ;;
11534
11535 tpf*)
11536   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11537   version_type=linux # correct to gnu/linux during the next big refactor
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   shlibpath_overrides_runpath=no
11543   hardcode_into_libs=yes
11544   ;;
11545
11546 uts4*)
11547   version_type=linux # correct to gnu/linux during the next big refactor
11548   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549   soname_spec='$libname$release$shared_ext$major'
11550   shlibpath_var=LD_LIBRARY_PATH
11551   ;;
11552
11553 *)
11554   dynamic_linker=no
11555   ;;
11556 esac
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11558 $as_echo "$dynamic_linker" >&6; }
11559 test no = "$dynamic_linker" && can_build_shared=no
11560
11561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11562 if test yes = "$GCC"; then
11563   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11564 fi
11565
11566 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11567   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11568 fi
11569
11570 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11571   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11572 fi
11573
11574 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11575 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11576
11577 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11578 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11579
11580 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11581 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11681 hardcode_action=
11682 if test -n "$hardcode_libdir_flag_spec" ||
11683    test -n "$runpath_var" ||
11684    test yes = "$hardcode_automatic"; then
11685
11686   # We can hardcode non-existent directories.
11687   if test no != "$hardcode_direct" &&
11688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11689      # have to relink, otherwise we might link with an installed library
11690      # when we should be linking with a yet-to-be-installed one
11691      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11692      test no != "$hardcode_minus_L"; then
11693     # Linking always hardcodes the temporary library directory.
11694     hardcode_action=relink
11695   else
11696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11697     hardcode_action=immediate
11698   fi
11699 else
11700   # We cannot hardcode anything, or else we can only hardcode existing
11701   # directories.
11702   hardcode_action=unsupported
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11705 $as_echo "$hardcode_action" >&6; }
11706
11707 if test relink = "$hardcode_action" ||
11708    test yes = "$inherit_rpath"; then
11709   # Fast installation is not supported
11710   enable_fast_install=no
11711 elif test yes = "$shlibpath_overrides_runpath" ||
11712      test no = "$enable_shared"; then
11713   # Fast installation is not necessary
11714   enable_fast_install=needless
11715 fi
11716
11717
11718
11719
11720
11721
11722   if test yes != "$enable_dlopen"; then
11723   enable_dlopen=unknown
11724   enable_dlopen_self=unknown
11725   enable_dlopen_self_static=unknown
11726 else
11727   lt_cv_dlopen=no
11728   lt_cv_dlopen_libs=
11729
11730   case $host_os in
11731   beos*)
11732     lt_cv_dlopen=load_add_on
11733     lt_cv_dlopen_libs=
11734     lt_cv_dlopen_self=yes
11735     ;;
11736
11737   mingw* | pw32* | cegcc*)
11738     lt_cv_dlopen=LoadLibrary
11739     lt_cv_dlopen_libs=
11740     ;;
11741
11742   cygwin*)
11743     lt_cv_dlopen=dlopen
11744     lt_cv_dlopen_libs=
11745     ;;
11746
11747   darwin*)
11748     # if libdl is installed we need to link against it
11749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11750 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11751 if ${ac_cv_lib_dl_dlopen+:} false; then :
11752   $as_echo_n "(cached) " >&6
11753 else
11754   ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-ldl  $LIBS"
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h.  */
11758
11759 /* Override any GCC internal prototype to avoid an error.
11760    Use char because int might match the return type of a GCC
11761    builtin and then its argument prototype would still apply.  */
11762 #ifdef __cplusplus
11763 extern "C"
11764 #endif
11765 char dlopen ();
11766 int
11767 main ()
11768 {
11769 return dlopen ();
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 if ac_fn_c_try_link "$LINENO"; then :
11775   ac_cv_lib_dl_dlopen=yes
11776 else
11777   ac_cv_lib_dl_dlopen=no
11778 fi
11779 rm -f core conftest.err conftest.$ac_objext \
11780     conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11784 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11785 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11786   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11787 else
11788
11789     lt_cv_dlopen=dyld
11790     lt_cv_dlopen_libs=
11791     lt_cv_dlopen_self=yes
11792
11793 fi
11794
11795     ;;
11796
11797   tpf*)
11798     # Don't try to run any link tests for TPF.  We know it's impossible
11799     # because TPF is a cross-compiler, and we know how we open DSOs.
11800     lt_cv_dlopen=dlopen
11801     lt_cv_dlopen_libs=
11802     lt_cv_dlopen_self=no
11803     ;;
11804
11805   *)
11806     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11807 if test "x$ac_cv_func_shl_load" = xyes; then :
11808   lt_cv_dlopen=shl_load
11809 else
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11811 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11812 if ${ac_cv_lib_dld_shl_load+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-ldld  $LIBS"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h.  */
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821    Use char because int might match the return type of a GCC
11822    builtin and then its argument prototype would still apply.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char shl_load ();
11827 int
11828 main ()
11829 {
11830 return shl_load ();
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 if ac_fn_c_try_link "$LINENO"; then :
11836   ac_cv_lib_dld_shl_load=yes
11837 else
11838   ac_cv_lib_dld_shl_load=no
11839 fi
11840 rm -f core conftest.err conftest.$ac_objext \
11841     conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11845 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11846 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11847   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11848 else
11849   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11850 if test "x$ac_cv_func_dlopen" = xyes; then :
11851   lt_cv_dlopen=dlopen
11852 else
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11854 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11855 if ${ac_cv_lib_dl_dlopen+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   ac_check_lib_save_LIBS=$LIBS
11859 LIBS="-ldl  $LIBS"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h.  */
11862
11863 /* Override any GCC internal prototype to avoid an error.
11864    Use char because int might match the return type of a GCC
11865    builtin and then its argument prototype would still apply.  */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 char dlopen ();
11870 int
11871 main ()
11872 {
11873 return dlopen ();
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_c_try_link "$LINENO"; then :
11879   ac_cv_lib_dl_dlopen=yes
11880 else
11881   ac_cv_lib_dl_dlopen=no
11882 fi
11883 rm -f core conftest.err conftest.$ac_objext \
11884     conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_lib_save_LIBS
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11888 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11889 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11890   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11891 else
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11893 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11894 if ${ac_cv_lib_svld_dlopen+:} false; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   ac_check_lib_save_LIBS=$LIBS
11898 LIBS="-lsvld  $LIBS"
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h.  */
11901
11902 /* Override any GCC internal prototype to avoid an error.
11903    Use char because int might match the return type of a GCC
11904    builtin and then its argument prototype would still apply.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 char dlopen ();
11909 int
11910 main ()
11911 {
11912 return dlopen ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_link "$LINENO"; then :
11918   ac_cv_lib_svld_dlopen=yes
11919 else
11920   ac_cv_lib_svld_dlopen=no
11921 fi
11922 rm -f core conftest.err conftest.$ac_objext \
11923     conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11927 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11928 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11929   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11932 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11933 if ${ac_cv_lib_dld_dld_link+:} false; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-ldld  $LIBS"
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h.  */
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942    Use char because int might match the return type of a GCC
11943    builtin and then its argument prototype would still apply.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char dld_link ();
11948 int
11949 main ()
11950 {
11951 return dld_link ();
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957   ac_cv_lib_dld_dld_link=yes
11958 else
11959   ac_cv_lib_dld_dld_link=no
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext \
11962     conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11966 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11967 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11968   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11969 fi
11970
11971
11972 fi
11973
11974
11975 fi
11976
11977
11978 fi
11979
11980
11981 fi
11982
11983
11984 fi
11985
11986     ;;
11987   esac
11988
11989   if test no = "$lt_cv_dlopen"; then
11990     enable_dlopen=no
11991   else
11992     enable_dlopen=yes
11993   fi
11994
11995   case $lt_cv_dlopen in
11996   dlopen)
11997     save_CPPFLAGS=$CPPFLAGS
11998     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11999
12000     save_LDFLAGS=$LDFLAGS
12001     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12002
12003     save_LIBS=$LIBS
12004     LIBS="$lt_cv_dlopen_libs $LIBS"
12005
12006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12007 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12008 if ${lt_cv_dlopen_self+:} false; then :
12009   $as_echo_n "(cached) " >&6
12010 else
12011           if test yes = "$cross_compiling"; then :
12012   lt_cv_dlopen_self=cross
12013 else
12014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12015   lt_status=$lt_dlunknown
12016   cat > conftest.$ac_ext <<_LT_EOF
12017 #line $LINENO "configure"
12018 #include "confdefs.h"
12019
12020 #if HAVE_DLFCN_H
12021 #include <dlfcn.h>
12022 #endif
12023
12024 #include <stdio.h>
12025
12026 #ifdef RTLD_GLOBAL
12027 #  define LT_DLGLOBAL           RTLD_GLOBAL
12028 #else
12029 #  ifdef DL_GLOBAL
12030 #    define LT_DLGLOBAL         DL_GLOBAL
12031 #  else
12032 #    define LT_DLGLOBAL         0
12033 #  endif
12034 #endif
12035
12036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12037    find out it does not work in some platform. */
12038 #ifndef LT_DLLAZY_OR_NOW
12039 #  ifdef RTLD_LAZY
12040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12041 #  else
12042 #    ifdef DL_LAZY
12043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12044 #    else
12045 #      ifdef RTLD_NOW
12046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12047 #      else
12048 #        ifdef DL_NOW
12049 #          define LT_DLLAZY_OR_NOW      DL_NOW
12050 #        else
12051 #          define LT_DLLAZY_OR_NOW      0
12052 #        endif
12053 #      endif
12054 #    endif
12055 #  endif
12056 #endif
12057
12058 /* When -fvisibility=hidden is used, assume the code has been annotated
12059    correspondingly for the symbols needed.  */
12060 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12061 int fnord () __attribute__((visibility("default")));
12062 #endif
12063
12064 int fnord () { return 42; }
12065 int main ()
12066 {
12067   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12068   int status = $lt_dlunknown;
12069
12070   if (self)
12071     {
12072       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12073       else
12074         {
12075           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12076           else puts (dlerror ());
12077         }
12078       /* dlclose (self); */
12079     }
12080   else
12081     puts (dlerror ());
12082
12083   return status;
12084 }
12085 _LT_EOF
12086   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12087   (eval $ac_link) 2>&5
12088   ac_status=$?
12089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12090   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12091     (./conftest; exit; ) >&5 2>/dev/null
12092     lt_status=$?
12093     case x$lt_status in
12094       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12095       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12096       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12097     esac
12098   else :
12099     # compilation failed
12100     lt_cv_dlopen_self=no
12101   fi
12102 fi
12103 rm -fr conftest*
12104
12105
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12108 $as_echo "$lt_cv_dlopen_self" >&6; }
12109
12110     if test yes = "$lt_cv_dlopen_self"; then
12111       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12113 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12114 if ${lt_cv_dlopen_self_static+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117           if test yes = "$cross_compiling"; then :
12118   lt_cv_dlopen_self_static=cross
12119 else
12120   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12121   lt_status=$lt_dlunknown
12122   cat > conftest.$ac_ext <<_LT_EOF
12123 #line $LINENO "configure"
12124 #include "confdefs.h"
12125
12126 #if HAVE_DLFCN_H
12127 #include <dlfcn.h>
12128 #endif
12129
12130 #include <stdio.h>
12131
12132 #ifdef RTLD_GLOBAL
12133 #  define LT_DLGLOBAL           RTLD_GLOBAL
12134 #else
12135 #  ifdef DL_GLOBAL
12136 #    define LT_DLGLOBAL         DL_GLOBAL
12137 #  else
12138 #    define LT_DLGLOBAL         0
12139 #  endif
12140 #endif
12141
12142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12143    find out it does not work in some platform. */
12144 #ifndef LT_DLLAZY_OR_NOW
12145 #  ifdef RTLD_LAZY
12146 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12147 #  else
12148 #    ifdef DL_LAZY
12149 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12150 #    else
12151 #      ifdef RTLD_NOW
12152 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12153 #      else
12154 #        ifdef DL_NOW
12155 #          define LT_DLLAZY_OR_NOW      DL_NOW
12156 #        else
12157 #          define LT_DLLAZY_OR_NOW      0
12158 #        endif
12159 #      endif
12160 #    endif
12161 #  endif
12162 #endif
12163
12164 /* When -fvisibility=hidden is used, assume the code has been annotated
12165    correspondingly for the symbols needed.  */
12166 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12167 int fnord () __attribute__((visibility("default")));
12168 #endif
12169
12170 int fnord () { return 42; }
12171 int main ()
12172 {
12173   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12174   int status = $lt_dlunknown;
12175
12176   if (self)
12177     {
12178       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12179       else
12180         {
12181           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12182           else puts (dlerror ());
12183         }
12184       /* dlclose (self); */
12185     }
12186   else
12187     puts (dlerror ());
12188
12189   return status;
12190 }
12191 _LT_EOF
12192   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12193   (eval $ac_link) 2>&5
12194   ac_status=$?
12195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12196   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12197     (./conftest; exit; ) >&5 2>/dev/null
12198     lt_status=$?
12199     case x$lt_status in
12200       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12201       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12202       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12203     esac
12204   else :
12205     # compilation failed
12206     lt_cv_dlopen_self_static=no
12207   fi
12208 fi
12209 rm -fr conftest*
12210
12211
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12214 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12215     fi
12216
12217     CPPFLAGS=$save_CPPFLAGS
12218     LDFLAGS=$save_LDFLAGS
12219     LIBS=$save_LIBS
12220     ;;
12221   esac
12222
12223   case $lt_cv_dlopen_self in
12224   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12225   *) enable_dlopen_self=unknown ;;
12226   esac
12227
12228   case $lt_cv_dlopen_self_static in
12229   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12230   *) enable_dlopen_self_static=unknown ;;
12231   esac
12232 fi
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250 striplib=
12251 old_striplib=
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12253 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12254 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12255   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12256   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12258 $as_echo "yes" >&6; }
12259 else
12260 # FIXME - insert some real tests, host_os isn't really good enough
12261   case $host_os in
12262   darwin*)
12263     if test -n "$STRIP"; then
12264       striplib="$STRIP -x"
12265       old_striplib="$STRIP -S"
12266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12267 $as_echo "yes" >&6; }
12268     else
12269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271     fi
12272     ;;
12273   *)
12274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276     ;;
12277   esac
12278 fi
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291   # Report what library types will actually be built
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12293 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12295 $as_echo "$can_build_shared" >&6; }
12296
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12298 $as_echo_n "checking whether to build shared libraries... " >&6; }
12299   test no = "$can_build_shared" && enable_shared=no
12300
12301   # On AIX, shared libraries and static libraries use the same namespace, and
12302   # are all built from PIC.
12303   case $host_os in
12304   aix3*)
12305     test yes = "$enable_shared" && enable_static=no
12306     if test -n "$RANLIB"; then
12307       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12308       postinstall_cmds='$RANLIB $lib'
12309     fi
12310     ;;
12311
12312   aix[4-9]*)
12313     if test ia64 != "$host_cpu"; then
12314       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12315       yes,aix,yes) ;;                   # shared object as lib.so file only
12316       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12317       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12318       esac
12319     fi
12320     ;;
12321   esac
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12323 $as_echo "$enable_shared" >&6; }
12324
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12326 $as_echo_n "checking whether to build static libraries... " >&6; }
12327   # Make sure either enable_shared or enable_static is yes.
12328   test yes = "$enable_shared" || enable_static=yes
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12330 $as_echo "$enable_static" >&6; }
12331
12332
12333
12334
12335 fi
12336 ac_ext=c
12337 ac_cpp='$CPP $CPPFLAGS'
12338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12341
12342 CC=$lt_save_CC
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358         ac_config_commands="$ac_config_commands libtool"
12359
12360
12361
12362
12363 # Only expand once:
12364
12365
12366
12367 FRIBIDI_MAJOR_VERSION=1
12368 FRIBIDI_MINOR_VERSION=0
12369 FRIBIDI_MICRO_VERSION=10
12370 FRIBIDI_VERSION=1.0.10
12371 FRIBIDI_INTERFACE_VERSION=4
12372 FRIBIDI_INTERFACE_AGE=0
12373 FRIBIDI_BINARY_AGE=4
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383 FRIBIDI_MSVC_BUILD_PLACEHOLDER="#undef FRIBIDI_BUILT_WITH_MSVC"
12384
12385
12386 LT_VERSION_INFO=4:0:4
12387 LT_CURRENT_MINUS_AGE=0
12388
12389
12390
12391
12392
12393 # Checks for programs.
12394 ac_ext=c
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399 if test -n "$ac_tool_prefix"; then
12400   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if ${ac_cv_prog_CC+:} false; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   if test -n "$CC"; then
12408   ac_cv_prog_CC="$CC" # Let the user override the test.
12409 else
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_exec_ext in '' $ac_executable_extensions; do
12416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419     break 2
12420   fi
12421 done
12422   done
12423 IFS=$as_save_IFS
12424
12425 fi
12426 fi
12427 CC=$ac_cv_prog_CC
12428 if test -n "$CC"; then
12429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12430 $as_echo "$CC" >&6; }
12431 else
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435
12436
12437 fi
12438 if test -z "$ac_cv_prog_CC"; then
12439   ac_ct_CC=$CC
12440   # Extract the first word of "gcc", so it can be a program name with args.
12441 set dummy gcc; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   if test -n "$ac_ct_CC"; then
12448   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12449 else
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12452 do
12453   IFS=$as_save_IFS
12454   test -z "$as_dir" && as_dir=.
12455     for ac_exec_ext in '' $ac_executable_extensions; do
12456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457     ac_cv_prog_ac_ct_CC="gcc"
12458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459     break 2
12460   fi
12461 done
12462   done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12468 if test -n "$ac_ct_CC"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12470 $as_echo "$ac_ct_CC" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476   if test "x$ac_ct_CC" = x; then
12477     CC=""
12478   else
12479     case $cross_compiling:$ac_tool_warned in
12480 yes:)
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12483 ac_tool_warned=yes ;;
12484 esac
12485     CC=$ac_ct_CC
12486   fi
12487 else
12488   CC="$ac_cv_prog_CC"
12489 fi
12490
12491 if test -z "$CC"; then
12492           if test -n "$ac_tool_prefix"; then
12493     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12494 set dummy ${ac_tool_prefix}cc; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_prog_CC+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   if test -n "$CC"; then
12501   ac_cv_prog_CC="$CC" # Let the user override the test.
12502 else
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506   IFS=$as_save_IFS
12507   test -z "$as_dir" && as_dir=.
12508     for ac_exec_ext in '' $ac_executable_extensions; do
12509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510     ac_cv_prog_CC="${ac_tool_prefix}cc"
12511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512     break 2
12513   fi
12514 done
12515   done
12516 IFS=$as_save_IFS
12517
12518 fi
12519 fi
12520 CC=$ac_cv_prog_CC
12521 if test -n "$CC"; then
12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12523 $as_echo "$CC" >&6; }
12524 else
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529
12530   fi
12531 fi
12532 if test -z "$CC"; then
12533   # Extract the first word of "cc", so it can be a program name with args.
12534 set dummy cc; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_prog_CC+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   if test -n "$CC"; then
12541   ac_cv_prog_CC="$CC" # Let the user override the test.
12542 else
12543   ac_prog_rejected=no
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12546 do
12547   IFS=$as_save_IFS
12548   test -z "$as_dir" && as_dir=.
12549     for ac_exec_ext in '' $ac_executable_extensions; do
12550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12552        ac_prog_rejected=yes
12553        continue
12554      fi
12555     ac_cv_prog_CC="cc"
12556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557     break 2
12558   fi
12559 done
12560   done
12561 IFS=$as_save_IFS
12562
12563 if test $ac_prog_rejected = yes; then
12564   # We found a bogon in the path, so make sure we never use it.
12565   set dummy $ac_cv_prog_CC
12566   shift
12567   if test $# != 0; then
12568     # We chose a different compiler from the bogus one.
12569     # However, it has the same basename, so the bogon will be chosen
12570     # first if we set CC to just the basename; use the full file name.
12571     shift
12572     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12573   fi
12574 fi
12575 fi
12576 fi
12577 CC=$ac_cv_prog_CC
12578 if test -n "$CC"; then
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12580 $as_echo "$CC" >&6; }
12581 else
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584 fi
12585
12586
12587 fi
12588 if test -z "$CC"; then
12589   if test -n "$ac_tool_prefix"; then
12590   for ac_prog in cl.exe
12591   do
12592     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_CC+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   if test -n "$CC"; then
12600   ac_cv_prog_CC="$CC" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607     for ac_exec_ext in '' $ac_executable_extensions; do
12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614   done
12615 IFS=$as_save_IFS
12616
12617 fi
12618 fi
12619 CC=$ac_cv_prog_CC
12620 if test -n "$CC"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12622 $as_echo "$CC" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628
12629     test -n "$CC" && break
12630   done
12631 fi
12632 if test -z "$CC"; then
12633   ac_ct_CC=$CC
12634   for ac_prog in cl.exe
12635 do
12636   # Extract the first word of "$ac_prog", so it can be a program name with args.
12637 set dummy $ac_prog; ac_word=$2
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639 $as_echo_n "checking for $ac_word... " >&6; }
12640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12641   $as_echo_n "(cached) " >&6
12642 else
12643   if test -n "$ac_ct_CC"; then
12644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12645 else
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH
12648 do
12649   IFS=$as_save_IFS
12650   test -z "$as_dir" && as_dir=.
12651     for ac_exec_ext in '' $ac_executable_extensions; do
12652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653     ac_cv_prog_ac_ct_CC="$ac_prog"
12654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655     break 2
12656   fi
12657 done
12658   done
12659 IFS=$as_save_IFS
12660
12661 fi
12662 fi
12663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12664 if test -n "$ac_ct_CC"; then
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12666 $as_echo "$ac_ct_CC" >&6; }
12667 else
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 fi
12671
12672
12673   test -n "$ac_ct_CC" && break
12674 done
12675
12676   if test "x$ac_ct_CC" = x; then
12677     CC=""
12678   else
12679     case $cross_compiling:$ac_tool_warned in
12680 yes:)
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12683 ac_tool_warned=yes ;;
12684 esac
12685     CC=$ac_ct_CC
12686   fi
12687 fi
12688
12689 fi
12690
12691
12692 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12694 as_fn_error $? "no acceptable C compiler found in \$PATH
12695 See \`config.log' for more details" "$LINENO" 5; }
12696
12697 # Provide some information about the compiler.
12698 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12699 set X $ac_compile
12700 ac_compiler=$2
12701 for ac_option in --version -v -V -qversion; do
12702   { { ac_try="$ac_compiler $ac_option >&5"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12708 $as_echo "$ac_try_echo"; } >&5
12709   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12710   ac_status=$?
12711   if test -s conftest.err; then
12712     sed '10a\
12713 ... rest of stderr output deleted ...
12714          10q' conftest.err >conftest.er1
12715     cat conftest.er1 >&5
12716   fi
12717   rm -f conftest.er1 conftest.err
12718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12719   test $ac_status = 0; }
12720 done
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12724 if ${ac_cv_c_compiler_gnu+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h.  */
12729
12730 int
12731 main ()
12732 {
12733 #ifndef __GNUC__
12734        choke me
12735 #endif
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742   ac_compiler_gnu=yes
12743 else
12744   ac_compiler_gnu=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12748
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12752 if test $ac_compiler_gnu = yes; then
12753   GCC=yes
12754 else
12755   GCC=
12756 fi
12757 ac_test_CFLAGS=${CFLAGS+set}
12758 ac_save_CFLAGS=$CFLAGS
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12761 if ${ac_cv_prog_cc_g+:} false; then :
12762   $as_echo_n "(cached) " >&6
12763 else
12764   ac_save_c_werror_flag=$ac_c_werror_flag
12765    ac_c_werror_flag=yes
12766    ac_cv_prog_cc_g=no
12767    CFLAGS="-g"
12768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770
12771 int
12772 main ()
12773 {
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780   ac_cv_prog_cc_g=yes
12781 else
12782   CFLAGS=""
12783       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785
12786 int
12787 main ()
12788 {
12789
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_compile "$LINENO"; then :
12795
12796 else
12797   ac_c_werror_flag=$ac_save_c_werror_flag
12798          CFLAGS="-g"
12799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h.  */
12801
12802 int
12803 main ()
12804 {
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811   ac_cv_prog_cc_g=yes
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818    ac_c_werror_flag=$ac_save_c_werror_flag
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12821 $as_echo "$ac_cv_prog_cc_g" >&6; }
12822 if test "$ac_test_CFLAGS" = set; then
12823   CFLAGS=$ac_save_CFLAGS
12824 elif test $ac_cv_prog_cc_g = yes; then
12825   if test "$GCC" = yes; then
12826     CFLAGS="-g -O2"
12827   else
12828     CFLAGS="-g"
12829   fi
12830 else
12831   if test "$GCC" = yes; then
12832     CFLAGS="-O2"
12833   else
12834     CFLAGS=
12835   fi
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12839 if ${ac_cv_prog_cc_c89+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   ac_cv_prog_cc_c89=no
12843 ac_save_CC=$CC
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 #include <stdarg.h>
12847 #include <stdio.h>
12848 struct stat;
12849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12850 struct buf { int x; };
12851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12852 static char *e (p, i)
12853      char **p;
12854      int i;
12855 {
12856   return p[i];
12857 }
12858 static char *f (char * (*g) (char **, int), char **p, ...)
12859 {
12860   char *s;
12861   va_list v;
12862   va_start (v,p);
12863   s = g (p, va_arg (v,int));
12864   va_end (v);
12865   return s;
12866 }
12867
12868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12869    function prototypes and stuff, but not '\xHH' hex character constants.
12870    These don't provoke an error unfortunately, instead are silently treated
12871    as 'x'.  The following induces an error, until -std is added to get
12872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12873    array size at least.  It's necessary to write '\x00'==0 to get something
12874    that's true only with -std.  */
12875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12876
12877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12878    inside strings and character constants.  */
12879 #define FOO(x) 'x'
12880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12881
12882 int test (int i, double x);
12883 struct s1 {int (*f) (int a);};
12884 struct s2 {int (*f) (double a);};
12885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12886 int argc;
12887 char **argv;
12888 int
12889 main ()
12890 {
12891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12898 do
12899   CC="$ac_save_CC $ac_arg"
12900   if ac_fn_c_try_compile "$LINENO"; then :
12901   ac_cv_prog_cc_c89=$ac_arg
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext
12904   test "x$ac_cv_prog_cc_c89" != "xno" && break
12905 done
12906 rm -f conftest.$ac_ext
12907 CC=$ac_save_CC
12908
12909 fi
12910 # AC_CACHE_VAL
12911 case "x$ac_cv_prog_cc_c89" in
12912   x)
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12914 $as_echo "none needed" >&6; } ;;
12915   xno)
12916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12917 $as_echo "unsupported" >&6; } ;;
12918   *)
12919     CC="$CC $ac_cv_prog_cc_c89"
12920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12922 esac
12923 if test "x$ac_cv_prog_cc_c89" != xno; then :
12924
12925 fi
12926
12927 ac_ext=c
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12939 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12940 if ${am_cv_prog_cc_c_o+:} false; then :
12941   $as_echo_n "(cached) " >&6
12942 else
12943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h.  */
12945
12946 int
12947 main ()
12948 {
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954   # Make sure it works both with $CC and with simple cc.
12955   # Following AC_PROG_CC_C_O, we do the test twice because some
12956   # compilers refuse to overwrite an existing .o file with -o,
12957   # though they will create one.
12958   am_cv_prog_cc_c_o=yes
12959   for am_i in 1 2; do
12960     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12961    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12962    ac_status=$?
12963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964    (exit $ac_status); } \
12965          && test -f conftest2.$ac_objext; then
12966       : OK
12967     else
12968       am_cv_prog_cc_c_o=no
12969       break
12970     fi
12971   done
12972   rm -f core conftest*
12973   unset am_i
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12976 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12977 if test "$am_cv_prog_cc_c_o" != yes; then
12978    # Losing compiler, so override with the script.
12979    # FIXME: It is wrong to rewrite CC.
12980    # But if we don't then we get into trouble of one sort or another.
12981    # A longer-term fix would be to have automake use am__CC in this case,
12982    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12983    CC="$am_aux_dir/compile $CC"
12984 fi
12985 ac_ext=c
12986 ac_cpp='$CPP $CPPFLAGS'
12987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990
12991
12992 depcc="$CC"   am_compiler_list=
12993
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12995 $as_echo_n "checking dependency style of $depcc... " >&6; }
12996 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13000   # We make a subdir and do the tests there.  Otherwise we can end up
13001   # making bogus files that we don't know about and never remove.  For
13002   # instance it was reported that on HP-UX the gcc test will end up
13003   # making a dummy file named 'D' -- because '-MD' means "put the output
13004   # in D".
13005   rm -rf conftest.dir
13006   mkdir conftest.dir
13007   # Copy depcomp to subdir because otherwise we won't find it if we're
13008   # using a relative directory.
13009   cp "$am_depcomp" conftest.dir
13010   cd conftest.dir
13011   # We will build objects and dependencies in a subdirectory because
13012   # it helps to detect inapplicable dependency modes.  For instance
13013   # both Tru64's cc and ICC support -MD to output dependencies as a
13014   # side effect of compilation, but ICC will put the dependencies in
13015   # the current directory while Tru64 will put them in the object
13016   # directory.
13017   mkdir sub
13018
13019   am_cv_CC_dependencies_compiler_type=none
13020   if test "$am_compiler_list" = ""; then
13021      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13022   fi
13023   am__universal=false
13024   case " $depcc " in #(
13025      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13026      esac
13027
13028   for depmode in $am_compiler_list; do
13029     # Setup a source with many dependencies, because some compilers
13030     # like to wrap large dependency lists on column 80 (with \), and
13031     # we should not choose a depcomp mode which is confused by this.
13032     #
13033     # We need to recreate these files for each test, as the compiler may
13034     # overwrite some of them when testing with obscure command lines.
13035     # This happens at least with the AIX C compiler.
13036     : > sub/conftest.c
13037     for i in 1 2 3 4 5 6; do
13038       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13039       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13040       # Solaris 10 /bin/sh.
13041       echo '/* dummy */' > sub/conftst$i.h
13042     done
13043     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13044
13045     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13046     # mode.  It turns out that the SunPro C++ compiler does not properly
13047     # handle '-M -o', and we need to detect this.  Also, some Intel
13048     # versions had trouble with output in subdirs.
13049     am__obj=sub/conftest.${OBJEXT-o}
13050     am__minus_obj="-o $am__obj"
13051     case $depmode in
13052     gcc)
13053       # This depmode causes a compiler race in universal mode.
13054       test "$am__universal" = false || continue
13055       ;;
13056     nosideeffect)
13057       # After this tag, mechanisms are not by side-effect, so they'll
13058       # only be used when explicitly requested.
13059       if test "x$enable_dependency_tracking" = xyes; then
13060         continue
13061       else
13062         break
13063       fi
13064       ;;
13065     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13066       # This compiler won't grok '-c -o', but also, the minuso test has
13067       # not run yet.  These depmodes are late enough in the game, and
13068       # so weak that their functioning should not be impacted.
13069       am__obj=conftest.${OBJEXT-o}
13070       am__minus_obj=
13071       ;;
13072     none) break ;;
13073     esac
13074     if depmode=$depmode \
13075        source=sub/conftest.c object=$am__obj \
13076        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13077        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13078          >/dev/null 2>conftest.err &&
13079        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13080        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13081        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13082        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13083       # icc doesn't choke on unknown options, it will just issue warnings
13084       # or remarks (even with -Werror).  So we grep stderr for any message
13085       # that says an option was ignored or not supported.
13086       # When given -MP, icc 7.0 and 7.1 complain thusly:
13087       #   icc: Command line warning: ignoring option '-M'; no argument required
13088       # The diagnosis changed in icc 8.0:
13089       #   icc: Command line remark: option '-MP' not supported
13090       if (grep 'ignoring option' conftest.err ||
13091           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13092         am_cv_CC_dependencies_compiler_type=$depmode
13093         break
13094       fi
13095     fi
13096   done
13097
13098   cd ..
13099   rm -rf conftest.dir
13100 else
13101   am_cv_CC_dependencies_compiler_type=none
13102 fi
13103
13104 fi
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13106 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13108
13109  if
13110   test "x$enable_dependency_tracking" != xno \
13111   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13112   am__fastdepCC_TRUE=
13113   am__fastdepCC_FALSE='#'
13114 else
13115   am__fastdepCC_TRUE='#'
13116   am__fastdepCC_FALSE=
13117 fi
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13129         if test -n "$ac_tool_prefix"; then
13130   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   case $PKG_CONFIG in
13138   [\\/]* | ?:[\\/]*)
13139   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13140   ;;
13141   *)
13142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145   IFS=$as_save_IFS
13146   test -z "$as_dir" && as_dir=.
13147     for ac_exec_ext in '' $ac_executable_extensions; do
13148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13149     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151     break 2
13152   fi
13153 done
13154   done
13155 IFS=$as_save_IFS
13156
13157   ;;
13158 esac
13159 fi
13160 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13161 if test -n "$PKG_CONFIG"; then
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13163 $as_echo "$PKG_CONFIG" >&6; }
13164 else
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 fi
13168
13169
13170 fi
13171 if test -z "$ac_cv_path_PKG_CONFIG"; then
13172   ac_pt_PKG_CONFIG=$PKG_CONFIG
13173   # Extract the first word of "pkg-config", so it can be a program name with args.
13174 set dummy pkg-config; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   case $ac_pt_PKG_CONFIG in
13181   [\\/]* | ?:[\\/]*)
13182   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13183   ;;
13184   *)
13185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188   IFS=$as_save_IFS
13189   test -z "$as_dir" && as_dir=.
13190     for ac_exec_ext in '' $ac_executable_extensions; do
13191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194     break 2
13195   fi
13196 done
13197   done
13198 IFS=$as_save_IFS
13199
13200   ;;
13201 esac
13202 fi
13203 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13204 if test -n "$ac_pt_PKG_CONFIG"; then
13205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13206 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13207 else
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 fi
13211
13212   if test "x$ac_pt_PKG_CONFIG" = x; then
13213     PKG_CONFIG=""
13214   else
13215     case $cross_compiling:$ac_tool_warned in
13216 yes:)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13219 ac_tool_warned=yes ;;
13220 esac
13221     PKG_CONFIG=$ac_pt_PKG_CONFIG
13222   fi
13223 else
13224   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13225 fi
13226
13227 fi
13228 if test -n "$PKG_CONFIG"; then
13229         _pkg_min_version=0.9.0
13230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13231 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13232         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13233                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13234 $as_echo "yes" >&6; }
13235         else
13236                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237 $as_echo "no" >&6; }
13238                 PKG_CONFIG=""
13239         fi
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
13242 $as_echo_n "checking for native Win32... " >&6; }
13243   case $build_os in
13244     mingw*) os_win32=yes ;;
13245     *) os_win32=no ;;
13246   esac
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
13248 $as_echo "$os_win32" >&6; }
13249  if test "$os_win32" = "yes"; then
13250   OS_WIN32_TRUE=
13251   OS_WIN32_FALSE='#'
13252 else
13253   OS_WIN32_TRUE='#'
13254   OS_WIN32_FALSE=
13255 fi
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
13258 $as_echo_n "checking for some Win32 platform... " >&6; }
13259   case $build_os in
13260     mingw*|cygwin*) platform_win32=yes ;;
13261     *) platform_win32=no ;;
13262   esac
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
13264 $as_echo "$platform_win32" >&6; }
13265  if test "$platform_win32" = "yes"; then
13266   PLATFORM_WIN32_TRUE=
13267   PLATFORM_WIN32_FALSE='#'
13268 else
13269   PLATFORM_WIN32_TRUE='#'
13270   PLATFORM_WIN32_FALSE=
13271 fi
13272
13273
13274
13275 # Checks for header files.
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13277 $as_echo_n "checking for ANSI C header files... " >&6; }
13278 if ${ac_cv_header_stdc+:} false; then :
13279   $as_echo_n "(cached) " >&6
13280 else
13281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h.  */
13283 #include <stdlib.h>
13284 #include <stdarg.h>
13285 #include <string.h>
13286 #include <float.h>
13287
13288 int
13289 main ()
13290 {
13291
13292   ;
13293   return 0;
13294 }
13295 _ACEOF
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297   ac_cv_header_stdc=yes
13298 else
13299   ac_cv_header_stdc=no
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302
13303 if test $ac_cv_header_stdc = yes; then
13304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h.  */
13307 #include <string.h>
13308
13309 _ACEOF
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311   $EGREP "memchr" >/dev/null 2>&1; then :
13312
13313 else
13314   ac_cv_header_stdc=no
13315 fi
13316 rm -f conftest*
13317
13318 fi
13319
13320 if test $ac_cv_header_stdc = yes; then
13321   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h.  */
13324 #include <stdlib.h>
13325
13326 _ACEOF
13327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13328   $EGREP "free" >/dev/null 2>&1; then :
13329
13330 else
13331   ac_cv_header_stdc=no
13332 fi
13333 rm -f conftest*
13334
13335 fi
13336
13337 if test $ac_cv_header_stdc = yes; then
13338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13339   if test "$cross_compiling" = yes; then :
13340   :
13341 else
13342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13344 #include <ctype.h>
13345 #include <stdlib.h>
13346 #if ((' ' & 0x0FF) == 0x020)
13347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13349 #else
13350 # define ISLOWER(c) \
13351                    (('a' <= (c) && (c) <= 'i') \
13352                      || ('j' <= (c) && (c) <= 'r') \
13353                      || ('s' <= (c) && (c) <= 'z'))
13354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13355 #endif
13356
13357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13358 int
13359 main ()
13360 {
13361   int i;
13362   for (i = 0; i < 256; i++)
13363     if (XOR (islower (i), ISLOWER (i))
13364         || toupper (i) != TOUPPER (i))
13365       return 2;
13366   return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_run "$LINENO"; then :
13370
13371 else
13372   ac_cv_header_stdc=no
13373 fi
13374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13375   conftest.$ac_objext conftest.beam conftest.$ac_ext
13376 fi
13377
13378 fi
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13381 $as_echo "$ac_cv_header_stdc" >&6; }
13382 if test $ac_cv_header_stdc = yes; then
13383
13384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13385
13386 fi
13387
13388 for ac_header in stdlib.h string.h strings.h wchar.h asm/page.h sys/times.h
13389 do :
13390   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13393   cat >>confdefs.h <<_ACEOF
13394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13395 _ACEOF
13396
13397 fi
13398
13399 done
13400
13401
13402 # Checks for typedefs and structures.
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13404 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13405 if ${ac_cv_c_const+:} false; then :
13406   $as_echo_n "(cached) " >&6
13407 else
13408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 int
13412 main ()
13413 {
13414
13415 #ifndef __cplusplus
13416   /* Ultrix mips cc rejects this sort of thing.  */
13417   typedef int charset[2];
13418   const charset cs = { 0, 0 };
13419   /* SunOS 4.1.1 cc rejects this.  */
13420   char const *const *pcpcc;
13421   char **ppc;
13422   /* NEC SVR4.0.2 mips cc rejects this.  */
13423   struct point {int x, y;};
13424   static struct point const zero = {0,0};
13425   /* AIX XL C 1.02.0.0 rejects this.
13426      It does not let you subtract one const X* pointer from another in
13427      an arm of an if-expression whose if-part is not a constant
13428      expression */
13429   const char *g = "string";
13430   pcpcc = &g + (g ? g-g : 0);
13431   /* HPUX 7.0 cc rejects these. */
13432   ++pcpcc;
13433   ppc = (char**) pcpcc;
13434   pcpcc = (char const *const *) ppc;
13435   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13436     char tx;
13437     char *t = &tx;
13438     char const *s = 0 ? (char *) 0 : (char const *) 0;
13439
13440     *t++ = 0;
13441     if (s) return 0;
13442   }
13443   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13444     int x[] = {25, 17};
13445     const int *foo = &x[0];
13446     ++foo;
13447   }
13448   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13449     typedef const int *iptr;
13450     iptr p = 0;
13451     ++p;
13452   }
13453   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13454        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13455     struct s { int j; const int *ap[3]; } bx;
13456     struct s *b = &bx; b->j = 5;
13457   }
13458   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13459     const int foo = 10;
13460     if (!foo) return 0;
13461   }
13462   return !cs[0] && !zero.x;
13463 #endif
13464
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 if ac_fn_c_try_compile "$LINENO"; then :
13470   ac_cv_c_const=yes
13471 else
13472   ac_cv_c_const=no
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 fi
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13477 $as_echo "$ac_cv_c_const" >&6; }
13478 if test $ac_cv_c_const = no; then
13479
13480 $as_echo "#define const /**/" >>confdefs.h
13481
13482 fi
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
13485 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
13486 if ${ac_cv_c_stringize+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491 #define x(y) #y
13492
13493 char *s = x(teststring);
13494 _ACEOF
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496   $EGREP "#teststring" >/dev/null 2>&1; then :
13497   ac_cv_c_stringize=no
13498 else
13499   ac_cv_c_stringize=yes
13500 fi
13501 rm -f conftest*
13502
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
13505 $as_echo "$ac_cv_c_stringize" >&6; }
13506 if test $ac_cv_c_stringize = yes; then
13507
13508 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
13509
13510 fi
13511
13512 # The cast to long int works around a bug in the HP C Compiler
13513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13515 # This bug is HP SR number 8606223364.
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13517 $as_echo_n "checking size of int... " >&6; }
13518 if ${ac_cv_sizeof_int+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13522
13523 else
13524   if test "$ac_cv_type_int" = yes; then
13525      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13527 as_fn_error 77 "cannot compute sizeof (int)
13528 See \`config.log' for more details" "$LINENO" 5; }
13529    else
13530      ac_cv_sizeof_int=0
13531    fi
13532 fi
13533
13534 fi
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13536 $as_echo "$ac_cv_sizeof_int" >&6; }
13537
13538
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define SIZEOF_INT $ac_cv_sizeof_int
13542 _ACEOF
13543
13544
13545 SIZEOF_INT=$ac_cv_sizeof_int
13546
13547 # The cast to long int works around a bug in the HP C Compiler
13548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13550 # This bug is HP SR number 8606223364.
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13552 $as_echo_n "checking size of short... " >&6; }
13553 if ${ac_cv_sizeof_short+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13557
13558 else
13559   if test "$ac_cv_type_short" = yes; then
13560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13562 as_fn_error 77 "cannot compute sizeof (short)
13563 See \`config.log' for more details" "$LINENO" 5; }
13564    else
13565      ac_cv_sizeof_short=0
13566    fi
13567 fi
13568
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13571 $as_echo "$ac_cv_sizeof_short" >&6; }
13572
13573
13574
13575 cat >>confdefs.h <<_ACEOF
13576 #define SIZEOF_SHORT $ac_cv_sizeof_short
13577 _ACEOF
13578
13579
13580 # The cast to long int works around a bug in the HP C Compiler
13581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13583 # This bug is HP SR number 8606223364.
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13585 $as_echo_n "checking size of void *... " >&6; }
13586 if ${ac_cv_sizeof_void_p+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13590
13591 else
13592   if test "$ac_cv_type_void_p" = yes; then
13593      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13595 as_fn_error 77 "cannot compute sizeof (void *)
13596 See \`config.log' for more details" "$LINENO" 5; }
13597    else
13598      ac_cv_sizeof_void_p=0
13599    fi
13600 fi
13601
13602 fi
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13604 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13605
13606
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13610 _ACEOF
13611
13612
13613 # The cast to long int works around a bug in the HP C Compiler
13614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13616 # This bug is HP SR number 8606223364.
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13618 $as_echo_n "checking size of wchar_t... " >&6; }
13619 if ${ac_cv_sizeof_wchar_t+:} false; then :
13620   $as_echo_n "(cached) " >&6
13621 else
13622   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
13623
13624 else
13625   if test "$ac_cv_type_wchar_t" = yes; then
13626      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13628 as_fn_error 77 "cannot compute sizeof (wchar_t)
13629 See \`config.log' for more details" "$LINENO" 5; }
13630    else
13631      ac_cv_sizeof_wchar_t=0
13632    fi
13633 fi
13634
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13637 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13638
13639
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13643 _ACEOF
13644
13645
13646
13647
13648
13649 save_cross_compiling=$cross_compiling
13650 save_ac_tool_prefix=$ac_tool_prefix
13651 cross_compiling=no
13652 ac_tool_prefix=
13653
13654 ac_ext=c
13655 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13656 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13657 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13659 if test -n "$ac_tool_prefix"; then
13660   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13665   $as_echo_n "(cached) " >&6
13666 else
13667   if test -n "$CC_FOR_BUILD"; then
13668   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13669 else
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13672 do
13673   IFS=$as_save_IFS
13674   test -z "$as_dir" && as_dir=.
13675     for ac_exec_ext in '' $ac_executable_extensions; do
13676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
13678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679     break 2
13680   fi
13681 done
13682   done
13683 IFS=$as_save_IFS
13684
13685 fi
13686 fi
13687 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13688 if test -n "$CC_FOR_BUILD"; then
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13690 $as_echo "$CC_FOR_BUILD" >&6; }
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 fi
13695
13696
13697 fi
13698 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
13699   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13700   # Extract the first word of "gcc", so it can be a program name with args.
13701 set dummy gcc; ac_word=$2
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13703 $as_echo_n "checking for $ac_word... " >&6; }
13704 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   if test -n "$ac_ct_CC_FOR_BUILD"; then
13708   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13709 else
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713   IFS=$as_save_IFS
13714   test -z "$as_dir" && as_dir=.
13715     for ac_exec_ext in '' $ac_executable_extensions; do
13716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13717     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
13718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719     break 2
13720   fi
13721 done
13722   done
13723 IFS=$as_save_IFS
13724
13725 fi
13726 fi
13727 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13728 if test -n "$ac_ct_CC_FOR_BUILD"; then
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13730 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13731 else
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13734 fi
13735
13736   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13737     CC_FOR_BUILD=""
13738   else
13739     case $cross_compiling:$ac_tool_warned in
13740 yes:)
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13742 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13743 ac_tool_warned=yes ;;
13744 esac
13745     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13746   fi
13747 else
13748   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
13749 fi
13750
13751 if test -z "$CC_FOR_BUILD"; then
13752           if test -n "$ac_tool_prefix"; then
13753     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13754 set dummy ${ac_tool_prefix}cc; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13758   $as_echo_n "(cached) " >&6
13759 else
13760   if test -n "$CC_FOR_BUILD"; then
13761   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766   IFS=$as_save_IFS
13767   test -z "$as_dir" && as_dir=.
13768     for ac_exec_ext in '' $ac_executable_extensions; do
13769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
13771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772     break 2
13773   fi
13774 done
13775   done
13776 IFS=$as_save_IFS
13777
13778 fi
13779 fi
13780 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13781 if test -n "$CC_FOR_BUILD"; then
13782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13783 $as_echo "$CC_FOR_BUILD" >&6; }
13784 else
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789
13790   fi
13791 fi
13792 if test -z "$CC_FOR_BUILD"; then
13793   # Extract the first word of "cc", so it can be a program name with args.
13794 set dummy cc; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13798   $as_echo_n "(cached) " >&6
13799 else
13800   if test -n "$CC_FOR_BUILD"; then
13801   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13802 else
13803   ac_prog_rejected=no
13804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13805 for as_dir in $PATH
13806 do
13807   IFS=$as_save_IFS
13808   test -z "$as_dir" && as_dir=.
13809     for ac_exec_ext in '' $ac_executable_extensions; do
13810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13811     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13812        ac_prog_rejected=yes
13813        continue
13814      fi
13815     ac_cv_prog_CC_FOR_BUILD="cc"
13816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13817     break 2
13818   fi
13819 done
13820   done
13821 IFS=$as_save_IFS
13822
13823 if test $ac_prog_rejected = yes; then
13824   # We found a bogon in the path, so make sure we never use it.
13825   set dummy $ac_cv_prog_CC_FOR_BUILD
13826   shift
13827   if test $# != 0; then
13828     # We chose a different compiler from the bogus one.
13829     # However, it has the same basename, so the bogon will be chosen
13830     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
13831     shift
13832     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
13833   fi
13834 fi
13835 fi
13836 fi
13837 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13838 if test -n "$CC_FOR_BUILD"; then
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13840 $as_echo "$CC_FOR_BUILD" >&6; }
13841 else
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846
13847 fi
13848 if test -z "$CC_FOR_BUILD"; then
13849   if test -n "$ac_tool_prefix"; then
13850   for ac_prog in cl.exe
13851   do
13852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859   if test -n "$CC_FOR_BUILD"; then
13860   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865   IFS=$as_save_IFS
13866   test -z "$as_dir" && as_dir=.
13867     for ac_exec_ext in '' $ac_executable_extensions; do
13868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869     ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
13870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871     break 2
13872   fi
13873 done
13874   done
13875 IFS=$as_save_IFS
13876
13877 fi
13878 fi
13879 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13880 if test -n "$CC_FOR_BUILD"; then
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13882 $as_echo "$CC_FOR_BUILD" >&6; }
13883 else
13884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13886 fi
13887
13888
13889     test -n "$CC_FOR_BUILD" && break
13890   done
13891 fi
13892 if test -z "$CC_FOR_BUILD"; then
13893   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13894   for ac_prog in cl.exe
13895 do
13896   # Extract the first word of "$ac_prog", so it can be a program name with args.
13897 set dummy $ac_prog; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13901   $as_echo_n "(cached) " >&6
13902 else
13903   if test -n "$ac_ct_CC_FOR_BUILD"; then
13904   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909   IFS=$as_save_IFS
13910   test -z "$as_dir" && as_dir=.
13911     for ac_exec_ext in '' $ac_executable_extensions; do
13912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
13914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915     break 2
13916   fi
13917 done
13918   done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13924 if test -n "$ac_ct_CC_FOR_BUILD"; then
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13926 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13927 else
13928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13930 fi
13931
13932
13933   test -n "$ac_ct_CC_FOR_BUILD" && break
13934 done
13935
13936   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13937     CC_FOR_BUILD=""
13938   else
13939     case $cross_compiling:$ac_tool_warned in
13940 yes:)
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13942 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13943 ac_tool_warned=yes ;;
13944 esac
13945     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13946   fi
13947 fi
13948
13949 fi
13950
13951
13952 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13954 as_fn_error $? "no acceptable C compiler found in \$PATH
13955 See \`config.log' for more details" "$LINENO" 5; }
13956
13957 # Provide some information about the compiler.
13958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13959 set X $ac_build_compile
13960 ac_compiler=$2
13961 for ac_option in --version -v -V -qversion; do
13962   { { ac_try="$ac_compiler $ac_option >&5"
13963 case "(($ac_try" in
13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965   *) ac_try_echo=$ac_try;;
13966 esac
13967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13968 $as_echo "$ac_try_echo"; } >&5
13969   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13970   ac_status=$?
13971   if test -s conftest.err; then
13972     sed '10a\
13973 ... rest of stderr output deleted ...
13974          10q' conftest.err >conftest.er1
13975     cat conftest.er1 >&5
13976   fi
13977   rm -f conftest.er1 conftest.err
13978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13979   test $ac_status = 0; }
13980 done
13981
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13984 if ${ac_cv_c_compiler_gnu+:} false; then :
13985   $as_echo_n "(cached) " >&6
13986 else
13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h.  */
13989
13990 int
13991 main ()
13992 {
13993 #ifndef __GNUC__
13994        choke me
13995 #endif
13996
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002   ac_compiler_gnu=yes
14003 else
14004   ac_compiler_gnu=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14008
14009 fi
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14012 if test $ac_compiler_gnu = yes; then
14013   GCC=yes
14014 else
14015   GCC=
14016 fi
14017 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
14018 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
14020 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
14021 if ${ac_cv_build_prog_cc_g+:} false; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   ac_save_c_werror_flag=$ac_c_werror_flag
14025    ac_c_werror_flag=yes
14026    ac_cv_build_prog_cc_g=no
14027    CFLAGS_FOR_BUILD="-g"
14028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h.  */
14030
14031 int
14032 main ()
14033 {
14034
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040   ac_cv_build_prog_cc_g=yes
14041 else
14042   CFLAGS_FOR_BUILD=""
14043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045
14046 int
14047 main ()
14048 {
14049
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055
14056 else
14057   ac_c_werror_flag=$ac_save_c_werror_flag
14058          CFLAGS_FOR_BUILD="-g"
14059          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h.  */
14061
14062 int
14063 main ()
14064 {
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071   ac_cv_build_prog_cc_g=yes
14072 fi
14073 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14074 fi
14075 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14076 fi
14077 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14078    ac_c_werror_flag=$ac_save_c_werror_flag
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
14081 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
14082 if test "$ac_test_CFLAGS" = set; then
14083   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
14084 elif test $ac_cv_build_prog_cc_g = yes; then
14085   if test "$GCC" = yes; then
14086     CFLAGS_FOR_BUILD="-g -O2"
14087   else
14088     CFLAGS_FOR_BUILD="-g"
14089   fi
14090 else
14091   if test "$GCC" = yes; then
14092     CFLAGS_FOR_BUILD="-O2"
14093   else
14094     CFLAGS_FOR_BUILD=
14095   fi
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
14098 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
14099 if ${ac_cv_prog_cc_c89+:} false; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   ac_cv_prog_cc_c89=no
14103 ac_save_CC=$CC_FOR_BUILD
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h.  */
14106 #include <stdarg.h>
14107 #include <stdio.h>
14108 struct stat;
14109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14110 struct buf { int x; };
14111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14112 static char *e (p, i)
14113      char **p;
14114      int i;
14115 {
14116   return p[i];
14117 }
14118 static char *f (char * (*g) (char **, int), char **p, ...)
14119 {
14120   char *s;
14121   va_list v;
14122   va_start (v,p);
14123   s = g (p, va_arg (v,int));
14124   va_end (v);
14125   return s;
14126 }
14127
14128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14129    function prototypes and stuff, but not '\xHH' hex character constants.
14130    These don't provoke an error unfortunately, instead are silently treated
14131    as 'x'.  The following induces an error, until -std is added to get
14132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14133    array size at least.  It's necessary to write '\x00'==0 to get something
14134    that's true only with -std.  */
14135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14136
14137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14138    inside strings and character constants.  */
14139 #define FOO(x) 'x'
14140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14141
14142 int test (int i, double x);
14143 struct s1 {int (*f) (int a);};
14144 struct s2 {int (*f) (double a);};
14145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14146 int argc;
14147 char **argv;
14148 int
14149 main ()
14150 {
14151 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14157         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14158 do
14159   CC_FOR_BUILD="$ac_save_CC $ac_arg"
14160   if ac_fn_c_try_compile "$LINENO"; then :
14161   ac_cv_prog_cc_c89=$ac_arg
14162 fi
14163 rm -f core conftest.err conftest.$ac_build_objext
14164   test "x$ac_cv_prog_cc_c89" != "xno" && break
14165 done
14166 rm -f conftest.$ac_ext
14167 CC_FOR_BUILD=$ac_save_CC
14168
14169 fi
14170 # AC_CACHE_VAL
14171 case "x$ac_cv_prog_cc_c89" in
14172   x)
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14174 $as_echo "none needed" >&6; } ;;
14175   xno)
14176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14177 $as_echo "unsupported" >&6; } ;;
14178   *)
14179     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
14180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14182 esac
14183 if test "x$ac_cv_prog_cc_c89" != xno; then :
14184
14185 fi
14186
14187 ac_ext=c
14188 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14189 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14190 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192
14193 ac_ext=c
14194 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14195 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14196 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
14199 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
14200 if ${am_cv_prog_cc_c_o+:} false; then :
14201   $as_echo_n "(cached) " >&6
14202 else
14203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205
14206 int
14207 main ()
14208 {
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214   # Make sure it works both with $CC and with simple cc.
14215   # Following AC_PROG_CC_C_O, we do the test twice because some
14216   # compilers refuse to overwrite an existing .o file with -o,
14217   # though they will create one.
14218   am_cv_prog_cc_c_o=yes
14219   for am_i in 1 2; do
14220     if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
14221    ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
14222    ac_status=$?
14223    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224    (exit $ac_status); } \
14225          && test -f conftest2.$ac_build_objext; then
14226       : OK
14227     else
14228       am_cv_prog_cc_c_o=no
14229       break
14230     fi
14231   done
14232   rm -f core conftest*
14233   unset am_i
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14237 if test "$am_cv_prog_cc_c_o" != yes; then
14238    # Losing compiler, so override with the script.
14239    # FIXME: It is wrong to rewrite CC.
14240    # But if we don't then we get into trouble of one sort or another.
14241    # A longer-term fix would be to have automake use am__CC in this case,
14242    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14243    CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
14244 fi
14245 ac_ext=c
14246 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14247 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14248 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
14251
14252 depcc="$CC_FOR_BUILD"   am_compiler_list=
14253
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14255 $as_echo_n "checking dependency style of $depcc... " >&6; }
14256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14260   # We make a subdir and do the tests there.  Otherwise we can end up
14261   # making bogus files that we don't know about and never remove.  For
14262   # instance it was reported that on HP-UX the gcc test will end up
14263   # making a dummy file named 'D' -- because '-MD' means "put the output
14264   # in D".
14265   rm -rf conftest.dir
14266   mkdir conftest.dir
14267   # Copy depcomp to subdir because otherwise we won't find it if we're
14268   # using a relative directory.
14269   cp "$am_depcomp" conftest.dir
14270   cd conftest.dir
14271   # We will build objects and dependencies in a subdirectory because
14272   # it helps to detect inapplicable dependency modes.  For instance
14273   # both Tru64's cc and ICC support -MD to output dependencies as a
14274   # side effect of compilation, but ICC will put the dependencies in
14275   # the current directory while Tru64 will put them in the object
14276   # directory.
14277   mkdir sub
14278
14279   am_cv_CC_dependencies_compiler_type=none
14280   if test "$am_compiler_list" = ""; then
14281      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14282   fi
14283   am__universal=false
14284   case " $depcc " in #(
14285      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14286      esac
14287
14288   for depmode in $am_compiler_list; do
14289     # Setup a source with many dependencies, because some compilers
14290     # like to wrap large dependency lists on column 80 (with \), and
14291     # we should not choose a depcomp mode which is confused by this.
14292     #
14293     # We need to recreate these files for each test, as the compiler may
14294     # overwrite some of them when testing with obscure command lines.
14295     # This happens at least with the AIX C compiler.
14296     : > sub/conftest.c
14297     for i in 1 2 3 4 5 6; do
14298       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14299       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14300       # Solaris 10 /bin/sh.
14301       echo '/* dummy */' > sub/conftst$i.h
14302     done
14303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14304
14305     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14306     # mode.  It turns out that the SunPro C++ compiler does not properly
14307     # handle '-M -o', and we need to detect this.  Also, some Intel
14308     # versions had trouble with output in subdirs.
14309     am__obj=sub/conftest.${OBJEXT-o}
14310     am__minus_obj="-o $am__obj"
14311     case $depmode in
14312     gcc)
14313       # This depmode causes a compiler race in universal mode.
14314       test "$am__universal" = false || continue
14315       ;;
14316     nosideeffect)
14317       # After this tag, mechanisms are not by side-effect, so they'll
14318       # only be used when explicitly requested.
14319       if test "x$enable_dependency_tracking" = xyes; then
14320         continue
14321       else
14322         break
14323       fi
14324       ;;
14325     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14326       # This compiler won't grok '-c -o', but also, the minuso test has
14327       # not run yet.  These depmodes are late enough in the game, and
14328       # so weak that their functioning should not be impacted.
14329       am__obj=conftest.${OBJEXT-o}
14330       am__minus_obj=
14331       ;;
14332     none) break ;;
14333     esac
14334     if depmode=$depmode \
14335        source=sub/conftest.c object=$am__obj \
14336        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14337        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14338          >/dev/null 2>conftest.err &&
14339        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14340        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14341        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14342        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14343       # icc doesn't choke on unknown options, it will just issue warnings
14344       # or remarks (even with -Werror).  So we grep stderr for any message
14345       # that says an option was ignored or not supported.
14346       # When given -MP, icc 7.0 and 7.1 complain thusly:
14347       #   icc: Command line warning: ignoring option '-M'; no argument required
14348       # The diagnosis changed in icc 8.0:
14349       #   icc: Command line remark: option '-MP' not supported
14350       if (grep 'ignoring option' conftest.err ||
14351           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14352         am_cv_CC_dependencies_compiler_type=$depmode
14353         break
14354       fi
14355     fi
14356   done
14357
14358   cd ..
14359   rm -rf conftest.dir
14360 else
14361   am_cv_CC_dependencies_compiler_type=none
14362 fi
14363
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14368
14369  if
14370   test "x$enable_dependency_tracking" != xno \
14371   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14372   am__fastdepCC_TRUE=
14373   am__fastdepCC_FALSE='#'
14374 else
14375   am__fastdepCC_TRUE='#'
14376   am__fastdepCC_FALSE=
14377 fi
14378
14379
14380 ac_ext=c
14381 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14382 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14383 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14387 # On Suns, sometimes $CPP names a directory.
14388 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
14389   CPP_FOR_BUILD=
14390 fi
14391 if test -z "$CPP_FOR_BUILD"; then
14392   if ${ac_cv_build_prog_CPP+:} false; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395       # Double quotes because CPP needs to be expanded
14396     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
14397     do
14398       ac_preproc_ok=false
14399 for ac_c_preproc_warn_flag in '' yes
14400 do
14401   # Use a header file that comes with gcc, so configuring glibc
14402   # with a fresh cross-compiler works.
14403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14404   # <limits.h> exists even on freestanding compilers.
14405   # On the NeXT, cc -E runs the code through the compiler's parser,
14406   # not just through cpp. "Syntax error" is here to catch this case.
14407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409 #ifdef __STDC__
14410 # include <limits.h>
14411 #else
14412 # include <assert.h>
14413 #endif
14414                      Syntax error
14415 _ACEOF
14416 if ac_fn_c_try_cpp "$LINENO"; then :
14417
14418 else
14419   # Broken: fails on valid input.
14420 continue
14421 fi
14422 rm -f conftest.err conftest.i conftest.$ac_ext
14423
14424   # OK, works on sane cases.  Now check whether nonexistent headers
14425   # can be detected and how.
14426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h.  */
14428 #include <ac_nonexistent.h>
14429 _ACEOF
14430 if ac_fn_c_try_cpp "$LINENO"; then :
14431   # Broken: success on invalid input.
14432 continue
14433 else
14434   # Passes both tests.
14435 ac_preproc_ok=:
14436 break
14437 fi
14438 rm -f conftest.err conftest.i conftest.$ac_ext
14439
14440 done
14441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14442 rm -f conftest.i conftest.err conftest.$ac_ext
14443 if $ac_preproc_ok; then :
14444   break
14445 fi
14446
14447     done
14448     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14449
14450 fi
14451   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
14452 else
14453   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14454 fi
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
14456 $as_echo "$CPP_FOR_BUILD" >&6; }
14457 ac_preproc_ok=false
14458 for ac_c_preproc_warn_flag in '' yes
14459 do
14460   # Use a header file that comes with gcc, so configuring glibc
14461   # with a fresh cross-compiler works.
14462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463   # <limits.h> exists even on freestanding compilers.
14464   # On the NeXT, cc -E runs the code through the compiler's parser,
14465   # not just through cpp. "Syntax error" is here to catch this case.
14466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h.  */
14468 #ifdef __STDC__
14469 # include <limits.h>
14470 #else
14471 # include <assert.h>
14472 #endif
14473                      Syntax error
14474 _ACEOF
14475 if ac_fn_c_try_cpp "$LINENO"; then :
14476
14477 else
14478   # Broken: fails on valid input.
14479 continue
14480 fi
14481 rm -f conftest.err conftest.i conftest.$ac_ext
14482
14483   # OK, works on sane cases.  Now check whether nonexistent headers
14484   # can be detected and how.
14485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487 #include <ac_nonexistent.h>
14488 _ACEOF
14489 if ac_fn_c_try_cpp "$LINENO"; then :
14490   # Broken: success on invalid input.
14491 continue
14492 else
14493   # Passes both tests.
14494 ac_preproc_ok=:
14495 break
14496 fi
14497 rm -f conftest.err conftest.i conftest.$ac_ext
14498
14499 done
14500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14501 rm -f conftest.i conftest.err conftest.$ac_ext
14502 if $ac_preproc_ok; then :
14503
14504 else
14505   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14507 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
14508 See \`config.log' for more details" "$LINENO" 5; }
14509 fi
14510
14511 ac_ext=c
14512 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14513 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14514 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14516
14517
14518
14519 ac_tool_prefix=$save_ac_tool_prefix
14520 cross_compiling=$save_cross_compiling
14521
14522
14523 BUILD_EXEEXT=$ac_build_exeext
14524 BUILD_OBJEXT=$ac_build_objext
14525
14526
14527 # Checks for compiler characteristics.
14528 if test "x$GCC" = "xyes"; then
14529   CFLAGS="$CFLAGS -Wall -ansi "
14530 fi
14531
14532 # Checks for library functions.
14533 for ac_func in memmove memset strdup
14534 do :
14535   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14538   cat >>confdefs.h <<_ACEOF
14539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 _ACEOF
14541
14542 fi
14543 done
14544
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14546 $as_echo_n "checking return type of signal handlers... " >&6; }
14547 if ${ac_cv_type_signal+:} false; then :
14548   $as_echo_n "(cached) " >&6
14549 else
14550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h.  */
14552 #include <sys/types.h>
14553 #include <signal.h>
14554
14555 int
14556 main ()
14557 {
14558 return *(signal (0, 0)) (0) == 1;
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_compile "$LINENO"; then :
14564   ac_cv_type_signal=int
14565 else
14566   ac_cv_type_signal=void
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14571 $as_echo "$ac_cv_type_signal" >&6; }
14572
14573 cat >>confdefs.h <<_ACEOF
14574 #define RETSIGTYPE $ac_cv_type_signal
14575 _ACEOF
14576
14577
14578
14579 # Checks for configure options
14580
14581 # --enable-debug
14582
14583 # Check whether --enable-debug was given.
14584 if test "${enable_debug+set}" = set; then :
14585   enableval=$enable_debug;
14586 else
14587   enable_debug=no
14588 fi
14589
14590 if test x$enable_debug = xyes; then
14591
14592 $as_echo "#define DEBUG 1" >>confdefs.h
14593
14594 fi
14595
14596 # --disable-deprecated
14597 # Check whether --enable-deprecated was given.
14598 if test "${enable_deprecated+set}" = set; then :
14599   enableval=$enable_deprecated;
14600 fi
14601
14602 if test x$enable_deprecated = xno; then
14603
14604 $as_echo "#define FRIBIDI_NO_DEPRECATED 1" >>confdefs.h
14605
14606 fi
14607
14608 # define FRIBIDI_LIB_STATIC if in static mode
14609 if test "$enable_static" = "yes" ; then
14610         FRIBIDI_CPPFLAGS="-DFRIBIDI_LIB_STATIC"
14611 fi
14612
14613
14614
14615 # Generate output
14616 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile test/unicode-conformance/Makefile"
14617
14618 cat >confcache <<\_ACEOF
14619 # This file is a shell script that caches the results of configure
14620 # tests run on this system so they can be shared between configure
14621 # scripts and configure runs, see configure's option --config-cache.
14622 # It is not useful on other systems.  If it contains results you don't
14623 # want to keep, you may remove or edit it.
14624 #
14625 # config.status only pays attention to the cache file if you give it
14626 # the --recheck option to rerun configure.
14627 #
14628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14630 # following values.
14631
14632 _ACEOF
14633
14634 # The following way of writing the cache mishandles newlines in values,
14635 # but we know of no workaround that is simple, portable, and efficient.
14636 # So, we kill variables containing newlines.
14637 # Ultrix sh set writes to stderr and can't be redirected directly,
14638 # and sets the high bit in the cache file unless we assign to the vars.
14639 (
14640   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14641     eval ac_val=\$$ac_var
14642     case $ac_val in #(
14643     *${as_nl}*)
14644       case $ac_var in #(
14645       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14647       esac
14648       case $ac_var in #(
14649       _ | IFS | as_nl) ;; #(
14650       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14651       *) { eval $ac_var=; unset $ac_var;} ;;
14652       esac ;;
14653     esac
14654   done
14655
14656   (set) 2>&1 |
14657     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14658     *${as_nl}ac_space=\ *)
14659       # `set' does not quote correctly, so add quotes: double-quote
14660       # substitution turns \\\\ into \\, and sed turns \\ into \.
14661       sed -n \
14662         "s/'/'\\\\''/g;
14663           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14664       ;; #(
14665     *)
14666       # `set' quotes correctly as required by POSIX, so do not add quotes.
14667       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14668       ;;
14669     esac |
14670     sort
14671 ) |
14672   sed '
14673      /^ac_cv_env_/b end
14674      t clear
14675      :clear
14676      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14677      t end
14678      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14679      :end' >>confcache
14680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14681   if test -w "$cache_file"; then
14682     if test "x$cache_file" != "x/dev/null"; then
14683       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14684 $as_echo "$as_me: updating cache $cache_file" >&6;}
14685       if test ! -f "$cache_file" || test -h "$cache_file"; then
14686         cat confcache >"$cache_file"
14687       else
14688         case $cache_file in #(
14689         */* | ?:*)
14690           mv -f confcache "$cache_file"$$ &&
14691           mv -f "$cache_file"$$ "$cache_file" ;; #(
14692         *)
14693           mv -f confcache "$cache_file" ;;
14694         esac
14695       fi
14696     fi
14697   else
14698     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14700   fi
14701 fi
14702 rm -f confcache
14703
14704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14705 # Let make expand exec_prefix.
14706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14707
14708 DEFS=-DHAVE_CONFIG_H
14709
14710 ac_libobjs=
14711 ac_ltlibobjs=
14712 U=
14713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14714   # 1. Remove the extension, and $U if already installed.
14715   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14716   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14717   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14718   #    will be set to the directory where LIBOBJS objects are built.
14719   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14720   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14721 done
14722 LIBOBJS=$ac_libobjs
14723
14724 LTLIBOBJS=$ac_ltlibobjs
14725
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14728 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14729    if test -n "$am_sleep_pid"; then
14730      # Hide warnings about reused PIDs.
14731      wait $am_sleep_pid 2>/dev/null
14732    fi
14733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14734 $as_echo "done" >&6; }
14735  if test -n "$EXEEXT"; then
14736   am__EXEEXT_TRUE=
14737   am__EXEEXT_FALSE='#'
14738 else
14739   am__EXEEXT_TRUE='#'
14740   am__EXEEXT_FALSE=
14741 fi
14742
14743 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14744   as_fn_error $? "conditional \"AMDEP\" was never defined.
14745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746 fi
14747 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14748   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 fi
14751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14752   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 fi
14755 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14756   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 fi
14759 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14760   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 fi
14763 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14764   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 fi
14767
14768 : "${CONFIG_STATUS=./config.status}"
14769 ac_write_fail=0
14770 ac_clean_files_save=$ac_clean_files
14771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14774 as_write_fail=0
14775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14776 #! $SHELL
14777 # Generated by $as_me.
14778 # Run this file to recreate the current configuration.
14779 # Compiler output produced by configure, useful for debugging
14780 # configure, is in config.log if it exists.
14781
14782 debug=false
14783 ac_cs_recheck=false
14784 ac_cs_silent=false
14785
14786 SHELL=\${CONFIG_SHELL-$SHELL}
14787 export SHELL
14788 _ASEOF
14789 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14790 ## -------------------- ##
14791 ## M4sh Initialization. ##
14792 ## -------------------- ##
14793
14794 # Be more Bourne compatible
14795 DUALCASE=1; export DUALCASE # for MKS sh
14796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14797   emulate sh
14798   NULLCMD=:
14799   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14800   # is contrary to our usage.  Disable this feature.
14801   alias -g '${1+"$@"}'='"$@"'
14802   setopt NO_GLOB_SUBST
14803 else
14804   case `(set -o) 2>/dev/null` in #(
14805   *posix*) :
14806     set -o posix ;; #(
14807   *) :
14808      ;;
14809 esac
14810 fi
14811
14812
14813 as_nl='
14814 '
14815 export as_nl
14816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14817 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14820 # Prefer a ksh shell builtin over an external printf program on Solaris,
14821 # but without wasting forks for bash or zsh.
14822 if test -z "$BASH_VERSION$ZSH_VERSION" \
14823     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14824   as_echo='print -r --'
14825   as_echo_n='print -rn --'
14826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14827   as_echo='printf %s\n'
14828   as_echo_n='printf %s'
14829 else
14830   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14831     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14832     as_echo_n='/usr/ucb/echo -n'
14833   else
14834     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14835     as_echo_n_body='eval
14836       arg=$1;
14837       case $arg in #(
14838       *"$as_nl"*)
14839         expr "X$arg" : "X\\(.*\\)$as_nl";
14840         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14841       esac;
14842       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14843     '
14844     export as_echo_n_body
14845     as_echo_n='sh -c $as_echo_n_body as_echo'
14846   fi
14847   export as_echo_body
14848   as_echo='sh -c $as_echo_body as_echo'
14849 fi
14850
14851 # The user is always right.
14852 if test "${PATH_SEPARATOR+set}" != set; then
14853   PATH_SEPARATOR=:
14854   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14855     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14856       PATH_SEPARATOR=';'
14857   }
14858 fi
14859
14860
14861 # IFS
14862 # We need space, tab and new line, in precisely that order.  Quoting is
14863 # there to prevent editors from complaining about space-tab.
14864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14865 # splitting by setting IFS to empty value.)
14866 IFS=" ""        $as_nl"
14867
14868 # Find who we are.  Look in the path if we contain no directory separator.
14869 as_myself=
14870 case $0 in #((
14871   *[\\/]* ) as_myself=$0 ;;
14872   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14873 for as_dir in $PATH
14874 do
14875   IFS=$as_save_IFS
14876   test -z "$as_dir" && as_dir=.
14877     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14878   done
14879 IFS=$as_save_IFS
14880
14881      ;;
14882 esac
14883 # We did not find ourselves, most probably we were run as `sh COMMAND'
14884 # in which case we are not to be found in the path.
14885 if test "x$as_myself" = x; then
14886   as_myself=$0
14887 fi
14888 if test ! -f "$as_myself"; then
14889   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14890   exit 1
14891 fi
14892
14893 # Unset variables that we do not need and which cause bugs (e.g. in
14894 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14895 # suppresses any "Segmentation fault" message there.  '((' could
14896 # trigger a bug in pdksh 5.2.14.
14897 for as_var in BASH_ENV ENV MAIL MAILPATH
14898 do eval test x\${$as_var+set} = xset \
14899   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14900 done
14901 PS1='$ '
14902 PS2='> '
14903 PS4='+ '
14904
14905 # NLS nuisances.
14906 LC_ALL=C
14907 export LC_ALL
14908 LANGUAGE=C
14909 export LANGUAGE
14910
14911 # CDPATH.
14912 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14913
14914
14915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14916 # ----------------------------------------
14917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14919 # script with STATUS, using 1 if that was 0.
14920 as_fn_error ()
14921 {
14922   as_status=$1; test $as_status -eq 0 && as_status=1
14923   if test "$4"; then
14924     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14925     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14926   fi
14927   $as_echo "$as_me: error: $2" >&2
14928   as_fn_exit $as_status
14929 } # as_fn_error
14930
14931
14932 # as_fn_set_status STATUS
14933 # -----------------------
14934 # Set $? to STATUS, without forking.
14935 as_fn_set_status ()
14936 {
14937   return $1
14938 } # as_fn_set_status
14939
14940 # as_fn_exit STATUS
14941 # -----------------
14942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14943 as_fn_exit ()
14944 {
14945   set +e
14946   as_fn_set_status $1
14947   exit $1
14948 } # as_fn_exit
14949
14950 # as_fn_unset VAR
14951 # ---------------
14952 # Portably unset VAR.
14953 as_fn_unset ()
14954 {
14955   { eval $1=; unset $1;}
14956 }
14957 as_unset=as_fn_unset
14958 # as_fn_append VAR VALUE
14959 # ----------------------
14960 # Append the text in VALUE to the end of the definition contained in VAR. Take
14961 # advantage of any shell optimizations that allow amortized linear growth over
14962 # repeated appends, instead of the typical quadratic growth present in naive
14963 # implementations.
14964 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14965   eval 'as_fn_append ()
14966   {
14967     eval $1+=\$2
14968   }'
14969 else
14970   as_fn_append ()
14971   {
14972     eval $1=\$$1\$2
14973   }
14974 fi # as_fn_append
14975
14976 # as_fn_arith ARG...
14977 # ------------------
14978 # Perform arithmetic evaluation on the ARGs, and store the result in the
14979 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14980 # must be portable across $(()) and expr.
14981 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14982   eval 'as_fn_arith ()
14983   {
14984     as_val=$(( $* ))
14985   }'
14986 else
14987   as_fn_arith ()
14988   {
14989     as_val=`expr "$@" || test $? -eq 1`
14990   }
14991 fi # as_fn_arith
14992
14993
14994 if expr a : '\(a\)' >/dev/null 2>&1 &&
14995    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14996   as_expr=expr
14997 else
14998   as_expr=false
14999 fi
15000
15001 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15002   as_basename=basename
15003 else
15004   as_basename=false
15005 fi
15006
15007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15008   as_dirname=dirname
15009 else
15010   as_dirname=false
15011 fi
15012
15013 as_me=`$as_basename -- "$0" ||
15014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15015          X"$0" : 'X\(//\)$' \| \
15016          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15017 $as_echo X/"$0" |
15018     sed '/^.*\/\([^/][^/]*\)\/*$/{
15019             s//\1/
15020             q
15021           }
15022           /^X\/\(\/\/\)$/{
15023             s//\1/
15024             q
15025           }
15026           /^X\/\(\/\).*/{
15027             s//\1/
15028             q
15029           }
15030           s/.*/./; q'`
15031
15032 # Avoid depending upon Character Ranges.
15033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15036 as_cr_digits='0123456789'
15037 as_cr_alnum=$as_cr_Letters$as_cr_digits
15038
15039 ECHO_C= ECHO_N= ECHO_T=
15040 case `echo -n x` in #(((((
15041 -n*)
15042   case `echo 'xy\c'` in
15043   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15044   xy)  ECHO_C='\c';;
15045   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15046        ECHO_T=' ';;
15047   esac;;
15048 *)
15049   ECHO_N='-n';;
15050 esac
15051
15052 rm -f conf$$ conf$$.exe conf$$.file
15053 if test -d conf$$.dir; then
15054   rm -f conf$$.dir/conf$$.file
15055 else
15056   rm -f conf$$.dir
15057   mkdir conf$$.dir 2>/dev/null
15058 fi
15059 if (echo >conf$$.file) 2>/dev/null; then
15060   if ln -s conf$$.file conf$$ 2>/dev/null; then
15061     as_ln_s='ln -s'
15062     # ... but there are two gotchas:
15063     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15064     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15065     # In both cases, we have to default to `cp -pR'.
15066     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15067       as_ln_s='cp -pR'
15068   elif ln conf$$.file conf$$ 2>/dev/null; then
15069     as_ln_s=ln
15070   else
15071     as_ln_s='cp -pR'
15072   fi
15073 else
15074   as_ln_s='cp -pR'
15075 fi
15076 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15077 rmdir conf$$.dir 2>/dev/null
15078
15079
15080 # as_fn_mkdir_p
15081 # -------------
15082 # Create "$as_dir" as a directory, including parents if necessary.
15083 as_fn_mkdir_p ()
15084 {
15085
15086   case $as_dir in #(
15087   -*) as_dir=./$as_dir;;
15088   esac
15089   test -d "$as_dir" || eval $as_mkdir_p || {
15090     as_dirs=
15091     while :; do
15092       case $as_dir in #(
15093       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15094       *) as_qdir=$as_dir;;
15095       esac
15096       as_dirs="'$as_qdir' $as_dirs"
15097       as_dir=`$as_dirname -- "$as_dir" ||
15098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15099          X"$as_dir" : 'X\(//\)[^/]' \| \
15100          X"$as_dir" : 'X\(//\)$' \| \
15101          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15102 $as_echo X"$as_dir" |
15103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15104             s//\1/
15105             q
15106           }
15107           /^X\(\/\/\)[^/].*/{
15108             s//\1/
15109             q
15110           }
15111           /^X\(\/\/\)$/{
15112             s//\1/
15113             q
15114           }
15115           /^X\(\/\).*/{
15116             s//\1/
15117             q
15118           }
15119           s/.*/./; q'`
15120       test -d "$as_dir" && break
15121     done
15122     test -z "$as_dirs" || eval "mkdir $as_dirs"
15123   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15124
15125
15126 } # as_fn_mkdir_p
15127 if mkdir -p . 2>/dev/null; then
15128   as_mkdir_p='mkdir -p "$as_dir"'
15129 else
15130   test -d ./-p && rmdir ./-p
15131   as_mkdir_p=false
15132 fi
15133
15134
15135 # as_fn_executable_p FILE
15136 # -----------------------
15137 # Test if FILE is an executable regular file.
15138 as_fn_executable_p ()
15139 {
15140   test -f "$1" && test -x "$1"
15141 } # as_fn_executable_p
15142 as_test_x='test -x'
15143 as_executable_p=as_fn_executable_p
15144
15145 # Sed expression to map a string onto a valid CPP name.
15146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15147
15148 # Sed expression to map a string onto a valid variable name.
15149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15150
15151
15152 exec 6>&1
15153 ## ----------------------------------- ##
15154 ## Main body of $CONFIG_STATUS script. ##
15155 ## ----------------------------------- ##
15156 _ASEOF
15157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15158
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 # Save the log message, to keep $0 and so on meaningful, and to
15161 # report actual input values of CONFIG_FILES etc. instead of their
15162 # values after options handling.
15163 ac_log="
15164 This file was extended by GNU FriBidi $as_me 1.0.10, which was
15165 generated by GNU Autoconf 2.69.  Invocation command line was
15166
15167   CONFIG_FILES    = $CONFIG_FILES
15168   CONFIG_HEADERS  = $CONFIG_HEADERS
15169   CONFIG_LINKS    = $CONFIG_LINKS
15170   CONFIG_COMMANDS = $CONFIG_COMMANDS
15171   $ $0 $@
15172
15173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15174 "
15175
15176 _ACEOF
15177
15178 case $ac_config_files in *"
15179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15180 esac
15181
15182 case $ac_config_headers in *"
15183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15184 esac
15185
15186
15187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15188 # Files that config.status was made for.
15189 config_files="$ac_config_files"
15190 config_headers="$ac_config_headers"
15191 config_commands="$ac_config_commands"
15192
15193 _ACEOF
15194
15195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15196 ac_cs_usage="\
15197 \`$as_me' instantiates files and other configuration actions
15198 from templates according to the current configuration.  Unless the files
15199 and actions are specified as TAGs, all are instantiated by default.
15200
15201 Usage: $0 [OPTION]... [TAG]...
15202
15203   -h, --help       print this help, then exit
15204   -V, --version    print version number and configuration settings, then exit
15205       --config     print configuration, then exit
15206   -q, --quiet, --silent
15207                    do not print progress messages
15208   -d, --debug      don't remove temporary files
15209       --recheck    update $as_me by reconfiguring in the same conditions
15210       --file=FILE[:TEMPLATE]
15211                    instantiate the configuration file FILE
15212       --header=FILE[:TEMPLATE]
15213                    instantiate the configuration header FILE
15214
15215 Configuration files:
15216 $config_files
15217
15218 Configuration headers:
15219 $config_headers
15220
15221 Configuration commands:
15222 $config_commands
15223
15224 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
15225 GNU FriBidi home page: <http://fribidi.org/>.
15226 General help using GNU software: <http://www.gnu.org/gethelp/>."
15227
15228 _ACEOF
15229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15231 ac_cs_version="\\
15232 GNU FriBidi config.status 1.0.10
15233 configured by $0, generated by GNU Autoconf 2.69,
15234   with options \\"\$ac_cs_config\\"
15235
15236 Copyright (C) 2012 Free Software Foundation, Inc.
15237 This config.status script is free software; the Free Software Foundation
15238 gives unlimited permission to copy, distribute and modify it."
15239
15240 ac_pwd='$ac_pwd'
15241 srcdir='$srcdir'
15242 INSTALL='$INSTALL'
15243 MKDIR_P='$MKDIR_P'
15244 AWK='$AWK'
15245 test -n "\$AWK" || AWK=awk
15246 _ACEOF
15247
15248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15249 # The default lists apply if the user does not specify any file.
15250 ac_need_defaults=:
15251 while test $# != 0
15252 do
15253   case $1 in
15254   --*=?*)
15255     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15256     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15257     ac_shift=:
15258     ;;
15259   --*=)
15260     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15261     ac_optarg=
15262     ac_shift=:
15263     ;;
15264   *)
15265     ac_option=$1
15266     ac_optarg=$2
15267     ac_shift=shift
15268     ;;
15269   esac
15270
15271   case $ac_option in
15272   # Handling of the options.
15273   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15274     ac_cs_recheck=: ;;
15275   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15276     $as_echo "$ac_cs_version"; exit ;;
15277   --config | --confi | --conf | --con | --co | --c )
15278     $as_echo "$ac_cs_config"; exit ;;
15279   --debug | --debu | --deb | --de | --d | -d )
15280     debug=: ;;
15281   --file | --fil | --fi | --f )
15282     $ac_shift
15283     case $ac_optarg in
15284     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15285     '') as_fn_error $? "missing file argument" ;;
15286     esac
15287     as_fn_append CONFIG_FILES " '$ac_optarg'"
15288     ac_need_defaults=false;;
15289   --header | --heade | --head | --hea )
15290     $ac_shift
15291     case $ac_optarg in
15292     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15293     esac
15294     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15295     ac_need_defaults=false;;
15296   --he | --h)
15297     # Conflict between --help and --header
15298     as_fn_error $? "ambiguous option: \`$1'
15299 Try \`$0 --help' for more information.";;
15300   --help | --hel | -h )
15301     $as_echo "$ac_cs_usage"; exit ;;
15302   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15303   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15304     ac_cs_silent=: ;;
15305
15306   # This is an error.
15307   -*) as_fn_error $? "unrecognized option: \`$1'
15308 Try \`$0 --help' for more information." ;;
15309
15310   *) as_fn_append ac_config_targets " $1"
15311      ac_need_defaults=false ;;
15312
15313   esac
15314   shift
15315 done
15316
15317 ac_configure_extra_args=
15318
15319 if $ac_cs_silent; then
15320   exec 6>/dev/null
15321   ac_configure_extra_args="$ac_configure_extra_args --silent"
15322 fi
15323
15324 _ACEOF
15325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15326 if \$ac_cs_recheck; then
15327   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15328   shift
15329   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15330   CONFIG_SHELL='$SHELL'
15331   export CONFIG_SHELL
15332   exec "\$@"
15333 fi
15334
15335 _ACEOF
15336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15337 exec 5>>config.log
15338 {
15339   echo
15340   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15341 ## Running $as_me. ##
15342 _ASBOX
15343   $as_echo "$ac_log"
15344 } >&5
15345
15346 _ACEOF
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 #
15349 # INIT-COMMANDS
15350 #
15351 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15352
15353
15354 # The HP-UX ksh and POSIX shell print the target directory to stdout
15355 # if CDPATH is set.
15356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15357
15358 sed_quote_subst='$sed_quote_subst'
15359 double_quote_subst='$double_quote_subst'
15360 delay_variable_subst='$delay_variable_subst'
15361 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15362 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15363 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15364 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15365 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15366 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15367 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15370 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15391 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15392 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15393 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15394 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15395 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15396 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15397 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15398 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15399 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15400 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15401 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15402 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15403 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15404 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15405 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15406 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15407 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15408 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15409 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15410 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15411 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15412 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15413 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15414 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15415 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15416 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15417 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15419 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"`'
15420 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15421 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15422 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15423 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15424 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15425 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15426 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15427 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15428 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15429 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15430 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15431 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15432 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15433 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15434 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15435 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15436 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15437 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15438 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15439 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15440 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15441 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15442 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15443 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15444 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15445 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15446 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15447 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15448 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15449 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15450 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15451 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15452 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15453 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15454 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15455 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15456 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15457 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15458 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15459 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15460 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15461 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15462 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15463 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15464 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15465 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15466 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15467 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15468 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15469 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15470 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15471 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15472 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15473 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15474 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15475 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15476 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15477 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15478 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15479 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15480 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15481 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15482 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15483 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15484 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15485 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15486 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15487 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15488 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15489 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15490 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15491 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15492 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15493 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15494 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15495 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15496
15497 LTCC='$LTCC'
15498 LTCFLAGS='$LTCFLAGS'
15499 compiler='$compiler_DEFAULT'
15500
15501 # A function that is used when there is no print builtin or printf.
15502 func_fallback_echo ()
15503 {
15504   eval 'cat <<_LTECHO_EOF
15505 \$1
15506 _LTECHO_EOF'
15507 }
15508
15509 # Quote evaled strings.
15510 for var in SHELL \
15511 ECHO \
15512 PATH_SEPARATOR \
15513 SED \
15514 GREP \
15515 EGREP \
15516 FGREP \
15517 LD \
15518 NM \
15519 LN_S \
15520 lt_SP2NL \
15521 lt_NL2SP \
15522 reload_flag \
15523 OBJDUMP \
15524 deplibs_check_method \
15525 file_magic_cmd \
15526 file_magic_glob \
15527 want_nocaseglob \
15528 DLLTOOL \
15529 sharedlib_from_linklib_cmd \
15530 AR \
15531 AR_FLAGS \
15532 archiver_list_spec \
15533 STRIP \
15534 RANLIB \
15535 CC \
15536 CFLAGS \
15537 compiler \
15538 lt_cv_sys_global_symbol_pipe \
15539 lt_cv_sys_global_symbol_to_cdecl \
15540 lt_cv_sys_global_symbol_to_import \
15541 lt_cv_sys_global_symbol_to_c_name_address \
15542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15543 lt_cv_nm_interface \
15544 nm_file_list_spec \
15545 lt_cv_truncate_bin \
15546 lt_prog_compiler_no_builtin_flag \
15547 lt_prog_compiler_pic \
15548 lt_prog_compiler_wl \
15549 lt_prog_compiler_static \
15550 lt_cv_prog_compiler_c_o \
15551 need_locks \
15552 MANIFEST_TOOL \
15553 DSYMUTIL \
15554 NMEDIT \
15555 LIPO \
15556 OTOOL \
15557 OTOOL64 \
15558 shrext_cmds \
15559 export_dynamic_flag_spec \
15560 whole_archive_flag_spec \
15561 compiler_needs_object \
15562 with_gnu_ld \
15563 allow_undefined_flag \
15564 no_undefined_flag \
15565 hardcode_libdir_flag_spec \
15566 hardcode_libdir_separator \
15567 exclude_expsyms \
15568 include_expsyms \
15569 file_list_spec \
15570 variables_saved_for_relink \
15571 libname_spec \
15572 library_names_spec \
15573 soname_spec \
15574 install_override_mode \
15575 finish_eval \
15576 old_striplib \
15577 striplib; do
15578     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15579     *[\\\\\\\`\\"\\\$]*)
15580       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15581       ;;
15582     *)
15583       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15584       ;;
15585     esac
15586 done
15587
15588 # Double-quote double-evaled strings.
15589 for var in reload_cmds \
15590 old_postinstall_cmds \
15591 old_postuninstall_cmds \
15592 old_archive_cmds \
15593 extract_expsyms_cmds \
15594 old_archive_from_new_cmds \
15595 old_archive_from_expsyms_cmds \
15596 archive_cmds \
15597 archive_expsym_cmds \
15598 module_cmds \
15599 module_expsym_cmds \
15600 export_symbols_cmds \
15601 prelink_cmds \
15602 postlink_cmds \
15603 postinstall_cmds \
15604 postuninstall_cmds \
15605 finish_cmds \
15606 sys_lib_search_path_spec \
15607 configure_time_dlsearch_path \
15608 configure_time_lt_sys_library_path; do
15609     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15610     *[\\\\\\\`\\"\\\$]*)
15611       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15612       ;;
15613     *)
15614       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15615       ;;
15616     esac
15617 done
15618
15619 ac_aux_dir='$ac_aux_dir'
15620
15621 # See if we are running on zsh, and set the options that allow our
15622 # commands through without removal of \ escapes INIT.
15623 if test -n "\${ZSH_VERSION+set}"; then
15624    setopt NO_GLOB_SUBST
15625 fi
15626
15627
15628     PACKAGE='$PACKAGE'
15629     VERSION='$VERSION'
15630     RM='$RM'
15631     ofile='$ofile'
15632
15633
15634
15635
15636 _ACEOF
15637
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639
15640 # Handling of arguments.
15641 for ac_config_target in $ac_config_targets
15642 do
15643   case $ac_config_target in
15644     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15645     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15646     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15647     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
15648     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
15649     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15650     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
15651     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15652     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15653     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15654     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15655     "test/unicode-conformance/Makefile") CONFIG_FILES="$CONFIG_FILES test/unicode-conformance/Makefile" ;;
15656
15657   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15658   esac
15659 done
15660
15661
15662 # If the user did not use the arguments to specify the items to instantiate,
15663 # then the envvar interface is used.  Set only those that are not.
15664 # We use the long form for the default assignment because of an extremely
15665 # bizarre bug on SunOS 4.1.3.
15666 if $ac_need_defaults; then
15667   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15668   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15669   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15670 fi
15671
15672 # Have a temporary directory for convenience.  Make it in the build tree
15673 # simply because there is no reason against having it here, and in addition,
15674 # creating and moving files from /tmp can sometimes cause problems.
15675 # Hook for its removal unless debugging.
15676 # Note that there is a small window in which the directory will not be cleaned:
15677 # after its creation but before its name has been assigned to `$tmp'.
15678 $debug ||
15679 {
15680   tmp= ac_tmp=
15681   trap 'exit_status=$?
15682   : "${ac_tmp:=$tmp}"
15683   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15684 ' 0
15685   trap 'as_fn_exit 1' 1 2 13 15
15686 }
15687 # Create a (secure) tmp directory for tmp files.
15688
15689 {
15690   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15691   test -d "$tmp"
15692 }  ||
15693 {
15694   tmp=./conf$$-$RANDOM
15695   (umask 077 && mkdir "$tmp")
15696 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15697 ac_tmp=$tmp
15698
15699 # Set up the scripts for CONFIG_FILES section.
15700 # No need to generate them if there are no CONFIG_FILES.
15701 # This happens for instance with `./config.status config.h'.
15702 if test -n "$CONFIG_FILES"; then
15703
15704
15705 ac_cr=`echo X | tr X '\015'`
15706 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15707 # But we know of no other shell where ac_cr would be empty at this
15708 # point, so we can use a bashism as a fallback.
15709 if test "x$ac_cr" = x; then
15710   eval ac_cr=\$\'\\r\'
15711 fi
15712 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15713 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15714   ac_cs_awk_cr='\\r'
15715 else
15716   ac_cs_awk_cr=$ac_cr
15717 fi
15718
15719 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15720 _ACEOF
15721
15722
15723 {
15724   echo "cat >conf$$subs.awk <<_ACEOF" &&
15725   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15726   echo "_ACEOF"
15727 } >conf$$subs.sh ||
15728   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15729 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15730 ac_delim='%!_!# '
15731 for ac_last_try in false false false false false :; do
15732   . ./conf$$subs.sh ||
15733     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15734
15735   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15736   if test $ac_delim_n = $ac_delim_num; then
15737     break
15738   elif $ac_last_try; then
15739     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15740   else
15741     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15742   fi
15743 done
15744 rm -f conf$$subs.sh
15745
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15748 _ACEOF
15749 sed -n '
15750 h
15751 s/^/S["/; s/!.*/"]=/
15752 p
15753 g
15754 s/^[^!]*!//
15755 :repl
15756 t repl
15757 s/'"$ac_delim"'$//
15758 t delim
15759 :nl
15760 h
15761 s/\(.\{148\}\)..*/\1/
15762 t more1
15763 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15764 p
15765 n
15766 b repl
15767 :more1
15768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15769 p
15770 g
15771 s/.\{148\}//
15772 t nl
15773 :delim
15774 h
15775 s/\(.\{148\}\)..*/\1/
15776 t more2
15777 s/["\\]/\\&/g; s/^/"/; s/$/"/
15778 p
15779 b
15780 :more2
15781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15782 p
15783 g
15784 s/.\{148\}//
15785 t delim
15786 ' <conf$$subs.awk | sed '
15787 /^[^""]/{
15788   N
15789   s/\n//
15790 }
15791 ' >>$CONFIG_STATUS || ac_write_fail=1
15792 rm -f conf$$subs.awk
15793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794 _ACAWK
15795 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15796   for (key in S) S_is_set[key] = 1
15797   FS = "\a"
15798
15799 }
15800 {
15801   line = $ 0
15802   nfields = split(line, field, "@")
15803   substed = 0
15804   len = length(field[1])
15805   for (i = 2; i < nfields; i++) {
15806     key = field[i]
15807     keylen = length(key)
15808     if (S_is_set[key]) {
15809       value = S[key]
15810       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15811       len += length(value) + length(field[++i])
15812       substed = 1
15813     } else
15814       len += 1 + keylen
15815   }
15816
15817   print line
15818 }
15819
15820 _ACAWK
15821 _ACEOF
15822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15823 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15824   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15825 else
15826   cat
15827 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15828   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15829 _ACEOF
15830
15831 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15832 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15833 # trailing colons and then remove the whole line if VPATH becomes empty
15834 # (actually we leave an empty line to preserve line numbers).
15835 if test "x$srcdir" = x.; then
15836   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15837 h
15838 s///
15839 s/^/:/
15840 s/[      ]*$/:/
15841 s/:\$(srcdir):/:/g
15842 s/:\${srcdir}:/:/g
15843 s/:@srcdir@:/:/g
15844 s/^:*//
15845 s/:*$//
15846 x
15847 s/\(=[   ]*\).*/\1/
15848 G
15849 s/\n//
15850 s/^[^=]*=[       ]*$//
15851 }'
15852 fi
15853
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855 fi # test -n "$CONFIG_FILES"
15856
15857 # Set up the scripts for CONFIG_HEADERS section.
15858 # No need to generate them if there are no CONFIG_HEADERS.
15859 # This happens for instance with `./config.status Makefile'.
15860 if test -n "$CONFIG_HEADERS"; then
15861 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15862 BEGIN {
15863 _ACEOF
15864
15865 # Transform confdefs.h into an awk script `defines.awk', embedded as
15866 # here-document in config.status, that substitutes the proper values into
15867 # config.h.in to produce config.h.
15868
15869 # Create a delimiter string that does not exist in confdefs.h, to ease
15870 # handling of long lines.
15871 ac_delim='%!_!# '
15872 for ac_last_try in false false :; do
15873   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15874   if test -z "$ac_tt"; then
15875     break
15876   elif $ac_last_try; then
15877     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15878   else
15879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15880   fi
15881 done
15882
15883 # For the awk script, D is an array of macro values keyed by name,
15884 # likewise P contains macro parameters if any.  Preserve backslash
15885 # newline sequences.
15886
15887 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15888 sed -n '
15889 s/.\{148\}/&'"$ac_delim"'/g
15890 t rset
15891 :rset
15892 s/^[     ]*#[    ]*define[       ][      ]*/ /
15893 t def
15894 d
15895 :def
15896 s/\\$//
15897 t bsnl
15898 s/["\\]/\\&/g
15899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15900 D["\1"]=" \3"/p
15901 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15902 d
15903 :bsnl
15904 s/["\\]/\\&/g
15905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15906 D["\1"]=" \3\\\\\\n"\\/p
15907 t cont
15908 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15909 t cont
15910 d
15911 :cont
15912 n
15913 s/.\{148\}/&'"$ac_delim"'/g
15914 t clear
15915 :clear
15916 s/\\$//
15917 t bsnlc
15918 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15919 d
15920 :bsnlc
15921 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15922 b cont
15923 ' <confdefs.h | sed '
15924 s/'"$ac_delim"'/"\\\
15925 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15926
15927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15928   for (key in D) D_is_set[key] = 1
15929   FS = "\a"
15930 }
15931 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15932   line = \$ 0
15933   split(line, arg, " ")
15934   if (arg[1] == "#") {
15935     defundef = arg[2]
15936     mac1 = arg[3]
15937   } else {
15938     defundef = substr(arg[1], 2)
15939     mac1 = arg[2]
15940   }
15941   split(mac1, mac2, "(") #)
15942   macro = mac2[1]
15943   prefix = substr(line, 1, index(line, defundef) - 1)
15944   if (D_is_set[macro]) {
15945     # Preserve the white space surrounding the "#".
15946     print prefix "define", macro P[macro] D[macro]
15947     next
15948   } else {
15949     # Replace #undef with comments.  This is necessary, for example,
15950     # in the case of _POSIX_SOURCE, which is predefined and required
15951     # on some systems where configure will not decide to define it.
15952     if (defundef == "undef") {
15953       print "/*", prefix defundef, macro, "*/"
15954       next
15955     }
15956   }
15957 }
15958 { print }
15959 _ACAWK
15960 _ACEOF
15961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15963 fi # test -n "$CONFIG_HEADERS"
15964
15965
15966 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15967 shift
15968 for ac_tag
15969 do
15970   case $ac_tag in
15971   :[FHLC]) ac_mode=$ac_tag; continue;;
15972   esac
15973   case $ac_mode$ac_tag in
15974   :[FHL]*:*);;
15975   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15976   :[FH]-) ac_tag=-:-;;
15977   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15978   esac
15979   ac_save_IFS=$IFS
15980   IFS=:
15981   set x $ac_tag
15982   IFS=$ac_save_IFS
15983   shift
15984   ac_file=$1
15985   shift
15986
15987   case $ac_mode in
15988   :L) ac_source=$1;;
15989   :[FH])
15990     ac_file_inputs=
15991     for ac_f
15992     do
15993       case $ac_f in
15994       -) ac_f="$ac_tmp/stdin";;
15995       *) # Look for the file first in the build tree, then in the source tree
15996          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15997          # because $ac_f cannot contain `:'.
15998          test -f "$ac_f" ||
15999            case $ac_f in
16000            [\\/$]*) false;;
16001            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16002            esac ||
16003            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16004       esac
16005       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16006       as_fn_append ac_file_inputs " '$ac_f'"
16007     done
16008
16009     # Let's still pretend it is `configure' which instantiates (i.e., don't
16010     # use $as_me), people would be surprised to read:
16011     #    /* config.h.  Generated by config.status.  */
16012     configure_input='Generated from '`
16013           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16014         `' by configure.'
16015     if test x"$ac_file" != x-; then
16016       configure_input="$ac_file.  $configure_input"
16017       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16018 $as_echo "$as_me: creating $ac_file" >&6;}
16019     fi
16020     # Neutralize special characters interpreted by sed in replacement strings.
16021     case $configure_input in #(
16022     *\&* | *\|* | *\\* )
16023        ac_sed_conf_input=`$as_echo "$configure_input" |
16024        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16025     *) ac_sed_conf_input=$configure_input;;
16026     esac
16027
16028     case $ac_tag in
16029     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16030       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16031     esac
16032     ;;
16033   esac
16034
16035   ac_dir=`$as_dirname -- "$ac_file" ||
16036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16037          X"$ac_file" : 'X\(//\)[^/]' \| \
16038          X"$ac_file" : 'X\(//\)$' \| \
16039          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16040 $as_echo X"$ac_file" |
16041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16042             s//\1/
16043             q
16044           }
16045           /^X\(\/\/\)[^/].*/{
16046             s//\1/
16047             q
16048           }
16049           /^X\(\/\/\)$/{
16050             s//\1/
16051             q
16052           }
16053           /^X\(\/\).*/{
16054             s//\1/
16055             q
16056           }
16057           s/.*/./; q'`
16058   as_dir="$ac_dir"; as_fn_mkdir_p
16059   ac_builddir=.
16060
16061 case "$ac_dir" in
16062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16063 *)
16064   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16065   # A ".." for each directory in $ac_dir_suffix.
16066   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16067   case $ac_top_builddir_sub in
16068   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16069   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16070   esac ;;
16071 esac
16072 ac_abs_top_builddir=$ac_pwd
16073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16074 # for backward compatibility:
16075 ac_top_builddir=$ac_top_build_prefix
16076
16077 case $srcdir in
16078   .)  # We are building in place.
16079     ac_srcdir=.
16080     ac_top_srcdir=$ac_top_builddir_sub
16081     ac_abs_top_srcdir=$ac_pwd ;;
16082   [\\/]* | ?:[\\/]* )  # Absolute name.
16083     ac_srcdir=$srcdir$ac_dir_suffix;
16084     ac_top_srcdir=$srcdir
16085     ac_abs_top_srcdir=$srcdir ;;
16086   *) # Relative name.
16087     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16088     ac_top_srcdir=$ac_top_build_prefix$srcdir
16089     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16090 esac
16091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16092
16093
16094   case $ac_mode in
16095   :F)
16096   #
16097   # CONFIG_FILE
16098   #
16099
16100   case $INSTALL in
16101   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16102   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16103   esac
16104   ac_MKDIR_P=$MKDIR_P
16105   case $MKDIR_P in
16106   [\\/$]* | ?:[\\/]* ) ;;
16107   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16108   esac
16109 _ACEOF
16110
16111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112 # If the template does not know about datarootdir, expand it.
16113 # FIXME: This hack should be removed a few years after 2.60.
16114 ac_datarootdir_hack=; ac_datarootdir_seen=
16115 ac_sed_dataroot='
16116 /datarootdir/ {
16117   p
16118   q
16119 }
16120 /@datadir@/p
16121 /@docdir@/p
16122 /@infodir@/p
16123 /@localedir@/p
16124 /@mandir@/p'
16125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16126 *datarootdir*) ac_datarootdir_seen=yes;;
16127 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16130 _ACEOF
16131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16132   ac_datarootdir_hack='
16133   s&@datadir@&$datadir&g
16134   s&@docdir@&$docdir&g
16135   s&@infodir@&$infodir&g
16136   s&@localedir@&$localedir&g
16137   s&@mandir@&$mandir&g
16138   s&\\\${datarootdir}&$datarootdir&g' ;;
16139 esac
16140 _ACEOF
16141
16142 # Neutralize VPATH when `$srcdir' = `.'.
16143 # Shell code in configure.ac might set extrasub.
16144 # FIXME: do we really want to maintain this feature?
16145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16146 ac_sed_extra="$ac_vpsub
16147 $extrasub
16148 _ACEOF
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150 :t
16151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16152 s|@configure_input@|$ac_sed_conf_input|;t t
16153 s&@top_builddir@&$ac_top_builddir_sub&;t t
16154 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16155 s&@srcdir@&$ac_srcdir&;t t
16156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16157 s&@top_srcdir@&$ac_top_srcdir&;t t
16158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16159 s&@builddir@&$ac_builddir&;t t
16160 s&@abs_builddir@&$ac_abs_builddir&;t t
16161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16162 s&@INSTALL@&$ac_INSTALL&;t t
16163 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16164 $ac_datarootdir_hack
16165 "
16166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16167   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16168
16169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16170   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16171   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16172       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16174 which seems to be undefined.  Please make sure it is defined" >&5
16175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16176 which seems to be undefined.  Please make sure it is defined" >&2;}
16177
16178   rm -f "$ac_tmp/stdin"
16179   case $ac_file in
16180   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16181   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16182   esac \
16183   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16184  ;;
16185   :H)
16186   #
16187   # CONFIG_HEADER
16188   #
16189   if test x"$ac_file" != x-; then
16190     {
16191       $as_echo "/* $configure_input  */" \
16192       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16193     } >"$ac_tmp/config.h" \
16194       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16195     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16196       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16198     else
16199       rm -f "$ac_file"
16200       mv "$ac_tmp/config.h" "$ac_file" \
16201         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16202     fi
16203   else
16204     $as_echo "/* $configure_input  */" \
16205       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16206       || as_fn_error $? "could not create -" "$LINENO" 5
16207   fi
16208 # Compute "$ac_file"'s index in $config_headers.
16209 _am_arg="$ac_file"
16210 _am_stamp_count=1
16211 for _am_header in $config_headers :; do
16212   case $_am_header in
16213     $_am_arg | $_am_arg:* )
16214       break ;;
16215     * )
16216       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16217   esac
16218 done
16219 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16220 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16221          X"$_am_arg" : 'X\(//\)[^/]' \| \
16222          X"$_am_arg" : 'X\(//\)$' \| \
16223          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16224 $as_echo X"$_am_arg" |
16225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16226             s//\1/
16227             q
16228           }
16229           /^X\(\/\/\)[^/].*/{
16230             s//\1/
16231             q
16232           }
16233           /^X\(\/\/\)$/{
16234             s//\1/
16235             q
16236           }
16237           /^X\(\/\).*/{
16238             s//\1/
16239             q
16240           }
16241           s/.*/./; q'`/stamp-h$_am_stamp_count
16242  ;;
16243
16244   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16245 $as_echo "$as_me: executing $ac_file commands" >&6;}
16246  ;;
16247   esac
16248
16249
16250   case $ac_file$ac_mode in
16251     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16252   # Older Autoconf quotes --file arguments for eval, but not when files
16253   # are listed without --file.  Let's play safe and only enable the eval
16254   # if we detect the quoting.
16255   # TODO: see whether this extra hack can be removed once we start
16256   # requiring Autoconf 2.70 or later.
16257   case $CONFIG_FILES in #(
16258   *\'*) :
16259     eval set x "$CONFIG_FILES" ;; #(
16260   *) :
16261     set x $CONFIG_FILES ;; #(
16262   *) :
16263      ;;
16264 esac
16265   shift
16266   # Used to flag and report bootstrapping failures.
16267   am_rc=0
16268   for am_mf
16269   do
16270     # Strip MF so we end up with the name of the file.
16271     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16272     # Check whether this is an Automake generated Makefile which includes
16273     # dependency-tracking related rules and includes.
16274     # Grep'ing the whole file directly is not great: AIX grep has a line
16275     # limit of 2048, but all sed's we know have understand at least 4000.
16276     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16277       || continue
16278     am_dirpart=`$as_dirname -- "$am_mf" ||
16279 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16280          X"$am_mf" : 'X\(//\)[^/]' \| \
16281          X"$am_mf" : 'X\(//\)$' \| \
16282          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16283 $as_echo X"$am_mf" |
16284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16285             s//\1/
16286             q
16287           }
16288           /^X\(\/\/\)[^/].*/{
16289             s//\1/
16290             q
16291           }
16292           /^X\(\/\/\)$/{
16293             s//\1/
16294             q
16295           }
16296           /^X\(\/\).*/{
16297             s//\1/
16298             q
16299           }
16300           s/.*/./; q'`
16301     am_filepart=`$as_basename -- "$am_mf" ||
16302 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16303          X"$am_mf" : 'X\(//\)$' \| \
16304          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16305 $as_echo X/"$am_mf" |
16306     sed '/^.*\/\([^/][^/]*\)\/*$/{
16307             s//\1/
16308             q
16309           }
16310           /^X\/\(\/\/\)$/{
16311             s//\1/
16312             q
16313           }
16314           /^X\/\(\/\).*/{
16315             s//\1/
16316             q
16317           }
16318           s/.*/./; q'`
16319     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16320       && sed -e '/# am--include-marker/d' "$am_filepart" \
16321         | $MAKE -f - am--depfiles" >&5
16322    (cd "$am_dirpart" \
16323       && sed -e '/# am--include-marker/d' "$am_filepart" \
16324         | $MAKE -f - am--depfiles) >&5 2>&5
16325    ac_status=$?
16326    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327    (exit $ac_status); } || am_rc=$?
16328   done
16329   if test $am_rc -ne 0; then
16330     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16332 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16333     for automatic dependency tracking.  Try re-running configure with the
16334     '--disable-dependency-tracking' option to at least be able to build
16335     the package (albeit without support for automatic dependency tracking).
16336 See \`config.log' for more details" "$LINENO" 5; }
16337   fi
16338   { am_dirpart=; unset am_dirpart;}
16339   { am_filepart=; unset am_filepart;}
16340   { am_mf=; unset am_mf;}
16341   { am_rc=; unset am_rc;}
16342   rm -f conftest-deps.mk
16343 }
16344  ;;
16345     "libtool":C)
16346
16347     # See if we are running on zsh, and set the options that allow our
16348     # commands through without removal of \ escapes.
16349     if test -n "${ZSH_VERSION+set}"; then
16350       setopt NO_GLOB_SUBST
16351     fi
16352
16353     cfgfile=${ofile}T
16354     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16355     $RM "$cfgfile"
16356
16357     cat <<_LT_EOF >> "$cfgfile"
16358 #! $SHELL
16359 # Generated automatically by $as_me ($PACKAGE) $VERSION
16360 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16361 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16362
16363 # Provide generalized library-building support services.
16364 # Written by Gordon Matzigkeit, 1996
16365
16366 # Copyright (C) 2014 Free Software Foundation, Inc.
16367 # This is free software; see the source for copying conditions.  There is NO
16368 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16369
16370 # GNU Libtool is free software; you can redistribute it and/or modify
16371 # it under the terms of the GNU General Public License as published by
16372 # the Free Software Foundation; either version 2 of of the License, or
16373 # (at your option) any later version.
16374 #
16375 # As a special exception to the GNU General Public License, if you
16376 # distribute this file as part of a program or library that is built
16377 # using GNU Libtool, you may include this file under the  same
16378 # distribution terms that you use for the rest of that program.
16379 #
16380 # GNU Libtool is distributed in the hope that it will be useful, but
16381 # WITHOUT ANY WARRANTY; without even the implied warranty of
16382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16383 # GNU General Public License for more details.
16384 #
16385 # You should have received a copy of the GNU General Public License
16386 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16387
16388
16389 # The names of the tagged configurations supported by this script.
16390 available_tags=''
16391
16392 # Configured defaults for sys_lib_dlsearch_path munging.
16393 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16394
16395 # ### BEGIN LIBTOOL CONFIG
16396
16397 # Which release of libtool.m4 was used?
16398 macro_version=$macro_version
16399 macro_revision=$macro_revision
16400
16401 # Whether or not to build static libraries.
16402 build_old_libs=$enable_static
16403
16404 # Whether or not to build shared libraries.
16405 build_libtool_libs=$enable_shared
16406
16407 # What type of objects to build.
16408 pic_mode=$pic_mode
16409
16410 # Whether or not to optimize for fast installation.
16411 fast_install=$enable_fast_install
16412
16413 # Shared archive member basename,for filename based shared library versioning on AIX.
16414 shared_archive_member_spec=$shared_archive_member_spec
16415
16416 # Shell to use when invoking shell scripts.
16417 SHELL=$lt_SHELL
16418
16419 # An echo program that protects backslashes.
16420 ECHO=$lt_ECHO
16421
16422 # The PATH separator for the build system.
16423 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16424
16425 # The host system.
16426 host_alias=$host_alias
16427 host=$host
16428 host_os=$host_os
16429
16430 # The build system.
16431 build_alias=$build_alias
16432 build=$build
16433 build_os=$build_os
16434
16435 # A sed program that does not truncate output.
16436 SED=$lt_SED
16437
16438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16439 Xsed="\$SED -e 1s/^X//"
16440
16441 # A grep program that handles long lines.
16442 GREP=$lt_GREP
16443
16444 # An ERE matcher.
16445 EGREP=$lt_EGREP
16446
16447 # A literal string matcher.
16448 FGREP=$lt_FGREP
16449
16450 # A BSD- or MS-compatible name lister.
16451 NM=$lt_NM
16452
16453 # Whether we need soft or hard links.
16454 LN_S=$lt_LN_S
16455
16456 # What is the maximum length of a command?
16457 max_cmd_len=$max_cmd_len
16458
16459 # Object file suffix (normally "o").
16460 objext=$ac_objext
16461
16462 # Executable file suffix (normally "").
16463 exeext=$exeext
16464
16465 # whether the shell understands "unset".
16466 lt_unset=$lt_unset
16467
16468 # turn spaces into newlines.
16469 SP2NL=$lt_lt_SP2NL
16470
16471 # turn newlines into spaces.
16472 NL2SP=$lt_lt_NL2SP
16473
16474 # convert \$build file names to \$host format.
16475 to_host_file_cmd=$lt_cv_to_host_file_cmd
16476
16477 # convert \$build files to toolchain format.
16478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16479
16480 # An object symbol dumper.
16481 OBJDUMP=$lt_OBJDUMP
16482
16483 # Method to check whether dependent libraries are shared objects.
16484 deplibs_check_method=$lt_deplibs_check_method
16485
16486 # Command to use when deplibs_check_method = "file_magic".
16487 file_magic_cmd=$lt_file_magic_cmd
16488
16489 # How to find potential files when deplibs_check_method = "file_magic".
16490 file_magic_glob=$lt_file_magic_glob
16491
16492 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16493 want_nocaseglob=$lt_want_nocaseglob
16494
16495 # DLL creation program.
16496 DLLTOOL=$lt_DLLTOOL
16497
16498 # Command to associate shared and link libraries.
16499 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16500
16501 # The archiver.
16502 AR=$lt_AR
16503
16504 # Flags to create an archive.
16505 AR_FLAGS=$lt_AR_FLAGS
16506
16507 # How to feed a file listing to the archiver.
16508 archiver_list_spec=$lt_archiver_list_spec
16509
16510 # A symbol stripping program.
16511 STRIP=$lt_STRIP
16512
16513 # Commands used to install an old-style archive.
16514 RANLIB=$lt_RANLIB
16515 old_postinstall_cmds=$lt_old_postinstall_cmds
16516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16517
16518 # Whether to use a lock for old archive extraction.
16519 lock_old_archive_extraction=$lock_old_archive_extraction
16520
16521 # A C compiler.
16522 LTCC=$lt_CC
16523
16524 # LTCC compiler flags.
16525 LTCFLAGS=$lt_CFLAGS
16526
16527 # Take the output of nm and produce a listing of raw symbols and C names.
16528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16529
16530 # Transform the output of nm in a proper C declaration.
16531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16532
16533 # Transform the output of nm into a list of symbols to manually relocate.
16534 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16535
16536 # Transform the output of nm in a C name address pair.
16537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16538
16539 # Transform the output of nm in a C name address pair when lib prefix is needed.
16540 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16541
16542 # The name lister interface.
16543 nm_interface=$lt_lt_cv_nm_interface
16544
16545 # Specify filename containing input files for \$NM.
16546 nm_file_list_spec=$lt_nm_file_list_spec
16547
16548 # The root where to search for dependent libraries,and where our libraries should be installed.
16549 lt_sysroot=$lt_sysroot
16550
16551 # Command to truncate a binary pipe.
16552 lt_truncate_bin=$lt_lt_cv_truncate_bin
16553
16554 # The name of the directory that contains temporary libtool files.
16555 objdir=$objdir
16556
16557 # Used to examine libraries when file_magic_cmd begins with "file".
16558 MAGIC_CMD=$MAGIC_CMD
16559
16560 # Must we lock files when doing compilation?
16561 need_locks=$lt_need_locks
16562
16563 # Manifest tool.
16564 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16565
16566 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16567 DSYMUTIL=$lt_DSYMUTIL
16568
16569 # Tool to change global to local symbols on Mac OS X.
16570 NMEDIT=$lt_NMEDIT
16571
16572 # Tool to manipulate fat objects and archives on Mac OS X.
16573 LIPO=$lt_LIPO
16574
16575 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16576 OTOOL=$lt_OTOOL
16577
16578 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16579 OTOOL64=$lt_OTOOL64
16580
16581 # Old archive suffix (normally "a").
16582 libext=$libext
16583
16584 # Shared library suffix (normally ".so").
16585 shrext_cmds=$lt_shrext_cmds
16586
16587 # The commands to extract the exported symbol list from a shared archive.
16588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16589
16590 # Variables whose values should be saved in libtool wrapper scripts and
16591 # restored at link time.
16592 variables_saved_for_relink=$lt_variables_saved_for_relink
16593
16594 # Do we need the "lib" prefix for modules?
16595 need_lib_prefix=$need_lib_prefix
16596
16597 # Do we need a version for libraries?
16598 need_version=$need_version
16599
16600 # Library versioning type.
16601 version_type=$version_type
16602
16603 # Shared library runtime path variable.
16604 runpath_var=$runpath_var
16605
16606 # Shared library path variable.
16607 shlibpath_var=$shlibpath_var
16608
16609 # Is shlibpath searched before the hard-coded library search path?
16610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16611
16612 # Format of library name prefix.
16613 libname_spec=$lt_libname_spec
16614
16615 # List of archive names.  First name is the real one, the rest are links.
16616 # The last name is the one that the linker finds with -lNAME
16617 library_names_spec=$lt_library_names_spec
16618
16619 # The coded name of the library, if different from the real name.
16620 soname_spec=$lt_soname_spec
16621
16622 # Permission mode override for installation of shared libraries.
16623 install_override_mode=$lt_install_override_mode
16624
16625 # Command to use after installation of a shared archive.
16626 postinstall_cmds=$lt_postinstall_cmds
16627
16628 # Command to use after uninstallation of a shared archive.
16629 postuninstall_cmds=$lt_postuninstall_cmds
16630
16631 # Commands used to finish a libtool library installation in a directory.
16632 finish_cmds=$lt_finish_cmds
16633
16634 # As "finish_cmds", except a single script fragment to be evaled but
16635 # not shown.
16636 finish_eval=$lt_finish_eval
16637
16638 # Whether we should hardcode library paths into libraries.
16639 hardcode_into_libs=$hardcode_into_libs
16640
16641 # Compile-time system search path for libraries.
16642 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16643
16644 # Detected run-time system search path for libraries.
16645 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16646
16647 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16648 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16649
16650 # Whether dlopen is supported.
16651 dlopen_support=$enable_dlopen
16652
16653 # Whether dlopen of programs is supported.
16654 dlopen_self=$enable_dlopen_self
16655
16656 # Whether dlopen of statically linked programs is supported.
16657 dlopen_self_static=$enable_dlopen_self_static
16658
16659 # Commands to strip libraries.
16660 old_striplib=$lt_old_striplib
16661 striplib=$lt_striplib
16662
16663
16664 # The linker used to build libraries.
16665 LD=$lt_LD
16666
16667 # How to create reloadable object files.
16668 reload_flag=$lt_reload_flag
16669 reload_cmds=$lt_reload_cmds
16670
16671 # Commands used to build an old-style archive.
16672 old_archive_cmds=$lt_old_archive_cmds
16673
16674 # A language specific compiler.
16675 CC=$lt_compiler
16676
16677 # Is the compiler the GNU compiler?
16678 with_gcc=$GCC
16679
16680 # Compiler flag to turn off builtin functions.
16681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16682
16683 # Additional compiler flags for building library objects.
16684 pic_flag=$lt_lt_prog_compiler_pic
16685
16686 # How to pass a linker flag through the compiler.
16687 wl=$lt_lt_prog_compiler_wl
16688
16689 # Compiler flag to prevent dynamic linking.
16690 link_static_flag=$lt_lt_prog_compiler_static
16691
16692 # Does compiler simultaneously support -c and -o options?
16693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16694
16695 # Whether or not to add -lc for building shared libraries.
16696 build_libtool_need_lc=$archive_cmds_need_lc
16697
16698 # Whether or not to disallow shared libs when runtime libs are static.
16699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16700
16701 # Compiler flag to allow reflexive dlopens.
16702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16703
16704 # Compiler flag to generate shared objects directly from archives.
16705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16706
16707 # Whether the compiler copes with passing no objects directly.
16708 compiler_needs_object=$lt_compiler_needs_object
16709
16710 # Create an old-style archive from a shared archive.
16711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16712
16713 # Create a temporary old-style archive to link instead of a shared archive.
16714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16715
16716 # Commands used to build a shared archive.
16717 archive_cmds=$lt_archive_cmds
16718 archive_expsym_cmds=$lt_archive_expsym_cmds
16719
16720 # Commands used to build a loadable module if different from building
16721 # a shared archive.
16722 module_cmds=$lt_module_cmds
16723 module_expsym_cmds=$lt_module_expsym_cmds
16724
16725 # Whether we are building with GNU ld or not.
16726 with_gnu_ld=$lt_with_gnu_ld
16727
16728 # Flag that allows shared libraries with undefined symbols to be built.
16729 allow_undefined_flag=$lt_allow_undefined_flag
16730
16731 # Flag that enforces no undefined symbols.
16732 no_undefined_flag=$lt_no_undefined_flag
16733
16734 # Flag to hardcode \$libdir into a binary during linking.
16735 # This must work even if \$libdir does not exist
16736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16737
16738 # Whether we need a single "-rpath" flag with a separated argument.
16739 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16740
16741 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16742 # DIR into the resulting binary.
16743 hardcode_direct=$hardcode_direct
16744
16745 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16746 # DIR into the resulting binary and the resulting library dependency is
16747 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16748 # library is relocated.
16749 hardcode_direct_absolute=$hardcode_direct_absolute
16750
16751 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16752 # into the resulting binary.
16753 hardcode_minus_L=$hardcode_minus_L
16754
16755 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16756 # into the resulting binary.
16757 hardcode_shlibpath_var=$hardcode_shlibpath_var
16758
16759 # Set to "yes" if building a shared library automatically hardcodes DIR
16760 # into the library and all subsequent libraries and executables linked
16761 # against it.
16762 hardcode_automatic=$hardcode_automatic
16763
16764 # Set to yes if linker adds runtime paths of dependent libraries
16765 # to runtime path list.
16766 inherit_rpath=$inherit_rpath
16767
16768 # Whether libtool must link a program against all its dependency libraries.
16769 link_all_deplibs=$link_all_deplibs
16770
16771 # Set to "yes" if exported symbols are required.
16772 always_export_symbols=$always_export_symbols
16773
16774 # The commands to list exported symbols.
16775 export_symbols_cmds=$lt_export_symbols_cmds
16776
16777 # Symbols that should not be listed in the preloaded symbols.
16778 exclude_expsyms=$lt_exclude_expsyms
16779
16780 # Symbols that must always be exported.
16781 include_expsyms=$lt_include_expsyms
16782
16783 # Commands necessary for linking programs (against libraries) with templates.
16784 prelink_cmds=$lt_prelink_cmds
16785
16786 # Commands necessary for finishing linking programs.
16787 postlink_cmds=$lt_postlink_cmds
16788
16789 # Specify filename containing input files.
16790 file_list_spec=$lt_file_list_spec
16791
16792 # How to hardcode a shared library path into an executable.
16793 hardcode_action=$hardcode_action
16794
16795 # ### END LIBTOOL CONFIG
16796
16797 _LT_EOF
16798
16799     cat <<'_LT_EOF' >> "$cfgfile"
16800
16801 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16802
16803 # func_munge_path_list VARIABLE PATH
16804 # -----------------------------------
16805 # VARIABLE is name of variable containing _space_ separated list of
16806 # directories to be munged by the contents of PATH, which is string
16807 # having a format:
16808 # "DIR[:DIR]:"
16809 #       string "DIR[ DIR]" will be prepended to VARIABLE
16810 # ":DIR[:DIR]"
16811 #       string "DIR[ DIR]" will be appended to VARIABLE
16812 # "DIRP[:DIRP]::[DIRA:]DIRA"
16813 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16814 #       "DIRA[ DIRA]" will be appended to VARIABLE
16815 # "DIR[:DIR]"
16816 #       VARIABLE will be replaced by "DIR[ DIR]"
16817 func_munge_path_list ()
16818 {
16819     case x$2 in
16820     x)
16821         ;;
16822     *:)
16823         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16824         ;;
16825     x:*)
16826         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16827         ;;
16828     *::*)
16829         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16830         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16831         ;;
16832     *)
16833         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16834         ;;
16835     esac
16836 }
16837
16838
16839 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16840 func_cc_basename ()
16841 {
16842     for cc_temp in $*""; do
16843       case $cc_temp in
16844         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16845         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16846         \-*) ;;
16847         *) break;;
16848       esac
16849     done
16850     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16851 }
16852
16853
16854 # ### END FUNCTIONS SHARED WITH CONFIGURE
16855
16856 _LT_EOF
16857
16858   case $host_os in
16859   aix3*)
16860     cat <<\_LT_EOF >> "$cfgfile"
16861 # AIX sometimes has problems with the GCC collect2 program.  For some
16862 # reason, if we set the COLLECT_NAMES environment variable, the problems
16863 # vanish in a puff of smoke.
16864 if test set != "${COLLECT_NAMES+set}"; then
16865   COLLECT_NAMES=
16866   export COLLECT_NAMES
16867 fi
16868 _LT_EOF
16869     ;;
16870   esac
16871
16872
16873 ltmain=$ac_aux_dir/ltmain.sh
16874
16875
16876   # We use sed instead of cat because bash on DJGPP gets confused if
16877   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16878   # text mode, it properly converts lines to CR/LF.  This bash problem
16879   # is reportedly fixed, but why not run on old versions too?
16880   sed '$q' "$ltmain" >> "$cfgfile" \
16881      || (rm -f "$cfgfile"; exit 1)
16882
16883    mv -f "$cfgfile" "$ofile" ||
16884     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16885   chmod +x "$ofile"
16886
16887  ;;
16888
16889   esac
16890 done # for ac_tag
16891
16892
16893 as_fn_exit 0
16894 _ACEOF
16895 ac_clean_files=$ac_clean_files_save
16896
16897 test $ac_write_fail = 0 ||
16898   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16899
16900
16901 # configure is writing to config.log, and then calls config.status.
16902 # config.status does its own redirection, appending to config.log.
16903 # Unfortunately, on DOS this fails, as config.log is still kept open
16904 # by configure, so config.status won't be able to write to it; its
16905 # output is simply discarded.  So we exec the FD to /dev/null,
16906 # effectively closing config.log, so it can be properly (re)opened and
16907 # appended to by config.status.  When coming back to configure, we
16908 # need to make the FD available again.
16909 if test "$no_create" != yes; then
16910   ac_cs_success=:
16911   ac_config_status_args=
16912   test "$silent" = yes &&
16913     ac_config_status_args="$ac_config_status_args --quiet"
16914   exec 5>/dev/null
16915   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16916   exec 5>>config.log
16917   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16918   # would make configure fail if this is the last instruction.
16919   $ac_cs_success || as_fn_exit 1
16920 fi
16921 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16922   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16923 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16924 fi
16925