]> git.jsancho.org Git - gacela.git/blob - configure
Improved cache system for resources and more things.
[gacela.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gacela 0.5.
4 #
5 # Report bugs to <jsf@jsancho.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and jsf@jsancho.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='gacela'
572 PACKAGE_TARNAME='gacela'
573 PACKAGE_VERSION='0.5'
574 PACKAGE_STRING='gacela 0.5'
575 PACKAGE_BUGREPORT='jsf@jsancho.org'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_unique_file="src/sdl.c"
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 FTGL_LIBS
620 GL_LIBS
621 SDL_LIBS
622 GUILE_LDFLAGS
623 GUILE_CFLAGS
624 GUILE_LTLIBS
625 GUILE_LIBS
626 GUILE_TOOLS
627 GUILE_CONFIG
628 GUILE
629 CPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 RANLIB
637 ac_ct_AR
638 AR
639 DLLTOOL
640 OBJDUMP
641 LN_S
642 NM
643 ac_ct_DUMPBIN
644 DUMPBIN
645 LD
646 FGREP
647 EGREP
648 GREP
649 SED
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_shared
741 enable_static
742 with_pic
743 enable_fast_install
744 enable_dependency_tracking
745 with_gnu_ld
746 with_sysroot
747 enable_libtool_lock
748 enable_rpath
749 '
750       ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CPP'
759
760
761 # Initialize some variables set by options.
762 ac_init_help=
763 ac_init_version=false
764 ac_unrecognized_opts=
765 ac_unrecognized_sep=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
782
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813   # If the previous option needs an argument, assign it.
814   if test -n "$ac_prev"; then
815     eval $ac_prev=\$ac_option
816     ac_prev=
817     continue
818   fi
819
820   case $ac_option in
821   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822   *=)   ac_optarg= ;;
823   *)    ac_optarg=yes ;;
824   esac
825
826   # Accept the important Cygnus configure options, so we can diagnose typos.
827
828   case $ac_dashdash$ac_option in
829   --)
830     ac_dashdash=yes ;;
831
832   -bindir | --bindir | --bindi | --bind | --bin | --bi)
833     ac_prev=bindir ;;
834   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835     bindir=$ac_optarg ;;
836
837   -build | --build | --buil | --bui | --bu)
838     ac_prev=build_alias ;;
839   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840     build_alias=$ac_optarg ;;
841
842   -cache-file | --cache-file | --cache-fil | --cache-fi \
843   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844     ac_prev=cache_file ;;
845   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847     cache_file=$ac_optarg ;;
848
849   --config-cache | -C)
850     cache_file=config.cache ;;
851
852   -datadir | --datadir | --datadi | --datad)
853     ac_prev=datadir ;;
854   -datadir=* | --datadir=* | --datadi=* | --datad=*)
855     datadir=$ac_optarg ;;
856
857   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858   | --dataroo | --dataro | --datar)
859     ac_prev=datarootdir ;;
860   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862     datarootdir=$ac_optarg ;;
863
864   -disable-* | --disable-*)
865     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866     # Reject names that are not valid shell variable names.
867     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868       as_fn_error $? "invalid feature name: $ac_useropt"
869     ac_useropt_orig=$ac_useropt
870     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871     case $ac_user_opts in
872       *"
873 "enable_$ac_useropt"
874 "*) ;;
875       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876          ac_unrecognized_sep=', ';;
877     esac
878     eval enable_$ac_useropt=no ;;
879
880   -docdir | --docdir | --docdi | --doc | --do)
881     ac_prev=docdir ;;
882   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883     docdir=$ac_optarg ;;
884
885   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886     ac_prev=dvidir ;;
887   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888     dvidir=$ac_optarg ;;
889
890   -enable-* | --enable-*)
891     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894       as_fn_error $? "invalid feature name: $ac_useropt"
895     ac_useropt_orig=$ac_useropt
896     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897     case $ac_user_opts in
898       *"
899 "enable_$ac_useropt"
900 "*) ;;
901       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902          ac_unrecognized_sep=', ';;
903     esac
904     eval enable_$ac_useropt=\$ac_optarg ;;
905
906   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908   | --exec | --exe | --ex)
909     ac_prev=exec_prefix ;;
910   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912   | --exec=* | --exe=* | --ex=*)
913     exec_prefix=$ac_optarg ;;
914
915   -gas | --gas | --ga | --g)
916     # Obsolete; use --with-gas.
917     with_gas=yes ;;
918
919   -help | --help | --hel | --he | -h)
920     ac_init_help=long ;;
921   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922     ac_init_help=recursive ;;
923   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924     ac_init_help=short ;;
925
926   -host | --host | --hos | --ho)
927     ac_prev=host_alias ;;
928   -host=* | --host=* | --hos=* | --ho=*)
929     host_alias=$ac_optarg ;;
930
931   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932     ac_prev=htmldir ;;
933   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934   | --ht=*)
935     htmldir=$ac_optarg ;;
936
937   -includedir | --includedir | --includedi | --included | --include \
938   | --includ | --inclu | --incl | --inc)
939     ac_prev=includedir ;;
940   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941   | --includ=* | --inclu=* | --incl=* | --inc=*)
942     includedir=$ac_optarg ;;
943
944   -infodir | --infodir | --infodi | --infod | --info | --inf)
945     ac_prev=infodir ;;
946   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947     infodir=$ac_optarg ;;
948
949   -libdir | --libdir | --libdi | --libd)
950     ac_prev=libdir ;;
951   -libdir=* | --libdir=* | --libdi=* | --libd=*)
952     libdir=$ac_optarg ;;
953
954   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955   | --libexe | --libex | --libe)
956     ac_prev=libexecdir ;;
957   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958   | --libexe=* | --libex=* | --libe=*)
959     libexecdir=$ac_optarg ;;
960
961   -localedir | --localedir | --localedi | --localed | --locale)
962     ac_prev=localedir ;;
963   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964     localedir=$ac_optarg ;;
965
966   -localstatedir | --localstatedir | --localstatedi | --localstated \
967   | --localstate | --localstat | --localsta | --localst | --locals)
968     ac_prev=localstatedir ;;
969   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971     localstatedir=$ac_optarg ;;
972
973   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974     ac_prev=mandir ;;
975   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976     mandir=$ac_optarg ;;
977
978   -nfp | --nfp | --nf)
979     # Obsolete; use --without-fp.
980     with_fp=no ;;
981
982   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983   | --no-cr | --no-c | -n)
984     no_create=yes ;;
985
986   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988     no_recursion=yes ;;
989
990   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992   | --oldin | --oldi | --old | --ol | --o)
993     ac_prev=oldincludedir ;;
994   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997     oldincludedir=$ac_optarg ;;
998
999   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000     ac_prev=prefix ;;
1001   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002     prefix=$ac_optarg ;;
1003
1004   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005   | --program-pre | --program-pr | --program-p)
1006     ac_prev=program_prefix ;;
1007   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009     program_prefix=$ac_optarg ;;
1010
1011   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012   | --program-suf | --program-su | --program-s)
1013     ac_prev=program_suffix ;;
1014   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016     program_suffix=$ac_optarg ;;
1017
1018   -program-transform-name | --program-transform-name \
1019   | --program-transform-nam | --program-transform-na \
1020   | --program-transform-n | --program-transform- \
1021   | --program-transform | --program-transfor \
1022   | --program-transfo | --program-transf \
1023   | --program-trans | --program-tran \
1024   | --progr-tra | --program-tr | --program-t)
1025     ac_prev=program_transform_name ;;
1026   -program-transform-name=* | --program-transform-name=* \
1027   | --program-transform-nam=* | --program-transform-na=* \
1028   | --program-transform-n=* | --program-transform-=* \
1029   | --program-transform=* | --program-transfor=* \
1030   | --program-transfo=* | --program-transf=* \
1031   | --program-trans=* | --program-tran=* \
1032   | --progr-tra=* | --program-tr=* | --program-t=*)
1033     program_transform_name=$ac_optarg ;;
1034
1035   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036     ac_prev=pdfdir ;;
1037   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038     pdfdir=$ac_optarg ;;
1039
1040   -psdir | --psdir | --psdi | --psd | --ps)
1041     ac_prev=psdir ;;
1042   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043     psdir=$ac_optarg ;;
1044
1045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046   | -silent | --silent | --silen | --sile | --sil)
1047     silent=yes ;;
1048
1049   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050     ac_prev=sbindir ;;
1051   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052   | --sbi=* | --sb=*)
1053     sbindir=$ac_optarg ;;
1054
1055   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057   | --sharedst | --shareds | --shared | --share | --shar \
1058   | --sha | --sh)
1059     ac_prev=sharedstatedir ;;
1060   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063   | --sha=* | --sh=*)
1064     sharedstatedir=$ac_optarg ;;
1065
1066   -site | --site | --sit)
1067     ac_prev=site ;;
1068   -site=* | --site=* | --sit=*)
1069     site=$ac_optarg ;;
1070
1071   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072     ac_prev=srcdir ;;
1073   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074     srcdir=$ac_optarg ;;
1075
1076   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077   | --syscon | --sysco | --sysc | --sys | --sy)
1078     ac_prev=sysconfdir ;;
1079   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081     sysconfdir=$ac_optarg ;;
1082
1083   -target | --target | --targe | --targ | --tar | --ta | --t)
1084     ac_prev=target_alias ;;
1085   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086     target_alias=$ac_optarg ;;
1087
1088   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089     verbose=yes ;;
1090
1091   -version | --version | --versio | --versi | --vers | -V)
1092     ac_init_version=: ;;
1093
1094   -with-* | --with-*)
1095     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098       as_fn_error $? "invalid package name: $ac_useropt"
1099     ac_useropt_orig=$ac_useropt
1100     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101     case $ac_user_opts in
1102       *"
1103 "with_$ac_useropt"
1104 "*) ;;
1105       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106          ac_unrecognized_sep=', ';;
1107     esac
1108     eval with_$ac_useropt=\$ac_optarg ;;
1109
1110   -without-* | --without-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=no ;;
1125
1126   --x)
1127     # Obsolete; use --with-x.
1128     with_x=yes ;;
1129
1130   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131   | --x-incl | --x-inc | --x-in | --x-i)
1132     ac_prev=x_includes ;;
1133   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135     x_includes=$ac_optarg ;;
1136
1137   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139     ac_prev=x_libraries ;;
1140   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142     x_libraries=$ac_optarg ;;
1143
1144   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1146     ;;
1147
1148   *=*)
1149     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150     # Reject names that are not valid shell variable names.
1151     case $ac_envvar in #(
1152       '' | [0-9]* | *[!_$as_cr_alnum]* )
1153       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154     esac
1155     eval $ac_envvar=\$ac_optarg
1156     export $ac_envvar ;;
1157
1158   *)
1159     # FIXME: should be removed in autoconf 3.0.
1160     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164     ;;
1165
1166   esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171   as_fn_error $? "missing argument to $ac_option"
1172 fi
1173
1174 if test -n "$ac_unrecognized_opts"; then
1175   case $enable_option_checking in
1176     no) ;;
1177     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179   esac
1180 fi
1181
1182 # Check all directory arguments for consistency.
1183 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184                 datadir sysconfdir sharedstatedir localstatedir includedir \
1185                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186                 libdir localedir mandir
1187 do
1188   eval ac_val=\$$ac_var
1189   # Remove trailing slashes.
1190   case $ac_val in
1191     */ )
1192       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193       eval $ac_var=\$ac_val;;
1194   esac
1195   # Be sure to have absolute directory names.
1196   case $ac_val in
1197     [\\/$]* | ?:[\\/]* )  continue;;
1198     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199   esac
1200   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used" >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   as_fn_error $? "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237   ac_srcdir_defaulted=yes
1238   # Try the directory containing this script, then the parent directory.
1239   ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241          X"$as_myself" : 'X\(//\)[^/]' \| \
1242          X"$as_myself" : 'X\(//\)$' \| \
1243          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)[^/].*/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\).*/{
1258             s//\1/
1259             q
1260           }
1261           s/.*/./; q'`
1262   srcdir=$ac_confdir
1263   if test ! -r "$srcdir/$ac_unique_file"; then
1264     srcdir=..
1265   fi
1266 else
1267   ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272 fi
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 ac_abs_confdir=`(
1275         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276         pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279   srcdir=.
1280 fi
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289   eval ac_env_${ac_var}_value=\$${ac_var}
1290   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1293
1294 #
1295 # Report the --help message.
1296 #
1297 if test "$ac_init_help" = "long"; then
1298   # Omit some internal or obsolete options to make the list less imposing.
1299   # This message is too long to be a string in the A/UX 3.1 sh.
1300   cat <<_ACEOF
1301 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1302
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308 Defaults for the options are specified in brackets.
1309
1310 Configuration:
1311   -h, --help              display this help and exit
1312       --help=short        display options specific to this package
1313       --help=recursive    display the short help of all the included packages
1314   -V, --version           display version information and exit
1315   -q, --quiet, --silent   do not print \`checking ...' messages
1316       --cache-file=FILE   cache test results in FILE [disabled]
1317   -C, --config-cache      alias for \`--cache-file=config.cache'
1318   -n, --no-create         do not create output files
1319       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321 Installation directories:
1322   --prefix=PREFIX         install architecture-independent files in PREFIX
1323                           [$ac_default_prefix]
1324   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                           [PREFIX]
1326
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1331
1332 For better control, use the options below.
1333
1334 Fine tuning of the installation directories:
1335   --bindir=DIR            user executables [EPREFIX/bin]
1336   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337   --libexecdir=DIR        program executables [EPREFIX/libexec]
1338   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341   --libdir=DIR            object code libraries [EPREFIX/lib]
1342   --includedir=DIR        C header files [PREFIX/include]
1343   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346   --infodir=DIR           info documentation [DATAROOTDIR/info]
1347   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348   --mandir=DIR            man documentation [DATAROOTDIR/man]
1349   --docdir=DIR            documentation root [DATAROOTDIR/doc/gacela]
1350   --htmldir=DIR           html documentation [DOCDIR]
1351   --dvidir=DIR            dvi documentation [DOCDIR]
1352   --pdfdir=DIR            pdf documentation [DOCDIR]
1353   --psdir=DIR             ps documentation [DOCDIR]
1354 _ACEOF
1355
1356   cat <<\_ACEOF
1357
1358 Program names:
1359   --program-prefix=PREFIX            prepend PREFIX to installed program names
1360   --program-suffix=SUFFIX            append SUFFIX to installed program names
1361   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363 System types:
1364   --build=BUILD     configure for building on BUILD [guessed]
1365   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370   case $ac_init_help in
1371      short | recursive ) echo "Configuration of gacela 0.5:";;
1372    esac
1373   cat <<\_ACEOF
1374
1375 Optional Features:
1376   --disable-option-checking  ignore unrecognized --enable/--with options
1377   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379   --enable-shared[=PKGS]  build shared libraries [default=yes]
1380   --enable-static[=PKGS]  build static libraries [default=yes]
1381   --enable-fast-install[=PKGS]
1382                           optimize for fast installation [default=yes]
1383   --disable-dependency-tracking  speeds up one-time build
1384   --enable-dependency-tracking   do not reject slow dependency extractors
1385   --disable-libtool-lock  avoid locking (might break parallel builds)
1386   --disable-rpath         do not hardcode runtime library paths
1387
1388 Optional Packages:
1389   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1392                           both]
1393   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1394   --with-sysroot=DIR Search for dependent libraries within DIR
1395                         (or the compiler's sysroot if not specified).
1396   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1397
1398 Some influential environment variables:
1399   CC          C compiler command
1400   CFLAGS      C compiler flags
1401   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402               nonstandard directory <lib dir>
1403   LIBS        libraries to pass to the linker, e.g. -l<library>
1404   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405               you have headers in a nonstandard directory <include dir>
1406   CPP         C preprocessor
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 Report bugs to <jsf@jsancho.org>.
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 gacela configure 0.5
1475 generated by GNU Autoconf 2.68
1476
1477 Copyright (C) 2010 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1480 _ACEOF
1481   exit
1482 fi
1483
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1487
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1492 {
1493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494   rm -f conftest.$ac_objext
1495   if { { ac_try="$ac_compile"
1496 case "(($ac_try" in
1497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498   *) ac_try_echo=$ac_try;;
1499 esac
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502   (eval "$ac_compile") 2>conftest.err
1503   ac_status=$?
1504   if test -s conftest.err; then
1505     grep -v '^ *+' conftest.err >conftest.er1
1506     cat conftest.er1 >&5
1507     mv -f conftest.er1 conftest.err
1508   fi
1509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510   test $ac_status = 0; } && {
1511          test -z "$ac_c_werror_flag" ||
1512          test ! -s conftest.err
1513        } && test -s conftest.$ac_objext; then :
1514   ac_retval=0
1515 else
1516   $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1518
1519         ac_retval=1
1520 fi
1521   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522   as_fn_set_status $ac_retval
1523
1524 } # ac_fn_c_try_compile
1525
1526 # ac_fn_c_try_link LINENO
1527 # -----------------------
1528 # Try to link conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_link ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   rm -f conftest.$ac_objext conftest$ac_exeext
1533   if { { ac_try="$ac_link"
1534 case "(($ac_try" in
1535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536   *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540   (eval "$ac_link") 2>conftest.err
1541   ac_status=$?
1542   if test -s conftest.err; then
1543     grep -v '^ *+' conftest.err >conftest.er1
1544     cat conftest.er1 >&5
1545     mv -f conftest.er1 conftest.err
1546   fi
1547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548   test $ac_status = 0; } && {
1549          test -z "$ac_c_werror_flag" ||
1550          test ! -s conftest.err
1551        } && test -s conftest$ac_exeext && {
1552          test "$cross_compiling" = yes ||
1553          $as_test_x conftest$ac_exeext
1554        }; then :
1555   ac_retval=0
1556 else
1557   $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560         ac_retval=1
1561 fi
1562   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1563   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1564   # interfere with the next link command; also delete a directory that is
1565   # left behind by Apple's compiler.  We do this before executing the actions.
1566   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1567   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568   as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_link
1571
1572 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists and can be compiled using the include files in
1575 # INCLUDES, setting the cache variable VAR accordingly.
1576 ac_fn_c_check_header_compile ()
1577 {
1578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582   $as_echo_n "(cached) " >&6
1583 else
1584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h.  */
1586 $4
1587 #include <$2>
1588 _ACEOF
1589 if ac_fn_c_try_compile "$LINENO"; then :
1590   eval "$3=yes"
1591 else
1592   eval "$3=no"
1593 fi
1594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595 fi
1596 eval ac_res=\$$3
1597                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600
1601 } # ac_fn_c_check_header_compile
1602
1603 # ac_fn_c_try_cpp LINENO
1604 # ----------------------
1605 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_cpp ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 case "(($ac_try" in
1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612   *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617   ac_status=$?
1618   if test -s conftest.err; then
1619     grep -v '^ *+' conftest.err >conftest.er1
1620     cat conftest.er1 >&5
1621     mv -f conftest.er1 conftest.err
1622   fi
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } > conftest.i && {
1625          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626          test ! -s conftest.err
1627        }; then :
1628   ac_retval=0
1629 else
1630   $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633     ac_retval=1
1634 fi
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636   as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_cpp
1639
1640 # ac_fn_c_try_run LINENO
1641 # ----------------------
1642 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1643 # that executables *can* be run.
1644 ac_fn_c_try_run ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   if { { ac_try="$ac_link"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_link") 2>&5
1655   ac_status=$?
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1658   { { case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_try") 2>&5
1665   ac_status=$?
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; }; }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: program exited with status $ac_status" >&5
1671        $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674        ac_retval=$ac_status
1675 fi
1676   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_run
1681
1682 # ac_fn_c_check_func LINENO FUNC VAR
1683 # ----------------------------------
1684 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1685 ac_fn_c_check_func ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691   $as_echo_n "(cached) " >&6
1692 else
1693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h.  */
1695 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1697 #define $2 innocuous_$2
1698
1699 /* System header to define __stub macros and hopefully few prototypes,
1700     which can conflict with char $2 (); below.
1701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1702     <limits.h> exists even on freestanding compilers.  */
1703
1704 #ifdef __STDC__
1705 # include <limits.h>
1706 #else
1707 # include <assert.h>
1708 #endif
1709
1710 #undef $2
1711
1712 /* Override any GCC internal prototype to avoid an error.
1713    Use char because int might match the return type of a GCC
1714    builtin and then its argument prototype would still apply.  */
1715 #ifdef __cplusplus
1716 extern "C"
1717 #endif
1718 char $2 ();
1719 /* The GNU C library defines this for functions which it implements
1720     to always fail with ENOSYS.  Some functions are actually named
1721     something starting with __ and the normal name is an alias.  */
1722 #if defined __stub_$2 || defined __stub___$2
1723 choke me
1724 #endif
1725
1726 int
1727 main ()
1728 {
1729 return $2 ();
1730   ;
1731   return 0;
1732 }
1733 _ACEOF
1734 if ac_fn_c_try_link "$LINENO"; then :
1735   eval "$3=yes"
1736 else
1737   eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext \
1740     conftest$ac_exeext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_func
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1751
1752 It was created by gacela $as_me 0.5, which was
1753 generated by GNU Autoconf 2.68.  Invocation command line was
1754
1755   $ $0 $@
1756
1757 _ACEOF
1758 exec 5>>config.log
1759 {
1760 cat <<_ASUNAME
1761 ## --------- ##
1762 ## Platform. ##
1763 ## --------- ##
1764
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1770
1771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1773
1774 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1775 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1778 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1779 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1780 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1781
1782 _ASUNAME
1783
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787   IFS=$as_save_IFS
1788   test -z "$as_dir" && as_dir=.
1789     $as_echo "PATH: $as_dir"
1790   done
1791 IFS=$as_save_IFS
1792
1793 } >&5
1794
1795 cat >&5 <<_ACEOF
1796
1797
1798 ## ----------- ##
1799 ## Core tests. ##
1800 ## ----------- ##
1801
1802 _ACEOF
1803
1804
1805 # Keep a trace of the command line.
1806 # Strip out --no-create and --no-recursion so they do not pile up.
1807 # Strip out --silent because we don't want to record it for future runs.
1808 # Also quote any args containing shell meta-characters.
1809 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_configure_args=
1811 ac_configure_args0=
1812 ac_configure_args1=
1813 ac_must_keep_next=false
1814 for ac_pass in 1 2
1815 do
1816   for ac_arg
1817   do
1818     case $ac_arg in
1819     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1820     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821     | -silent | --silent | --silen | --sile | --sil)
1822       continue ;;
1823     *\'*)
1824       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1825     esac
1826     case $ac_pass in
1827     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1828     2)
1829       as_fn_append ac_configure_args1 " '$ac_arg'"
1830       if test $ac_must_keep_next = true; then
1831         ac_must_keep_next=false # Got value, back to normal.
1832       else
1833         case $ac_arg in
1834           *=* | --config-cache | -C | -disable-* | --disable-* \
1835           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1836           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1837           | -with-* | --with-* | -without-* | --without-* | --x)
1838             case "$ac_configure_args0 " in
1839               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1840             esac
1841             ;;
1842           -* ) ac_must_keep_next=true ;;
1843         esac
1844       fi
1845       as_fn_append ac_configure_args " '$ac_arg'"
1846       ;;
1847     esac
1848   done
1849 done
1850 { ac_configure_args0=; unset ac_configure_args0;}
1851 { ac_configure_args1=; unset ac_configure_args1;}
1852
1853 # When interrupted or exit'd, cleanup temporary files, and complete
1854 # config.log.  We remove comments because anyway the quotes in there
1855 # would cause problems or look ugly.
1856 # WARNING: Use '\'' to represent an apostrophe within the trap.
1857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1858 trap 'exit_status=$?
1859   # Save into config.log some information that might help in debugging.
1860   {
1861     echo
1862
1863     $as_echo "## ---------------- ##
1864 ## Cache variables. ##
1865 ## ---------------- ##"
1866     echo
1867     # The following way of writing the cache mishandles newlines in values,
1868 (
1869   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1870     eval ac_val=\$$ac_var
1871     case $ac_val in #(
1872     *${as_nl}*)
1873       case $ac_var in #(
1874       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1876       esac
1877       case $ac_var in #(
1878       _ | IFS | as_nl) ;; #(
1879       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1880       *) { eval $ac_var=; unset $ac_var;} ;;
1881       esac ;;
1882     esac
1883   done
1884   (set) 2>&1 |
1885     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1886     *${as_nl}ac_space=\ *)
1887       sed -n \
1888         "s/'\''/'\''\\\\'\'''\''/g;
1889           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1890       ;; #(
1891     *)
1892       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1893       ;;
1894     esac |
1895     sort
1896 )
1897     echo
1898
1899     $as_echo "## ----------------- ##
1900 ## Output variables. ##
1901 ## ----------------- ##"
1902     echo
1903     for ac_var in $ac_subst_vars
1904     do
1905       eval ac_val=\$$ac_var
1906       case $ac_val in
1907       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908       esac
1909       $as_echo "$ac_var='\''$ac_val'\''"
1910     done | sort
1911     echo
1912
1913     if test -n "$ac_subst_files"; then
1914       $as_echo "## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##"
1917       echo
1918       for ac_var in $ac_subst_files
1919       do
1920         eval ac_val=\$$ac_var
1921         case $ac_val in
1922         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923         esac
1924         $as_echo "$ac_var='\''$ac_val'\''"
1925       done | sort
1926       echo
1927     fi
1928
1929     if test -s confdefs.h; then
1930       $as_echo "## ----------- ##
1931 ## confdefs.h. ##
1932 ## ----------- ##"
1933       echo
1934       cat confdefs.h
1935       echo
1936     fi
1937     test "$ac_signal" != 0 &&
1938       $as_echo "$as_me: caught signal $ac_signal"
1939     $as_echo "$as_me: exit $exit_status"
1940   } >&5
1941   rm -f core *.core core.conftest.* &&
1942     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1943     exit $exit_status
1944 ' 0
1945 for ac_signal in 1 2 13 15; do
1946   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1947 done
1948 ac_signal=0
1949
1950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1951 rm -f -r conftest* confdefs.h
1952
1953 $as_echo "/* confdefs.h */" > confdefs.h
1954
1955 # Predefined preprocessor variables.
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_NAME "$PACKAGE_NAME"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1967 _ACEOF
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_STRING "$PACKAGE_STRING"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_URL "$PACKAGE_URL"
1979 _ACEOF
1980
1981
1982 # Let the site file select an alternate cache file if it wants to.
1983 # Prefer an explicitly selected file to automatically selected ones.
1984 ac_site_file1=NONE
1985 ac_site_file2=NONE
1986 if test -n "$CONFIG_SITE"; then
1987   # We do not want a PATH search for config.site.
1988   case $CONFIG_SITE in #((
1989     -*)  ac_site_file1=./$CONFIG_SITE;;
1990     */*) ac_site_file1=$CONFIG_SITE;;
1991     *)   ac_site_file1=./$CONFIG_SITE;;
1992   esac
1993 elif test "x$prefix" != xNONE; then
1994   ac_site_file1=$prefix/share/config.site
1995   ac_site_file2=$prefix/etc/config.site
1996 else
1997   ac_site_file1=$ac_default_prefix/share/config.site
1998   ac_site_file2=$ac_default_prefix/etc/config.site
1999 fi
2000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2001 do
2002   test "x$ac_site_file" = xNONE && continue
2003   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2006     sed 's/^/| /' "$ac_site_file" >&5
2007     . "$ac_site_file" \
2008       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2010 as_fn_error $? "failed to load site script $ac_site_file
2011 See \`config.log' for more details" "$LINENO" 5; }
2012   fi
2013 done
2014
2015 if test -r "$cache_file"; then
2016   # Some versions of bash will fail to source /dev/null (special files
2017   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2018   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2020 $as_echo "$as_me: loading cache $cache_file" >&6;}
2021     case $cache_file in
2022       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2023       *)                      . "./$cache_file";;
2024     esac
2025   fi
2026 else
2027   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2028 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029   >$cache_file
2030 fi
2031
2032 # Check that the precious variables saved in the cache have kept the same
2033 # value.
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037   eval ac_new_set=\$ac_env_${ac_var}_set
2038   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039   eval ac_new_val=\$ac_env_${ac_var}_value
2040   case $ac_old_set,$ac_new_set in
2041     set,)
2042       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044       ac_cache_corrupted=: ;;
2045     ,set)
2046       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048       ac_cache_corrupted=: ;;
2049     ,);;
2050     *)
2051       if test "x$ac_old_val" != "x$ac_new_val"; then
2052         # differences in whitespace do not lead to failure.
2053         ac_old_val_w=`echo x $ac_old_val`
2054         ac_new_val_w=`echo x $ac_new_val`
2055         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2056           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2058           ac_cache_corrupted=:
2059         else
2060           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2062           eval $ac_var=\$ac_old_val
2063         fi
2064         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2065 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2066         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2067 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2068       fi;;
2069   esac
2070   # Pass precious variables to config.status.
2071   if test "$ac_new_set" = set; then
2072     case $ac_new_val in
2073     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2074     *) ac_arg=$ac_var=$ac_new_val ;;
2075     esac
2076     case " $ac_configure_args " in
2077       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2078       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2079     esac
2080   fi
2081 done
2082 if $ac_cache_corrupted; then
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2087   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2088 fi
2089 ## -------------------- ##
2090 ## Main body of script. ##
2091 ## -------------------- ##
2092
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098
2099
2100 am__api_version='1.11'
2101
2102 ac_aux_dir=
2103 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2104   if test -f "$ac_dir/install-sh"; then
2105     ac_aux_dir=$ac_dir
2106     ac_install_sh="$ac_aux_dir/install-sh -c"
2107     break
2108   elif test -f "$ac_dir/install.sh"; then
2109     ac_aux_dir=$ac_dir
2110     ac_install_sh="$ac_aux_dir/install.sh -c"
2111     break
2112   elif test -f "$ac_dir/shtool"; then
2113     ac_aux_dir=$ac_dir
2114     ac_install_sh="$ac_aux_dir/shtool install -c"
2115     break
2116   fi
2117 done
2118 if test -z "$ac_aux_dir"; then
2119   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2120 fi
2121
2122 # These three variables are undocumented and unsupported,
2123 # and are intended to be withdrawn in a future Autoconf release.
2124 # They can cause serious problems if a builder's source tree is in a directory
2125 # whose full name contains unusual characters.
2126 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2127 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2128 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2129
2130
2131 # Find a good install program.  We prefer a C program (faster),
2132 # so one script is as good as another.  But avoid the broken or
2133 # incompatible versions:
2134 # SysV /etc/install, /usr/sbin/install
2135 # SunOS /usr/etc/install
2136 # IRIX /sbin/install
2137 # AIX /bin/install
2138 # AmigaOS /C/install, which installs bootblocks on floppy discs
2139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142 # OS/2's system install, which has a completely different semantic
2143 # ./install, which can be erroneously created by make from ./install.sh.
2144 # Reject install programs that cannot install multiple files.
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2146 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2147 if test -z "$INSTALL"; then
2148 if ${ac_cv_path_install+:} false; then :
2149   $as_echo_n "(cached) " >&6
2150 else
2151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156     # Account for people who put trailing slashes in PATH elements.
2157 case $as_dir/ in #((
2158   ./ | .// | /[cC]/* | \
2159   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2161   /usr/ucb/* ) ;;
2162   *)
2163     # OSF1 and SCO ODT 3.0 have their own names for install.
2164     # Don't use installbsd from OSF since it installs stuff as root
2165     # by default.
2166     for ac_prog in ginstall scoinst install; do
2167       for ac_exec_ext in '' $ac_executable_extensions; do
2168         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169           if test $ac_prog = install &&
2170             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171             # AIX install.  It has an incompatible calling convention.
2172             :
2173           elif test $ac_prog = install &&
2174             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175             # program-specific install script used by HP pwplus--don't use.
2176             :
2177           else
2178             rm -rf conftest.one conftest.two conftest.dir
2179             echo one > conftest.one
2180             echo two > conftest.two
2181             mkdir conftest.dir
2182             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2183               test -s conftest.one && test -s conftest.two &&
2184               test -s conftest.dir/conftest.one &&
2185               test -s conftest.dir/conftest.two
2186             then
2187               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2188               break 3
2189             fi
2190           fi
2191         fi
2192       done
2193     done
2194     ;;
2195 esac
2196
2197   done
2198 IFS=$as_save_IFS
2199
2200 rm -rf conftest.one conftest.two conftest.dir
2201
2202 fi
2203   if test "${ac_cv_path_install+set}" = set; then
2204     INSTALL=$ac_cv_path_install
2205   else
2206     # As a last resort, use the slow shell script.  Don't cache a
2207     # value for INSTALL within a source directory, because that will
2208     # break other packages using the cache if that directory is
2209     # removed, or if the value is a relative name.
2210     INSTALL=$ac_install_sh
2211   fi
2212 fi
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2214 $as_echo "$INSTALL" >&6; }
2215
2216 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217 # It thinks the first close brace ends the variable substitution.
2218 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219
2220 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221
2222 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2225 $as_echo_n "checking whether build environment is sane... " >&6; }
2226 # Just in case
2227 sleep 1
2228 echo timestamp > conftest.file
2229 # Reject unsafe characters in $srcdir or the absolute working directory
2230 # name.  Accept space and tab only in the latter.
2231 am_lf='
2232 '
2233 case `pwd` in
2234   *[\\\"\#\$\&\'\`$am_lf]*)
2235     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2236 esac
2237 case $srcdir in
2238   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2239     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2240 esac
2241
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments.  Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2246 # directory).
2247 if (
2248    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2249    if test "$*" = "X"; then
2250       # -L didn't work.
2251       set X `ls -t "$srcdir/configure" conftest.file`
2252    fi
2253    rm -f conftest.file
2254    if test "$*" != "X $srcdir/configure conftest.file" \
2255       && test "$*" != "X conftest.file $srcdir/configure"; then
2256
2257       # If neither matched, then we have a broken ls.  This can happen
2258       # if, for instance, CONFIG_SHELL is bash and it inherits a
2259       # broken ls alias from the environment.  This has actually
2260       # happened.  Such a system could not be considered "sane".
2261       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2262 alias in your environment" "$LINENO" 5
2263    fi
2264
2265    test "$2" = conftest.file
2266    )
2267 then
2268    # Ok.
2269    :
2270 else
2271    as_fn_error $? "newly created file is older than distributed files!
2272 Check your system clock" "$LINENO" 5
2273 fi
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2275 $as_echo "yes" >&6; }
2276 test "$program_prefix" != NONE &&
2277   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278 # Use a double $ so make ignores it.
2279 test "$program_suffix" != NONE &&
2280   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281 # Double any \ or $.
2282 # By default was `s,x,x', remove it if useless.
2283 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2284 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2285
2286 # expand $ac_aux_dir to an absolute path
2287 am_aux_dir=`cd $ac_aux_dir && pwd`
2288
2289 if test x"${MISSING+set}" != xset; then
2290   case $am_aux_dir in
2291   *\ * | *\     *)
2292     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2293   *)
2294     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2295   esac
2296 fi
2297 # Use eval to expand $SHELL
2298 if eval "$MISSING --run true"; then
2299   am_missing_run="$MISSING --run "
2300 else
2301   am_missing_run=
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2303 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2304 fi
2305
2306 if test x"${install_sh}" != xset; then
2307   case $am_aux_dir in
2308   *\ * | *\     *)
2309     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2310   *)
2311     install_sh="\${SHELL} $am_aux_dir/install-sh"
2312   esac
2313 fi
2314
2315 # Installed binaries are usually stripped using `strip' when the user
2316 # run `make install-strip'.  However `strip' might not be the right
2317 # tool to use in cross-compilation environments, therefore Automake
2318 # will honor the `STRIP' environment variable to overrule this program.
2319 if test "$cross_compiling" != no; then
2320   if test -n "$ac_tool_prefix"; then
2321   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}strip; ac_word=$2
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2324 $as_echo_n "checking for $ac_word... " >&6; }
2325 if ${ac_cv_prog_STRIP+:} false; then :
2326   $as_echo_n "(cached) " >&6
2327 else
2328   if test -n "$STRIP"; then
2329   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336     for ac_exec_ext in '' $ac_executable_extensions; do
2337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343   done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 STRIP=$ac_cv_prog_STRIP
2349 if test -n "$STRIP"; then
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2351 $as_echo "$STRIP" >&6; }
2352 else
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2354 $as_echo "no" >&6; }
2355 fi
2356
2357
2358 fi
2359 if test -z "$ac_cv_prog_STRIP"; then
2360   ac_ct_STRIP=$STRIP
2361   # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2366   $as_echo_n "(cached) " >&6
2367 else
2368   if test -n "$ac_ct_STRIP"; then
2369   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376     for ac_exec_ext in '' $ac_executable_extensions; do
2377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378     ac_cv_prog_ac_ct_STRIP="strip"
2379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383   done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
2388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2389 if test -n "$ac_ct_STRIP"; then
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2391 $as_echo "$ac_ct_STRIP" >&6; }
2392 else
2393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394 $as_echo "no" >&6; }
2395 fi
2396
2397   if test "x$ac_ct_STRIP" = x; then
2398     STRIP=":"
2399   else
2400     case $cross_compiling:$ac_tool_warned in
2401 yes:)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406     STRIP=$ac_ct_STRIP
2407   fi
2408 else
2409   STRIP="$ac_cv_prog_STRIP"
2410 fi
2411
2412 fi
2413 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2414
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2416 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2417 if test -z "$MKDIR_P"; then
2418   if ${ac_cv_path_mkdir+:} false; then :
2419   $as_echo_n "(cached) " >&6
2420 else
2421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426     for ac_prog in mkdir gmkdir; do
2427          for ac_exec_ext in '' $ac_executable_extensions; do
2428            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2429            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2430              'mkdir (GNU coreutils) '* | \
2431              'mkdir (coreutils) '* | \
2432              'mkdir (fileutils) '4.1*)
2433                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2434                break 3;;
2435            esac
2436          done
2437        done
2438   done
2439 IFS=$as_save_IFS
2440
2441 fi
2442
2443   test -d ./--version && rmdir ./--version
2444   if test "${ac_cv_path_mkdir+set}" = set; then
2445     MKDIR_P="$ac_cv_path_mkdir -p"
2446   else
2447     # As a last resort, use the slow shell script.  Don't cache a
2448     # value for MKDIR_P within a source directory, because that will
2449     # break other packages using the cache if that directory is
2450     # removed, or if the value is a relative name.
2451     MKDIR_P="$ac_install_sh -d"
2452   fi
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2455 $as_echo "$MKDIR_P" >&6; }
2456
2457 mkdir_p="$MKDIR_P"
2458 case $mkdir_p in
2459   [\\/$]* | ?:[\\/]*) ;;
2460   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2461 esac
2462
2463 for ac_prog in gawk mawk nawk awk
2464 do
2465   # Extract the first word of "$ac_prog", so it can be a program name with args.
2466 set dummy $ac_prog; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_AWK+:} false; then :
2470   $as_echo_n "(cached) " >&6
2471 else
2472   if test -n "$AWK"; then
2473   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480     for ac_exec_ext in '' $ac_executable_extensions; do
2481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482     ac_cv_prog_AWK="$ac_prog"
2483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487   done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 AWK=$ac_cv_prog_AWK
2493 if test -n "$AWK"; then
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2495 $as_echo "$AWK" >&6; }
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501
2502   test -n "$AWK" && break
2503 done
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2506 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2507 set x ${MAKE-make}
2508 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2509 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   cat >conftest.make <<\_ACEOF
2513 SHELL = /bin/sh
2514 all:
2515         @echo '@@@%%%=$(MAKE)=@@@%%%'
2516 _ACEOF
2517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2519   *@@@%%%=?*=@@@%%%*)
2520     eval ac_cv_prog_make_${ac_make}_set=yes;;
2521   *)
2522     eval ac_cv_prog_make_${ac_make}_set=no;;
2523 esac
2524 rm -f conftest.make
2525 fi
2526 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528 $as_echo "yes" >&6; }
2529   SET_MAKE=
2530 else
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533   SET_MAKE="MAKE=${MAKE-make}"
2534 fi
2535
2536 rm -rf .tst 2>/dev/null
2537 mkdir .tst 2>/dev/null
2538 if test -d .tst; then
2539   am__leading_dot=.
2540 else
2541   am__leading_dot=_
2542 fi
2543 rmdir .tst 2>/dev/null
2544
2545 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2546   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2547   # is not polluted with repeated "-I."
2548   am__isrc=' -I$(srcdir)'
2549   # test to see if srcdir already configured
2550   if test -f $srcdir/config.status; then
2551     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2552   fi
2553 fi
2554
2555 # test whether we have cygpath
2556 if test -z "$CYGPATH_W"; then
2557   if (cygpath --version) >/dev/null 2>/dev/null; then
2558     CYGPATH_W='cygpath -w'
2559   else
2560     CYGPATH_W=echo
2561   fi
2562 fi
2563
2564
2565 # Define the identity of the package.
2566  PACKAGE='gacela'
2567  VERSION='0.5'
2568
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE "$PACKAGE"
2572 _ACEOF
2573
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define VERSION "$VERSION"
2577 _ACEOF
2578
2579 # Some tools Automake needs.
2580
2581 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2582
2583
2584 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2585
2586
2587 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2588
2589
2590 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2591
2592
2593 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2594
2595 # We need awk for the "check" target.  The system "awk" is bad on
2596 # some platforms.
2597 # Always define AMTAR for backward compatibility.
2598
2599 AMTAR=${AMTAR-"${am_missing_run}tar"}
2600
2601 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2602
2603
2604
2605
2606
2607 case `pwd` in
2608   *\ * | *\     *)
2609     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2610 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2611 esac
2612
2613
2614
2615 macro_version='2.4.2'
2616 macro_revision='1.3337'
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630 ltmain="$ac_aux_dir/ltmain.sh"
2631
2632 # Make sure we can run config.sub.
2633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2634   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2635
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2637 $as_echo_n "checking build system type... " >&6; }
2638 if ${ac_cv_build+:} false; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   ac_build_alias=$build_alias
2642 test "x$ac_build_alias" = x &&
2643   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644 test "x$ac_build_alias" = x &&
2645   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2651 $as_echo "$ac_cv_build" >&6; }
2652 case $ac_cv_build in
2653 *-*-*) ;;
2654 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2655 esac
2656 build=$ac_cv_build
2657 ac_save_IFS=$IFS; IFS='-'
2658 set x $ac_cv_build
2659 shift
2660 build_cpu=$1
2661 build_vendor=$2
2662 shift; shift
2663 # Remember, the first character of IFS is used to create $*,
2664 # except with old shells:
2665 build_os=$*
2666 IFS=$ac_save_IFS
2667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2668
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2671 $as_echo_n "checking host system type... " >&6; }
2672 if ${ac_cv_host+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test "x$host_alias" = x; then
2676   ac_cv_host=$ac_cv_build
2677 else
2678   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2679     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680 fi
2681
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2684 $as_echo "$ac_cv_host" >&6; }
2685 case $ac_cv_host in
2686 *-*-*) ;;
2687 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2688 esac
2689 host=$ac_cv_host
2690 ac_save_IFS=$IFS; IFS='-'
2691 set x $ac_cv_host
2692 shift
2693 host_cpu=$1
2694 host_vendor=$2
2695 shift; shift
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2698 host_os=$*
2699 IFS=$ac_save_IFS
2700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2701
2702
2703 # Backslashify metacharacters that are still active within
2704 # double-quoted strings.
2705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2706
2707 # Same as above, but do not quote variable references.
2708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2709
2710 # Sed substitution to delay expansion of an escaped shell variable in a
2711 # double_quote_subst'ed string.
2712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2713
2714 # Sed substitution to delay expansion of an escaped single quote.
2715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2716
2717 # Sed substitution to avoid accidental globbing in evaled expressions
2718 no_glob_subst='s/\*/\\\*/g'
2719
2720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2725 $as_echo_n "checking how to print strings... " >&6; }
2726 # Test print first, because it will be a builtin if present.
2727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2728    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2729   ECHO='print -r --'
2730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2731   ECHO='printf %s\n'
2732 else
2733   # Use this function as a fallback that always works.
2734   func_fallback_echo ()
2735   {
2736     eval 'cat <<_LTECHO_EOF
2737 $1
2738 _LTECHO_EOF'
2739   }
2740   ECHO='func_fallback_echo'
2741 fi
2742
2743 # func_echo_all arg...
2744 # Invoke $ECHO with all args, space-separated.
2745 func_echo_all ()
2746 {
2747     $ECHO ""
2748 }
2749
2750 case "$ECHO" in
2751   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2752 $as_echo "printf" >&6; } ;;
2753   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2754 $as_echo "print -r" >&6; } ;;
2755   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2756 $as_echo "cat" >&6; } ;;
2757 esac
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772 DEPDIR="${am__leading_dot}deps"
2773
2774 ac_config_commands="$ac_config_commands depfiles"
2775
2776
2777 am_make=${MAKE-make}
2778 cat > confinc << 'END'
2779 am__doit:
2780         @echo this is the am__doit target
2781 .PHONY: am__doit
2782 END
2783 # If we don't find an include directive, just comment out the code.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2785 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2786 am__include="#"
2787 am__quote=
2788 _am_result=none
2789 # First try GNU make style include.
2790 echo "include confinc" > confmf
2791 # Ignore all kinds of additional output from `make'.
2792 case `$am_make -s -f confmf 2> /dev/null` in #(
2793 *the\ am__doit\ target*)
2794   am__include=include
2795   am__quote=
2796   _am_result=GNU
2797   ;;
2798 esac
2799 # Now try BSD make style include.
2800 if test "$am__include" = "#"; then
2801    echo '.include "confinc"' > confmf
2802    case `$am_make -s -f confmf 2> /dev/null` in #(
2803    *the\ am__doit\ target*)
2804      am__include=.include
2805      am__quote="\""
2806      _am_result=BSD
2807      ;;
2808    esac
2809 fi
2810
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2813 $as_echo "$_am_result" >&6; }
2814 rm -f confinc confmf
2815
2816 # Check whether --enable-dependency-tracking was given.
2817 if test "${enable_dependency_tracking+set}" = set; then :
2818   enableval=$enable_dependency_tracking;
2819 fi
2820
2821 if test "x$enable_dependency_tracking" != xno; then
2822   am_depcomp="$ac_aux_dir/depcomp"
2823   AMDEPBACKSLASH='\'
2824   am__nodep='_no'
2825 fi
2826  if test "x$enable_dependency_tracking" != xno; then
2827   AMDEP_TRUE=
2828   AMDEP_FALSE='#'
2829 else
2830   AMDEP_TRUE='#'
2831   AMDEP_FALSE=
2832 fi
2833
2834
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 if test -n "$ac_tool_prefix"; then
2841   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$CC"; then
2849   ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_CC"; then
2880   ac_ct_CC=$CC
2881   # Extract the first word of "gcc", so it can be a program name with args.
2882 set dummy gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test -n "$ac_ct_CC"; then
2889   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894   IFS=$as_save_IFS
2895   test -z "$as_dir" && as_dir=.
2896     for ac_exec_ext in '' $ac_executable_extensions; do
2897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898     ac_cv_prog_ac_ct_CC="gcc"
2899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900     break 2
2901   fi
2902 done
2903   done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917   if test "x$ac_ct_CC" = x; then
2918     CC=""
2919   else
2920     case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     CC=$ac_ct_CC
2927   fi
2928 else
2929   CC="$ac_cv_prog_CC"
2930 fi
2931
2932 if test -z "$CC"; then
2933           if test -n "$ac_tool_prefix"; then
2934     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949     for ac_exec_ext in '' $ac_executable_extensions; do
2950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951     ac_cv_prog_CC="${ac_tool_prefix}cc"
2952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956   done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971   fi
2972 fi
2973 if test -z "$CC"; then
2974   # Extract the first word of "cc", so it can be a program name with args.
2975 set dummy cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984   ac_prog_rejected=no
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2993        ac_prog_rejected=yes
2994        continue
2995      fi
2996     ac_cv_prog_CC="cc"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 if test $ac_prog_rejected = yes; then
3005   # We found a bogon in the path, so make sure we never use it.
3006   set dummy $ac_cv_prog_CC
3007   shift
3008   if test $# != 0; then
3009     # We chose a different compiler from the bogus one.
3010     # However, it has the same basename, so the bogon will be chosen
3011     # first if we set CC to just the basename; use the full file name.
3012     shift
3013     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014   fi
3015 fi
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027
3028 fi
3029 if test -z "$CC"; then
3030   if test -n "$ac_tool_prefix"; then
3031   for ac_prog in cl.exe
3032   do
3033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070     test -n "$CC" && break
3071   done
3072 fi
3073 if test -z "$CC"; then
3074   ac_ct_CC=$CC
3075   for ac_prog in cl.exe
3076 do
3077   # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if test -n "$ac_ct_CC"; then
3085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092     for ac_exec_ext in '' $ac_executable_extensions; do
3093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094     ac_cv_prog_ac_ct_CC="$ac_prog"
3095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099   done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114   test -n "$ac_ct_CC" && break
3115 done
3116
3117   if test "x$ac_ct_CC" = x; then
3118     CC=""
3119   else
3120     case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126     CC=$ac_ct_CC
3127   fi
3128 fi
3129
3130 fi
3131
3132
3133 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "no acceptable C compiler found in \$PATH
3136 See \`config.log' for more details" "$LINENO" 5; }
3137
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3140 set X $ac_compile
3141 ac_compiler=$2
3142 for ac_option in --version -v -V -qversion; do
3143   { { ac_try="$ac_compiler $ac_option >&5"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151   ac_status=$?
3152   if test -s conftest.err; then
3153     sed '10a\
3154 ... rest of stderr output deleted ...
3155          10q' conftest.err >conftest.er1
3156     cat conftest.er1 >&5
3157   fi
3158   rm -f conftest.er1 conftest.err
3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160   test $ac_status = 0; }
3161 done
3162
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3178 # of exeext.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3180 $as_echo_n "checking whether the C compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3188 do
3189   case $ac_file in
3190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192   esac
3193 done
3194 rm -f $ac_rmfiles
3195
3196 if { { ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203   (eval "$ac_link_default") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206   test $ac_status = 0; }; then :
3207   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3211 # Autoconf.
3212 for ac_file in $ac_files ''
3213 do
3214   test -f "$ac_file" || continue
3215   case $ac_file in
3216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217         ;;
3218     [ab].out )
3219         # We found the default executable, but exeext='' is most
3220         # certainly right.
3221         break;;
3222     *.* )
3223         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224         then :; else
3225            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226         fi
3227         # We set ac_cv_exeext here because the later test for it is not
3228         # safe: cross compilers may not add the suffix if given an `-o'
3229         # argument, so we may need to know it at that point already.
3230         # Even if this section looks crufty: it has the advantage of
3231         # actually working.
3232         break;;
3233     * )
3234         break;;
3235   esac
3236 done
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238
3239 else
3240   ac_file=''
3241 fi
3242 if test -z "$ac_file"; then :
3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error 77 "C compiler cannot create executables
3251 See \`config.log' for more details" "$LINENO" 5; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3257 $as_echo_n "checking for C compiler default output file name... " >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3259 $as_echo "$ac_file" >&6; }
3260 ac_exeext=$ac_cv_exeext
3261
3262 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3263 ac_clean_files=$ac_clean_files_save
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3265 $as_echo_n "checking for suffix of executables... " >&6; }
3266 if { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273   (eval "$ac_link") 2>&5
3274   ac_status=$?
3275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276   test $ac_status = 0; }; then :
3277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3279 # work properly (i.e., refer to `conftest.exe'), while it won't with
3280 # `rm'.
3281 for ac_file in conftest.exe conftest conftest.*; do
3282   test -f "$ac_file" || continue
3283   case $ac_file in
3284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286           break;;
3287     * ) break;;
3288   esac
3289 done
3290 else
3291   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 rm -f conftest conftest$ac_cv_exeext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3298 $as_echo "$ac_cv_exeext" >&6; }
3299
3300 rm -f conftest.$ac_ext
3301 EXEEXT=$ac_cv_exeext
3302 ac_exeext=$EXEEXT
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h.  */
3305 #include <stdio.h>
3306 int
3307 main ()
3308 {
3309 FILE *f = fopen ("conftest.out", "w");
3310  return ferror (f) || fclose (f) != 0;
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 ac_clean_files="$ac_clean_files conftest.out"
3317 # Check that the compiler produces executables we can run.  If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3320 $as_echo_n "checking whether we are cross compiling... " >&6; }
3321 if test "$cross_compiling" != yes; then
3322   { { ac_try="$ac_link"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329   (eval "$ac_link") 2>&5
3330   ac_status=$?
3331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332   test $ac_status = 0; }
3333   if { ac_try='./conftest$ac_cv_exeext'
3334   { { case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340   (eval "$ac_try") 2>&5
3341   ac_status=$?
3342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343   test $ac_status = 0; }; }; then
3344     cross_compiling=no
3345   else
3346     if test "$cross_compiling" = maybe; then
3347         cross_compiling=yes
3348     else
3349         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details" "$LINENO" 5; }
3354     fi
3355   fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3358 $as_echo "$cross_compiling" >&6; }
3359
3360 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3363 $as_echo_n "checking for suffix of object files... " >&6; }
3364 if ${ac_cv_objext+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { { ac_try="$ac_compile"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386   (eval "$ac_compile") 2>&5
3387   ac_status=$?
3388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389   test $ac_status = 0; }; then :
3390   for ac_file in conftest.o conftest.obj conftest.*; do
3391   test -f "$ac_file" || continue;
3392   case $ac_file in
3393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3394     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395        break;;
3396   esac
3397 done
3398 else
3399   $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot compute suffix of object files: cannot compile
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 fi
3407 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3410 $as_echo "$ac_cv_objext" >&6; }
3411 OBJEXT=$ac_cv_objext
3412 ac_objext=$OBJEXT
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3414 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3415 if ${ac_cv_c_compiler_gnu+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424 #ifndef __GNUC__
3425        choke me
3426 #endif
3427
3428   ;
3429   return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433   ac_compiler_gnu=yes
3434 else
3435   ac_compiler_gnu=no
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3439
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3442 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3443 if test $ac_compiler_gnu = yes; then
3444   GCC=yes
3445 else
3446   GCC=
3447 fi
3448 ac_test_CFLAGS=${CFLAGS+set}
3449 ac_save_CFLAGS=$CFLAGS
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3451 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3452 if ${ac_cv_prog_cc_g+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   ac_save_c_werror_flag=$ac_c_werror_flag
3456    ac_c_werror_flag=yes
3457    ac_cv_prog_cc_g=no
3458    CFLAGS="-g"
3459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471   ac_cv_prog_cc_g=yes
3472 else
3473   CFLAGS=""
3474       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h.  */
3476
3477 int
3478 main ()
3479 {
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486
3487 else
3488   ac_c_werror_flag=$ac_save_c_werror_flag
3489          CFLAGS="-g"
3490          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502   ac_cv_prog_cc_g=yes
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509    ac_c_werror_flag=$ac_save_c_werror_flag
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3512 $as_echo "$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514   CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516   if test "$GCC" = yes; then
3517     CFLAGS="-g -O2"
3518   else
3519     CFLAGS="-g"
3520   fi
3521 else
3522   if test "$GCC" = yes; then
3523     CFLAGS="-O2"
3524   else
3525     CFLAGS=
3526   fi
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3529 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3530 if ${ac_cv_prog_cc_c89+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   ac_cv_prog_cc_c89=no
3534 ac_save_CC=$CC
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537 #include <stdarg.h>
3538 #include <stdio.h>
3539 #include <sys/types.h>
3540 #include <sys/stat.h>
3541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3542 struct buf { int x; };
3543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3544 static char *e (p, i)
3545      char **p;
3546      int i;
3547 {
3548   return p[i];
3549 }
3550 static char *f (char * (*g) (char **, int), char **p, ...)
3551 {
3552   char *s;
3553   va_list v;
3554   va_start (v,p);
3555   s = g (p, va_arg (v,int));
3556   va_end (v);
3557   return s;
3558 }
3559
3560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3561    function prototypes and stuff, but not '\xHH' hex character constants.
3562    These don't provoke an error unfortunately, instead are silently treated
3563    as 'x'.  The following induces an error, until -std is added to get
3564    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3565    array size at least.  It's necessary to write '\x00'==0 to get something
3566    that's true only with -std.  */
3567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568
3569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3570    inside strings and character constants.  */
3571 #define FOO(x) 'x'
3572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3573
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578 int argc;
3579 char **argv;
3580 int
3581 main ()
3582 {
3583 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3589         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 do
3591   CC="$ac_save_CC $ac_arg"
3592   if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_cv_prog_cc_c89=$ac_arg
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext
3596   test "x$ac_cv_prog_cc_c89" != "xno" && break
3597 done
3598 rm -f conftest.$ac_ext
3599 CC=$ac_save_CC
3600
3601 fi
3602 # AC_CACHE_VAL
3603 case "x$ac_cv_prog_cc_c89" in
3604   x)
3605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3606 $as_echo "none needed" >&6; } ;;
3607   xno)
3608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3609 $as_echo "unsupported" >&6; } ;;
3610   *)
3611     CC="$CC $ac_cv_prog_cc_c89"
3612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3613 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3614 esac
3615 if test "x$ac_cv_prog_cc_c89" != xno; then :
3616
3617 fi
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625 depcc="$CC"   am_compiler_list=
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3628 $as_echo_n "checking dependency style of $depcc... " >&6; }
3629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3633   # We make a subdir and do the tests there.  Otherwise we can end up
3634   # making bogus files that we don't know about and never remove.  For
3635   # instance it was reported that on HP-UX the gcc test will end up
3636   # making a dummy file named `D' -- because `-MD' means `put the output
3637   # in D'.
3638   rm -rf conftest.dir
3639   mkdir conftest.dir
3640   # Copy depcomp to subdir because otherwise we won't find it if we're
3641   # using a relative directory.
3642   cp "$am_depcomp" conftest.dir
3643   cd conftest.dir
3644   # We will build objects and dependencies in a subdirectory because
3645   # it helps to detect inapplicable dependency modes.  For instance
3646   # both Tru64's cc and ICC support -MD to output dependencies as a
3647   # side effect of compilation, but ICC will put the dependencies in
3648   # the current directory while Tru64 will put them in the object
3649   # directory.
3650   mkdir sub
3651
3652   am_cv_CC_dependencies_compiler_type=none
3653   if test "$am_compiler_list" = ""; then
3654      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3655   fi
3656   am__universal=false
3657   case " $depcc " in #(
3658      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3659      esac
3660
3661   for depmode in $am_compiler_list; do
3662     # Setup a source with many dependencies, because some compilers
3663     # like to wrap large dependency lists on column 80 (with \), and
3664     # we should not choose a depcomp mode which is confused by this.
3665     #
3666     # We need to recreate these files for each test, as the compiler may
3667     # overwrite some of them when testing with obscure command lines.
3668     # This happens at least with the AIX C compiler.
3669     : > sub/conftest.c
3670     for i in 1 2 3 4 5 6; do
3671       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673       # Solaris 8's {/usr,}/bin/sh.
3674       touch sub/conftst$i.h
3675     done
3676     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677
3678     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679     # mode.  It turns out that the SunPro C++ compiler does not properly
3680     # handle `-M -o', and we need to detect this.  Also, some Intel
3681     # versions had trouble with output in subdirs
3682     am__obj=sub/conftest.${OBJEXT-o}
3683     am__minus_obj="-o $am__obj"
3684     case $depmode in
3685     gcc)
3686       # This depmode causes a compiler race in universal mode.
3687       test "$am__universal" = false || continue
3688       ;;
3689     nosideeffect)
3690       # after this tag, mechanisms are not by side-effect, so they'll
3691       # only be used when explicitly requested
3692       if test "x$enable_dependency_tracking" = xyes; then
3693         continue
3694       else
3695         break
3696       fi
3697       ;;
3698     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3699       # This compiler won't grok `-c -o', but also, the minuso test has
3700       # not run yet.  These depmodes are late enough in the game, and
3701       # so weak that their functioning should not be impacted.
3702       am__obj=conftest.${OBJEXT-o}
3703       am__minus_obj=
3704       ;;
3705     none) break ;;
3706     esac
3707     if depmode=$depmode \
3708        source=sub/conftest.c object=$am__obj \
3709        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3711          >/dev/null 2>conftest.err &&
3712        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3713        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3714        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3715        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3716       # icc doesn't choke on unknown options, it will just issue warnings
3717       # or remarks (even with -Werror).  So we grep stderr for any message
3718       # that says an option was ignored or not supported.
3719       # When given -MP, icc 7.0 and 7.1 complain thusly:
3720       #   icc: Command line warning: ignoring option '-M'; no argument required
3721       # The diagnosis changed in icc 8.0:
3722       #   icc: Command line remark: option '-MP' not supported
3723       if (grep 'ignoring option' conftest.err ||
3724           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3725         am_cv_CC_dependencies_compiler_type=$depmode
3726         break
3727       fi
3728     fi
3729   done
3730
3731   cd ..
3732   rm -rf conftest.dir
3733 else
3734   am_cv_CC_dependencies_compiler_type=none
3735 fi
3736
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3741
3742  if
3743   test "x$enable_dependency_tracking" != xno \
3744   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3745   am__fastdepCC_TRUE=
3746   am__fastdepCC_FALSE='#'
3747 else
3748   am__fastdepCC_TRUE='#'
3749   am__fastdepCC_FALSE=
3750 fi
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3754 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3755 if ${ac_cv_path_SED+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3759      for ac_i in 1 2 3 4 5 6 7; do
3760        ac_script="$ac_script$as_nl$ac_script"
3761      done
3762      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3763      { ac_script=; unset ac_script;}
3764      if test -z "$SED"; then
3765   ac_path_SED_found=false
3766   # Loop through the user's path and test for each of PROGNAME-LIST
3767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     for ac_prog in sed gsed; do
3773     for ac_exec_ext in '' $ac_executable_extensions; do
3774       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3775       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3776 # Check for GNU ac_path_SED and select it if it is found.
3777   # Check for GNU $ac_path_SED
3778 case `"$ac_path_SED" --version 2>&1` in
3779 *GNU*)
3780   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3781 *)
3782   ac_count=0
3783   $as_echo_n 0123456789 >"conftest.in"
3784   while :
3785   do
3786     cat "conftest.in" "conftest.in" >"conftest.tmp"
3787     mv "conftest.tmp" "conftest.in"
3788     cp "conftest.in" "conftest.nl"
3789     $as_echo '' >> "conftest.nl"
3790     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792     as_fn_arith $ac_count + 1 && ac_count=$as_val
3793     if test $ac_count -gt ${ac_path_SED_max-0}; then
3794       # Best one so far, save it but keep looking for a better one
3795       ac_cv_path_SED="$ac_path_SED"
3796       ac_path_SED_max=$ac_count
3797     fi
3798     # 10*(2^10) chars as input seems more than enough
3799     test $ac_count -gt 10 && break
3800   done
3801   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 esac
3803
3804       $ac_path_SED_found && break 3
3805     done
3806   done
3807   done
3808 IFS=$as_save_IFS
3809   if test -z "$ac_cv_path_SED"; then
3810     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3811   fi
3812 else
3813   ac_cv_path_SED=$SED
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3818 $as_echo "$ac_cv_path_SED" >&6; }
3819  SED="$ac_cv_path_SED"
3820   rm -f conftest.sed
3821
3822 test -z "$SED" && SED=sed
3823 Xsed="$SED -e 1s/^X//"
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3837 if ${ac_cv_path_GREP+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   if test -z "$GREP"; then
3841   ac_path_GREP_found=false
3842   # Loop through the user's path and test for each of PROGNAME-LIST
3843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     for ac_prog in grep ggrep; do
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3851       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3852 # Check for GNU ac_path_GREP and select it if it is found.
3853   # Check for GNU $ac_path_GREP
3854 case `"$ac_path_GREP" --version 2>&1` in
3855 *GNU*)
3856   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3857 *)
3858   ac_count=0
3859   $as_echo_n 0123456789 >"conftest.in"
3860   while :
3861   do
3862     cat "conftest.in" "conftest.in" >"conftest.tmp"
3863     mv "conftest.tmp" "conftest.in"
3864     cp "conftest.in" "conftest.nl"
3865     $as_echo 'GREP' >> "conftest.nl"
3866     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868     as_fn_arith $ac_count + 1 && ac_count=$as_val
3869     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3870       # Best one so far, save it but keep looking for a better one
3871       ac_cv_path_GREP="$ac_path_GREP"
3872       ac_path_GREP_max=$ac_count
3873     fi
3874     # 10*(2^10) chars as input seems more than enough
3875     test $ac_count -gt 10 && break
3876   done
3877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880       $ac_path_GREP_found && break 3
3881     done
3882   done
3883   done
3884 IFS=$as_save_IFS
3885   if test -z "$ac_cv_path_GREP"; then
3886     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3887   fi
3888 else
3889   ac_cv_path_GREP=$GREP
3890 fi
3891
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3894 $as_echo "$ac_cv_path_GREP" >&6; }
3895  GREP="$ac_cv_path_GREP"
3896
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3899 $as_echo_n "checking for egrep... " >&6; }
3900 if ${ac_cv_path_EGREP+:} false; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3904    then ac_cv_path_EGREP="$GREP -E"
3905    else
3906      if test -z "$EGREP"; then
3907   ac_path_EGREP_found=false
3908   # Loop through the user's path and test for each of PROGNAME-LIST
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_prog in egrep; do
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3917       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3918 # Check for GNU ac_path_EGREP and select it if it is found.
3919   # Check for GNU $ac_path_EGREP
3920 case `"$ac_path_EGREP" --version 2>&1` in
3921 *GNU*)
3922   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3923 *)
3924   ac_count=0
3925   $as_echo_n 0123456789 >"conftest.in"
3926   while :
3927   do
3928     cat "conftest.in" "conftest.in" >"conftest.tmp"
3929     mv "conftest.tmp" "conftest.in"
3930     cp "conftest.in" "conftest.nl"
3931     $as_echo 'EGREP' >> "conftest.nl"
3932     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934     as_fn_arith $ac_count + 1 && ac_count=$as_val
3935     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3936       # Best one so far, save it but keep looking for a better one
3937       ac_cv_path_EGREP="$ac_path_EGREP"
3938       ac_path_EGREP_max=$ac_count
3939     fi
3940     # 10*(2^10) chars as input seems more than enough
3941     test $ac_count -gt 10 && break
3942   done
3943   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 esac
3945
3946       $ac_path_EGREP_found && break 3
3947     done
3948   done
3949   done
3950 IFS=$as_save_IFS
3951   if test -z "$ac_cv_path_EGREP"; then
3952     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3953   fi
3954 else
3955   ac_cv_path_EGREP=$EGREP
3956 fi
3957
3958    fi
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3961 $as_echo "$ac_cv_path_EGREP" >&6; }
3962  EGREP="$ac_cv_path_EGREP"
3963
3964
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3966 $as_echo_n "checking for fgrep... " >&6; }
3967 if ${ac_cv_path_FGREP+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3971    then ac_cv_path_FGREP="$GREP -F"
3972    else
3973      if test -z "$FGREP"; then
3974   ac_path_FGREP_found=false
3975   # Loop through the user's path and test for each of PROGNAME-LIST
3976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981     for ac_prog in fgrep; do
3982     for ac_exec_ext in '' $ac_executable_extensions; do
3983       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3984       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3985 # Check for GNU ac_path_FGREP and select it if it is found.
3986   # Check for GNU $ac_path_FGREP
3987 case `"$ac_path_FGREP" --version 2>&1` in
3988 *GNU*)
3989   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3990 *)
3991   ac_count=0
3992   $as_echo_n 0123456789 >"conftest.in"
3993   while :
3994   do
3995     cat "conftest.in" "conftest.in" >"conftest.tmp"
3996     mv "conftest.tmp" "conftest.in"
3997     cp "conftest.in" "conftest.nl"
3998     $as_echo 'FGREP' >> "conftest.nl"
3999     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001     as_fn_arith $ac_count + 1 && ac_count=$as_val
4002     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4003       # Best one so far, save it but keep looking for a better one
4004       ac_cv_path_FGREP="$ac_path_FGREP"
4005       ac_path_FGREP_max=$ac_count
4006     fi
4007     # 10*(2^10) chars as input seems more than enough
4008     test $ac_count -gt 10 && break
4009   done
4010   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 esac
4012
4013       $ac_path_FGREP_found && break 3
4014     done
4015   done
4016   done
4017 IFS=$as_save_IFS
4018   if test -z "$ac_cv_path_FGREP"; then
4019     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020   fi
4021 else
4022   ac_cv_path_FGREP=$FGREP
4023 fi
4024
4025    fi
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4028 $as_echo "$ac_cv_path_FGREP" >&6; }
4029  FGREP="$ac_cv_path_FGREP"
4030
4031
4032 test -z "$GREP" && GREP=grep
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052 # Check whether --with-gnu-ld was given.
4053 if test "${with_gnu_ld+set}" = set; then :
4054   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4055 else
4056   with_gnu_ld=no
4057 fi
4058
4059 ac_prog=ld
4060 if test "$GCC" = yes; then
4061   # Check if gcc -print-prog-name=ld gives a path.
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4063 $as_echo_n "checking for ld used by $CC... " >&6; }
4064   case $host in
4065   *-*-mingw*)
4066     # gcc leaves a trailing carriage return which upsets mingw
4067     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4068   *)
4069     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4070   esac
4071   case $ac_prog in
4072     # Accept absolute paths.
4073     [\\/]* | ?:[\\/]*)
4074       re_direlt='/[^/][^/]*/\.\./'
4075       # Canonicalize the pathname of ld
4076       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4077       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4078         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4079       done
4080       test -z "$LD" && LD="$ac_prog"
4081       ;;
4082   "")
4083     # If it fails, then pretend we aren't using GCC.
4084     ac_prog=ld
4085     ;;
4086   *)
4087     # If it is relative, then search for the first ld in PATH.
4088     with_gnu_ld=unknown
4089     ;;
4090   esac
4091 elif test "$with_gnu_ld" = yes; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4093 $as_echo_n "checking for GNU ld... " >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4096 $as_echo_n "checking for non-GNU ld... " >&6; }
4097 fi
4098 if ${lt_cv_path_LD+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -z "$LD"; then
4102   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4103   for ac_dir in $PATH; do
4104     IFS="$lt_save_ifs"
4105     test -z "$ac_dir" && ac_dir=.
4106     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4107       lt_cv_path_LD="$ac_dir/$ac_prog"
4108       # Check to see if the program is GNU ld.  I'd rather use --version,
4109       # but apparently some variants of GNU ld only accept -v.
4110       # Break only if it was the GNU/non-GNU ld that we prefer.
4111       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4112       *GNU* | *'with BFD'*)
4113         test "$with_gnu_ld" != no && break
4114         ;;
4115       *)
4116         test "$with_gnu_ld" != yes && break
4117         ;;
4118       esac
4119     fi
4120   done
4121   IFS="$lt_save_ifs"
4122 else
4123   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4124 fi
4125 fi
4126
4127 LD="$lt_cv_path_LD"
4128 if test -n "$LD"; then
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4130 $as_echo "$LD" >&6; }
4131 else
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4138 if ${lt_cv_prog_gnu_ld+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142 case `$LD -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144   lt_cv_prog_gnu_ld=yes
4145   ;;
4146 *)
4147   lt_cv_prog_gnu_ld=no
4148   ;;
4149 esac
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4153 with_gnu_ld=$lt_cv_prog_gnu_ld
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4164 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4165 if ${lt_cv_path_NM+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -n "$NM"; then
4169   # Let the user override the test.
4170   lt_cv_path_NM="$NM"
4171 else
4172   lt_nm_to_check="${ac_tool_prefix}nm"
4173   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4174     lt_nm_to_check="$lt_nm_to_check nm"
4175   fi
4176   for lt_tmp_nm in $lt_nm_to_check; do
4177     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4178     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4179       IFS="$lt_save_ifs"
4180       test -z "$ac_dir" && ac_dir=.
4181       tmp_nm="$ac_dir/$lt_tmp_nm"
4182       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4183         # Check to see if the nm accepts a BSD-compat flag.
4184         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4185         #   nm: unknown option "B" ignored
4186         # Tru64's nm complains that /dev/null is an invalid object file
4187         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4188         */dev/null* | *'Invalid file or object type'*)
4189           lt_cv_path_NM="$tmp_nm -B"
4190           break
4191           ;;
4192         *)
4193           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4194           */dev/null*)
4195             lt_cv_path_NM="$tmp_nm -p"
4196             break
4197             ;;
4198           *)
4199             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4200             continue # so that we can try to find one that supports BSD flags
4201             ;;
4202           esac
4203           ;;
4204         esac
4205       fi
4206     done
4207     IFS="$lt_save_ifs"
4208   done
4209   : ${lt_cv_path_NM=no}
4210 fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4213 $as_echo "$lt_cv_path_NM" >&6; }
4214 if test "$lt_cv_path_NM" != "no"; then
4215   NM="$lt_cv_path_NM"
4216 else
4217   # Didn't find any BSD compatible name lister, look for dumpbin.
4218   if test -n "$DUMPBIN"; then :
4219     # Let the user override the test.
4220   else
4221     if test -n "$ac_tool_prefix"; then
4222   for ac_prog in dumpbin "link -dump"
4223   do
4224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_DUMPBIN+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -n "$DUMPBIN"; then
4232   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239     for ac_exec_ext in '' $ac_executable_extensions; do
4240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246   done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 DUMPBIN=$ac_cv_prog_DUMPBIN
4252 if test -n "$DUMPBIN"; then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4254 $as_echo "$DUMPBIN" >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261     test -n "$DUMPBIN" && break
4262   done
4263 fi
4264 if test -z "$DUMPBIN"; then
4265   ac_ct_DUMPBIN=$DUMPBIN
4266   for ac_prog in dumpbin "link -dump"
4267 do
4268   # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   if test -n "$ac_ct_DUMPBIN"; then
4276   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290   done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4296 if test -n "$ac_ct_DUMPBIN"; then
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4298 $as_echo "$ac_ct_DUMPBIN" >&6; }
4299 else
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304
4305   test -n "$ac_ct_DUMPBIN" && break
4306 done
4307
4308   if test "x$ac_ct_DUMPBIN" = x; then
4309     DUMPBIN=":"
4310   else
4311     case $cross_compiling:$ac_tool_warned in
4312 yes:)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315 ac_tool_warned=yes ;;
4316 esac
4317     DUMPBIN=$ac_ct_DUMPBIN
4318   fi
4319 fi
4320
4321     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4322     *COFF*)
4323       DUMPBIN="$DUMPBIN -symbols"
4324       ;;
4325     *)
4326       DUMPBIN=:
4327       ;;
4328     esac
4329   fi
4330
4331   if test "$DUMPBIN" != ":"; then
4332     NM="$DUMPBIN"
4333   fi
4334 fi
4335 test -z "$NM" && NM=nm
4336
4337
4338
4339
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4344 if ${lt_cv_nm_interface+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   lt_cv_nm_interface="BSD nm"
4348   echo "int some_variable = 0;" > conftest.$ac_ext
4349   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4350   (eval "$ac_compile" 2>conftest.err)
4351   cat conftest.err >&5
4352   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4353   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4354   cat conftest.err >&5
4355   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4356   cat conftest.out >&5
4357   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4358     lt_cv_nm_interface="MS dumpbin"
4359   fi
4360   rm -f conftest*
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4363 $as_echo "$lt_cv_nm_interface" >&6; }
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4366 $as_echo_n "checking whether ln -s works... " >&6; }
4367 LN_S=$as_ln_s
4368 if test "$LN_S" = "ln -s"; then
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 else
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4373 $as_echo "no, using $LN_S" >&6; }
4374 fi
4375
4376 # find the maximum length of command line arguments
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4379 if ${lt_cv_sys_max_cmd_len+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382     i=0
4383   teststring="ABCD"
4384
4385   case $build_os in
4386   msdosdjgpp*)
4387     # On DJGPP, this test can blow up pretty badly due to problems in libc
4388     # (any single argument exceeding 2000 bytes causes a buffer overrun
4389     # during glob expansion).  Even if it were fixed, the result of this
4390     # check would be larger than it should be.
4391     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4392     ;;
4393
4394   gnu*)
4395     # Under GNU Hurd, this test is not required because there is
4396     # no limit to the length of command line arguments.
4397     # Libtool will interpret -1 as no limit whatsoever
4398     lt_cv_sys_max_cmd_len=-1;
4399     ;;
4400
4401   cygwin* | mingw* | cegcc*)
4402     # On Win9x/ME, this test blows up -- it succeeds, but takes
4403     # about 5 minutes as the teststring grows exponentially.
4404     # Worse, since 9x/ME are not pre-emptively multitasking,
4405     # you end up with a "frozen" computer, even though with patience
4406     # the test eventually succeeds (with a max line length of 256k).
4407     # Instead, let's just punt: use the minimum linelength reported by
4408     # all of the supported platforms: 8192 (on NT/2K/XP).
4409     lt_cv_sys_max_cmd_len=8192;
4410     ;;
4411
4412   mint*)
4413     # On MiNT this can take a long time and run out of memory.
4414     lt_cv_sys_max_cmd_len=8192;
4415     ;;
4416
4417   amigaos*)
4418     # On AmigaOS with pdksh, this test takes hours, literally.
4419     # So we just punt and use a minimum line length of 8192.
4420     lt_cv_sys_max_cmd_len=8192;
4421     ;;
4422
4423   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4424     # This has been around since 386BSD, at least.  Likely further.
4425     if test -x /sbin/sysctl; then
4426       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4427     elif test -x /usr/sbin/sysctl; then
4428       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4429     else
4430       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4431     fi
4432     # And add a safety zone
4433     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4434     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4435     ;;
4436
4437   interix*)
4438     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4439     lt_cv_sys_max_cmd_len=196608
4440     ;;
4441
4442   os2*)
4443     # The test takes a long time on OS/2.
4444     lt_cv_sys_max_cmd_len=8192
4445     ;;
4446
4447   osf*)
4448     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4449     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4450     # nice to cause kernel panics so lets avoid the loop below.
4451     # First set a reasonable default.
4452     lt_cv_sys_max_cmd_len=16384
4453     #
4454     if test -x /sbin/sysconfig; then
4455       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4456         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4457       esac
4458     fi
4459     ;;
4460   sco3.2v5*)
4461     lt_cv_sys_max_cmd_len=102400
4462     ;;
4463   sysv5* | sco5v6* | sysv4.2uw2*)
4464     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4465     if test -n "$kargmax"; then
4466       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4467     else
4468       lt_cv_sys_max_cmd_len=32768
4469     fi
4470     ;;
4471   *)
4472     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4473     if test -n "$lt_cv_sys_max_cmd_len"; then
4474       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4475       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4476     else
4477       # Make teststring a little bigger before we do anything with it.
4478       # a 1K string should be a reasonable start.
4479       for i in 1 2 3 4 5 6 7 8 ; do
4480         teststring=$teststring$teststring
4481       done
4482       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4483       # If test is not a shell built-in, we'll probably end up computing a
4484       # maximum length that is only half of the actual maximum length, but
4485       # we can't tell.
4486       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4487                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4488               test $i != 17 # 1/2 MB should be enough
4489       do
4490         i=`expr $i + 1`
4491         teststring=$teststring$teststring
4492       done
4493       # Only check the string length outside the loop.
4494       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4495       teststring=
4496       # Add a significant safety factor because C++ compilers can tack on
4497       # massive amounts of additional arguments before passing them to the
4498       # linker.  It appears as though 1/2 is a usable value.
4499       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4500     fi
4501     ;;
4502   esac
4503
4504 fi
4505
4506 if test -n $lt_cv_sys_max_cmd_len ; then
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4508 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4509 else
4510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4511 $as_echo "none" >&6; }
4512 fi
4513 max_cmd_len=$lt_cv_sys_max_cmd_len
4514
4515
4516
4517
4518
4519
4520 : ${CP="cp -f"}
4521 : ${MV="mv -f"}
4522 : ${RM="rm -f"}
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4525 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4526 # Try some XSI features
4527 xsi_shell=no
4528 ( _lt_dummy="a/b/c"
4529   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4530       = c,a/b,b/c, \
4531     && eval 'test $(( 1 + 1 )) -eq 2 \
4532     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4533   && xsi_shell=yes
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4535 $as_echo "$xsi_shell" >&6; }
4536
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4539 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4540 lt_shell_append=no
4541 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4542     >/dev/null 2>&1 \
4543   && lt_shell_append=yes
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4545 $as_echo "$lt_shell_append" >&6; }
4546
4547
4548 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4549   lt_unset=unset
4550 else
4551   lt_unset=false
4552 fi
4553
4554
4555
4556
4557
4558 # test EBCDIC or ASCII
4559 case `echo X|tr X '\101'` in
4560  A) # ASCII based system
4561     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4562   lt_SP2NL='tr \040 \012'
4563   lt_NL2SP='tr \015\012 \040\040'
4564   ;;
4565  *) # EBCDIC based system
4566   lt_SP2NL='tr \100 \n'
4567   lt_NL2SP='tr \r\n \100\100'
4568   ;;
4569 esac
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4580 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4581 if ${lt_cv_to_host_file_cmd+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   case $host in
4585   *-*-mingw* )
4586     case $build in
4587       *-*-mingw* ) # actually msys
4588         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4589         ;;
4590       *-*-cygwin* )
4591         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4592         ;;
4593       * ) # otherwise, assume *nix
4594         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4595         ;;
4596     esac
4597     ;;
4598   *-*-cygwin* )
4599     case $build in
4600       *-*-mingw* ) # actually msys
4601         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4602         ;;
4603       *-*-cygwin* )
4604         lt_cv_to_host_file_cmd=func_convert_file_noop
4605         ;;
4606       * ) # otherwise, assume *nix
4607         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4608         ;;
4609     esac
4610     ;;
4611   * ) # unhandled hosts (and "normal" native builds)
4612     lt_cv_to_host_file_cmd=func_convert_file_noop
4613     ;;
4614 esac
4615
4616 fi
4617
4618 to_host_file_cmd=$lt_cv_to_host_file_cmd
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4620 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4621
4622
4623
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4627 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4628 if ${lt_cv_to_tool_file_cmd+:} false; then :
4629   $as_echo_n "(cached) " >&6
4630 else
4631   #assume ordinary cross tools, or native build.
4632 lt_cv_to_tool_file_cmd=func_convert_file_noop
4633 case $host in
4634   *-*-mingw* )
4635     case $build in
4636       *-*-mingw* ) # actually msys
4637         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4638         ;;
4639     esac
4640     ;;
4641 esac
4642
4643 fi
4644
4645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4647 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4648
4649
4650
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4655 if ${lt_cv_ld_reload_flag+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   lt_cv_ld_reload_flag='-r'
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4662 reload_flag=$lt_cv_ld_reload_flag
4663 case $reload_flag in
4664 "" | " "*) ;;
4665 *) reload_flag=" $reload_flag" ;;
4666 esac
4667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4668 case $host_os in
4669   cygwin* | mingw* | pw32* | cegcc*)
4670     if test "$GCC" != yes; then
4671       reload_cmds=false
4672     fi
4673     ;;
4674   darwin*)
4675     if test "$GCC" = yes; then
4676       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4677     else
4678       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4679     fi
4680     ;;
4681 esac
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 if test -n "$ac_tool_prefix"; then
4692   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4693 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_OBJDUMP+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if test -n "$OBJDUMP"; then
4700   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714   done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 OBJDUMP=$ac_cv_prog_OBJDUMP
4720 if test -n "$OBJDUMP"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4722 $as_echo "$OBJDUMP" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729 fi
4730 if test -z "$ac_cv_prog_OBJDUMP"; then
4731   ac_ct_OBJDUMP=$OBJDUMP
4732   # Extract the first word of "objdump", so it can be a program name with args.
4733 set dummy objdump; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4737   $as_echo_n "(cached) " >&6
4738 else
4739   if test -n "$ac_ct_OBJDUMP"; then
4740   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754   done
4755 IFS=$as_save_IFS
4756
4757 fi
4758 fi
4759 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4760 if test -n "$ac_ct_OBJDUMP"; then
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4762 $as_echo "$ac_ct_OBJDUMP" >&6; }
4763 else
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 fi
4767
4768   if test "x$ac_ct_OBJDUMP" = x; then
4769     OBJDUMP="false"
4770   else
4771     case $cross_compiling:$ac_tool_warned in
4772 yes:)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777     OBJDUMP=$ac_ct_OBJDUMP
4778   fi
4779 else
4780   OBJDUMP="$ac_cv_prog_OBJDUMP"
4781 fi
4782
4783 test -z "$OBJDUMP" && OBJDUMP=objdump
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4795 if ${lt_cv_deplibs_check_method+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   lt_cv_file_magic_cmd='$MAGIC_CMD'
4799 lt_cv_file_magic_test_file=
4800 lt_cv_deplibs_check_method='unknown'
4801 # Need to set the preceding variable on all platforms that support
4802 # interlibrary dependencies.
4803 # 'none' -- dependencies not supported.
4804 # `unknown' -- same as none, but documents that we really don't know.
4805 # 'pass_all' -- all dependencies passed with no checks.
4806 # 'test_compile' -- check by making test program.
4807 # 'file_magic [[regex]]' -- check by looking for files in library path
4808 # which responds to the $file_magic_cmd with a given extended regex.
4809 # If you have `file' or equivalent on your system and you're not sure
4810 # whether `pass_all' will *always* work, you probably want this one.
4811
4812 case $host_os in
4813 aix[4-9]*)
4814   lt_cv_deplibs_check_method=pass_all
4815   ;;
4816
4817 beos*)
4818   lt_cv_deplibs_check_method=pass_all
4819   ;;
4820
4821 bsdi[45]*)
4822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4823   lt_cv_file_magic_cmd='/usr/bin/file -L'
4824   lt_cv_file_magic_test_file=/shlib/libc.so
4825   ;;
4826
4827 cygwin*)
4828   # func_win32_libid is a shell function defined in ltmain.sh
4829   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4830   lt_cv_file_magic_cmd='func_win32_libid'
4831   ;;
4832
4833 mingw* | pw32*)
4834   # Base MSYS/MinGW do not provide the 'file' command needed by
4835   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4836   # unless we find 'file', for example because we are cross-compiling.
4837   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4838   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4839     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4840     lt_cv_file_magic_cmd='func_win32_libid'
4841   else
4842     # Keep this pattern in sync with the one in func_win32_libid.
4843     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4844     lt_cv_file_magic_cmd='$OBJDUMP -f'
4845   fi
4846   ;;
4847
4848 cegcc*)
4849   # use the weaker test based on 'objdump'. See mingw*.
4850   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4851   lt_cv_file_magic_cmd='$OBJDUMP -f'
4852   ;;
4853
4854 darwin* | rhapsody*)
4855   lt_cv_deplibs_check_method=pass_all
4856   ;;
4857
4858 freebsd* | dragonfly*)
4859   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4860     case $host_cpu in
4861     i*86 )
4862       # Not sure whether the presence of OpenBSD here was a mistake.
4863       # Let's accept both of them until this is cleared up.
4864       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4865       lt_cv_file_magic_cmd=/usr/bin/file
4866       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4867       ;;
4868     esac
4869   else
4870     lt_cv_deplibs_check_method=pass_all
4871   fi
4872   ;;
4873
4874 gnu*)
4875   lt_cv_deplibs_check_method=pass_all
4876   ;;
4877
4878 haiku*)
4879   lt_cv_deplibs_check_method=pass_all
4880   ;;
4881
4882 hpux10.20* | hpux11*)
4883   lt_cv_file_magic_cmd=/usr/bin/file
4884   case $host_cpu in
4885   ia64*)
4886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4887     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4888     ;;
4889   hppa*64*)
4890     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]'
4891     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4892     ;;
4893   *)
4894     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4895     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4896     ;;
4897   esac
4898   ;;
4899
4900 interix[3-9]*)
4901   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4902   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4903   ;;
4904
4905 irix5* | irix6* | nonstopux*)
4906   case $LD in
4907   *-32|*"-32 ") libmagic=32-bit;;
4908   *-n32|*"-n32 ") libmagic=N32;;
4909   *-64|*"-64 ") libmagic=64-bit;;
4910   *) libmagic=never-match;;
4911   esac
4912   lt_cv_deplibs_check_method=pass_all
4913   ;;
4914
4915 # This must be glibc/ELF.
4916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4917   lt_cv_deplibs_check_method=pass_all
4918   ;;
4919
4920 netbsd* | netbsdelf*-gnu)
4921   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923   else
4924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4925   fi
4926   ;;
4927
4928 newos6*)
4929   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4930   lt_cv_file_magic_cmd=/usr/bin/file
4931   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4932   ;;
4933
4934 *nto* | *qnx*)
4935   lt_cv_deplibs_check_method=pass_all
4936   ;;
4937
4938 openbsd*)
4939   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4940     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4941   else
4942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943   fi
4944   ;;
4945
4946 osf3* | osf4* | osf5*)
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 rdos*)
4951   lt_cv_deplibs_check_method=pass_all
4952   ;;
4953
4954 solaris*)
4955   lt_cv_deplibs_check_method=pass_all
4956   ;;
4957
4958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4959   lt_cv_deplibs_check_method=pass_all
4960   ;;
4961
4962 sysv4 | sysv4.3*)
4963   case $host_vendor in
4964   motorola)
4965     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]'
4966     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4967     ;;
4968   ncr)
4969     lt_cv_deplibs_check_method=pass_all
4970     ;;
4971   sequent)
4972     lt_cv_file_magic_cmd='/bin/file'
4973     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4974     ;;
4975   sni)
4976     lt_cv_file_magic_cmd='/bin/file'
4977     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4978     lt_cv_file_magic_test_file=/lib/libc.so
4979     ;;
4980   siemens)
4981     lt_cv_deplibs_check_method=pass_all
4982     ;;
4983   pc)
4984     lt_cv_deplibs_check_method=pass_all
4985     ;;
4986   esac
4987   ;;
4988
4989 tpf*)
4990   lt_cv_deplibs_check_method=pass_all
4991   ;;
4992 esac
4993
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4997
4998 file_magic_glob=
4999 want_nocaseglob=no
5000 if test "$build" = "$host"; then
5001   case $host_os in
5002   mingw* | pw32*)
5003     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5004       want_nocaseglob=yes
5005     else
5006       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5007     fi
5008     ;;
5009   esac
5010 fi
5011
5012 file_magic_cmd=$lt_cv_file_magic_cmd
5013 deplibs_check_method=$lt_cv_deplibs_check_method
5014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 if test -n "$ac_tool_prefix"; then
5038   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_DLLTOOL+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if test -n "$DLLTOOL"; then
5046   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053     for ac_exec_ext in '' $ac_executable_extensions; do
5054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057     break 2
5058   fi
5059 done
5060   done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 DLLTOOL=$ac_cv_prog_DLLTOOL
5066 if test -n "$DLLTOOL"; then
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5068 $as_echo "$DLLTOOL" >&6; }
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 fi
5076 if test -z "$ac_cv_prog_DLLTOOL"; then
5077   ac_ct_DLLTOOL=$DLLTOOL
5078   # Extract the first word of "dlltool", so it can be a program name with args.
5079 set dummy dlltool; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   if test -n "$ac_ct_DLLTOOL"; then
5086   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5106 if test -n "$ac_ct_DLLTOOL"; then
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5108 $as_echo "$ac_ct_DLLTOOL" >&6; }
5109 else
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114   if test "x$ac_ct_DLLTOOL" = x; then
5115     DLLTOOL="false"
5116   else
5117     case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123     DLLTOOL=$ac_ct_DLLTOOL
5124   fi
5125 else
5126   DLLTOOL="$ac_cv_prog_DLLTOOL"
5127 fi
5128
5129 test -z "$DLLTOOL" && DLLTOOL=dlltool
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5141 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5142 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   lt_cv_sharedlib_from_linklib_cmd='unknown'
5146
5147 case $host_os in
5148 cygwin* | mingw* | pw32* | cegcc*)
5149   # two different shell functions defined in ltmain.sh
5150   # decide which to use based on capabilities of $DLLTOOL
5151   case `$DLLTOOL --help 2>&1` in
5152   *--identify-strict*)
5153     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5154     ;;
5155   *)
5156     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5157     ;;
5158   esac
5159   ;;
5160 *)
5161   # fallback: assume linklib IS sharedlib
5162   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5163   ;;
5164 esac
5165
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5168 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5169 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5170 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5171
5172
5173
5174
5175
5176
5177
5178
5179 if test -n "$ac_tool_prefix"; then
5180   for ac_prog in ar
5181   do
5182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_AR+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test -n "$AR"; then
5190   ac_cv_prog_AR="$AR" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 AR=$ac_cv_prog_AR
5210 if test -n "$AR"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5212 $as_echo "$AR" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219     test -n "$AR" && break
5220   done
5221 fi
5222 if test -z "$AR"; then
5223   ac_ct_AR=$AR
5224   for ac_prog in ar
5225 do
5226   # Extract the first word of "$ac_prog", so it can be a program name with args.
5227 set dummy $ac_prog; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   if test -n "$ac_ct_AR"; then
5234   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243     ac_cv_prog_ac_ct_AR="$ac_prog"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250
5251 fi
5252 fi
5253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5254 if test -n "$ac_ct_AR"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5256 $as_echo "$ac_ct_AR" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262
5263   test -n "$ac_ct_AR" && break
5264 done
5265
5266   if test "x$ac_ct_AR" = x; then
5267     AR="false"
5268   else
5269     case $cross_compiling:$ac_tool_warned in
5270 yes:)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
5274 esac
5275     AR=$ac_ct_AR
5276   fi
5277 fi
5278
5279 : ${AR=ar}
5280 : ${AR_FLAGS=cru}
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5293 $as_echo_n "checking for archiver @FILE support... " >&6; }
5294 if ${lt_cv_ar_at_file+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   lt_cv_ar_at_file=no
5298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300
5301 int
5302 main ()
5303 {
5304
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310   echo conftest.$ac_objext > conftest.lst
5311       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5312       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5313   (eval $lt_ar_try) 2>&5
5314   ac_status=$?
5315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316   test $ac_status = 0; }
5317       if test "$ac_status" -eq 0; then
5318         # Ensure the archiver fails upon bogus file names.
5319         rm -f conftest.$ac_objext libconftest.a
5320         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5321   (eval $lt_ar_try) 2>&5
5322   ac_status=$?
5323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324   test $ac_status = 0; }
5325         if test "$ac_status" -ne 0; then
5326           lt_cv_ar_at_file=@
5327         fi
5328       fi
5329       rm -f conftest.* libconftest.a
5330
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5336 $as_echo "$lt_cv_ar_at_file" >&6; }
5337
5338 if test "x$lt_cv_ar_at_file" = xno; then
5339   archiver_list_spec=
5340 else
5341   archiver_list_spec=$lt_cv_ar_at_file
5342 fi
5343
5344
5345
5346
5347
5348
5349
5350 if test -n "$ac_tool_prefix"; then
5351   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}strip; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_STRIP+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   if test -n "$STRIP"; then
5359   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375
5376 fi
5377 fi
5378 STRIP=$ac_cv_prog_STRIP
5379 if test -n "$STRIP"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5381 $as_echo "$STRIP" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388 fi
5389 if test -z "$ac_cv_prog_STRIP"; then
5390   ac_ct_STRIP=$STRIP
5391   # Extract the first word of "strip", so it can be a program name with args.
5392 set dummy strip; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   if test -n "$ac_ct_STRIP"; then
5399   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408     ac_cv_prog_ac_ct_STRIP="strip"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5419 if test -n "$ac_ct_STRIP"; then
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5421 $as_echo "$ac_ct_STRIP" >&6; }
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427   if test "x$ac_ct_STRIP" = x; then
5428     STRIP=":"
5429   else
5430     case $cross_compiling:$ac_tool_warned in
5431 yes:)
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned=yes ;;
5435 esac
5436     STRIP=$ac_ct_STRIP
5437   fi
5438 else
5439   STRIP="$ac_cv_prog_STRIP"
5440 fi
5441
5442 test -z "$STRIP" && STRIP=:
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_RANLIB+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   if test -n "$RANLIB"; then
5458   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 RANLIB=$ac_cv_prog_RANLIB
5478 if test -n "$RANLIB"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5480 $as_echo "$RANLIB" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_RANLIB"; then
5489   ac_ct_RANLIB=$RANLIB
5490   # Extract the first word of "ranlib", so it can be a program name with args.
5491 set dummy ranlib; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   if test -n "$ac_ct_RANLIB"; then
5498   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505     for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_ac_ct_RANLIB="ranlib"
5508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512   done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5518 if test -n "$ac_ct_RANLIB"; then
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5520 $as_echo "$ac_ct_RANLIB" >&6; }
5521 else
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526   if test "x$ac_ct_RANLIB" = x; then
5527     RANLIB=":"
5528   else
5529     case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535     RANLIB=$ac_ct_RANLIB
5536   fi
5537 else
5538   RANLIB="$ac_cv_prog_RANLIB"
5539 fi
5540
5541 test -z "$RANLIB" && RANLIB=:
5542
5543
5544
5545
5546
5547
5548 # Determine commands to create old-style static archives.
5549 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5550 old_postinstall_cmds='chmod 644 $oldlib'
5551 old_postuninstall_cmds=
5552
5553 if test -n "$RANLIB"; then
5554   case $host_os in
5555   openbsd*)
5556     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5557     ;;
5558   *)
5559     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5560     ;;
5561   esac
5562   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5563 fi
5564
5565 case $host_os in
5566   darwin*)
5567     lock_old_archive_extraction=yes ;;
5568   *)
5569     lock_old_archive_extraction=no ;;
5570 esac
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 # If no C compiler was specified, use CC.
5611 LTCC=${LTCC-"$CC"}
5612
5613 # If no C compiler flags were specified, use CFLAGS.
5614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5615
5616 # Allow CC to be a program name with arguments.
5617 compiler=$CC
5618
5619
5620 # Check for command to grab the raw symbol name followed by C symbol from nm.
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5622 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5623 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626
5627 # These are sane defaults that work on at least a few old systems.
5628 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5629
5630 # Character class describing NM global symbol codes.
5631 symcode='[BCDEGRST]'
5632
5633 # Regexp to match symbols that can be accessed directly from C.
5634 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5635
5636 # Define system-specific variables.
5637 case $host_os in
5638 aix*)
5639   symcode='[BCDT]'
5640   ;;
5641 cygwin* | mingw* | pw32* | cegcc*)
5642   symcode='[ABCDGISTW]'
5643   ;;
5644 hpux*)
5645   if test "$host_cpu" = ia64; then
5646     symcode='[ABCDEGRST]'
5647   fi
5648   ;;
5649 irix* | nonstopux*)
5650   symcode='[BCDEGRST]'
5651   ;;
5652 osf*)
5653   symcode='[BCDEGQRST]'
5654   ;;
5655 solaris*)
5656   symcode='[BDRT]'
5657   ;;
5658 sco3.2v5*)
5659   symcode='[DT]'
5660   ;;
5661 sysv4.2uw2*)
5662   symcode='[DT]'
5663   ;;
5664 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5665   symcode='[ABDT]'
5666   ;;
5667 sysv4)
5668   symcode='[DFNSTU]'
5669   ;;
5670 esac
5671
5672 # If we're using GNU nm, then use its standard symbol codes.
5673 case `$NM -V 2>&1` in
5674 *GNU* | *'with BFD'*)
5675   symcode='[ABCDGIRSTW]' ;;
5676 esac
5677
5678 # Transform an extracted symbol line into a proper C declaration.
5679 # Some systems (esp. on ia64) link data and code symbols differently,
5680 # so use this general approach.
5681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5682
5683 # Transform an extracted symbol line into symbol name and symbol address
5684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5685 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5686
5687 # Handle CRLF in mingw tool chain
5688 opt_cr=
5689 case $build_os in
5690 mingw*)
5691   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5692   ;;
5693 esac
5694
5695 # Try without a prefix underscore, then with it.
5696 for ac_symprfx in "" "_"; do
5697
5698   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5699   symxfrm="\\1 $ac_symprfx\\2 \\2"
5700
5701   # Write the raw and C identifiers.
5702   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703     # Fake it for dumpbin and say T for any non-static function
5704     # and D for any global variable.
5705     # Also find C++ and __fastcall symbols from MSVC++,
5706     # which start with @ or ?.
5707     lt_cv_sys_global_symbol_pipe="$AWK '"\
5708 "     {last_section=section; section=\$ 3};"\
5709 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5710 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5711 "     \$ 0!~/External *\|/{next};"\
5712 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5713 "     {if(hide[section]) next};"\
5714 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5715 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5716 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5717 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5718 "     ' prfx=^$ac_symprfx"
5719   else
5720     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5721   fi
5722   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5723
5724   # Check to see that the pipe works correctly.
5725   pipe_works=no
5726
5727   rm -f conftest*
5728   cat > conftest.$ac_ext <<_LT_EOF
5729 #ifdef __cplusplus
5730 extern "C" {
5731 #endif
5732 char nm_test_var;
5733 void nm_test_func(void);
5734 void nm_test_func(void){}
5735 #ifdef __cplusplus
5736 }
5737 #endif
5738 int main(){nm_test_var='a';nm_test_func();return(0);}
5739 _LT_EOF
5740
5741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742   (eval $ac_compile) 2>&5
5743   ac_status=$?
5744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745   test $ac_status = 0; }; then
5746     # Now try to grab the symbols.
5747     nlist=conftest.nm
5748     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5749   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5750   ac_status=$?
5751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752   test $ac_status = 0; } && test -s "$nlist"; then
5753       # Try sorting and uniquifying the output.
5754       if sort "$nlist" | uniq > "$nlist"T; then
5755         mv -f "$nlist"T "$nlist"
5756       else
5757         rm -f "$nlist"T
5758       fi
5759
5760       # Make sure that we snagged all the symbols we need.
5761       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5762         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5763           cat <<_LT_EOF > conftest.$ac_ext
5764 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5767    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5768 # define LT_DLSYM_CONST
5769 #elif defined(__osf__)
5770 /* This system does not cope well with relocations in const data.  */
5771 # define LT_DLSYM_CONST
5772 #else
5773 # define LT_DLSYM_CONST const
5774 #endif
5775
5776 #ifdef __cplusplus
5777 extern "C" {
5778 #endif
5779
5780 _LT_EOF
5781           # Now generate the symbol file.
5782           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5783
5784           cat <<_LT_EOF >> conftest.$ac_ext
5785
5786 /* The mapping between symbol names and symbols.  */
5787 LT_DLSYM_CONST struct {
5788   const char *name;
5789   void       *address;
5790 }
5791 lt__PROGRAM__LTX_preloaded_symbols[] =
5792 {
5793   { "@PROGRAM@", (void *) 0 },
5794 _LT_EOF
5795           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5796           cat <<\_LT_EOF >> conftest.$ac_ext
5797   {0, (void *) 0}
5798 };
5799
5800 /* This works around a problem in FreeBSD linker */
5801 #ifdef FREEBSD_WORKAROUND
5802 static const void *lt_preloaded_setup() {
5803   return lt__PROGRAM__LTX_preloaded_symbols;
5804 }
5805 #endif
5806
5807 #ifdef __cplusplus
5808 }
5809 #endif
5810 _LT_EOF
5811           # Now try linking the two files.
5812           mv conftest.$ac_objext conftstm.$ac_objext
5813           lt_globsym_save_LIBS=$LIBS
5814           lt_globsym_save_CFLAGS=$CFLAGS
5815           LIBS="conftstm.$ac_objext"
5816           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5817           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5818   (eval $ac_link) 2>&5
5819   ac_status=$?
5820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5822             pipe_works=yes
5823           fi
5824           LIBS=$lt_globsym_save_LIBS
5825           CFLAGS=$lt_globsym_save_CFLAGS
5826         else
5827           echo "cannot find nm_test_func in $nlist" >&5
5828         fi
5829       else
5830         echo "cannot find nm_test_var in $nlist" >&5
5831       fi
5832     else
5833       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5834     fi
5835   else
5836     echo "$progname: failed program was:" >&5
5837     cat conftest.$ac_ext >&5
5838   fi
5839   rm -rf conftest* conftst*
5840
5841   # Do not use the global_symbol_pipe unless it works.
5842   if test "$pipe_works" = yes; then
5843     break
5844   else
5845     lt_cv_sys_global_symbol_pipe=
5846   fi
5847 done
5848
5849 fi
5850
5851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5852   lt_cv_sys_global_symbol_to_cdecl=
5853 fi
5854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5856 $as_echo "failed" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5859 $as_echo "ok" >&6; }
5860 fi
5861
5862 # Response file support.
5863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5864   nm_file_list_spec='@'
5865 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5866   nm_file_list_spec='@'
5867 fi
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5896 $as_echo_n "checking for sysroot... " >&6; }
5897
5898 # Check whether --with-sysroot was given.
5899 if test "${with_sysroot+set}" = set; then :
5900   withval=$with_sysroot;
5901 else
5902   with_sysroot=no
5903 fi
5904
5905
5906 lt_sysroot=
5907 case ${with_sysroot} in #(
5908  yes)
5909    if test "$GCC" = yes; then
5910      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5911    fi
5912    ;; #(
5913  /*)
5914    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5915    ;; #(
5916  no|'')
5917    ;; #(
5918  *)
5919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5920 $as_echo "${with_sysroot}" >&6; }
5921    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5922    ;;
5923 esac
5924
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5926 $as_echo "${lt_sysroot:-no}" >&6; }
5927
5928
5929
5930
5931
5932 # Check whether --enable-libtool-lock was given.
5933 if test "${enable_libtool_lock+set}" = set; then :
5934   enableval=$enable_libtool_lock;
5935 fi
5936
5937 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5938
5939 # Some flags need to be propagated to the compiler or linker for good
5940 # libtool support.
5941 case $host in
5942 ia64-*-hpux*)
5943   # Find out which ABI we are using.
5944   echo 'int i;' > conftest.$ac_ext
5945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5946   (eval $ac_compile) 2>&5
5947   ac_status=$?
5948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949   test $ac_status = 0; }; then
5950     case `/usr/bin/file conftest.$ac_objext` in
5951       *ELF-32*)
5952         HPUX_IA64_MODE="32"
5953         ;;
5954       *ELF-64*)
5955         HPUX_IA64_MODE="64"
5956         ;;
5957     esac
5958   fi
5959   rm -rf conftest*
5960   ;;
5961 *-*-irix6*)
5962   # Find out which ABI we are using.
5963   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5965   (eval $ac_compile) 2>&5
5966   ac_status=$?
5967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968   test $ac_status = 0; }; then
5969     if test "$lt_cv_prog_gnu_ld" = yes; then
5970       case `/usr/bin/file conftest.$ac_objext` in
5971         *32-bit*)
5972           LD="${LD-ld} -melf32bsmip"
5973           ;;
5974         *N32*)
5975           LD="${LD-ld} -melf32bmipn32"
5976           ;;
5977         *64-bit*)
5978           LD="${LD-ld} -melf64bmip"
5979         ;;
5980       esac
5981     else
5982       case `/usr/bin/file conftest.$ac_objext` in
5983         *32-bit*)
5984           LD="${LD-ld} -32"
5985           ;;
5986         *N32*)
5987           LD="${LD-ld} -n32"
5988           ;;
5989         *64-bit*)
5990           LD="${LD-ld} -64"
5991           ;;
5992       esac
5993     fi
5994   fi
5995   rm -rf conftest*
5996   ;;
5997
5998 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5999 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6000   # Find out which ABI we are using.
6001   echo 'int i;' > conftest.$ac_ext
6002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6003   (eval $ac_compile) 2>&5
6004   ac_status=$?
6005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006   test $ac_status = 0; }; then
6007     case `/usr/bin/file conftest.o` in
6008       *32-bit*)
6009         case $host in
6010           x86_64-*kfreebsd*-gnu)
6011             LD="${LD-ld} -m elf_i386_fbsd"
6012             ;;
6013           x86_64-*linux*)
6014             LD="${LD-ld} -m elf_i386"
6015             ;;
6016           ppc64-*linux*|powerpc64-*linux*)
6017             LD="${LD-ld} -m elf32ppclinux"
6018             ;;
6019           s390x-*linux*)
6020             LD="${LD-ld} -m elf_s390"
6021             ;;
6022           sparc64-*linux*)
6023             LD="${LD-ld} -m elf32_sparc"
6024             ;;
6025         esac
6026         ;;
6027       *64-bit*)
6028         case $host in
6029           x86_64-*kfreebsd*-gnu)
6030             LD="${LD-ld} -m elf_x86_64_fbsd"
6031             ;;
6032           x86_64-*linux*)
6033             LD="${LD-ld} -m elf_x86_64"
6034             ;;
6035           ppc*-*linux*|powerpc*-*linux*)
6036             LD="${LD-ld} -m elf64ppc"
6037             ;;
6038           s390*-*linux*|s390*-*tpf*)
6039             LD="${LD-ld} -m elf64_s390"
6040             ;;
6041           sparc*-*linux*)
6042             LD="${LD-ld} -m elf64_sparc"
6043             ;;
6044         esac
6045         ;;
6046     esac
6047   fi
6048   rm -rf conftest*
6049   ;;
6050
6051 *-*-sco3.2v5*)
6052   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6053   SAVE_CFLAGS="$CFLAGS"
6054   CFLAGS="$CFLAGS -belf"
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6056 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6057 if ${lt_cv_cc_needs_belf+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   ac_ext=c
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065
6066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h.  */
6068
6069 int
6070 main ()
6071 {
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"; then :
6078   lt_cv_cc_needs_belf=yes
6079 else
6080   lt_cv_cc_needs_belf=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083     conftest$ac_exeext conftest.$ac_ext
6084      ac_ext=c
6085 ac_cpp='$CPP $CPPFLAGS'
6086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6089
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6092 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6093   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6094     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6095     CFLAGS="$SAVE_CFLAGS"
6096   fi
6097   ;;
6098 *-*solaris*)
6099   # Find out which ABI we are using.
6100   echo 'int i;' > conftest.$ac_ext
6101   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6102   (eval $ac_compile) 2>&5
6103   ac_status=$?
6104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105   test $ac_status = 0; }; then
6106     case `/usr/bin/file conftest.o` in
6107     *64-bit*)
6108       case $lt_cv_prog_gnu_ld in
6109       yes*)
6110         case $host in
6111         i?86-*-solaris*)
6112           LD="${LD-ld} -m elf_x86_64"
6113           ;;
6114         sparc*-*-solaris*)
6115           LD="${LD-ld} -m elf64_sparc"
6116           ;;
6117         esac
6118         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6119         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6120           LD="${LD-ld}_sol2"
6121         fi
6122         ;;
6123       *)
6124         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6125           LD="${LD-ld} -64"
6126         fi
6127         ;;
6128       esac
6129       ;;
6130     esac
6131   fi
6132   rm -rf conftest*
6133   ;;
6134 esac
6135
6136 need_locks="$enable_libtool_lock"
6137
6138 if test -n "$ac_tool_prefix"; then
6139   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}mt; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   if test -n "$MANIFEST_TOOL"; then
6147   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161   done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6167 if test -n "$MANIFEST_TOOL"; then
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6169 $as_echo "$MANIFEST_TOOL" >&6; }
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175
6176 fi
6177 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6178   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6179   # Extract the first word of "mt", so it can be a program name with args.
6180 set dummy mt; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test -n "$ac_ct_MANIFEST_TOOL"; then
6187   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6207 if test -n "$ac_ct_MANIFEST_TOOL"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6209 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6216     MANIFEST_TOOL=":"
6217   else
6218     case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6225   fi
6226 else
6227   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6228 fi
6229
6230 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6232 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6233 if ${lt_cv_path_mainfest_tool+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   lt_cv_path_mainfest_tool=no
6237   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6238   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6239   cat conftest.err >&5
6240   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6241     lt_cv_path_mainfest_tool=yes
6242   fi
6243   rm -f conftest*
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6246 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6247 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6248   MANIFEST_TOOL=:
6249 fi
6250
6251
6252
6253
6254
6255
6256   case $host_os in
6257     rhapsody* | darwin*)
6258     if test -n "$ac_tool_prefix"; then
6259   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   if test -n "$DSYMUTIL"; then
6267   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6287 if test -n "$DSYMUTIL"; then
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6289 $as_echo "$DSYMUTIL" >&6; }
6290 else
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_DSYMUTIL"; then
6298   ac_ct_DSYMUTIL=$DSYMUTIL
6299   # Extract the first word of "dsymutil", so it can be a program name with args.
6300 set dummy dsymutil; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$ac_ct_DSYMUTIL"; then
6307   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321   done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6327 if test -n "$ac_ct_DSYMUTIL"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6329 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335   if test "x$ac_ct_DSYMUTIL" = x; then
6336     DSYMUTIL=":"
6337   else
6338     case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344     DSYMUTIL=$ac_ct_DSYMUTIL
6345   fi
6346 else
6347   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6348 fi
6349
6350     if test -n "$ac_tool_prefix"; then
6351   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_NMEDIT+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358   if test -n "$NMEDIT"; then
6359   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366     for ac_exec_ext in '' $ac_executable_extensions; do
6367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373   done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 NMEDIT=$ac_cv_prog_NMEDIT
6379 if test -n "$NMEDIT"; then
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6381 $as_echo "$NMEDIT" >&6; }
6382 else
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_NMEDIT"; then
6390   ac_ct_NMEDIT=$NMEDIT
6391   # Extract the first word of "nmedit", so it can be a program name with args.
6392 set dummy nmedit; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   if test -n "$ac_ct_NMEDIT"; then
6399   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6419 if test -n "$ac_ct_NMEDIT"; then
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6421 $as_echo "$ac_ct_NMEDIT" >&6; }
6422 else
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427   if test "x$ac_ct_NMEDIT" = x; then
6428     NMEDIT=":"
6429   else
6430     case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436     NMEDIT=$ac_ct_NMEDIT
6437   fi
6438 else
6439   NMEDIT="$ac_cv_prog_NMEDIT"
6440 fi
6441
6442     if test -n "$ac_tool_prefix"; then
6443   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_LIPO+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$LIPO"; then
6451   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 LIPO=$ac_cv_prog_LIPO
6471 if test -n "$LIPO"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6473 $as_echo "$LIPO" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_LIPO"; then
6482   ac_ct_LIPO=$LIPO
6483   # Extract the first word of "lipo", so it can be a program name with args.
6484 set dummy lipo; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   if test -n "$ac_ct_LIPO"; then
6491   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498     for ac_exec_ext in '' $ac_executable_extensions; do
6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500     ac_cv_prog_ac_ct_LIPO="lipo"
6501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505   done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6511 if test -n "$ac_ct_LIPO"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6513 $as_echo "$ac_ct_LIPO" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519   if test "x$ac_ct_LIPO" = x; then
6520     LIPO=":"
6521   else
6522     case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528     LIPO=$ac_ct_LIPO
6529   fi
6530 else
6531   LIPO="$ac_cv_prog_LIPO"
6532 fi
6533
6534     if test -n "$ac_tool_prefix"; then
6535   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_OTOOL+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$OTOOL"; then
6543   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 OTOOL=$ac_cv_prog_OTOOL
6563 if test -n "$OTOOL"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6565 $as_echo "$OTOOL" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_OTOOL"; then
6574   ac_ct_OTOOL=$OTOOL
6575   # Extract the first word of "otool", so it can be a program name with args.
6576 set dummy otool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   if test -n "$ac_ct_OTOOL"; then
6583   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590     for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_prog_ac_ct_OTOOL="otool"
6593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597   done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6603 if test -n "$ac_ct_OTOOL"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6605 $as_echo "$ac_ct_OTOOL" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611   if test "x$ac_ct_OTOOL" = x; then
6612     OTOOL=":"
6613   else
6614     case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620     OTOOL=$ac_ct_OTOOL
6621   fi
6622 else
6623   OTOOL="$ac_cv_prog_OTOOL"
6624 fi
6625
6626     if test -n "$ac_tool_prefix"; then
6627   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_OTOOL64+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$OTOOL64"; then
6635   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 OTOOL64=$ac_cv_prog_OTOOL64
6655 if test -n "$OTOOL64"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6657 $as_echo "$OTOOL64" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_OTOOL64"; then
6666   ac_ct_OTOOL64=$OTOOL64
6667   # Extract the first word of "otool64", so it can be a program name with args.
6668 set dummy otool64; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   if test -n "$ac_ct_OTOOL64"; then
6675   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682     for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_prog_ac_ct_OTOOL64="otool64"
6685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689   done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6695 if test -n "$ac_ct_OTOOL64"; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6697 $as_echo "$ac_ct_OTOOL64" >&6; }
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703   if test "x$ac_ct_OTOOL64" = x; then
6704     OTOOL64=":"
6705   else
6706     case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     OTOOL64=$ac_ct_OTOOL64
6713   fi
6714 else
6715   OTOOL64="$ac_cv_prog_OTOOL64"
6716 fi
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6745 $as_echo_n "checking for -single_module linker flag... " >&6; }
6746 if ${lt_cv_apple_cc_single_mod+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   lt_cv_apple_cc_single_mod=no
6750       if test -z "${LT_MULTI_MODULE}"; then
6751         # By default we will add the -single_module flag. You can override
6752         # by either setting the environment variable LT_MULTI_MODULE
6753         # non-empty at configure time, or by adding -multi_module to the
6754         # link flags.
6755         rm -rf libconftest.dylib*
6756         echo "int foo(void){return 1;}" > conftest.c
6757         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6758 -dynamiclib -Wl,-single_module conftest.c" >&5
6759         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6761         _lt_result=$?
6762         # If there is a non-empty error log, and "single_module"
6763         # appears in it, assume the flag caused a linker warning
6764         if test -s conftest.err && $GREP single_module conftest.err; then
6765           cat conftest.err >&5
6766         # Otherwise, if the output was created with a 0 exit code from
6767         # the compiler, it worked.
6768         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6769           lt_cv_apple_cc_single_mod=yes
6770         else
6771           cat conftest.err >&5
6772         fi
6773         rm -rf libconftest.dylib*
6774         rm -f conftest.*
6775       fi
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6778 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6779
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6781 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6782 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   lt_cv_ld_exported_symbols_list=no
6786       save_LDFLAGS=$LDFLAGS
6787       echo "_main" > conftest.sym
6788       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801   lt_cv_ld_exported_symbols_list=yes
6802 else
6803   lt_cv_ld_exported_symbols_list=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806     conftest$ac_exeext conftest.$ac_ext
6807         LDFLAGS="$save_LDFLAGS"
6808
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6811 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6812
6813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6814 $as_echo_n "checking for -force_load linker flag... " >&6; }
6815 if ${lt_cv_ld_force_load+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   lt_cv_ld_force_load=no
6819       cat > conftest.c << _LT_EOF
6820 int forced_loaded() { return 2;}
6821 _LT_EOF
6822       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6823       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6824       echo "$AR cru libconftest.a conftest.o" >&5
6825       $AR cru libconftest.a conftest.o 2>&5
6826       echo "$RANLIB libconftest.a" >&5
6827       $RANLIB libconftest.a 2>&5
6828       cat > conftest.c << _LT_EOF
6829 int main() { return 0;}
6830 _LT_EOF
6831       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6832       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6833       _lt_result=$?
6834       if test -s conftest.err && $GREP force_load conftest.err; then
6835         cat conftest.err >&5
6836       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6837         lt_cv_ld_force_load=yes
6838       else
6839         cat conftest.err >&5
6840       fi
6841         rm -f conftest.err libconftest.a conftest conftest.c
6842         rm -rf conftest.dSYM
6843
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6846 $as_echo "$lt_cv_ld_force_load" >&6; }
6847     case $host_os in
6848     rhapsody* | darwin1.[012])
6849       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6850     darwin1.*)
6851       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6852     darwin*) # darwin 5.x on
6853       # if running on 10.5 or later, the deployment target defaults
6854       # to the OS version, if on x86, and 10.4, the deployment
6855       # target defaults to 10.4. Don't you love it?
6856       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6857         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6858           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6859         10.[012]*)
6860           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6861         10.*)
6862           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6863       esac
6864     ;;
6865   esac
6866     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6867       _lt_dar_single_mod='$single_module'
6868     fi
6869     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6870       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6871     else
6872       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6873     fi
6874     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6875       _lt_dsymutil='~$DSYMUTIL $lib || :'
6876     else
6877       _lt_dsymutil=
6878     fi
6879     ;;
6880   esac
6881
6882 ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6889 # On Suns, sometimes $CPP names a directory.
6890 if test -n "$CPP" && test -d "$CPP"; then
6891   CPP=
6892 fi
6893 if test -z "$CPP"; then
6894   if ${ac_cv_prog_CPP+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897       # Double quotes because CPP needs to be expanded
6898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6899     do
6900       ac_preproc_ok=false
6901 for ac_c_preproc_warn_flag in '' yes
6902 do
6903   # Use a header file that comes with gcc, so configuring glibc
6904   # with a fresh cross-compiler works.
6905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906   # <limits.h> exists even on freestanding compilers.
6907   # On the NeXT, cc -E runs the code through the compiler's parser,
6908   # not just through cpp. "Syntax error" is here to catch this case.
6909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h.  */
6911 #ifdef __STDC__
6912 # include <limits.h>
6913 #else
6914 # include <assert.h>
6915 #endif
6916                      Syntax error
6917 _ACEOF
6918 if ac_fn_c_try_cpp "$LINENO"; then :
6919
6920 else
6921   # Broken: fails on valid input.
6922 continue
6923 fi
6924 rm -f conftest.err conftest.i conftest.$ac_ext
6925
6926   # OK, works on sane cases.  Now check whether nonexistent headers
6927   # can be detected and how.
6928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930 #include <ac_nonexistent.h>
6931 _ACEOF
6932 if ac_fn_c_try_cpp "$LINENO"; then :
6933   # Broken: success on invalid input.
6934 continue
6935 else
6936   # Passes both tests.
6937 ac_preproc_ok=:
6938 break
6939 fi
6940 rm -f conftest.err conftest.i conftest.$ac_ext
6941
6942 done
6943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6944 rm -f conftest.i conftest.err conftest.$ac_ext
6945 if $ac_preproc_ok; then :
6946   break
6947 fi
6948
6949     done
6950     ac_cv_prog_CPP=$CPP
6951
6952 fi
6953   CPP=$ac_cv_prog_CPP
6954 else
6955   ac_cv_prog_CPP=$CPP
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6958 $as_echo "$CPP" >&6; }
6959 ac_preproc_ok=false
6960 for ac_c_preproc_warn_flag in '' yes
6961 do
6962   # Use a header file that comes with gcc, so configuring glibc
6963   # with a fresh cross-compiler works.
6964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965   # <limits.h> exists even on freestanding compilers.
6966   # On the NeXT, cc -E runs the code through the compiler's parser,
6967   # not just through cpp. "Syntax error" is here to catch this case.
6968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h.  */
6970 #ifdef __STDC__
6971 # include <limits.h>
6972 #else
6973 # include <assert.h>
6974 #endif
6975                      Syntax error
6976 _ACEOF
6977 if ac_fn_c_try_cpp "$LINENO"; then :
6978
6979 else
6980   # Broken: fails on valid input.
6981 continue
6982 fi
6983 rm -f conftest.err conftest.i conftest.$ac_ext
6984
6985   # OK, works on sane cases.  Now check whether nonexistent headers
6986   # can be detected and how.
6987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if ac_fn_c_try_cpp "$LINENO"; then :
6992   # Broken: success on invalid input.
6993 continue
6994 else
6995   # Passes both tests.
6996 ac_preproc_ok=:
6997 break
6998 fi
6999 rm -f conftest.err conftest.i conftest.$ac_ext
7000
7001 done
7002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003 rm -f conftest.i conftest.err conftest.$ac_ext
7004 if $ac_preproc_ok; then :
7005
7006 else
7007   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7009 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7010 See \`config.log' for more details" "$LINENO" 5; }
7011 fi
7012
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7021 $as_echo_n "checking for ANSI C header files... " >&6; }
7022 if ${ac_cv_header_stdc+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h.  */
7027 #include <stdlib.h>
7028 #include <stdarg.h>
7029 #include <string.h>
7030 #include <float.h>
7031
7032 int
7033 main ()
7034 {
7035
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041   ac_cv_header_stdc=yes
7042 else
7043   ac_cv_header_stdc=no
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046
7047 if test $ac_cv_header_stdc = yes; then
7048   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 #include <string.h>
7052
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055   $EGREP "memchr" >/dev/null 2>&1; then :
7056
7057 else
7058   ac_cv_header_stdc=no
7059 fi
7060 rm -f conftest*
7061
7062 fi
7063
7064 if test $ac_cv_header_stdc = yes; then
7065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 #include <stdlib.h>
7069
7070 _ACEOF
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072   $EGREP "free" >/dev/null 2>&1; then :
7073
7074 else
7075   ac_cv_header_stdc=no
7076 fi
7077 rm -f conftest*
7078
7079 fi
7080
7081 if test $ac_cv_header_stdc = yes; then
7082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083   if test "$cross_compiling" = yes; then :
7084   :
7085 else
7086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h.  */
7088 #include <ctype.h>
7089 #include <stdlib.h>
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7093 #else
7094 # define ISLOWER(c) \
7095                    (('a' <= (c) && (c) <= 'i') \
7096                      || ('j' <= (c) && (c) <= 'r') \
7097                      || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7099 #endif
7100
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7102 int
7103 main ()
7104 {
7105   int i;
7106   for (i = 0; i < 256; i++)
7107     if (XOR (islower (i), ISLOWER (i))
7108         || toupper (i) != TOUPPER (i))
7109       return 2;
7110   return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_run "$LINENO"; then :
7114
7115 else
7116   ac_cv_header_stdc=no
7117 fi
7118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7119   conftest.$ac_objext conftest.beam conftest.$ac_ext
7120 fi
7121
7122 fi
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7125 $as_echo "$ac_cv_header_stdc" >&6; }
7126 if test $ac_cv_header_stdc = yes; then
7127
7128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7129
7130 fi
7131
7132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7134                   inttypes.h stdint.h unistd.h
7135 do :
7136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7138 "
7139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7140   cat >>confdefs.h <<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7142 _ACEOF
7143
7144 fi
7145
7146 done
7147
7148
7149 for ac_header in dlfcn.h
7150 do :
7151   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7152 "
7153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7154   cat >>confdefs.h <<_ACEOF
7155 #define HAVE_DLFCN_H 1
7156 _ACEOF
7157
7158 fi
7159
7160 done
7161
7162
7163
7164
7165
7166 # Set options
7167
7168
7169
7170         enable_dlopen=no
7171
7172
7173   enable_win32_dll=no
7174
7175
7176             # Check whether --enable-shared was given.
7177 if test "${enable_shared+set}" = set; then :
7178   enableval=$enable_shared; p=${PACKAGE-default}
7179     case $enableval in
7180     yes) enable_shared=yes ;;
7181     no) enable_shared=no ;;
7182     *)
7183       enable_shared=no
7184       # Look at the argument we got.  We use all the common list separators.
7185       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186       for pkg in $enableval; do
7187         IFS="$lt_save_ifs"
7188         if test "X$pkg" = "X$p"; then
7189           enable_shared=yes
7190         fi
7191       done
7192       IFS="$lt_save_ifs"
7193       ;;
7194     esac
7195 else
7196   enable_shared=yes
7197 fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207   # Check whether --enable-static was given.
7208 if test "${enable_static+set}" = set; then :
7209   enableval=$enable_static; p=${PACKAGE-default}
7210     case $enableval in
7211     yes) enable_static=yes ;;
7212     no) enable_static=no ;;
7213     *)
7214      enable_static=no
7215       # Look at the argument we got.  We use all the common list separators.
7216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7217       for pkg in $enableval; do
7218         IFS="$lt_save_ifs"
7219         if test "X$pkg" = "X$p"; then
7220           enable_static=yes
7221         fi
7222       done
7223       IFS="$lt_save_ifs"
7224       ;;
7225     esac
7226 else
7227   enable_static=yes
7228 fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 # Check whether --with-pic was given.
7240 if test "${with_pic+set}" = set; then :
7241   withval=$with_pic; lt_p=${PACKAGE-default}
7242     case $withval in
7243     yes|no) pic_mode=$withval ;;
7244     *)
7245       pic_mode=default
7246       # Look at the argument we got.  We use all the common list separators.
7247       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7248       for lt_pkg in $withval; do
7249         IFS="$lt_save_ifs"
7250         if test "X$lt_pkg" = "X$lt_p"; then
7251           pic_mode=yes
7252         fi
7253       done
7254       IFS="$lt_save_ifs"
7255       ;;
7256     esac
7257 else
7258   pic_mode=default
7259 fi
7260
7261
7262 test -z "$pic_mode" && pic_mode=default
7263
7264
7265
7266
7267
7268
7269
7270   # Check whether --enable-fast-install was given.
7271 if test "${enable_fast_install+set}" = set; then :
7272   enableval=$enable_fast_install; p=${PACKAGE-default}
7273     case $enableval in
7274     yes) enable_fast_install=yes ;;
7275     no) enable_fast_install=no ;;
7276     *)
7277       enable_fast_install=no
7278       # Look at the argument we got.  We use all the common list separators.
7279       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7280       for pkg in $enableval; do
7281         IFS="$lt_save_ifs"
7282         if test "X$pkg" = "X$p"; then
7283           enable_fast_install=yes
7284         fi
7285       done
7286       IFS="$lt_save_ifs"
7287       ;;
7288     esac
7289 else
7290   enable_fast_install=yes
7291 fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 # This can be used to rebuild libtool when needed
7304 LIBTOOL_DEPS="$ltmain"
7305
7306 # Always use our own libtool.
7307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338 test -z "$LN_S" && LN_S="ln -s"
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 if test -n "${ZSH_VERSION+set}" ; then
7354    setopt NO_GLOB_SUBST
7355 fi
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7358 $as_echo_n "checking for objdir... " >&6; }
7359 if ${lt_cv_objdir+:} false; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   rm -f .libs 2>/dev/null
7363 mkdir .libs 2>/dev/null
7364 if test -d .libs; then
7365   lt_cv_objdir=.libs
7366 else
7367   # MS-DOS does not allow filenames that begin with a dot.
7368   lt_cv_objdir=_libs
7369 fi
7370 rmdir .libs 2>/dev/null
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7373 $as_echo "$lt_cv_objdir" >&6; }
7374 objdir=$lt_cv_objdir
7375
7376
7377
7378
7379
7380 cat >>confdefs.h <<_ACEOF
7381 #define LT_OBJDIR "$lt_cv_objdir/"
7382 _ACEOF
7383
7384
7385
7386
7387 case $host_os in
7388 aix3*)
7389   # AIX sometimes has problems with the GCC collect2 program.  For some
7390   # reason, if we set the COLLECT_NAMES environment variable, the problems
7391   # vanish in a puff of smoke.
7392   if test "X${COLLECT_NAMES+set}" != Xset; then
7393     COLLECT_NAMES=
7394     export COLLECT_NAMES
7395   fi
7396   ;;
7397 esac
7398
7399 # Global variables:
7400 ofile=libtool
7401 can_build_shared=yes
7402
7403 # All known linkers require a `.a' archive for static linking (except MSVC,
7404 # which needs '.lib').
7405 libext=a
7406
7407 with_gnu_ld="$lt_cv_prog_gnu_ld"
7408
7409 old_CC="$CC"
7410 old_CFLAGS="$CFLAGS"
7411
7412 # Set sane defaults for various variables
7413 test -z "$CC" && CC=cc
7414 test -z "$LTCC" && LTCC=$CC
7415 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7416 test -z "$LD" && LD=ld
7417 test -z "$ac_objext" && ac_objext=o
7418
7419 for cc_temp in $compiler""; do
7420   case $cc_temp in
7421     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7422     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7423     \-*) ;;
7424     *) break;;
7425   esac
7426 done
7427 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7428
7429
7430 # Only perform the check for file, if the check method requires it
7431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7432 case $deplibs_check_method in
7433 file_magic*)
7434   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7436 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7437 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   case $MAGIC_CMD in
7441 [\\/*] |  ?:[\\/]*)
7442   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7443   ;;
7444 *)
7445   lt_save_MAGIC_CMD="$MAGIC_CMD"
7446   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7447   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7448   for ac_dir in $ac_dummy; do
7449     IFS="$lt_save_ifs"
7450     test -z "$ac_dir" && ac_dir=.
7451     if test -f $ac_dir/${ac_tool_prefix}file; then
7452       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7453       if test -n "$file_magic_test_file"; then
7454         case $deplibs_check_method in
7455         "file_magic "*)
7456           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7457           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7458           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7459             $EGREP "$file_magic_regex" > /dev/null; then
7460             :
7461           else
7462             cat <<_LT_EOF 1>&2
7463
7464 *** Warning: the command libtool uses to detect shared libraries,
7465 *** $file_magic_cmd, produces output that libtool cannot recognize.
7466 *** The result is that libtool may fail to recognize shared libraries
7467 *** as such.  This will affect the creation of libtool libraries that
7468 *** depend on shared libraries, but programs linked with such libtool
7469 *** libraries will work regardless of this problem.  Nevertheless, you
7470 *** may want to report the problem to your system manager and/or to
7471 *** bug-libtool@gnu.org
7472
7473 _LT_EOF
7474           fi ;;
7475         esac
7476       fi
7477       break
7478     fi
7479   done
7480   IFS="$lt_save_ifs"
7481   MAGIC_CMD="$lt_save_MAGIC_CMD"
7482   ;;
7483 esac
7484 fi
7485
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if test -n "$MAGIC_CMD"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7489 $as_echo "$MAGIC_CMD" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496
7497
7498
7499 if test -z "$lt_cv_path_MAGIC_CMD"; then
7500   if test -n "$ac_tool_prefix"; then
7501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7502 $as_echo_n "checking for file... " >&6; }
7503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   case $MAGIC_CMD in
7507 [\\/*] |  ?:[\\/]*)
7508   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7509   ;;
7510 *)
7511   lt_save_MAGIC_CMD="$MAGIC_CMD"
7512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514   for ac_dir in $ac_dummy; do
7515     IFS="$lt_save_ifs"
7516     test -z "$ac_dir" && ac_dir=.
7517     if test -f $ac_dir/file; then
7518       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7519       if test -n "$file_magic_test_file"; then
7520         case $deplibs_check_method in
7521         "file_magic "*)
7522           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525             $EGREP "$file_magic_regex" > /dev/null; then
7526             :
7527           else
7528             cat <<_LT_EOF 1>&2
7529
7530 *** Warning: the command libtool uses to detect shared libraries,
7531 *** $file_magic_cmd, produces output that libtool cannot recognize.
7532 *** The result is that libtool may fail to recognize shared libraries
7533 *** as such.  This will affect the creation of libtool libraries that
7534 *** depend on shared libraries, but programs linked with such libtool
7535 *** libraries will work regardless of this problem.  Nevertheless, you
7536 *** may want to report the problem to your system manager and/or to
7537 *** bug-libtool@gnu.org
7538
7539 _LT_EOF
7540           fi ;;
7541         esac
7542       fi
7543       break
7544     fi
7545   done
7546   IFS="$lt_save_ifs"
7547   MAGIC_CMD="$lt_save_MAGIC_CMD"
7548   ;;
7549 esac
7550 fi
7551
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if test -n "$MAGIC_CMD"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555 $as_echo "$MAGIC_CMD" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562   else
7563     MAGIC_CMD=:
7564   fi
7565 fi
7566
7567   fi
7568   ;;
7569 esac
7570
7571 # Use C for the default configuration in the libtool script
7572
7573 lt_save_CC="$CC"
7574 ac_ext=c
7575 ac_cpp='$CPP $CPPFLAGS'
7576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579
7580
7581 # Source file extension for C test sources.
7582 ac_ext=c
7583
7584 # Object file extension for compiled C test sources.
7585 objext=o
7586 objext=$objext
7587
7588 # Code to be used in simple compile tests
7589 lt_simple_compile_test_code="int some_variable = 0;"
7590
7591 # Code to be used in simple link tests
7592 lt_simple_link_test_code='int main(){return(0);}'
7593
7594
7595
7596
7597
7598
7599
7600 # If no C compiler was specified, use CC.
7601 LTCC=${LTCC-"$CC"}
7602
7603 # If no C compiler flags were specified, use CFLAGS.
7604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7605
7606 # Allow CC to be a program name with arguments.
7607 compiler=$CC
7608
7609 # Save the default compiler, since it gets overwritten when the other
7610 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7611 compiler_DEFAULT=$CC
7612
7613 # save warnings/boilerplate of simple test code
7614 ac_outfile=conftest.$ac_objext
7615 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7617 _lt_compiler_boilerplate=`cat conftest.err`
7618 $RM conftest*
7619
7620 ac_outfile=conftest.$ac_objext
7621 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7623 _lt_linker_boilerplate=`cat conftest.err`
7624 $RM -r conftest*
7625
7626
7627 ## CAVEAT EMPTOR:
7628 ## There is no encapsulation within the following macros, do not change
7629 ## the running order or otherwise move them around unless you know exactly
7630 ## what you are doing...
7631 if test -n "$compiler"; then
7632
7633 lt_prog_compiler_no_builtin_flag=
7634
7635 if test "$GCC" = yes; then
7636   case $cc_basename in
7637   nvcc*)
7638     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7639   *)
7640     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7641   esac
7642
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7644 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7645 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   lt_cv_prog_compiler_rtti_exceptions=no
7649    ac_outfile=conftest.$ac_objext
7650    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651    lt_compiler_flag="-fno-rtti -fno-exceptions"
7652    # Insert the option either (1) after the last *FLAGS variable, or
7653    # (2) before a word containing "conftest.", or (3) at the end.
7654    # Note that $ac_compile itself does not contain backslashes and begins
7655    # with a dollar sign (not a hyphen), so the echo should work correctly.
7656    # The option is referenced via a variable to avoid confusing sed.
7657    lt_compile=`echo "$ac_compile" | $SED \
7658    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660    -e 's:$: $lt_compiler_flag:'`
7661    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7662    (eval "$lt_compile" 2>conftest.err)
7663    ac_status=$?
7664    cat conftest.err >&5
7665    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666    if (exit $ac_status) && test -s "$ac_outfile"; then
7667      # The compiler can only warn and ignore the option if not recognized
7668      # So say no if there are warnings other than the usual output.
7669      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7670      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7671      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7672        lt_cv_prog_compiler_rtti_exceptions=yes
7673      fi
7674    fi
7675    $RM conftest*
7676
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7679 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7680
7681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7682     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7683 else
7684     :
7685 fi
7686
7687 fi
7688
7689
7690
7691
7692
7693
7694   lt_prog_compiler_wl=
7695 lt_prog_compiler_pic=
7696 lt_prog_compiler_static=
7697
7698
7699   if test "$GCC" = yes; then
7700     lt_prog_compiler_wl='-Wl,'
7701     lt_prog_compiler_static='-static'
7702
7703     case $host_os in
7704       aix*)
7705       # All AIX code is PIC.
7706       if test "$host_cpu" = ia64; then
7707         # AIX 5 now supports IA64 processor
7708         lt_prog_compiler_static='-Bstatic'
7709       fi
7710       ;;
7711
7712     amigaos*)
7713       case $host_cpu in
7714       powerpc)
7715             # see comment about AmigaOS4 .so support
7716             lt_prog_compiler_pic='-fPIC'
7717         ;;
7718       m68k)
7719             # FIXME: we need at least 68020 code to build shared libraries, but
7720             # adding the `-m68020' flag to GCC prevents building anything better,
7721             # like `-m68040'.
7722             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7723         ;;
7724       esac
7725       ;;
7726
7727     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728       # PIC is the default for these OSes.
7729       ;;
7730
7731     mingw* | cygwin* | pw32* | os2* | cegcc*)
7732       # This hack is so that the source file can tell whether it is being
7733       # built for inclusion in a dll (and should export symbols for example).
7734       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7735       # (--disable-auto-import) libraries
7736       lt_prog_compiler_pic='-DDLL_EXPORT'
7737       ;;
7738
7739     darwin* | rhapsody*)
7740       # PIC is the default on this platform
7741       # Common symbols not allowed in MH_DYLIB files
7742       lt_prog_compiler_pic='-fno-common'
7743       ;;
7744
7745     haiku*)
7746       # PIC is the default for Haiku.
7747       # The "-static" flag exists, but is broken.
7748       lt_prog_compiler_static=
7749       ;;
7750
7751     hpux*)
7752       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7753       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7754       # sets the default TLS model and affects inlining.
7755       case $host_cpu in
7756       hppa*64*)
7757         # +Z the default
7758         ;;
7759       *)
7760         lt_prog_compiler_pic='-fPIC'
7761         ;;
7762       esac
7763       ;;
7764
7765     interix[3-9]*)
7766       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7767       # Instead, we relocate shared libraries at runtime.
7768       ;;
7769
7770     msdosdjgpp*)
7771       # Just because we use GCC doesn't mean we suddenly get shared libraries
7772       # on systems that don't support them.
7773       lt_prog_compiler_can_build_shared=no
7774       enable_shared=no
7775       ;;
7776
7777     *nto* | *qnx*)
7778       # QNX uses GNU C++, but need to define -shared option too, otherwise
7779       # it will coredump.
7780       lt_prog_compiler_pic='-fPIC -shared'
7781       ;;
7782
7783     sysv4*MP*)
7784       if test -d /usr/nec; then
7785         lt_prog_compiler_pic=-Kconform_pic
7786       fi
7787       ;;
7788
7789     *)
7790       lt_prog_compiler_pic='-fPIC'
7791       ;;
7792     esac
7793
7794     case $cc_basename in
7795     nvcc*) # Cuda Compiler Driver 2.2
7796       lt_prog_compiler_wl='-Xlinker '
7797       if test -n "$lt_prog_compiler_pic"; then
7798         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7799       fi
7800       ;;
7801     esac
7802   else
7803     # PORTME Check for flag to pass linker flags through the system compiler.
7804     case $host_os in
7805     aix*)
7806       lt_prog_compiler_wl='-Wl,'
7807       if test "$host_cpu" = ia64; then
7808         # AIX 5 now supports IA64 processor
7809         lt_prog_compiler_static='-Bstatic'
7810       else
7811         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7812       fi
7813       ;;
7814
7815     mingw* | cygwin* | pw32* | os2* | cegcc*)
7816       # This hack is so that the source file can tell whether it is being
7817       # built for inclusion in a dll (and should export symbols for example).
7818       lt_prog_compiler_pic='-DDLL_EXPORT'
7819       ;;
7820
7821     hpux9* | hpux10* | hpux11*)
7822       lt_prog_compiler_wl='-Wl,'
7823       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7824       # not for PA HP-UX.
7825       case $host_cpu in
7826       hppa*64*|ia64*)
7827         # +Z the default
7828         ;;
7829       *)
7830         lt_prog_compiler_pic='+Z'
7831         ;;
7832       esac
7833       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7834       lt_prog_compiler_static='${wl}-a ${wl}archive'
7835       ;;
7836
7837     irix5* | irix6* | nonstopux*)
7838       lt_prog_compiler_wl='-Wl,'
7839       # PIC (with -KPIC) is the default.
7840       lt_prog_compiler_static='-non_shared'
7841       ;;
7842
7843     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7844       case $cc_basename in
7845       # old Intel for x86_64 which still supported -KPIC.
7846       ecc*)
7847         lt_prog_compiler_wl='-Wl,'
7848         lt_prog_compiler_pic='-KPIC'
7849         lt_prog_compiler_static='-static'
7850         ;;
7851       # icc used to be incompatible with GCC.
7852       # ICC 10 doesn't accept -KPIC any more.
7853       icc* | ifort*)
7854         lt_prog_compiler_wl='-Wl,'
7855         lt_prog_compiler_pic='-fPIC'
7856         lt_prog_compiler_static='-static'
7857         ;;
7858       # Lahey Fortran 8.1.
7859       lf95*)
7860         lt_prog_compiler_wl='-Wl,'
7861         lt_prog_compiler_pic='--shared'
7862         lt_prog_compiler_static='--static'
7863         ;;
7864       nagfor*)
7865         # NAG Fortran compiler
7866         lt_prog_compiler_wl='-Wl,-Wl,,'
7867         lt_prog_compiler_pic='-PIC'
7868         lt_prog_compiler_static='-Bstatic'
7869         ;;
7870       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7871         # Portland Group compilers (*not* the Pentium gcc compiler,
7872         # which looks to be a dead project)
7873         lt_prog_compiler_wl='-Wl,'
7874         lt_prog_compiler_pic='-fpic'
7875         lt_prog_compiler_static='-Bstatic'
7876         ;;
7877       ccc*)
7878         lt_prog_compiler_wl='-Wl,'
7879         # All Alpha code is PIC.
7880         lt_prog_compiler_static='-non_shared'
7881         ;;
7882       xl* | bgxl* | bgf* | mpixl*)
7883         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7884         lt_prog_compiler_wl='-Wl,'
7885         lt_prog_compiler_pic='-qpic'
7886         lt_prog_compiler_static='-qstaticlink'
7887         ;;
7888       *)
7889         case `$CC -V 2>&1 | sed 5q` in
7890         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7891           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7892           lt_prog_compiler_pic='-KPIC'
7893           lt_prog_compiler_static='-Bstatic'
7894           lt_prog_compiler_wl=''
7895           ;;
7896         *Sun\ F* | *Sun*Fortran*)
7897           lt_prog_compiler_pic='-KPIC'
7898           lt_prog_compiler_static='-Bstatic'
7899           lt_prog_compiler_wl='-Qoption ld '
7900           ;;
7901         *Sun\ C*)
7902           # Sun C 5.9
7903           lt_prog_compiler_pic='-KPIC'
7904           lt_prog_compiler_static='-Bstatic'
7905           lt_prog_compiler_wl='-Wl,'
7906           ;;
7907         *Intel*\ [CF]*Compiler*)
7908           lt_prog_compiler_wl='-Wl,'
7909           lt_prog_compiler_pic='-fPIC'
7910           lt_prog_compiler_static='-static'
7911           ;;
7912         *Portland\ Group*)
7913           lt_prog_compiler_wl='-Wl,'
7914           lt_prog_compiler_pic='-fpic'
7915           lt_prog_compiler_static='-Bstatic'
7916           ;;
7917         esac
7918         ;;
7919       esac
7920       ;;
7921
7922     newsos6)
7923       lt_prog_compiler_pic='-KPIC'
7924       lt_prog_compiler_static='-Bstatic'
7925       ;;
7926
7927     *nto* | *qnx*)
7928       # QNX uses GNU C++, but need to define -shared option too, otherwise
7929       # it will coredump.
7930       lt_prog_compiler_pic='-fPIC -shared'
7931       ;;
7932
7933     osf3* | osf4* | osf5*)
7934       lt_prog_compiler_wl='-Wl,'
7935       # All OSF/1 code is PIC.
7936       lt_prog_compiler_static='-non_shared'
7937       ;;
7938
7939     rdos*)
7940       lt_prog_compiler_static='-non_shared'
7941       ;;
7942
7943     solaris*)
7944       lt_prog_compiler_pic='-KPIC'
7945       lt_prog_compiler_static='-Bstatic'
7946       case $cc_basename in
7947       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7948         lt_prog_compiler_wl='-Qoption ld ';;
7949       *)
7950         lt_prog_compiler_wl='-Wl,';;
7951       esac
7952       ;;
7953
7954     sunos4*)
7955       lt_prog_compiler_wl='-Qoption ld '
7956       lt_prog_compiler_pic='-PIC'
7957       lt_prog_compiler_static='-Bstatic'
7958       ;;
7959
7960     sysv4 | sysv4.2uw2* | sysv4.3*)
7961       lt_prog_compiler_wl='-Wl,'
7962       lt_prog_compiler_pic='-KPIC'
7963       lt_prog_compiler_static='-Bstatic'
7964       ;;
7965
7966     sysv4*MP*)
7967       if test -d /usr/nec ;then
7968         lt_prog_compiler_pic='-Kconform_pic'
7969         lt_prog_compiler_static='-Bstatic'
7970       fi
7971       ;;
7972
7973     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7974       lt_prog_compiler_wl='-Wl,'
7975       lt_prog_compiler_pic='-KPIC'
7976       lt_prog_compiler_static='-Bstatic'
7977       ;;
7978
7979     unicos*)
7980       lt_prog_compiler_wl='-Wl,'
7981       lt_prog_compiler_can_build_shared=no
7982       ;;
7983
7984     uts4*)
7985       lt_prog_compiler_pic='-pic'
7986       lt_prog_compiler_static='-Bstatic'
7987       ;;
7988
7989     *)
7990       lt_prog_compiler_can_build_shared=no
7991       ;;
7992     esac
7993   fi
7994
7995 case $host_os in
7996   # For platforms which do not support PIC, -DPIC is meaningless:
7997   *djgpp*)
7998     lt_prog_compiler_pic=
7999     ;;
8000   *)
8001     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8002     ;;
8003 esac
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8007 if ${lt_cv_prog_compiler_pic+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8013 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8014 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8015
8016 #
8017 # Check to make sure the PIC flag actually works.
8018 #
8019 if test -n "$lt_prog_compiler_pic"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8022 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   lt_cv_prog_compiler_pic_works=no
8026    ac_outfile=conftest.$ac_objext
8027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8028    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8029    # Insert the option either (1) after the last *FLAGS variable, or
8030    # (2) before a word containing "conftest.", or (3) at the end.
8031    # Note that $ac_compile itself does not contain backslashes and begins
8032    # with a dollar sign (not a hyphen), so the echo should work correctly.
8033    # The option is referenced via a variable to avoid confusing sed.
8034    lt_compile=`echo "$ac_compile" | $SED \
8035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8037    -e 's:$: $lt_compiler_flag:'`
8038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8039    (eval "$lt_compile" 2>conftest.err)
8040    ac_status=$?
8041    cat conftest.err >&5
8042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043    if (exit $ac_status) && test -s "$ac_outfile"; then
8044      # The compiler can only warn and ignore the option if not recognized
8045      # So say no if there are warnings other than the usual output.
8046      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8047      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8049        lt_cv_prog_compiler_pic_works=yes
8050      fi
8051    fi
8052    $RM conftest*
8053
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8056 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8057
8058 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8059     case $lt_prog_compiler_pic in
8060      "" | " "*) ;;
8061      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8062      esac
8063 else
8064     lt_prog_compiler_pic=
8065      lt_prog_compiler_can_build_shared=no
8066 fi
8067
8068 fi
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 #
8081 # Check to make sure the static flag actually works.
8082 #
8083 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8085 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8086 if ${lt_cv_prog_compiler_static_works+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   lt_cv_prog_compiler_static_works=no
8090    save_LDFLAGS="$LDFLAGS"
8091    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8092    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8093    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8094      # The linker can only warn and ignore the option if not recognized
8095      # So say no if there are warnings
8096      if test -s conftest.err; then
8097        # Append any errors to the config.log.
8098        cat conftest.err 1>&5
8099        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8100        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8101        if diff conftest.exp conftest.er2 >/dev/null; then
8102          lt_cv_prog_compiler_static_works=yes
8103        fi
8104      else
8105        lt_cv_prog_compiler_static_works=yes
8106      fi
8107    fi
8108    $RM -r conftest*
8109    LDFLAGS="$save_LDFLAGS"
8110
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8113 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8114
8115 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8116     :
8117 else
8118     lt_prog_compiler_static=
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8129 if ${lt_cv_prog_compiler_c_o+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   lt_cv_prog_compiler_c_o=no
8133    $RM -r conftest 2>/dev/null
8134    mkdir conftest
8135    cd conftest
8136    mkdir out
8137    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138
8139    lt_compiler_flag="-o out/conftest2.$ac_objext"
8140    # Insert the option either (1) after the last *FLAGS variable, or
8141    # (2) before a word containing "conftest.", or (3) at the end.
8142    # Note that $ac_compile itself does not contain backslashes and begins
8143    # with a dollar sign (not a hyphen), so the echo should work correctly.
8144    lt_compile=`echo "$ac_compile" | $SED \
8145    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147    -e 's:$: $lt_compiler_flag:'`
8148    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8149    (eval "$lt_compile" 2>out/conftest.err)
8150    ac_status=$?
8151    cat out/conftest.err >&5
8152    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8154    then
8155      # The compiler can only warn and ignore the option if not recognized
8156      # So say no if there are warnings
8157      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8158      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8159      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8160        lt_cv_prog_compiler_c_o=yes
8161      fi
8162    fi
8163    chmod u+w . 2>&5
8164    $RM conftest*
8165    # SGI C++ compiler will create directory out/ii_files/ for
8166    # template instantiation
8167    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8168    $RM out/* && rmdir out
8169    cd ..
8170    $RM -r conftest
8171    $RM conftest*
8172
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8176
8177
8178
8179
8180
8181
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8184 if ${lt_cv_prog_compiler_c_o+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   lt_cv_prog_compiler_c_o=no
8188    $RM -r conftest 2>/dev/null
8189    mkdir conftest
8190    cd conftest
8191    mkdir out
8192    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8193
8194    lt_compiler_flag="-o out/conftest2.$ac_objext"
8195    # Insert the option either (1) after the last *FLAGS variable, or
8196    # (2) before a word containing "conftest.", or (3) at the end.
8197    # Note that $ac_compile itself does not contain backslashes and begins
8198    # with a dollar sign (not a hyphen), so the echo should work correctly.
8199    lt_compile=`echo "$ac_compile" | $SED \
8200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8202    -e 's:$: $lt_compiler_flag:'`
8203    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8204    (eval "$lt_compile" 2>out/conftest.err)
8205    ac_status=$?
8206    cat out/conftest.err >&5
8207    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8209    then
8210      # The compiler can only warn and ignore the option if not recognized
8211      # So say no if there are warnings
8212      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8213      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8214      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8215        lt_cv_prog_compiler_c_o=yes
8216      fi
8217    fi
8218    chmod u+w . 2>&5
8219    $RM conftest*
8220    # SGI C++ compiler will create directory out/ii_files/ for
8221    # template instantiation
8222    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8223    $RM out/* && rmdir out
8224    cd ..
8225    $RM -r conftest
8226    $RM conftest*
8227
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8231
8232
8233
8234
8235 hard_links="nottested"
8236 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8237   # do not overwrite the value of need_locks provided by the user
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8239 $as_echo_n "checking if we can lock with hard links... " >&6; }
8240   hard_links=yes
8241   $RM conftest*
8242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8243   touch conftest.a
8244   ln conftest.a conftest.b 2>&5 || hard_links=no
8245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8247 $as_echo "$hard_links" >&6; }
8248   if test "$hard_links" = no; then
8249     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8250 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8251     need_locks=warn
8252   fi
8253 else
8254   need_locks=no
8255 fi
8256
8257
8258
8259
8260
8261
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8264
8265   runpath_var=
8266   allow_undefined_flag=
8267   always_export_symbols=no
8268   archive_cmds=
8269   archive_expsym_cmds=
8270   compiler_needs_object=no
8271   enable_shared_with_static_runtimes=no
8272   export_dynamic_flag_spec=
8273   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8274   hardcode_automatic=no
8275   hardcode_direct=no
8276   hardcode_direct_absolute=no
8277   hardcode_libdir_flag_spec=
8278   hardcode_libdir_separator=
8279   hardcode_minus_L=no
8280   hardcode_shlibpath_var=unsupported
8281   inherit_rpath=no
8282   link_all_deplibs=unknown
8283   module_cmds=
8284   module_expsym_cmds=
8285   old_archive_from_new_cmds=
8286   old_archive_from_expsyms_cmds=
8287   thread_safe_flag_spec=
8288   whole_archive_flag_spec=
8289   # include_expsyms should be a list of space-separated symbols to be *always*
8290   # included in the symbol list
8291   include_expsyms=
8292   # exclude_expsyms can be an extended regexp of symbols to exclude
8293   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8294   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8295   # as well as any symbol that contains `d'.
8296   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8297   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8298   # platforms (ab)use it in PIC code, but their linkers get confused if
8299   # the symbol is explicitly referenced.  Since portable code cannot
8300   # rely on this symbol name, it's probably fine to never include it in
8301   # preloaded symbol tables.
8302   # Exclude shared library initialization/finalization symbols.
8303   extract_expsyms_cmds=
8304
8305   case $host_os in
8306   cygwin* | mingw* | pw32* | cegcc*)
8307     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8308     # When not using gcc, we currently assume that we are using
8309     # Microsoft Visual C++.
8310     if test "$GCC" != yes; then
8311       with_gnu_ld=no
8312     fi
8313     ;;
8314   interix*)
8315     # we just hope/assume this is gcc and not c89 (= MSVC++)
8316     with_gnu_ld=yes
8317     ;;
8318   openbsd*)
8319     with_gnu_ld=no
8320     ;;
8321   linux* | k*bsd*-gnu | gnu*)
8322     link_all_deplibs=no
8323     ;;
8324   esac
8325
8326   ld_shlibs=yes
8327
8328   # On some targets, GNU ld is compatible enough with the native linker
8329   # that we're better off using the native interface for both.
8330   lt_use_gnu_ld_interface=no
8331   if test "$with_gnu_ld" = yes; then
8332     case $host_os in
8333       aix*)
8334         # The AIX port of GNU ld has always aspired to compatibility
8335         # with the native linker.  However, as the warning in the GNU ld
8336         # block says, versions before 2.19.5* couldn't really create working
8337         # shared libraries, regardless of the interface used.
8338         case `$LD -v 2>&1` in
8339           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8340           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8341           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8342           *)
8343             lt_use_gnu_ld_interface=yes
8344             ;;
8345         esac
8346         ;;
8347       *)
8348         lt_use_gnu_ld_interface=yes
8349         ;;
8350     esac
8351   fi
8352
8353   if test "$lt_use_gnu_ld_interface" = yes; then
8354     # If archive_cmds runs LD, not CC, wlarc should be empty
8355     wlarc='${wl}'
8356
8357     # Set some defaults for GNU ld with shared library support. These
8358     # are reset later if shared libraries are not supported. Putting them
8359     # here allows them to be overridden if necessary.
8360     runpath_var=LD_RUN_PATH
8361     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362     export_dynamic_flag_spec='${wl}--export-dynamic'
8363     # ancient GNU ld didn't support --whole-archive et. al.
8364     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8365       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8366     else
8367       whole_archive_flag_spec=
8368     fi
8369     supports_anon_versioning=no
8370     case `$LD -v 2>&1` in
8371       *GNU\ gold*) supports_anon_versioning=yes ;;
8372       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8373       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8374       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8375       *\ 2.11.*) ;; # other 2.11 versions
8376       *) supports_anon_versioning=yes ;;
8377     esac
8378
8379     # See if GNU ld supports shared libraries.
8380     case $host_os in
8381     aix[3-9]*)
8382       # On AIX/PPC, the GNU linker is very broken
8383       if test "$host_cpu" != ia64; then
8384         ld_shlibs=no
8385         cat <<_LT_EOF 1>&2
8386
8387 *** Warning: the GNU linker, at least up to release 2.19, is reported
8388 *** to be unable to reliably create shared libraries on AIX.
8389 *** Therefore, libtool is disabling shared libraries support.  If you
8390 *** really care for shared libraries, you may want to install binutils
8391 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8392 *** You will then need to restart the configuration process.
8393
8394 _LT_EOF
8395       fi
8396       ;;
8397
8398     amigaos*)
8399       case $host_cpu in
8400       powerpc)
8401             # see comment about AmigaOS4 .so support
8402             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403             archive_expsym_cmds=''
8404         ;;
8405       m68k)
8406             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)'
8407             hardcode_libdir_flag_spec='-L$libdir'
8408             hardcode_minus_L=yes
8409         ;;
8410       esac
8411       ;;
8412
8413     beos*)
8414       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415         allow_undefined_flag=unsupported
8416         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8417         # support --undefined.  This deserves some investigation.  FIXME
8418         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419       else
8420         ld_shlibs=no
8421       fi
8422       ;;
8423
8424     cygwin* | mingw* | pw32* | cegcc*)
8425       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8426       # as there is no search path for DLLs.
8427       hardcode_libdir_flag_spec='-L$libdir'
8428       export_dynamic_flag_spec='${wl}--export-all-symbols'
8429       allow_undefined_flag=unsupported
8430       always_export_symbols=no
8431       enable_shared_with_static_runtimes=yes
8432       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'
8433       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8434
8435       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8436         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8437         # If the export-symbols file already is a .def file (1st line
8438         # is EXPORTS), use it as is; otherwise, prepend...
8439         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8440           cp $export_symbols $output_objdir/$soname.def;
8441         else
8442           echo EXPORTS > $output_objdir/$soname.def;
8443           cat $export_symbols >> $output_objdir/$soname.def;
8444         fi~
8445         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8446       else
8447         ld_shlibs=no
8448       fi
8449       ;;
8450
8451     haiku*)
8452       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453       link_all_deplibs=yes
8454       ;;
8455
8456     interix[3-9]*)
8457       hardcode_direct=no
8458       hardcode_shlibpath_var=no
8459       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8460       export_dynamic_flag_spec='${wl}-E'
8461       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8462       # Instead, shared libraries are loaded at an image base (0x10000000 by
8463       # default) and relocated if they conflict, which is a slow very memory
8464       # consuming and fragmenting process.  To avoid this, we pick a random,
8465       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8466       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8467       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8468       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'
8469       ;;
8470
8471     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8472       tmp_diet=no
8473       if test "$host_os" = linux-dietlibc; then
8474         case $cc_basename in
8475           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8476         esac
8477       fi
8478       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8479          && test "$tmp_diet" = no
8480       then
8481         tmp_addflag=' $pic_flag'
8482         tmp_sharedflag='-shared'
8483         case $cc_basename,$host_cpu in
8484         pgcc*)                          # Portland Group C compiler
8485           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'
8486           tmp_addflag=' $pic_flag'
8487           ;;
8488         pgf77* | pgf90* | pgf95* | pgfortran*)
8489                                         # Portland Group f77 and f90 compilers
8490           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'
8491           tmp_addflag=' $pic_flag -Mnomain' ;;
8492         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8493           tmp_addflag=' -i_dynamic' ;;
8494         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8495           tmp_addflag=' -i_dynamic -nofor_main' ;;
8496         ifc* | ifort*)                  # Intel Fortran compiler
8497           tmp_addflag=' -nofor_main' ;;
8498         lf95*)                          # Lahey Fortran 8.1
8499           whole_archive_flag_spec=
8500           tmp_sharedflag='--shared' ;;
8501         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8502           tmp_sharedflag='-qmkshrobj'
8503           tmp_addflag= ;;
8504         nvcc*)  # Cuda Compiler Driver 2.2
8505           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'
8506           compiler_needs_object=yes
8507           ;;
8508         esac
8509         case `$CC -V 2>&1 | sed 5q` in
8510         *Sun\ C*)                       # Sun C 5.9
8511           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'
8512           compiler_needs_object=yes
8513           tmp_sharedflag='-G' ;;
8514         *Sun\ F*)                       # Sun Fortran 8.3
8515           tmp_sharedflag='-G' ;;
8516         esac
8517         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518
8519         if test "x$supports_anon_versioning" = xyes; then
8520           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8521             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8522             echo "local: *; };" >> $output_objdir/$libname.ver~
8523             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8524         fi
8525
8526         case $cc_basename in
8527         xlf* | bgf* | bgxlf* | mpixlf*)
8528           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8529           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8530           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8532           if test "x$supports_anon_versioning" = xyes; then
8533             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8534               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8535               echo "local: *; };" >> $output_objdir/$libname.ver~
8536               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8537           fi
8538           ;;
8539         esac
8540       else
8541         ld_shlibs=no
8542       fi
8543       ;;
8544
8545     netbsd* | netbsdelf*-gnu)
8546       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8547         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8548         wlarc=
8549       else
8550         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8552       fi
8553       ;;
8554
8555     solaris*)
8556       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8557         ld_shlibs=no
8558         cat <<_LT_EOF 1>&2
8559
8560 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8561 *** create shared libraries on Solaris systems.  Therefore, libtool
8562 *** is disabling shared libraries support.  We urge you to upgrade GNU
8563 *** binutils to release 2.9.1 or newer.  Another option is to modify
8564 *** your PATH or compiler configuration so that the native linker is
8565 *** used, and then restart.
8566
8567 _LT_EOF
8568       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8577       case `$LD -v 2>&1` in
8578         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8579         ld_shlibs=no
8580         cat <<_LT_EOF 1>&2
8581
8582 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8583 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8584 *** is disabling shared libraries support.  We urge you to upgrade GNU
8585 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8586 *** your PATH or compiler configuration so that the native linker is
8587 *** used, and then restart.
8588
8589 _LT_EOF
8590         ;;
8591         *)
8592           # For security reasons, it is highly recommended that you always
8593           # use absolute paths for naming shared libraries, and exclude the
8594           # DT_RUNPATH tag from executables and libraries.  But doing so
8595           # requires that you compile everything twice, which is a pain.
8596           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8600           else
8601             ld_shlibs=no
8602           fi
8603         ;;
8604       esac
8605       ;;
8606
8607     sunos4*)
8608       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609       wlarc=
8610       hardcode_direct=yes
8611       hardcode_shlibpath_var=no
8612       ;;
8613
8614     *)
8615       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8616         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8618       else
8619         ld_shlibs=no
8620       fi
8621       ;;
8622     esac
8623
8624     if test "$ld_shlibs" = no; then
8625       runpath_var=
8626       hardcode_libdir_flag_spec=
8627       export_dynamic_flag_spec=
8628       whole_archive_flag_spec=
8629     fi
8630   else
8631     # PORTME fill in a description of your system's linker (not GNU ld)
8632     case $host_os in
8633     aix3*)
8634       allow_undefined_flag=unsupported
8635       always_export_symbols=yes
8636       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'
8637       # Note: this linker hardcodes the directories in LIBPATH if there
8638       # are no directories specified by -L.
8639       hardcode_minus_L=yes
8640       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8641         # Neither direct hardcoding nor static linking is supported with a
8642         # broken collect2.
8643         hardcode_direct=unsupported
8644       fi
8645       ;;
8646
8647     aix[4-9]*)
8648       if test "$host_cpu" = ia64; then
8649         # On IA64, the linker does run time linking by default, so we don't
8650         # have to do anything special.
8651         aix_use_runtimelinking=no
8652         exp_sym_flag='-Bexport'
8653         no_entry_flag=""
8654       else
8655         # If we're using GNU nm, then we don't want the "-C" option.
8656         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8657         # Also, AIX nm treats weak defined symbols like other global
8658         # defined symbols, whereas GNU nm marks them as "W".
8659         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8660           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8661         else
8662           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8663         fi
8664         aix_use_runtimelinking=no
8665
8666         # Test if we are trying to use run time linking or normal
8667         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8668         # need to do runtime linking.
8669         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8670           for ld_flag in $LDFLAGS; do
8671           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8672             aix_use_runtimelinking=yes
8673             break
8674           fi
8675           done
8676           ;;
8677         esac
8678
8679         exp_sym_flag='-bexport'
8680         no_entry_flag='-bnoentry'
8681       fi
8682
8683       # When large executables or shared objects are built, AIX ld can
8684       # have problems creating the table of contents.  If linking a library
8685       # or program results in "error TOC overflow" add -mminimal-toc to
8686       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8687       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8688
8689       archive_cmds=''
8690       hardcode_direct=yes
8691       hardcode_direct_absolute=yes
8692       hardcode_libdir_separator=':'
8693       link_all_deplibs=yes
8694       file_list_spec='${wl}-f,'
8695
8696       if test "$GCC" = yes; then
8697         case $host_os in aix4.[012]|aix4.[012].*)
8698         # We only want to do this on AIX 4.2 and lower, the check
8699         # below for broken collect2 doesn't work under 4.3+
8700           collect2name=`${CC} -print-prog-name=collect2`
8701           if test -f "$collect2name" &&
8702            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8703           then
8704           # We have reworked collect2
8705           :
8706           else
8707           # We have old collect2
8708           hardcode_direct=unsupported
8709           # It fails to find uninstalled libraries when the uninstalled
8710           # path is not listed in the libpath.  Setting hardcode_minus_L
8711           # to unsupported forces relinking
8712           hardcode_minus_L=yes
8713           hardcode_libdir_flag_spec='-L$libdir'
8714           hardcode_libdir_separator=
8715           fi
8716           ;;
8717         esac
8718         shared_flag='-shared'
8719         if test "$aix_use_runtimelinking" = yes; then
8720           shared_flag="$shared_flag "'${wl}-G'
8721         fi
8722         link_all_deplibs=no
8723       else
8724         # not using gcc
8725         if test "$host_cpu" = ia64; then
8726         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8727         # chokes on -Wl,-G. The following line is correct:
8728           shared_flag='-G'
8729         else
8730           if test "$aix_use_runtimelinking" = yes; then
8731             shared_flag='${wl}-G'
8732           else
8733             shared_flag='${wl}-bM:SRE'
8734           fi
8735         fi
8736       fi
8737
8738       export_dynamic_flag_spec='${wl}-bexpall'
8739       # It seems that -bexpall does not export symbols beginning with
8740       # underscore (_), so it is better to generate a list of symbols to export.
8741       always_export_symbols=yes
8742       if test "$aix_use_runtimelinking" = yes; then
8743         # Warning - without using the other runtime loading flags (-brtl),
8744         # -berok will link without error, but may produce a broken library.
8745         allow_undefined_flag='-berok'
8746         # Determine the default libpath from the value encoded in an
8747         # empty executable.
8748         if test "${lt_cv_aix_libpath+set}" = set; then
8749   aix_libpath=$lt_cv_aix_libpath
8750 else
8751   if ${lt_cv_aix_libpath_+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756
8757 int
8758 main ()
8759 {
8760
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766
8767   lt_aix_libpath_sed='
8768       /Import File Strings/,/^$/ {
8769           /^0/ {
8770               s/^0  *\([^ ]*\) *$/\1/
8771               p
8772           }
8773       }'
8774   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775   # Check for a 64-bit object if we didn't find anything.
8776   if test -z "$lt_cv_aix_libpath_"; then
8777     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778   fi
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781     conftest$ac_exeext conftest.$ac_ext
8782   if test -z "$lt_cv_aix_libpath_"; then
8783     lt_cv_aix_libpath_="/usr/lib:/lib"
8784   fi
8785
8786 fi
8787
8788   aix_libpath=$lt_cv_aix_libpath_
8789 fi
8790
8791         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8793       else
8794         if test "$host_cpu" = ia64; then
8795           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8796           allow_undefined_flag="-z nodefs"
8797           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"
8798         else
8799          # Determine the default libpath from the value encoded in an
8800          # empty executable.
8801          if test "${lt_cv_aix_libpath+set}" = set; then
8802   aix_libpath=$lt_cv_aix_libpath
8803 else
8804   if ${lt_cv_aix_libpath_+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h.  */
8809
8810 int
8811 main ()
8812 {
8813
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_link "$LINENO"; then :
8819
8820   lt_aix_libpath_sed='
8821       /Import File Strings/,/^$/ {
8822           /^0/ {
8823               s/^0  *\([^ ]*\) *$/\1/
8824               p
8825           }
8826       }'
8827   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828   # Check for a 64-bit object if we didn't find anything.
8829   if test -z "$lt_cv_aix_libpath_"; then
8830     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831   fi
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834     conftest$ac_exeext conftest.$ac_ext
8835   if test -z "$lt_cv_aix_libpath_"; then
8836     lt_cv_aix_libpath_="/usr/lib:/lib"
8837   fi
8838
8839 fi
8840
8841   aix_libpath=$lt_cv_aix_libpath_
8842 fi
8843
8844          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8845           # Warning - without using the other run time loading flags,
8846           # -berok will link without error, but may produce a broken library.
8847           no_undefined_flag=' ${wl}-bernotok'
8848           allow_undefined_flag=' ${wl}-berok'
8849           if test "$with_gnu_ld" = yes; then
8850             # We only use this code for GNU lds that support --whole-archive.
8851             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8852           else
8853             # Exported symbols can be pulled into shared objects from archives
8854             whole_archive_flag_spec='$convenience'
8855           fi
8856           archive_cmds_need_lc=yes
8857           # This is similar to how AIX traditionally builds its shared libraries.
8858           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8859         fi
8860       fi
8861       ;;
8862
8863     amigaos*)
8864       case $host_cpu in
8865       powerpc)
8866             # see comment about AmigaOS4 .so support
8867             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868             archive_expsym_cmds=''
8869         ;;
8870       m68k)
8871             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)'
8872             hardcode_libdir_flag_spec='-L$libdir'
8873             hardcode_minus_L=yes
8874         ;;
8875       esac
8876       ;;
8877
8878     bsdi[45]*)
8879       export_dynamic_flag_spec=-rdynamic
8880       ;;
8881
8882     cygwin* | mingw* | pw32* | cegcc*)
8883       # When not using gcc, we currently assume that we are using
8884       # Microsoft Visual C++.
8885       # hardcode_libdir_flag_spec is actually meaningless, as there is
8886       # no search path for DLLs.
8887       case $cc_basename in
8888       cl*)
8889         # Native MSVC
8890         hardcode_libdir_flag_spec=' '
8891         allow_undefined_flag=unsupported
8892         always_export_symbols=yes
8893         file_list_spec='@'
8894         # Tell ltmain to make .lib files, not .a files.
8895         libext=lib
8896         # Tell ltmain to make .dll files, not .so files.
8897         shrext_cmds=".dll"
8898         # FIXME: Setting linknames here is a bad hack.
8899         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8900         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8902           else
8903             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8904           fi~
8905           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8906           linknames='
8907         # The linker will not automatically build a static lib if we build a DLL.
8908         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8909         enable_shared_with_static_runtimes=yes
8910         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8911         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8912         # Don't use ranlib
8913         old_postinstall_cmds='chmod 644 $oldlib'
8914         postlink_cmds='lt_outputfile="@OUTPUT@"~
8915           lt_tool_outputfile="@TOOL_OUTPUT@"~
8916           case $lt_outputfile in
8917             *.exe|*.EXE) ;;
8918             *)
8919               lt_outputfile="$lt_outputfile.exe"
8920               lt_tool_outputfile="$lt_tool_outputfile.exe"
8921               ;;
8922           esac~
8923           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8924             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8925             $RM "$lt_outputfile.manifest";
8926           fi'
8927         ;;
8928       *)
8929         # Assume MSVC wrapper
8930         hardcode_libdir_flag_spec=' '
8931         allow_undefined_flag=unsupported
8932         # Tell ltmain to make .lib files, not .a files.
8933         libext=lib
8934         # Tell ltmain to make .dll files, not .so files.
8935         shrext_cmds=".dll"
8936         # FIXME: Setting linknames here is a bad hack.
8937         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8938         # The linker will automatically build a .lib file if we build a DLL.
8939         old_archive_from_new_cmds='true'
8940         # FIXME: Should let the user specify the lib program.
8941         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8942         enable_shared_with_static_runtimes=yes
8943         ;;
8944       esac
8945       ;;
8946
8947     darwin* | rhapsody*)
8948
8949
8950   archive_cmds_need_lc=no
8951   hardcode_direct=no
8952   hardcode_automatic=yes
8953   hardcode_shlibpath_var=unsupported
8954   if test "$lt_cv_ld_force_load" = "yes"; then
8955     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\"`'
8956
8957   else
8958     whole_archive_flag_spec=''
8959   fi
8960   link_all_deplibs=yes
8961   allow_undefined_flag="$_lt_dar_allow_undefined"
8962   case $cc_basename in
8963      ifort*) _lt_dar_can_shared=yes ;;
8964      *) _lt_dar_can_shared=$GCC ;;
8965   esac
8966   if test "$_lt_dar_can_shared" = "yes"; then
8967     output_verbose_link_cmd=func_echo_all
8968     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8969     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8970     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}"
8971     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}"
8972
8973   else
8974   ld_shlibs=no
8975   fi
8976
8977       ;;
8978
8979     dgux*)
8980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981       hardcode_libdir_flag_spec='-L$libdir'
8982       hardcode_shlibpath_var=no
8983       ;;
8984
8985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8986     # support.  Future versions do this automatically, but an explicit c++rt0.o
8987     # does not break anything, and helps significantly (at the cost of a little
8988     # extra space).
8989     freebsd2.2*)
8990       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8991       hardcode_libdir_flag_spec='-R$libdir'
8992       hardcode_direct=yes
8993       hardcode_shlibpath_var=no
8994       ;;
8995
8996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8997     freebsd2.*)
8998       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999       hardcode_direct=yes
9000       hardcode_minus_L=yes
9001       hardcode_shlibpath_var=no
9002       ;;
9003
9004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9005     freebsd* | dragonfly*)
9006       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007       hardcode_libdir_flag_spec='-R$libdir'
9008       hardcode_direct=yes
9009       hardcode_shlibpath_var=no
9010       ;;
9011
9012     hpux9*)
9013       if test "$GCC" = yes; then
9014         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9015       else
9016         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9017       fi
9018       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9019       hardcode_libdir_separator=:
9020       hardcode_direct=yes
9021
9022       # hardcode_minus_L: Not really in the search PATH,
9023       # but as the default location of the library.
9024       hardcode_minus_L=yes
9025       export_dynamic_flag_spec='${wl}-E'
9026       ;;
9027
9028     hpux10*)
9029       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9030         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031       else
9032         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9033       fi
9034       if test "$with_gnu_ld" = no; then
9035         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036         hardcode_libdir_separator=:
9037         hardcode_direct=yes
9038         hardcode_direct_absolute=yes
9039         export_dynamic_flag_spec='${wl}-E'
9040         # hardcode_minus_L: Not really in the search PATH,
9041         # but as the default location of the library.
9042         hardcode_minus_L=yes
9043       fi
9044       ;;
9045
9046     hpux11*)
9047       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9048         case $host_cpu in
9049         hppa*64*)
9050           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051           ;;
9052         ia64*)
9053           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9054           ;;
9055         *)
9056           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057           ;;
9058         esac
9059       else
9060         case $host_cpu in
9061         hppa*64*)
9062           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063           ;;
9064         ia64*)
9065           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066           ;;
9067         *)
9068
9069           # Older versions of the 11.00 compiler do not understand -b yet
9070           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9071           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9072 $as_echo_n "checking if $CC understands -b... " >&6; }
9073 if ${lt_cv_prog_compiler__b+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   lt_cv_prog_compiler__b=no
9077    save_LDFLAGS="$LDFLAGS"
9078    LDFLAGS="$LDFLAGS -b"
9079    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081      # The linker can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      if test -s conftest.err; then
9084        # Append any errors to the config.log.
9085        cat conftest.err 1>&5
9086        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088        if diff conftest.exp conftest.er2 >/dev/null; then
9089          lt_cv_prog_compiler__b=yes
9090        fi
9091      else
9092        lt_cv_prog_compiler__b=yes
9093      fi
9094    fi
9095    $RM -r conftest*
9096    LDFLAGS="$save_LDFLAGS"
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9100 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9101
9102 if test x"$lt_cv_prog_compiler__b" = xyes; then
9103     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9106 fi
9107
9108           ;;
9109         esac
9110       fi
9111       if test "$with_gnu_ld" = no; then
9112         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9113         hardcode_libdir_separator=:
9114
9115         case $host_cpu in
9116         hppa*64*|ia64*)
9117           hardcode_direct=no
9118           hardcode_shlibpath_var=no
9119           ;;
9120         *)
9121           hardcode_direct=yes
9122           hardcode_direct_absolute=yes
9123           export_dynamic_flag_spec='${wl}-E'
9124
9125           # hardcode_minus_L: Not really in the search PATH,
9126           # but as the default location of the library.
9127           hardcode_minus_L=yes
9128           ;;
9129         esac
9130       fi
9131       ;;
9132
9133     irix5* | irix6* | nonstopux*)
9134       if test "$GCC" = yes; then
9135         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'
9136         # Try to use the -exported_symbol ld option, if it does not
9137         # work, assume that -exports_file does not work either and
9138         # implicitly export all symbols.
9139         # This should be the same for all languages, so no per-tag cache variable.
9140         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9141 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9142 if ${lt_cv_irix_exported_symbol+:} false; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   save_LDFLAGS="$LDFLAGS"
9146            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9147            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h.  */
9149 int foo (void) { return 0; }
9150 _ACEOF
9151 if ac_fn_c_try_link "$LINENO"; then :
9152   lt_cv_irix_exported_symbol=yes
9153 else
9154   lt_cv_irix_exported_symbol=no
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext \
9157     conftest$ac_exeext conftest.$ac_ext
9158            LDFLAGS="$save_LDFLAGS"
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9161 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9162         if test "$lt_cv_irix_exported_symbol" = yes; then
9163           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'
9164         fi
9165       else
9166         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'
9167         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'
9168       fi
9169       archive_cmds_need_lc='no'
9170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171       hardcode_libdir_separator=:
9172       inherit_rpath=yes
9173       link_all_deplibs=yes
9174       ;;
9175
9176     netbsd* | netbsdelf*-gnu)
9177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9179       else
9180         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9181       fi
9182       hardcode_libdir_flag_spec='-R$libdir'
9183       hardcode_direct=yes
9184       hardcode_shlibpath_var=no
9185       ;;
9186
9187     newsos6)
9188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189       hardcode_direct=yes
9190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191       hardcode_libdir_separator=:
9192       hardcode_shlibpath_var=no
9193       ;;
9194
9195     *nto* | *qnx*)
9196       ;;
9197
9198     openbsd*)
9199       if test -f /usr/libexec/ld.so; then
9200         hardcode_direct=yes
9201         hardcode_shlibpath_var=no
9202         hardcode_direct_absolute=yes
9203         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207           export_dynamic_flag_spec='${wl}-E'
9208         else
9209           case $host_os in
9210            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212              hardcode_libdir_flag_spec='-R$libdir'
9213              ;;
9214            *)
9215              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9217              ;;
9218           esac
9219         fi
9220       else
9221         ld_shlibs=no
9222       fi
9223       ;;
9224
9225     os2*)
9226       hardcode_libdir_flag_spec='-L$libdir'
9227       hardcode_minus_L=yes
9228       allow_undefined_flag=unsupported
9229       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9230       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9231       ;;
9232
9233     osf3*)
9234       if test "$GCC" = yes; then
9235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9236         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'
9237       else
9238         allow_undefined_flag=' -expect_unresolved \*'
9239         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'
9240       fi
9241       archive_cmds_need_lc='no'
9242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       hardcode_libdir_separator=:
9244       ;;
9245
9246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9247       if test "$GCC" = yes; then
9248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249         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'
9250         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251       else
9252         allow_undefined_flag=' -expect_unresolved \*'
9253         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'
9254         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~
9255         $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'
9256
9257         # Both c and cxx compiler support -rpath directly
9258         hardcode_libdir_flag_spec='-rpath $libdir'
9259       fi
9260       archive_cmds_need_lc='no'
9261       hardcode_libdir_separator=:
9262       ;;
9263
9264     solaris*)
9265       no_undefined_flag=' -z defs'
9266       if test "$GCC" = yes; then
9267         wlarc='${wl}'
9268         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9269         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9270           $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'
9271       else
9272         case `$CC -V 2>&1` in
9273         *"Compilers 5.0"*)
9274           wlarc=''
9275           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278           ;;
9279         *)
9280           wlarc='${wl}'
9281           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284           ;;
9285         esac
9286       fi
9287       hardcode_libdir_flag_spec='-R$libdir'
9288       hardcode_shlibpath_var=no
9289       case $host_os in
9290       solaris2.[0-5] | solaris2.[0-5].*) ;;
9291       *)
9292         # The compiler driver will combine and reorder linker options,
9293         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9294         # but is careful enough not to reorder.
9295         # Supported since Solaris 2.6 (maybe 2.5.1?)
9296         if test "$GCC" = yes; then
9297           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9298         else
9299           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300         fi
9301         ;;
9302       esac
9303       link_all_deplibs=yes
9304       ;;
9305
9306     sunos4*)
9307       if test "x$host_vendor" = xsequent; then
9308         # Use $CC to link under sequent, because it throws in some extra .o
9309         # files that make .init and .fini sections work.
9310         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9311       else
9312         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9313       fi
9314       hardcode_libdir_flag_spec='-L$libdir'
9315       hardcode_direct=yes
9316       hardcode_minus_L=yes
9317       hardcode_shlibpath_var=no
9318       ;;
9319
9320     sysv4)
9321       case $host_vendor in
9322         sni)
9323           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324           hardcode_direct=yes # is this really true???
9325         ;;
9326         siemens)
9327           ## LD is ld it makes a PLAMLIB
9328           ## CC just makes a GrossModule.
9329           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9330           reload_cmds='$CC -r -o $output$reload_objs'
9331           hardcode_direct=no
9332         ;;
9333         motorola)
9334           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9336         ;;
9337       esac
9338       runpath_var='LD_RUN_PATH'
9339       hardcode_shlibpath_var=no
9340       ;;
9341
9342     sysv4.3*)
9343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344       hardcode_shlibpath_var=no
9345       export_dynamic_flag_spec='-Bexport'
9346       ;;
9347
9348     sysv4*MP*)
9349       if test -d /usr/nec; then
9350         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351         hardcode_shlibpath_var=no
9352         runpath_var=LD_RUN_PATH
9353         hardcode_runpath_var=yes
9354         ld_shlibs=yes
9355       fi
9356       ;;
9357
9358     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9359       no_undefined_flag='${wl}-z,text'
9360       archive_cmds_need_lc=no
9361       hardcode_shlibpath_var=no
9362       runpath_var='LD_RUN_PATH'
9363
9364       if test "$GCC" = yes; then
9365         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367       else
9368         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370       fi
9371       ;;
9372
9373     sysv5* | sco3.2v5* | sco5v6*)
9374       # Note: We can NOT use -z defs as we might desire, because we do not
9375       # link with -lc, and that would cause any symbols used from libc to
9376       # always be unresolved, which means just about no library would
9377       # ever link correctly.  If we're not using GNU ld we use -z text
9378       # though, which does catch some bad symbols but isn't as heavy-handed
9379       # as -z defs.
9380       no_undefined_flag='${wl}-z,text'
9381       allow_undefined_flag='${wl}-z,nodefs'
9382       archive_cmds_need_lc=no
9383       hardcode_shlibpath_var=no
9384       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9385       hardcode_libdir_separator=':'
9386       link_all_deplibs=yes
9387       export_dynamic_flag_spec='${wl}-Bexport'
9388       runpath_var='LD_RUN_PATH'
9389
9390       if test "$GCC" = yes; then
9391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       else
9394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396       fi
9397       ;;
9398
9399     uts4*)
9400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401       hardcode_libdir_flag_spec='-L$libdir'
9402       hardcode_shlibpath_var=no
9403       ;;
9404
9405     *)
9406       ld_shlibs=no
9407       ;;
9408     esac
9409
9410     if test x$host_vendor = xsni; then
9411       case $host in
9412       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9413         export_dynamic_flag_spec='${wl}-Blargedynsym'
9414         ;;
9415       esac
9416     fi
9417   fi
9418
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9420 $as_echo "$ld_shlibs" >&6; }
9421 test "$ld_shlibs" = no && can_build_shared=no
9422
9423 with_gnu_ld=$with_gnu_ld
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439 #
9440 # Do we need to explicitly link libc?
9441 #
9442 case "x$archive_cmds_need_lc" in
9443 x|xyes)
9444   # Assume -lc should be added
9445   archive_cmds_need_lc=yes
9446
9447   if test "$enable_shared" = yes && test "$GCC" = yes; then
9448     case $archive_cmds in
9449     *'~'*)
9450       # FIXME: we may have to deal with multi-command sequences.
9451       ;;
9452     '$CC '*)
9453       # Test whether the compiler implicitly links with -lc since on some
9454       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9455       # to ld, don't add -lc before -lgcc.
9456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9458 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   $RM conftest*
9462         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463
9464         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9465   (eval $ac_compile) 2>&5
9466   ac_status=$?
9467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468   test $ac_status = 0; } 2>conftest.err; then
9469           soname=conftest
9470           lib=conftest
9471           libobjs=conftest.$ac_objext
9472           deplibs=
9473           wl=$lt_prog_compiler_wl
9474           pic_flag=$lt_prog_compiler_pic
9475           compiler_flags=-v
9476           linker_flags=-v
9477           verstring=
9478           output_objdir=.
9479           libname=conftest
9480           lt_save_allow_undefined_flag=$allow_undefined_flag
9481           allow_undefined_flag=
9482           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9483   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9484   ac_status=$?
9485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486   test $ac_status = 0; }
9487           then
9488             lt_cv_archive_cmds_need_lc=no
9489           else
9490             lt_cv_archive_cmds_need_lc=yes
9491           fi
9492           allow_undefined_flag=$lt_save_allow_undefined_flag
9493         else
9494           cat conftest.err 1>&5
9495         fi
9496         $RM conftest*
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9500 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9501       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9502       ;;
9503     esac
9504   fi
9505   ;;
9506 esac
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9661
9662 if test "$GCC" = yes; then
9663   case $host_os in
9664     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9665     *) lt_awk_arg="/^libraries:/" ;;
9666   esac
9667   case $host_os in
9668     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9669     *) lt_sed_strip_eq="s,=/,/,g" ;;
9670   esac
9671   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9672   case $lt_search_path_spec in
9673   *\;*)
9674     # if the path contains ";" then we assume it to be the separator
9675     # otherwise default to the standard path separator (i.e. ":") - it is
9676     # assumed that no part of a normal pathname contains ";" but that should
9677     # okay in the real world where ";" in dirpaths is itself problematic.
9678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9679     ;;
9680   *)
9681     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9682     ;;
9683   esac
9684   # Ok, now we have the path, separated by spaces, we can step through it
9685   # and add multilib dir if necessary.
9686   lt_tmp_lt_search_path_spec=
9687   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9688   for lt_sys_path in $lt_search_path_spec; do
9689     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9690       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9691     else
9692       test -d "$lt_sys_path" && \
9693         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9694     fi
9695   done
9696   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9697 BEGIN {RS=" "; FS="/|\n";} {
9698   lt_foo="";
9699   lt_count=0;
9700   for (lt_i = NF; lt_i > 0; lt_i--) {
9701     if ($lt_i != "" && $lt_i != ".") {
9702       if ($lt_i == "..") {
9703         lt_count++;
9704       } else {
9705         if (lt_count == 0) {
9706           lt_foo="/" $lt_i lt_foo;
9707         } else {
9708           lt_count--;
9709         }
9710       }
9711     }
9712   }
9713   if (lt_foo != "") { lt_freq[lt_foo]++; }
9714   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9715 }'`
9716   # AWK program above erroneously prepends '/' to C:/dos/paths
9717   # for these hosts.
9718   case $host_os in
9719     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9720       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9721   esac
9722   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9723 else
9724   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9725 fi
9726 library_names_spec=
9727 libname_spec='lib$name'
9728 soname_spec=
9729 shrext_cmds=".so"
9730 postinstall_cmds=
9731 postuninstall_cmds=
9732 finish_cmds=
9733 finish_eval=
9734 shlibpath_var=
9735 shlibpath_overrides_runpath=unknown
9736 version_type=none
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 need_lib_prefix=unknown
9740 hardcode_into_libs=no
9741
9742 # when you set need_version to no, make sure it does not cause -set_version
9743 # flags to be left without arguments
9744 need_version=unknown
9745
9746 case $host_os in
9747 aix3*)
9748   version_type=linux # correct to gnu/linux during the next big refactor
9749   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9750   shlibpath_var=LIBPATH
9751
9752   # AIX 3 has no versioning support, so we append a major version to the name.
9753   soname_spec='${libname}${release}${shared_ext}$major'
9754   ;;
9755
9756 aix[4-9]*)
9757   version_type=linux # correct to gnu/linux during the next big refactor
9758   need_lib_prefix=no
9759   need_version=no
9760   hardcode_into_libs=yes
9761   if test "$host_cpu" = ia64; then
9762     # AIX 5 supports IA64
9763     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9764     shlibpath_var=LD_LIBRARY_PATH
9765   else
9766     # With GCC up to 2.95.x, collect2 would create an import file
9767     # for dependence libraries.  The import file would start with
9768     # the line `#! .'.  This would cause the generated library to
9769     # depend on `.', always an invalid library.  This was fixed in
9770     # development snapshots of GCC prior to 3.0.
9771     case $host_os in
9772       aix4 | aix4.[01] | aix4.[01].*)
9773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9774            echo ' yes '
9775            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9776         :
9777       else
9778         can_build_shared=no
9779       fi
9780       ;;
9781     esac
9782     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9783     # soname into executable. Probably we can add versioning support to
9784     # collect2, so additional links can be useful in future.
9785     if test "$aix_use_runtimelinking" = yes; then
9786       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9787       # instead of lib<name>.a to let people know that these are not
9788       # typical AIX shared libraries.
9789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790     else
9791       # We preserve .a as extension for shared libraries through AIX4.2
9792       # and later when we are not doing run time linking.
9793       library_names_spec='${libname}${release}.a $libname.a'
9794       soname_spec='${libname}${release}${shared_ext}$major'
9795     fi
9796     shlibpath_var=LIBPATH
9797   fi
9798   ;;
9799
9800 amigaos*)
9801   case $host_cpu in
9802   powerpc)
9803     # Since July 2007 AmigaOS4 officially supports .so libraries.
9804     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806     ;;
9807   m68k)
9808     library_names_spec='$libname.ixlibrary $libname.a'
9809     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9810     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9811     ;;
9812   esac
9813   ;;
9814
9815 beos*)
9816   library_names_spec='${libname}${shared_ext}'
9817   dynamic_linker="$host_os ld.so"
9818   shlibpath_var=LIBRARY_PATH
9819   ;;
9820
9821 bsdi[45]*)
9822   version_type=linux # correct to gnu/linux during the next big refactor
9823   need_version=no
9824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825   soname_spec='${libname}${release}${shared_ext}$major'
9826   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9829   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9830   # the default ld.so.conf also contains /usr/contrib/lib and
9831   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9832   # libtool to hard-code these into programs
9833   ;;
9834
9835 cygwin* | mingw* | pw32* | cegcc*)
9836   version_type=windows
9837   shrext_cmds=".dll"
9838   need_version=no
9839   need_lib_prefix=no
9840
9841   case $GCC,$cc_basename in
9842   yes,*)
9843     # gcc
9844     library_names_spec='$libname.dll.a'
9845     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846     postinstall_cmds='base_file=`basename \${file}`~
9847       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848       dldir=$destdir/`dirname \$dlpath`~
9849       test -d \$dldir || mkdir -p \$dldir~
9850       $install_prog $dir/$dlname \$dldir/$dlname~
9851       chmod a+x \$dldir/$dlname~
9852       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9854       fi'
9855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856       dlpath=$dir/\$dldll~
9857        $RM \$dlpath'
9858     shlibpath_overrides_runpath=yes
9859
9860     case $host_os in
9861     cygwin*)
9862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9864
9865       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9866       ;;
9867     mingw* | cegcc*)
9868       # MinGW DLLs use traditional 'lib' prefix
9869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870       ;;
9871     pw32*)
9872       # pw32 DLLs use 'pw' prefix rather than 'lib'
9873       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874       ;;
9875     esac
9876     dynamic_linker='Win32 ld.exe'
9877     ;;
9878
9879   *,cl*)
9880     # Native MSVC
9881     libname_spec='$name'
9882     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883     library_names_spec='${libname}.dll.lib'
9884
9885     case $build_os in
9886     mingw*)
9887       sys_lib_search_path_spec=
9888       lt_save_ifs=$IFS
9889       IFS=';'
9890       for lt_path in $LIB
9891       do
9892         IFS=$lt_save_ifs
9893         # Let DOS variable expansion print the short 8.3 style file name.
9894         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9895         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9896       done
9897       IFS=$lt_save_ifs
9898       # Convert to MSYS style.
9899       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9900       ;;
9901     cygwin*)
9902       # Convert to unix form, then to dos form, then back to unix form
9903       # but this time dos style (no spaces!) so that the unix form looks
9904       # like /cygdrive/c/PROGRA~1:/cygdr...
9905       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9906       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9907       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9908       ;;
9909     *)
9910       sys_lib_search_path_spec="$LIB"
9911       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9912         # It is most probably a Windows format PATH.
9913         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9914       else
9915         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9916       fi
9917       # FIXME: find the short name or the path components, as spaces are
9918       # common. (e.g. "Program Files" -> "PROGRA~1")
9919       ;;
9920     esac
9921
9922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923     postinstall_cmds='base_file=`basename \${file}`~
9924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925       dldir=$destdir/`dirname \$dlpath`~
9926       test -d \$dldir || mkdir -p \$dldir~
9927       $install_prog $dir/$dlname \$dldir/$dlname'
9928     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9929       dlpath=$dir/\$dldll~
9930        $RM \$dlpath'
9931     shlibpath_overrides_runpath=yes
9932     dynamic_linker='Win32 link.exe'
9933     ;;
9934
9935   *)
9936     # Assume MSVC wrapper
9937     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9938     dynamic_linker='Win32 ld.exe'
9939     ;;
9940   esac
9941   # FIXME: first we should search . and the directory the executable is in
9942   shlibpath_var=PATH
9943   ;;
9944
9945 darwin* | rhapsody*)
9946   dynamic_linker="$host_os dyld"
9947   version_type=darwin
9948   need_lib_prefix=no
9949   need_version=no
9950   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9951   soname_spec='${libname}${release}${major}$shared_ext'
9952   shlibpath_overrides_runpath=yes
9953   shlibpath_var=DYLD_LIBRARY_PATH
9954   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9955
9956   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9957   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9958   ;;
9959
9960 dgux*)
9961   version_type=linux # correct to gnu/linux during the next big refactor
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   shlibpath_var=LD_LIBRARY_PATH
9967   ;;
9968
9969 freebsd* | dragonfly*)
9970   # DragonFly does not have aout.  When/if they implement a new
9971   # versioning mechanism, adjust this.
9972   if test -x /usr/bin/objformat; then
9973     objformat=`/usr/bin/objformat`
9974   else
9975     case $host_os in
9976     freebsd[23].*) objformat=aout ;;
9977     *) objformat=elf ;;
9978     esac
9979   fi
9980   version_type=freebsd-$objformat
9981   case $version_type in
9982     freebsd-elf*)
9983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984       need_version=no
9985       need_lib_prefix=no
9986       ;;
9987     freebsd-*)
9988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989       need_version=yes
9990       ;;
9991   esac
9992   shlibpath_var=LD_LIBRARY_PATH
9993   case $host_os in
9994   freebsd2.*)
9995     shlibpath_overrides_runpath=yes
9996     ;;
9997   freebsd3.[01]* | freebsdelf3.[01]*)
9998     shlibpath_overrides_runpath=yes
9999     hardcode_into_libs=yes
10000     ;;
10001   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003     shlibpath_overrides_runpath=no
10004     hardcode_into_libs=yes
10005     ;;
10006   *) # from 4.6 on, and DragonFly
10007     shlibpath_overrides_runpath=yes
10008     hardcode_into_libs=yes
10009     ;;
10010   esac
10011   ;;
10012
10013 gnu*)
10014   version_type=linux # correct to gnu/linux during the next big refactor
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   shlibpath_overrides_runpath=no
10021   hardcode_into_libs=yes
10022   ;;
10023
10024 haiku*)
10025   version_type=linux # correct to gnu/linux during the next big refactor
10026   need_lib_prefix=no
10027   need_version=no
10028   dynamic_linker="$host_os runtime_loader"
10029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   shlibpath_var=LIBRARY_PATH
10032   shlibpath_overrides_runpath=yes
10033   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10034   hardcode_into_libs=yes
10035   ;;
10036
10037 hpux9* | hpux10* | hpux11*)
10038   # Give a soname corresponding to the major version so that dld.sl refuses to
10039   # link against other versions.
10040   version_type=sunos
10041   need_lib_prefix=no
10042   need_version=no
10043   case $host_cpu in
10044   ia64*)
10045     shrext_cmds='.so'
10046     hardcode_into_libs=yes
10047     dynamic_linker="$host_os dld.so"
10048     shlibpath_var=LD_LIBRARY_PATH
10049     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051     soname_spec='${libname}${release}${shared_ext}$major'
10052     if test "X$HPUX_IA64_MODE" = X32; then
10053       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10054     else
10055       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10056     fi
10057     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058     ;;
10059   hppa*64*)
10060     shrext_cmds='.sl'
10061     hardcode_into_libs=yes
10062     dynamic_linker="$host_os dld.sl"
10063     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066     soname_spec='${libname}${release}${shared_ext}$major'
10067     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069     ;;
10070   *)
10071     shrext_cmds='.sl'
10072     dynamic_linker="$host_os dld.sl"
10073     shlibpath_var=SHLIB_PATH
10074     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076     soname_spec='${libname}${release}${shared_ext}$major'
10077     ;;
10078   esac
10079   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10080   postinstall_cmds='chmod 555 $lib'
10081   # or fails outright, so override atomically:
10082   install_override_mode=555
10083   ;;
10084
10085 interix[3-9]*)
10086   version_type=linux # correct to gnu/linux during the next big refactor
10087   need_lib_prefix=no
10088   need_version=no
10089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090   soname_spec='${libname}${release}${shared_ext}$major'
10091   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092   shlibpath_var=LD_LIBRARY_PATH
10093   shlibpath_overrides_runpath=no
10094   hardcode_into_libs=yes
10095   ;;
10096
10097 irix5* | irix6* | nonstopux*)
10098   case $host_os in
10099     nonstopux*) version_type=nonstopux ;;
10100     *)
10101         if test "$lt_cv_prog_gnu_ld" = yes; then
10102                 version_type=linux # correct to gnu/linux during the next big refactor
10103         else
10104                 version_type=irix
10105         fi ;;
10106   esac
10107   need_lib_prefix=no
10108   need_version=no
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10111   case $host_os in
10112   irix5* | nonstopux*)
10113     libsuff= shlibsuff=
10114     ;;
10115   *)
10116     case $LD in # libtool.m4 will add one of these switches to LD
10117     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118       libsuff= shlibsuff= libmagic=32-bit;;
10119     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120       libsuff=32 shlibsuff=N32 libmagic=N32;;
10121     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123     *) libsuff= shlibsuff= libmagic=never-match;;
10124     esac
10125     ;;
10126   esac
10127   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128   shlibpath_overrides_runpath=no
10129   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131   hardcode_into_libs=yes
10132   ;;
10133
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10136   dynamic_linker=no
10137   ;;
10138
10139 # This must be glibc/ELF.
10140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10141   version_type=linux # correct to gnu/linux during the next big refactor
10142   need_lib_prefix=no
10143   need_version=no
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   shlibpath_overrides_runpath=no
10149
10150   # Some binutils ld are patched to set DT_RUNPATH
10151   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   lt_cv_shlibpath_overrides_runpath=no
10155     save_LDFLAGS=$LDFLAGS
10156     save_libdir=$libdir
10157     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10158          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161
10162 int
10163 main ()
10164 {
10165
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10172   lt_cv_shlibpath_overrides_runpath=yes
10173 fi
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext \
10176     conftest$ac_exeext conftest.$ac_ext
10177     LDFLAGS=$save_LDFLAGS
10178     libdir=$save_libdir
10179
10180 fi
10181
10182   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10183
10184   # This implies no fast_install, which is unacceptable.
10185   # Some rework will be needed to allow for fast_install
10186   # before this can be enabled.
10187   hardcode_into_libs=yes
10188
10189   # Append ld.so.conf contents to the search path
10190   if test -f /etc/ld.so.conf; then
10191     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' ' '`
10192     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10193   fi
10194
10195   # We used to test for /lib/ld.so.1 and disable shared libraries on
10196   # powerpc, because MkLinux only supported shared libraries with the
10197   # GNU dynamic linker.  Since this was broken with cross compilers,
10198   # most powerpc-linux boxes support dynamic linking these days and
10199   # people can always --disable-shared, the test was removed, and we
10200   # assume the GNU/Linux dynamic linker is in use.
10201   dynamic_linker='GNU/Linux ld.so'
10202   ;;
10203
10204 netbsdelf*-gnu)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   shlibpath_var=LD_LIBRARY_PATH
10211   shlibpath_overrides_runpath=no
10212   hardcode_into_libs=yes
10213   dynamic_linker='NetBSD ld.elf_so'
10214   ;;
10215
10216 netbsd*)
10217   version_type=sunos
10218   need_lib_prefix=no
10219   need_version=no
10220   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10222     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10223     dynamic_linker='NetBSD (a.out) ld.so'
10224   else
10225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10226     soname_spec='${libname}${release}${shared_ext}$major'
10227     dynamic_linker='NetBSD ld.elf_so'
10228   fi
10229   shlibpath_var=LD_LIBRARY_PATH
10230   shlibpath_overrides_runpath=yes
10231   hardcode_into_libs=yes
10232   ;;
10233
10234 newsos6)
10235   version_type=linux # correct to gnu/linux during the next big refactor
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   shlibpath_overrides_runpath=yes
10239   ;;
10240
10241 *nto* | *qnx*)
10242   version_type=qnx
10243   need_lib_prefix=no
10244   need_version=no
10245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246   soname_spec='${libname}${release}${shared_ext}$major'
10247   shlibpath_var=LD_LIBRARY_PATH
10248   shlibpath_overrides_runpath=no
10249   hardcode_into_libs=yes
10250   dynamic_linker='ldqnx.so'
10251   ;;
10252
10253 openbsd*)
10254   version_type=sunos
10255   sys_lib_dlsearch_path_spec="/usr/lib"
10256   need_lib_prefix=no
10257   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10258   case $host_os in
10259     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10260     *)                          need_version=no  ;;
10261   esac
10262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264   shlibpath_var=LD_LIBRARY_PATH
10265   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10266     case $host_os in
10267       openbsd2.[89] | openbsd2.[89].*)
10268         shlibpath_overrides_runpath=no
10269         ;;
10270       *)
10271         shlibpath_overrides_runpath=yes
10272         ;;
10273       esac
10274   else
10275     shlibpath_overrides_runpath=yes
10276   fi
10277   ;;
10278
10279 os2*)
10280   libname_spec='$name'
10281   shrext_cmds=".dll"
10282   need_lib_prefix=no
10283   library_names_spec='$libname${shared_ext} $libname.a'
10284   dynamic_linker='OS/2 ld.exe'
10285   shlibpath_var=LIBPATH
10286   ;;
10287
10288 osf3* | osf4* | osf5*)
10289   version_type=osf
10290   need_lib_prefix=no
10291   need_version=no
10292   soname_spec='${libname}${release}${shared_ext}$major'
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10296   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10297   ;;
10298
10299 rdos*)
10300   dynamic_linker=no
10301   ;;
10302
10303 solaris*)
10304   version_type=linux # correct to gnu/linux during the next big refactor
10305   need_lib_prefix=no
10306   need_version=no
10307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   shlibpath_var=LD_LIBRARY_PATH
10310   shlibpath_overrides_runpath=yes
10311   hardcode_into_libs=yes
10312   # ldd complains unless libraries are executable
10313   postinstall_cmds='chmod +x $lib'
10314   ;;
10315
10316 sunos4*)
10317   version_type=sunos
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   shlibpath_overrides_runpath=yes
10322   if test "$with_gnu_ld" = yes; then
10323     need_lib_prefix=no
10324   fi
10325   need_version=yes
10326   ;;
10327
10328 sysv4 | sysv4.3*)
10329   version_type=linux # correct to gnu/linux during the next big refactor
10330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331   soname_spec='${libname}${release}${shared_ext}$major'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   case $host_vendor in
10334     sni)
10335       shlibpath_overrides_runpath=no
10336       need_lib_prefix=no
10337       runpath_var=LD_RUN_PATH
10338       ;;
10339     siemens)
10340       need_lib_prefix=no
10341       ;;
10342     motorola)
10343       need_lib_prefix=no
10344       need_version=no
10345       shlibpath_overrides_runpath=no
10346       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10347       ;;
10348   esac
10349   ;;
10350
10351 sysv4*MP*)
10352   if test -d /usr/nec ;then
10353     version_type=linux # correct to gnu/linux during the next big refactor
10354     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355     soname_spec='$libname${shared_ext}.$major'
10356     shlibpath_var=LD_LIBRARY_PATH
10357   fi
10358   ;;
10359
10360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10361   version_type=freebsd-elf
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   shlibpath_overrides_runpath=yes
10368   hardcode_into_libs=yes
10369   if test "$with_gnu_ld" = yes; then
10370     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10371   else
10372     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10373     case $host_os in
10374       sco3.2v5*)
10375         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10376         ;;
10377     esac
10378   fi
10379   sys_lib_dlsearch_path_spec='/usr/lib'
10380   ;;
10381
10382 tpf*)
10383   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10384   version_type=linux # correct to gnu/linux during the next big refactor
10385   need_lib_prefix=no
10386   need_version=no
10387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388   shlibpath_var=LD_LIBRARY_PATH
10389   shlibpath_overrides_runpath=no
10390   hardcode_into_libs=yes
10391   ;;
10392
10393 uts4*)
10394   version_type=linux # correct to gnu/linux during the next big refactor
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   ;;
10399
10400 *)
10401   dynamic_linker=no
10402   ;;
10403 esac
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10405 $as_echo "$dynamic_linker" >&6; }
10406 test "$dynamic_linker" = no && can_build_shared=no
10407
10408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10409 if test "$GCC" = yes; then
10410   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10411 fi
10412
10413 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10414   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10415 fi
10416 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10417   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10418 fi
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10513 hardcode_action=
10514 if test -n "$hardcode_libdir_flag_spec" ||
10515    test -n "$runpath_var" ||
10516    test "X$hardcode_automatic" = "Xyes" ; then
10517
10518   # We can hardcode non-existent directories.
10519   if test "$hardcode_direct" != no &&
10520      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10521      # have to relink, otherwise we might link with an installed library
10522      # when we should be linking with a yet-to-be-installed one
10523      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10524      test "$hardcode_minus_L" != no; then
10525     # Linking always hardcodes the temporary library directory.
10526     hardcode_action=relink
10527   else
10528     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10529     hardcode_action=immediate
10530   fi
10531 else
10532   # We cannot hardcode anything, or else we can only hardcode existing
10533   # directories.
10534   hardcode_action=unsupported
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10537 $as_echo "$hardcode_action" >&6; }
10538
10539 if test "$hardcode_action" = relink ||
10540    test "$inherit_rpath" = yes; then
10541   # Fast installation is not supported
10542   enable_fast_install=no
10543 elif test "$shlibpath_overrides_runpath" = yes ||
10544      test "$enable_shared" = no; then
10545   # Fast installation is not necessary
10546   enable_fast_install=needless
10547 fi
10548
10549
10550
10551
10552
10553
10554   if test "x$enable_dlopen" != xyes; then
10555   enable_dlopen=unknown
10556   enable_dlopen_self=unknown
10557   enable_dlopen_self_static=unknown
10558 else
10559   lt_cv_dlopen=no
10560   lt_cv_dlopen_libs=
10561
10562   case $host_os in
10563   beos*)
10564     lt_cv_dlopen="load_add_on"
10565     lt_cv_dlopen_libs=
10566     lt_cv_dlopen_self=yes
10567     ;;
10568
10569   mingw* | pw32* | cegcc*)
10570     lt_cv_dlopen="LoadLibrary"
10571     lt_cv_dlopen_libs=
10572     ;;
10573
10574   cygwin*)
10575     lt_cv_dlopen="dlopen"
10576     lt_cv_dlopen_libs=
10577     ;;
10578
10579   darwin*)
10580   # if libdl is installed we need to link against it
10581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10583 if ${ac_cv_lib_dl_dlopen+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ldl  $LIBS"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h.  */
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char dlopen ();
10598 int
10599 main ()
10600 {
10601 return dlopen ();
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607   ac_cv_lib_dl_dlopen=yes
10608 else
10609   ac_cv_lib_dl_dlopen=no
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext \
10612     conftest$ac_exeext conftest.$ac_ext
10613 LIBS=$ac_check_lib_save_LIBS
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10616 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10617 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10618   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10619 else
10620
10621     lt_cv_dlopen="dyld"
10622     lt_cv_dlopen_libs=
10623     lt_cv_dlopen_self=yes
10624
10625 fi
10626
10627     ;;
10628
10629   *)
10630     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10631 if test "x$ac_cv_func_shl_load" = xyes; then :
10632   lt_cv_dlopen="shl_load"
10633 else
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10635 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10636 if ${ac_cv_lib_dld_shl_load+:} false; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-ldld  $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h.  */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645    Use char because int might match the return type of a GCC
10646    builtin and then its argument prototype would still apply.  */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char shl_load ();
10651 int
10652 main ()
10653 {
10654 return shl_load ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660   ac_cv_lib_dld_shl_load=yes
10661 else
10662   ac_cv_lib_dld_shl_load=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665     conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10669 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10670 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10671   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10672 else
10673   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10674 if test "x$ac_cv_func_dlopen" = xyes; then :
10675   lt_cv_dlopen="dlopen"
10676 else
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10679 if ${ac_cv_lib_dl_dlopen+:} false; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682   ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-ldl  $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h.  */
10686
10687 /* Override any GCC internal prototype to avoid an error.
10688    Use char because int might match the return type of a GCC
10689    builtin and then its argument prototype would still apply.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char dlopen ();
10694 int
10695 main ()
10696 {
10697 return dlopen ();
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703   ac_cv_lib_dl_dlopen=yes
10704 else
10705   ac_cv_lib_dl_dlopen=no
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext \
10708     conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10713 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10714   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10715 else
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10717 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10718 if ${ac_cv_lib_svld_dlopen+:} false; then :
10719   $as_echo_n "(cached) " >&6
10720 else
10721   ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lsvld  $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h.  */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727    Use char because int might match the return type of a GCC
10728    builtin and then its argument prototype would still apply.  */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dlopen ();
10733 int
10734 main ()
10735 {
10736 return dlopen ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742   ac_cv_lib_svld_dlopen=yes
10743 else
10744   ac_cv_lib_svld_dlopen=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747     conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10751 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10752 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10753   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10754 else
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10756 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10757 if ${ac_cv_lib_dld_dld_link+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-ldld  $LIBS"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h.  */
10764
10765 /* Override any GCC internal prototype to avoid an error.
10766    Use char because int might match the return type of a GCC
10767    builtin and then its argument prototype would still apply.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 char dld_link ();
10772 int
10773 main ()
10774 {
10775 return dld_link ();
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781   ac_cv_lib_dld_dld_link=yes
10782 else
10783   ac_cv_lib_dld_dld_link=no
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10790 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10791 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10792   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10793 fi
10794
10795
10796 fi
10797
10798
10799 fi
10800
10801
10802 fi
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810     ;;
10811   esac
10812
10813   if test "x$lt_cv_dlopen" != xno; then
10814     enable_dlopen=yes
10815   else
10816     enable_dlopen=no
10817   fi
10818
10819   case $lt_cv_dlopen in
10820   dlopen)
10821     save_CPPFLAGS="$CPPFLAGS"
10822     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10823
10824     save_LDFLAGS="$LDFLAGS"
10825     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10826
10827     save_LIBS="$LIBS"
10828     LIBS="$lt_cv_dlopen_libs $LIBS"
10829
10830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10831 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10832 if ${lt_cv_dlopen_self+:} false; then :
10833   $as_echo_n "(cached) " >&6
10834 else
10835           if test "$cross_compiling" = yes; then :
10836   lt_cv_dlopen_self=cross
10837 else
10838   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10839   lt_status=$lt_dlunknown
10840   cat > conftest.$ac_ext <<_LT_EOF
10841 #line $LINENO "configure"
10842 #include "confdefs.h"
10843
10844 #if HAVE_DLFCN_H
10845 #include <dlfcn.h>
10846 #endif
10847
10848 #include <stdio.h>
10849
10850 #ifdef RTLD_GLOBAL
10851 #  define LT_DLGLOBAL           RTLD_GLOBAL
10852 #else
10853 #  ifdef DL_GLOBAL
10854 #    define LT_DLGLOBAL         DL_GLOBAL
10855 #  else
10856 #    define LT_DLGLOBAL         0
10857 #  endif
10858 #endif
10859
10860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10861    find out it does not work in some platform. */
10862 #ifndef LT_DLLAZY_OR_NOW
10863 #  ifdef RTLD_LAZY
10864 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10865 #  else
10866 #    ifdef DL_LAZY
10867 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10868 #    else
10869 #      ifdef RTLD_NOW
10870 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10871 #      else
10872 #        ifdef DL_NOW
10873 #          define LT_DLLAZY_OR_NOW      DL_NOW
10874 #        else
10875 #          define LT_DLLAZY_OR_NOW      0
10876 #        endif
10877 #      endif
10878 #    endif
10879 #  endif
10880 #endif
10881
10882 /* When -fvisbility=hidden is used, assume the code has been annotated
10883    correspondingly for the symbols needed.  */
10884 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10885 int fnord () __attribute__((visibility("default")));
10886 #endif
10887
10888 int fnord () { return 42; }
10889 int main ()
10890 {
10891   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10892   int status = $lt_dlunknown;
10893
10894   if (self)
10895     {
10896       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10897       else
10898         {
10899           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10900           else puts (dlerror ());
10901         }
10902       /* dlclose (self); */
10903     }
10904   else
10905     puts (dlerror ());
10906
10907   return status;
10908 }
10909 _LT_EOF
10910   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10911   (eval $ac_link) 2>&5
10912   ac_status=$?
10913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10915     (./conftest; exit; ) >&5 2>/dev/null
10916     lt_status=$?
10917     case x$lt_status in
10918       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10919       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10920       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10921     esac
10922   else :
10923     # compilation failed
10924     lt_cv_dlopen_self=no
10925   fi
10926 fi
10927 rm -fr conftest*
10928
10929
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10932 $as_echo "$lt_cv_dlopen_self" >&6; }
10933
10934     if test "x$lt_cv_dlopen_self" = xyes; then
10935       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10936       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10937 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10938 if ${lt_cv_dlopen_self_static+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941           if test "$cross_compiling" = yes; then :
10942   lt_cv_dlopen_self_static=cross
10943 else
10944   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945   lt_status=$lt_dlunknown
10946   cat > conftest.$ac_ext <<_LT_EOF
10947 #line $LINENO "configure"
10948 #include "confdefs.h"
10949
10950 #if HAVE_DLFCN_H
10951 #include <dlfcn.h>
10952 #endif
10953
10954 #include <stdio.h>
10955
10956 #ifdef RTLD_GLOBAL
10957 #  define LT_DLGLOBAL           RTLD_GLOBAL
10958 #else
10959 #  ifdef DL_GLOBAL
10960 #    define LT_DLGLOBAL         DL_GLOBAL
10961 #  else
10962 #    define LT_DLGLOBAL         0
10963 #  endif
10964 #endif
10965
10966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967    find out it does not work in some platform. */
10968 #ifndef LT_DLLAZY_OR_NOW
10969 #  ifdef RTLD_LAZY
10970 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10971 #  else
10972 #    ifdef DL_LAZY
10973 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10974 #    else
10975 #      ifdef RTLD_NOW
10976 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10977 #      else
10978 #        ifdef DL_NOW
10979 #          define LT_DLLAZY_OR_NOW      DL_NOW
10980 #        else
10981 #          define LT_DLLAZY_OR_NOW      0
10982 #        endif
10983 #      endif
10984 #    endif
10985 #  endif
10986 #endif
10987
10988 /* When -fvisbility=hidden is used, assume the code has been annotated
10989    correspondingly for the symbols needed.  */
10990 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10991 int fnord () __attribute__((visibility("default")));
10992 #endif
10993
10994 int fnord () { return 42; }
10995 int main ()
10996 {
10997   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10998   int status = $lt_dlunknown;
10999
11000   if (self)
11001     {
11002       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11003       else
11004         {
11005           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11006           else puts (dlerror ());
11007         }
11008       /* dlclose (self); */
11009     }
11010   else
11011     puts (dlerror ());
11012
11013   return status;
11014 }
11015 _LT_EOF
11016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11017   (eval $ac_link) 2>&5
11018   ac_status=$?
11019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11021     (./conftest; exit; ) >&5 2>/dev/null
11022     lt_status=$?
11023     case x$lt_status in
11024       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11025       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11026       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11027     esac
11028   else :
11029     # compilation failed
11030     lt_cv_dlopen_self_static=no
11031   fi
11032 fi
11033 rm -fr conftest*
11034
11035
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11038 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11039     fi
11040
11041     CPPFLAGS="$save_CPPFLAGS"
11042     LDFLAGS="$save_LDFLAGS"
11043     LIBS="$save_LIBS"
11044     ;;
11045   esac
11046
11047   case $lt_cv_dlopen_self in
11048   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11049   *) enable_dlopen_self=unknown ;;
11050   esac
11051
11052   case $lt_cv_dlopen_self_static in
11053   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11054   *) enable_dlopen_self_static=unknown ;;
11055   esac
11056 fi
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 striplib=
11075 old_striplib=
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11077 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11078 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11079   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11082 $as_echo "yes" >&6; }
11083 else
11084 # FIXME - insert some real tests, host_os isn't really good enough
11085   case $host_os in
11086   darwin*)
11087     if test -n "$STRIP" ; then
11088       striplib="$STRIP -x"
11089       old_striplib="$STRIP -S"
11090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11092     else
11093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095     fi
11096     ;;
11097   *)
11098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100     ;;
11101   esac
11102 fi
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115   # Report which library types will actually be built
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11117 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11119 $as_echo "$can_build_shared" >&6; }
11120
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11122 $as_echo_n "checking whether to build shared libraries... " >&6; }
11123   test "$can_build_shared" = "no" && enable_shared=no
11124
11125   # On AIX, shared libraries and static libraries use the same namespace, and
11126   # are all built from PIC.
11127   case $host_os in
11128   aix3*)
11129     test "$enable_shared" = yes && enable_static=no
11130     if test -n "$RANLIB"; then
11131       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11132       postinstall_cmds='$RANLIB $lib'
11133     fi
11134     ;;
11135
11136   aix[4-9]*)
11137     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11138       test "$enable_shared" = yes && enable_static=no
11139     fi
11140     ;;
11141   esac
11142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11143 $as_echo "$enable_shared" >&6; }
11144
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11146 $as_echo_n "checking whether to build static libraries... " >&6; }
11147   # Make sure either enable_shared or enable_static is yes.
11148   test "$enable_shared" = yes || enable_static=yes
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11150 $as_echo "$enable_static" >&6; }
11151
11152
11153
11154
11155 fi
11156 ac_ext=c
11157 ac_cpp='$CPP $CPPFLAGS'
11158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11161
11162 CC="$lt_save_CC"
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178         ac_config_commands="$ac_config_commands libtool"
11179
11180
11181
11182
11183 # Only expand once:
11184
11185
11186 ac_ext=c
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191 if test -n "$ac_tool_prefix"; then
11192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_prog_CC+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   if test -n "$CC"; then
11200   ac_cv_prog_CC="$CC" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205   IFS=$as_save_IFS
11206   test -z "$as_dir" && as_dir=.
11207     for ac_exec_ext in '' $ac_executable_extensions; do
11208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211     break 2
11212   fi
11213 done
11214   done
11215 IFS=$as_save_IFS
11216
11217 fi
11218 fi
11219 CC=$ac_cv_prog_CC
11220 if test -n "$CC"; then
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11222 $as_echo "$CC" >&6; }
11223 else
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229 fi
11230 if test -z "$ac_cv_prog_CC"; then
11231   ac_ct_CC=$CC
11232   # Extract the first word of "gcc", so it can be a program name with args.
11233 set dummy gcc; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   if test -n "$ac_ct_CC"; then
11240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11241 else
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245   IFS=$as_save_IFS
11246   test -z "$as_dir" && as_dir=.
11247     for ac_exec_ext in '' $ac_executable_extensions; do
11248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249     ac_cv_prog_ac_ct_CC="gcc"
11250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251     break 2
11252   fi
11253 done
11254   done
11255 IFS=$as_save_IFS
11256
11257 fi
11258 fi
11259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11260 if test -n "$ac_ct_CC"; then
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11262 $as_echo "$ac_ct_CC" >&6; }
11263 else
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 fi
11267
11268   if test "x$ac_ct_CC" = x; then
11269     CC=""
11270   else
11271     case $cross_compiling:$ac_tool_warned in
11272 yes:)
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11275 ac_tool_warned=yes ;;
11276 esac
11277     CC=$ac_ct_CC
11278   fi
11279 else
11280   CC="$ac_cv_prog_CC"
11281 fi
11282
11283 if test -z "$CC"; then
11284           if test -n "$ac_tool_prefix"; then
11285     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11286 set dummy ${ac_tool_prefix}cc; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_prog_CC+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   if test -n "$CC"; then
11293   ac_cv_prog_CC="$CC" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11297 do
11298   IFS=$as_save_IFS
11299   test -z "$as_dir" && as_dir=.
11300     for ac_exec_ext in '' $ac_executable_extensions; do
11301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302     ac_cv_prog_CC="${ac_tool_prefix}cc"
11303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304     break 2
11305   fi
11306 done
11307   done
11308 IFS=$as_save_IFS
11309
11310 fi
11311 fi
11312 CC=$ac_cv_prog_CC
11313 if test -n "$CC"; then
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11315 $as_echo "$CC" >&6; }
11316 else
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320
11321
11322   fi
11323 fi
11324 if test -z "$CC"; then
11325   # Extract the first word of "cc", so it can be a program name with args.
11326 set dummy cc; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_CC+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   if test -n "$CC"; then
11333   ac_cv_prog_CC="$CC" # Let the user override the test.
11334 else
11335   ac_prog_rejected=no
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $PATH
11338 do
11339   IFS=$as_save_IFS
11340   test -z "$as_dir" && as_dir=.
11341     for ac_exec_ext in '' $ac_executable_extensions; do
11342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11344        ac_prog_rejected=yes
11345        continue
11346      fi
11347     ac_cv_prog_CC="cc"
11348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349     break 2
11350   fi
11351 done
11352   done
11353 IFS=$as_save_IFS
11354
11355 if test $ac_prog_rejected = yes; then
11356   # We found a bogon in the path, so make sure we never use it.
11357   set dummy $ac_cv_prog_CC
11358   shift
11359   if test $# != 0; then
11360     # We chose a different compiler from the bogus one.
11361     # However, it has the same basename, so the bogon will be chosen
11362     # first if we set CC to just the basename; use the full file name.
11363     shift
11364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11365   fi
11366 fi
11367 fi
11368 fi
11369 CC=$ac_cv_prog_CC
11370 if test -n "$CC"; then
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11372 $as_echo "$CC" >&6; }
11373 else
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377
11378
11379 fi
11380 if test -z "$CC"; then
11381   if test -n "$ac_tool_prefix"; then
11382   for ac_prog in cl.exe
11383   do
11384     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_CC+:} false; then :
11389   $as_echo_n "(cached) " >&6
11390 else
11391   if test -n "$CC"; then
11392   ac_cv_prog_CC="$CC" # Let the user override the test.
11393 else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397   IFS=$as_save_IFS
11398   test -z "$as_dir" && as_dir=.
11399     for ac_exec_ext in '' $ac_executable_extensions; do
11400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403     break 2
11404   fi
11405 done
11406   done
11407 IFS=$as_save_IFS
11408
11409 fi
11410 fi
11411 CC=$ac_cv_prog_CC
11412 if test -n "$CC"; then
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11414 $as_echo "$CC" >&6; }
11415 else
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 fi
11419
11420
11421     test -n "$CC" && break
11422   done
11423 fi
11424 if test -z "$CC"; then
11425   ac_ct_CC=$CC
11426   for ac_prog in cl.exe
11427 do
11428   # Extract the first word of "$ac_prog", so it can be a program name with args.
11429 set dummy $ac_prog; ac_word=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11433   $as_echo_n "(cached) " >&6
11434 else
11435   if test -n "$ac_ct_CC"; then
11436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11437 else
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11440 do
11441   IFS=$as_save_IFS
11442   test -z "$as_dir" && as_dir=.
11443     for ac_exec_ext in '' $ac_executable_extensions; do
11444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445     ac_cv_prog_ac_ct_CC="$ac_prog"
11446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447     break 2
11448   fi
11449 done
11450   done
11451 IFS=$as_save_IFS
11452
11453 fi
11454 fi
11455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11456 if test -n "$ac_ct_CC"; then
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11458 $as_echo "$ac_ct_CC" >&6; }
11459 else
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 fi
11463
11464
11465   test -n "$ac_ct_CC" && break
11466 done
11467
11468   if test "x$ac_ct_CC" = x; then
11469     CC=""
11470   else
11471     case $cross_compiling:$ac_tool_warned in
11472 yes:)
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11475 ac_tool_warned=yes ;;
11476 esac
11477     CC=$ac_ct_CC
11478   fi
11479 fi
11480
11481 fi
11482
11483
11484 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11486 as_fn_error $? "no acceptable C compiler found in \$PATH
11487 See \`config.log' for more details" "$LINENO" 5; }
11488
11489 # Provide some information about the compiler.
11490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11491 set X $ac_compile
11492 ac_compiler=$2
11493 for ac_option in --version -v -V -qversion; do
11494   { { ac_try="$ac_compiler $ac_option >&5"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11500 $as_echo "$ac_try_echo"; } >&5
11501   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11502   ac_status=$?
11503   if test -s conftest.err; then
11504     sed '10a\
11505 ... rest of stderr output deleted ...
11506          10q' conftest.err >conftest.er1
11507     cat conftest.er1 >&5
11508   fi
11509   rm -f conftest.er1 conftest.err
11510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11511   test $ac_status = 0; }
11512 done
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11516 if ${ac_cv_c_compiler_gnu+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h.  */
11521
11522 int
11523 main ()
11524 {
11525 #ifndef __GNUC__
11526        choke me
11527 #endif
11528
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534   ac_compiler_gnu=yes
11535 else
11536   ac_compiler_gnu=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11540
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11544 if test $ac_compiler_gnu = yes; then
11545   GCC=yes
11546 else
11547   GCC=
11548 fi
11549 ac_test_CFLAGS=${CFLAGS+set}
11550 ac_save_CFLAGS=$CFLAGS
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11553 if ${ac_cv_prog_cc_g+:} false; then :
11554   $as_echo_n "(cached) " >&6
11555 else
11556   ac_save_c_werror_flag=$ac_c_werror_flag
11557    ac_c_werror_flag=yes
11558    ac_cv_prog_cc_g=no
11559    CFLAGS="-g"
11560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 int
11564 main ()
11565 {
11566
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 if ac_fn_c_try_compile "$LINENO"; then :
11572   ac_cv_prog_cc_g=yes
11573 else
11574   CFLAGS=""
11575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577
11578 int
11579 main ()
11580 {
11581
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_compile "$LINENO"; then :
11587
11588 else
11589   ac_c_werror_flag=$ac_save_c_werror_flag
11590          CFLAGS="-g"
11591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593
11594 int
11595 main ()
11596 {
11597
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_compile "$LINENO"; then :
11603   ac_cv_prog_cc_g=yes
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610    ac_c_werror_flag=$ac_save_c_werror_flag
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11613 $as_echo "$ac_cv_prog_cc_g" >&6; }
11614 if test "$ac_test_CFLAGS" = set; then
11615   CFLAGS=$ac_save_CFLAGS
11616 elif test $ac_cv_prog_cc_g = yes; then
11617   if test "$GCC" = yes; then
11618     CFLAGS="-g -O2"
11619   else
11620     CFLAGS="-g"
11621   fi
11622 else
11623   if test "$GCC" = yes; then
11624     CFLAGS="-O2"
11625   else
11626     CFLAGS=
11627   fi
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11631 if ${ac_cv_prog_cc_c89+:} false; then :
11632   $as_echo_n "(cached) " >&6
11633 else
11634   ac_cv_prog_cc_c89=no
11635 ac_save_CC=$CC
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h.  */
11638 #include <stdarg.h>
11639 #include <stdio.h>
11640 #include <sys/types.h>
11641 #include <sys/stat.h>
11642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11643 struct buf { int x; };
11644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11645 static char *e (p, i)
11646      char **p;
11647      int i;
11648 {
11649   return p[i];
11650 }
11651 static char *f (char * (*g) (char **, int), char **p, ...)
11652 {
11653   char *s;
11654   va_list v;
11655   va_start (v,p);
11656   s = g (p, va_arg (v,int));
11657   va_end (v);
11658   return s;
11659 }
11660
11661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11662    function prototypes and stuff, but not '\xHH' hex character constants.
11663    These don't provoke an error unfortunately, instead are silently treated
11664    as 'x'.  The following induces an error, until -std is added to get
11665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11666    array size at least.  It's necessary to write '\x00'==0 to get something
11667    that's true only with -std.  */
11668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11669
11670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11671    inside strings and character constants.  */
11672 #define FOO(x) 'x'
11673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11674
11675 int test (int i, double x);
11676 struct s1 {int (*f) (int a);};
11677 struct s2 {int (*f) (double a);};
11678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11679 int argc;
11680 char **argv;
11681 int
11682 main ()
11683 {
11684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11691 do
11692   CC="$ac_save_CC $ac_arg"
11693   if ac_fn_c_try_compile "$LINENO"; then :
11694   ac_cv_prog_cc_c89=$ac_arg
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext
11697   test "x$ac_cv_prog_cc_c89" != "xno" && break
11698 done
11699 rm -f conftest.$ac_ext
11700 CC=$ac_save_CC
11701
11702 fi
11703 # AC_CACHE_VAL
11704 case "x$ac_cv_prog_cc_c89" in
11705   x)
11706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11707 $as_echo "none needed" >&6; } ;;
11708   xno)
11709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11710 $as_echo "unsupported" >&6; } ;;
11711   *)
11712     CC="$CC $ac_cv_prog_cc_c89"
11713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11715 esac
11716 if test "x$ac_cv_prog_cc_c89" != xno; then :
11717
11718 fi
11719
11720 ac_ext=c
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11725
11726 depcc="$CC"   am_compiler_list=
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11729 $as_echo_n "checking dependency style of $depcc... " >&6; }
11730 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11734   # We make a subdir and do the tests there.  Otherwise we can end up
11735   # making bogus files that we don't know about and never remove.  For
11736   # instance it was reported that on HP-UX the gcc test will end up
11737   # making a dummy file named `D' -- because `-MD' means `put the output
11738   # in D'.
11739   rm -rf conftest.dir
11740   mkdir conftest.dir
11741   # Copy depcomp to subdir because otherwise we won't find it if we're
11742   # using a relative directory.
11743   cp "$am_depcomp" conftest.dir
11744   cd conftest.dir
11745   # We will build objects and dependencies in a subdirectory because
11746   # it helps to detect inapplicable dependency modes.  For instance
11747   # both Tru64's cc and ICC support -MD to output dependencies as a
11748   # side effect of compilation, but ICC will put the dependencies in
11749   # the current directory while Tru64 will put them in the object
11750   # directory.
11751   mkdir sub
11752
11753   am_cv_CC_dependencies_compiler_type=none
11754   if test "$am_compiler_list" = ""; then
11755      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11756   fi
11757   am__universal=false
11758   case " $depcc " in #(
11759      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11760      esac
11761
11762   for depmode in $am_compiler_list; do
11763     # Setup a source with many dependencies, because some compilers
11764     # like to wrap large dependency lists on column 80 (with \), and
11765     # we should not choose a depcomp mode which is confused by this.
11766     #
11767     # We need to recreate these files for each test, as the compiler may
11768     # overwrite some of them when testing with obscure command lines.
11769     # This happens at least with the AIX C compiler.
11770     : > sub/conftest.c
11771     for i in 1 2 3 4 5 6; do
11772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11774       # Solaris 8's {/usr,}/bin/sh.
11775       touch sub/conftst$i.h
11776     done
11777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11778
11779     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11780     # mode.  It turns out that the SunPro C++ compiler does not properly
11781     # handle `-M -o', and we need to detect this.  Also, some Intel
11782     # versions had trouble with output in subdirs
11783     am__obj=sub/conftest.${OBJEXT-o}
11784     am__minus_obj="-o $am__obj"
11785     case $depmode in
11786     gcc)
11787       # This depmode causes a compiler race in universal mode.
11788       test "$am__universal" = false || continue
11789       ;;
11790     nosideeffect)
11791       # after this tag, mechanisms are not by side-effect, so they'll
11792       # only be used when explicitly requested
11793       if test "x$enable_dependency_tracking" = xyes; then
11794         continue
11795       else
11796         break
11797       fi
11798       ;;
11799     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11800       # This compiler won't grok `-c -o', but also, the minuso test has
11801       # not run yet.  These depmodes are late enough in the game, and
11802       # so weak that their functioning should not be impacted.
11803       am__obj=conftest.${OBJEXT-o}
11804       am__minus_obj=
11805       ;;
11806     none) break ;;
11807     esac
11808     if depmode=$depmode \
11809        source=sub/conftest.c object=$am__obj \
11810        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11811        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11812          >/dev/null 2>conftest.err &&
11813        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11814        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11815        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11816        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11817       # icc doesn't choke on unknown options, it will just issue warnings
11818       # or remarks (even with -Werror).  So we grep stderr for any message
11819       # that says an option was ignored or not supported.
11820       # When given -MP, icc 7.0 and 7.1 complain thusly:
11821       #   icc: Command line warning: ignoring option '-M'; no argument required
11822       # The diagnosis changed in icc 8.0:
11823       #   icc: Command line remark: option '-MP' not supported
11824       if (grep 'ignoring option' conftest.err ||
11825           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11826         am_cv_CC_dependencies_compiler_type=$depmode
11827         break
11828       fi
11829     fi
11830   done
11831
11832   cd ..
11833   rm -rf conftest.dir
11834 else
11835   am_cv_CC_dependencies_compiler_type=none
11836 fi
11837
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11842
11843  if
11844   test "x$enable_dependency_tracking" != xno \
11845   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11846   am__fastdepCC_TRUE=
11847   am__fastdepCC_FALSE='#'
11848 else
11849   am__fastdepCC_TRUE='#'
11850   am__fastdepCC_FALSE=
11851 fi
11852
11853
11854
11855 # Extract the first word of "guile", so it can be a program name with args.
11856 set dummy guile; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_GUILE+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   case $GUILE in
11863   [\\/]* | ?:[\\/]*)
11864   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11865   ;;
11866   *)
11867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872     for ac_exec_ext in '' $ac_executable_extensions; do
11873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876     break 2
11877   fi
11878 done
11879   done
11880 IFS=$as_save_IFS
11881
11882   ;;
11883 esac
11884 fi
11885 GUILE=$ac_cv_path_GUILE
11886 if test -n "$GUILE"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11888 $as_echo "$GUILE" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895   if test "$GUILE" = "" ; then
11896       as_fn_error $? "guile required but not found" "$LINENO" 5
11897   fi
11898
11899   # Extract the first word of "guile-config", so it can be a program name with args.
11900 set dummy guile-config; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   case $GUILE_CONFIG in
11907   [\\/]* | ?:[\\/]*)
11908   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11909   ;;
11910   *)
11911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11913 do
11914   IFS=$as_save_IFS
11915   test -z "$as_dir" && as_dir=.
11916     for ac_exec_ext in '' $ac_executable_extensions; do
11917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920     break 2
11921   fi
11922 done
11923   done
11924 IFS=$as_save_IFS
11925
11926   ;;
11927 esac
11928 fi
11929 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11930 if test -n "$GUILE_CONFIG"; then
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11932 $as_echo "$GUILE_CONFIG" >&6; }
11933 else
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938
11939   if test "$GUILE_CONFIG" = "" ; then
11940       as_fn_error $? "guile-config required but not found" "$LINENO" 5
11941   fi
11942
11943   # Extract the first word of "guile-tools", so it can be a program name with args.
11944 set dummy guile-tools; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   case $GUILE_TOOLS in
11951   [\\/]* | ?:[\\/]*)
11952   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11953   ;;
11954   *)
11955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11957 do
11958   IFS=$as_save_IFS
11959   test -z "$as_dir" && as_dir=.
11960     for ac_exec_ext in '' $ac_executable_extensions; do
11961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964     break 2
11965   fi
11966 done
11967   done
11968 IFS=$as_save_IFS
11969
11970   ;;
11971 esac
11972 fi
11973 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11974 if test -n "$GUILE_TOOLS"; then
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11976 $as_echo "$GUILE_TOOLS" >&6; }
11977 else
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983
11984
11985
11986 # Check whether --with-gnu-ld was given.
11987 if test "${with_gnu_ld+set}" = set; then :
11988   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11989 else
11990   with_gnu_ld=no
11991 fi
11992
11993 # Prepare PATH_SEPARATOR.
11994 # The user is always right.
11995 if test "${PATH_SEPARATOR+set}" != set; then
11996   echo "#! /bin/sh" >conf$$.sh
11997   echo  "exit 0"   >>conf$$.sh
11998   chmod +x conf$$.sh
11999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12000     PATH_SEPARATOR=';'
12001   else
12002     PATH_SEPARATOR=:
12003   fi
12004   rm -f conf$$.sh
12005 fi
12006 ac_prog=ld
12007 if test "$GCC" = yes; then
12008   # Check if gcc -print-prog-name=ld gives a path.
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12010 $as_echo_n "checking for ld used by GCC... " >&6; }
12011   case $host in
12012   *-*-mingw*)
12013     # gcc leaves a trailing carriage return which upsets mingw
12014     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12015   *)
12016     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12017   esac
12018   case $ac_prog in
12019     # Accept absolute paths.
12020     [\\/]* | [A-Za-z]:[\\/]*)
12021       re_direlt='/[^/][^/]*/\.\./'
12022       # Canonicalize the path of ld
12023       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12024       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12025         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12026       done
12027       test -z "$LD" && LD="$ac_prog"
12028       ;;
12029   "")
12030     # If it fails, then pretend we aren't using GCC.
12031     ac_prog=ld
12032     ;;
12033   *)
12034     # If it is relative, then search for the first ld in PATH.
12035     with_gnu_ld=unknown
12036     ;;
12037   esac
12038 elif test "$with_gnu_ld" = yes; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12040 $as_echo_n "checking for GNU ld... " >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12043 $as_echo_n "checking for non-GNU ld... " >&6; }
12044 fi
12045 if ${acl_cv_path_LD+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if test -z "$LD"; then
12049   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12050   for ac_dir in $PATH; do
12051     test -z "$ac_dir" && ac_dir=.
12052     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12053       acl_cv_path_LD="$ac_dir/$ac_prog"
12054       # Check to see if the program is GNU ld.  I'd rather use --version,
12055       # but apparently some GNU ld's only accept -v.
12056       # Break only if it was the GNU/non-GNU ld that we prefer.
12057       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12058       *GNU* | *'with BFD'*)
12059         test "$with_gnu_ld" != no && break ;;
12060       *)
12061         test "$with_gnu_ld" != yes && break ;;
12062       esac
12063     fi
12064   done
12065   IFS="$ac_save_ifs"
12066 else
12067   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12068 fi
12069 fi
12070
12071 LD="$acl_cv_path_LD"
12072 if test -n "$LD"; then
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12074 $as_echo "$LD" >&6; }
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12078 fi
12079 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12082 if ${acl_cv_prog_gnu_ld+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12086 case `$LD -v 2>&1 </dev/null` in
12087 *GNU* | *'with BFD'*)
12088   acl_cv_prog_gnu_ld=yes ;;
12089 *)
12090   acl_cv_prog_gnu_ld=no ;;
12091 esac
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12094 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12095 with_gnu_ld=$acl_cv_prog_gnu_ld
12096
12097
12098
12099
12100                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12101 $as_echo_n "checking for shared library run path origin... " >&6; }
12102 if ${acl_cv_rpath+:} false; then :
12103   $as_echo_n "(cached) " >&6
12104 else
12105
12106     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12107     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12108     . ./conftest.sh
12109     rm -f ./conftest.sh
12110     acl_cv_rpath=done
12111
12112 fi
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12114 $as_echo "$acl_cv_rpath" >&6; }
12115   wl="$acl_cv_wl"
12116   acl_libext="$acl_cv_libext"
12117   acl_shlibext="$acl_cv_shlibext"
12118   acl_libname_spec="$acl_cv_libname_spec"
12119   acl_library_names_spec="$acl_cv_library_names_spec"
12120   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12121   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12122   acl_hardcode_direct="$acl_cv_hardcode_direct"
12123   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12124     # Check whether --enable-rpath was given.
12125 if test "${enable_rpath+set}" = set; then :
12126   enableval=$enable_rpath; :
12127 else
12128   enable_rpath=yes
12129 fi
12130
12131
12132
12133
12134   acl_libdirstem=lib
12135   acl_libdirstem2=
12136   case "$host_os" in
12137     solaris*)
12138                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12139 $as_echo_n "checking for 64-bit host... " >&6; }
12140 if ${gl_cv_solaris_64bit+:} false; then :
12141   $as_echo_n "(cached) " >&6
12142 else
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 #ifdef _LP64
12147 sixtyfour bits
12148 #endif
12149
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12153   gl_cv_solaris_64bit=yes
12154 else
12155   gl_cv_solaris_64bit=no
12156 fi
12157 rm -f conftest*
12158
12159
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12162 $as_echo "$gl_cv_solaris_64bit" >&6; }
12163       if test $gl_cv_solaris_64bit = yes; then
12164         acl_libdirstem=lib/64
12165         case "$host_cpu" in
12166           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12167           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12168         esac
12169       fi
12170       ;;
12171     *)
12172       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12173       if test -n "$searchpath"; then
12174         acl_save_IFS="${IFS=    }"; IFS=":"
12175         for searchdir in $searchpath; do
12176           if test -d "$searchdir"; then
12177             case "$searchdir" in
12178               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12179               */../ | */.. )
12180                 # Better ignore directories of this form. They are misleading.
12181                 ;;
12182               *) searchdir=`cd "$searchdir" && pwd`
12183                  case "$searchdir" in
12184                    */lib64 ) acl_libdirstem=lib64 ;;
12185                  esac ;;
12186             esac
12187           fi
12188         done
12189         IFS="$acl_save_IFS"
12190       fi
12191       ;;
12192   esac
12193   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12194
12195
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12197 $as_echo_n "checking libguile compile flags... " >&6; }
12198   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12200 $as_echo "$GUILE_CFLAGS" >&6; }
12201
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12203 $as_echo_n "checking libguile link flags... " >&6; }
12204   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12206 $as_echo "$GUILE_LDFLAGS" >&6; }
12207
12208
12209
12210
12211   GUILE_LIBS=
12212   if test "$enable_rpath" != no; then
12213     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12214                   rpathdirs=
12215       next=
12216       for opt in $GUILE_LDFLAGS; do
12217         if test -n "$next"; then
12218           dir="$next"
12219                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12220              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12221             rpathdirs="$rpathdirs $dir"
12222           fi
12223           next=
12224         else
12225           case $opt in
12226             -L) next=yes ;;
12227             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12228                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12229                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12230                    rpathdirs="$rpathdirs $dir"
12231                  fi
12232                  next= ;;
12233             *) next= ;;
12234           esac
12235         fi
12236       done
12237       if test "X$rpathdirs" != "X"; then
12238         if test -n """"; then
12239                     for dir in $rpathdirs; do
12240             GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12241           done
12242         else
12243                     if test -n "$acl_hardcode_libdir_separator"; then
12244                                     alldirs=
12245             for dir in $rpathdirs; do
12246               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12247             done
12248             acl_save_libdir="$libdir"
12249             libdir="$alldirs"
12250             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12251             libdir="$acl_save_libdir"
12252             GUILE_LIBS="$flag"
12253           else
12254                         for dir in $rpathdirs; do
12255               acl_save_libdir="$libdir"
12256               libdir="$dir"
12257               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12258               libdir="$acl_save_libdir"
12259               GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12260             done
12261           fi
12262         fi
12263       fi
12264     fi
12265   fi
12266
12267
12268   GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12269
12270
12271
12272   GUILE_LTLIBS=
12273   if test "$enable_rpath" != no; then
12274     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12275                   rpathdirs=
12276       next=
12277       for opt in $GUILE_LDFLAGS; do
12278         if test -n "$next"; then
12279           dir="$next"
12280                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12281              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12282             rpathdirs="$rpathdirs $dir"
12283           fi
12284           next=
12285         else
12286           case $opt in
12287             -L) next=yes ;;
12288             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12289                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12290                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12291                    rpathdirs="$rpathdirs $dir"
12292                  fi
12293                  next= ;;
12294             *) next= ;;
12295           esac
12296         fi
12297       done
12298       if test "X$rpathdirs" != "X"; then
12299         if test -n ""yes""; then
12300                     for dir in $rpathdirs; do
12301             GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12302           done
12303         else
12304                     if test -n "$acl_hardcode_libdir_separator"; then
12305                                     alldirs=
12306             for dir in $rpathdirs; do
12307               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12308             done
12309             acl_save_libdir="$libdir"
12310             libdir="$alldirs"
12311             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12312             libdir="$acl_save_libdir"
12313             GUILE_LTLIBS="$flag"
12314           else
12315                         for dir in $rpathdirs; do
12316               acl_save_libdir="$libdir"
12317               libdir="$dir"
12318               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12319               libdir="$acl_save_libdir"
12320               GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12321             done
12322           fi
12323         fi
12324       fi
12325     fi
12326   fi
12327
12328
12329   GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12330
12331
12332
12333
12334
12335
12336
12337
12338 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12339         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12341 $as_echo_n "checking for main in -l${lib}... " >&6; }
12342 if eval \${$as_ac_Lib+:} false; then :
12343   $as_echo_n "(cached) " >&6
12344 else
12345   ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-l${lib}  $LIBS"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h.  */
12349
12350
12351 int
12352 main ()
12353 {
12354 return main ();
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360   eval "$as_ac_Lib=yes"
12361 else
12362   eval "$as_ac_Lib=no"
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365     conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 eval ac_res=\$$as_ac_Lib
12369                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12370 $as_echo "$ac_res" >&6; }
12371 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12372   SDL_LIBS="${SDL_LIBS} -l${lib}"
12373 else
12374   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12375 fi
12376
12377     done
12378
12379
12380 for lib in GL GLU ; do
12381         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12383 $as_echo_n "checking for main in -l${lib}... " >&6; }
12384 if eval \${$as_ac_Lib+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-l${lib}  $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391
12392
12393 int
12394 main ()
12395 {
12396 return main ();
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402   eval "$as_ac_Lib=yes"
12403 else
12404   eval "$as_ac_Lib=no"
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407     conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 eval ac_res=\$$as_ac_Lib
12411                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12412 $as_echo "$ac_res" >&6; }
12413 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12414   GL_LIBS="${GL_LIBS} -l${lib}"
12415 else
12416   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12417 fi
12418
12419     done
12420
12421
12422 for lib in ftgl ; do
12423         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12425 $as_echo_n "checking for main in -l${lib}... " >&6; }
12426 if eval \${$as_ac_Lib+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-l${lib}  $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h.  */
12433
12434
12435 int
12436 main ()
12437 {
12438 return main ();
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 if ac_fn_c_try_link "$LINENO"; then :
12444   eval "$as_ac_Lib=yes"
12445 else
12446   eval "$as_ac_Lib=no"
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext \
12449     conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12451 fi
12452 eval ac_res=\$$as_ac_Lib
12453                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12454 $as_echo "$ac_res" >&6; }
12455 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12456   FTGL_LIBS="${FTGL_LIBS} -l${lib}"
12457 else
12458   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12459 fi
12460
12461     done
12462
12463
12464
12465
12466
12467 ac_config_headers="$ac_config_headers config.h"
12468
12469 ac_config_files="$ac_config_files Makefile src/Makefile"
12470
12471 cat >confcache <<\_ACEOF
12472 # This file is a shell script that caches the results of configure
12473 # tests run on this system so they can be shared between configure
12474 # scripts and configure runs, see configure's option --config-cache.
12475 # It is not useful on other systems.  If it contains results you don't
12476 # want to keep, you may remove or edit it.
12477 #
12478 # config.status only pays attention to the cache file if you give it
12479 # the --recheck option to rerun configure.
12480 #
12481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12483 # following values.
12484
12485 _ACEOF
12486
12487 # The following way of writing the cache mishandles newlines in values,
12488 # but we know of no workaround that is simple, portable, and efficient.
12489 # So, we kill variables containing newlines.
12490 # Ultrix sh set writes to stderr and can't be redirected directly,
12491 # and sets the high bit in the cache file unless we assign to the vars.
12492 (
12493   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12494     eval ac_val=\$$ac_var
12495     case $ac_val in #(
12496     *${as_nl}*)
12497       case $ac_var in #(
12498       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12500       esac
12501       case $ac_var in #(
12502       _ | IFS | as_nl) ;; #(
12503       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12504       *) { eval $ac_var=; unset $ac_var;} ;;
12505       esac ;;
12506     esac
12507   done
12508
12509   (set) 2>&1 |
12510     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12511     *${as_nl}ac_space=\ *)
12512       # `set' does not quote correctly, so add quotes: double-quote
12513       # substitution turns \\\\ into \\, and sed turns \\ into \.
12514       sed -n \
12515         "s/'/'\\\\''/g;
12516           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12517       ;; #(
12518     *)
12519       # `set' quotes correctly as required by POSIX, so do not add quotes.
12520       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12521       ;;
12522     esac |
12523     sort
12524 ) |
12525   sed '
12526      /^ac_cv_env_/b end
12527      t clear
12528      :clear
12529      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12530      t end
12531      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12532      :end' >>confcache
12533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12534   if test -w "$cache_file"; then
12535     if test "x$cache_file" != "x/dev/null"; then
12536       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12537 $as_echo "$as_me: updating cache $cache_file" >&6;}
12538       if test ! -f "$cache_file" || test -h "$cache_file"; then
12539         cat confcache >"$cache_file"
12540       else
12541         case $cache_file in #(
12542         */* | ?:*)
12543           mv -f confcache "$cache_file"$$ &&
12544           mv -f "$cache_file"$$ "$cache_file" ;; #(
12545         *)
12546           mv -f confcache "$cache_file" ;;
12547         esac
12548       fi
12549     fi
12550   else
12551     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12553   fi
12554 fi
12555 rm -f confcache
12556
12557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12558 # Let make expand exec_prefix.
12559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12560
12561 DEFS=-DHAVE_CONFIG_H
12562
12563 ac_libobjs=
12564 ac_ltlibobjs=
12565 U=
12566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12567   # 1. Remove the extension, and $U if already installed.
12568   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12569   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12570   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12571   #    will be set to the directory where LIBOBJS objects are built.
12572   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12573   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12574 done
12575 LIBOBJS=$ac_libobjs
12576
12577 LTLIBOBJS=$ac_ltlibobjs
12578
12579
12580  if test -n "$EXEEXT"; then
12581   am__EXEEXT_TRUE=
12582   am__EXEEXT_FALSE='#'
12583 else
12584   am__EXEEXT_TRUE='#'
12585   am__EXEEXT_FALSE=
12586 fi
12587
12588 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12589   as_fn_error $? "conditional \"AMDEP\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12591 fi
12592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12593   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12595 fi
12596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12597   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12599 fi
12600
12601 : "${CONFIG_STATUS=./config.status}"
12602 ac_write_fail=0
12603 ac_clean_files_save=$ac_clean_files
12604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12607 as_write_fail=0
12608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12609 #! $SHELL
12610 # Generated by $as_me.
12611 # Run this file to recreate the current configuration.
12612 # Compiler output produced by configure, useful for debugging
12613 # configure, is in config.log if it exists.
12614
12615 debug=false
12616 ac_cs_recheck=false
12617 ac_cs_silent=false
12618
12619 SHELL=\${CONFIG_SHELL-$SHELL}
12620 export SHELL
12621 _ASEOF
12622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12623 ## -------------------- ##
12624 ## M4sh Initialization. ##
12625 ## -------------------- ##
12626
12627 # Be more Bourne compatible
12628 DUALCASE=1; export DUALCASE # for MKS sh
12629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12630   emulate sh
12631   NULLCMD=:
12632   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12633   # is contrary to our usage.  Disable this feature.
12634   alias -g '${1+"$@"}'='"$@"'
12635   setopt NO_GLOB_SUBST
12636 else
12637   case `(set -o) 2>/dev/null` in #(
12638   *posix*) :
12639     set -o posix ;; #(
12640   *) :
12641      ;;
12642 esac
12643 fi
12644
12645
12646 as_nl='
12647 '
12648 export as_nl
12649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12653 # Prefer a ksh shell builtin over an external printf program on Solaris,
12654 # but without wasting forks for bash or zsh.
12655 if test -z "$BASH_VERSION$ZSH_VERSION" \
12656     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12657   as_echo='print -r --'
12658   as_echo_n='print -rn --'
12659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12660   as_echo='printf %s\n'
12661   as_echo_n='printf %s'
12662 else
12663   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12664     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12665     as_echo_n='/usr/ucb/echo -n'
12666   else
12667     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12668     as_echo_n_body='eval
12669       arg=$1;
12670       case $arg in #(
12671       *"$as_nl"*)
12672         expr "X$arg" : "X\\(.*\\)$as_nl";
12673         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12674       esac;
12675       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12676     '
12677     export as_echo_n_body
12678     as_echo_n='sh -c $as_echo_n_body as_echo'
12679   fi
12680   export as_echo_body
12681   as_echo='sh -c $as_echo_body as_echo'
12682 fi
12683
12684 # The user is always right.
12685 if test "${PATH_SEPARATOR+set}" != set; then
12686   PATH_SEPARATOR=:
12687   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12688     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12689       PATH_SEPARATOR=';'
12690   }
12691 fi
12692
12693
12694 # IFS
12695 # We need space, tab and new line, in precisely that order.  Quoting is
12696 # there to prevent editors from complaining about space-tab.
12697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12698 # splitting by setting IFS to empty value.)
12699 IFS=" ""        $as_nl"
12700
12701 # Find who we are.  Look in the path if we contain no directory separator.
12702 as_myself=
12703 case $0 in #((
12704   *[\\/]* ) as_myself=$0 ;;
12705   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708   IFS=$as_save_IFS
12709   test -z "$as_dir" && as_dir=.
12710     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12711   done
12712 IFS=$as_save_IFS
12713
12714      ;;
12715 esac
12716 # We did not find ourselves, most probably we were run as `sh COMMAND'
12717 # in which case we are not to be found in the path.
12718 if test "x$as_myself" = x; then
12719   as_myself=$0
12720 fi
12721 if test ! -f "$as_myself"; then
12722   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12723   exit 1
12724 fi
12725
12726 # Unset variables that we do not need and which cause bugs (e.g. in
12727 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12728 # suppresses any "Segmentation fault" message there.  '((' could
12729 # trigger a bug in pdksh 5.2.14.
12730 for as_var in BASH_ENV ENV MAIL MAILPATH
12731 do eval test x\${$as_var+set} = xset \
12732   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12733 done
12734 PS1='$ '
12735 PS2='> '
12736 PS4='+ '
12737
12738 # NLS nuisances.
12739 LC_ALL=C
12740 export LC_ALL
12741 LANGUAGE=C
12742 export LANGUAGE
12743
12744 # CDPATH.
12745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12746
12747
12748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12749 # ----------------------------------------
12750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12752 # script with STATUS, using 1 if that was 0.
12753 as_fn_error ()
12754 {
12755   as_status=$1; test $as_status -eq 0 && as_status=1
12756   if test "$4"; then
12757     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12758     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12759   fi
12760   $as_echo "$as_me: error: $2" >&2
12761   as_fn_exit $as_status
12762 } # as_fn_error
12763
12764
12765 # as_fn_set_status STATUS
12766 # -----------------------
12767 # Set $? to STATUS, without forking.
12768 as_fn_set_status ()
12769 {
12770   return $1
12771 } # as_fn_set_status
12772
12773 # as_fn_exit STATUS
12774 # -----------------
12775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12776 as_fn_exit ()
12777 {
12778   set +e
12779   as_fn_set_status $1
12780   exit $1
12781 } # as_fn_exit
12782
12783 # as_fn_unset VAR
12784 # ---------------
12785 # Portably unset VAR.
12786 as_fn_unset ()
12787 {
12788   { eval $1=; unset $1;}
12789 }
12790 as_unset=as_fn_unset
12791 # as_fn_append VAR VALUE
12792 # ----------------------
12793 # Append the text in VALUE to the end of the definition contained in VAR. Take
12794 # advantage of any shell optimizations that allow amortized linear growth over
12795 # repeated appends, instead of the typical quadratic growth present in naive
12796 # implementations.
12797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12798   eval 'as_fn_append ()
12799   {
12800     eval $1+=\$2
12801   }'
12802 else
12803   as_fn_append ()
12804   {
12805     eval $1=\$$1\$2
12806   }
12807 fi # as_fn_append
12808
12809 # as_fn_arith ARG...
12810 # ------------------
12811 # Perform arithmetic evaluation on the ARGs, and store the result in the
12812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12813 # must be portable across $(()) and expr.
12814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12815   eval 'as_fn_arith ()
12816   {
12817     as_val=$(( $* ))
12818   }'
12819 else
12820   as_fn_arith ()
12821   {
12822     as_val=`expr "$@" || test $? -eq 1`
12823   }
12824 fi # as_fn_arith
12825
12826
12827 if expr a : '\(a\)' >/dev/null 2>&1 &&
12828    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12829   as_expr=expr
12830 else
12831   as_expr=false
12832 fi
12833
12834 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12835   as_basename=basename
12836 else
12837   as_basename=false
12838 fi
12839
12840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12841   as_dirname=dirname
12842 else
12843   as_dirname=false
12844 fi
12845
12846 as_me=`$as_basename -- "$0" ||
12847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12848          X"$0" : 'X\(//\)$' \| \
12849          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12850 $as_echo X/"$0" |
12851     sed '/^.*\/\([^/][^/]*\)\/*$/{
12852             s//\1/
12853             q
12854           }
12855           /^X\/\(\/\/\)$/{
12856             s//\1/
12857             q
12858           }
12859           /^X\/\(\/\).*/{
12860             s//\1/
12861             q
12862           }
12863           s/.*/./; q'`
12864
12865 # Avoid depending upon Character Ranges.
12866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12869 as_cr_digits='0123456789'
12870 as_cr_alnum=$as_cr_Letters$as_cr_digits
12871
12872 ECHO_C= ECHO_N= ECHO_T=
12873 case `echo -n x` in #(((((
12874 -n*)
12875   case `echo 'xy\c'` in
12876   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12877   xy)  ECHO_C='\c';;
12878   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12879        ECHO_T=' ';;
12880   esac;;
12881 *)
12882   ECHO_N='-n';;
12883 esac
12884
12885 rm -f conf$$ conf$$.exe conf$$.file
12886 if test -d conf$$.dir; then
12887   rm -f conf$$.dir/conf$$.file
12888 else
12889   rm -f conf$$.dir
12890   mkdir conf$$.dir 2>/dev/null
12891 fi
12892 if (echo >conf$$.file) 2>/dev/null; then
12893   if ln -s conf$$.file conf$$ 2>/dev/null; then
12894     as_ln_s='ln -s'
12895     # ... but there are two gotchas:
12896     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12897     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12898     # In both cases, we have to default to `cp -p'.
12899     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12900       as_ln_s='cp -p'
12901   elif ln conf$$.file conf$$ 2>/dev/null; then
12902     as_ln_s=ln
12903   else
12904     as_ln_s='cp -p'
12905   fi
12906 else
12907   as_ln_s='cp -p'
12908 fi
12909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12910 rmdir conf$$.dir 2>/dev/null
12911
12912
12913 # as_fn_mkdir_p
12914 # -------------
12915 # Create "$as_dir" as a directory, including parents if necessary.
12916 as_fn_mkdir_p ()
12917 {
12918
12919   case $as_dir in #(
12920   -*) as_dir=./$as_dir;;
12921   esac
12922   test -d "$as_dir" || eval $as_mkdir_p || {
12923     as_dirs=
12924     while :; do
12925       case $as_dir in #(
12926       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12927       *) as_qdir=$as_dir;;
12928       esac
12929       as_dirs="'$as_qdir' $as_dirs"
12930       as_dir=`$as_dirname -- "$as_dir" ||
12931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932          X"$as_dir" : 'X\(//\)[^/]' \| \
12933          X"$as_dir" : 'X\(//\)$' \| \
12934          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12935 $as_echo X"$as_dir" |
12936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12937             s//\1/
12938             q
12939           }
12940           /^X\(\/\/\)[^/].*/{
12941             s//\1/
12942             q
12943           }
12944           /^X\(\/\/\)$/{
12945             s//\1/
12946             q
12947           }
12948           /^X\(\/\).*/{
12949             s//\1/
12950             q
12951           }
12952           s/.*/./; q'`
12953       test -d "$as_dir" && break
12954     done
12955     test -z "$as_dirs" || eval "mkdir $as_dirs"
12956   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12957
12958
12959 } # as_fn_mkdir_p
12960 if mkdir -p . 2>/dev/null; then
12961   as_mkdir_p='mkdir -p "$as_dir"'
12962 else
12963   test -d ./-p && rmdir ./-p
12964   as_mkdir_p=false
12965 fi
12966
12967 if test -x / >/dev/null 2>&1; then
12968   as_test_x='test -x'
12969 else
12970   if ls -dL / >/dev/null 2>&1; then
12971     as_ls_L_option=L
12972   else
12973     as_ls_L_option=
12974   fi
12975   as_test_x='
12976     eval sh -c '\''
12977       if test -d "$1"; then
12978         test -d "$1/.";
12979       else
12980         case $1 in #(
12981         -*)set "./$1";;
12982         esac;
12983         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12984         ???[sx]*):;;*)false;;esac;fi
12985     '\'' sh
12986   '
12987 fi
12988 as_executable_p=$as_test_x
12989
12990 # Sed expression to map a string onto a valid CPP name.
12991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12992
12993 # Sed expression to map a string onto a valid variable name.
12994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12995
12996
12997 exec 6>&1
12998 ## ----------------------------------- ##
12999 ## Main body of $CONFIG_STATUS script. ##
13000 ## ----------------------------------- ##
13001 _ASEOF
13002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13003
13004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005 # Save the log message, to keep $0 and so on meaningful, and to
13006 # report actual input values of CONFIG_FILES etc. instead of their
13007 # values after options handling.
13008 ac_log="
13009 This file was extended by gacela $as_me 0.5, which was
13010 generated by GNU Autoconf 2.68.  Invocation command line was
13011
13012   CONFIG_FILES    = $CONFIG_FILES
13013   CONFIG_HEADERS  = $CONFIG_HEADERS
13014   CONFIG_LINKS    = $CONFIG_LINKS
13015   CONFIG_COMMANDS = $CONFIG_COMMANDS
13016   $ $0 $@
13017
13018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13019 "
13020
13021 _ACEOF
13022
13023 case $ac_config_files in *"
13024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13025 esac
13026
13027 case $ac_config_headers in *"
13028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13029 esac
13030
13031
13032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033 # Files that config.status was made for.
13034 config_files="$ac_config_files"
13035 config_headers="$ac_config_headers"
13036 config_commands="$ac_config_commands"
13037
13038 _ACEOF
13039
13040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13041 ac_cs_usage="\
13042 \`$as_me' instantiates files and other configuration actions
13043 from templates according to the current configuration.  Unless the files
13044 and actions are specified as TAGs, all are instantiated by default.
13045
13046 Usage: $0 [OPTION]... [TAG]...
13047
13048   -h, --help       print this help, then exit
13049   -V, --version    print version number and configuration settings, then exit
13050       --config     print configuration, then exit
13051   -q, --quiet, --silent
13052                    do not print progress messages
13053   -d, --debug      don't remove temporary files
13054       --recheck    update $as_me by reconfiguring in the same conditions
13055       --file=FILE[:TEMPLATE]
13056                    instantiate the configuration file FILE
13057       --header=FILE[:TEMPLATE]
13058                    instantiate the configuration header FILE
13059
13060 Configuration files:
13061 $config_files
13062
13063 Configuration headers:
13064 $config_headers
13065
13066 Configuration commands:
13067 $config_commands
13068
13069 Report bugs to <jsf@jsancho.org>."
13070
13071 _ACEOF
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13074 ac_cs_version="\\
13075 gacela config.status 0.5
13076 configured by $0, generated by GNU Autoconf 2.68,
13077   with options \\"\$ac_cs_config\\"
13078
13079 Copyright (C) 2010 Free Software Foundation, Inc.
13080 This config.status script is free software; the Free Software Foundation
13081 gives unlimited permission to copy, distribute and modify it."
13082
13083 ac_pwd='$ac_pwd'
13084 srcdir='$srcdir'
13085 INSTALL='$INSTALL'
13086 MKDIR_P='$MKDIR_P'
13087 AWK='$AWK'
13088 test -n "\$AWK" || AWK=awk
13089 _ACEOF
13090
13091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092 # The default lists apply if the user does not specify any file.
13093 ac_need_defaults=:
13094 while test $# != 0
13095 do
13096   case $1 in
13097   --*=?*)
13098     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13099     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13100     ac_shift=:
13101     ;;
13102   --*=)
13103     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13104     ac_optarg=
13105     ac_shift=:
13106     ;;
13107   *)
13108     ac_option=$1
13109     ac_optarg=$2
13110     ac_shift=shift
13111     ;;
13112   esac
13113
13114   case $ac_option in
13115   # Handling of the options.
13116   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13117     ac_cs_recheck=: ;;
13118   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13119     $as_echo "$ac_cs_version"; exit ;;
13120   --config | --confi | --conf | --con | --co | --c )
13121     $as_echo "$ac_cs_config"; exit ;;
13122   --debug | --debu | --deb | --de | --d | -d )
13123     debug=: ;;
13124   --file | --fil | --fi | --f )
13125     $ac_shift
13126     case $ac_optarg in
13127     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13128     '') as_fn_error $? "missing file argument" ;;
13129     esac
13130     as_fn_append CONFIG_FILES " '$ac_optarg'"
13131     ac_need_defaults=false;;
13132   --header | --heade | --head | --hea )
13133     $ac_shift
13134     case $ac_optarg in
13135     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13136     esac
13137     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13138     ac_need_defaults=false;;
13139   --he | --h)
13140     # Conflict between --help and --header
13141     as_fn_error $? "ambiguous option: \`$1'
13142 Try \`$0 --help' for more information.";;
13143   --help | --hel | -h )
13144     $as_echo "$ac_cs_usage"; exit ;;
13145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13146   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13147     ac_cs_silent=: ;;
13148
13149   # This is an error.
13150   -*) as_fn_error $? "unrecognized option: \`$1'
13151 Try \`$0 --help' for more information." ;;
13152
13153   *) as_fn_append ac_config_targets " $1"
13154      ac_need_defaults=false ;;
13155
13156   esac
13157   shift
13158 done
13159
13160 ac_configure_extra_args=
13161
13162 if $ac_cs_silent; then
13163   exec 6>/dev/null
13164   ac_configure_extra_args="$ac_configure_extra_args --silent"
13165 fi
13166
13167 _ACEOF
13168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 if \$ac_cs_recheck; then
13170   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13171   shift
13172   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13173   CONFIG_SHELL='$SHELL'
13174   export CONFIG_SHELL
13175   exec "\$@"
13176 fi
13177
13178 _ACEOF
13179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13180 exec 5>>config.log
13181 {
13182   echo
13183   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13184 ## Running $as_me. ##
13185 _ASBOX
13186   $as_echo "$ac_log"
13187 } >&5
13188
13189 _ACEOF
13190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13191 #
13192 # INIT-COMMANDS
13193 #
13194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13195
13196
13197 # The HP-UX ksh and POSIX shell print the target directory to stdout
13198 # if CDPATH is set.
13199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13200
13201 sed_quote_subst='$sed_quote_subst'
13202 double_quote_subst='$double_quote_subst'
13203 delay_variable_subst='$delay_variable_subst'
13204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13206 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13207 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13208 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13209 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13210 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13211 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13212 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13213 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13214 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13215 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13216 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13217 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13218 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13219 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13220 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13221 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13222 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13223 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13224 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13225 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13226 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13227 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13228 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13229 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13230 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13231 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13232 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13234 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13235 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13236 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13237 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13238 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13239 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13240 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13241 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13242 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13243 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13244 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13245 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13246 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13247 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13248 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13249 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13250 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13251 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13252 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13253 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13254 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13255 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13256 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13257 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13259 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13260 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"`'
13261 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13262 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13263 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13264 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13265 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13266 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13267 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13268 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13269 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13270 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13271 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13272 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13273 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13274 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13275 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13276 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13277 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13278 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13279 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13280 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13281 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13282 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13283 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13284 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13285 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13286 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13287 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13288 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13289 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13290 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13291 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13292 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13293 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13294 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13295 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13296 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13297 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13298 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13299 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13300 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13301 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13302 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13303 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13304 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13305 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13306 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13307 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13308 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13309 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13310 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13311 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13312 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13313 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13314 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13315 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13316 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13317 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13318 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13319 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13320 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13321 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13322 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13323 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13324 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13325 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13326 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13327 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13328 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13329 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13330 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13331 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13332 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13333 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13334
13335 LTCC='$LTCC'
13336 LTCFLAGS='$LTCFLAGS'
13337 compiler='$compiler_DEFAULT'
13338
13339 # A function that is used when there is no print builtin or printf.
13340 func_fallback_echo ()
13341 {
13342   eval 'cat <<_LTECHO_EOF
13343 \$1
13344 _LTECHO_EOF'
13345 }
13346
13347 # Quote evaled strings.
13348 for var in SHELL \
13349 ECHO \
13350 PATH_SEPARATOR \
13351 SED \
13352 GREP \
13353 EGREP \
13354 FGREP \
13355 LD \
13356 NM \
13357 LN_S \
13358 lt_SP2NL \
13359 lt_NL2SP \
13360 reload_flag \
13361 OBJDUMP \
13362 deplibs_check_method \
13363 file_magic_cmd \
13364 file_magic_glob \
13365 want_nocaseglob \
13366 DLLTOOL \
13367 sharedlib_from_linklib_cmd \
13368 AR \
13369 AR_FLAGS \
13370 archiver_list_spec \
13371 STRIP \
13372 RANLIB \
13373 CC \
13374 CFLAGS \
13375 compiler \
13376 lt_cv_sys_global_symbol_pipe \
13377 lt_cv_sys_global_symbol_to_cdecl \
13378 lt_cv_sys_global_symbol_to_c_name_address \
13379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13380 nm_file_list_spec \
13381 lt_prog_compiler_no_builtin_flag \
13382 lt_prog_compiler_pic \
13383 lt_prog_compiler_wl \
13384 lt_prog_compiler_static \
13385 lt_cv_prog_compiler_c_o \
13386 need_locks \
13387 MANIFEST_TOOL \
13388 DSYMUTIL \
13389 NMEDIT \
13390 LIPO \
13391 OTOOL \
13392 OTOOL64 \
13393 shrext_cmds \
13394 export_dynamic_flag_spec \
13395 whole_archive_flag_spec \
13396 compiler_needs_object \
13397 with_gnu_ld \
13398 allow_undefined_flag \
13399 no_undefined_flag \
13400 hardcode_libdir_flag_spec \
13401 hardcode_libdir_separator \
13402 exclude_expsyms \
13403 include_expsyms \
13404 file_list_spec \
13405 variables_saved_for_relink \
13406 libname_spec \
13407 library_names_spec \
13408 soname_spec \
13409 install_override_mode \
13410 finish_eval \
13411 old_striplib \
13412 striplib; do
13413     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13414     *[\\\\\\\`\\"\\\$]*)
13415       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13416       ;;
13417     *)
13418       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13419       ;;
13420     esac
13421 done
13422
13423 # Double-quote double-evaled strings.
13424 for var in reload_cmds \
13425 old_postinstall_cmds \
13426 old_postuninstall_cmds \
13427 old_archive_cmds \
13428 extract_expsyms_cmds \
13429 old_archive_from_new_cmds \
13430 old_archive_from_expsyms_cmds \
13431 archive_cmds \
13432 archive_expsym_cmds \
13433 module_cmds \
13434 module_expsym_cmds \
13435 export_symbols_cmds \
13436 prelink_cmds \
13437 postlink_cmds \
13438 postinstall_cmds \
13439 postuninstall_cmds \
13440 finish_cmds \
13441 sys_lib_search_path_spec \
13442 sys_lib_dlsearch_path_spec; do
13443     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13444     *[\\\\\\\`\\"\\\$]*)
13445       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13446       ;;
13447     *)
13448       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13449       ;;
13450     esac
13451 done
13452
13453 ac_aux_dir='$ac_aux_dir'
13454 xsi_shell='$xsi_shell'
13455 lt_shell_append='$lt_shell_append'
13456
13457 # See if we are running on zsh, and set the options which allow our
13458 # commands through without removal of \ escapes INIT.
13459 if test -n "\${ZSH_VERSION+set}" ; then
13460    setopt NO_GLOB_SUBST
13461 fi
13462
13463
13464     PACKAGE='$PACKAGE'
13465     VERSION='$VERSION'
13466     TIMESTAMP='$TIMESTAMP'
13467     RM='$RM'
13468     ofile='$ofile'
13469
13470
13471
13472
13473 _ACEOF
13474
13475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13476
13477 # Handling of arguments.
13478 for ac_config_target in $ac_config_targets
13479 do
13480   case $ac_config_target in
13481     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13482     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13483     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13484     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13485     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13486
13487   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13488   esac
13489 done
13490
13491
13492 # If the user did not use the arguments to specify the items to instantiate,
13493 # then the envvar interface is used.  Set only those that are not.
13494 # We use the long form for the default assignment because of an extremely
13495 # bizarre bug on SunOS 4.1.3.
13496 if $ac_need_defaults; then
13497   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13498   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13499   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13500 fi
13501
13502 # Have a temporary directory for convenience.  Make it in the build tree
13503 # simply because there is no reason against having it here, and in addition,
13504 # creating and moving files from /tmp can sometimes cause problems.
13505 # Hook for its removal unless debugging.
13506 # Note that there is a small window in which the directory will not be cleaned:
13507 # after its creation but before its name has been assigned to `$tmp'.
13508 $debug ||
13509 {
13510   tmp= ac_tmp=
13511   trap 'exit_status=$?
13512   : "${ac_tmp:=$tmp}"
13513   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13514 ' 0
13515   trap 'as_fn_exit 1' 1 2 13 15
13516 }
13517 # Create a (secure) tmp directory for tmp files.
13518
13519 {
13520   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13521   test -d "$tmp"
13522 }  ||
13523 {
13524   tmp=./conf$$-$RANDOM
13525   (umask 077 && mkdir "$tmp")
13526 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13527 ac_tmp=$tmp
13528
13529 # Set up the scripts for CONFIG_FILES section.
13530 # No need to generate them if there are no CONFIG_FILES.
13531 # This happens for instance with `./config.status config.h'.
13532 if test -n "$CONFIG_FILES"; then
13533
13534
13535 ac_cr=`echo X | tr X '\015'`
13536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13537 # But we know of no other shell where ac_cr would be empty at this
13538 # point, so we can use a bashism as a fallback.
13539 if test "x$ac_cr" = x; then
13540   eval ac_cr=\$\'\\r\'
13541 fi
13542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13544   ac_cs_awk_cr='\\r'
13545 else
13546   ac_cs_awk_cr=$ac_cr
13547 fi
13548
13549 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13550 _ACEOF
13551
13552
13553 {
13554   echo "cat >conf$$subs.awk <<_ACEOF" &&
13555   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13556   echo "_ACEOF"
13557 } >conf$$subs.sh ||
13558   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13560 ac_delim='%!_!# '
13561 for ac_last_try in false false false false false :; do
13562   . ./conf$$subs.sh ||
13563     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13564
13565   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13566   if test $ac_delim_n = $ac_delim_num; then
13567     break
13568   elif $ac_last_try; then
13569     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13570   else
13571     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13572   fi
13573 done
13574 rm -f conf$$subs.sh
13575
13576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13578 _ACEOF
13579 sed -n '
13580 h
13581 s/^/S["/; s/!.*/"]=/
13582 p
13583 g
13584 s/^[^!]*!//
13585 :repl
13586 t repl
13587 s/'"$ac_delim"'$//
13588 t delim
13589 :nl
13590 h
13591 s/\(.\{148\}\)..*/\1/
13592 t more1
13593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13594 p
13595 n
13596 b repl
13597 :more1
13598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13599 p
13600 g
13601 s/.\{148\}//
13602 t nl
13603 :delim
13604 h
13605 s/\(.\{148\}\)..*/\1/
13606 t more2
13607 s/["\\]/\\&/g; s/^/"/; s/$/"/
13608 p
13609 b
13610 :more2
13611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13612 p
13613 g
13614 s/.\{148\}//
13615 t delim
13616 ' <conf$$subs.awk | sed '
13617 /^[^""]/{
13618   N
13619   s/\n//
13620 }
13621 ' >>$CONFIG_STATUS || ac_write_fail=1
13622 rm -f conf$$subs.awk
13623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13624 _ACAWK
13625 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13626   for (key in S) S_is_set[key] = 1
13627   FS = "\a"
13628
13629 }
13630 {
13631   line = $ 0
13632   nfields = split(line, field, "@")
13633   substed = 0
13634   len = length(field[1])
13635   for (i = 2; i < nfields; i++) {
13636     key = field[i]
13637     keylen = length(key)
13638     if (S_is_set[key]) {
13639       value = S[key]
13640       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13641       len += length(value) + length(field[++i])
13642       substed = 1
13643     } else
13644       len += 1 + keylen
13645   }
13646
13647   print line
13648 }
13649
13650 _ACAWK
13651 _ACEOF
13652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13654   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13655 else
13656   cat
13657 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13658   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13659 _ACEOF
13660
13661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13663 # trailing colons and then remove the whole line if VPATH becomes empty
13664 # (actually we leave an empty line to preserve line numbers).
13665 if test "x$srcdir" = x.; then
13666   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13667 h
13668 s///
13669 s/^/:/
13670 s/[      ]*$/:/
13671 s/:\$(srcdir):/:/g
13672 s/:\${srcdir}:/:/g
13673 s/:@srcdir@:/:/g
13674 s/^:*//
13675 s/:*$//
13676 x
13677 s/\(=[   ]*\).*/\1/
13678 G
13679 s/\n//
13680 s/^[^=]*=[       ]*$//
13681 }'
13682 fi
13683
13684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685 fi # test -n "$CONFIG_FILES"
13686
13687 # Set up the scripts for CONFIG_HEADERS section.
13688 # No need to generate them if there are no CONFIG_HEADERS.
13689 # This happens for instance with `./config.status Makefile'.
13690 if test -n "$CONFIG_HEADERS"; then
13691 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13692 BEGIN {
13693 _ACEOF
13694
13695 # Transform confdefs.h into an awk script `defines.awk', embedded as
13696 # here-document in config.status, that substitutes the proper values into
13697 # config.h.in to produce config.h.
13698
13699 # Create a delimiter string that does not exist in confdefs.h, to ease
13700 # handling of long lines.
13701 ac_delim='%!_!# '
13702 for ac_last_try in false false :; do
13703   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13704   if test -z "$ac_tt"; then
13705     break
13706   elif $ac_last_try; then
13707     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13708   else
13709     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13710   fi
13711 done
13712
13713 # For the awk script, D is an array of macro values keyed by name,
13714 # likewise P contains macro parameters if any.  Preserve backslash
13715 # newline sequences.
13716
13717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13718 sed -n '
13719 s/.\{148\}/&'"$ac_delim"'/g
13720 t rset
13721 :rset
13722 s/^[     ]*#[    ]*define[       ][      ]*/ /
13723 t def
13724 d
13725 :def
13726 s/\\$//
13727 t bsnl
13728 s/["\\]/\\&/g
13729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13730 D["\1"]=" \3"/p
13731 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13732 d
13733 :bsnl
13734 s/["\\]/\\&/g
13735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13736 D["\1"]=" \3\\\\\\n"\\/p
13737 t cont
13738 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13739 t cont
13740 d
13741 :cont
13742 n
13743 s/.\{148\}/&'"$ac_delim"'/g
13744 t clear
13745 :clear
13746 s/\\$//
13747 t bsnlc
13748 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13749 d
13750 :bsnlc
13751 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13752 b cont
13753 ' <confdefs.h | sed '
13754 s/'"$ac_delim"'/"\\\
13755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13756
13757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13758   for (key in D) D_is_set[key] = 1
13759   FS = "\a"
13760 }
13761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13762   line = \$ 0
13763   split(line, arg, " ")
13764   if (arg[1] == "#") {
13765     defundef = arg[2]
13766     mac1 = arg[3]
13767   } else {
13768     defundef = substr(arg[1], 2)
13769     mac1 = arg[2]
13770   }
13771   split(mac1, mac2, "(") #)
13772   macro = mac2[1]
13773   prefix = substr(line, 1, index(line, defundef) - 1)
13774   if (D_is_set[macro]) {
13775     # Preserve the white space surrounding the "#".
13776     print prefix "define", macro P[macro] D[macro]
13777     next
13778   } else {
13779     # Replace #undef with comments.  This is necessary, for example,
13780     # in the case of _POSIX_SOURCE, which is predefined and required
13781     # on some systems where configure will not decide to define it.
13782     if (defundef == "undef") {
13783       print "/*", prefix defundef, macro, "*/"
13784       next
13785     }
13786   }
13787 }
13788 { print }
13789 _ACAWK
13790 _ACEOF
13791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13792   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13793 fi # test -n "$CONFIG_HEADERS"
13794
13795
13796 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13797 shift
13798 for ac_tag
13799 do
13800   case $ac_tag in
13801   :[FHLC]) ac_mode=$ac_tag; continue;;
13802   esac
13803   case $ac_mode$ac_tag in
13804   :[FHL]*:*);;
13805   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13806   :[FH]-) ac_tag=-:-;;
13807   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13808   esac
13809   ac_save_IFS=$IFS
13810   IFS=:
13811   set x $ac_tag
13812   IFS=$ac_save_IFS
13813   shift
13814   ac_file=$1
13815   shift
13816
13817   case $ac_mode in
13818   :L) ac_source=$1;;
13819   :[FH])
13820     ac_file_inputs=
13821     for ac_f
13822     do
13823       case $ac_f in
13824       -) ac_f="$ac_tmp/stdin";;
13825       *) # Look for the file first in the build tree, then in the source tree
13826          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13827          # because $ac_f cannot contain `:'.
13828          test -f "$ac_f" ||
13829            case $ac_f in
13830            [\\/$]*) false;;
13831            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13832            esac ||
13833            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13834       esac
13835       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13836       as_fn_append ac_file_inputs " '$ac_f'"
13837     done
13838
13839     # Let's still pretend it is `configure' which instantiates (i.e., don't
13840     # use $as_me), people would be surprised to read:
13841     #    /* config.h.  Generated by config.status.  */
13842     configure_input='Generated from '`
13843           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13844         `' by configure.'
13845     if test x"$ac_file" != x-; then
13846       configure_input="$ac_file.  $configure_input"
13847       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13848 $as_echo "$as_me: creating $ac_file" >&6;}
13849     fi
13850     # Neutralize special characters interpreted by sed in replacement strings.
13851     case $configure_input in #(
13852     *\&* | *\|* | *\\* )
13853        ac_sed_conf_input=`$as_echo "$configure_input" |
13854        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13855     *) ac_sed_conf_input=$configure_input;;
13856     esac
13857
13858     case $ac_tag in
13859     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13860       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13861     esac
13862     ;;
13863   esac
13864
13865   ac_dir=`$as_dirname -- "$ac_file" ||
13866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13867          X"$ac_file" : 'X\(//\)[^/]' \| \
13868          X"$ac_file" : 'X\(//\)$' \| \
13869          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X"$ac_file" |
13871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13872             s//\1/
13873             q
13874           }
13875           /^X\(\/\/\)[^/].*/{
13876             s//\1/
13877             q
13878           }
13879           /^X\(\/\/\)$/{
13880             s//\1/
13881             q
13882           }
13883           /^X\(\/\).*/{
13884             s//\1/
13885             q
13886           }
13887           s/.*/./; q'`
13888   as_dir="$ac_dir"; as_fn_mkdir_p
13889   ac_builddir=.
13890
13891 case "$ac_dir" in
13892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13893 *)
13894   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13895   # A ".." for each directory in $ac_dir_suffix.
13896   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13897   case $ac_top_builddir_sub in
13898   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13899   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13900   esac ;;
13901 esac
13902 ac_abs_top_builddir=$ac_pwd
13903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13904 # for backward compatibility:
13905 ac_top_builddir=$ac_top_build_prefix
13906
13907 case $srcdir in
13908   .)  # We are building in place.
13909     ac_srcdir=.
13910     ac_top_srcdir=$ac_top_builddir_sub
13911     ac_abs_top_srcdir=$ac_pwd ;;
13912   [\\/]* | ?:[\\/]* )  # Absolute name.
13913     ac_srcdir=$srcdir$ac_dir_suffix;
13914     ac_top_srcdir=$srcdir
13915     ac_abs_top_srcdir=$srcdir ;;
13916   *) # Relative name.
13917     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13918     ac_top_srcdir=$ac_top_build_prefix$srcdir
13919     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13920 esac
13921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13922
13923
13924   case $ac_mode in
13925   :F)
13926   #
13927   # CONFIG_FILE
13928   #
13929
13930   case $INSTALL in
13931   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13932   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13933   esac
13934   ac_MKDIR_P=$MKDIR_P
13935   case $MKDIR_P in
13936   [\\/$]* | ?:[\\/]* ) ;;
13937   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13938   esac
13939 _ACEOF
13940
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 # If the template does not know about datarootdir, expand it.
13943 # FIXME: This hack should be removed a few years after 2.60.
13944 ac_datarootdir_hack=; ac_datarootdir_seen=
13945 ac_sed_dataroot='
13946 /datarootdir/ {
13947   p
13948   q
13949 }
13950 /@datadir@/p
13951 /@docdir@/p
13952 /@infodir@/p
13953 /@localedir@/p
13954 /@mandir@/p'
13955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13956 *datarootdir*) ac_datarootdir_seen=yes;;
13957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13958   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13960 _ACEOF
13961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13962   ac_datarootdir_hack='
13963   s&@datadir@&$datadir&g
13964   s&@docdir@&$docdir&g
13965   s&@infodir@&$infodir&g
13966   s&@localedir@&$localedir&g
13967   s&@mandir@&$mandir&g
13968   s&\\\${datarootdir}&$datarootdir&g' ;;
13969 esac
13970 _ACEOF
13971
13972 # Neutralize VPATH when `$srcdir' = `.'.
13973 # Shell code in configure.ac might set extrasub.
13974 # FIXME: do we really want to maintain this feature?
13975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13976 ac_sed_extra="$ac_vpsub
13977 $extrasub
13978 _ACEOF
13979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13980 :t
13981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13982 s|@configure_input@|$ac_sed_conf_input|;t t
13983 s&@top_builddir@&$ac_top_builddir_sub&;t t
13984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13985 s&@srcdir@&$ac_srcdir&;t t
13986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13987 s&@top_srcdir@&$ac_top_srcdir&;t t
13988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13989 s&@builddir@&$ac_builddir&;t t
13990 s&@abs_builddir@&$ac_abs_builddir&;t t
13991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13992 s&@INSTALL@&$ac_INSTALL&;t t
13993 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13994 $ac_datarootdir_hack
13995 "
13996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13997   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13998
13999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14000   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14001   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14002       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14003   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14004 which seems to be undefined.  Please make sure it is defined" >&5
14005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14006 which seems to be undefined.  Please make sure it is defined" >&2;}
14007
14008   rm -f "$ac_tmp/stdin"
14009   case $ac_file in
14010   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14011   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14012   esac \
14013   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14014  ;;
14015   :H)
14016   #
14017   # CONFIG_HEADER
14018   #
14019   if test x"$ac_file" != x-; then
14020     {
14021       $as_echo "/* $configure_input  */" \
14022       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14023     } >"$ac_tmp/config.h" \
14024       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14025     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14026       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14027 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14028     else
14029       rm -f "$ac_file"
14030       mv "$ac_tmp/config.h" "$ac_file" \
14031         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14032     fi
14033   else
14034     $as_echo "/* $configure_input  */" \
14035       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14036       || as_fn_error $? "could not create -" "$LINENO" 5
14037   fi
14038 # Compute "$ac_file"'s index in $config_headers.
14039 _am_arg="$ac_file"
14040 _am_stamp_count=1
14041 for _am_header in $config_headers :; do
14042   case $_am_header in
14043     $_am_arg | $_am_arg:* )
14044       break ;;
14045     * )
14046       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14047   esac
14048 done
14049 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14050 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14051          X"$_am_arg" : 'X\(//\)[^/]' \| \
14052          X"$_am_arg" : 'X\(//\)$' \| \
14053          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14054 $as_echo X"$_am_arg" |
14055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14056             s//\1/
14057             q
14058           }
14059           /^X\(\/\/\)[^/].*/{
14060             s//\1/
14061             q
14062           }
14063           /^X\(\/\/\)$/{
14064             s//\1/
14065             q
14066           }
14067           /^X\(\/\).*/{
14068             s//\1/
14069             q
14070           }
14071           s/.*/./; q'`/stamp-h$_am_stamp_count
14072  ;;
14073
14074   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14075 $as_echo "$as_me: executing $ac_file commands" >&6;}
14076  ;;
14077   esac
14078
14079
14080   case $ac_file$ac_mode in
14081     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14082   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14083   # are listed without --file.  Let's play safe and only enable the eval
14084   # if we detect the quoting.
14085   case $CONFIG_FILES in
14086   *\'*) eval set x "$CONFIG_FILES" ;;
14087   *)   set x $CONFIG_FILES ;;
14088   esac
14089   shift
14090   for mf
14091   do
14092     # Strip MF so we end up with the name of the file.
14093     mf=`echo "$mf" | sed -e 's/:.*$//'`
14094     # Check whether this is an Automake generated Makefile or not.
14095     # We used to match only the files named `Makefile.in', but
14096     # some people rename them; so instead we look at the file content.
14097     # Grep'ing the first line is not enough: some people post-process
14098     # each Makefile.in and add a new line on top of each file to say so.
14099     # Grep'ing the whole file is not good either: AIX grep has a line
14100     # limit of 2048, but all sed's we know have understand at least 4000.
14101     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14102       dirpart=`$as_dirname -- "$mf" ||
14103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14104          X"$mf" : 'X\(//\)[^/]' \| \
14105          X"$mf" : 'X\(//\)$' \| \
14106          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14107 $as_echo X"$mf" |
14108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14109             s//\1/
14110             q
14111           }
14112           /^X\(\/\/\)[^/].*/{
14113             s//\1/
14114             q
14115           }
14116           /^X\(\/\/\)$/{
14117             s//\1/
14118             q
14119           }
14120           /^X\(\/\).*/{
14121             s//\1/
14122             q
14123           }
14124           s/.*/./; q'`
14125     else
14126       continue
14127     fi
14128     # Extract the definition of DEPDIR, am__include, and am__quote
14129     # from the Makefile without running `make'.
14130     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14131     test -z "$DEPDIR" && continue
14132     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14133     test -z "am__include" && continue
14134     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14135     # When using ansi2knr, U may be empty or an underscore; expand it
14136     U=`sed -n 's/^U = //p' < "$mf"`
14137     # Find all dependency output files, they are included files with
14138     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14139     # simplest approach to changing $(DEPDIR) to its actual value in the
14140     # expansion.
14141     for file in `sed -n "
14142       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14143          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14144       # Make sure the directory exists.
14145       test -f "$dirpart/$file" && continue
14146       fdir=`$as_dirname -- "$file" ||
14147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14148          X"$file" : 'X\(//\)[^/]' \| \
14149          X"$file" : 'X\(//\)$' \| \
14150          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14151 $as_echo X"$file" |
14152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14153             s//\1/
14154             q
14155           }
14156           /^X\(\/\/\)[^/].*/{
14157             s//\1/
14158             q
14159           }
14160           /^X\(\/\/\)$/{
14161             s//\1/
14162             q
14163           }
14164           /^X\(\/\).*/{
14165             s//\1/
14166             q
14167           }
14168           s/.*/./; q'`
14169       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14170       # echo "creating $dirpart/$file"
14171       echo '# dummy' > "$dirpart/$file"
14172     done
14173   done
14174 }
14175  ;;
14176     "libtool":C)
14177
14178     # See if we are running on zsh, and set the options which allow our
14179     # commands through without removal of \ escapes.
14180     if test -n "${ZSH_VERSION+set}" ; then
14181       setopt NO_GLOB_SUBST
14182     fi
14183
14184     cfgfile="${ofile}T"
14185     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14186     $RM "$cfgfile"
14187
14188     cat <<_LT_EOF >> "$cfgfile"
14189 #! $SHELL
14190
14191 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14192 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14195 #
14196 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14197 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14198 #                 Foundation, Inc.
14199 #   Written by Gordon Matzigkeit, 1996
14200 #
14201 #   This file is part of GNU Libtool.
14202 #
14203 # GNU Libtool is free software; you can redistribute it and/or
14204 # modify it under the terms of the GNU General Public License as
14205 # published by the Free Software Foundation; either version 2 of
14206 # the License, or (at your option) any later version.
14207 #
14208 # As a special exception to the GNU General Public License,
14209 # if you distribute this file as part of a program or library that
14210 # is built using GNU Libtool, you may include this file under the
14211 # same distribution terms that you use for the rest of that program.
14212 #
14213 # GNU Libtool is distributed in the hope that it will be useful,
14214 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14215 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14216 # GNU General Public License for more details.
14217 #
14218 # You should have received a copy of the GNU General Public License
14219 # along with GNU Libtool; see the file COPYING.  If not, a copy
14220 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14221 # obtained by writing to the Free Software Foundation, Inc.,
14222 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14223
14224
14225 # The names of the tagged configurations supported by this script.
14226 available_tags=""
14227
14228 # ### BEGIN LIBTOOL CONFIG
14229
14230 # Which release of libtool.m4 was used?
14231 macro_version=$macro_version
14232 macro_revision=$macro_revision
14233
14234 # Whether or not to build shared libraries.
14235 build_libtool_libs=$enable_shared
14236
14237 # Whether or not to build static libraries.
14238 build_old_libs=$enable_static
14239
14240 # What type of objects to build.
14241 pic_mode=$pic_mode
14242
14243 # Whether or not to optimize for fast installation.
14244 fast_install=$enable_fast_install
14245
14246 # Shell to use when invoking shell scripts.
14247 SHELL=$lt_SHELL
14248
14249 # An echo program that protects backslashes.
14250 ECHO=$lt_ECHO
14251
14252 # The PATH separator for the build system.
14253 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14254
14255 # The host system.
14256 host_alias=$host_alias
14257 host=$host
14258 host_os=$host_os
14259
14260 # The build system.
14261 build_alias=$build_alias
14262 build=$build
14263 build_os=$build_os
14264
14265 # A sed program that does not truncate output.
14266 SED=$lt_SED
14267
14268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14269 Xsed="\$SED -e 1s/^X//"
14270
14271 # A grep program that handles long lines.
14272 GREP=$lt_GREP
14273
14274 # An ERE matcher.
14275 EGREP=$lt_EGREP
14276
14277 # A literal string matcher.
14278 FGREP=$lt_FGREP
14279
14280 # A BSD- or MS-compatible name lister.
14281 NM=$lt_NM
14282
14283 # Whether we need soft or hard links.
14284 LN_S=$lt_LN_S
14285
14286 # What is the maximum length of a command?
14287 max_cmd_len=$max_cmd_len
14288
14289 # Object file suffix (normally "o").
14290 objext=$ac_objext
14291
14292 # Executable file suffix (normally "").
14293 exeext=$exeext
14294
14295 # whether the shell understands "unset".
14296 lt_unset=$lt_unset
14297
14298 # turn spaces into newlines.
14299 SP2NL=$lt_lt_SP2NL
14300
14301 # turn newlines into spaces.
14302 NL2SP=$lt_lt_NL2SP
14303
14304 # convert \$build file names to \$host format.
14305 to_host_file_cmd=$lt_cv_to_host_file_cmd
14306
14307 # convert \$build files to toolchain format.
14308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14309
14310 # An object symbol dumper.
14311 OBJDUMP=$lt_OBJDUMP
14312
14313 # Method to check whether dependent libraries are shared objects.
14314 deplibs_check_method=$lt_deplibs_check_method
14315
14316 # Command to use when deplibs_check_method = "file_magic".
14317 file_magic_cmd=$lt_file_magic_cmd
14318
14319 # How to find potential files when deplibs_check_method = "file_magic".
14320 file_magic_glob=$lt_file_magic_glob
14321
14322 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14323 want_nocaseglob=$lt_want_nocaseglob
14324
14325 # DLL creation program.
14326 DLLTOOL=$lt_DLLTOOL
14327
14328 # Command to associate shared and link libraries.
14329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14330
14331 # The archiver.
14332 AR=$lt_AR
14333
14334 # Flags to create an archive.
14335 AR_FLAGS=$lt_AR_FLAGS
14336
14337 # How to feed a file listing to the archiver.
14338 archiver_list_spec=$lt_archiver_list_spec
14339
14340 # A symbol stripping program.
14341 STRIP=$lt_STRIP
14342
14343 # Commands used to install an old-style archive.
14344 RANLIB=$lt_RANLIB
14345 old_postinstall_cmds=$lt_old_postinstall_cmds
14346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14347
14348 # Whether to use a lock for old archive extraction.
14349 lock_old_archive_extraction=$lock_old_archive_extraction
14350
14351 # A C compiler.
14352 LTCC=$lt_CC
14353
14354 # LTCC compiler flags.
14355 LTCFLAGS=$lt_CFLAGS
14356
14357 # Take the output of nm and produce a listing of raw symbols and C names.
14358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14359
14360 # Transform the output of nm in a proper C declaration.
14361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14362
14363 # Transform the output of nm in a C name address pair.
14364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14365
14366 # Transform the output of nm in a C name address pair when lib prefix is needed.
14367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14368
14369 # Specify filename containing input files for \$NM.
14370 nm_file_list_spec=$lt_nm_file_list_spec
14371
14372 # The root where to search for dependent libraries,and in which our libraries should be installed.
14373 lt_sysroot=$lt_sysroot
14374
14375 # The name of the directory that contains temporary libtool files.
14376 objdir=$objdir
14377
14378 # Used to examine libraries when file_magic_cmd begins with "file".
14379 MAGIC_CMD=$MAGIC_CMD
14380
14381 # Must we lock files when doing compilation?
14382 need_locks=$lt_need_locks
14383
14384 # Manifest tool.
14385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14386
14387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14388 DSYMUTIL=$lt_DSYMUTIL
14389
14390 # Tool to change global to local symbols on Mac OS X.
14391 NMEDIT=$lt_NMEDIT
14392
14393 # Tool to manipulate fat objects and archives on Mac OS X.
14394 LIPO=$lt_LIPO
14395
14396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14397 OTOOL=$lt_OTOOL
14398
14399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14400 OTOOL64=$lt_OTOOL64
14401
14402 # Old archive suffix (normally "a").
14403 libext=$libext
14404
14405 # Shared library suffix (normally ".so").
14406 shrext_cmds=$lt_shrext_cmds
14407
14408 # The commands to extract the exported symbol list from a shared archive.
14409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14410
14411 # Variables whose values should be saved in libtool wrapper scripts and
14412 # restored at link time.
14413 variables_saved_for_relink=$lt_variables_saved_for_relink
14414
14415 # Do we need the "lib" prefix for modules?
14416 need_lib_prefix=$need_lib_prefix
14417
14418 # Do we need a version for libraries?
14419 need_version=$need_version
14420
14421 # Library versioning type.
14422 version_type=$version_type
14423
14424 # Shared library runtime path variable.
14425 runpath_var=$runpath_var
14426
14427 # Shared library path variable.
14428 shlibpath_var=$shlibpath_var
14429
14430 # Is shlibpath searched before the hard-coded library search path?
14431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14432
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14435
14436 # List of archive names.  First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME
14438 library_names_spec=$lt_library_names_spec
14439
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14442
14443 # Permission mode override for installation of shared libraries.
14444 install_override_mode=$lt_install_override_mode
14445
14446 # Command to use after installation of a shared archive.
14447 postinstall_cmds=$lt_postinstall_cmds
14448
14449 # Command to use after uninstallation of a shared archive.
14450 postuninstall_cmds=$lt_postuninstall_cmds
14451
14452 # Commands used to finish a libtool library installation in a directory.
14453 finish_cmds=$lt_finish_cmds
14454
14455 # As "finish_cmds", except a single script fragment to be evaled but
14456 # not shown.
14457 finish_eval=$lt_finish_eval
14458
14459 # Whether we should hardcode library paths into libraries.
14460 hardcode_into_libs=$hardcode_into_libs
14461
14462 # Compile-time system search path for libraries.
14463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14464
14465 # Run-time system search path for libraries.
14466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14467
14468 # Whether dlopen is supported.
14469 dlopen_support=$enable_dlopen
14470
14471 # Whether dlopen of programs is supported.
14472 dlopen_self=$enable_dlopen_self
14473
14474 # Whether dlopen of statically linked programs is supported.
14475 dlopen_self_static=$enable_dlopen_self_static
14476
14477 # Commands to strip libraries.
14478 old_striplib=$lt_old_striplib
14479 striplib=$lt_striplib
14480
14481
14482 # The linker used to build libraries.
14483 LD=$lt_LD
14484
14485 # How to create reloadable object files.
14486 reload_flag=$lt_reload_flag
14487 reload_cmds=$lt_reload_cmds
14488
14489 # Commands used to build an old-style archive.
14490 old_archive_cmds=$lt_old_archive_cmds
14491
14492 # A language specific compiler.
14493 CC=$lt_compiler
14494
14495 # Is the compiler the GNU compiler?
14496 with_gcc=$GCC
14497
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14500
14501 # Additional compiler flags for building library objects.
14502 pic_flag=$lt_lt_prog_compiler_pic
14503
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14506
14507 # Compiler flag to prevent dynamic linking.
14508 link_static_flag=$lt_lt_prog_compiler_static
14509
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14512
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14515
14516 # Whether or not to disallow shared libs when runtime libs are static.
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14518
14519 # Compiler flag to allow reflexive dlopens.
14520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14521
14522 # Compiler flag to generate shared objects directly from archives.
14523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14524
14525 # Whether the compiler copes with passing no objects directly.
14526 compiler_needs_object=$lt_compiler_needs_object
14527
14528 # Create an old-style archive from a shared archive.
14529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14530
14531 # Create a temporary old-style archive to link instead of a shared archive.
14532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14533
14534 # Commands used to build a shared archive.
14535 archive_cmds=$lt_archive_cmds
14536 archive_expsym_cmds=$lt_archive_expsym_cmds
14537
14538 # Commands used to build a loadable module if different from building
14539 # a shared archive.
14540 module_cmds=$lt_module_cmds
14541 module_expsym_cmds=$lt_module_expsym_cmds
14542
14543 # Whether we are building with GNU ld or not.
14544 with_gnu_ld=$lt_with_gnu_ld
14545
14546 # Flag that allows shared libraries with undefined symbols to be built.
14547 allow_undefined_flag=$lt_allow_undefined_flag
14548
14549 # Flag that enforces no undefined symbols.
14550 no_undefined_flag=$lt_no_undefined_flag
14551
14552 # Flag to hardcode \$libdir into a binary during linking.
14553 # This must work even if \$libdir does not exist
14554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14555
14556 # Whether we need a single "-rpath" flag with a separated argument.
14557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14558
14559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14560 # DIR into the resulting binary.
14561 hardcode_direct=$hardcode_direct
14562
14563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14564 # DIR into the resulting binary and the resulting library dependency is
14565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14566 # library is relocated.
14567 hardcode_direct_absolute=$hardcode_direct_absolute
14568
14569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14570 # into the resulting binary.
14571 hardcode_minus_L=$hardcode_minus_L
14572
14573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14574 # into the resulting binary.
14575 hardcode_shlibpath_var=$hardcode_shlibpath_var
14576
14577 # Set to "yes" if building a shared library automatically hardcodes DIR
14578 # into the library and all subsequent libraries and executables linked
14579 # against it.
14580 hardcode_automatic=$hardcode_automatic
14581
14582 # Set to yes if linker adds runtime paths of dependent libraries
14583 # to runtime path list.
14584 inherit_rpath=$inherit_rpath
14585
14586 # Whether libtool must link a program against all its dependency libraries.
14587 link_all_deplibs=$link_all_deplibs
14588
14589 # Set to "yes" if exported symbols are required.
14590 always_export_symbols=$always_export_symbols
14591
14592 # The commands to list exported symbols.
14593 export_symbols_cmds=$lt_export_symbols_cmds
14594
14595 # Symbols that should not be listed in the preloaded symbols.
14596 exclude_expsyms=$lt_exclude_expsyms
14597
14598 # Symbols that must always be exported.
14599 include_expsyms=$lt_include_expsyms
14600
14601 # Commands necessary for linking programs (against libraries) with templates.
14602 prelink_cmds=$lt_prelink_cmds
14603
14604 # Commands necessary for finishing linking programs.
14605 postlink_cmds=$lt_postlink_cmds
14606
14607 # Specify filename containing input files.
14608 file_list_spec=$lt_file_list_spec
14609
14610 # How to hardcode a shared library path into an executable.
14611 hardcode_action=$hardcode_action
14612
14613 # ### END LIBTOOL CONFIG
14614
14615 _LT_EOF
14616
14617   case $host_os in
14618   aix3*)
14619     cat <<\_LT_EOF >> "$cfgfile"
14620 # AIX sometimes has problems with the GCC collect2 program.  For some
14621 # reason, if we set the COLLECT_NAMES environment variable, the problems
14622 # vanish in a puff of smoke.
14623 if test "X${COLLECT_NAMES+set}" != Xset; then
14624   COLLECT_NAMES=
14625   export COLLECT_NAMES
14626 fi
14627 _LT_EOF
14628     ;;
14629   esac
14630
14631
14632 ltmain="$ac_aux_dir/ltmain.sh"
14633
14634
14635   # We use sed instead of cat because bash on DJGPP gets confused if
14636   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14637   # text mode, it properly converts lines to CR/LF.  This bash problem
14638   # is reportedly fixed, but why not run on old versions too?
14639   sed '$q' "$ltmain" >> "$cfgfile" \
14640      || (rm -f "$cfgfile"; exit 1)
14641
14642   if test x"$xsi_shell" = xyes; then
14643   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14644 func_dirname ()\
14645 {\
14646 \    case ${1} in\
14647 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14648 \      *  ) func_dirname_result="${3}" ;;\
14649 \    esac\
14650 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14651   && mv -f "$cfgfile.tmp" "$cfgfile" \
14652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653 test 0 -eq $? || _lt_function_replace_fail=:
14654
14655
14656   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14657 func_basename ()\
14658 {\
14659 \    func_basename_result="${1##*/}"\
14660 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14661   && mv -f "$cfgfile.tmp" "$cfgfile" \
14662     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14663 test 0 -eq $? || _lt_function_replace_fail=:
14664
14665
14666   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14667 func_dirname_and_basename ()\
14668 {\
14669 \    case ${1} in\
14670 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14671 \      *  ) func_dirname_result="${3}" ;;\
14672 \    esac\
14673 \    func_basename_result="${1##*/}"\
14674 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14675   && mv -f "$cfgfile.tmp" "$cfgfile" \
14676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14677 test 0 -eq $? || _lt_function_replace_fail=:
14678
14679
14680   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14681 func_stripname ()\
14682 {\
14683 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14684 \    # positional parameters, so assign one to ordinary parameter first.\
14685 \    func_stripname_result=${3}\
14686 \    func_stripname_result=${func_stripname_result#"${1}"}\
14687 \    func_stripname_result=${func_stripname_result%"${2}"}\
14688 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14689   && mv -f "$cfgfile.tmp" "$cfgfile" \
14690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14692
14693
14694   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14695 func_split_long_opt ()\
14696 {\
14697 \    func_split_long_opt_name=${1%%=*}\
14698 \    func_split_long_opt_arg=${1#*=}\
14699 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14700   && mv -f "$cfgfile.tmp" "$cfgfile" \
14701     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14702 test 0 -eq $? || _lt_function_replace_fail=:
14703
14704
14705   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14706 func_split_short_opt ()\
14707 {\
14708 \    func_split_short_opt_arg=${1#??}\
14709 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14710 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14711   && mv -f "$cfgfile.tmp" "$cfgfile" \
14712     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14713 test 0 -eq $? || _lt_function_replace_fail=:
14714
14715
14716   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14717 func_lo2o ()\
14718 {\
14719 \    case ${1} in\
14720 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14721 \      *)    func_lo2o_result=${1} ;;\
14722 \    esac\
14723 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14724   && mv -f "$cfgfile.tmp" "$cfgfile" \
14725     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14726 test 0 -eq $? || _lt_function_replace_fail=:
14727
14728
14729   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14730 func_xform ()\
14731 {\
14732     func_xform_result=${1%.*}.lo\
14733 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14734   && mv -f "$cfgfile.tmp" "$cfgfile" \
14735     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14736 test 0 -eq $? || _lt_function_replace_fail=:
14737
14738
14739   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14740 func_arith ()\
14741 {\
14742     func_arith_result=$(( $* ))\
14743 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14744   && mv -f "$cfgfile.tmp" "$cfgfile" \
14745     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14746 test 0 -eq $? || _lt_function_replace_fail=:
14747
14748
14749   sed -e '/^func_len ()$/,/^} # func_len /c\
14750 func_len ()\
14751 {\
14752     func_len_result=${#1}\
14753 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14754   && mv -f "$cfgfile.tmp" "$cfgfile" \
14755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14757
14758 fi
14759
14760 if test x"$lt_shell_append" = xyes; then
14761   sed -e '/^func_append ()$/,/^} # func_append /c\
14762 func_append ()\
14763 {\
14764     eval "${1}+=\\${2}"\
14765 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14766   && mv -f "$cfgfile.tmp" "$cfgfile" \
14767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14768 test 0 -eq $? || _lt_function_replace_fail=:
14769
14770
14771   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14772 func_append_quoted ()\
14773 {\
14774 \    func_quote_for_eval "${2}"\
14775 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14776 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14777   && mv -f "$cfgfile.tmp" "$cfgfile" \
14778     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14779 test 0 -eq $? || _lt_function_replace_fail=:
14780
14781
14782   # Save a `func_append' function call where possible by direct use of '+='
14783   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14784     && mv -f "$cfgfile.tmp" "$cfgfile" \
14785       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14786   test 0 -eq $? || _lt_function_replace_fail=:
14787 else
14788   # Save a `func_append' function call even when '+=' is not available
14789   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14790     && mv -f "$cfgfile.tmp" "$cfgfile" \
14791       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792   test 0 -eq $? || _lt_function_replace_fail=:
14793 fi
14794
14795 if test x"$_lt_function_replace_fail" = x":"; then
14796   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14797 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14798 fi
14799
14800
14801    mv -f "$cfgfile" "$ofile" ||
14802     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14803   chmod +x "$ofile"
14804
14805  ;;
14806
14807   esac
14808 done # for ac_tag
14809
14810
14811 as_fn_exit 0
14812 _ACEOF
14813 ac_clean_files=$ac_clean_files_save
14814
14815 test $ac_write_fail = 0 ||
14816   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14817
14818
14819 # configure is writing to config.log, and then calls config.status.
14820 # config.status does its own redirection, appending to config.log.
14821 # Unfortunately, on DOS this fails, as config.log is still kept open
14822 # by configure, so config.status won't be able to write to it; its
14823 # output is simply discarded.  So we exec the FD to /dev/null,
14824 # effectively closing config.log, so it can be properly (re)opened and
14825 # appended to by config.status.  When coming back to configure, we
14826 # need to make the FD available again.
14827 if test "$no_create" != yes; then
14828   ac_cs_success=:
14829   ac_config_status_args=
14830   test "$silent" = yes &&
14831     ac_config_status_args="$ac_config_status_args --quiet"
14832   exec 5>/dev/null
14833   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14834   exec 5>>config.log
14835   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14836   # would make configure fail if this is the last instruction.
14837   $ac_cs_success || as_fn_exit 1
14838 fi
14839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14840   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14842 fi
14843