Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / mdemo2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mdemo2 1.0.
4 #
5 # Report bugs to <bug-libtool@gnu.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
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do 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='mdemo2'
572 PACKAGE_TARNAME='mdemo2'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='mdemo2 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="main.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 STATIC
620 LIBTOOL_DEPS
621 CPP
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 MANIFEST_TOOL
628 RANLIB
629 ac_ct_AR
630 AR
631 DLLTOOL
632 OBJDUMP
633 LN_S
634 NM
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LD
638 FGREP
639 EGREP
640 GREP
641 SED
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 LIBTOOL
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
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 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_dependency_tracking
732 enable_shared
733 enable_static
734 with_pic
735 enable_fast_install
736 with_gnu_ld
737 with_sysroot
738 enable_libtool_lock
739 '
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803   # If the previous option needs an argument, assign it.
804   if test -n "$ac_prev"; then
805     eval $ac_prev=\$ac_option
806     ac_prev=
807     continue
808   fi
809
810   case $ac_option in
811   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812   *=)   ac_optarg= ;;
813   *)    ac_optarg=yes ;;
814   esac
815
816   # Accept the important Cygnus configure options, so we can diagnose typos.
817
818   case $ac_dashdash$ac_option in
819   --)
820     ac_dashdash=yes ;;
821
822   -bindir | --bindir | --bindi | --bind | --bin | --bi)
823     ac_prev=bindir ;;
824   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825     bindir=$ac_optarg ;;
826
827   -build | --build | --buil | --bui | --bu)
828     ac_prev=build_alias ;;
829   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830     build_alias=$ac_optarg ;;
831
832   -cache-file | --cache-file | --cache-fil | --cache-fi \
833   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834     ac_prev=cache_file ;;
835   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837     cache_file=$ac_optarg ;;
838
839   --config-cache | -C)
840     cache_file=config.cache ;;
841
842   -datadir | --datadir | --datadi | --datad)
843     ac_prev=datadir ;;
844   -datadir=* | --datadir=* | --datadi=* | --datad=*)
845     datadir=$ac_optarg ;;
846
847   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848   | --dataroo | --dataro | --datar)
849     ac_prev=datarootdir ;;
850   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852     datarootdir=$ac_optarg ;;
853
854   -disable-* | --disable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=no ;;
869
870   -docdir | --docdir | --docdi | --doc | --do)
871     ac_prev=docdir ;;
872   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873     docdir=$ac_optarg ;;
874
875   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876     ac_prev=dvidir ;;
877   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878     dvidir=$ac_optarg ;;
879
880   -enable-* | --enable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
895
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
904
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
908
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
915
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
920
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
926
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
933
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
938
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
943
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
950
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
955
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
962
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
967
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
971
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
975
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
979
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
988
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
993
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1000
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1007
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1024
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1029
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1034
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1038
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1044
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1055
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1060
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1065
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1072
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1077
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1080
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1083
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       as_fn_error $? "invalid package name: $ac_useropt"
1089     ac_useropt_orig=$ac_useropt
1090     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091     case $ac_user_opts in
1092       *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096          ac_unrecognized_sep=', ';;
1097     esac
1098     eval with_$ac_useropt=\$ac_optarg ;;
1099
1100   -without-* | --without-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error $? "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=no ;;
1115
1116   --x)
1117     # Obsolete; use --with-x.
1118     with_x=yes ;;
1119
1120   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121   | --x-incl | --x-inc | --x-in | --x-i)
1122     ac_prev=x_includes ;;
1123   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125     x_includes=$ac_optarg ;;
1126
1127   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129     ac_prev=x_libraries ;;
1130   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132     x_libraries=$ac_optarg ;;
1133
1134   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1136     ;;
1137
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     case $ac_envvar in #(
1142       '' | [0-9]* | *[!_$as_cr_alnum]* )
1143       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144     esac
1145     eval $ac_envvar=\$ac_optarg
1146     export $ac_envvar ;;
1147
1148   *)
1149     # FIXME: should be removed in autoconf 3.0.
1150     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154     ;;
1155
1156   esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161   as_fn_error $? "missing argument to $ac_option"
1162 fi
1163
1164 if test -n "$ac_unrecognized_opts"; then
1165   case $enable_option_checking in
1166     no) ;;
1167     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169   esac
1170 fi
1171
1172 # Check all directory arguments for consistency.
1173 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174                 datadir sysconfdir sharedstatedir localstatedir includedir \
1175                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176                 libdir localedir mandir
1177 do
1178   eval ac_val=\$$ac_var
1179   # Remove trailing slashes.
1180   case $ac_val in
1181     */ )
1182       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183       eval $ac_var=\$ac_val;;
1184   esac
1185   # Be sure to have absolute directory names.
1186   case $ac_val in
1187     [\\/$]* | ?:[\\/]* )  continue;;
1188     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189   esac
1190   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used" >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227   ac_srcdir_defaulted=yes
1228   # Try the directory containing this script, then the parent directory.
1229   ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231          X"$as_myself" : 'X\(//\)[^/]' \| \
1232          X"$as_myself" : 'X\(//\)$' \| \
1233          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)[^/].*/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\).*/{
1248             s//\1/
1249             q
1250           }
1251           s/.*/./; q'`
1252   srcdir=$ac_confdir
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254     srcdir=..
1255   fi
1256 else
1257   ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266         pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269   srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_env_${ac_var}_value=\$${ac_var}
1280   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288   # Omit some internal or obsolete options to make the list less imposing.
1289   # This message is too long to be a string in the A/UX 3.1 sh.
1290   cat <<_ACEOF
1291 \`configure' configures mdemo2 1.0 to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301   -h, --help              display this help and exit
1302       --help=short        display options specific to this package
1303       --help=recursive    display the short help of all the included packages
1304   -V, --version           display version information and exit
1305   -q, --quiet, --silent   do not print \`checking ...' messages
1306       --cache-file=FILE   cache test results in FILE [disabled]
1307   -C, --config-cache      alias for \`--cache-file=config.cache'
1308   -n, --no-create         do not create output files
1309       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312   --prefix=PREFIX         install architecture-independent files in PREFIX
1313                           [$ac_default_prefix]
1314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                           [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325   --bindir=DIR            user executables [EPREFIX/bin]
1326   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327   --libexecdir=DIR        program executables [EPREFIX/libexec]
1328   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331   --libdir=DIR            object code libraries [EPREFIX/lib]
1332   --includedir=DIR        C header files [PREFIX/include]
1333   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336   --infodir=DIR           info documentation [DATAROOTDIR/info]
1337   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338   --mandir=DIR            man documentation [DATAROOTDIR/man]
1339   --docdir=DIR            documentation root [DATAROOTDIR/doc/mdemo2]
1340   --htmldir=DIR           html documentation [DOCDIR]
1341   --dvidir=DIR            dvi documentation [DOCDIR]
1342   --pdfdir=DIR            pdf documentation [DOCDIR]
1343   --psdir=DIR             ps documentation [DOCDIR]
1344 _ACEOF
1345
1346   cat <<\_ACEOF
1347
1348 Program names:
1349   --program-prefix=PREFIX            prepend PREFIX to installed program names
1350   --program-suffix=SUFFIX            append SUFFIX to installed program names
1351   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360   case $ac_init_help in
1361      short | recursive ) echo "Configuration of mdemo2 1.0:";;
1362    esac
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --disable-dependency-tracking  speeds up one-time build
1370   --enable-dependency-tracking   do not reject slow dependency extractors
1371   --enable-shared[=PKGS]  build shared libraries [default=yes]
1372   --enable-static[=PKGS]  build static libraries [default=yes]
1373   --enable-fast-install[=PKGS]
1374                           optimize for fast installation [default=yes]
1375   --disable-libtool-lock  avoid locking (might break parallel builds)
1376
1377 Optional Packages:
1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1380   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1381                           both]
1382   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1383   --with-sysroot=DIR Search for dependent libraries within DIR
1384                         (or the compiler's sysroot if not specified).
1385
1386 Some influential environment variables:
1387   CC          C compiler command
1388   CFLAGS      C compiler flags
1389   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1390               nonstandard directory <lib dir>
1391   LIBS        libraries to pass to the linker, e.g. -l<library>
1392   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393               you have headers in a nonstandard directory <include dir>
1394   CPP         C preprocessor
1395
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1398
1399 Report bugs to <bug-libtool@gnu.org>.
1400 _ACEOF
1401 ac_status=$?
1402 fi
1403
1404 if test "$ac_init_help" = "recursive"; then
1405   # If there are subdirs, report their specific --help.
1406   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407     test -d "$ac_dir" ||
1408       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409       continue
1410     ac_builddir=.
1411
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *)
1415   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416   # A ".." for each directory in $ac_dir_suffix.
1417   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418   case $ac_top_builddir_sub in
1419   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421   esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1427
1428 case $srcdir in
1429   .)  # We are building in place.
1430     ac_srcdir=.
1431     ac_top_srcdir=$ac_top_builddir_sub
1432     ac_abs_top_srcdir=$ac_pwd ;;
1433   [\\/]* | ?:[\\/]* )  # Absolute name.
1434     ac_srcdir=$srcdir$ac_dir_suffix;
1435     ac_top_srcdir=$srcdir
1436     ac_abs_top_srcdir=$srcdir ;;
1437   *) # Relative name.
1438     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439     ac_top_srcdir=$ac_top_build_prefix$srcdir
1440     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444     cd "$ac_dir" || { ac_status=$?; continue; }
1445     # Check for guested configure.
1446     if test -f "$ac_srcdir/configure.gnu"; then
1447       echo &&
1448       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449     elif test -f "$ac_srcdir/configure"; then
1450       echo &&
1451       $SHELL "$ac_srcdir/configure" --help=recursive
1452     else
1453       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454     fi || ac_status=$?
1455     cd "$ac_pwd" || { ac_status=$?; break; }
1456   done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461   cat <<\_ACEOF
1462 mdemo2 configure 1.0
1463 generated by GNU Autoconf 2.68
1464
1465 Copyright (C) 2010 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469   exit
1470 fi
1471
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1475
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1480 {
1481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482   rm -f conftest.$ac_objext
1483   if { { ac_try="$ac_compile"
1484 case "(($ac_try" in
1485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486   *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490   (eval "$ac_compile") 2>conftest.err
1491   ac_status=$?
1492   if test -s conftest.err; then
1493     grep -v '^ *+' conftest.err >conftest.er1
1494     cat conftest.er1 >&5
1495     mv -f conftest.er1 conftest.err
1496   fi
1497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498   test $ac_status = 0; } && {
1499          test -z "$ac_c_werror_flag" ||
1500          test ! -s conftest.err
1501        } && test -s conftest.$ac_objext; then :
1502   ac_retval=0
1503 else
1504   $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1506
1507         ac_retval=1
1508 fi
1509   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510   as_fn_set_status $ac_retval
1511
1512 } # ac_fn_c_try_compile
1513
1514 # ac_fn_c_try_link LINENO
1515 # -----------------------
1516 # Try to link conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_link ()
1518 {
1519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520   rm -f conftest.$ac_objext conftest$ac_exeext
1521   if { { ac_try="$ac_link"
1522 case "(($ac_try" in
1523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524   *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528   (eval "$ac_link") 2>conftest.err
1529   ac_status=$?
1530   if test -s conftest.err; then
1531     grep -v '^ *+' conftest.err >conftest.er1
1532     cat conftest.er1 >&5
1533     mv -f conftest.er1 conftest.err
1534   fi
1535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536   test $ac_status = 0; } && {
1537          test -z "$ac_c_werror_flag" ||
1538          test ! -s conftest.err
1539        } && test -s conftest$ac_exeext && {
1540          test "$cross_compiling" = yes ||
1541          $as_test_x conftest$ac_exeext
1542        }; then :
1543   ac_retval=0
1544 else
1545   $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548         ac_retval=1
1549 fi
1550   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1551   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1552   # interfere with the next link command; also delete a directory that is
1553   # left behind by Apple's compiler.  We do this before executing the actions.
1554   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556   as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_link
1559
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if eval \${$3+:} false; then :
1570   $as_echo_n "(cached) " >&6
1571 else
1572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h.  */
1574 $4
1575 #include <$2>
1576 _ACEOF
1577 if ac_fn_c_try_compile "$LINENO"; then :
1578   eval "$3=yes"
1579 else
1580   eval "$3=no"
1581 fi
1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1583 fi
1584 eval ac_res=\$$3
1585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588
1589 } # ac_fn_c_check_header_compile
1590
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_cpp ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } > conftest.i && {
1613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        }; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621     ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_cpp
1627
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631 # that executables *can* be run.
1632 ac_fn_c_try_run ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_link") 2>&5
1643   ac_status=$?
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646   { { case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_try") 2>&5
1653   ac_status=$?
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; }; }; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: program exited with status $ac_status" >&5
1659        $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662        ac_retval=$ac_status
1663 fi
1664   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_run
1669
1670 # ac_fn_c_check_func LINENO FUNC VAR
1671 # ----------------------------------
1672 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1673 ac_fn_c_check_func ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679   $as_echo_n "(cached) " >&6
1680 else
1681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h.  */
1683 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1685 #define $2 innocuous_$2
1686
1687 /* System header to define __stub macros and hopefully few prototypes,
1688     which can conflict with char $2 (); below.
1689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1690     <limits.h> exists even on freestanding compilers.  */
1691
1692 #ifdef __STDC__
1693 # include <limits.h>
1694 #else
1695 # include <assert.h>
1696 #endif
1697
1698 #undef $2
1699
1700 /* Override any GCC internal prototype to avoid an error.
1701    Use char because int might match the return type of a GCC
1702    builtin and then its argument prototype would still apply.  */
1703 #ifdef __cplusplus
1704 extern "C"
1705 #endif
1706 char $2 ();
1707 /* The GNU C library defines this for functions which it implements
1708     to always fail with ENOSYS.  Some functions are actually named
1709     something starting with __ and the normal name is an alias.  */
1710 #if defined __stub_$2 || defined __stub___$2
1711 choke me
1712 #endif
1713
1714 int
1715 main ()
1716 {
1717 return $2 ();
1718   ;
1719   return 0;
1720 }
1721 _ACEOF
1722 if ac_fn_c_try_link "$LINENO"; then :
1723   eval "$3=yes"
1724 else
1725   eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext \
1728     conftest$ac_exeext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_func
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by mdemo2 $as_me 1.0, which was
1741 generated by GNU Autoconf 2.68.  Invocation command line was
1742
1743   $ $0 $@
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1761
1762 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1763 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1766 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1767 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1768 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777     $as_echo "PATH: $as_dir"
1778   done
1779 IFS=$as_save_IFS
1780
1781 } >&5
1782
1783 cat >&5 <<_ACEOF
1784
1785
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1789
1790 _ACEOF
1791
1792
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1803 do
1804   for ac_arg
1805   do
1806     case $ac_arg in
1807     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809     | -silent | --silent | --silen | --sile | --sil)
1810       continue ;;
1811     *\'*)
1812       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813     esac
1814     case $ac_pass in
1815     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1816     2)
1817       as_fn_append ac_configure_args1 " '$ac_arg'"
1818       if test $ac_must_keep_next = true; then
1819         ac_must_keep_next=false # Got value, back to normal.
1820       else
1821         case $ac_arg in
1822           *=* | --config-cache | -C | -disable-* | --disable-* \
1823           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825           | -with-* | --with-* | -without-* | --without-* | --x)
1826             case "$ac_configure_args0 " in
1827               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828             esac
1829             ;;
1830           -* ) ac_must_keep_next=true ;;
1831         esac
1832       fi
1833       as_fn_append ac_configure_args " '$ac_arg'"
1834       ;;
1835     esac
1836   done
1837 done
1838 { ac_configure_args0=; unset ac_configure_args0;}
1839 { ac_configure_args1=; unset ac_configure_args1;}
1840
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log.  We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847   # Save into config.log some information that might help in debugging.
1848   {
1849     echo
1850
1851     $as_echo "## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##"
1854     echo
1855     # The following way of writing the cache mishandles newlines in values,
1856 (
1857   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858     eval ac_val=\$$ac_var
1859     case $ac_val in #(
1860     *${as_nl}*)
1861       case $ac_var in #(
1862       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864       esac
1865       case $ac_var in #(
1866       _ | IFS | as_nl) ;; #(
1867       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868       *) { eval $ac_var=; unset $ac_var;} ;;
1869       esac ;;
1870     esac
1871   done
1872   (set) 2>&1 |
1873     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874     *${as_nl}ac_space=\ *)
1875       sed -n \
1876         "s/'\''/'\''\\\\'\'''\''/g;
1877           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878       ;; #(
1879     *)
1880       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881       ;;
1882     esac |
1883     sort
1884 )
1885     echo
1886
1887     $as_echo "## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##"
1890     echo
1891     for ac_var in $ac_subst_vars
1892     do
1893       eval ac_val=\$$ac_var
1894       case $ac_val in
1895       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896       esac
1897       $as_echo "$ac_var='\''$ac_val'\''"
1898     done | sort
1899     echo
1900
1901     if test -n "$ac_subst_files"; then
1902       $as_echo "## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##"
1905       echo
1906       for ac_var in $ac_subst_files
1907       do
1908         eval ac_val=\$$ac_var
1909         case $ac_val in
1910         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911         esac
1912         $as_echo "$ac_var='\''$ac_val'\''"
1913       done | sort
1914       echo
1915     fi
1916
1917     if test -s confdefs.h; then
1918       $as_echo "## ----------- ##
1919 ## confdefs.h. ##
1920 ## ----------- ##"
1921       echo
1922       cat confdefs.h
1923       echo
1924     fi
1925     test "$ac_signal" != 0 &&
1926       $as_echo "$as_me: caught signal $ac_signal"
1927     $as_echo "$as_me: exit $exit_status"
1928   } >&5
1929   rm -f core *.core core.conftest.* &&
1930     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931     exit $exit_status
1932 ' 0
1933 for ac_signal in 1 2 13 15; do
1934   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 done
1936 ac_signal=0
1937
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1940
1941 $as_echo "/* confdefs.h */" > confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951 _ACEOF
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1955 _ACEOF
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_URL "$PACKAGE_URL"
1967 _ACEOF
1968
1969
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1972 ac_site_file1=NONE
1973 ac_site_file2=NONE
1974 if test -n "$CONFIG_SITE"; then
1975   # We do not want a PATH search for config.site.
1976   case $CONFIG_SITE in #((
1977     -*)  ac_site_file1=./$CONFIG_SITE;;
1978     */*) ac_site_file1=$CONFIG_SITE;;
1979     *)   ac_site_file1=./$CONFIG_SITE;;
1980   esac
1981 elif test "x$prefix" != xNONE; then
1982   ac_site_file1=$prefix/share/config.site
1983   ac_site_file2=$prefix/etc/config.site
1984 else
1985   ac_site_file1=$ac_default_prefix/share/config.site
1986   ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990   test "x$ac_site_file" = xNONE && continue
1991   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994     sed 's/^/| /' "$ac_site_file" >&5
1995     . "$ac_site_file" \
1996       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See \`config.log' for more details" "$LINENO" 5; }
2000   fi
2001 done
2002
2003 if test -r "$cache_file"; then
2004   # Some versions of bash will fail to source /dev/null (special files
2005   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 $as_echo "$as_me: loading cache $cache_file" >&6;}
2009     case $cache_file in
2010       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011       *)                      . "./$cache_file";;
2012     esac
2013   fi
2014 else
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017   >$cache_file
2018 fi
2019
2020 # Check that the precious variables saved in the cache have kept the same
2021 # value.
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025   eval ac_new_set=\$ac_env_${ac_var}_set
2026   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027   eval ac_new_val=\$ac_env_${ac_var}_value
2028   case $ac_old_set,$ac_new_set in
2029     set,)
2030       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032       ac_cache_corrupted=: ;;
2033     ,set)
2034       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036       ac_cache_corrupted=: ;;
2037     ,);;
2038     *)
2039       if test "x$ac_old_val" != "x$ac_new_val"; then
2040         # differences in whitespace do not lead to failure.
2041         ac_old_val_w=`echo x $ac_old_val`
2042         ac_new_val_w=`echo x $ac_new_val`
2043         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046           ac_cache_corrupted=:
2047         else
2048           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050           eval $ac_var=\$ac_old_val
2051         fi
2052         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2053 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2054         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2055 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2056       fi;;
2057   esac
2058   # Pass precious variables to config.status.
2059   if test "$ac_new_set" = set; then
2060     case $ac_new_val in
2061     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062     *) ac_arg=$ac_var=$ac_new_val ;;
2063     esac
2064     case " $ac_configure_args " in
2065       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2066       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067     esac
2068   fi
2069 done
2070 if $ac_cache_corrupted; then
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2076 fi
2077 ## -------------------- ##
2078 ## Main body of script. ##
2079 ## -------------------- ##
2080
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089 ac_aux_dir=
2090 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2091   if test -f "$ac_dir/install-sh"; then
2092     ac_aux_dir=$ac_dir
2093     ac_install_sh="$ac_aux_dir/install-sh -c"
2094     break
2095   elif test -f "$ac_dir/install.sh"; then
2096     ac_aux_dir=$ac_dir
2097     ac_install_sh="$ac_aux_dir/install.sh -c"
2098     break
2099   elif test -f "$ac_dir/shtool"; then
2100     ac_aux_dir=$ac_dir
2101     ac_install_sh="$ac_aux_dir/shtool install -c"
2102     break
2103   fi
2104 done
2105 if test -z "$ac_aux_dir"; then
2106   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2107 fi
2108
2109 # These three variables are undocumented and unsupported,
2110 # and are intended to be withdrawn in a future Autoconf release.
2111 # They can cause serious problems if a builder's source tree is in a directory
2112 # whose full name contains unusual characters.
2113 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2114 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2115 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2116
2117
2118
2119
2120 ## ------------------------ ##
2121 ## Automake Initialisation. ##
2122 ## ------------------------ ##
2123 am__api_version='1.11'
2124
2125 # Find a good install program.  We prefer a C program (faster),
2126 # so one script is as good as another.  But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2131 # AIX /bin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 # Reject install programs that cannot install multiple files.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2141 if test -z "$INSTALL"; then
2142 if ${ac_cv_path_install+:} false; then :
2143   $as_echo_n "(cached) " >&6
2144 else
2145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150     # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in #((
2152   ./ | .// | /[cC]/* | \
2153   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2155   /usr/ucb/* ) ;;
2156   *)
2157     # OSF1 and SCO ODT 3.0 have their own names for install.
2158     # Don't use installbsd from OSF since it installs stuff as root
2159     # by default.
2160     for ac_prog in ginstall scoinst install; do
2161       for ac_exec_ext in '' $ac_executable_extensions; do
2162         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163           if test $ac_prog = install &&
2164             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # AIX install.  It has an incompatible calling convention.
2166             :
2167           elif test $ac_prog = install &&
2168             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169             # program-specific install script used by HP pwplus--don't use.
2170             :
2171           else
2172             rm -rf conftest.one conftest.two conftest.dir
2173             echo one > conftest.one
2174             echo two > conftest.two
2175             mkdir conftest.dir
2176             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177               test -s conftest.one && test -s conftest.two &&
2178               test -s conftest.dir/conftest.one &&
2179               test -s conftest.dir/conftest.two
2180             then
2181               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182               break 3
2183             fi
2184           fi
2185         fi
2186       done
2187     done
2188     ;;
2189 esac
2190
2191   done
2192 IFS=$as_save_IFS
2193
2194 rm -rf conftest.one conftest.two conftest.dir
2195
2196 fi
2197   if test "${ac_cv_path_install+set}" = set; then
2198     INSTALL=$ac_cv_path_install
2199   else
2200     # As a last resort, use the slow shell script.  Don't cache a
2201     # value for INSTALL within a source directory, because that will
2202     # break other packages using the cache if that directory is
2203     # removed, or if the value is a relative name.
2204     INSTALL=$ac_install_sh
2205   fi
2206 fi
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208 $as_echo "$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219 $as_echo_n "checking whether build environment is sane... " >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name.  Accept space and tab only in the latter.
2225 am_lf='
2226 '
2227 case `pwd` in
2228   *[\\\"\#\$\&\'\`$am_lf]*)
2229     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2230 esac
2231 case $srcdir in
2232   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2233     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2234 esac
2235
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments.  Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2240 # directory).
2241 if (
2242    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243    if test "$*" = "X"; then
2244       # -L didn't work.
2245       set X `ls -t "$srcdir/configure" conftest.file`
2246    fi
2247    rm -f conftest.file
2248    if test "$*" != "X $srcdir/configure conftest.file" \
2249       && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251       # If neither matched, then we have a broken ls.  This can happen
2252       # if, for instance, CONFIG_SHELL is bash and it inherits a
2253       # broken ls alias from the environment.  This has actually
2254       # happened.  Such a system could not be considered "sane".
2255       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2256 alias in your environment" "$LINENO" 5
2257    fi
2258
2259    test "$2" = conftest.file
2260    )
2261 then
2262    # Ok.
2263    :
2264 else
2265    as_fn_error $? "newly created file is older than distributed files!
2266 Check your system clock" "$LINENO" 5
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269 $as_echo "yes" >&6; }
2270 test "$program_prefix" != NONE &&
2271   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272 # Use a double $ so make ignores it.
2273 test "$program_suffix" != NONE &&
2274   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275 # Double any \ or $.
2276 # By default was `s,x,x', remove it if useless.
2277 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283 if test x"${MISSING+set}" != xset; then
2284   case $am_aux_dir in
2285   *\ * | *\     *)
2286     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287   *)
2288     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289   esac
2290 fi
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293   am_missing_run="$MISSING --run "
2294 else
2295   am_missing_run=
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298 fi
2299
2300 if test x"${install_sh}" != xset; then
2301   case $am_aux_dir in
2302   *\ * | *\     *)
2303     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304   *)
2305     install_sh="\${SHELL} $am_aux_dir/install-sh"
2306   esac
2307 fi
2308
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'.  However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314   if test -n "$ac_tool_prefix"; then
2315   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_STRIP+:} false; then :
2320   $as_echo_n "(cached) " >&6
2321 else
2322   if test -n "$STRIP"; then
2323   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330     for ac_exec_ext in '' $ac_executable_extensions; do
2331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337   done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345 $as_echo "$STRIP" >&6; }
2346 else
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$ac_cv_prog_STRIP"; then
2354   ac_ct_STRIP=$STRIP
2355   # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   if test -n "$ac_ct_STRIP"; then
2363   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370     for ac_exec_ext in '' $ac_executable_extensions; do
2371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372     ac_cv_prog_ac_ct_STRIP="strip"
2373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377   done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385 $as_echo "$ac_ct_STRIP" >&6; }
2386 else
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2389 fi
2390
2391   if test "x$ac_ct_STRIP" = x; then
2392     STRIP=":"
2393   else
2394     case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400     STRIP=$ac_ct_STRIP
2401   fi
2402 else
2403   STRIP="$ac_cv_prog_STRIP"
2404 fi
2405
2406 fi
2407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411 if test -z "$MKDIR_P"; then
2412   if ${ac_cv_path_mkdir+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420     for ac_prog in mkdir gmkdir; do
2421          for ac_exec_ext in '' $ac_executable_extensions; do
2422            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424              'mkdir (GNU coreutils) '* | \
2425              'mkdir (coreutils) '* | \
2426              'mkdir (fileutils) '4.1*)
2427                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428                break 3;;
2429            esac
2430          done
2431        done
2432   done
2433 IFS=$as_save_IFS
2434
2435 fi
2436
2437   test -d ./--version && rmdir ./--version
2438   if test "${ac_cv_path_mkdir+set}" = set; then
2439     MKDIR_P="$ac_cv_path_mkdir -p"
2440   else
2441     # As a last resort, use the slow shell script.  Don't cache a
2442     # value for MKDIR_P within a source directory, because that will
2443     # break other packages using the cache if that directory is
2444     # removed, or if the value is a relative name.
2445     MKDIR_P="$ac_install_sh -d"
2446   fi
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449 $as_echo "$MKDIR_P" >&6; }
2450
2451 mkdir_p="$MKDIR_P"
2452 case $mkdir_p in
2453   [\\/$]* | ?:[\\/]*) ;;
2454   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455 esac
2456
2457 for ac_prog in gawk mawk nawk awk
2458 do
2459   # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_AWK+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test -n "$AWK"; then
2467   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_AWK="$ac_prog"
2477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481   done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 AWK=$ac_cv_prog_AWK
2487 if test -n "$AWK"; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489 $as_echo "$AWK" >&6; }
2490 else
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496   test -n "$AWK" && break
2497 done
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501 set x ${MAKE-make}
2502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   cat >conftest.make <<\_ACEOF
2507 SHELL = /bin/sh
2508 all:
2509         @echo '@@@%%%=$(MAKE)=@@@%%%'
2510 _ACEOF
2511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513   *@@@%%%=?*=@@@%%%*)
2514     eval ac_cv_prog_make_${ac_make}_set=yes;;
2515   *)
2516     eval ac_cv_prog_make_${ac_make}_set=no;;
2517 esac
2518 rm -f conftest.make
2519 fi
2520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2523   SET_MAKE=
2524 else
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527   SET_MAKE="MAKE=${MAKE-make}"
2528 fi
2529
2530 rm -rf .tst 2>/dev/null
2531 mkdir .tst 2>/dev/null
2532 if test -d .tst; then
2533   am__leading_dot=.
2534 else
2535   am__leading_dot=_
2536 fi
2537 rmdir .tst 2>/dev/null
2538
2539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541   # is not polluted with repeated "-I."
2542   am__isrc=' -I$(srcdir)'
2543   # test to see if srcdir already configured
2544   if test -f $srcdir/config.status; then
2545     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2546   fi
2547 fi
2548
2549 # test whether we have cygpath
2550 if test -z "$CYGPATH_W"; then
2551   if (cygpath --version) >/dev/null 2>/dev/null; then
2552     CYGPATH_W='cygpath -w'
2553   else
2554     CYGPATH_W=echo
2555   fi
2556 fi
2557
2558
2559 # Define the identity of the package.
2560  PACKAGE='mdemo2'
2561  VERSION='1.0'
2562
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE "$PACKAGE"
2566 _ACEOF
2567
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define VERSION "$VERSION"
2571 _ACEOF
2572
2573 # Some tools Automake needs.
2574
2575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576
2577
2578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579
2580
2581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582
2583
2584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585
2586
2587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2588
2589 # We need awk for the "check" target.  The system "awk" is bad on
2590 # some platforms.
2591 # Always define AMTAR for backward compatibility.
2592
2593 AMTAR=${AMTAR-"${am_missing_run}tar"}
2594
2595 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596
2597
2598
2599
2600
2601
2602
2603 ## ------------------ ##
2604 ## C compiler checks. ##
2605 ## ------------------ ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 if test -n "$ac_tool_prefix"; then
2612   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   if test -n "$CC"; then
2620   ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     for ac_exec_ext in '' $ac_executable_extensions; do
2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631     break 2
2632   fi
2633 done
2634   done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2643 else
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 fi
2650 if test -z "$ac_cv_prog_CC"; then
2651   ac_ct_CC=$CC
2652   # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   if test -n "$ac_ct_CC"; then
2660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667     for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_prog_ac_ct_CC="gcc"
2670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674   done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682 $as_echo "$ac_ct_CC" >&6; }
2683 else
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688   if test "x$ac_ct_CC" = x; then
2689     CC=""
2690   else
2691     case $cross_compiling:$ac_tool_warned in
2692 yes:)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697     CC=$ac_ct_CC
2698   fi
2699 else
2700   CC="$ac_cv_prog_CC"
2701 fi
2702
2703 if test -z "$CC"; then
2704           if test -n "$ac_tool_prefix"; then
2705     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   if test -n "$CC"; then
2713   ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720     for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_CC="${ac_tool_prefix}cc"
2723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727   done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742   fi
2743 fi
2744 if test -z "$CC"; then
2745   # Extract the first word of "cc", so it can be a program name with args.
2746 set dummy cc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_CC+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   if test -n "$CC"; then
2753   ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755   ac_prog_rejected=no
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_exec_ext in '' $ac_executable_extensions; do
2762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764        ac_prog_rejected=yes
2765        continue
2766      fi
2767     ac_cv_prog_CC="cc"
2768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772   done
2773 IFS=$as_save_IFS
2774
2775 if test $ac_prog_rejected = yes; then
2776   # We found a bogon in the path, so make sure we never use it.
2777   set dummy $ac_cv_prog_CC
2778   shift
2779   if test $# != 0; then
2780     # We chose a different compiler from the bogus one.
2781     # However, it has the same basename, so the bogon will be chosen
2782     # first if we set CC to just the basename; use the full file name.
2783     shift
2784     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785   fi
2786 fi
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$CC"; then
2801   if test -n "$ac_tool_prefix"; then
2802   for ac_prog in cl.exe
2803   do
2804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$CC"; then
2812   ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819     for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840
2841     test -n "$CC" && break
2842   done
2843 fi
2844 if test -z "$CC"; then
2845   ac_ct_CC=$CC
2846   for ac_prog in cl.exe
2847 do
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_ac_ct_CC="$ac_prog"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878 $as_echo "$ac_ct_CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885   test -n "$ac_ct_CC" && break
2886 done
2887
2888   if test "x$ac_ct_CC" = x; then
2889     CC=""
2890   else
2891     case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897     CC=$ac_ct_CC
2898   fi
2899 fi
2900
2901 fi
2902
2903
2904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "no acceptable C compiler found in \$PATH
2907 See \`config.log' for more details" "$LINENO" 5; }
2908
2909 # Provide some information about the compiler.
2910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2911 set X $ac_compile
2912 ac_compiler=$2
2913 for ac_option in --version -v -V -qversion; do
2914   { { ac_try="$ac_compiler $ac_option >&5"
2915 case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2922   ac_status=$?
2923   if test -s conftest.err; then
2924     sed '10a\
2925 ... rest of stderr output deleted ...
2926          10q' conftest.err >conftest.er1
2927     cat conftest.er1 >&5
2928   fi
2929   rm -f conftest.er1 conftest.err
2930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931   test $ac_status = 0; }
2932 done
2933
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 ac_clean_files_save=$ac_clean_files
2946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2947 # Try to create an executable without -o first, disregard a.out.
2948 # It will help us diagnose broken compilers, and finding out an intuition
2949 # of exeext.
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2951 $as_echo_n "checking whether the C compiler works... " >&6; }
2952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2953
2954 # The possible output files:
2955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2956
2957 ac_rmfiles=
2958 for ac_file in $ac_files
2959 do
2960   case $ac_file in
2961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2963   esac
2964 done
2965 rm -f $ac_rmfiles
2966
2967 if { { ac_try="$ac_link_default"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974   (eval "$ac_link_default") 2>&5
2975   ac_status=$?
2976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977   test $ac_status = 0; }; then :
2978   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2980 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2981 # so that the user can short-circuit this test for compilers unknown to
2982 # Autoconf.
2983 for ac_file in $ac_files ''
2984 do
2985   test -f "$ac_file" || continue
2986   case $ac_file in
2987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2988         ;;
2989     [ab].out )
2990         # We found the default executable, but exeext='' is most
2991         # certainly right.
2992         break;;
2993     *.* )
2994         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2995         then :; else
2996            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997         fi
2998         # We set ac_cv_exeext here because the later test for it is not
2999         # safe: cross compilers may not add the suffix if given an `-o'
3000         # argument, so we may need to know it at that point already.
3001         # Even if this section looks crufty: it has the advantage of
3002         # actually working.
3003         break;;
3004     * )
3005         break;;
3006   esac
3007 done
3008 test "$ac_cv_exeext" = no && ac_cv_exeext=
3009
3010 else
3011   ac_file=''
3012 fi
3013 if test -z "$ac_file"; then :
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 $as_echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error 77 "C compiler cannot create executables
3022 See \`config.log' for more details" "$LINENO" 5; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3028 $as_echo_n "checking for C compiler default output file name... " >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3030 $as_echo "$ac_file" >&6; }
3031 ac_exeext=$ac_cv_exeext
3032
3033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3034 ac_clean_files=$ac_clean_files_save
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3036 $as_echo_n "checking for suffix of executables... " >&6; }
3037 if { { ac_try="$ac_link"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044   (eval "$ac_link") 2>&5
3045   ac_status=$?
3046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047   test $ac_status = 0; }; then :
3048   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3049 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3050 # work properly (i.e., refer to `conftest.exe'), while it won't with
3051 # `rm'.
3052 for ac_file in conftest.exe conftest conftest.*; do
3053   test -f "$ac_file" || continue
3054   case $ac_file in
3055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3056     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057           break;;
3058     * ) break;;
3059   esac
3060 done
3061 else
3062   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details" "$LINENO" 5; }
3066 fi
3067 rm -f conftest conftest$ac_cv_exeext
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3069 $as_echo "$ac_cv_exeext" >&6; }
3070
3071 rm -f conftest.$ac_ext
3072 EXEEXT=$ac_cv_exeext
3073 ac_exeext=$EXEEXT
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h.  */
3076 #include <stdio.h>
3077 int
3078 main ()
3079 {
3080 FILE *f = fopen ("conftest.out", "w");
3081  return ferror (f) || fclose (f) != 0;
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 ac_clean_files="$ac_clean_files conftest.out"
3088 # Check that the compiler produces executables we can run.  If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 if test "$cross_compiling" != yes; then
3093   { { ac_try="$ac_link"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100   (eval "$ac_link") 2>&5
3101   ac_status=$?
3102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103   test $ac_status = 0; }
3104   if { ac_try='./conftest$ac_cv_exeext'
3105   { { case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114   test $ac_status = 0; }; }; then
3115     cross_compiling=no
3116   else
3117     if test "$cross_compiling" = maybe; then
3118         cross_compiling=yes
3119     else
3120         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details" "$LINENO" 5; }
3125     fi
3126   fi
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129 $as_echo "$cross_compiling" >&6; }
3130
3131 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3132 ac_clean_files=$ac_clean_files_save
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3134 $as_echo_n "checking for suffix of object files... " >&6; }
3135 if ${ac_cv_objext+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.o conftest.obj
3150 if { { ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_compile") 2>&5
3158   ac_status=$?
3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160   test $ac_status = 0; }; then :
3161   for ac_file in conftest.o conftest.obj conftest.*; do
3162   test -f "$ac_file" || continue;
3163   case $ac_file in
3164     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3165     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3166        break;;
3167   esac
3168 done
3169 else
3170   $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "cannot compute suffix of object files: cannot compile
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 fi
3178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3181 $as_echo "$ac_cv_objext" >&6; }
3182 OBJEXT=$ac_cv_objext
3183 ac_objext=$OBJEXT
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3186 if ${ac_cv_c_compiler_gnu+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195 #ifndef __GNUC__
3196        choke me
3197 #endif
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 if ac_fn_c_try_compile "$LINENO"; then :
3204   ac_compiler_gnu=yes
3205 else
3206   ac_compiler_gnu=no
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3210
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3215   GCC=yes
3216 else
3217   GCC=
3218 fi
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3223 if ${ac_cv_prog_cc_g+:} false; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   ac_save_c_werror_flag=$ac_c_werror_flag
3227    ac_c_werror_flag=yes
3228    ac_cv_prog_cc_g=no
3229    CFLAGS="-g"
3230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h.  */
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 if ac_fn_c_try_compile "$LINENO"; then :
3242   ac_cv_prog_cc_g=yes
3243 else
3244   CFLAGS=""
3245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 if ac_fn_c_try_compile "$LINENO"; then :
3257
3258 else
3259   ac_c_werror_flag=$ac_save_c_werror_flag
3260          CFLAGS="-g"
3261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273   ac_cv_prog_cc_g=yes
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280    ac_c_werror_flag=$ac_save_c_werror_flag
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3283 $as_echo "$ac_cv_prog_cc_g" >&6; }
3284 if test "$ac_test_CFLAGS" = set; then
3285   CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287   if test "$GCC" = yes; then
3288     CFLAGS="-g -O2"
3289   else
3290     CFLAGS="-g"
3291   fi
3292 else
3293   if test "$GCC" = yes; then
3294     CFLAGS="-O2"
3295   else
3296     CFLAGS=
3297   fi
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3301 if ${ac_cv_prog_cc_c89+:} false; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   ac_cv_prog_cc_c89=no
3305 ac_save_CC=$CC
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308 #include <stdarg.h>
3309 #include <stdio.h>
3310 #include <sys/types.h>
3311 #include <sys/stat.h>
3312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3313 struct buf { int x; };
3314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3315 static char *e (p, i)
3316      char **p;
3317      int i;
3318 {
3319   return p[i];
3320 }
3321 static char *f (char * (*g) (char **, int), char **p, ...)
3322 {
3323   char *s;
3324   va_list v;
3325   va_start (v,p);
3326   s = g (p, va_arg (v,int));
3327   va_end (v);
3328   return s;
3329 }
3330
3331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3332    function prototypes and stuff, but not '\xHH' hex character constants.
3333    These don't provoke an error unfortunately, instead are silently treated
3334    as 'x'.  The following induces an error, until -std is added to get
3335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3336    array size at least.  It's necessary to write '\x00'==0 to get something
3337    that's true only with -std.  */
3338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339
3340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3341    inside strings and character constants.  */
3342 #define FOO(x) 'x'
3343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344
3345 int test (int i, double x);
3346 struct s1 {int (*f) (int a);};
3347 struct s2 {int (*f) (double a);};
3348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3349 int argc;
3350 char **argv;
3351 int
3352 main ()
3353 {
3354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3360         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 do
3362   CC="$ac_save_CC $ac_arg"
3363   if ac_fn_c_try_compile "$LINENO"; then :
3364   ac_cv_prog_cc_c89=$ac_arg
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext
3367   test "x$ac_cv_prog_cc_c89" != "xno" && break
3368 done
3369 rm -f conftest.$ac_ext
3370 CC=$ac_save_CC
3371
3372 fi
3373 # AC_CACHE_VAL
3374 case "x$ac_cv_prog_cc_c89" in
3375   x)
3376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3377 $as_echo "none needed" >&6; } ;;
3378   xno)
3379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3380 $as_echo "unsupported" >&6; } ;;
3381   *)
3382     CC="$CC $ac_cv_prog_cc_c89"
3383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3385 esac
3386 if test "x$ac_cv_prog_cc_c89" != xno; then :
3387
3388 fi
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 DEPDIR="${am__leading_dot}deps"
3396
3397 ac_config_commands="$ac_config_commands depfiles"
3398
3399
3400 am_make=${MAKE-make}
3401 cat > confinc << 'END'
3402 am__doit:
3403         @echo this is the am__doit target
3404 .PHONY: am__doit
3405 END
3406 # If we don't find an include directive, just comment out the code.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3408 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3409 am__include="#"
3410 am__quote=
3411 _am_result=none
3412 # First try GNU make style include.
3413 echo "include confinc" > confmf
3414 # Ignore all kinds of additional output from `make'.
3415 case `$am_make -s -f confmf 2> /dev/null` in #(
3416 *the\ am__doit\ target*)
3417   am__include=include
3418   am__quote=
3419   _am_result=GNU
3420   ;;
3421 esac
3422 # Now try BSD make style include.
3423 if test "$am__include" = "#"; then
3424    echo '.include "confinc"' > confmf
3425    case `$am_make -s -f confmf 2> /dev/null` in #(
3426    *the\ am__doit\ target*)
3427      am__include=.include
3428      am__quote="\""
3429      _am_result=BSD
3430      ;;
3431    esac
3432 fi
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3436 $as_echo "$_am_result" >&6; }
3437 rm -f confinc confmf
3438
3439 # Check whether --enable-dependency-tracking was given.
3440 if test "${enable_dependency_tracking+set}" = set; then :
3441   enableval=$enable_dependency_tracking;
3442 fi
3443
3444 if test "x$enable_dependency_tracking" != xno; then
3445   am_depcomp="$ac_aux_dir/depcomp"
3446   AMDEPBACKSLASH='\'
3447 fi
3448  if test "x$enable_dependency_tracking" != xno; then
3449   AMDEP_TRUE=
3450   AMDEP_FALSE='#'
3451 else
3452   AMDEP_TRUE='#'
3453   AMDEP_FALSE=
3454 fi
3455
3456
3457
3458 depcc="$CC"   am_compiler_list=
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3461 $as_echo_n "checking dependency style of $depcc... " >&6; }
3462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3466   # We make a subdir and do the tests there.  Otherwise we can end up
3467   # making bogus files that we don't know about and never remove.  For
3468   # instance it was reported that on HP-UX the gcc test will end up
3469   # making a dummy file named `D' -- because `-MD' means `put the output
3470   # in D'.
3471   mkdir conftest.dir
3472   # Copy depcomp to subdir because otherwise we won't find it if we're
3473   # using a relative directory.
3474   cp "$am_depcomp" conftest.dir
3475   cd conftest.dir
3476   # We will build objects and dependencies in a subdirectory because
3477   # it helps to detect inapplicable dependency modes.  For instance
3478   # both Tru64's cc and ICC support -MD to output dependencies as a
3479   # side effect of compilation, but ICC will put the dependencies in
3480   # the current directory while Tru64 will put them in the object
3481   # directory.
3482   mkdir sub
3483
3484   am_cv_CC_dependencies_compiler_type=none
3485   if test "$am_compiler_list" = ""; then
3486      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487   fi
3488   am__universal=false
3489   case " $depcc " in #(
3490      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3491      esac
3492
3493   for depmode in $am_compiler_list; do
3494     # Setup a source with many dependencies, because some compilers
3495     # like to wrap large dependency lists on column 80 (with \), and
3496     # we should not choose a depcomp mode which is confused by this.
3497     #
3498     # We need to recreate these files for each test, as the compiler may
3499     # overwrite some of them when testing with obscure command lines.
3500     # This happens at least with the AIX C compiler.
3501     : > sub/conftest.c
3502     for i in 1 2 3 4 5 6; do
3503       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3504       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3505       # Solaris 8's {/usr,}/bin/sh.
3506       touch sub/conftst$i.h
3507     done
3508     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3509
3510     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3511     # mode.  It turns out that the SunPro C++ compiler does not properly
3512     # handle `-M -o', and we need to detect this.  Also, some Intel
3513     # versions had trouble with output in subdirs
3514     am__obj=sub/conftest.${OBJEXT-o}
3515     am__minus_obj="-o $am__obj"
3516     case $depmode in
3517     gcc)
3518       # This depmode causes a compiler race in universal mode.
3519       test "$am__universal" = false || continue
3520       ;;
3521     nosideeffect)
3522       # after this tag, mechanisms are not by side-effect, so they'll
3523       # only be used when explicitly requested
3524       if test "x$enable_dependency_tracking" = xyes; then
3525         continue
3526       else
3527         break
3528       fi
3529       ;;
3530     msvisualcpp | msvcmsys)
3531       # This compiler won't grok `-c -o', but also, the minuso test has
3532       # not run yet.  These depmodes are late enough in the game, and
3533       # so weak that their functioning should not be impacted.
3534       am__obj=conftest.${OBJEXT-o}
3535       am__minus_obj=
3536       ;;
3537     none) break ;;
3538     esac
3539     if depmode=$depmode \
3540        source=sub/conftest.c object=$am__obj \
3541        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3542        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3543          >/dev/null 2>conftest.err &&
3544        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3545        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3547        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548       # icc doesn't choke on unknown options, it will just issue warnings
3549       # or remarks (even with -Werror).  So we grep stderr for any message
3550       # that says an option was ignored or not supported.
3551       # When given -MP, icc 7.0 and 7.1 complain thusly:
3552       #   icc: Command line warning: ignoring option '-M'; no argument required
3553       # The diagnosis changed in icc 8.0:
3554       #   icc: Command line remark: option '-MP' not supported
3555       if (grep 'ignoring option' conftest.err ||
3556           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557         am_cv_CC_dependencies_compiler_type=$depmode
3558         break
3559       fi
3560     fi
3561   done
3562
3563   cd ..
3564   rm -rf conftest.dir
3565 else
3566   am_cv_CC_dependencies_compiler_type=none
3567 fi
3568
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3571 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3573
3574  if
3575   test "x$enable_dependency_tracking" != xno \
3576   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3577   am__fastdepCC_TRUE=
3578   am__fastdepCC_FALSE='#'
3579 else
3580   am__fastdepCC_TRUE='#'
3581   am__fastdepCC_FALSE=
3582 fi
3583
3584
3585
3586
3587 ## ----------------------- ##
3588 ## Libtool initialisation. ##
3589 ## ----------------------- ##
3590 case `pwd` in
3591   *\ * | *\     *)
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3593 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3594 esac
3595
3596
3597
3598 macro_version='2.4.2'
3599 macro_revision='1.3337'
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613 ltmain="$ac_aux_dir/ltmain.sh"
3614
3615 # Make sure we can run config.sub.
3616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3617   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3618
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3620 $as_echo_n "checking build system type... " >&6; }
3621 if ${ac_cv_build+:} false; then :
3622   $as_echo_n "(cached) " >&6
3623 else
3624   ac_build_alias=$build_alias
3625 test "x$ac_build_alias" = x &&
3626   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3627 test "x$ac_build_alias" = x &&
3628   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3630   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3631
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3634 $as_echo "$ac_cv_build" >&6; }
3635 case $ac_cv_build in
3636 *-*-*) ;;
3637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3638 esac
3639 build=$ac_cv_build
3640 ac_save_IFS=$IFS; IFS='-'
3641 set x $ac_cv_build
3642 shift
3643 build_cpu=$1
3644 build_vendor=$2
3645 shift; shift
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3648 build_os=$*
3649 IFS=$ac_save_IFS
3650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3651
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3654 $as_echo_n "checking host system type... " >&6; }
3655 if ${ac_cv_host+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test "x$host_alias" = x; then
3659   ac_cv_host=$ac_cv_build
3660 else
3661   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3662     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3663 fi
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667 $as_echo "$ac_cv_host" >&6; }
3668 case $ac_cv_host in
3669 *-*-*) ;;
3670 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3671 esac
3672 host=$ac_cv_host
3673 ac_save_IFS=$IFS; IFS='-'
3674 set x $ac_cv_host
3675 shift
3676 host_cpu=$1
3677 host_vendor=$2
3678 shift; shift
3679 # Remember, the first character of IFS is used to create $*,
3680 # except with old shells:
3681 host_os=$*
3682 IFS=$ac_save_IFS
3683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3684
3685
3686 # Backslashify metacharacters that are still active within
3687 # double-quoted strings.
3688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3689
3690 # Same as above, but do not quote variable references.
3691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3692
3693 # Sed substitution to delay expansion of an escaped shell variable in a
3694 # double_quote_subst'ed string.
3695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3696
3697 # Sed substitution to delay expansion of an escaped single quote.
3698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3699
3700 # Sed substitution to avoid accidental globbing in evaled expressions
3701 no_glob_subst='s/\*/\\\*/g'
3702
3703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3708 $as_echo_n "checking how to print strings... " >&6; }
3709 # Test print first, because it will be a builtin if present.
3710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3711    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3712   ECHO='print -r --'
3713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3714   ECHO='printf %s\n'
3715 else
3716   # Use this function as a fallback that always works.
3717   func_fallback_echo ()
3718   {
3719     eval 'cat <<_LTECHO_EOF
3720 $1
3721 _LTECHO_EOF'
3722   }
3723   ECHO='func_fallback_echo'
3724 fi
3725
3726 # func_echo_all arg...
3727 # Invoke $ECHO with all args, space-separated.
3728 func_echo_all ()
3729 {
3730     $ECHO ""
3731 }
3732
3733 case "$ECHO" in
3734   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3735 $as_echo "printf" >&6; } ;;
3736   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3737 $as_echo "print -r" >&6; } ;;
3738   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3739 $as_echo "cat" >&6; } ;;
3740 esac
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3757 if ${ac_cv_path_SED+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3761      for ac_i in 1 2 3 4 5 6 7; do
3762        ac_script="$ac_script$as_nl$ac_script"
3763      done
3764      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3765      { ac_script=; unset ac_script;}
3766      if test -z "$SED"; then
3767   ac_path_SED_found=false
3768   # Loop through the user's path and test for each of PROGNAME-LIST
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_prog in sed gsed; do
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3777       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3778 # Check for GNU ac_path_SED and select it if it is found.
3779   # Check for GNU $ac_path_SED
3780 case `"$ac_path_SED" --version 2>&1` in
3781 *GNU*)
3782   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3783 *)
3784   ac_count=0
3785   $as_echo_n 0123456789 >"conftest.in"
3786   while :
3787   do
3788     cat "conftest.in" "conftest.in" >"conftest.tmp"
3789     mv "conftest.tmp" "conftest.in"
3790     cp "conftest.in" "conftest.nl"
3791     $as_echo '' >> "conftest.nl"
3792     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794     as_fn_arith $ac_count + 1 && ac_count=$as_val
3795     if test $ac_count -gt ${ac_path_SED_max-0}; then
3796       # Best one so far, save it but keep looking for a better one
3797       ac_cv_path_SED="$ac_path_SED"
3798       ac_path_SED_max=$ac_count
3799     fi
3800     # 10*(2^10) chars as input seems more than enough
3801     test $ac_count -gt 10 && break
3802   done
3803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 esac
3805
3806       $ac_path_SED_found && break 3
3807     done
3808   done
3809   done
3810 IFS=$as_save_IFS
3811   if test -z "$ac_cv_path_SED"; then
3812     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3813   fi
3814 else
3815   ac_cv_path_SED=$SED
3816 fi
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3820 $as_echo "$ac_cv_path_SED" >&6; }
3821  SED="$ac_cv_path_SED"
3822   rm -f conftest.sed
3823
3824 test -z "$SED" && SED=sed
3825 Xsed="$SED -e 1s/^X//"
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839 if ${ac_cv_path_GREP+:} false; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   if test -z "$GREP"; then
3843   ac_path_GREP_found=false
3844   # Loop through the user's path and test for each of PROGNAME-LIST
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_prog in grep ggrep; do
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855   # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3857 *GNU*)
3858   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859 *)
3860   ac_count=0
3861   $as_echo_n 0123456789 >"conftest.in"
3862   while :
3863   do
3864     cat "conftest.in" "conftest.in" >"conftest.tmp"
3865     mv "conftest.tmp" "conftest.in"
3866     cp "conftest.in" "conftest.nl"
3867     $as_echo 'GREP' >> "conftest.nl"
3868     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870     as_fn_arith $ac_count + 1 && ac_count=$as_val
3871     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872       # Best one so far, save it but keep looking for a better one
3873       ac_cv_path_GREP="$ac_path_GREP"
3874       ac_path_GREP_max=$ac_count
3875     fi
3876     # 10*(2^10) chars as input seems more than enough
3877     test $ac_count -gt 10 && break
3878   done
3879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882       $ac_path_GREP_found && break 3
3883     done
3884   done
3885   done
3886 IFS=$as_save_IFS
3887   if test -z "$ac_cv_path_GREP"; then
3888     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889   fi
3890 else
3891   ac_cv_path_GREP=$GREP
3892 fi
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896 $as_echo "$ac_cv_path_GREP" >&6; }
3897  GREP="$ac_cv_path_GREP"
3898
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901 $as_echo_n "checking for egrep... " >&6; }
3902 if ${ac_cv_path_EGREP+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906    then ac_cv_path_EGREP="$GREP -E"
3907    else
3908      if test -z "$EGREP"; then
3909   ac_path_EGREP_found=false
3910   # Loop through the user's path and test for each of PROGNAME-LIST
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     for ac_prog in egrep; do
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921   # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3923 *GNU*)
3924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3925 *)
3926   ac_count=0
3927   $as_echo_n 0123456789 >"conftest.in"
3928   while :
3929   do
3930     cat "conftest.in" "conftest.in" >"conftest.tmp"
3931     mv "conftest.tmp" "conftest.in"
3932     cp "conftest.in" "conftest.nl"
3933     $as_echo 'EGREP' >> "conftest.nl"
3934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936     as_fn_arith $ac_count + 1 && ac_count=$as_val
3937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938       # Best one so far, save it but keep looking for a better one
3939       ac_cv_path_EGREP="$ac_path_EGREP"
3940       ac_path_EGREP_max=$ac_count
3941     fi
3942     # 10*(2^10) chars as input seems more than enough
3943     test $ac_count -gt 10 && break
3944   done
3945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 esac
3947
3948       $ac_path_EGREP_found && break 3
3949     done
3950   done
3951   done
3952 IFS=$as_save_IFS
3953   if test -z "$ac_cv_path_EGREP"; then
3954     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955   fi
3956 else
3957   ac_cv_path_EGREP=$EGREP
3958 fi
3959
3960    fi
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963 $as_echo "$ac_cv_path_EGREP" >&6; }
3964  EGREP="$ac_cv_path_EGREP"
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3968 $as_echo_n "checking for fgrep... " >&6; }
3969 if ${ac_cv_path_FGREP+:} false; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3973    then ac_cv_path_FGREP="$GREP -F"
3974    else
3975      if test -z "$FGREP"; then
3976   ac_path_FGREP_found=false
3977   # Loop through the user's path and test for each of PROGNAME-LIST
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     for ac_prog in fgrep; do
3984     for ac_exec_ext in '' $ac_executable_extensions; do
3985       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3986       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3987 # Check for GNU ac_path_FGREP and select it if it is found.
3988   # Check for GNU $ac_path_FGREP
3989 case `"$ac_path_FGREP" --version 2>&1` in
3990 *GNU*)
3991   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3992 *)
3993   ac_count=0
3994   $as_echo_n 0123456789 >"conftest.in"
3995   while :
3996   do
3997     cat "conftest.in" "conftest.in" >"conftest.tmp"
3998     mv "conftest.tmp" "conftest.in"
3999     cp "conftest.in" "conftest.nl"
4000     $as_echo 'FGREP' >> "conftest.nl"
4001     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003     as_fn_arith $ac_count + 1 && ac_count=$as_val
4004     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4005       # Best one so far, save it but keep looking for a better one
4006       ac_cv_path_FGREP="$ac_path_FGREP"
4007       ac_path_FGREP_max=$ac_count
4008     fi
4009     # 10*(2^10) chars as input seems more than enough
4010     test $ac_count -gt 10 && break
4011   done
4012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015       $ac_path_FGREP_found && break 3
4016     done
4017   done
4018   done
4019 IFS=$as_save_IFS
4020   if test -z "$ac_cv_path_FGREP"; then
4021     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022   fi
4023 else
4024   ac_cv_path_FGREP=$FGREP
4025 fi
4026
4027    fi
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4030 $as_echo "$ac_cv_path_FGREP" >&6; }
4031  FGREP="$ac_cv_path_FGREP"
4032
4033
4034 test -z "$GREP" && GREP=grep
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 # Check whether --with-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then :
4056   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4057 else
4058   with_gnu_ld=no
4059 fi
4060
4061 ac_prog=ld
4062 if test "$GCC" = yes; then
4063   # Check if gcc -print-prog-name=ld gives a path.
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4065 $as_echo_n "checking for ld used by $CC... " >&6; }
4066   case $host in
4067   *-*-mingw*)
4068     # gcc leaves a trailing carriage return which upsets mingw
4069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4070   *)
4071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072   esac
4073   case $ac_prog in
4074     # Accept absolute paths.
4075     [\\/]* | ?:[\\/]*)
4076       re_direlt='/[^/][^/]*/\.\./'
4077       # Canonicalize the pathname of ld
4078       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4079       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4080         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4081       done
4082       test -z "$LD" && LD="$ac_prog"
4083       ;;
4084   "")
4085     # If it fails, then pretend we aren't using GCC.
4086     ac_prog=ld
4087     ;;
4088   *)
4089     # If it is relative, then search for the first ld in PATH.
4090     with_gnu_ld=unknown
4091     ;;
4092   esac
4093 elif test "$with_gnu_ld" = yes; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4095 $as_echo_n "checking for GNU ld... " >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4098 $as_echo_n "checking for non-GNU ld... " >&6; }
4099 fi
4100 if ${lt_cv_path_LD+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -z "$LD"; then
4104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105   for ac_dir in $PATH; do
4106     IFS="$lt_save_ifs"
4107     test -z "$ac_dir" && ac_dir=.
4108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109       lt_cv_path_LD="$ac_dir/$ac_prog"
4110       # Check to see if the program is GNU ld.  I'd rather use --version,
4111       # but apparently some variants of GNU ld only accept -v.
4112       # Break only if it was the GNU/non-GNU ld that we prefer.
4113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114       *GNU* | *'with BFD'*)
4115         test "$with_gnu_ld" != no && break
4116         ;;
4117       *)
4118         test "$with_gnu_ld" != yes && break
4119         ;;
4120       esac
4121     fi
4122   done
4123   IFS="$lt_save_ifs"
4124 else
4125   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4126 fi
4127 fi
4128
4129 LD="$lt_cv_path_LD"
4130 if test -n "$LD"; then
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4132 $as_echo "$LD" >&6; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4140 if ${lt_cv_prog_gnu_ld+:} false; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4144 case `$LD -v 2>&1 </dev/null` in
4145 *GNU* | *'with BFD'*)
4146   lt_cv_prog_gnu_ld=yes
4147   ;;
4148 *)
4149   lt_cv_prog_gnu_ld=no
4150   ;;
4151 esac
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4155 with_gnu_ld=$lt_cv_prog_gnu_ld
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4167 if ${lt_cv_path_NM+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$NM"; then
4171   # Let the user override the test.
4172   lt_cv_path_NM="$NM"
4173 else
4174   lt_nm_to_check="${ac_tool_prefix}nm"
4175   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4176     lt_nm_to_check="$lt_nm_to_check nm"
4177   fi
4178   for lt_tmp_nm in $lt_nm_to_check; do
4179     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4181       IFS="$lt_save_ifs"
4182       test -z "$ac_dir" && ac_dir=.
4183       tmp_nm="$ac_dir/$lt_tmp_nm"
4184       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4185         # Check to see if the nm accepts a BSD-compat flag.
4186         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4187         #   nm: unknown option "B" ignored
4188         # Tru64's nm complains that /dev/null is an invalid object file
4189         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4190         */dev/null* | *'Invalid file or object type'*)
4191           lt_cv_path_NM="$tmp_nm -B"
4192           break
4193           ;;
4194         *)
4195           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4196           */dev/null*)
4197             lt_cv_path_NM="$tmp_nm -p"
4198             break
4199             ;;
4200           *)
4201             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202             continue # so that we can try to find one that supports BSD flags
4203             ;;
4204           esac
4205           ;;
4206         esac
4207       fi
4208     done
4209     IFS="$lt_save_ifs"
4210   done
4211   : ${lt_cv_path_NM=no}
4212 fi
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4215 $as_echo "$lt_cv_path_NM" >&6; }
4216 if test "$lt_cv_path_NM" != "no"; then
4217   NM="$lt_cv_path_NM"
4218 else
4219   # Didn't find any BSD compatible name lister, look for dumpbin.
4220   if test -n "$DUMPBIN"; then :
4221     # Let the user override the test.
4222   else
4223     if test -n "$ac_tool_prefix"; then
4224   for ac_prog in dumpbin "link -dump"
4225   do
4226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_DUMPBIN+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$DUMPBIN"; then
4234   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 DUMPBIN=$ac_cv_prog_DUMPBIN
4254 if test -n "$DUMPBIN"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4256 $as_echo "$DUMPBIN" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263     test -n "$DUMPBIN" && break
4264   done
4265 fi
4266 if test -z "$DUMPBIN"; then
4267   ac_ct_DUMPBIN=$DUMPBIN
4268   for ac_prog in dumpbin "link -dump"
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test -n "$ac_ct_DUMPBIN"; then
4278   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292   done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4298 if test -n "$ac_ct_DUMPBIN"; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4300 $as_echo "$ac_ct_DUMPBIN" >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307   test -n "$ac_ct_DUMPBIN" && break
4308 done
4309
4310   if test "x$ac_ct_DUMPBIN" = x; then
4311     DUMPBIN=":"
4312   else
4313     case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319     DUMPBIN=$ac_ct_DUMPBIN
4320   fi
4321 fi
4322
4323     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4324     *COFF*)
4325       DUMPBIN="$DUMPBIN -symbols"
4326       ;;
4327     *)
4328       DUMPBIN=:
4329       ;;
4330     esac
4331   fi
4332
4333   if test "$DUMPBIN" != ":"; then
4334     NM="$DUMPBIN"
4335   fi
4336 fi
4337 test -z "$NM" && NM=nm
4338
4339
4340
4341
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4345 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4346 if ${lt_cv_nm_interface+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   lt_cv_nm_interface="BSD nm"
4350   echo "int some_variable = 0;" > conftest.$ac_ext
4351   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4352   (eval "$ac_compile" 2>conftest.err)
4353   cat conftest.err >&5
4354   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4355   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4356   cat conftest.err >&5
4357   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4358   cat conftest.out >&5
4359   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4360     lt_cv_nm_interface="MS dumpbin"
4361   fi
4362   rm -f conftest*
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4365 $as_echo "$lt_cv_nm_interface" >&6; }
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4368 $as_echo_n "checking whether ln -s works... " >&6; }
4369 LN_S=$as_ln_s
4370 if test "$LN_S" = "ln -s"; then
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4375 $as_echo "no, using $LN_S" >&6; }
4376 fi
4377
4378 # find the maximum length of command line arguments
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4380 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4381 if ${lt_cv_sys_max_cmd_len+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384     i=0
4385   teststring="ABCD"
4386
4387   case $build_os in
4388   msdosdjgpp*)
4389     # On DJGPP, this test can blow up pretty badly due to problems in libc
4390     # (any single argument exceeding 2000 bytes causes a buffer overrun
4391     # during glob expansion).  Even if it were fixed, the result of this
4392     # check would be larger than it should be.
4393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4394     ;;
4395
4396   gnu*)
4397     # Under GNU Hurd, this test is not required because there is
4398     # no limit to the length of command line arguments.
4399     # Libtool will interpret -1 as no limit whatsoever
4400     lt_cv_sys_max_cmd_len=-1;
4401     ;;
4402
4403   cygwin* | mingw* | cegcc*)
4404     # On Win9x/ME, this test blows up -- it succeeds, but takes
4405     # about 5 minutes as the teststring grows exponentially.
4406     # Worse, since 9x/ME are not pre-emptively multitasking,
4407     # you end up with a "frozen" computer, even though with patience
4408     # the test eventually succeeds (with a max line length of 256k).
4409     # Instead, let's just punt: use the minimum linelength reported by
4410     # all of the supported platforms: 8192 (on NT/2K/XP).
4411     lt_cv_sys_max_cmd_len=8192;
4412     ;;
4413
4414   mint*)
4415     # On MiNT this can take a long time and run out of memory.
4416     lt_cv_sys_max_cmd_len=8192;
4417     ;;
4418
4419   amigaos*)
4420     # On AmigaOS with pdksh, this test takes hours, literally.
4421     # So we just punt and use a minimum line length of 8192.
4422     lt_cv_sys_max_cmd_len=8192;
4423     ;;
4424
4425   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4426     # This has been around since 386BSD, at least.  Likely further.
4427     if test -x /sbin/sysctl; then
4428       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4429     elif test -x /usr/sbin/sysctl; then
4430       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4431     else
4432       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4433     fi
4434     # And add a safety zone
4435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4437     ;;
4438
4439   interix*)
4440     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4441     lt_cv_sys_max_cmd_len=196608
4442     ;;
4443
4444   os2*)
4445     # The test takes a long time on OS/2.
4446     lt_cv_sys_max_cmd_len=8192
4447     ;;
4448
4449   osf*)
4450     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4451     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4452     # nice to cause kernel panics so lets avoid the loop below.
4453     # First set a reasonable default.
4454     lt_cv_sys_max_cmd_len=16384
4455     #
4456     if test -x /sbin/sysconfig; then
4457       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4458         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4459       esac
4460     fi
4461     ;;
4462   sco3.2v5*)
4463     lt_cv_sys_max_cmd_len=102400
4464     ;;
4465   sysv5* | sco5v6* | sysv4.2uw2*)
4466     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4467     if test -n "$kargmax"; then
4468       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4469     else
4470       lt_cv_sys_max_cmd_len=32768
4471     fi
4472     ;;
4473   *)
4474     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4475     if test -n "$lt_cv_sys_max_cmd_len"; then
4476       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4478     else
4479       # Make teststring a little bigger before we do anything with it.
4480       # a 1K string should be a reasonable start.
4481       for i in 1 2 3 4 5 6 7 8 ; do
4482         teststring=$teststring$teststring
4483       done
4484       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4485       # If test is not a shell built-in, we'll probably end up computing a
4486       # maximum length that is only half of the actual maximum length, but
4487       # we can't tell.
4488       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4489                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4490               test $i != 17 # 1/2 MB should be enough
4491       do
4492         i=`expr $i + 1`
4493         teststring=$teststring$teststring
4494       done
4495       # Only check the string length outside the loop.
4496       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4497       teststring=
4498       # Add a significant safety factor because C++ compilers can tack on
4499       # massive amounts of additional arguments before passing them to the
4500       # linker.  It appears as though 1/2 is a usable value.
4501       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4502     fi
4503     ;;
4504   esac
4505
4506 fi
4507
4508 if test -n $lt_cv_sys_max_cmd_len ; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4510 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4513 $as_echo "none" >&6; }
4514 fi
4515 max_cmd_len=$lt_cv_sys_max_cmd_len
4516
4517
4518
4519
4520
4521
4522 : ${CP="cp -f"}
4523 : ${MV="mv -f"}
4524 : ${RM="rm -f"}
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4527 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4528 # Try some XSI features
4529 xsi_shell=no
4530 ( _lt_dummy="a/b/c"
4531   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4532       = c,a/b,b/c, \
4533     && eval 'test $(( 1 + 1 )) -eq 2 \
4534     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4535   && xsi_shell=yes
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4537 $as_echo "$xsi_shell" >&6; }
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4541 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4542 lt_shell_append=no
4543 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4544     >/dev/null 2>&1 \
4545   && lt_shell_append=yes
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4547 $as_echo "$lt_shell_append" >&6; }
4548
4549
4550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4551   lt_unset=unset
4552 else
4553   lt_unset=false
4554 fi
4555
4556
4557
4558
4559
4560 # test EBCDIC or ASCII
4561 case `echo X|tr X '\101'` in
4562  A) # ASCII based system
4563     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4564   lt_SP2NL='tr \040 \012'
4565   lt_NL2SP='tr \015\012 \040\040'
4566   ;;
4567  *) # EBCDIC based system
4568   lt_SP2NL='tr \100 \n'
4569   lt_NL2SP='tr \r\n \100\100'
4570   ;;
4571 esac
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4582 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4583 if ${lt_cv_to_host_file_cmd+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   case $host in
4587   *-*-mingw* )
4588     case $build in
4589       *-*-mingw* ) # actually msys
4590         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4591         ;;
4592       *-*-cygwin* )
4593         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4594         ;;
4595       * ) # otherwise, assume *nix
4596         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4597         ;;
4598     esac
4599     ;;
4600   *-*-cygwin* )
4601     case $build in
4602       *-*-mingw* ) # actually msys
4603         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4604         ;;
4605       *-*-cygwin* )
4606         lt_cv_to_host_file_cmd=func_convert_file_noop
4607         ;;
4608       * ) # otherwise, assume *nix
4609         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4610         ;;
4611     esac
4612     ;;
4613   * ) # unhandled hosts (and "normal" native builds)
4614     lt_cv_to_host_file_cmd=func_convert_file_noop
4615     ;;
4616 esac
4617
4618 fi
4619
4620 to_host_file_cmd=$lt_cv_to_host_file_cmd
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4622 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4629 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4630 if ${lt_cv_to_tool_file_cmd+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   #assume ordinary cross tools, or native build.
4634 lt_cv_to_tool_file_cmd=func_convert_file_noop
4635 case $host in
4636   *-*-mingw* )
4637     case $build in
4638       *-*-mingw* ) # actually msys
4639         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4640         ;;
4641     esac
4642     ;;
4643 esac
4644
4645 fi
4646
4647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4649 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4650
4651
4652
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4657 if ${lt_cv_ld_reload_flag+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   lt_cv_ld_reload_flag='-r'
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4664 reload_flag=$lt_cv_ld_reload_flag
4665 case $reload_flag in
4666 "" | " "*) ;;
4667 *) reload_flag=" $reload_flag" ;;
4668 esac
4669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4670 case $host_os in
4671   cygwin* | mingw* | pw32* | cegcc*)
4672     if test "$GCC" != yes; then
4673       reload_cmds=false
4674     fi
4675     ;;
4676   darwin*)
4677     if test "$GCC" = yes; then
4678       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4679     else
4680       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4681     fi
4682     ;;
4683 esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 if test -n "$ac_tool_prefix"; then
4694   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_prog_OBJDUMP+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   if test -n "$OBJDUMP"; then
4702   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709     for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716   done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 OBJDUMP=$ac_cv_prog_OBJDUMP
4722 if test -n "$OBJDUMP"; then
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4724 $as_echo "$OBJDUMP" >&6; }
4725 else
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$ac_cv_prog_OBJDUMP"; then
4733   ac_ct_OBJDUMP=$OBJDUMP
4734   # Extract the first word of "objdump", so it can be a program name with args.
4735 set dummy objdump; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$ac_ct_OBJDUMP"; then
4742   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4762 if test -n "$ac_ct_OBJDUMP"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4764 $as_echo "$ac_ct_OBJDUMP" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770   if test "x$ac_ct_OBJDUMP" = x; then
4771     OBJDUMP="false"
4772   else
4773     case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779     OBJDUMP=$ac_ct_OBJDUMP
4780   fi
4781 else
4782   OBJDUMP="$ac_cv_prog_OBJDUMP"
4783 fi
4784
4785 test -z "$OBJDUMP" && OBJDUMP=objdump
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4796 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4797 if ${lt_cv_deplibs_check_method+:} false; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   lt_cv_file_magic_cmd='$MAGIC_CMD'
4801 lt_cv_file_magic_test_file=
4802 lt_cv_deplibs_check_method='unknown'
4803 # Need to set the preceding variable on all platforms that support
4804 # interlibrary dependencies.
4805 # 'none' -- dependencies not supported.
4806 # `unknown' -- same as none, but documents that we really don't know.
4807 # 'pass_all' -- all dependencies passed with no checks.
4808 # 'test_compile' -- check by making test program.
4809 # 'file_magic [[regex]]' -- check by looking for files in library path
4810 # which responds to the $file_magic_cmd with a given extended regex.
4811 # If you have `file' or equivalent on your system and you're not sure
4812 # whether `pass_all' will *always* work, you probably want this one.
4813
4814 case $host_os in
4815 aix[4-9]*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 beos*)
4820   lt_cv_deplibs_check_method=pass_all
4821   ;;
4822
4823 bsdi[45]*)
4824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4825   lt_cv_file_magic_cmd='/usr/bin/file -L'
4826   lt_cv_file_magic_test_file=/shlib/libc.so
4827   ;;
4828
4829 cygwin*)
4830   # func_win32_libid is a shell function defined in ltmain.sh
4831   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4832   lt_cv_file_magic_cmd='func_win32_libid'
4833   ;;
4834
4835 mingw* | pw32*)
4836   # Base MSYS/MinGW do not provide the 'file' command needed by
4837   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4838   # unless we find 'file', for example because we are cross-compiling.
4839   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4840   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4841     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842     lt_cv_file_magic_cmd='func_win32_libid'
4843   else
4844     # Keep this pattern in sync with the one in func_win32_libid.
4845     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4846     lt_cv_file_magic_cmd='$OBJDUMP -f'
4847   fi
4848   ;;
4849
4850 cegcc*)
4851   # use the weaker test based on 'objdump'. See mingw*.
4852   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4853   lt_cv_file_magic_cmd='$OBJDUMP -f'
4854   ;;
4855
4856 darwin* | rhapsody*)
4857   lt_cv_deplibs_check_method=pass_all
4858   ;;
4859
4860 freebsd* | dragonfly*)
4861   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4862     case $host_cpu in
4863     i*86 )
4864       # Not sure whether the presence of OpenBSD here was a mistake.
4865       # Let's accept both of them until this is cleared up.
4866       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4867       lt_cv_file_magic_cmd=/usr/bin/file
4868       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4869       ;;
4870     esac
4871   else
4872     lt_cv_deplibs_check_method=pass_all
4873   fi
4874   ;;
4875
4876 gnu*)
4877   lt_cv_deplibs_check_method=pass_all
4878   ;;
4879
4880 haiku*)
4881   lt_cv_deplibs_check_method=pass_all
4882   ;;
4883
4884 hpux10.20* | hpux11*)
4885   lt_cv_file_magic_cmd=/usr/bin/file
4886   case $host_cpu in
4887   ia64*)
4888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4889     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4890     ;;
4891   hppa*64*)
4892     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]'
4893     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4894     ;;
4895   *)
4896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4897     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4898     ;;
4899   esac
4900   ;;
4901
4902 interix[3-9]*)
4903   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4904   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4905   ;;
4906
4907 irix5* | irix6* | nonstopux*)
4908   case $LD in
4909   *-32|*"-32 ") libmagic=32-bit;;
4910   *-n32|*"-n32 ") libmagic=N32;;
4911   *-64|*"-64 ") libmagic=64-bit;;
4912   *) libmagic=never-match;;
4913   esac
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 # This must be glibc/ELF.
4918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 netbsd*)
4923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4925   else
4926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4927   fi
4928   ;;
4929
4930 newos6*)
4931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4932   lt_cv_file_magic_cmd=/usr/bin/file
4933   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4934   ;;
4935
4936 *nto* | *qnx*)
4937   lt_cv_deplibs_check_method=pass_all
4938   ;;
4939
4940 openbsd*)
4941   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4943   else
4944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4945   fi
4946   ;;
4947
4948 osf3* | osf4* | osf5*)
4949   lt_cv_deplibs_check_method=pass_all
4950   ;;
4951
4952 rdos*)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 solaris*)
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4961   lt_cv_deplibs_check_method=pass_all
4962   ;;
4963
4964 sysv4 | sysv4.3*)
4965   case $host_vendor in
4966   motorola)
4967     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]'
4968     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4969     ;;
4970   ncr)
4971     lt_cv_deplibs_check_method=pass_all
4972     ;;
4973   sequent)
4974     lt_cv_file_magic_cmd='/bin/file'
4975     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4976     ;;
4977   sni)
4978     lt_cv_file_magic_cmd='/bin/file'
4979     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4980     lt_cv_file_magic_test_file=/lib/libc.so
4981     ;;
4982   siemens)
4983     lt_cv_deplibs_check_method=pass_all
4984     ;;
4985   pc)
4986     lt_cv_deplibs_check_method=pass_all
4987     ;;
4988   esac
4989   ;;
4990
4991 tpf*)
4992   lt_cv_deplibs_check_method=pass_all
4993   ;;
4994 esac
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4999
5000 file_magic_glob=
5001 want_nocaseglob=no
5002 if test "$build" = "$host"; then
5003   case $host_os in
5004   mingw* | pw32*)
5005     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5006       want_nocaseglob=yes
5007     else
5008       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5009     fi
5010     ;;
5011   esac
5012 fi
5013
5014 file_magic_cmd=$lt_cv_file_magic_cmd
5015 deplibs_check_method=$lt_cv_deplibs_check_method
5016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 if test -n "$ac_tool_prefix"; then
5040   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_DLLTOOL+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$DLLTOOL"; then
5048   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 DLLTOOL=$ac_cv_prog_DLLTOOL
5068 if test -n "$DLLTOOL"; then
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5070 $as_echo "$DLLTOOL" >&6; }
5071 else
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_DLLTOOL"; then
5079   ac_ct_DLLTOOL=$DLLTOOL
5080   # Extract the first word of "dlltool", so it can be a program name with args.
5081 set dummy dlltool; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -n "$ac_ct_DLLTOOL"; then
5088   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5108 if test -n "$ac_ct_DLLTOOL"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5110 $as_echo "$ac_ct_DLLTOOL" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116   if test "x$ac_ct_DLLTOOL" = x; then
5117     DLLTOOL="false"
5118   else
5119     case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125     DLLTOOL=$ac_ct_DLLTOOL
5126   fi
5127 else
5128   DLLTOOL="$ac_cv_prog_DLLTOOL"
5129 fi
5130
5131 test -z "$DLLTOOL" && DLLTOOL=dlltool
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   lt_cv_sharedlib_from_linklib_cmd='unknown'
5148
5149 case $host_os in
5150 cygwin* | mingw* | pw32* | cegcc*)
5151   # two different shell functions defined in ltmain.sh
5152   # decide which to use based on capabilities of $DLLTOOL
5153   case `$DLLTOOL --help 2>&1` in
5154   *--identify-strict*)
5155     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5156     ;;
5157   *)
5158     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5159     ;;
5160   esac
5161   ;;
5162 *)
5163   # fallback: assume linklib IS sharedlib
5164   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5165   ;;
5166 esac
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5173
5174
5175
5176
5177
5178
5179
5180
5181 if test -n "$ac_tool_prefix"; then
5182   for ac_prog in ar
5183   do
5184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_AR+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   if test -n "$AR"; then
5192   ac_cv_prog_AR="$AR" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_exec_ext in '' $ac_executable_extensions; do
5200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206   done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 AR=$ac_cv_prog_AR
5212 if test -n "$AR"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5214 $as_echo "$AR" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221     test -n "$AR" && break
5222   done
5223 fi
5224 if test -z "$AR"; then
5225   ac_ct_AR=$AR
5226   for ac_prog in ar
5227 do
5228   # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if test -n "$ac_ct_AR"; then
5236   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_prog_ac_ct_AR="$ac_prog"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5256 if test -n "$ac_ct_AR"; then
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5258 $as_echo "$ac_ct_AR" >&6; }
5259 else
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264
5265   test -n "$ac_ct_AR" && break
5266 done
5267
5268   if test "x$ac_ct_AR" = x; then
5269     AR="false"
5270   else
5271     case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277     AR=$ac_ct_AR
5278   fi
5279 fi
5280
5281 : ${AR=ar}
5282 : ${AR_FLAGS=cru}
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5295 $as_echo_n "checking for archiver @FILE support... " >&6; }
5296 if ${lt_cv_ar_at_file+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   lt_cv_ar_at_file=no
5300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302
5303 int
5304 main ()
5305 {
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312   echo conftest.$ac_objext > conftest.lst
5313       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5314       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5315   (eval $lt_ar_try) 2>&5
5316   ac_status=$?
5317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318   test $ac_status = 0; }
5319       if test "$ac_status" -eq 0; then
5320         # Ensure the archiver fails upon bogus file names.
5321         rm -f conftest.$ac_objext libconftest.a
5322         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5323   (eval $lt_ar_try) 2>&5
5324   ac_status=$?
5325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326   test $ac_status = 0; }
5327         if test "$ac_status" -ne 0; then
5328           lt_cv_ar_at_file=@
5329         fi
5330       fi
5331       rm -f conftest.* libconftest.a
5332
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5338 $as_echo "$lt_cv_ar_at_file" >&6; }
5339
5340 if test "x$lt_cv_ar_at_file" = xno; then
5341   archiver_list_spec=
5342 else
5343   archiver_list_spec=$lt_cv_ar_at_file
5344 fi
5345
5346
5347
5348
5349
5350
5351
5352 if test -n "$ac_tool_prefix"; then
5353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}strip; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_STRIP+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$STRIP"; then
5361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 STRIP=$ac_cv_prog_STRIP
5381 if test -n "$STRIP"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5383 $as_echo "$STRIP" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 fi
5391 if test -z "$ac_cv_prog_STRIP"; then
5392   ac_ct_STRIP=$STRIP
5393   # Extract the first word of "strip", so it can be a program name with args.
5394 set dummy strip; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$ac_ct_STRIP"; then
5401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410     ac_cv_prog_ac_ct_STRIP="strip"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5421 if test -n "$ac_ct_STRIP"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5423 $as_echo "$ac_ct_STRIP" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429   if test "x$ac_ct_STRIP" = x; then
5430     STRIP=":"
5431   else
5432     case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438     STRIP=$ac_ct_STRIP
5439   fi
5440 else
5441   STRIP="$ac_cv_prog_STRIP"
5442 fi
5443
5444 test -z "$STRIP" && STRIP=:
5445
5446
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_RANLIB+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$RANLIB"; then
5460   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 RANLIB=$ac_cv_prog_RANLIB
5480 if test -n "$RANLIB"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5482 $as_echo "$RANLIB" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 fi
5490 if test -z "$ac_cv_prog_RANLIB"; then
5491   ac_ct_RANLIB=$RANLIB
5492   # Extract the first word of "ranlib", so it can be a program name with args.
5493 set dummy ranlib; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$ac_ct_RANLIB"; then
5500   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509     ac_cv_prog_ac_ct_RANLIB="ranlib"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520 if test -n "$ac_ct_RANLIB"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5522 $as_echo "$ac_ct_RANLIB" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528   if test "x$ac_ct_RANLIB" = x; then
5529     RANLIB=":"
5530   else
5531     case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5536 esac
5537     RANLIB=$ac_ct_RANLIB
5538   fi
5539 else
5540   RANLIB="$ac_cv_prog_RANLIB"
5541 fi
5542
5543 test -z "$RANLIB" && RANLIB=:
5544
5545
5546
5547
5548
5549
5550 # Determine commands to create old-style static archives.
5551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5552 old_postinstall_cmds='chmod 644 $oldlib'
5553 old_postuninstall_cmds=
5554
5555 if test -n "$RANLIB"; then
5556   case $host_os in
5557   openbsd*)
5558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5559     ;;
5560   *)
5561     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5562     ;;
5563   esac
5564   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5565 fi
5566
5567 case $host_os in
5568   darwin*)
5569     lock_old_archive_extraction=yes ;;
5570   *)
5571     lock_old_archive_extraction=no ;;
5572 esac
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
5611
5612 # If no C compiler was specified, use CC.
5613 LTCC=${LTCC-"$CC"}
5614
5615 # If no C compiler flags were specified, use CFLAGS.
5616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5617
5618 # Allow CC to be a program name with arguments.
5619 compiler=$CC
5620
5621
5622 # Check for command to grab the raw symbol name followed by C symbol from nm.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5625 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628
5629 # These are sane defaults that work on at least a few old systems.
5630 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5631
5632 # Character class describing NM global symbol codes.
5633 symcode='[BCDEGRST]'
5634
5635 # Regexp to match symbols that can be accessed directly from C.
5636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5637
5638 # Define system-specific variables.
5639 case $host_os in
5640 aix*)
5641   symcode='[BCDT]'
5642   ;;
5643 cygwin* | mingw* | pw32* | cegcc*)
5644   symcode='[ABCDGISTW]'
5645   ;;
5646 hpux*)
5647   if test "$host_cpu" = ia64; then
5648     symcode='[ABCDEGRST]'
5649   fi
5650   ;;
5651 irix* | nonstopux*)
5652   symcode='[BCDEGRST]'
5653   ;;
5654 osf*)
5655   symcode='[BCDEGQRST]'
5656   ;;
5657 solaris*)
5658   symcode='[BDRT]'
5659   ;;
5660 sco3.2v5*)
5661   symcode='[DT]'
5662   ;;
5663 sysv4.2uw2*)
5664   symcode='[DT]'
5665   ;;
5666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5667   symcode='[ABDT]'
5668   ;;
5669 sysv4)
5670   symcode='[DFNSTU]'
5671   ;;
5672 esac
5673
5674 # If we're using GNU nm, then use its standard symbol codes.
5675 case `$NM -V 2>&1` in
5676 *GNU* | *'with BFD'*)
5677   symcode='[ABCDGIRSTW]' ;;
5678 esac
5679
5680 # Transform an extracted symbol line into a proper C declaration.
5681 # Some systems (esp. on ia64) link data and code symbols differently,
5682 # so use this general approach.
5683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5684
5685 # Transform an extracted symbol line into symbol name and symbol address
5686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5687 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'"
5688
5689 # Handle CRLF in mingw tool chain
5690 opt_cr=
5691 case $build_os in
5692 mingw*)
5693   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5694   ;;
5695 esac
5696
5697 # Try without a prefix underscore, then with it.
5698 for ac_symprfx in "" "_"; do
5699
5700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5701   symxfrm="\\1 $ac_symprfx\\2 \\2"
5702
5703   # Write the raw and C identifiers.
5704   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5705     # Fake it for dumpbin and say T for any non-static function
5706     # and D for any global variable.
5707     # Also find C++ and __fastcall symbols from MSVC++,
5708     # which start with @ or ?.
5709     lt_cv_sys_global_symbol_pipe="$AWK '"\
5710 "     {last_section=section; section=\$ 3};"\
5711 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5712 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5713 "     \$ 0!~/External *\|/{next};"\
5714 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5715 "     {if(hide[section]) next};"\
5716 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5717 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5718 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5719 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5720 "     ' prfx=^$ac_symprfx"
5721   else
5722     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5723   fi
5724   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5725
5726   # Check to see that the pipe works correctly.
5727   pipe_works=no
5728
5729   rm -f conftest*
5730   cat > conftest.$ac_ext <<_LT_EOF
5731 #ifdef __cplusplus
5732 extern "C" {
5733 #endif
5734 char nm_test_var;
5735 void nm_test_func(void);
5736 void nm_test_func(void){}
5737 #ifdef __cplusplus
5738 }
5739 #endif
5740 int main(){nm_test_var='a';nm_test_func();return(0);}
5741 _LT_EOF
5742
5743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747   test $ac_status = 0; }; then
5748     # Now try to grab the symbols.
5749     nlist=conftest.nm
5750     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5751   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5752   ac_status=$?
5753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754   test $ac_status = 0; } && test -s "$nlist"; then
5755       # Try sorting and uniquifying the output.
5756       if sort "$nlist" | uniq > "$nlist"T; then
5757         mv -f "$nlist"T "$nlist"
5758       else
5759         rm -f "$nlist"T
5760       fi
5761
5762       # Make sure that we snagged all the symbols we need.
5763       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5764         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5765           cat <<_LT_EOF > conftest.$ac_ext
5766 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5767 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5768 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5769    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5770 # define LT_DLSYM_CONST
5771 #elif defined(__osf__)
5772 /* This system does not cope well with relocations in const data.  */
5773 # define LT_DLSYM_CONST
5774 #else
5775 # define LT_DLSYM_CONST const
5776 #endif
5777
5778 #ifdef __cplusplus
5779 extern "C" {
5780 #endif
5781
5782 _LT_EOF
5783           # Now generate the symbol file.
5784           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5785
5786           cat <<_LT_EOF >> conftest.$ac_ext
5787
5788 /* The mapping between symbol names and symbols.  */
5789 LT_DLSYM_CONST struct {
5790   const char *name;
5791   void       *address;
5792 }
5793 lt__PROGRAM__LTX_preloaded_symbols[] =
5794 {
5795   { "@PROGRAM@", (void *) 0 },
5796 _LT_EOF
5797           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5798           cat <<\_LT_EOF >> conftest.$ac_ext
5799   {0, (void *) 0}
5800 };
5801
5802 /* This works around a problem in FreeBSD linker */
5803 #ifdef FREEBSD_WORKAROUND
5804 static const void *lt_preloaded_setup() {
5805   return lt__PROGRAM__LTX_preloaded_symbols;
5806 }
5807 #endif
5808
5809 #ifdef __cplusplus
5810 }
5811 #endif
5812 _LT_EOF
5813           # Now try linking the two files.
5814           mv conftest.$ac_objext conftstm.$ac_objext
5815           lt_globsym_save_LIBS=$LIBS
5816           lt_globsym_save_CFLAGS=$CFLAGS
5817           LIBS="conftstm.$ac_objext"
5818           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5819           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5820   (eval $ac_link) 2>&5
5821   ac_status=$?
5822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5824             pipe_works=yes
5825           fi
5826           LIBS=$lt_globsym_save_LIBS
5827           CFLAGS=$lt_globsym_save_CFLAGS
5828         else
5829           echo "cannot find nm_test_func in $nlist" >&5
5830         fi
5831       else
5832         echo "cannot find nm_test_var in $nlist" >&5
5833       fi
5834     else
5835       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836     fi
5837   else
5838     echo "$progname: failed program was:" >&5
5839     cat conftest.$ac_ext >&5
5840   fi
5841   rm -rf conftest* conftst*
5842
5843   # Do not use the global_symbol_pipe unless it works.
5844   if test "$pipe_works" = yes; then
5845     break
5846   else
5847     lt_cv_sys_global_symbol_pipe=
5848   fi
5849 done
5850
5851 fi
5852
5853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5854   lt_cv_sys_global_symbol_to_cdecl=
5855 fi
5856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5858 $as_echo "failed" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5861 $as_echo "ok" >&6; }
5862 fi
5863
5864 # Response file support.
5865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5866   nm_file_list_spec='@'
5867 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5868   nm_file_list_spec='@'
5869 fi
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
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5898 $as_echo_n "checking for sysroot... " >&6; }
5899
5900 # Check whether --with-sysroot was given.
5901 if test "${with_sysroot+set}" = set; then :
5902   withval=$with_sysroot;
5903 else
5904   with_sysroot=no
5905 fi
5906
5907
5908 lt_sysroot=
5909 case ${with_sysroot} in #(
5910  yes)
5911    if test "$GCC" = yes; then
5912      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5913    fi
5914    ;; #(
5915  /*)
5916    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5917    ;; #(
5918  no|'')
5919    ;; #(
5920  *)
5921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5922 $as_echo "${with_sysroot}" >&6; }
5923    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5924    ;;
5925 esac
5926
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5928 $as_echo "${lt_sysroot:-no}" >&6; }
5929
5930
5931
5932
5933
5934 # Check whether --enable-libtool-lock was given.
5935 if test "${enable_libtool_lock+set}" = set; then :
5936   enableval=$enable_libtool_lock;
5937 fi
5938
5939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5940
5941 # Some flags need to be propagated to the compiler or linker for good
5942 # libtool support.
5943 case $host in
5944 ia64-*-hpux*)
5945   # Find out which ABI we are using.
5946   echo 'int i;' > conftest.$ac_ext
5947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5948   (eval $ac_compile) 2>&5
5949   ac_status=$?
5950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951   test $ac_status = 0; }; then
5952     case `/usr/bin/file conftest.$ac_objext` in
5953       *ELF-32*)
5954         HPUX_IA64_MODE="32"
5955         ;;
5956       *ELF-64*)
5957         HPUX_IA64_MODE="64"
5958         ;;
5959     esac
5960   fi
5961   rm -rf conftest*
5962   ;;
5963 *-*-irix6*)
5964   # Find out which ABI we are using.
5965   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5966   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5967   (eval $ac_compile) 2>&5
5968   ac_status=$?
5969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970   test $ac_status = 0; }; then
5971     if test "$lt_cv_prog_gnu_ld" = yes; then
5972       case `/usr/bin/file conftest.$ac_objext` in
5973         *32-bit*)
5974           LD="${LD-ld} -melf32bsmip"
5975           ;;
5976         *N32*)
5977           LD="${LD-ld} -melf32bmipn32"
5978           ;;
5979         *64-bit*)
5980           LD="${LD-ld} -melf64bmip"
5981         ;;
5982       esac
5983     else
5984       case `/usr/bin/file conftest.$ac_objext` in
5985         *32-bit*)
5986           LD="${LD-ld} -32"
5987           ;;
5988         *N32*)
5989           LD="${LD-ld} -n32"
5990           ;;
5991         *64-bit*)
5992           LD="${LD-ld} -64"
5993           ;;
5994       esac
5995     fi
5996   fi
5997   rm -rf conftest*
5998   ;;
5999
6000 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6001 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6002   # Find out which ABI we are using.
6003   echo 'int i;' > conftest.$ac_ext
6004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005   (eval $ac_compile) 2>&5
6006   ac_status=$?
6007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008   test $ac_status = 0; }; then
6009     case `/usr/bin/file conftest.o` in
6010       *32-bit*)
6011         case $host in
6012           x86_64-*kfreebsd*-gnu)
6013             LD="${LD-ld} -m elf_i386_fbsd"
6014             ;;
6015           x86_64-*linux*)
6016             LD="${LD-ld} -m elf_i386"
6017             ;;
6018           ppc64-*linux*|powerpc64-*linux*)
6019             LD="${LD-ld} -m elf32ppclinux"
6020             ;;
6021           s390x-*linux*)
6022             LD="${LD-ld} -m elf_s390"
6023             ;;
6024           sparc64-*linux*)
6025             LD="${LD-ld} -m elf32_sparc"
6026             ;;
6027         esac
6028         ;;
6029       *64-bit*)
6030         case $host in
6031           x86_64-*kfreebsd*-gnu)
6032             LD="${LD-ld} -m elf_x86_64_fbsd"
6033             ;;
6034           x86_64-*linux*)
6035             LD="${LD-ld} -m elf_x86_64"
6036             ;;
6037           ppc*-*linux*|powerpc*-*linux*)
6038             LD="${LD-ld} -m elf64ppc"
6039             ;;
6040           s390*-*linux*|s390*-*tpf*)
6041             LD="${LD-ld} -m elf64_s390"
6042             ;;
6043           sparc*-*linux*)
6044             LD="${LD-ld} -m elf64_sparc"
6045             ;;
6046         esac
6047         ;;
6048     esac
6049   fi
6050   rm -rf conftest*
6051   ;;
6052
6053 *-*-sco3.2v5*)
6054   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6055   SAVE_CFLAGS="$CFLAGS"
6056   CFLAGS="$CFLAGS -belf"
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6059 if ${lt_cv_cc_needs_belf+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h.  */
6070
6071 int
6072 main ()
6073 {
6074
6075   ;
6076   return 0;
6077 }
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080   lt_cv_cc_needs_belf=yes
6081 else
6082   lt_cv_cc_needs_belf=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext \
6085     conftest$ac_exeext conftest.$ac_ext
6086      ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6095   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6096     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6097     CFLAGS="$SAVE_CFLAGS"
6098   fi
6099   ;;
6100 *-*solaris*)
6101   # Find out which ABI we are using.
6102   echo 'int i;' > conftest.$ac_ext
6103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104   (eval $ac_compile) 2>&5
6105   ac_status=$?
6106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107   test $ac_status = 0; }; then
6108     case `/usr/bin/file conftest.o` in
6109     *64-bit*)
6110       case $lt_cv_prog_gnu_ld in
6111       yes*)
6112         case $host in
6113         i?86-*-solaris*)
6114           LD="${LD-ld} -m elf_x86_64"
6115           ;;
6116         sparc*-*-solaris*)
6117           LD="${LD-ld} -m elf64_sparc"
6118           ;;
6119         esac
6120         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6121         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6122           LD="${LD-ld}_sol2"
6123         fi
6124         ;;
6125       *)
6126         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6127           LD="${LD-ld} -64"
6128         fi
6129         ;;
6130       esac
6131       ;;
6132     esac
6133   fi
6134   rm -rf conftest*
6135   ;;
6136 esac
6137
6138 need_locks="$enable_libtool_lock"
6139
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}mt; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$MANIFEST_TOOL"; then
6149   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6169 if test -n "$MANIFEST_TOOL"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6171 $as_echo "$MANIFEST_TOOL" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6180   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6181   # Extract the first word of "mt", so it can be a program name with args.
6182 set dummy mt; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$ac_ct_MANIFEST_TOOL"; then
6189   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6209 if test -n "$ac_ct_MANIFEST_TOOL"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6218     MANIFEST_TOOL=":"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6227   fi
6228 else
6229   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6230 fi
6231
6232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6235 if ${lt_cv_path_mainfest_tool+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   lt_cv_path_mainfest_tool=no
6239   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6240   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6241   cat conftest.err >&5
6242   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6243     lt_cv_path_mainfest_tool=yes
6244   fi
6245   rm -f conftest*
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6249 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6250   MANIFEST_TOOL=:
6251 fi
6252
6253
6254
6255
6256
6257
6258   case $host_os in
6259     rhapsody* | darwin*)
6260     if test -n "$ac_tool_prefix"; then
6261   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -n "$DSYMUTIL"; then
6269   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_exec_ext in '' $ac_executable_extensions; do
6277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283   done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6289 if test -n "$DSYMUTIL"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6291 $as_echo "$DSYMUTIL" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297
6298 fi
6299 if test -z "$ac_cv_prog_DSYMUTIL"; then
6300   ac_ct_DSYMUTIL=$DSYMUTIL
6301   # Extract the first word of "dsymutil", so it can be a program name with args.
6302 set dummy dsymutil; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$ac_ct_DSYMUTIL"; then
6309   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6329 if test -n "$ac_ct_DSYMUTIL"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337   if test "x$ac_ct_DSYMUTIL" = x; then
6338     DSYMUTIL=":"
6339   else
6340     case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346     DSYMUTIL=$ac_ct_DSYMUTIL
6347   fi
6348 else
6349   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6350 fi
6351
6352     if test -n "$ac_tool_prefix"; then
6353   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_NMEDIT+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$NMEDIT"; then
6361   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 NMEDIT=$ac_cv_prog_NMEDIT
6381 if test -n "$NMEDIT"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6383 $as_echo "$NMEDIT" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_NMEDIT"; then
6392   ac_ct_NMEDIT=$NMEDIT
6393   # Extract the first word of "nmedit", so it can be a program name with args.
6394 set dummy nmedit; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$ac_ct_NMEDIT"; then
6401   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6421 if test -n "$ac_ct_NMEDIT"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6423 $as_echo "$ac_ct_NMEDIT" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429   if test "x$ac_ct_NMEDIT" = x; then
6430     NMEDIT=":"
6431   else
6432     case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438     NMEDIT=$ac_ct_NMEDIT
6439   fi
6440 else
6441   NMEDIT="$ac_cv_prog_NMEDIT"
6442 fi
6443
6444     if test -n "$ac_tool_prefix"; then
6445   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_LIPO+:} false; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   if test -n "$LIPO"; then
6453   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 LIPO=$ac_cv_prog_LIPO
6473 if test -n "$LIPO"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6475 $as_echo "$LIPO" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_LIPO"; then
6484   ac_ct_LIPO=$LIPO
6485   # Extract the first word of "lipo", so it can be a program name with args.
6486 set dummy lipo; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   if test -n "$ac_ct_LIPO"; then
6493   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_ac_ct_LIPO="lipo"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6513 if test -n "$ac_ct_LIPO"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6515 $as_echo "$ac_ct_LIPO" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521   if test "x$ac_ct_LIPO" = x; then
6522     LIPO=":"
6523   else
6524     case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530     LIPO=$ac_ct_LIPO
6531   fi
6532 else
6533   LIPO="$ac_cv_prog_LIPO"
6534 fi
6535
6536     if test -n "$ac_tool_prefix"; then
6537   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}otool; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_OTOOL+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   if test -n "$OTOOL"; then
6545   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552     for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559   done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 OTOOL=$ac_cv_prog_OTOOL
6565 if test -n "$OTOOL"; then
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6567 $as_echo "$OTOOL" >&6; }
6568 else
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573
6574 fi
6575 if test -z "$ac_cv_prog_OTOOL"; then
6576   ac_ct_OTOOL=$OTOOL
6577   # Extract the first word of "otool", so it can be a program name with args.
6578 set dummy otool; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   if test -n "$ac_ct_OTOOL"; then
6585   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_prog_ac_ct_OTOOL="otool"
6595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599   done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6605 if test -n "$ac_ct_OTOOL"; then
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6607 $as_echo "$ac_ct_OTOOL" >&6; }
6608 else
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612
6613   if test "x$ac_ct_OTOOL" = x; then
6614     OTOOL=":"
6615   else
6616     case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622     OTOOL=$ac_ct_OTOOL
6623   fi
6624 else
6625   OTOOL="$ac_cv_prog_OTOOL"
6626 fi
6627
6628     if test -n "$ac_tool_prefix"; then
6629   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_OTOOL64+:} false; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test -n "$OTOOL64"; then
6637   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651   done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 OTOOL64=$ac_cv_prog_OTOOL64
6657 if test -n "$OTOOL64"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6659 $as_echo "$OTOOL64" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_OTOOL64"; then
6668   ac_ct_OTOOL64=$OTOOL64
6669   # Extract the first word of "otool64", so it can be a program name with args.
6670 set dummy otool64; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$ac_ct_OTOOL64"; then
6677   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_ac_ct_OTOOL64="otool64"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6697 if test -n "$ac_ct_OTOOL64"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6699 $as_echo "$ac_ct_OTOOL64" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705   if test "x$ac_ct_OTOOL64" = x; then
6706     OTOOL64=":"
6707   else
6708     case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714     OTOOL64=$ac_ct_OTOOL64
6715   fi
6716 else
6717   OTOOL64="$ac_cv_prog_OTOOL64"
6718 fi
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
6745
6746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6747 $as_echo_n "checking for -single_module linker flag... " >&6; }
6748 if ${lt_cv_apple_cc_single_mod+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   lt_cv_apple_cc_single_mod=no
6752       if test -z "${LT_MULTI_MODULE}"; then
6753         # By default we will add the -single_module flag. You can override
6754         # by either setting the environment variable LT_MULTI_MODULE
6755         # non-empty at configure time, or by adding -multi_module to the
6756         # link flags.
6757         rm -rf libconftest.dylib*
6758         echo "int foo(void){return 1;}" > conftest.c
6759         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c" >&5
6761         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6762           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6763         _lt_result=$?
6764         # If there is a non-empty error log, and "single_module"
6765         # appears in it, assume the flag caused a linker warning
6766         if test -s conftest.err && $GREP single_module conftest.err; then
6767           cat conftest.err >&5
6768         # Otherwise, if the output was created with a 0 exit code from
6769         # the compiler, it worked.
6770         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6771           lt_cv_apple_cc_single_mod=yes
6772         else
6773           cat conftest.err >&5
6774         fi
6775         rm -rf libconftest.dylib*
6776         rm -f conftest.*
6777       fi
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6781
6782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   lt_cv_ld_exported_symbols_list=no
6788       save_LDFLAGS=$LDFLAGS
6789       echo "_main" > conftest.sym
6790       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h.  */
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"; then :
6803   lt_cv_ld_exported_symbols_list=yes
6804 else
6805   lt_cv_ld_exported_symbols_list=no
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext \
6808     conftest$ac_exeext conftest.$ac_ext
6809         LDFLAGS="$save_LDFLAGS"
6810
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6814
6815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6816 $as_echo_n "checking for -force_load linker flag... " >&6; }
6817 if ${lt_cv_ld_force_load+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   lt_cv_ld_force_load=no
6821       cat > conftest.c << _LT_EOF
6822 int forced_loaded() { return 2;}
6823 _LT_EOF
6824       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6825       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6826       echo "$AR cru libconftest.a conftest.o" >&5
6827       $AR cru libconftest.a conftest.o 2>&5
6828       echo "$RANLIB libconftest.a" >&5
6829       $RANLIB libconftest.a 2>&5
6830       cat > conftest.c << _LT_EOF
6831 int main() { return 0;}
6832 _LT_EOF
6833       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6834       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6835       _lt_result=$?
6836       if test -s conftest.err && $GREP force_load conftest.err; then
6837         cat conftest.err >&5
6838       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6839         lt_cv_ld_force_load=yes
6840       else
6841         cat conftest.err >&5
6842       fi
6843         rm -f conftest.err libconftest.a conftest conftest.c
6844         rm -rf conftest.dSYM
6845
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6848 $as_echo "$lt_cv_ld_force_load" >&6; }
6849     case $host_os in
6850     rhapsody* | darwin1.[012])
6851       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6852     darwin1.*)
6853       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6854     darwin*) # darwin 5.x on
6855       # if running on 10.5 or later, the deployment target defaults
6856       # to the OS version, if on x86, and 10.4, the deployment
6857       # target defaults to 10.4. Don't you love it?
6858       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6859         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6860           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6861         10.[012]*)
6862           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6863         10.*)
6864           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6865       esac
6866     ;;
6867   esac
6868     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6869       _lt_dar_single_mod='$single_module'
6870     fi
6871     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6872       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6873     else
6874       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6875     fi
6876     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6877       _lt_dsymutil='~$DSYMUTIL $lib || :'
6878     else
6879       _lt_dsymutil=
6880     fi
6881     ;;
6882   esac
6883
6884 ac_ext=c
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6890 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6891 # On Suns, sometimes $CPP names a directory.
6892 if test -n "$CPP" && test -d "$CPP"; then
6893   CPP=
6894 fi
6895 if test -z "$CPP"; then
6896   if ${ac_cv_prog_CPP+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899       # Double quotes because CPP needs to be expanded
6900     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901     do
6902       ac_preproc_ok=false
6903 for ac_c_preproc_warn_flag in '' yes
6904 do
6905   # Use a header file that comes with gcc, so configuring glibc
6906   # with a fresh cross-compiler works.
6907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908   # <limits.h> exists even on freestanding compilers.
6909   # On the NeXT, cc -E runs the code through the compiler's parser,
6910   # not just through cpp. "Syntax error" is here to catch this case.
6911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913 #ifdef __STDC__
6914 # include <limits.h>
6915 #else
6916 # include <assert.h>
6917 #endif
6918                      Syntax error
6919 _ACEOF
6920 if ac_fn_c_try_cpp "$LINENO"; then :
6921
6922 else
6923   # Broken: fails on valid input.
6924 continue
6925 fi
6926 rm -f conftest.err conftest.i conftest.$ac_ext
6927
6928   # OK, works on sane cases.  Now check whether nonexistent headers
6929   # can be detected and how.
6930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932 #include <ac_nonexistent.h>
6933 _ACEOF
6934 if ac_fn_c_try_cpp "$LINENO"; then :
6935   # Broken: success on invalid input.
6936 continue
6937 else
6938   # Passes both tests.
6939 ac_preproc_ok=:
6940 break
6941 fi
6942 rm -f conftest.err conftest.i conftest.$ac_ext
6943
6944 done
6945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946 rm -f conftest.i conftest.err conftest.$ac_ext
6947 if $ac_preproc_ok; then :
6948   break
6949 fi
6950
6951     done
6952     ac_cv_prog_CPP=$CPP
6953
6954 fi
6955   CPP=$ac_cv_prog_CPP
6956 else
6957   ac_cv_prog_CPP=$CPP
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6960 $as_echo "$CPP" >&6; }
6961 ac_preproc_ok=false
6962 for ac_c_preproc_warn_flag in '' yes
6963 do
6964   # Use a header file that comes with gcc, so configuring glibc
6965   # with a fresh cross-compiler works.
6966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967   # <limits.h> exists even on freestanding compilers.
6968   # On the NeXT, cc -E runs the code through the compiler's parser,
6969   # not just through cpp. "Syntax error" is here to catch this case.
6970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972 #ifdef __STDC__
6973 # include <limits.h>
6974 #else
6975 # include <assert.h>
6976 #endif
6977                      Syntax error
6978 _ACEOF
6979 if ac_fn_c_try_cpp "$LINENO"; then :
6980
6981 else
6982   # Broken: fails on valid input.
6983 continue
6984 fi
6985 rm -f conftest.err conftest.i conftest.$ac_ext
6986
6987   # OK, works on sane cases.  Now check whether nonexistent headers
6988   # can be detected and how.
6989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if ac_fn_c_try_cpp "$LINENO"; then :
6994   # Broken: success on invalid input.
6995 continue
6996 else
6997   # Passes both tests.
6998 ac_preproc_ok=:
6999 break
7000 fi
7001 rm -f conftest.err conftest.i conftest.$ac_ext
7002
7003 done
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.i conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then :
7007
7008 else
7009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7012 See \`config.log' for more details" "$LINENO" 5; }
7013 fi
7014
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7023 $as_echo_n "checking for ANSI C header files... " >&6; }
7024 if ${ac_cv_header_stdc+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029 #include <stdlib.h>
7030 #include <stdarg.h>
7031 #include <string.h>
7032 #include <float.h>
7033
7034 int
7035 main ()
7036 {
7037
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043   ac_cv_header_stdc=yes
7044 else
7045   ac_cv_header_stdc=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048
7049 if test $ac_cv_header_stdc = yes; then
7050   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #include <string.h>
7054
7055 _ACEOF
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057   $EGREP "memchr" >/dev/null 2>&1; then :
7058
7059 else
7060   ac_cv_header_stdc=no
7061 fi
7062 rm -f conftest*
7063
7064 fi
7065
7066 if test $ac_cv_header_stdc = yes; then
7067   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070 #include <stdlib.h>
7071
7072 _ACEOF
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074   $EGREP "free" >/dev/null 2>&1; then :
7075
7076 else
7077   ac_cv_header_stdc=no
7078 fi
7079 rm -f conftest*
7080
7081 fi
7082
7083 if test $ac_cv_header_stdc = yes; then
7084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7085   if test "$cross_compiling" = yes; then :
7086   :
7087 else
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <ctype.h>
7091 #include <stdlib.h>
7092 #if ((' ' & 0x0FF) == 0x020)
7093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7095 #else
7096 # define ISLOWER(c) \
7097                    (('a' <= (c) && (c) <= 'i') \
7098                      || ('j' <= (c) && (c) <= 'r') \
7099                      || ('s' <= (c) && (c) <= 'z'))
7100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #endif
7102
7103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7104 int
7105 main ()
7106 {
7107   int i;
7108   for (i = 0; i < 256; i++)
7109     if (XOR (islower (i), ISLOWER (i))
7110         || toupper (i) != TOUPPER (i))
7111       return 2;
7112   return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_run "$LINENO"; then :
7116
7117 else
7118   ac_cv_header_stdc=no
7119 fi
7120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7121   conftest.$ac_objext conftest.beam conftest.$ac_ext
7122 fi
7123
7124 fi
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7127 $as_echo "$ac_cv_header_stdc" >&6; }
7128 if test $ac_cv_header_stdc = yes; then
7129
7130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7131
7132 fi
7133
7134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7136                   inttypes.h stdint.h unistd.h
7137 do :
7138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7140 "
7141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7142   cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 _ACEOF
7145
7146 fi
7147
7148 done
7149
7150
7151 for ac_header in dlfcn.h
7152 do :
7153   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7154 "
7155 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7156   cat >>confdefs.h <<_ACEOF
7157 #define HAVE_DLFCN_H 1
7158 _ACEOF
7159
7160 fi
7161
7162 done
7163
7164
7165
7166
7167
7168 # Set options
7169 enable_dlopen=yes
7170
7171
7172
7173
7174   enable_win32_dll=no
7175
7176
7177             # Check whether --enable-shared was given.
7178 if test "${enable_shared+set}" = set; then :
7179   enableval=$enable_shared; p=${PACKAGE-default}
7180     case $enableval in
7181     yes) enable_shared=yes ;;
7182     no) enable_shared=no ;;
7183     *)
7184       enable_shared=no
7185       # Look at the argument we got.  We use all the common list separators.
7186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7187       for pkg in $enableval; do
7188         IFS="$lt_save_ifs"
7189         if test "X$pkg" = "X$p"; then
7190           enable_shared=yes
7191         fi
7192       done
7193       IFS="$lt_save_ifs"
7194       ;;
7195     esac
7196 else
7197   enable_shared=yes
7198 fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208   # Check whether --enable-static was given.
7209 if test "${enable_static+set}" = set; then :
7210   enableval=$enable_static; p=${PACKAGE-default}
7211     case $enableval in
7212     yes) enable_static=yes ;;
7213     no) enable_static=no ;;
7214     *)
7215      enable_static=no
7216       # Look at the argument we got.  We use all the common list separators.
7217       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7218       for pkg in $enableval; do
7219         IFS="$lt_save_ifs"
7220         if test "X$pkg" = "X$p"; then
7221           enable_static=yes
7222         fi
7223       done
7224       IFS="$lt_save_ifs"
7225       ;;
7226     esac
7227 else
7228   enable_static=yes
7229 fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240 # Check whether --with-pic was given.
7241 if test "${with_pic+set}" = set; then :
7242   withval=$with_pic; lt_p=${PACKAGE-default}
7243     case $withval in
7244     yes|no) pic_mode=$withval ;;
7245     *)
7246       pic_mode=default
7247       # Look at the argument we got.  We use all the common list separators.
7248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7249       for lt_pkg in $withval; do
7250         IFS="$lt_save_ifs"
7251         if test "X$lt_pkg" = "X$lt_p"; then
7252           pic_mode=yes
7253         fi
7254       done
7255       IFS="$lt_save_ifs"
7256       ;;
7257     esac
7258 else
7259   pic_mode=default
7260 fi
7261
7262
7263 test -z "$pic_mode" && pic_mode=default
7264
7265
7266
7267
7268
7269
7270
7271   # Check whether --enable-fast-install was given.
7272 if test "${enable_fast_install+set}" = set; then :
7273   enableval=$enable_fast_install; p=${PACKAGE-default}
7274     case $enableval in
7275     yes) enable_fast_install=yes ;;
7276     no) enable_fast_install=no ;;
7277     *)
7278       enable_fast_install=no
7279       # Look at the argument we got.  We use all the common list separators.
7280       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7281       for pkg in $enableval; do
7282         IFS="$lt_save_ifs"
7283         if test "X$pkg" = "X$p"; then
7284           enable_fast_install=yes
7285         fi
7286       done
7287       IFS="$lt_save_ifs"
7288       ;;
7289     esac
7290 else
7291   enable_fast_install=yes
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 # This can be used to rebuild libtool when needed
7305 LIBTOOL_DEPS="$ltmain"
7306
7307 # Always use our own libtool.
7308 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7339 test -z "$LN_S" && LN_S="ln -s"
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354 if test -n "${ZSH_VERSION+set}" ; then
7355    setopt NO_GLOB_SUBST
7356 fi
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7359 $as_echo_n "checking for objdir... " >&6; }
7360 if ${lt_cv_objdir+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   rm -f .libs 2>/dev/null
7364 mkdir .libs 2>/dev/null
7365 if test -d .libs; then
7366   lt_cv_objdir=.libs
7367 else
7368   # MS-DOS does not allow filenames that begin with a dot.
7369   lt_cv_objdir=_libs
7370 fi
7371 rmdir .libs 2>/dev/null
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7374 $as_echo "$lt_cv_objdir" >&6; }
7375 objdir=$lt_cv_objdir
7376
7377
7378
7379
7380
7381 cat >>confdefs.h <<_ACEOF
7382 #define LT_OBJDIR "$lt_cv_objdir/"
7383 _ACEOF
7384
7385
7386
7387
7388 case $host_os in
7389 aix3*)
7390   # AIX sometimes has problems with the GCC collect2 program.  For some
7391   # reason, if we set the COLLECT_NAMES environment variable, the problems
7392   # vanish in a puff of smoke.
7393   if test "X${COLLECT_NAMES+set}" != Xset; then
7394     COLLECT_NAMES=
7395     export COLLECT_NAMES
7396   fi
7397   ;;
7398 esac
7399
7400 # Global variables:
7401 ofile=libtool
7402 can_build_shared=yes
7403
7404 # All known linkers require a `.a' archive for static linking (except MSVC,
7405 # which needs '.lib').
7406 libext=a
7407
7408 with_gnu_ld="$lt_cv_prog_gnu_ld"
7409
7410 old_CC="$CC"
7411 old_CFLAGS="$CFLAGS"
7412
7413 # Set sane defaults for various variables
7414 test -z "$CC" && CC=cc
7415 test -z "$LTCC" && LTCC=$CC
7416 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7417 test -z "$LD" && LD=ld
7418 test -z "$ac_objext" && ac_objext=o
7419
7420 for cc_temp in $compiler""; do
7421   case $cc_temp in
7422     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7423     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7424     \-*) ;;
7425     *) break;;
7426   esac
7427 done
7428 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7429
7430
7431 # Only perform the check for file, if the check method requires it
7432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7433 case $deplibs_check_method in
7434 file_magic*)
7435   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7437 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7438 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   case $MAGIC_CMD in
7442 [\\/*] |  ?:[\\/]*)
7443   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444   ;;
7445 *)
7446   lt_save_MAGIC_CMD="$MAGIC_CMD"
7447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449   for ac_dir in $ac_dummy; do
7450     IFS="$lt_save_ifs"
7451     test -z "$ac_dir" && ac_dir=.
7452     if test -f $ac_dir/${ac_tool_prefix}file; then
7453       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7454       if test -n "$file_magic_test_file"; then
7455         case $deplibs_check_method in
7456         "file_magic "*)
7457           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460             $EGREP "$file_magic_regex" > /dev/null; then
7461             :
7462           else
7463             cat <<_LT_EOF 1>&2
7464
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such.  This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem.  Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7473
7474 _LT_EOF
7475           fi ;;
7476         esac
7477       fi
7478       break
7479     fi
7480   done
7481   IFS="$lt_save_ifs"
7482   MAGIC_CMD="$lt_save_MAGIC_CMD"
7483   ;;
7484 esac
7485 fi
7486
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7490 $as_echo "$MAGIC_CMD" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497
7498
7499
7500 if test -z "$lt_cv_path_MAGIC_CMD"; then
7501   if test -n "$ac_tool_prefix"; then
7502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7503 $as_echo_n "checking for file... " >&6; }
7504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   case $MAGIC_CMD in
7508 [\\/*] |  ?:[\\/]*)
7509   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7510   ;;
7511 *)
7512   lt_save_MAGIC_CMD="$MAGIC_CMD"
7513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7514   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7515   for ac_dir in $ac_dummy; do
7516     IFS="$lt_save_ifs"
7517     test -z "$ac_dir" && ac_dir=.
7518     if test -f $ac_dir/file; then
7519       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7520       if test -n "$file_magic_test_file"; then
7521         case $deplibs_check_method in
7522         "file_magic "*)
7523           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7524           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7525           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7526             $EGREP "$file_magic_regex" > /dev/null; then
7527             :
7528           else
7529             cat <<_LT_EOF 1>&2
7530
7531 *** Warning: the command libtool uses to detect shared libraries,
7532 *** $file_magic_cmd, produces output that libtool cannot recognize.
7533 *** The result is that libtool may fail to recognize shared libraries
7534 *** as such.  This will affect the creation of libtool libraries that
7535 *** depend on shared libraries, but programs linked with such libtool
7536 *** libraries will work regardless of this problem.  Nevertheless, you
7537 *** may want to report the problem to your system manager and/or to
7538 *** bug-libtool@gnu.org
7539
7540 _LT_EOF
7541           fi ;;
7542         esac
7543       fi
7544       break
7545     fi
7546   done
7547   IFS="$lt_save_ifs"
7548   MAGIC_CMD="$lt_save_MAGIC_CMD"
7549   ;;
7550 esac
7551 fi
7552
7553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554 if test -n "$MAGIC_CMD"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7556 $as_echo "$MAGIC_CMD" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563   else
7564     MAGIC_CMD=:
7565   fi
7566 fi
7567
7568   fi
7569   ;;
7570 esac
7571
7572 # Use C for the default configuration in the libtool script
7573
7574 lt_save_CC="$CC"
7575 ac_ext=c
7576 ac_cpp='$CPP $CPPFLAGS'
7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580
7581
7582 # Source file extension for C test sources.
7583 ac_ext=c
7584
7585 # Object file extension for compiled C test sources.
7586 objext=o
7587 objext=$objext
7588
7589 # Code to be used in simple compile tests
7590 lt_simple_compile_test_code="int some_variable = 0;"
7591
7592 # Code to be used in simple link tests
7593 lt_simple_link_test_code='int main(){return(0);}'
7594
7595
7596
7597
7598
7599
7600
7601 # If no C compiler was specified, use CC.
7602 LTCC=${LTCC-"$CC"}
7603
7604 # If no C compiler flags were specified, use CFLAGS.
7605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7606
7607 # Allow CC to be a program name with arguments.
7608 compiler=$CC
7609
7610 # Save the default compiler, since it gets overwritten when the other
7611 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7612 compiler_DEFAULT=$CC
7613
7614 # save warnings/boilerplate of simple test code
7615 ac_outfile=conftest.$ac_objext
7616 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618 _lt_compiler_boilerplate=`cat conftest.err`
7619 $RM conftest*
7620
7621 ac_outfile=conftest.$ac_objext
7622 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7624 _lt_linker_boilerplate=`cat conftest.err`
7625 $RM -r conftest*
7626
7627
7628 ## CAVEAT EMPTOR:
7629 ## There is no encapsulation within the following macros, do not change
7630 ## the running order or otherwise move them around unless you know exactly
7631 ## what you are doing...
7632 if test -n "$compiler"; then
7633
7634 lt_prog_compiler_no_builtin_flag=
7635
7636 if test "$GCC" = yes; then
7637   case $cc_basename in
7638   nvcc*)
7639     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7640   *)
7641     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7642   esac
7643
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7646 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   lt_cv_prog_compiler_rtti_exceptions=no
7650    ac_outfile=conftest.$ac_objext
7651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7652    lt_compiler_flag="-fno-rtti -fno-exceptions"
7653    # Insert the option either (1) after the last *FLAGS variable, or
7654    # (2) before a word containing "conftest.", or (3) at the end.
7655    # Note that $ac_compile itself does not contain backslashes and begins
7656    # with a dollar sign (not a hyphen), so the echo should work correctly.
7657    # The option is referenced via a variable to avoid confusing sed.
7658    lt_compile=`echo "$ac_compile" | $SED \
7659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7661    -e 's:$: $lt_compiler_flag:'`
7662    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7663    (eval "$lt_compile" 2>conftest.err)
7664    ac_status=$?
7665    cat conftest.err >&5
7666    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667    if (exit $ac_status) && test -s "$ac_outfile"; then
7668      # The compiler can only warn and ignore the option if not recognized
7669      # So say no if there are warnings other than the usual output.
7670      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7673        lt_cv_prog_compiler_rtti_exceptions=yes
7674      fi
7675    fi
7676    $RM conftest*
7677
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7681
7682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7683     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7684 else
7685     :
7686 fi
7687
7688 fi
7689
7690
7691
7692
7693
7694
7695   lt_prog_compiler_wl=
7696 lt_prog_compiler_pic=
7697 lt_prog_compiler_static=
7698
7699
7700   if test "$GCC" = yes; then
7701     lt_prog_compiler_wl='-Wl,'
7702     lt_prog_compiler_static='-static'
7703
7704     case $host_os in
7705       aix*)
7706       # All AIX code is PIC.
7707       if test "$host_cpu" = ia64; then
7708         # AIX 5 now supports IA64 processor
7709         lt_prog_compiler_static='-Bstatic'
7710       fi
7711       ;;
7712
7713     amigaos*)
7714       case $host_cpu in
7715       powerpc)
7716             # see comment about AmigaOS4 .so support
7717             lt_prog_compiler_pic='-fPIC'
7718         ;;
7719       m68k)
7720             # FIXME: we need at least 68020 code to build shared libraries, but
7721             # adding the `-m68020' flag to GCC prevents building anything better,
7722             # like `-m68040'.
7723             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724         ;;
7725       esac
7726       ;;
7727
7728     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7729       # PIC is the default for these OSes.
7730       ;;
7731
7732     mingw* | cygwin* | pw32* | os2* | cegcc*)
7733       # This hack is so that the source file can tell whether it is being
7734       # built for inclusion in a dll (and should export symbols for example).
7735       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7736       # (--disable-auto-import) libraries
7737       lt_prog_compiler_pic='-DDLL_EXPORT'
7738       ;;
7739
7740     darwin* | rhapsody*)
7741       # PIC is the default on this platform
7742       # Common symbols not allowed in MH_DYLIB files
7743       lt_prog_compiler_pic='-fno-common'
7744       ;;
7745
7746     haiku*)
7747       # PIC is the default for Haiku.
7748       # The "-static" flag exists, but is broken.
7749       lt_prog_compiler_static=
7750       ;;
7751
7752     hpux*)
7753       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7754       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7755       # sets the default TLS model and affects inlining.
7756       case $host_cpu in
7757       hppa*64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     interix[3-9]*)
7767       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7768       # Instead, we relocate shared libraries at runtime.
7769       ;;
7770
7771     msdosdjgpp*)
7772       # Just because we use GCC doesn't mean we suddenly get shared libraries
7773       # on systems that don't support them.
7774       lt_prog_compiler_can_build_shared=no
7775       enable_shared=no
7776       ;;
7777
7778     *nto* | *qnx*)
7779       # QNX uses GNU C++, but need to define -shared option too, otherwise
7780       # it will coredump.
7781       lt_prog_compiler_pic='-fPIC -shared'
7782       ;;
7783
7784     sysv4*MP*)
7785       if test -d /usr/nec; then
7786         lt_prog_compiler_pic=-Kconform_pic
7787       fi
7788       ;;
7789
7790     *)
7791       lt_prog_compiler_pic='-fPIC'
7792       ;;
7793     esac
7794
7795     case $cc_basename in
7796     nvcc*) # Cuda Compiler Driver 2.2
7797       lt_prog_compiler_wl='-Xlinker '
7798       if test -n "$lt_prog_compiler_pic"; then
7799         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7800       fi
7801       ;;
7802     esac
7803   else
7804     # PORTME Check for flag to pass linker flags through the system compiler.
7805     case $host_os in
7806     aix*)
7807       lt_prog_compiler_wl='-Wl,'
7808       if test "$host_cpu" = ia64; then
7809         # AIX 5 now supports IA64 processor
7810         lt_prog_compiler_static='-Bstatic'
7811       else
7812         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7813       fi
7814       ;;
7815
7816     mingw* | cygwin* | pw32* | os2* | cegcc*)
7817       # This hack is so that the source file can tell whether it is being
7818       # built for inclusion in a dll (and should export symbols for example).
7819       lt_prog_compiler_pic='-DDLL_EXPORT'
7820       ;;
7821
7822     hpux9* | hpux10* | hpux11*)
7823       lt_prog_compiler_wl='-Wl,'
7824       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7825       # not for PA HP-UX.
7826       case $host_cpu in
7827       hppa*64*|ia64*)
7828         # +Z the default
7829         ;;
7830       *)
7831         lt_prog_compiler_pic='+Z'
7832         ;;
7833       esac
7834       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7835       lt_prog_compiler_static='${wl}-a ${wl}archive'
7836       ;;
7837
7838     irix5* | irix6* | nonstopux*)
7839       lt_prog_compiler_wl='-Wl,'
7840       # PIC (with -KPIC) is the default.
7841       lt_prog_compiler_static='-non_shared'
7842       ;;
7843
7844     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7845       case $cc_basename in
7846       # old Intel for x86_64 which still supported -KPIC.
7847       ecc*)
7848         lt_prog_compiler_wl='-Wl,'
7849         lt_prog_compiler_pic='-KPIC'
7850         lt_prog_compiler_static='-static'
7851         ;;
7852       # icc used to be incompatible with GCC.
7853       # ICC 10 doesn't accept -KPIC any more.
7854       icc* | ifort*)
7855         lt_prog_compiler_wl='-Wl,'
7856         lt_prog_compiler_pic='-fPIC'
7857         lt_prog_compiler_static='-static'
7858         ;;
7859       # Lahey Fortran 8.1.
7860       lf95*)
7861         lt_prog_compiler_wl='-Wl,'
7862         lt_prog_compiler_pic='--shared'
7863         lt_prog_compiler_static='--static'
7864         ;;
7865       nagfor*)
7866         # NAG Fortran compiler
7867         lt_prog_compiler_wl='-Wl,-Wl,,'
7868         lt_prog_compiler_pic='-PIC'
7869         lt_prog_compiler_static='-Bstatic'
7870         ;;
7871       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7872         # Portland Group compilers (*not* the Pentium gcc compiler,
7873         # which looks to be a dead project)
7874         lt_prog_compiler_wl='-Wl,'
7875         lt_prog_compiler_pic='-fpic'
7876         lt_prog_compiler_static='-Bstatic'
7877         ;;
7878       ccc*)
7879         lt_prog_compiler_wl='-Wl,'
7880         # All Alpha code is PIC.
7881         lt_prog_compiler_static='-non_shared'
7882         ;;
7883       xl* | bgxl* | bgf* | mpixl*)
7884         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7885         lt_prog_compiler_wl='-Wl,'
7886         lt_prog_compiler_pic='-qpic'
7887         lt_prog_compiler_static='-qstaticlink'
7888         ;;
7889       *)
7890         case `$CC -V 2>&1 | sed 5q` in
7891         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7892           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7893           lt_prog_compiler_pic='-KPIC'
7894           lt_prog_compiler_static='-Bstatic'
7895           lt_prog_compiler_wl=''
7896           ;;
7897         *Sun\ F* | *Sun*Fortran*)
7898           lt_prog_compiler_pic='-KPIC'
7899           lt_prog_compiler_static='-Bstatic'
7900           lt_prog_compiler_wl='-Qoption ld '
7901           ;;
7902         *Sun\ C*)
7903           # Sun C 5.9
7904           lt_prog_compiler_pic='-KPIC'
7905           lt_prog_compiler_static='-Bstatic'
7906           lt_prog_compiler_wl='-Wl,'
7907           ;;
7908         *Intel*\ [CF]*Compiler*)
7909           lt_prog_compiler_wl='-Wl,'
7910           lt_prog_compiler_pic='-fPIC'
7911           lt_prog_compiler_static='-static'
7912           ;;
7913         *Portland\ Group*)
7914           lt_prog_compiler_wl='-Wl,'
7915           lt_prog_compiler_pic='-fpic'
7916           lt_prog_compiler_static='-Bstatic'
7917           ;;
7918         esac
7919         ;;
7920       esac
7921       ;;
7922
7923     newsos6)
7924       lt_prog_compiler_pic='-KPIC'
7925       lt_prog_compiler_static='-Bstatic'
7926       ;;
7927
7928     *nto* | *qnx*)
7929       # QNX uses GNU C++, but need to define -shared option too, otherwise
7930       # it will coredump.
7931       lt_prog_compiler_pic='-fPIC -shared'
7932       ;;
7933
7934     osf3* | osf4* | osf5*)
7935       lt_prog_compiler_wl='-Wl,'
7936       # All OSF/1 code is PIC.
7937       lt_prog_compiler_static='-non_shared'
7938       ;;
7939
7940     rdos*)
7941       lt_prog_compiler_static='-non_shared'
7942       ;;
7943
7944     solaris*)
7945       lt_prog_compiler_pic='-KPIC'
7946       lt_prog_compiler_static='-Bstatic'
7947       case $cc_basename in
7948       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7949         lt_prog_compiler_wl='-Qoption ld ';;
7950       *)
7951         lt_prog_compiler_wl='-Wl,';;
7952       esac
7953       ;;
7954
7955     sunos4*)
7956       lt_prog_compiler_wl='-Qoption ld '
7957       lt_prog_compiler_pic='-PIC'
7958       lt_prog_compiler_static='-Bstatic'
7959       ;;
7960
7961     sysv4 | sysv4.2uw2* | sysv4.3*)
7962       lt_prog_compiler_wl='-Wl,'
7963       lt_prog_compiler_pic='-KPIC'
7964       lt_prog_compiler_static='-Bstatic'
7965       ;;
7966
7967     sysv4*MP*)
7968       if test -d /usr/nec ;then
7969         lt_prog_compiler_pic='-Kconform_pic'
7970         lt_prog_compiler_static='-Bstatic'
7971       fi
7972       ;;
7973
7974     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7975       lt_prog_compiler_wl='-Wl,'
7976       lt_prog_compiler_pic='-KPIC'
7977       lt_prog_compiler_static='-Bstatic'
7978       ;;
7979
7980     unicos*)
7981       lt_prog_compiler_wl='-Wl,'
7982       lt_prog_compiler_can_build_shared=no
7983       ;;
7984
7985     uts4*)
7986       lt_prog_compiler_pic='-pic'
7987       lt_prog_compiler_static='-Bstatic'
7988       ;;
7989
7990     *)
7991       lt_prog_compiler_can_build_shared=no
7992       ;;
7993     esac
7994   fi
7995
7996 case $host_os in
7997   # For platforms which do not support PIC, -DPIC is meaningless:
7998   *djgpp*)
7999     lt_prog_compiler_pic=
8000     ;;
8001   *)
8002     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8003     ;;
8004 esac
8005
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8007 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8008 if ${lt_cv_prog_compiler_pic+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8014 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8015 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8016
8017 #
8018 # Check to make sure the PIC flag actually works.
8019 #
8020 if test -n "$lt_prog_compiler_pic"; then
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8022 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8023 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   lt_cv_prog_compiler_pic_works=no
8027    ac_outfile=conftest.$ac_objext
8028    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8029    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8030    # Insert the option either (1) after the last *FLAGS variable, or
8031    # (2) before a word containing "conftest.", or (3) at the end.
8032    # Note that $ac_compile itself does not contain backslashes and begins
8033    # with a dollar sign (not a hyphen), so the echo should work correctly.
8034    # The option is referenced via a variable to avoid confusing sed.
8035    lt_compile=`echo "$ac_compile" | $SED \
8036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038    -e 's:$: $lt_compiler_flag:'`
8039    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8040    (eval "$lt_compile" 2>conftest.err)
8041    ac_status=$?
8042    cat conftest.err >&5
8043    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044    if (exit $ac_status) && test -s "$ac_outfile"; then
8045      # The compiler can only warn and ignore the option if not recognized
8046      # So say no if there are warnings other than the usual output.
8047      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8048      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8049      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8050        lt_cv_prog_compiler_pic_works=yes
8051      fi
8052    fi
8053    $RM conftest*
8054
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8057 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8058
8059 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8060     case $lt_prog_compiler_pic in
8061      "" | " "*) ;;
8062      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8063      esac
8064 else
8065     lt_prog_compiler_pic=
8066      lt_prog_compiler_can_build_shared=no
8067 fi
8068
8069 fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081 #
8082 # Check to make sure the static flag actually works.
8083 #
8084 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8086 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8087 if ${lt_cv_prog_compiler_static_works+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   lt_cv_prog_compiler_static_works=no
8091    save_LDFLAGS="$LDFLAGS"
8092    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8093    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8094    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8095      # The linker can only warn and ignore the option if not recognized
8096      # So say no if there are warnings
8097      if test -s conftest.err; then
8098        # Append any errors to the config.log.
8099        cat conftest.err 1>&5
8100        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8101        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102        if diff conftest.exp conftest.er2 >/dev/null; then
8103          lt_cv_prog_compiler_static_works=yes
8104        fi
8105      else
8106        lt_cv_prog_compiler_static_works=yes
8107      fi
8108    fi
8109    $RM -r conftest*
8110    LDFLAGS="$save_LDFLAGS"
8111
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8114 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8115
8116 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8117     :
8118 else
8119     lt_prog_compiler_static=
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8129 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8130 if ${lt_cv_prog_compiler_c_o+:} false; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   lt_cv_prog_compiler_c_o=no
8134    $RM -r conftest 2>/dev/null
8135    mkdir conftest
8136    cd conftest
8137    mkdir out
8138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139
8140    lt_compiler_flag="-o out/conftest2.$ac_objext"
8141    # Insert the option either (1) after the last *FLAGS variable, or
8142    # (2) before a word containing "conftest.", or (3) at the end.
8143    # Note that $ac_compile itself does not contain backslashes and begins
8144    # with a dollar sign (not a hyphen), so the echo should work correctly.
8145    lt_compile=`echo "$ac_compile" | $SED \
8146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148    -e 's:$: $lt_compiler_flag:'`
8149    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150    (eval "$lt_compile" 2>out/conftest.err)
8151    ac_status=$?
8152    cat out/conftest.err >&5
8153    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8155    then
8156      # The compiler can only warn and ignore the option if not recognized
8157      # So say no if there are warnings
8158      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8159      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8160      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8161        lt_cv_prog_compiler_c_o=yes
8162      fi
8163    fi
8164    chmod u+w . 2>&5
8165    $RM conftest*
8166    # SGI C++ compiler will create directory out/ii_files/ for
8167    # template instantiation
8168    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8169    $RM out/* && rmdir out
8170    cd ..
8171    $RM -r conftest
8172    $RM conftest*
8173
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8176 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8177
8178
8179
8180
8181
8182
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8185 if ${lt_cv_prog_compiler_c_o+:} false; then :
8186   $as_echo_n "(cached) " >&6
8187 else
8188   lt_cv_prog_compiler_c_o=no
8189    $RM -r conftest 2>/dev/null
8190    mkdir conftest
8191    cd conftest
8192    mkdir out
8193    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8194
8195    lt_compiler_flag="-o out/conftest2.$ac_objext"
8196    # Insert the option either (1) after the last *FLAGS variable, or
8197    # (2) before a word containing "conftest.", or (3) at the end.
8198    # Note that $ac_compile itself does not contain backslashes and begins
8199    # with a dollar sign (not a hyphen), so the echo should work correctly.
8200    lt_compile=`echo "$ac_compile" | $SED \
8201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8203    -e 's:$: $lt_compiler_flag:'`
8204    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8205    (eval "$lt_compile" 2>out/conftest.err)
8206    ac_status=$?
8207    cat out/conftest.err >&5
8208    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8210    then
8211      # The compiler can only warn and ignore the option if not recognized
8212      # So say no if there are warnings
8213      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8214      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8215      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8216        lt_cv_prog_compiler_c_o=yes
8217      fi
8218    fi
8219    chmod u+w . 2>&5
8220    $RM conftest*
8221    # SGI C++ compiler will create directory out/ii_files/ for
8222    # template instantiation
8223    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8224    $RM out/* && rmdir out
8225    cd ..
8226    $RM -r conftest
8227    $RM conftest*
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8232
8233
8234
8235
8236 hard_links="nottested"
8237 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238   # do not overwrite the value of need_locks provided by the user
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8240 $as_echo_n "checking if we can lock with hard links... " >&6; }
8241   hard_links=yes
8242   $RM conftest*
8243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244   touch conftest.a
8245   ln conftest.a conftest.b 2>&5 || hard_links=no
8246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8248 $as_echo "$hard_links" >&6; }
8249   if test "$hard_links" = no; then
8250     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8252     need_locks=warn
8253   fi
8254 else
8255   need_locks=no
8256 fi
8257
8258
8259
8260
8261
8262
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8264 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8265
8266   runpath_var=
8267   allow_undefined_flag=
8268   always_export_symbols=no
8269   archive_cmds=
8270   archive_expsym_cmds=
8271   compiler_needs_object=no
8272   enable_shared_with_static_runtimes=no
8273   export_dynamic_flag_spec=
8274   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8275   hardcode_automatic=no
8276   hardcode_direct=no
8277   hardcode_direct_absolute=no
8278   hardcode_libdir_flag_spec=
8279   hardcode_libdir_separator=
8280   hardcode_minus_L=no
8281   hardcode_shlibpath_var=unsupported
8282   inherit_rpath=no
8283   link_all_deplibs=unknown
8284   module_cmds=
8285   module_expsym_cmds=
8286   old_archive_from_new_cmds=
8287   old_archive_from_expsyms_cmds=
8288   thread_safe_flag_spec=
8289   whole_archive_flag_spec=
8290   # include_expsyms should be a list of space-separated symbols to be *always*
8291   # included in the symbol list
8292   include_expsyms=
8293   # exclude_expsyms can be an extended regexp of symbols to exclude
8294   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8295   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8296   # as well as any symbol that contains `d'.
8297   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8298   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8299   # platforms (ab)use it in PIC code, but their linkers get confused if
8300   # the symbol is explicitly referenced.  Since portable code cannot
8301   # rely on this symbol name, it's probably fine to never include it in
8302   # preloaded symbol tables.
8303   # Exclude shared library initialization/finalization symbols.
8304   extract_expsyms_cmds=
8305
8306   case $host_os in
8307   cygwin* | mingw* | pw32* | cegcc*)
8308     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8309     # When not using gcc, we currently assume that we are using
8310     # Microsoft Visual C++.
8311     if test "$GCC" != yes; then
8312       with_gnu_ld=no
8313     fi
8314     ;;
8315   interix*)
8316     # we just hope/assume this is gcc and not c89 (= MSVC++)
8317     with_gnu_ld=yes
8318     ;;
8319   openbsd*)
8320     with_gnu_ld=no
8321     ;;
8322   esac
8323
8324   ld_shlibs=yes
8325
8326   # On some targets, GNU ld is compatible enough with the native linker
8327   # that we're better off using the native interface for both.
8328   lt_use_gnu_ld_interface=no
8329   if test "$with_gnu_ld" = yes; then
8330     case $host_os in
8331       aix*)
8332         # The AIX port of GNU ld has always aspired to compatibility
8333         # with the native linker.  However, as the warning in the GNU ld
8334         # block says, versions before 2.19.5* couldn't really create working
8335         # shared libraries, regardless of the interface used.
8336         case `$LD -v 2>&1` in
8337           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8338           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8339           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8340           *)
8341             lt_use_gnu_ld_interface=yes
8342             ;;
8343         esac
8344         ;;
8345       *)
8346         lt_use_gnu_ld_interface=yes
8347         ;;
8348     esac
8349   fi
8350
8351   if test "$lt_use_gnu_ld_interface" = yes; then
8352     # If archive_cmds runs LD, not CC, wlarc should be empty
8353     wlarc='${wl}'
8354
8355     # Set some defaults for GNU ld with shared library support. These
8356     # are reset later if shared libraries are not supported. Putting them
8357     # here allows them to be overridden if necessary.
8358     runpath_var=LD_RUN_PATH
8359     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360     export_dynamic_flag_spec='${wl}--export-dynamic'
8361     # ancient GNU ld didn't support --whole-archive et. al.
8362     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8363       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8364     else
8365       whole_archive_flag_spec=
8366     fi
8367     supports_anon_versioning=no
8368     case `$LD -v 2>&1` in
8369       *GNU\ gold*) supports_anon_versioning=yes ;;
8370       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8371       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8372       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8373       *\ 2.11.*) ;; # other 2.11 versions
8374       *) supports_anon_versioning=yes ;;
8375     esac
8376
8377     # See if GNU ld supports shared libraries.
8378     case $host_os in
8379     aix[3-9]*)
8380       # On AIX/PPC, the GNU linker is very broken
8381       if test "$host_cpu" != ia64; then
8382         ld_shlibs=no
8383         cat <<_LT_EOF 1>&2
8384
8385 *** Warning: the GNU linker, at least up to release 2.19, is reported
8386 *** to be unable to reliably create shared libraries on AIX.
8387 *** Therefore, libtool is disabling shared libraries support.  If you
8388 *** really care for shared libraries, you may want to install binutils
8389 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8390 *** You will then need to restart the configuration process.
8391
8392 _LT_EOF
8393       fi
8394       ;;
8395
8396     amigaos*)
8397       case $host_cpu in
8398       powerpc)
8399             # see comment about AmigaOS4 .so support
8400             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401             archive_expsym_cmds=''
8402         ;;
8403       m68k)
8404             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)'
8405             hardcode_libdir_flag_spec='-L$libdir'
8406             hardcode_minus_L=yes
8407         ;;
8408       esac
8409       ;;
8410
8411     beos*)
8412       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8413         allow_undefined_flag=unsupported
8414         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8415         # support --undefined.  This deserves some investigation.  FIXME
8416         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417       else
8418         ld_shlibs=no
8419       fi
8420       ;;
8421
8422     cygwin* | mingw* | pw32* | cegcc*)
8423       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8424       # as there is no search path for DLLs.
8425       hardcode_libdir_flag_spec='-L$libdir'
8426       export_dynamic_flag_spec='${wl}--export-all-symbols'
8427       allow_undefined_flag=unsupported
8428       always_export_symbols=no
8429       enable_shared_with_static_runtimes=yes
8430       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'
8431       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8432
8433       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8434         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8435         # If the export-symbols file already is a .def file (1st line
8436         # is EXPORTS), use it as is; otherwise, prepend...
8437         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8438           cp $export_symbols $output_objdir/$soname.def;
8439         else
8440           echo EXPORTS > $output_objdir/$soname.def;
8441           cat $export_symbols >> $output_objdir/$soname.def;
8442         fi~
8443         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8444       else
8445         ld_shlibs=no
8446       fi
8447       ;;
8448
8449     haiku*)
8450       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451       link_all_deplibs=yes
8452       ;;
8453
8454     interix[3-9]*)
8455       hardcode_direct=no
8456       hardcode_shlibpath_var=no
8457       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8458       export_dynamic_flag_spec='${wl}-E'
8459       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8460       # Instead, shared libraries are loaded at an image base (0x10000000 by
8461       # default) and relocated if they conflict, which is a slow very memory
8462       # consuming and fragmenting process.  To avoid this, we pick a random,
8463       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8464       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8465       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8466       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'
8467       ;;
8468
8469     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8470       tmp_diet=no
8471       if test "$host_os" = linux-dietlibc; then
8472         case $cc_basename in
8473           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8474         esac
8475       fi
8476       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8477          && test "$tmp_diet" = no
8478       then
8479         tmp_addflag=' $pic_flag'
8480         tmp_sharedflag='-shared'
8481         case $cc_basename,$host_cpu in
8482         pgcc*)                          # Portland Group C compiler
8483           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'
8484           tmp_addflag=' $pic_flag'
8485           ;;
8486         pgf77* | pgf90* | pgf95* | pgfortran*)
8487                                         # Portland Group f77 and f90 compilers
8488           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'
8489           tmp_addflag=' $pic_flag -Mnomain' ;;
8490         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8491           tmp_addflag=' -i_dynamic' ;;
8492         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8493           tmp_addflag=' -i_dynamic -nofor_main' ;;
8494         ifc* | ifort*)                  # Intel Fortran compiler
8495           tmp_addflag=' -nofor_main' ;;
8496         lf95*)                          # Lahey Fortran 8.1
8497           whole_archive_flag_spec=
8498           tmp_sharedflag='--shared' ;;
8499         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8500           tmp_sharedflag='-qmkshrobj'
8501           tmp_addflag= ;;
8502         nvcc*)  # Cuda Compiler Driver 2.2
8503           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'
8504           compiler_needs_object=yes
8505           ;;
8506         esac
8507         case `$CC -V 2>&1 | sed 5q` in
8508         *Sun\ C*)                       # Sun C 5.9
8509           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'
8510           compiler_needs_object=yes
8511           tmp_sharedflag='-G' ;;
8512         *Sun\ F*)                       # Sun Fortran 8.3
8513           tmp_sharedflag='-G' ;;
8514         esac
8515         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516
8517         if test "x$supports_anon_versioning" = xyes; then
8518           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8519             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8520             echo "local: *; };" >> $output_objdir/$libname.ver~
8521             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8522         fi
8523
8524         case $cc_basename in
8525         xlf* | bgf* | bgxlf* | mpixlf*)
8526           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8527           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8528           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8530           if test "x$supports_anon_versioning" = xyes; then
8531             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8532               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8533               echo "local: *; };" >> $output_objdir/$libname.ver~
8534               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8535           fi
8536           ;;
8537         esac
8538       else
8539         ld_shlibs=no
8540       fi
8541       ;;
8542
8543     netbsd*)
8544       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8545         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8546         wlarc=
8547       else
8548         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550       fi
8551       ;;
8552
8553     solaris*)
8554       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8555         ld_shlibs=no
8556         cat <<_LT_EOF 1>&2
8557
8558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8559 *** create shared libraries on Solaris systems.  Therefore, libtool
8560 *** is disabling shared libraries support.  We urge you to upgrade GNU
8561 *** binutils to release 2.9.1 or newer.  Another option is to modify
8562 *** your PATH or compiler configuration so that the native linker is
8563 *** used, and then restart.
8564
8565 _LT_EOF
8566       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8569       else
8570         ld_shlibs=no
8571       fi
8572       ;;
8573
8574     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8575       case `$LD -v 2>&1` in
8576         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8577         ld_shlibs=no
8578         cat <<_LT_EOF 1>&2
8579
8580 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8581 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8582 *** is disabling shared libraries support.  We urge you to upgrade GNU
8583 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8584 *** your PATH or compiler configuration so that the native linker is
8585 *** used, and then restart.
8586
8587 _LT_EOF
8588         ;;
8589         *)
8590           # For security reasons, it is highly recommended that you always
8591           # use absolute paths for naming shared libraries, and exclude the
8592           # DT_RUNPATH tag from executables and libraries.  But doing so
8593           # requires that you compile everything twice, which is a pain.
8594           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8598           else
8599             ld_shlibs=no
8600           fi
8601         ;;
8602       esac
8603       ;;
8604
8605     sunos4*)
8606       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607       wlarc=
8608       hardcode_direct=yes
8609       hardcode_shlibpath_var=no
8610       ;;
8611
8612     *)
8613       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616       else
8617         ld_shlibs=no
8618       fi
8619       ;;
8620     esac
8621
8622     if test "$ld_shlibs" = no; then
8623       runpath_var=
8624       hardcode_libdir_flag_spec=
8625       export_dynamic_flag_spec=
8626       whole_archive_flag_spec=
8627     fi
8628   else
8629     # PORTME fill in a description of your system's linker (not GNU ld)
8630     case $host_os in
8631     aix3*)
8632       allow_undefined_flag=unsupported
8633       always_export_symbols=yes
8634       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'
8635       # Note: this linker hardcodes the directories in LIBPATH if there
8636       # are no directories specified by -L.
8637       hardcode_minus_L=yes
8638       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8639         # Neither direct hardcoding nor static linking is supported with a
8640         # broken collect2.
8641         hardcode_direct=unsupported
8642       fi
8643       ;;
8644
8645     aix[4-9]*)
8646       if test "$host_cpu" = ia64; then
8647         # On IA64, the linker does run time linking by default, so we don't
8648         # have to do anything special.
8649         aix_use_runtimelinking=no
8650         exp_sym_flag='-Bexport'
8651         no_entry_flag=""
8652       else
8653         # If we're using GNU nm, then we don't want the "-C" option.
8654         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8655         # Also, AIX nm treats weak defined symbols like other global
8656         # defined symbols, whereas GNU nm marks them as "W".
8657         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8658           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'
8659         else
8660           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'
8661         fi
8662         aix_use_runtimelinking=no
8663
8664         # Test if we are trying to use run time linking or normal
8665         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8666         # need to do runtime linking.
8667         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8668           for ld_flag in $LDFLAGS; do
8669           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8670             aix_use_runtimelinking=yes
8671             break
8672           fi
8673           done
8674           ;;
8675         esac
8676
8677         exp_sym_flag='-bexport'
8678         no_entry_flag='-bnoentry'
8679       fi
8680
8681       # When large executables or shared objects are built, AIX ld can
8682       # have problems creating the table of contents.  If linking a library
8683       # or program results in "error TOC overflow" add -mminimal-toc to
8684       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8685       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8686
8687       archive_cmds=''
8688       hardcode_direct=yes
8689       hardcode_direct_absolute=yes
8690       hardcode_libdir_separator=':'
8691       link_all_deplibs=yes
8692       file_list_spec='${wl}-f,'
8693
8694       if test "$GCC" = yes; then
8695         case $host_os in aix4.[012]|aix4.[012].*)
8696         # We only want to do this on AIX 4.2 and lower, the check
8697         # below for broken collect2 doesn't work under 4.3+
8698           collect2name=`${CC} -print-prog-name=collect2`
8699           if test -f "$collect2name" &&
8700            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8701           then
8702           # We have reworked collect2
8703           :
8704           else
8705           # We have old collect2
8706           hardcode_direct=unsupported
8707           # It fails to find uninstalled libraries when the uninstalled
8708           # path is not listed in the libpath.  Setting hardcode_minus_L
8709           # to unsupported forces relinking
8710           hardcode_minus_L=yes
8711           hardcode_libdir_flag_spec='-L$libdir'
8712           hardcode_libdir_separator=
8713           fi
8714           ;;
8715         esac
8716         shared_flag='-shared'
8717         if test "$aix_use_runtimelinking" = yes; then
8718           shared_flag="$shared_flag "'${wl}-G'
8719         fi
8720       else
8721         # not using gcc
8722         if test "$host_cpu" = ia64; then
8723         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8724         # chokes on -Wl,-G. The following line is correct:
8725           shared_flag='-G'
8726         else
8727           if test "$aix_use_runtimelinking" = yes; then
8728             shared_flag='${wl}-G'
8729           else
8730             shared_flag='${wl}-bM:SRE'
8731           fi
8732         fi
8733       fi
8734
8735       export_dynamic_flag_spec='${wl}-bexpall'
8736       # It seems that -bexpall does not export symbols beginning with
8737       # underscore (_), so it is better to generate a list of symbols to export.
8738       always_export_symbols=yes
8739       if test "$aix_use_runtimelinking" = yes; then
8740         # Warning - without using the other runtime loading flags (-brtl),
8741         # -berok will link without error, but may produce a broken library.
8742         allow_undefined_flag='-berok'
8743         # Determine the default libpath from the value encoded in an
8744         # empty executable.
8745         if test "${lt_cv_aix_libpath+set}" = set; then
8746   aix_libpath=$lt_cv_aix_libpath
8747 else
8748   if ${lt_cv_aix_libpath_+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h.  */
8753
8754 int
8755 main ()
8756 {
8757
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_link "$LINENO"; then :
8763
8764   lt_aix_libpath_sed='
8765       /Import File Strings/,/^$/ {
8766           /^0/ {
8767               s/^0  *\([^ ]*\) *$/\1/
8768               p
8769           }
8770       }'
8771   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772   # Check for a 64-bit object if we didn't find anything.
8773   if test -z "$lt_cv_aix_libpath_"; then
8774     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775   fi
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext \
8778     conftest$ac_exeext conftest.$ac_ext
8779   if test -z "$lt_cv_aix_libpath_"; then
8780     lt_cv_aix_libpath_="/usr/lib:/lib"
8781   fi
8782
8783 fi
8784
8785   aix_libpath=$lt_cv_aix_libpath_
8786 fi
8787
8788         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8789         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"
8790       else
8791         if test "$host_cpu" = ia64; then
8792           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793           allow_undefined_flag="-z nodefs"
8794           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"
8795         else
8796          # Determine the default libpath from the value encoded in an
8797          # empty executable.
8798          if test "${lt_cv_aix_libpath+set}" = set; then
8799   aix_libpath=$lt_cv_aix_libpath
8800 else
8801   if ${lt_cv_aix_libpath_+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 int
8808 main ()
8809 {
8810
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816
8817   lt_aix_libpath_sed='
8818       /Import File Strings/,/^$/ {
8819           /^0/ {
8820               s/^0  *\([^ ]*\) *$/\1/
8821               p
8822           }
8823       }'
8824   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825   # Check for a 64-bit object if we didn't find anything.
8826   if test -z "$lt_cv_aix_libpath_"; then
8827     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828   fi
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831     conftest$ac_exeext conftest.$ac_ext
8832   if test -z "$lt_cv_aix_libpath_"; then
8833     lt_cv_aix_libpath_="/usr/lib:/lib"
8834   fi
8835
8836 fi
8837
8838   aix_libpath=$lt_cv_aix_libpath_
8839 fi
8840
8841          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842           # Warning - without using the other run time loading flags,
8843           # -berok will link without error, but may produce a broken library.
8844           no_undefined_flag=' ${wl}-bernotok'
8845           allow_undefined_flag=' ${wl}-berok'
8846           if test "$with_gnu_ld" = yes; then
8847             # We only use this code for GNU lds that support --whole-archive.
8848             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8849           else
8850             # Exported symbols can be pulled into shared objects from archives
8851             whole_archive_flag_spec='$convenience'
8852           fi
8853           archive_cmds_need_lc=yes
8854           # This is similar to how AIX traditionally builds its shared libraries.
8855           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'
8856         fi
8857       fi
8858       ;;
8859
8860     amigaos*)
8861       case $host_cpu in
8862       powerpc)
8863             # see comment about AmigaOS4 .so support
8864             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865             archive_expsym_cmds=''
8866         ;;
8867       m68k)
8868             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)'
8869             hardcode_libdir_flag_spec='-L$libdir'
8870             hardcode_minus_L=yes
8871         ;;
8872       esac
8873       ;;
8874
8875     bsdi[45]*)
8876       export_dynamic_flag_spec=-rdynamic
8877       ;;
8878
8879     cygwin* | mingw* | pw32* | cegcc*)
8880       # When not using gcc, we currently assume that we are using
8881       # Microsoft Visual C++.
8882       # hardcode_libdir_flag_spec is actually meaningless, as there is
8883       # no search path for DLLs.
8884       case $cc_basename in
8885       cl*)
8886         # Native MSVC
8887         hardcode_libdir_flag_spec=' '
8888         allow_undefined_flag=unsupported
8889         always_export_symbols=yes
8890         file_list_spec='@'
8891         # Tell ltmain to make .lib files, not .a files.
8892         libext=lib
8893         # Tell ltmain to make .dll files, not .so files.
8894         shrext_cmds=".dll"
8895         # FIXME: Setting linknames here is a bad hack.
8896         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8897         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8899           else
8900             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8901           fi~
8902           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8903           linknames='
8904         # The linker will not automatically build a static lib if we build a DLL.
8905         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8906         enable_shared_with_static_runtimes=yes
8907         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8908         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8909         # Don't use ranlib
8910         old_postinstall_cmds='chmod 644 $oldlib'
8911         postlink_cmds='lt_outputfile="@OUTPUT@"~
8912           lt_tool_outputfile="@TOOL_OUTPUT@"~
8913           case $lt_outputfile in
8914             *.exe|*.EXE) ;;
8915             *)
8916               lt_outputfile="$lt_outputfile.exe"
8917               lt_tool_outputfile="$lt_tool_outputfile.exe"
8918               ;;
8919           esac~
8920           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8921             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8922             $RM "$lt_outputfile.manifest";
8923           fi'
8924         ;;
8925       *)
8926         # Assume MSVC wrapper
8927         hardcode_libdir_flag_spec=' '
8928         allow_undefined_flag=unsupported
8929         # Tell ltmain to make .lib files, not .a files.
8930         libext=lib
8931         # Tell ltmain to make .dll files, not .so files.
8932         shrext_cmds=".dll"
8933         # FIXME: Setting linknames here is a bad hack.
8934         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8935         # The linker will automatically build a .lib file if we build a DLL.
8936         old_archive_from_new_cmds='true'
8937         # FIXME: Should let the user specify the lib program.
8938         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8939         enable_shared_with_static_runtimes=yes
8940         ;;
8941       esac
8942       ;;
8943
8944     darwin* | rhapsody*)
8945
8946
8947   archive_cmds_need_lc=no
8948   hardcode_direct=no
8949   hardcode_automatic=yes
8950   hardcode_shlibpath_var=unsupported
8951   if test "$lt_cv_ld_force_load" = "yes"; then
8952     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\"`'
8953
8954   else
8955     whole_archive_flag_spec=''
8956   fi
8957   link_all_deplibs=yes
8958   allow_undefined_flag="$_lt_dar_allow_undefined"
8959   case $cc_basename in
8960      ifort*) _lt_dar_can_shared=yes ;;
8961      *) _lt_dar_can_shared=$GCC ;;
8962   esac
8963   if test "$_lt_dar_can_shared" = "yes"; then
8964     output_verbose_link_cmd=func_echo_all
8965     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8966     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8967     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}"
8968     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}"
8969
8970   else
8971   ld_shlibs=no
8972   fi
8973
8974       ;;
8975
8976     dgux*)
8977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978       hardcode_libdir_flag_spec='-L$libdir'
8979       hardcode_shlibpath_var=no
8980       ;;
8981
8982     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983     # support.  Future versions do this automatically, but an explicit c++rt0.o
8984     # does not break anything, and helps significantly (at the cost of a little
8985     # extra space).
8986     freebsd2.2*)
8987       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988       hardcode_libdir_flag_spec='-R$libdir'
8989       hardcode_direct=yes
8990       hardcode_shlibpath_var=no
8991       ;;
8992
8993     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8994     freebsd2.*)
8995       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996       hardcode_direct=yes
8997       hardcode_minus_L=yes
8998       hardcode_shlibpath_var=no
8999       ;;
9000
9001     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002     freebsd* | dragonfly*)
9003       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004       hardcode_libdir_flag_spec='-R$libdir'
9005       hardcode_direct=yes
9006       hardcode_shlibpath_var=no
9007       ;;
9008
9009     hpux9*)
9010       if test "$GCC" = yes; then
9011         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'
9012       else
9013         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'
9014       fi
9015       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016       hardcode_libdir_separator=:
9017       hardcode_direct=yes
9018
9019       # hardcode_minus_L: Not really in the search PATH,
9020       # but as the default location of the library.
9021       hardcode_minus_L=yes
9022       export_dynamic_flag_spec='${wl}-E'
9023       ;;
9024
9025     hpux10*)
9026       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9027         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9028       else
9029         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9030       fi
9031       if test "$with_gnu_ld" = no; then
9032         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033         hardcode_libdir_separator=:
9034         hardcode_direct=yes
9035         hardcode_direct_absolute=yes
9036         export_dynamic_flag_spec='${wl}-E'
9037         # hardcode_minus_L: Not really in the search PATH,
9038         # but as the default location of the library.
9039         hardcode_minus_L=yes
9040       fi
9041       ;;
9042
9043     hpux11*)
9044       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9045         case $host_cpu in
9046         hppa*64*)
9047           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048           ;;
9049         ia64*)
9050           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9051           ;;
9052         *)
9053           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9054           ;;
9055         esac
9056       else
9057         case $host_cpu in
9058         hppa*64*)
9059           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060           ;;
9061         ia64*)
9062           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9063           ;;
9064         *)
9065
9066           # Older versions of the 11.00 compiler do not understand -b yet
9067           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9068           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9069 $as_echo_n "checking if $CC understands -b... " >&6; }
9070 if ${lt_cv_prog_compiler__b+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   lt_cv_prog_compiler__b=no
9074    save_LDFLAGS="$LDFLAGS"
9075    LDFLAGS="$LDFLAGS -b"
9076    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078      # The linker can only warn and ignore the option if not recognized
9079      # So say no if there are warnings
9080      if test -s conftest.err; then
9081        # Append any errors to the config.log.
9082        cat conftest.err 1>&5
9083        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085        if diff conftest.exp conftest.er2 >/dev/null; then
9086          lt_cv_prog_compiler__b=yes
9087        fi
9088      else
9089        lt_cv_prog_compiler__b=yes
9090      fi
9091    fi
9092    $RM -r conftest*
9093    LDFLAGS="$save_LDFLAGS"
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9097 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9098
9099 if test x"$lt_cv_prog_compiler__b" = xyes; then
9100     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101 else
9102     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9103 fi
9104
9105           ;;
9106         esac
9107       fi
9108       if test "$with_gnu_ld" = no; then
9109         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110         hardcode_libdir_separator=:
9111
9112         case $host_cpu in
9113         hppa*64*|ia64*)
9114           hardcode_direct=no
9115           hardcode_shlibpath_var=no
9116           ;;
9117         *)
9118           hardcode_direct=yes
9119           hardcode_direct_absolute=yes
9120           export_dynamic_flag_spec='${wl}-E'
9121
9122           # hardcode_minus_L: Not really in the search PATH,
9123           # but as the default location of the library.
9124           hardcode_minus_L=yes
9125           ;;
9126         esac
9127       fi
9128       ;;
9129
9130     irix5* | irix6* | nonstopux*)
9131       if test "$GCC" = yes; then
9132         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'
9133         # Try to use the -exported_symbol ld option, if it does not
9134         # work, assume that -exports_file does not work either and
9135         # implicitly export all symbols.
9136         # This should be the same for all languages, so no per-tag cache variable.
9137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9138 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9139 if ${lt_cv_irix_exported_symbol+:} false; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   save_LDFLAGS="$LDFLAGS"
9143            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 int foo (void) { return 0; }
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149   lt_cv_irix_exported_symbol=yes
9150 else
9151   lt_cv_irix_exported_symbol=no
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext \
9154     conftest$ac_exeext conftest.$ac_ext
9155            LDFLAGS="$save_LDFLAGS"
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9158 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9159         if test "$lt_cv_irix_exported_symbol" = yes; then
9160           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'
9161         fi
9162       else
9163         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'
9164         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'
9165       fi
9166       archive_cmds_need_lc='no'
9167       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168       hardcode_libdir_separator=:
9169       inherit_rpath=yes
9170       link_all_deplibs=yes
9171       ;;
9172
9173     netbsd*)
9174       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9175         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9176       else
9177         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9178       fi
9179       hardcode_libdir_flag_spec='-R$libdir'
9180       hardcode_direct=yes
9181       hardcode_shlibpath_var=no
9182       ;;
9183
9184     newsos6)
9185       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9186       hardcode_direct=yes
9187       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188       hardcode_libdir_separator=:
9189       hardcode_shlibpath_var=no
9190       ;;
9191
9192     *nto* | *qnx*)
9193       ;;
9194
9195     openbsd*)
9196       if test -f /usr/libexec/ld.so; then
9197         hardcode_direct=yes
9198         hardcode_shlibpath_var=no
9199         hardcode_direct_absolute=yes
9200         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9201           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9203           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204           export_dynamic_flag_spec='${wl}-E'
9205         else
9206           case $host_os in
9207            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9208              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209              hardcode_libdir_flag_spec='-R$libdir'
9210              ;;
9211            *)
9212              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9213              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214              ;;
9215           esac
9216         fi
9217       else
9218         ld_shlibs=no
9219       fi
9220       ;;
9221
9222     os2*)
9223       hardcode_libdir_flag_spec='-L$libdir'
9224       hardcode_minus_L=yes
9225       allow_undefined_flag=unsupported
9226       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'
9227       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9228       ;;
9229
9230     osf3*)
9231       if test "$GCC" = yes; then
9232         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233         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'
9234       else
9235         allow_undefined_flag=' -expect_unresolved \*'
9236         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'
9237       fi
9238       archive_cmds_need_lc='no'
9239       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240       hardcode_libdir_separator=:
9241       ;;
9242
9243     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9244       if test "$GCC" = yes; then
9245         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9246         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'
9247         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248       else
9249         allow_undefined_flag=' -expect_unresolved \*'
9250         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'
9251         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~
9252         $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'
9253
9254         # Both c and cxx compiler support -rpath directly
9255         hardcode_libdir_flag_spec='-rpath $libdir'
9256       fi
9257       archive_cmds_need_lc='no'
9258       hardcode_libdir_separator=:
9259       ;;
9260
9261     solaris*)
9262       no_undefined_flag=' -z defs'
9263       if test "$GCC" = yes; then
9264         wlarc='${wl}'
9265         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267           $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'
9268       else
9269         case `$CC -V 2>&1` in
9270         *"Compilers 5.0"*)
9271           wlarc=''
9272           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9275           ;;
9276         *)
9277           wlarc='${wl}'
9278           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9279           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9280           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9281           ;;
9282         esac
9283       fi
9284       hardcode_libdir_flag_spec='-R$libdir'
9285       hardcode_shlibpath_var=no
9286       case $host_os in
9287       solaris2.[0-5] | solaris2.[0-5].*) ;;
9288       *)
9289         # The compiler driver will combine and reorder linker options,
9290         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9291         # but is careful enough not to reorder.
9292         # Supported since Solaris 2.6 (maybe 2.5.1?)
9293         if test "$GCC" = yes; then
9294           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9295         else
9296           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9297         fi
9298         ;;
9299       esac
9300       link_all_deplibs=yes
9301       ;;
9302
9303     sunos4*)
9304       if test "x$host_vendor" = xsequent; then
9305         # Use $CC to link under sequent, because it throws in some extra .o
9306         # files that make .init and .fini sections work.
9307         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9308       else
9309         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9310       fi
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_direct=yes
9313       hardcode_minus_L=yes
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     sysv4)
9318       case $host_vendor in
9319         sni)
9320           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321           hardcode_direct=yes # is this really true???
9322         ;;
9323         siemens)
9324           ## LD is ld it makes a PLAMLIB
9325           ## CC just makes a GrossModule.
9326           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9327           reload_cmds='$CC -r -o $output$reload_objs'
9328           hardcode_direct=no
9329         ;;
9330         motorola)
9331           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9333         ;;
9334       esac
9335       runpath_var='LD_RUN_PATH'
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     sysv4.3*)
9340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341       hardcode_shlibpath_var=no
9342       export_dynamic_flag_spec='-Bexport'
9343       ;;
9344
9345     sysv4*MP*)
9346       if test -d /usr/nec; then
9347         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348         hardcode_shlibpath_var=no
9349         runpath_var=LD_RUN_PATH
9350         hardcode_runpath_var=yes
9351         ld_shlibs=yes
9352       fi
9353       ;;
9354
9355     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9356       no_undefined_flag='${wl}-z,text'
9357       archive_cmds_need_lc=no
9358       hardcode_shlibpath_var=no
9359       runpath_var='LD_RUN_PATH'
9360
9361       if test "$GCC" = yes; then
9362         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364       else
9365         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367       fi
9368       ;;
9369
9370     sysv5* | sco3.2v5* | sco5v6*)
9371       # Note: We can NOT use -z defs as we might desire, because we do not
9372       # link with -lc, and that would cause any symbols used from libc to
9373       # always be unresolved, which means just about no library would
9374       # ever link correctly.  If we're not using GNU ld we use -z text
9375       # though, which does catch some bad symbols but isn't as heavy-handed
9376       # as -z defs.
9377       no_undefined_flag='${wl}-z,text'
9378       allow_undefined_flag='${wl}-z,nodefs'
9379       archive_cmds_need_lc=no
9380       hardcode_shlibpath_var=no
9381       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9382       hardcode_libdir_separator=':'
9383       link_all_deplibs=yes
9384       export_dynamic_flag_spec='${wl}-Bexport'
9385       runpath_var='LD_RUN_PATH'
9386
9387       if test "$GCC" = yes; then
9388         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390       else
9391         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       fi
9394       ;;
9395
9396     uts4*)
9397       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398       hardcode_libdir_flag_spec='-L$libdir'
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     *)
9403       ld_shlibs=no
9404       ;;
9405     esac
9406
9407     if test x$host_vendor = xsni; then
9408       case $host in
9409       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9410         export_dynamic_flag_spec='${wl}-Blargedynsym'
9411         ;;
9412       esac
9413     fi
9414   fi
9415
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9417 $as_echo "$ld_shlibs" >&6; }
9418 test "$ld_shlibs" = no && can_build_shared=no
9419
9420 with_gnu_ld=$with_gnu_ld
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 #
9437 # Do we need to explicitly link libc?
9438 #
9439 case "x$archive_cmds_need_lc" in
9440 x|xyes)
9441   # Assume -lc should be added
9442   archive_cmds_need_lc=yes
9443
9444   if test "$enable_shared" = yes && test "$GCC" = yes; then
9445     case $archive_cmds in
9446     *'~'*)
9447       # FIXME: we may have to deal with multi-command sequences.
9448       ;;
9449     '$CC '*)
9450       # Test whether the compiler implicitly links with -lc since on some
9451       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9452       # to ld, don't add -lc before -lgcc.
9453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9455 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9456   $as_echo_n "(cached) " >&6
9457 else
9458   $RM conftest*
9459         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9460
9461         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9462   (eval $ac_compile) 2>&5
9463   ac_status=$?
9464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465   test $ac_status = 0; } 2>conftest.err; then
9466           soname=conftest
9467           lib=conftest
9468           libobjs=conftest.$ac_objext
9469           deplibs=
9470           wl=$lt_prog_compiler_wl
9471           pic_flag=$lt_prog_compiler_pic
9472           compiler_flags=-v
9473           linker_flags=-v
9474           verstring=
9475           output_objdir=.
9476           libname=conftest
9477           lt_save_allow_undefined_flag=$allow_undefined_flag
9478           allow_undefined_flag=
9479           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9480   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9481   ac_status=$?
9482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483   test $ac_status = 0; }
9484           then
9485             lt_cv_archive_cmds_need_lc=no
9486           else
9487             lt_cv_archive_cmds_need_lc=yes
9488           fi
9489           allow_undefined_flag=$lt_save_allow_undefined_flag
9490         else
9491           cat conftest.err 1>&5
9492         fi
9493         $RM conftest*
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9497 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9498       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9499       ;;
9500     esac
9501   fi
9502   ;;
9503 esac
9504
9505
9506
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9658
9659 if test "$GCC" = yes; then
9660   case $host_os in
9661     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9662     *) lt_awk_arg="/^libraries:/" ;;
9663   esac
9664   case $host_os in
9665     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9666     *) lt_sed_strip_eq="s,=/,/,g" ;;
9667   esac
9668   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669   case $lt_search_path_spec in
9670   *\;*)
9671     # if the path contains ";" then we assume it to be the separator
9672     # otherwise default to the standard path separator (i.e. ":") - it is
9673     # assumed that no part of a normal pathname contains ";" but that should
9674     # okay in the real world where ";" in dirpaths is itself problematic.
9675     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9676     ;;
9677   *)
9678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9679     ;;
9680   esac
9681   # Ok, now we have the path, separated by spaces, we can step through it
9682   # and add multilib dir if necessary.
9683   lt_tmp_lt_search_path_spec=
9684   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685   for lt_sys_path in $lt_search_path_spec; do
9686     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9688     else
9689       test -d "$lt_sys_path" && \
9690         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9691     fi
9692   done
9693   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9695   lt_foo="";
9696   lt_count=0;
9697   for (lt_i = NF; lt_i > 0; lt_i--) {
9698     if ($lt_i != "" && $lt_i != ".") {
9699       if ($lt_i == "..") {
9700         lt_count++;
9701       } else {
9702         if (lt_count == 0) {
9703           lt_foo="/" $lt_i lt_foo;
9704         } else {
9705           lt_count--;
9706         }
9707       }
9708     }
9709   }
9710   if (lt_foo != "") { lt_freq[lt_foo]++; }
9711   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9712 }'`
9713   # AWK program above erroneously prepends '/' to C:/dos/paths
9714   # for these hosts.
9715   case $host_os in
9716     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9718   esac
9719   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9720 else
9721   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9722 fi
9723 library_names_spec=
9724 libname_spec='lib$name'
9725 soname_spec=
9726 shrext_cmds=".so"
9727 postinstall_cmds=
9728 postuninstall_cmds=
9729 finish_cmds=
9730 finish_eval=
9731 shlibpath_var=
9732 shlibpath_overrides_runpath=unknown
9733 version_type=none
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9738
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9742
9743 case $host_os in
9744 aix3*)
9745   version_type=linux # correct to gnu/linux during the next big refactor
9746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747   shlibpath_var=LIBPATH
9748
9749   # AIX 3 has no versioning support, so we append a major version to the name.
9750   soname_spec='${libname}${release}${shared_ext}$major'
9751   ;;
9752
9753 aix[4-9]*)
9754   version_type=linux # correct to gnu/linux during the next big refactor
9755   need_lib_prefix=no
9756   need_version=no
9757   hardcode_into_libs=yes
9758   if test "$host_cpu" = ia64; then
9759     # AIX 5 supports IA64
9760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761     shlibpath_var=LD_LIBRARY_PATH
9762   else
9763     # With GCC up to 2.95.x, collect2 would create an import file
9764     # for dependence libraries.  The import file would start with
9765     # the line `#! .'.  This would cause the generated library to
9766     # depend on `.', always an invalid library.  This was fixed in
9767     # development snapshots of GCC prior to 3.0.
9768     case $host_os in
9769       aix4 | aix4.[01] | aix4.[01].*)
9770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9771            echo ' yes '
9772            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9773         :
9774       else
9775         can_build_shared=no
9776       fi
9777       ;;
9778     esac
9779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780     # soname into executable. Probably we can add versioning support to
9781     # collect2, so additional links can be useful in future.
9782     if test "$aix_use_runtimelinking" = yes; then
9783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784       # instead of lib<name>.a to let people know that these are not
9785       # typical AIX shared libraries.
9786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787     else
9788       # We preserve .a as extension for shared libraries through AIX4.2
9789       # and later when we are not doing run time linking.
9790       library_names_spec='${libname}${release}.a $libname.a'
9791       soname_spec='${libname}${release}${shared_ext}$major'
9792     fi
9793     shlibpath_var=LIBPATH
9794   fi
9795   ;;
9796
9797 amigaos*)
9798   case $host_cpu in
9799   powerpc)
9800     # Since July 2007 AmigaOS4 officially supports .so libraries.
9801     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803     ;;
9804   m68k)
9805     library_names_spec='$libname.ixlibrary $libname.a'
9806     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807     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'
9808     ;;
9809   esac
9810   ;;
9811
9812 beos*)
9813   library_names_spec='${libname}${shared_ext}'
9814   dynamic_linker="$host_os ld.so"
9815   shlibpath_var=LIBRARY_PATH
9816   ;;
9817
9818 bsdi[45]*)
9819   version_type=linux # correct to gnu/linux during the next big refactor
9820   need_version=no
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827   # the default ld.so.conf also contains /usr/contrib/lib and
9828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829   # libtool to hard-code these into programs
9830   ;;
9831
9832 cygwin* | mingw* | pw32* | cegcc*)
9833   version_type=windows
9834   shrext_cmds=".dll"
9835   need_version=no
9836   need_lib_prefix=no
9837
9838   case $GCC,$cc_basename in
9839   yes,*)
9840     # gcc
9841     library_names_spec='$libname.dll.a'
9842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9843     postinstall_cmds='base_file=`basename \${file}`~
9844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9845       dldir=$destdir/`dirname \$dlpath`~
9846       test -d \$dldir || mkdir -p \$dldir~
9847       $install_prog $dir/$dlname \$dldir/$dlname~
9848       chmod a+x \$dldir/$dlname~
9849       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9850         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9851       fi'
9852     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9853       dlpath=$dir/\$dldll~
9854        $RM \$dlpath'
9855     shlibpath_overrides_runpath=yes
9856
9857     case $host_os in
9858     cygwin*)
9859       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9860       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861
9862       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9863       ;;
9864     mingw* | cegcc*)
9865       # MinGW DLLs use traditional 'lib' prefix
9866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867       ;;
9868     pw32*)
9869       # pw32 DLLs use 'pw' prefix rather than 'lib'
9870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9871       ;;
9872     esac
9873     dynamic_linker='Win32 ld.exe'
9874     ;;
9875
9876   *,cl*)
9877     # Native MSVC
9878     libname_spec='$name'
9879     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880     library_names_spec='${libname}.dll.lib'
9881
9882     case $build_os in
9883     mingw*)
9884       sys_lib_search_path_spec=
9885       lt_save_ifs=$IFS
9886       IFS=';'
9887       for lt_path in $LIB
9888       do
9889         IFS=$lt_save_ifs
9890         # Let DOS variable expansion print the short 8.3 style file name.
9891         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9892         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9893       done
9894       IFS=$lt_save_ifs
9895       # Convert to MSYS style.
9896       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9897       ;;
9898     cygwin*)
9899       # Convert to unix form, then to dos form, then back to unix form
9900       # but this time dos style (no spaces!) so that the unix form looks
9901       # like /cygdrive/c/PROGRA~1:/cygdr...
9902       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9903       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9904       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9905       ;;
9906     *)
9907       sys_lib_search_path_spec="$LIB"
9908       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9909         # It is most probably a Windows format PATH.
9910         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9911       else
9912         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9913       fi
9914       # FIXME: find the short name or the path components, as spaces are
9915       # common. (e.g. "Program Files" -> "PROGRA~1")
9916       ;;
9917     esac
9918
9919     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9920     postinstall_cmds='base_file=`basename \${file}`~
9921       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9922       dldir=$destdir/`dirname \$dlpath`~
9923       test -d \$dldir || mkdir -p \$dldir~
9924       $install_prog $dir/$dlname \$dldir/$dlname'
9925     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9926       dlpath=$dir/\$dldll~
9927        $RM \$dlpath'
9928     shlibpath_overrides_runpath=yes
9929     dynamic_linker='Win32 link.exe'
9930     ;;
9931
9932   *)
9933     # Assume MSVC wrapper
9934     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935     dynamic_linker='Win32 ld.exe'
9936     ;;
9937   esac
9938   # FIXME: first we should search . and the directory the executable is in
9939   shlibpath_var=PATH
9940   ;;
9941
9942 darwin* | rhapsody*)
9943   dynamic_linker="$host_os dyld"
9944   version_type=darwin
9945   need_lib_prefix=no
9946   need_version=no
9947   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948   soname_spec='${libname}${release}${major}$shared_ext'
9949   shlibpath_overrides_runpath=yes
9950   shlibpath_var=DYLD_LIBRARY_PATH
9951   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9952
9953   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9954   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9955   ;;
9956
9957 dgux*)
9958   version_type=linux # correct to gnu/linux during the next big refactor
9959   need_lib_prefix=no
9960   need_version=no
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   ;;
9965
9966 freebsd* | dragonfly*)
9967   # DragonFly does not have aout.  When/if they implement a new
9968   # versioning mechanism, adjust this.
9969   if test -x /usr/bin/objformat; then
9970     objformat=`/usr/bin/objformat`
9971   else
9972     case $host_os in
9973     freebsd[23].*) objformat=aout ;;
9974     *) objformat=elf ;;
9975     esac
9976   fi
9977   version_type=freebsd-$objformat
9978   case $version_type in
9979     freebsd-elf*)
9980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9981       need_version=no
9982       need_lib_prefix=no
9983       ;;
9984     freebsd-*)
9985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9986       need_version=yes
9987       ;;
9988   esac
9989   shlibpath_var=LD_LIBRARY_PATH
9990   case $host_os in
9991   freebsd2.*)
9992     shlibpath_overrides_runpath=yes
9993     ;;
9994   freebsd3.[01]* | freebsdelf3.[01]*)
9995     shlibpath_overrides_runpath=yes
9996     hardcode_into_libs=yes
9997     ;;
9998   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000     shlibpath_overrides_runpath=no
10001     hardcode_into_libs=yes
10002     ;;
10003   *) # from 4.6 on, and DragonFly
10004     shlibpath_overrides_runpath=yes
10005     hardcode_into_libs=yes
10006     ;;
10007   esac
10008   ;;
10009
10010 gnu*)
10011   version_type=linux # correct to gnu/linux during the next big refactor
10012   need_lib_prefix=no
10013   need_version=no
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   shlibpath_overrides_runpath=no
10018   hardcode_into_libs=yes
10019   ;;
10020
10021 haiku*)
10022   version_type=linux # correct to gnu/linux during the next big refactor
10023   need_lib_prefix=no
10024   need_version=no
10025   dynamic_linker="$host_os runtime_loader"
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027   soname_spec='${libname}${release}${shared_ext}$major'
10028   shlibpath_var=LIBRARY_PATH
10029   shlibpath_overrides_runpath=yes
10030   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10031   hardcode_into_libs=yes
10032   ;;
10033
10034 hpux9* | hpux10* | hpux11*)
10035   # Give a soname corresponding to the major version so that dld.sl refuses to
10036   # link against other versions.
10037   version_type=sunos
10038   need_lib_prefix=no
10039   need_version=no
10040   case $host_cpu in
10041   ia64*)
10042     shrext_cmds='.so'
10043     hardcode_into_libs=yes
10044     dynamic_linker="$host_os dld.so"
10045     shlibpath_var=LD_LIBRARY_PATH
10046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048     soname_spec='${libname}${release}${shared_ext}$major'
10049     if test "X$HPUX_IA64_MODE" = X32; then
10050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10051     else
10052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10053     fi
10054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055     ;;
10056   hppa*64*)
10057     shrext_cmds='.sl'
10058     hardcode_into_libs=yes
10059     dynamic_linker="$host_os dld.sl"
10060     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063     soname_spec='${libname}${release}${shared_ext}$major'
10064     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066     ;;
10067   *)
10068     shrext_cmds='.sl'
10069     dynamic_linker="$host_os dld.sl"
10070     shlibpath_var=SHLIB_PATH
10071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073     soname_spec='${libname}${release}${shared_ext}$major'
10074     ;;
10075   esac
10076   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10077   postinstall_cmds='chmod 555 $lib'
10078   # or fails outright, so override atomically:
10079   install_override_mode=555
10080   ;;
10081
10082 interix[3-9]*)
10083   version_type=linux # correct to gnu/linux during the next big refactor
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089   shlibpath_var=LD_LIBRARY_PATH
10090   shlibpath_overrides_runpath=no
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 irix5* | irix6* | nonstopux*)
10095   case $host_os in
10096     nonstopux*) version_type=nonstopux ;;
10097     *)
10098         if test "$lt_cv_prog_gnu_ld" = yes; then
10099                 version_type=linux # correct to gnu/linux during the next big refactor
10100         else
10101                 version_type=irix
10102         fi ;;
10103   esac
10104   need_lib_prefix=no
10105   need_version=no
10106   soname_spec='${libname}${release}${shared_ext}$major'
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10108   case $host_os in
10109   irix5* | nonstopux*)
10110     libsuff= shlibsuff=
10111     ;;
10112   *)
10113     case $LD in # libtool.m4 will add one of these switches to LD
10114     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115       libsuff= shlibsuff= libmagic=32-bit;;
10116     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117       libsuff=32 shlibsuff=N32 libmagic=N32;;
10118     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120     *) libsuff= shlibsuff= libmagic=never-match;;
10121     esac
10122     ;;
10123   esac
10124   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125   shlibpath_overrides_runpath=no
10126   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128   hardcode_into_libs=yes
10129   ;;
10130
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10133   dynamic_linker=no
10134   ;;
10135
10136 # This must be glibc/ELF.
10137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10138   version_type=linux # correct to gnu/linux during the next big refactor
10139   need_lib_prefix=no
10140   need_version=no
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142   soname_spec='${libname}${release}${shared_ext}$major'
10143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=no
10146
10147   # Some binutils ld are patched to set DT_RUNPATH
10148   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   lt_cv_shlibpath_overrides_runpath=no
10152     save_LDFLAGS=$LDFLAGS
10153     save_libdir=$libdir
10154     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10155          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158
10159 int
10160 main ()
10161 {
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10169   lt_cv_shlibpath_overrides_runpath=yes
10170 fi
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173     conftest$ac_exeext conftest.$ac_ext
10174     LDFLAGS=$save_LDFLAGS
10175     libdir=$save_libdir
10176
10177 fi
10178
10179   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10180
10181   # This implies no fast_install, which is unacceptable.
10182   # Some rework will be needed to allow for fast_install
10183   # before this can be enabled.
10184   hardcode_into_libs=yes
10185
10186   # Append ld.so.conf contents to the search path
10187   if test -f /etc/ld.so.conf; then
10188     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' ' '`
10189     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10190   fi
10191
10192   # We used to test for /lib/ld.so.1 and disable shared libraries on
10193   # powerpc, because MkLinux only supported shared libraries with the
10194   # GNU dynamic linker.  Since this was broken with cross compilers,
10195   # most powerpc-linux boxes support dynamic linking these days and
10196   # people can always --disable-shared, the test was removed, and we
10197   # assume the GNU/Linux dynamic linker is in use.
10198   dynamic_linker='GNU/Linux ld.so'
10199   ;;
10200
10201 netbsd*)
10202   version_type=sunos
10203   need_lib_prefix=no
10204   need_version=no
10205   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10208     dynamic_linker='NetBSD (a.out) ld.so'
10209   else
10210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211     soname_spec='${libname}${release}${shared_ext}$major'
10212     dynamic_linker='NetBSD ld.elf_so'
10213   fi
10214   shlibpath_var=LD_LIBRARY_PATH
10215   shlibpath_overrides_runpath=yes
10216   hardcode_into_libs=yes
10217   ;;
10218
10219 newsos6)
10220   version_type=linux # correct to gnu/linux during the next big refactor
10221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222   shlibpath_var=LD_LIBRARY_PATH
10223   shlibpath_overrides_runpath=yes
10224   ;;
10225
10226 *nto* | *qnx*)
10227   version_type=qnx
10228   need_lib_prefix=no
10229   need_version=no
10230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=no
10234   hardcode_into_libs=yes
10235   dynamic_linker='ldqnx.so'
10236   ;;
10237
10238 openbsd*)
10239   version_type=sunos
10240   sys_lib_dlsearch_path_spec="/usr/lib"
10241   need_lib_prefix=no
10242   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10243   case $host_os in
10244     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10245     *)                          need_version=no  ;;
10246   esac
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10249   shlibpath_var=LD_LIBRARY_PATH
10250   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10251     case $host_os in
10252       openbsd2.[89] | openbsd2.[89].*)
10253         shlibpath_overrides_runpath=no
10254         ;;
10255       *)
10256         shlibpath_overrides_runpath=yes
10257         ;;
10258       esac
10259   else
10260     shlibpath_overrides_runpath=yes
10261   fi
10262   ;;
10263
10264 os2*)
10265   libname_spec='$name'
10266   shrext_cmds=".dll"
10267   need_lib_prefix=no
10268   library_names_spec='$libname${shared_ext} $libname.a'
10269   dynamic_linker='OS/2 ld.exe'
10270   shlibpath_var=LIBPATH
10271   ;;
10272
10273 osf3* | osf4* | osf5*)
10274   version_type=osf
10275   need_lib_prefix=no
10276   need_version=no
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279   shlibpath_var=LD_LIBRARY_PATH
10280   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10281   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10282   ;;
10283
10284 rdos*)
10285   dynamic_linker=no
10286   ;;
10287
10288 solaris*)
10289   version_type=linux # correct to gnu/linux during the next big refactor
10290   need_lib_prefix=no
10291   need_version=no
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293   soname_spec='${libname}${release}${shared_ext}$major'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   hardcode_into_libs=yes
10297   # ldd complains unless libraries are executable
10298   postinstall_cmds='chmod +x $lib'
10299   ;;
10300
10301 sunos4*)
10302   version_type=sunos
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   shlibpath_overrides_runpath=yes
10307   if test "$with_gnu_ld" = yes; then
10308     need_lib_prefix=no
10309   fi
10310   need_version=yes
10311   ;;
10312
10313 sysv4 | sysv4.3*)
10314   version_type=linux # correct to gnu/linux during the next big refactor
10315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316   soname_spec='${libname}${release}${shared_ext}$major'
10317   shlibpath_var=LD_LIBRARY_PATH
10318   case $host_vendor in
10319     sni)
10320       shlibpath_overrides_runpath=no
10321       need_lib_prefix=no
10322       runpath_var=LD_RUN_PATH
10323       ;;
10324     siemens)
10325       need_lib_prefix=no
10326       ;;
10327     motorola)
10328       need_lib_prefix=no
10329       need_version=no
10330       shlibpath_overrides_runpath=no
10331       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10332       ;;
10333   esac
10334   ;;
10335
10336 sysv4*MP*)
10337   if test -d /usr/nec ;then
10338     version_type=linux # correct to gnu/linux during the next big refactor
10339     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10340     soname_spec='$libname${shared_ext}.$major'
10341     shlibpath_var=LD_LIBRARY_PATH
10342   fi
10343   ;;
10344
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10346   version_type=freebsd-elf
10347   need_lib_prefix=no
10348   need_version=no
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10350   soname_spec='${libname}${release}${shared_ext}$major'
10351   shlibpath_var=LD_LIBRARY_PATH
10352   shlibpath_overrides_runpath=yes
10353   hardcode_into_libs=yes
10354   if test "$with_gnu_ld" = yes; then
10355     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10356   else
10357     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10358     case $host_os in
10359       sco3.2v5*)
10360         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10361         ;;
10362     esac
10363   fi
10364   sys_lib_dlsearch_path_spec='/usr/lib'
10365   ;;
10366
10367 tpf*)
10368   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10369   version_type=linux # correct to gnu/linux during the next big refactor
10370   need_lib_prefix=no
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   shlibpath_var=LD_LIBRARY_PATH
10374   shlibpath_overrides_runpath=no
10375   hardcode_into_libs=yes
10376   ;;
10377
10378 uts4*)
10379   version_type=linux # correct to gnu/linux during the next big refactor
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   ;;
10384
10385 *)
10386   dynamic_linker=no
10387   ;;
10388 esac
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10390 $as_echo "$dynamic_linker" >&6; }
10391 test "$dynamic_linker" = no && can_build_shared=no
10392
10393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10394 if test "$GCC" = yes; then
10395   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10396 fi
10397
10398 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10399   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10400 fi
10401 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10402   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10403 fi
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10498 hardcode_action=
10499 if test -n "$hardcode_libdir_flag_spec" ||
10500    test -n "$runpath_var" ||
10501    test "X$hardcode_automatic" = "Xyes" ; then
10502
10503   # We can hardcode non-existent directories.
10504   if test "$hardcode_direct" != no &&
10505      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10506      # have to relink, otherwise we might link with an installed library
10507      # when we should be linking with a yet-to-be-installed one
10508      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10509      test "$hardcode_minus_L" != no; then
10510     # Linking always hardcodes the temporary library directory.
10511     hardcode_action=relink
10512   else
10513     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10514     hardcode_action=immediate
10515   fi
10516 else
10517   # We cannot hardcode anything, or else we can only hardcode existing
10518   # directories.
10519   hardcode_action=unsupported
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10522 $as_echo "$hardcode_action" >&6; }
10523
10524 if test "$hardcode_action" = relink ||
10525    test "$inherit_rpath" = yes; then
10526   # Fast installation is not supported
10527   enable_fast_install=no
10528 elif test "$shlibpath_overrides_runpath" = yes ||
10529      test "$enable_shared" = no; then
10530   # Fast installation is not necessary
10531   enable_fast_install=needless
10532 fi
10533
10534
10535
10536
10537
10538
10539   if test "x$enable_dlopen" != xyes; then
10540   enable_dlopen=unknown
10541   enable_dlopen_self=unknown
10542   enable_dlopen_self_static=unknown
10543 else
10544   lt_cv_dlopen=no
10545   lt_cv_dlopen_libs=
10546
10547   case $host_os in
10548   beos*)
10549     lt_cv_dlopen="load_add_on"
10550     lt_cv_dlopen_libs=
10551     lt_cv_dlopen_self=yes
10552     ;;
10553
10554   mingw* | pw32* | cegcc*)
10555     lt_cv_dlopen="LoadLibrary"
10556     lt_cv_dlopen_libs=
10557     ;;
10558
10559   cygwin*)
10560     lt_cv_dlopen="dlopen"
10561     lt_cv_dlopen_libs=
10562     ;;
10563
10564   darwin*)
10565   # if libdl is installed we need to link against it
10566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10568 if ${ac_cv_lib_dl_dlopen+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-ldl  $LIBS"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h.  */
10575
10576 /* Override any GCC internal prototype to avoid an error.
10577    Use char because int might match the return type of a GCC
10578    builtin and then its argument prototype would still apply.  */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 char dlopen ();
10583 int
10584 main ()
10585 {
10586 return dlopen ();
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592   ac_cv_lib_dl_dlopen=yes
10593 else
10594   ac_cv_lib_dl_dlopen=no
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597     conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10604 else
10605
10606     lt_cv_dlopen="dyld"
10607     lt_cv_dlopen_libs=
10608     lt_cv_dlopen_self=yes
10609
10610 fi
10611
10612     ;;
10613
10614   *)
10615     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10616 if test "x$ac_cv_func_shl_load" = xyes; then :
10617   lt_cv_dlopen="shl_load"
10618 else
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10620 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10621 if ${ac_cv_lib_dld_shl_load+:} false; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldld  $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h.  */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630    Use char because int might match the return type of a GCC
10631    builtin and then its argument prototype would still apply.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char shl_load ();
10636 int
10637 main ()
10638 {
10639 return shl_load ();
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645   ac_cv_lib_dld_shl_load=yes
10646 else
10647   ac_cv_lib_dld_shl_load=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650     conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10654 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10655 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10656   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10657 else
10658   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10659 if test "x$ac_cv_func_dlopen" = xyes; then :
10660   lt_cv_dlopen="dlopen"
10661 else
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10664 if ${ac_cv_lib_dl_dlopen+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667   ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-ldl  $LIBS"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673    Use char because int might match the return type of a GCC
10674    builtin and then its argument prototype would still apply.  */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char dlopen ();
10679 int
10680 main ()
10681 {
10682 return dlopen ();
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688   ac_cv_lib_dl_dlopen=yes
10689 else
10690   ac_cv_lib_dl_dlopen=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693     conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10698 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10700 else
10701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10703 if ${ac_cv_lib_svld_dlopen+:} false; then :
10704   $as_echo_n "(cached) " >&6
10705 else
10706   ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lsvld  $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712    Use char because int might match the return type of a GCC
10713    builtin and then its argument prototype would still apply.  */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char dlopen ();
10718 int
10719 main ()
10720 {
10721 return dlopen ();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727   ac_cv_lib_svld_dlopen=yes
10728 else
10729   ac_cv_lib_svld_dlopen=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732     conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10736 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10737 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10739 else
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10741 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10742 if ${ac_cv_lib_dld_dld_link+:} false; then :
10743   $as_echo_n "(cached) " >&6
10744 else
10745   ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldld  $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h.  */
10749
10750 /* Override any GCC internal prototype to avoid an error.
10751    Use char because int might match the return type of a GCC
10752    builtin and then its argument prototype would still apply.  */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char dld_link ();
10757 int
10758 main ()
10759 {
10760 return dld_link ();
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766   ac_cv_lib_dld_dld_link=yes
10767 else
10768   ac_cv_lib_dld_dld_link=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext \
10771     conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10775 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10776 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10777   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10778 fi
10779
10780
10781 fi
10782
10783
10784 fi
10785
10786
10787 fi
10788
10789
10790 fi
10791
10792
10793 fi
10794
10795     ;;
10796   esac
10797
10798   if test "x$lt_cv_dlopen" != xno; then
10799     enable_dlopen=yes
10800   else
10801     enable_dlopen=no
10802   fi
10803
10804   case $lt_cv_dlopen in
10805   dlopen)
10806     save_CPPFLAGS="$CPPFLAGS"
10807     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10808
10809     save_LDFLAGS="$LDFLAGS"
10810     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10811
10812     save_LIBS="$LIBS"
10813     LIBS="$lt_cv_dlopen_libs $LIBS"
10814
10815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10816 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10817 if ${lt_cv_dlopen_self+:} false; then :
10818   $as_echo_n "(cached) " >&6
10819 else
10820           if test "$cross_compiling" = yes; then :
10821   lt_cv_dlopen_self=cross
10822 else
10823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10824   lt_status=$lt_dlunknown
10825   cat > conftest.$ac_ext <<_LT_EOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828
10829 #if HAVE_DLFCN_H
10830 #include <dlfcn.h>
10831 #endif
10832
10833 #include <stdio.h>
10834
10835 #ifdef RTLD_GLOBAL
10836 #  define LT_DLGLOBAL           RTLD_GLOBAL
10837 #else
10838 #  ifdef DL_GLOBAL
10839 #    define LT_DLGLOBAL         DL_GLOBAL
10840 #  else
10841 #    define LT_DLGLOBAL         0
10842 #  endif
10843 #endif
10844
10845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10846    find out it does not work in some platform. */
10847 #ifndef LT_DLLAZY_OR_NOW
10848 #  ifdef RTLD_LAZY
10849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10850 #  else
10851 #    ifdef DL_LAZY
10852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10853 #    else
10854 #      ifdef RTLD_NOW
10855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10856 #      else
10857 #        ifdef DL_NOW
10858 #          define LT_DLLAZY_OR_NOW      DL_NOW
10859 #        else
10860 #          define LT_DLLAZY_OR_NOW      0
10861 #        endif
10862 #      endif
10863 #    endif
10864 #  endif
10865 #endif
10866
10867 /* When -fvisbility=hidden is used, assume the code has been annotated
10868    correspondingly for the symbols needed.  */
10869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10870 int fnord () __attribute__((visibility("default")));
10871 #endif
10872
10873 int fnord () { return 42; }
10874 int main ()
10875 {
10876   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10877   int status = $lt_dlunknown;
10878
10879   if (self)
10880     {
10881       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10882       else
10883         {
10884           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10885           else puts (dlerror ());
10886         }
10887       /* dlclose (self); */
10888     }
10889   else
10890     puts (dlerror ());
10891
10892   return status;
10893 }
10894 _LT_EOF
10895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10896   (eval $ac_link) 2>&5
10897   ac_status=$?
10898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10900     (./conftest; exit; ) >&5 2>/dev/null
10901     lt_status=$?
10902     case x$lt_status in
10903       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10904       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10905       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10906     esac
10907   else :
10908     # compilation failed
10909     lt_cv_dlopen_self=no
10910   fi
10911 fi
10912 rm -fr conftest*
10913
10914
10915 fi
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10917 $as_echo "$lt_cv_dlopen_self" >&6; }
10918
10919     if test "x$lt_cv_dlopen_self" = xyes; then
10920       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10922 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10923 if ${lt_cv_dlopen_self_static+:} false; then :
10924   $as_echo_n "(cached) " >&6
10925 else
10926           if test "$cross_compiling" = yes; then :
10927   lt_cv_dlopen_self_static=cross
10928 else
10929   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930   lt_status=$lt_dlunknown
10931   cat > conftest.$ac_ext <<_LT_EOF
10932 #line $LINENO "configure"
10933 #include "confdefs.h"
10934
10935 #if HAVE_DLFCN_H
10936 #include <dlfcn.h>
10937 #endif
10938
10939 #include <stdio.h>
10940
10941 #ifdef RTLD_GLOBAL
10942 #  define LT_DLGLOBAL           RTLD_GLOBAL
10943 #else
10944 #  ifdef DL_GLOBAL
10945 #    define LT_DLGLOBAL         DL_GLOBAL
10946 #  else
10947 #    define LT_DLGLOBAL         0
10948 #  endif
10949 #endif
10950
10951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952    find out it does not work in some platform. */
10953 #ifndef LT_DLLAZY_OR_NOW
10954 #  ifdef RTLD_LAZY
10955 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10956 #  else
10957 #    ifdef DL_LAZY
10958 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10959 #    else
10960 #      ifdef RTLD_NOW
10961 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10962 #      else
10963 #        ifdef DL_NOW
10964 #          define LT_DLLAZY_OR_NOW      DL_NOW
10965 #        else
10966 #          define LT_DLLAZY_OR_NOW      0
10967 #        endif
10968 #      endif
10969 #    endif
10970 #  endif
10971 #endif
10972
10973 /* When -fvisbility=hidden is used, assume the code has been annotated
10974    correspondingly for the symbols needed.  */
10975 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10976 int fnord () __attribute__((visibility("default")));
10977 #endif
10978
10979 int fnord () { return 42; }
10980 int main ()
10981 {
10982   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10983   int status = $lt_dlunknown;
10984
10985   if (self)
10986     {
10987       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10988       else
10989         {
10990           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10991           else puts (dlerror ());
10992         }
10993       /* dlclose (self); */
10994     }
10995   else
10996     puts (dlerror ());
10997
10998   return status;
10999 }
11000 _LT_EOF
11001   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11002   (eval $ac_link) 2>&5
11003   ac_status=$?
11004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11006     (./conftest; exit; ) >&5 2>/dev/null
11007     lt_status=$?
11008     case x$lt_status in
11009       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11010       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11011       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11012     esac
11013   else :
11014     # compilation failed
11015     lt_cv_dlopen_self_static=no
11016   fi
11017 fi
11018 rm -fr conftest*
11019
11020
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11024     fi
11025
11026     CPPFLAGS="$save_CPPFLAGS"
11027     LDFLAGS="$save_LDFLAGS"
11028     LIBS="$save_LIBS"
11029     ;;
11030   esac
11031
11032   case $lt_cv_dlopen_self in
11033   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11034   *) enable_dlopen_self=unknown ;;
11035   esac
11036
11037   case $lt_cv_dlopen_self_static in
11038   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11039   *) enable_dlopen_self_static=unknown ;;
11040   esac
11041 fi
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059 striplib=
11060 old_striplib=
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11062 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11063 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11064   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11065   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; }
11068 else
11069 # FIXME - insert some real tests, host_os isn't really good enough
11070   case $host_os in
11071   darwin*)
11072     if test -n "$STRIP" ; then
11073       striplib="$STRIP -x"
11074       old_striplib="$STRIP -S"
11075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11077     else
11078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080     fi
11081     ;;
11082   *)
11083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085     ;;
11086   esac
11087 fi
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100   # Report which library types will actually be built
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11102 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11104 $as_echo "$can_build_shared" >&6; }
11105
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11107 $as_echo_n "checking whether to build shared libraries... " >&6; }
11108   test "$can_build_shared" = "no" && enable_shared=no
11109
11110   # On AIX, shared libraries and static libraries use the same namespace, and
11111   # are all built from PIC.
11112   case $host_os in
11113   aix3*)
11114     test "$enable_shared" = yes && enable_static=no
11115     if test -n "$RANLIB"; then
11116       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11117       postinstall_cmds='$RANLIB $lib'
11118     fi
11119     ;;
11120
11121   aix[4-9]*)
11122     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11123       test "$enable_shared" = yes && enable_static=no
11124     fi
11125     ;;
11126   esac
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11128 $as_echo "$enable_shared" >&6; }
11129
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11131 $as_echo_n "checking whether to build static libraries... " >&6; }
11132   # Make sure either enable_shared or enable_static is yes.
11133   test "$enable_shared" = yes || enable_static=yes
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11135 $as_echo "$enable_static" >&6; }
11136
11137
11138
11139
11140 fi
11141 ac_ext=c
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11146
11147 CC="$lt_save_CC"
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163         ac_config_commands="$ac_config_commands libtool"
11164
11165
11166
11167
11168 # Only expand once:
11169
11170
11171
11172
11173 STATIC=""
11174 test "X$enable_static" = Xyes && STATIC="-static"
11175
11176
11177
11178 ## -------- ##
11179 ## Outputs. ##
11180 ## -------- ##
11181 ac_config_files="$ac_config_files Makefile"
11182
11183 cat >confcache <<\_ACEOF
11184 # This file is a shell script that caches the results of configure
11185 # tests run on this system so they can be shared between configure
11186 # scripts and configure runs, see configure's option --config-cache.
11187 # It is not useful on other systems.  If it contains results you don't
11188 # want to keep, you may remove or edit it.
11189 #
11190 # config.status only pays attention to the cache file if you give it
11191 # the --recheck option to rerun configure.
11192 #
11193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11195 # following values.
11196
11197 _ACEOF
11198
11199 # The following way of writing the cache mishandles newlines in values,
11200 # but we know of no workaround that is simple, portable, and efficient.
11201 # So, we kill variables containing newlines.
11202 # Ultrix sh set writes to stderr and can't be redirected directly,
11203 # and sets the high bit in the cache file unless we assign to the vars.
11204 (
11205   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11206     eval ac_val=\$$ac_var
11207     case $ac_val in #(
11208     *${as_nl}*)
11209       case $ac_var in #(
11210       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11212       esac
11213       case $ac_var in #(
11214       _ | IFS | as_nl) ;; #(
11215       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11216       *) { eval $ac_var=; unset $ac_var;} ;;
11217       esac ;;
11218     esac
11219   done
11220
11221   (set) 2>&1 |
11222     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11223     *${as_nl}ac_space=\ *)
11224       # `set' does not quote correctly, so add quotes: double-quote
11225       # substitution turns \\\\ into \\, and sed turns \\ into \.
11226       sed -n \
11227         "s/'/'\\\\''/g;
11228           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11229       ;; #(
11230     *)
11231       # `set' quotes correctly as required by POSIX, so do not add quotes.
11232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11233       ;;
11234     esac |
11235     sort
11236 ) |
11237   sed '
11238      /^ac_cv_env_/b end
11239      t clear
11240      :clear
11241      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11242      t end
11243      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11244      :end' >>confcache
11245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11246   if test -w "$cache_file"; then
11247     if test "x$cache_file" != "x/dev/null"; then
11248       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11249 $as_echo "$as_me: updating cache $cache_file" >&6;}
11250       if test ! -f "$cache_file" || test -h "$cache_file"; then
11251         cat confcache >"$cache_file"
11252       else
11253         case $cache_file in #(
11254         */* | ?:*)
11255           mv -f confcache "$cache_file"$$ &&
11256           mv -f "$cache_file"$$ "$cache_file" ;; #(
11257         *)
11258           mv -f confcache "$cache_file" ;;
11259         esac
11260       fi
11261     fi
11262   else
11263     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11265   fi
11266 fi
11267 rm -f confcache
11268
11269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11270 # Let make expand exec_prefix.
11271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11272
11273 # Transform confdefs.h into DEFS.
11274 # Protect against shell expansion while executing Makefile rules.
11275 # Protect against Makefile macro expansion.
11276 #
11277 # If the first sed substitution is executed (which looks for macros that
11278 # take arguments), then branch to the quote section.  Otherwise,
11279 # look for a macro that doesn't take arguments.
11280 ac_script='
11281 :mline
11282 /\\$/{
11283  N
11284  s,\\\n,,
11285  b mline
11286 }
11287 t clear
11288 :clear
11289 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11290 t quote
11291 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11292 t quote
11293 b any
11294 :quote
11295 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11296 s/\[/\\&/g
11297 s/\]/\\&/g
11298 s/\$/$$/g
11299 H
11300 :any
11301 ${
11302         g
11303         s/^\n//
11304         s/\n/ /g
11305         p
11306 }
11307 '
11308 DEFS=`sed -n "$ac_script" confdefs.h`
11309
11310
11311 ac_libobjs=
11312 ac_ltlibobjs=
11313 U=
11314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11315   # 1. Remove the extension, and $U if already installed.
11316   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11317   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11318   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11319   #    will be set to the directory where LIBOBJS objects are built.
11320   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11321   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11322 done
11323 LIBOBJS=$ac_libobjs
11324
11325 LTLIBOBJS=$ac_ltlibobjs
11326
11327
11328  if test -n "$EXEEXT"; then
11329   am__EXEEXT_TRUE=
11330   am__EXEEXT_FALSE='#'
11331 else
11332   am__EXEEXT_TRUE='#'
11333   am__EXEEXT_FALSE=
11334 fi
11335
11336 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11337   as_fn_error $? "conditional \"AMDEP\" was never defined.
11338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11339 fi
11340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11341   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11343 fi
11344
11345 : "${CONFIG_STATUS=./config.status}"
11346 ac_write_fail=0
11347 ac_clean_files_save=$ac_clean_files
11348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11351 as_write_fail=0
11352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11353 #! $SHELL
11354 # Generated by $as_me.
11355 # Run this file to recreate the current configuration.
11356 # Compiler output produced by configure, useful for debugging
11357 # configure, is in config.log if it exists.
11358
11359 debug=false
11360 ac_cs_recheck=false
11361 ac_cs_silent=false
11362
11363 SHELL=\${CONFIG_SHELL-$SHELL}
11364 export SHELL
11365 _ASEOF
11366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11367 ## -------------------- ##
11368 ## M4sh Initialization. ##
11369 ## -------------------- ##
11370
11371 # Be more Bourne compatible
11372 DUALCASE=1; export DUALCASE # for MKS sh
11373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11374   emulate sh
11375   NULLCMD=:
11376   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11377   # is contrary to our usage.  Disable this feature.
11378   alias -g '${1+"$@"}'='"$@"'
11379   setopt NO_GLOB_SUBST
11380 else
11381   case `(set -o) 2>/dev/null` in #(
11382   *posix*) :
11383     set -o posix ;; #(
11384   *) :
11385      ;;
11386 esac
11387 fi
11388
11389
11390 as_nl='
11391 '
11392 export as_nl
11393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11397 # Prefer a ksh shell builtin over an external printf program on Solaris,
11398 # but without wasting forks for bash or zsh.
11399 if test -z "$BASH_VERSION$ZSH_VERSION" \
11400     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11401   as_echo='print -r --'
11402   as_echo_n='print -rn --'
11403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11404   as_echo='printf %s\n'
11405   as_echo_n='printf %s'
11406 else
11407   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11408     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11409     as_echo_n='/usr/ucb/echo -n'
11410   else
11411     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11412     as_echo_n_body='eval
11413       arg=$1;
11414       case $arg in #(
11415       *"$as_nl"*)
11416         expr "X$arg" : "X\\(.*\\)$as_nl";
11417         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11418       esac;
11419       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11420     '
11421     export as_echo_n_body
11422     as_echo_n='sh -c $as_echo_n_body as_echo'
11423   fi
11424   export as_echo_body
11425   as_echo='sh -c $as_echo_body as_echo'
11426 fi
11427
11428 # The user is always right.
11429 if test "${PATH_SEPARATOR+set}" != set; then
11430   PATH_SEPARATOR=:
11431   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11432     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11433       PATH_SEPARATOR=';'
11434   }
11435 fi
11436
11437
11438 # IFS
11439 # We need space, tab and new line, in precisely that order.  Quoting is
11440 # there to prevent editors from complaining about space-tab.
11441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11442 # splitting by setting IFS to empty value.)
11443 IFS=" ""        $as_nl"
11444
11445 # Find who we are.  Look in the path if we contain no directory separator.
11446 as_myself=
11447 case $0 in #((
11448   *[\\/]* ) as_myself=$0 ;;
11449   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11455   done
11456 IFS=$as_save_IFS
11457
11458      ;;
11459 esac
11460 # We did not find ourselves, most probably we were run as `sh COMMAND'
11461 # in which case we are not to be found in the path.
11462 if test "x$as_myself" = x; then
11463   as_myself=$0
11464 fi
11465 if test ! -f "$as_myself"; then
11466   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11467   exit 1
11468 fi
11469
11470 # Unset variables that we do not need and which cause bugs (e.g. in
11471 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11472 # suppresses any "Segmentation fault" message there.  '((' could
11473 # trigger a bug in pdksh 5.2.14.
11474 for as_var in BASH_ENV ENV MAIL MAILPATH
11475 do eval test x\${$as_var+set} = xset \
11476   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11477 done
11478 PS1='$ '
11479 PS2='> '
11480 PS4='+ '
11481
11482 # NLS nuisances.
11483 LC_ALL=C
11484 export LC_ALL
11485 LANGUAGE=C
11486 export LANGUAGE
11487
11488 # CDPATH.
11489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11490
11491
11492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11493 # ----------------------------------------
11494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11496 # script with STATUS, using 1 if that was 0.
11497 as_fn_error ()
11498 {
11499   as_status=$1; test $as_status -eq 0 && as_status=1
11500   if test "$4"; then
11501     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11502     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11503   fi
11504   $as_echo "$as_me: error: $2" >&2
11505   as_fn_exit $as_status
11506 } # as_fn_error
11507
11508
11509 # as_fn_set_status STATUS
11510 # -----------------------
11511 # Set $? to STATUS, without forking.
11512 as_fn_set_status ()
11513 {
11514   return $1
11515 } # as_fn_set_status
11516
11517 # as_fn_exit STATUS
11518 # -----------------
11519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11520 as_fn_exit ()
11521 {
11522   set +e
11523   as_fn_set_status $1
11524   exit $1
11525 } # as_fn_exit
11526
11527 # as_fn_unset VAR
11528 # ---------------
11529 # Portably unset VAR.
11530 as_fn_unset ()
11531 {
11532   { eval $1=; unset $1;}
11533 }
11534 as_unset=as_fn_unset
11535 # as_fn_append VAR VALUE
11536 # ----------------------
11537 # Append the text in VALUE to the end of the definition contained in VAR. Take
11538 # advantage of any shell optimizations that allow amortized linear growth over
11539 # repeated appends, instead of the typical quadratic growth present in naive
11540 # implementations.
11541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11542   eval 'as_fn_append ()
11543   {
11544     eval $1+=\$2
11545   }'
11546 else
11547   as_fn_append ()
11548   {
11549     eval $1=\$$1\$2
11550   }
11551 fi # as_fn_append
11552
11553 # as_fn_arith ARG...
11554 # ------------------
11555 # Perform arithmetic evaluation on the ARGs, and store the result in the
11556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11557 # must be portable across $(()) and expr.
11558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11559   eval 'as_fn_arith ()
11560   {
11561     as_val=$(( $* ))
11562   }'
11563 else
11564   as_fn_arith ()
11565   {
11566     as_val=`expr "$@" || test $? -eq 1`
11567   }
11568 fi # as_fn_arith
11569
11570
11571 if expr a : '\(a\)' >/dev/null 2>&1 &&
11572    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11573   as_expr=expr
11574 else
11575   as_expr=false
11576 fi
11577
11578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11579   as_basename=basename
11580 else
11581   as_basename=false
11582 fi
11583
11584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11585   as_dirname=dirname
11586 else
11587   as_dirname=false
11588 fi
11589
11590 as_me=`$as_basename -- "$0" ||
11591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11592          X"$0" : 'X\(//\)$' \| \
11593          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11594 $as_echo X/"$0" |
11595     sed '/^.*\/\([^/][^/]*\)\/*$/{
11596             s//\1/
11597             q
11598           }
11599           /^X\/\(\/\/\)$/{
11600             s//\1/
11601             q
11602           }
11603           /^X\/\(\/\).*/{
11604             s//\1/
11605             q
11606           }
11607           s/.*/./; q'`
11608
11609 # Avoid depending upon Character Ranges.
11610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11613 as_cr_digits='0123456789'
11614 as_cr_alnum=$as_cr_Letters$as_cr_digits
11615
11616 ECHO_C= ECHO_N= ECHO_T=
11617 case `echo -n x` in #(((((
11618 -n*)
11619   case `echo 'xy\c'` in
11620   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11621   xy)  ECHO_C='\c';;
11622   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11623        ECHO_T=' ';;
11624   esac;;
11625 *)
11626   ECHO_N='-n';;
11627 esac
11628
11629 rm -f conf$$ conf$$.exe conf$$.file
11630 if test -d conf$$.dir; then
11631   rm -f conf$$.dir/conf$$.file
11632 else
11633   rm -f conf$$.dir
11634   mkdir conf$$.dir 2>/dev/null
11635 fi
11636 if (echo >conf$$.file) 2>/dev/null; then
11637   if ln -s conf$$.file conf$$ 2>/dev/null; then
11638     as_ln_s='ln -s'
11639     # ... but there are two gotchas:
11640     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11641     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11642     # In both cases, we have to default to `cp -p'.
11643     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11644       as_ln_s='cp -p'
11645   elif ln conf$$.file conf$$ 2>/dev/null; then
11646     as_ln_s=ln
11647   else
11648     as_ln_s='cp -p'
11649   fi
11650 else
11651   as_ln_s='cp -p'
11652 fi
11653 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11654 rmdir conf$$.dir 2>/dev/null
11655
11656
11657 # as_fn_mkdir_p
11658 # -------------
11659 # Create "$as_dir" as a directory, including parents if necessary.
11660 as_fn_mkdir_p ()
11661 {
11662
11663   case $as_dir in #(
11664   -*) as_dir=./$as_dir;;
11665   esac
11666   test -d "$as_dir" || eval $as_mkdir_p || {
11667     as_dirs=
11668     while :; do
11669       case $as_dir in #(
11670       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11671       *) as_qdir=$as_dir;;
11672       esac
11673       as_dirs="'$as_qdir' $as_dirs"
11674       as_dir=`$as_dirname -- "$as_dir" ||
11675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11676          X"$as_dir" : 'X\(//\)[^/]' \| \
11677          X"$as_dir" : 'X\(//\)$' \| \
11678          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11679 $as_echo X"$as_dir" |
11680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11681             s//\1/
11682             q
11683           }
11684           /^X\(\/\/\)[^/].*/{
11685             s//\1/
11686             q
11687           }
11688           /^X\(\/\/\)$/{
11689             s//\1/
11690             q
11691           }
11692           /^X\(\/\).*/{
11693             s//\1/
11694             q
11695           }
11696           s/.*/./; q'`
11697       test -d "$as_dir" && break
11698     done
11699     test -z "$as_dirs" || eval "mkdir $as_dirs"
11700   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11701
11702
11703 } # as_fn_mkdir_p
11704 if mkdir -p . 2>/dev/null; then
11705   as_mkdir_p='mkdir -p "$as_dir"'
11706 else
11707   test -d ./-p && rmdir ./-p
11708   as_mkdir_p=false
11709 fi
11710
11711 if test -x / >/dev/null 2>&1; then
11712   as_test_x='test -x'
11713 else
11714   if ls -dL / >/dev/null 2>&1; then
11715     as_ls_L_option=L
11716   else
11717     as_ls_L_option=
11718   fi
11719   as_test_x='
11720     eval sh -c '\''
11721       if test -d "$1"; then
11722         test -d "$1/.";
11723       else
11724         case $1 in #(
11725         -*)set "./$1";;
11726         esac;
11727         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11728         ???[sx]*):;;*)false;;esac;fi
11729     '\'' sh
11730   '
11731 fi
11732 as_executable_p=$as_test_x
11733
11734 # Sed expression to map a string onto a valid CPP name.
11735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11736
11737 # Sed expression to map a string onto a valid variable name.
11738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11739
11740
11741 exec 6>&1
11742 ## ----------------------------------- ##
11743 ## Main body of $CONFIG_STATUS script. ##
11744 ## ----------------------------------- ##
11745 _ASEOF
11746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11747
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 # Save the log message, to keep $0 and so on meaningful, and to
11750 # report actual input values of CONFIG_FILES etc. instead of their
11751 # values after options handling.
11752 ac_log="
11753 This file was extended by mdemo2 $as_me 1.0, which was
11754 generated by GNU Autoconf 2.68.  Invocation command line was
11755
11756   CONFIG_FILES    = $CONFIG_FILES
11757   CONFIG_HEADERS  = $CONFIG_HEADERS
11758   CONFIG_LINKS    = $CONFIG_LINKS
11759   CONFIG_COMMANDS = $CONFIG_COMMANDS
11760   $ $0 $@
11761
11762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11763 "
11764
11765 _ACEOF
11766
11767 case $ac_config_files in *"
11768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11769 esac
11770
11771
11772
11773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11774 # Files that config.status was made for.
11775 config_files="$ac_config_files"
11776 config_commands="$ac_config_commands"
11777
11778 _ACEOF
11779
11780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11781 ac_cs_usage="\
11782 \`$as_me' instantiates files and other configuration actions
11783 from templates according to the current configuration.  Unless the files
11784 and actions are specified as TAGs, all are instantiated by default.
11785
11786 Usage: $0 [OPTION]... [TAG]...
11787
11788   -h, --help       print this help, then exit
11789   -V, --version    print version number and configuration settings, then exit
11790       --config     print configuration, then exit
11791   -q, --quiet, --silent
11792                    do not print progress messages
11793   -d, --debug      don't remove temporary files
11794       --recheck    update $as_me by reconfiguring in the same conditions
11795       --file=FILE[:TEMPLATE]
11796                    instantiate the configuration file FILE
11797
11798 Configuration files:
11799 $config_files
11800
11801 Configuration commands:
11802 $config_commands
11803
11804 Report bugs to <bug-libtool@gnu.org>."
11805
11806 _ACEOF
11807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11809 ac_cs_version="\\
11810 mdemo2 config.status 1.0
11811 configured by $0, generated by GNU Autoconf 2.68,
11812   with options \\"\$ac_cs_config\\"
11813
11814 Copyright (C) 2010 Free Software Foundation, Inc.
11815 This config.status script is free software; the Free Software Foundation
11816 gives unlimited permission to copy, distribute and modify it."
11817
11818 ac_pwd='$ac_pwd'
11819 srcdir='$srcdir'
11820 INSTALL='$INSTALL'
11821 MKDIR_P='$MKDIR_P'
11822 AWK='$AWK'
11823 test -n "\$AWK" || AWK=awk
11824 _ACEOF
11825
11826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11827 # The default lists apply if the user does not specify any file.
11828 ac_need_defaults=:
11829 while test $# != 0
11830 do
11831   case $1 in
11832   --*=?*)
11833     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11834     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11835     ac_shift=:
11836     ;;
11837   --*=)
11838     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11839     ac_optarg=
11840     ac_shift=:
11841     ;;
11842   *)
11843     ac_option=$1
11844     ac_optarg=$2
11845     ac_shift=shift
11846     ;;
11847   esac
11848
11849   case $ac_option in
11850   # Handling of the options.
11851   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11852     ac_cs_recheck=: ;;
11853   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11854     $as_echo "$ac_cs_version"; exit ;;
11855   --config | --confi | --conf | --con | --co | --c )
11856     $as_echo "$ac_cs_config"; exit ;;
11857   --debug | --debu | --deb | --de | --d | -d )
11858     debug=: ;;
11859   --file | --fil | --fi | --f )
11860     $ac_shift
11861     case $ac_optarg in
11862     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11863     '') as_fn_error $? "missing file argument" ;;
11864     esac
11865     as_fn_append CONFIG_FILES " '$ac_optarg'"
11866     ac_need_defaults=false;;
11867   --he | --h |  --help | --hel | -h )
11868     $as_echo "$ac_cs_usage"; exit ;;
11869   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11870   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11871     ac_cs_silent=: ;;
11872
11873   # This is an error.
11874   -*) as_fn_error $? "unrecognized option: \`$1'
11875 Try \`$0 --help' for more information." ;;
11876
11877   *) as_fn_append ac_config_targets " $1"
11878      ac_need_defaults=false ;;
11879
11880   esac
11881   shift
11882 done
11883
11884 ac_configure_extra_args=
11885
11886 if $ac_cs_silent; then
11887   exec 6>/dev/null
11888   ac_configure_extra_args="$ac_configure_extra_args --silent"
11889 fi
11890
11891 _ACEOF
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893 if \$ac_cs_recheck; then
11894   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11895   shift
11896   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11897   CONFIG_SHELL='$SHELL'
11898   export CONFIG_SHELL
11899   exec "\$@"
11900 fi
11901
11902 _ACEOF
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 exec 5>>config.log
11905 {
11906   echo
11907   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11908 ## Running $as_me. ##
11909 _ASBOX
11910   $as_echo "$ac_log"
11911 } >&5
11912
11913 _ACEOF
11914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11915 #
11916 # INIT-COMMANDS
11917 #
11918 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11919
11920
11921 # The HP-UX ksh and POSIX shell print the target directory to stdout
11922 # if CDPATH is set.
11923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11924
11925 sed_quote_subst='$sed_quote_subst'
11926 double_quote_subst='$double_quote_subst'
11927 delay_variable_subst='$delay_variable_subst'
11928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11931 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11936 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
11937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
11958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
11959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
11965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
11966 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11967 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11968 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11969 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11970 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
11971 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11972 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11973 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11974 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11975 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11976 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11977 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11978 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11979 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11980 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11981 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11982 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11983 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11984 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"`'
11985 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
11986 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
11987 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11988 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11989 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11990 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11991 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11992 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11993 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11994 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11995 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
11996 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11997 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11998 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11999 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12000 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12001 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12002 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12003 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12004 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12005 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12006 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12007 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12008 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12009 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12010 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12011 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12012 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12013 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12014 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12015 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12016 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12017 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12018 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12019 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12020 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12021 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12022 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12023 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12024 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12025 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12026 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12027 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12028 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12029 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12030 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12031 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12032 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12033 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12034 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12035 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12036 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12037 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12038 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12039 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12040 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12041 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12042 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12043 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12044 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12045 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12046 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12047 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12048 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12049 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12050 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12051 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12058
12059 LTCC='$LTCC'
12060 LTCFLAGS='$LTCFLAGS'
12061 compiler='$compiler_DEFAULT'
12062
12063 # A function that is used when there is no print builtin or printf.
12064 func_fallback_echo ()
12065 {
12066   eval 'cat <<_LTECHO_EOF
12067 \$1
12068 _LTECHO_EOF'
12069 }
12070
12071 # Quote evaled strings.
12072 for var in SHELL \
12073 ECHO \
12074 PATH_SEPARATOR \
12075 SED \
12076 GREP \
12077 EGREP \
12078 FGREP \
12079 LD \
12080 NM \
12081 LN_S \
12082 lt_SP2NL \
12083 lt_NL2SP \
12084 reload_flag \
12085 OBJDUMP \
12086 deplibs_check_method \
12087 file_magic_cmd \
12088 file_magic_glob \
12089 want_nocaseglob \
12090 DLLTOOL \
12091 sharedlib_from_linklib_cmd \
12092 AR \
12093 AR_FLAGS \
12094 archiver_list_spec \
12095 STRIP \
12096 RANLIB \
12097 CC \
12098 CFLAGS \
12099 compiler \
12100 lt_cv_sys_global_symbol_pipe \
12101 lt_cv_sys_global_symbol_to_cdecl \
12102 lt_cv_sys_global_symbol_to_c_name_address \
12103 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12104 nm_file_list_spec \
12105 lt_prog_compiler_no_builtin_flag \
12106 lt_prog_compiler_pic \
12107 lt_prog_compiler_wl \
12108 lt_prog_compiler_static \
12109 lt_cv_prog_compiler_c_o \
12110 need_locks \
12111 MANIFEST_TOOL \
12112 DSYMUTIL \
12113 NMEDIT \
12114 LIPO \
12115 OTOOL \
12116 OTOOL64 \
12117 shrext_cmds \
12118 export_dynamic_flag_spec \
12119 whole_archive_flag_spec \
12120 compiler_needs_object \
12121 with_gnu_ld \
12122 allow_undefined_flag \
12123 no_undefined_flag \
12124 hardcode_libdir_flag_spec \
12125 hardcode_libdir_separator \
12126 exclude_expsyms \
12127 include_expsyms \
12128 file_list_spec \
12129 variables_saved_for_relink \
12130 libname_spec \
12131 library_names_spec \
12132 soname_spec \
12133 install_override_mode \
12134 finish_eval \
12135 old_striplib \
12136 striplib; do
12137     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12138     *[\\\\\\\`\\"\\\$]*)
12139       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12140       ;;
12141     *)
12142       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12143       ;;
12144     esac
12145 done
12146
12147 # Double-quote double-evaled strings.
12148 for var in reload_cmds \
12149 old_postinstall_cmds \
12150 old_postuninstall_cmds \
12151 old_archive_cmds \
12152 extract_expsyms_cmds \
12153 old_archive_from_new_cmds \
12154 old_archive_from_expsyms_cmds \
12155 archive_cmds \
12156 archive_expsym_cmds \
12157 module_cmds \
12158 module_expsym_cmds \
12159 export_symbols_cmds \
12160 prelink_cmds \
12161 postlink_cmds \
12162 postinstall_cmds \
12163 postuninstall_cmds \
12164 finish_cmds \
12165 sys_lib_search_path_spec \
12166 sys_lib_dlsearch_path_spec; do
12167     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12168     *[\\\\\\\`\\"\\\$]*)
12169       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12170       ;;
12171     *)
12172       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12173       ;;
12174     esac
12175 done
12176
12177 ac_aux_dir='$ac_aux_dir'
12178 xsi_shell='$xsi_shell'
12179 lt_shell_append='$lt_shell_append'
12180
12181 # See if we are running on zsh, and set the options which allow our
12182 # commands through without removal of \ escapes INIT.
12183 if test -n "\${ZSH_VERSION+set}" ; then
12184    setopt NO_GLOB_SUBST
12185 fi
12186
12187
12188     PACKAGE='$PACKAGE'
12189     VERSION='$VERSION'
12190     TIMESTAMP='$TIMESTAMP'
12191     RM='$RM'
12192     ofile='$ofile'
12193
12194
12195
12196
12197 _ACEOF
12198
12199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200
12201 # Handling of arguments.
12202 for ac_config_target in $ac_config_targets
12203 do
12204   case $ac_config_target in
12205     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12206     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12207     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12208
12209   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12210   esac
12211 done
12212
12213
12214 # If the user did not use the arguments to specify the items to instantiate,
12215 # then the envvar interface is used.  Set only those that are not.
12216 # We use the long form for the default assignment because of an extremely
12217 # bizarre bug on SunOS 4.1.3.
12218 if $ac_need_defaults; then
12219   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12220   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12221 fi
12222
12223 # Have a temporary directory for convenience.  Make it in the build tree
12224 # simply because there is no reason against having it here, and in addition,
12225 # creating and moving files from /tmp can sometimes cause problems.
12226 # Hook for its removal unless debugging.
12227 # Note that there is a small window in which the directory will not be cleaned:
12228 # after its creation but before its name has been assigned to `$tmp'.
12229 $debug ||
12230 {
12231   tmp= ac_tmp=
12232   trap 'exit_status=$?
12233   : "${ac_tmp:=$tmp}"
12234   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12235 ' 0
12236   trap 'as_fn_exit 1' 1 2 13 15
12237 }
12238 # Create a (secure) tmp directory for tmp files.
12239
12240 {
12241   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12242   test -d "$tmp"
12243 }  ||
12244 {
12245   tmp=./conf$$-$RANDOM
12246   (umask 077 && mkdir "$tmp")
12247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12248 ac_tmp=$tmp
12249
12250 # Set up the scripts for CONFIG_FILES section.
12251 # No need to generate them if there are no CONFIG_FILES.
12252 # This happens for instance with `./config.status config.h'.
12253 if test -n "$CONFIG_FILES"; then
12254
12255
12256 ac_cr=`echo X | tr X '\015'`
12257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12258 # But we know of no other shell where ac_cr would be empty at this
12259 # point, so we can use a bashism as a fallback.
12260 if test "x$ac_cr" = x; then
12261   eval ac_cr=\$\'\\r\'
12262 fi
12263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12265   ac_cs_awk_cr='\\r'
12266 else
12267   ac_cs_awk_cr=$ac_cr
12268 fi
12269
12270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12271 _ACEOF
12272
12273
12274 {
12275   echo "cat >conf$$subs.awk <<_ACEOF" &&
12276   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12277   echo "_ACEOF"
12278 } >conf$$subs.sh ||
12279   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12281 ac_delim='%!_!# '
12282 for ac_last_try in false false false false false :; do
12283   . ./conf$$subs.sh ||
12284     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12285
12286   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12287   if test $ac_delim_n = $ac_delim_num; then
12288     break
12289   elif $ac_last_try; then
12290     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12291   else
12292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12293   fi
12294 done
12295 rm -f conf$$subs.sh
12296
12297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12299 _ACEOF
12300 sed -n '
12301 h
12302 s/^/S["/; s/!.*/"]=/
12303 p
12304 g
12305 s/^[^!]*!//
12306 :repl
12307 t repl
12308 s/'"$ac_delim"'$//
12309 t delim
12310 :nl
12311 h
12312 s/\(.\{148\}\)..*/\1/
12313 t more1
12314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12315 p
12316 n
12317 b repl
12318 :more1
12319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12320 p
12321 g
12322 s/.\{148\}//
12323 t nl
12324 :delim
12325 h
12326 s/\(.\{148\}\)..*/\1/
12327 t more2
12328 s/["\\]/\\&/g; s/^/"/; s/$/"/
12329 p
12330 b
12331 :more2
12332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12333 p
12334 g
12335 s/.\{148\}//
12336 t delim
12337 ' <conf$$subs.awk | sed '
12338 /^[^""]/{
12339   N
12340   s/\n//
12341 }
12342 ' >>$CONFIG_STATUS || ac_write_fail=1
12343 rm -f conf$$subs.awk
12344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12345 _ACAWK
12346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12347   for (key in S) S_is_set[key] = 1
12348   FS = "\a"
12349
12350 }
12351 {
12352   line = $ 0
12353   nfields = split(line, field, "@")
12354   substed = 0
12355   len = length(field[1])
12356   for (i = 2; i < nfields; i++) {
12357     key = field[i]
12358     keylen = length(key)
12359     if (S_is_set[key]) {
12360       value = S[key]
12361       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12362       len += length(value) + length(field[++i])
12363       substed = 1
12364     } else
12365       len += 1 + keylen
12366   }
12367
12368   print line
12369 }
12370
12371 _ACAWK
12372 _ACEOF
12373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12375   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12376 else
12377   cat
12378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12379   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12380 _ACEOF
12381
12382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12384 # trailing colons and then remove the whole line if VPATH becomes empty
12385 # (actually we leave an empty line to preserve line numbers).
12386 if test "x$srcdir" = x.; then
12387   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12388 h
12389 s///
12390 s/^/:/
12391 s/[      ]*$/:/
12392 s/:\$(srcdir):/:/g
12393 s/:\${srcdir}:/:/g
12394 s/:@srcdir@:/:/g
12395 s/^:*//
12396 s/:*$//
12397 x
12398 s/\(=[   ]*\).*/\1/
12399 G
12400 s/\n//
12401 s/^[^=]*=[       ]*$//
12402 }'
12403 fi
12404
12405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12406 fi # test -n "$CONFIG_FILES"
12407
12408
12409 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12410 shift
12411 for ac_tag
12412 do
12413   case $ac_tag in
12414   :[FHLC]) ac_mode=$ac_tag; continue;;
12415   esac
12416   case $ac_mode$ac_tag in
12417   :[FHL]*:*);;
12418   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12419   :[FH]-) ac_tag=-:-;;
12420   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12421   esac
12422   ac_save_IFS=$IFS
12423   IFS=:
12424   set x $ac_tag
12425   IFS=$ac_save_IFS
12426   shift
12427   ac_file=$1
12428   shift
12429
12430   case $ac_mode in
12431   :L) ac_source=$1;;
12432   :[FH])
12433     ac_file_inputs=
12434     for ac_f
12435     do
12436       case $ac_f in
12437       -) ac_f="$ac_tmp/stdin";;
12438       *) # Look for the file first in the build tree, then in the source tree
12439          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12440          # because $ac_f cannot contain `:'.
12441          test -f "$ac_f" ||
12442            case $ac_f in
12443            [\\/$]*) false;;
12444            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12445            esac ||
12446            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12447       esac
12448       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12449       as_fn_append ac_file_inputs " '$ac_f'"
12450     done
12451
12452     # Let's still pretend it is `configure' which instantiates (i.e., don't
12453     # use $as_me), people would be surprised to read:
12454     #    /* config.h.  Generated by config.status.  */
12455     configure_input='Generated from '`
12456           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12457         `' by configure.'
12458     if test x"$ac_file" != x-; then
12459       configure_input="$ac_file.  $configure_input"
12460       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12461 $as_echo "$as_me: creating $ac_file" >&6;}
12462     fi
12463     # Neutralize special characters interpreted by sed in replacement strings.
12464     case $configure_input in #(
12465     *\&* | *\|* | *\\* )
12466        ac_sed_conf_input=`$as_echo "$configure_input" |
12467        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12468     *) ac_sed_conf_input=$configure_input;;
12469     esac
12470
12471     case $ac_tag in
12472     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12473       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12474     esac
12475     ;;
12476   esac
12477
12478   ac_dir=`$as_dirname -- "$ac_file" ||
12479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12480          X"$ac_file" : 'X\(//\)[^/]' \| \
12481          X"$ac_file" : 'X\(//\)$' \| \
12482          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12483 $as_echo X"$ac_file" |
12484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12485             s//\1/
12486             q
12487           }
12488           /^X\(\/\/\)[^/].*/{
12489             s//\1/
12490             q
12491           }
12492           /^X\(\/\/\)$/{
12493             s//\1/
12494             q
12495           }
12496           /^X\(\/\).*/{
12497             s//\1/
12498             q
12499           }
12500           s/.*/./; q'`
12501   as_dir="$ac_dir"; as_fn_mkdir_p
12502   ac_builddir=.
12503
12504 case "$ac_dir" in
12505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12506 *)
12507   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12508   # A ".." for each directory in $ac_dir_suffix.
12509   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12510   case $ac_top_builddir_sub in
12511   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12512   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12513   esac ;;
12514 esac
12515 ac_abs_top_builddir=$ac_pwd
12516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12517 # for backward compatibility:
12518 ac_top_builddir=$ac_top_build_prefix
12519
12520 case $srcdir in
12521   .)  # We are building in place.
12522     ac_srcdir=.
12523     ac_top_srcdir=$ac_top_builddir_sub
12524     ac_abs_top_srcdir=$ac_pwd ;;
12525   [\\/]* | ?:[\\/]* )  # Absolute name.
12526     ac_srcdir=$srcdir$ac_dir_suffix;
12527     ac_top_srcdir=$srcdir
12528     ac_abs_top_srcdir=$srcdir ;;
12529   *) # Relative name.
12530     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12531     ac_top_srcdir=$ac_top_build_prefix$srcdir
12532     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12533 esac
12534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12535
12536
12537   case $ac_mode in
12538   :F)
12539   #
12540   # CONFIG_FILE
12541   #
12542
12543   case $INSTALL in
12544   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12545   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12546   esac
12547   ac_MKDIR_P=$MKDIR_P
12548   case $MKDIR_P in
12549   [\\/$]* | ?:[\\/]* ) ;;
12550   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12551   esac
12552 _ACEOF
12553
12554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12555 # If the template does not know about datarootdir, expand it.
12556 # FIXME: This hack should be removed a few years after 2.60.
12557 ac_datarootdir_hack=; ac_datarootdir_seen=
12558 ac_sed_dataroot='
12559 /datarootdir/ {
12560   p
12561   q
12562 }
12563 /@datadir@/p
12564 /@docdir@/p
12565 /@infodir@/p
12566 /@localedir@/p
12567 /@mandir@/p'
12568 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12569 *datarootdir*) ac_datarootdir_seen=yes;;
12570 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12571   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12572 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12573 _ACEOF
12574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12575   ac_datarootdir_hack='
12576   s&@datadir@&$datadir&g
12577   s&@docdir@&$docdir&g
12578   s&@infodir@&$infodir&g
12579   s&@localedir@&$localedir&g
12580   s&@mandir@&$mandir&g
12581   s&\\\${datarootdir}&$datarootdir&g' ;;
12582 esac
12583 _ACEOF
12584
12585 # Neutralize VPATH when `$srcdir' = `.'.
12586 # Shell code in configure.ac might set extrasub.
12587 # FIXME: do we really want to maintain this feature?
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 ac_sed_extra="$ac_vpsub
12590 $extrasub
12591 _ACEOF
12592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593 :t
12594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12595 s|@configure_input@|$ac_sed_conf_input|;t t
12596 s&@top_builddir@&$ac_top_builddir_sub&;t t
12597 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12598 s&@srcdir@&$ac_srcdir&;t t
12599 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12600 s&@top_srcdir@&$ac_top_srcdir&;t t
12601 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12602 s&@builddir@&$ac_builddir&;t t
12603 s&@abs_builddir@&$ac_abs_builddir&;t t
12604 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12605 s&@INSTALL@&$ac_INSTALL&;t t
12606 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12607 $ac_datarootdir_hack
12608 "
12609 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12610   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12611
12612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12613   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12614   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12615       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12617 which seems to be undefined.  Please make sure it is defined" >&5
12618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12619 which seems to be undefined.  Please make sure it is defined" >&2;}
12620
12621   rm -f "$ac_tmp/stdin"
12622   case $ac_file in
12623   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12624   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12625   esac \
12626   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12627  ;;
12628
12629
12630   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12631 $as_echo "$as_me: executing $ac_file commands" >&6;}
12632  ;;
12633   esac
12634
12635
12636   case $ac_file$ac_mode in
12637     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12638   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12639   # are listed without --file.  Let's play safe and only enable the eval
12640   # if we detect the quoting.
12641   case $CONFIG_FILES in
12642   *\'*) eval set x "$CONFIG_FILES" ;;
12643   *)   set x $CONFIG_FILES ;;
12644   esac
12645   shift
12646   for mf
12647   do
12648     # Strip MF so we end up with the name of the file.
12649     mf=`echo "$mf" | sed -e 's/:.*$//'`
12650     # Check whether this is an Automake generated Makefile or not.
12651     # We used to match only the files named `Makefile.in', but
12652     # some people rename them; so instead we look at the file content.
12653     # Grep'ing the first line is not enough: some people post-process
12654     # each Makefile.in and add a new line on top of each file to say so.
12655     # Grep'ing the whole file is not good either: AIX grep has a line
12656     # limit of 2048, but all sed's we know have understand at least 4000.
12657     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12658       dirpart=`$as_dirname -- "$mf" ||
12659 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12660          X"$mf" : 'X\(//\)[^/]' \| \
12661          X"$mf" : 'X\(//\)$' \| \
12662          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12663 $as_echo X"$mf" |
12664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12665             s//\1/
12666             q
12667           }
12668           /^X\(\/\/\)[^/].*/{
12669             s//\1/
12670             q
12671           }
12672           /^X\(\/\/\)$/{
12673             s//\1/
12674             q
12675           }
12676           /^X\(\/\).*/{
12677             s//\1/
12678             q
12679           }
12680           s/.*/./; q'`
12681     else
12682       continue
12683     fi
12684     # Extract the definition of DEPDIR, am__include, and am__quote
12685     # from the Makefile without running `make'.
12686     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12687     test -z "$DEPDIR" && continue
12688     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12689     test -z "am__include" && continue
12690     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12691     # When using ansi2knr, U may be empty or an underscore; expand it
12692     U=`sed -n 's/^U = //p' < "$mf"`
12693     # Find all dependency output files, they are included files with
12694     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12695     # simplest approach to changing $(DEPDIR) to its actual value in the
12696     # expansion.
12697     for file in `sed -n "
12698       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12699          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12700       # Make sure the directory exists.
12701       test -f "$dirpart/$file" && continue
12702       fdir=`$as_dirname -- "$file" ||
12703 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12704          X"$file" : 'X\(//\)[^/]' \| \
12705          X"$file" : 'X\(//\)$' \| \
12706          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12707 $as_echo X"$file" |
12708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12709             s//\1/
12710             q
12711           }
12712           /^X\(\/\/\)[^/].*/{
12713             s//\1/
12714             q
12715           }
12716           /^X\(\/\/\)$/{
12717             s//\1/
12718             q
12719           }
12720           /^X\(\/\).*/{
12721             s//\1/
12722             q
12723           }
12724           s/.*/./; q'`
12725       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12726       # echo "creating $dirpart/$file"
12727       echo '# dummy' > "$dirpart/$file"
12728     done
12729   done
12730 }
12731  ;;
12732     "libtool":C)
12733
12734     # See if we are running on zsh, and set the options which allow our
12735     # commands through without removal of \ escapes.
12736     if test -n "${ZSH_VERSION+set}" ; then
12737       setopt NO_GLOB_SUBST
12738     fi
12739
12740     cfgfile="${ofile}T"
12741     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12742     $RM "$cfgfile"
12743
12744     cat <<_LT_EOF >> "$cfgfile"
12745 #! $SHELL
12746
12747 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12748 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12751 #
12752 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12753 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12754 #                 Foundation, Inc.
12755 #   Written by Gordon Matzigkeit, 1996
12756 #
12757 #   This file is part of GNU Libtool.
12758 #
12759 # GNU Libtool is free software; you can redistribute it and/or
12760 # modify it under the terms of the GNU General Public License as
12761 # published by the Free Software Foundation; either version 2 of
12762 # the License, or (at your option) any later version.
12763 #
12764 # As a special exception to the GNU General Public License,
12765 # if you distribute this file as part of a program or library that
12766 # is built using GNU Libtool, you may include this file under the
12767 # same distribution terms that you use for the rest of that program.
12768 #
12769 # GNU Libtool is distributed in the hope that it will be useful,
12770 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12771 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12772 # GNU General Public License for more details.
12773 #
12774 # You should have received a copy of the GNU General Public License
12775 # along with GNU Libtool; see the file COPYING.  If not, a copy
12776 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12777 # obtained by writing to the Free Software Foundation, Inc.,
12778 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12779
12780
12781 # The names of the tagged configurations supported by this script.
12782 available_tags=""
12783
12784 # ### BEGIN LIBTOOL CONFIG
12785
12786 # Which release of libtool.m4 was used?
12787 macro_version=$macro_version
12788 macro_revision=$macro_revision
12789
12790 # Whether or not to build shared libraries.
12791 build_libtool_libs=$enable_shared
12792
12793 # Whether or not to build static libraries.
12794 build_old_libs=$enable_static
12795
12796 # What type of objects to build.
12797 pic_mode=$pic_mode
12798
12799 # Whether or not to optimize for fast installation.
12800 fast_install=$enable_fast_install
12801
12802 # Shell to use when invoking shell scripts.
12803 SHELL=$lt_SHELL
12804
12805 # An echo program that protects backslashes.
12806 ECHO=$lt_ECHO
12807
12808 # The PATH separator for the build system.
12809 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12810
12811 # The host system.
12812 host_alias=$host_alias
12813 host=$host
12814 host_os=$host_os
12815
12816 # The build system.
12817 build_alias=$build_alias
12818 build=$build
12819 build_os=$build_os
12820
12821 # A sed program that does not truncate output.
12822 SED=$lt_SED
12823
12824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12825 Xsed="\$SED -e 1s/^X//"
12826
12827 # A grep program that handles long lines.
12828 GREP=$lt_GREP
12829
12830 # An ERE matcher.
12831 EGREP=$lt_EGREP
12832
12833 # A literal string matcher.
12834 FGREP=$lt_FGREP
12835
12836 # A BSD- or MS-compatible name lister.
12837 NM=$lt_NM
12838
12839 # Whether we need soft or hard links.
12840 LN_S=$lt_LN_S
12841
12842 # What is the maximum length of a command?
12843 max_cmd_len=$max_cmd_len
12844
12845 # Object file suffix (normally "o").
12846 objext=$ac_objext
12847
12848 # Executable file suffix (normally "").
12849 exeext=$exeext
12850
12851 # whether the shell understands "unset".
12852 lt_unset=$lt_unset
12853
12854 # turn spaces into newlines.
12855 SP2NL=$lt_lt_SP2NL
12856
12857 # turn newlines into spaces.
12858 NL2SP=$lt_lt_NL2SP
12859
12860 # convert \$build file names to \$host format.
12861 to_host_file_cmd=$lt_cv_to_host_file_cmd
12862
12863 # convert \$build files to toolchain format.
12864 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12865
12866 # An object symbol dumper.
12867 OBJDUMP=$lt_OBJDUMP
12868
12869 # Method to check whether dependent libraries are shared objects.
12870 deplibs_check_method=$lt_deplibs_check_method
12871
12872 # Command to use when deplibs_check_method = "file_magic".
12873 file_magic_cmd=$lt_file_magic_cmd
12874
12875 # How to find potential files when deplibs_check_method = "file_magic".
12876 file_magic_glob=$lt_file_magic_glob
12877
12878 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
12879 want_nocaseglob=$lt_want_nocaseglob
12880
12881 # DLL creation program.
12882 DLLTOOL=$lt_DLLTOOL
12883
12884 # Command to associate shared and link libraries.
12885 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12886
12887 # The archiver.
12888 AR=$lt_AR
12889
12890 # Flags to create an archive.
12891 AR_FLAGS=$lt_AR_FLAGS
12892
12893 # How to feed a file listing to the archiver.
12894 archiver_list_spec=$lt_archiver_list_spec
12895
12896 # A symbol stripping program.
12897 STRIP=$lt_STRIP
12898
12899 # Commands used to install an old-style archive.
12900 RANLIB=$lt_RANLIB
12901 old_postinstall_cmds=$lt_old_postinstall_cmds
12902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12903
12904 # Whether to use a lock for old archive extraction.
12905 lock_old_archive_extraction=$lock_old_archive_extraction
12906
12907 # A C compiler.
12908 LTCC=$lt_CC
12909
12910 # LTCC compiler flags.
12911 LTCFLAGS=$lt_CFLAGS
12912
12913 # Take the output of nm and produce a listing of raw symbols and C names.
12914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12915
12916 # Transform the output of nm in a proper C declaration.
12917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12918
12919 # Transform the output of nm in a C name address pair.
12920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12921
12922 # Transform the output of nm in a C name address pair when lib prefix is needed.
12923 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12924
12925 # Specify filename containing input files for \$NM.
12926 nm_file_list_spec=$lt_nm_file_list_spec
12927
12928 # The root where to search for dependent libraries,and in which our libraries should be installed.
12929 lt_sysroot=$lt_sysroot
12930
12931 # The name of the directory that contains temporary libtool files.
12932 objdir=$objdir
12933
12934 # Used to examine libraries when file_magic_cmd begins with "file".
12935 MAGIC_CMD=$MAGIC_CMD
12936
12937 # Must we lock files when doing compilation?
12938 need_locks=$lt_need_locks
12939
12940 # Manifest tool.
12941 MANIFEST_TOOL=$lt_MANIFEST_TOOL
12942
12943 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12944 DSYMUTIL=$lt_DSYMUTIL
12945
12946 # Tool to change global to local symbols on Mac OS X.
12947 NMEDIT=$lt_NMEDIT
12948
12949 # Tool to manipulate fat objects and archives on Mac OS X.
12950 LIPO=$lt_LIPO
12951
12952 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12953 OTOOL=$lt_OTOOL
12954
12955 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12956 OTOOL64=$lt_OTOOL64
12957
12958 # Old archive suffix (normally "a").
12959 libext=$libext
12960
12961 # Shared library suffix (normally ".so").
12962 shrext_cmds=$lt_shrext_cmds
12963
12964 # The commands to extract the exported symbol list from a shared archive.
12965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12966
12967 # Variables whose values should be saved in libtool wrapper scripts and
12968 # restored at link time.
12969 variables_saved_for_relink=$lt_variables_saved_for_relink
12970
12971 # Do we need the "lib" prefix for modules?
12972 need_lib_prefix=$need_lib_prefix
12973
12974 # Do we need a version for libraries?
12975 need_version=$need_version
12976
12977 # Library versioning type.
12978 version_type=$version_type
12979
12980 # Shared library runtime path variable.
12981 runpath_var=$runpath_var
12982
12983 # Shared library path variable.
12984 shlibpath_var=$shlibpath_var
12985
12986 # Is shlibpath searched before the hard-coded library search path?
12987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12988
12989 # Format of library name prefix.
12990 libname_spec=$lt_libname_spec
12991
12992 # List of archive names.  First name is the real one, the rest are links.
12993 # The last name is the one that the linker finds with -lNAME
12994 library_names_spec=$lt_library_names_spec
12995
12996 # The coded name of the library, if different from the real name.
12997 soname_spec=$lt_soname_spec
12998
12999 # Permission mode override for installation of shared libraries.
13000 install_override_mode=$lt_install_override_mode
13001
13002 # Command to use after installation of a shared archive.
13003 postinstall_cmds=$lt_postinstall_cmds
13004
13005 # Command to use after uninstallation of a shared archive.
13006 postuninstall_cmds=$lt_postuninstall_cmds
13007
13008 # Commands used to finish a libtool library installation in a directory.
13009 finish_cmds=$lt_finish_cmds
13010
13011 # As "finish_cmds", except a single script fragment to be evaled but
13012 # not shown.
13013 finish_eval=$lt_finish_eval
13014
13015 # Whether we should hardcode library paths into libraries.
13016 hardcode_into_libs=$hardcode_into_libs
13017
13018 # Compile-time system search path for libraries.
13019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13020
13021 # Run-time system search path for libraries.
13022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13023
13024 # Whether dlopen is supported.
13025 dlopen_support=$enable_dlopen
13026
13027 # Whether dlopen of programs is supported.
13028 dlopen_self=$enable_dlopen_self
13029
13030 # Whether dlopen of statically linked programs is supported.
13031 dlopen_self_static=$enable_dlopen_self_static
13032
13033 # Commands to strip libraries.
13034 old_striplib=$lt_old_striplib
13035 striplib=$lt_striplib
13036
13037
13038 # The linker used to build libraries.
13039 LD=$lt_LD
13040
13041 # How to create reloadable object files.
13042 reload_flag=$lt_reload_flag
13043 reload_cmds=$lt_reload_cmds
13044
13045 # Commands used to build an old-style archive.
13046 old_archive_cmds=$lt_old_archive_cmds
13047
13048 # A language specific compiler.
13049 CC=$lt_compiler
13050
13051 # Is the compiler the GNU compiler?
13052 with_gcc=$GCC
13053
13054 # Compiler flag to turn off builtin functions.
13055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13056
13057 # Additional compiler flags for building library objects.
13058 pic_flag=$lt_lt_prog_compiler_pic
13059
13060 # How to pass a linker flag through the compiler.
13061 wl=$lt_lt_prog_compiler_wl
13062
13063 # Compiler flag to prevent dynamic linking.
13064 link_static_flag=$lt_lt_prog_compiler_static
13065
13066 # Does compiler simultaneously support -c and -o options?
13067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13068
13069 # Whether or not to add -lc for building shared libraries.
13070 build_libtool_need_lc=$archive_cmds_need_lc
13071
13072 # Whether or not to disallow shared libs when runtime libs are static.
13073 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13074
13075 # Compiler flag to allow reflexive dlopens.
13076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13077
13078 # Compiler flag to generate shared objects directly from archives.
13079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13080
13081 # Whether the compiler copes with passing no objects directly.
13082 compiler_needs_object=$lt_compiler_needs_object
13083
13084 # Create an old-style archive from a shared archive.
13085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13086
13087 # Create a temporary old-style archive to link instead of a shared archive.
13088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13089
13090 # Commands used to build a shared archive.
13091 archive_cmds=$lt_archive_cmds
13092 archive_expsym_cmds=$lt_archive_expsym_cmds
13093
13094 # Commands used to build a loadable module if different from building
13095 # a shared archive.
13096 module_cmds=$lt_module_cmds
13097 module_expsym_cmds=$lt_module_expsym_cmds
13098
13099 # Whether we are building with GNU ld or not.
13100 with_gnu_ld=$lt_with_gnu_ld
13101
13102 # Flag that allows shared libraries with undefined symbols to be built.
13103 allow_undefined_flag=$lt_allow_undefined_flag
13104
13105 # Flag that enforces no undefined symbols.
13106 no_undefined_flag=$lt_no_undefined_flag
13107
13108 # Flag to hardcode \$libdir into a binary during linking.
13109 # This must work even if \$libdir does not exist
13110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13111
13112 # Whether we need a single "-rpath" flag with a separated argument.
13113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13114
13115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13116 # DIR into the resulting binary.
13117 hardcode_direct=$hardcode_direct
13118
13119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13120 # DIR into the resulting binary and the resulting library dependency is
13121 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13122 # library is relocated.
13123 hardcode_direct_absolute=$hardcode_direct_absolute
13124
13125 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13126 # into the resulting binary.
13127 hardcode_minus_L=$hardcode_minus_L
13128
13129 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13130 # into the resulting binary.
13131 hardcode_shlibpath_var=$hardcode_shlibpath_var
13132
13133 # Set to "yes" if building a shared library automatically hardcodes DIR
13134 # into the library and all subsequent libraries and executables linked
13135 # against it.
13136 hardcode_automatic=$hardcode_automatic
13137
13138 # Set to yes if linker adds runtime paths of dependent libraries
13139 # to runtime path list.
13140 inherit_rpath=$inherit_rpath
13141
13142 # Whether libtool must link a program against all its dependency libraries.
13143 link_all_deplibs=$link_all_deplibs
13144
13145 # Set to "yes" if exported symbols are required.
13146 always_export_symbols=$always_export_symbols
13147
13148 # The commands to list exported symbols.
13149 export_symbols_cmds=$lt_export_symbols_cmds
13150
13151 # Symbols that should not be listed in the preloaded symbols.
13152 exclude_expsyms=$lt_exclude_expsyms
13153
13154 # Symbols that must always be exported.
13155 include_expsyms=$lt_include_expsyms
13156
13157 # Commands necessary for linking programs (against libraries) with templates.
13158 prelink_cmds=$lt_prelink_cmds
13159
13160 # Commands necessary for finishing linking programs.
13161 postlink_cmds=$lt_postlink_cmds
13162
13163 # Specify filename containing input files.
13164 file_list_spec=$lt_file_list_spec
13165
13166 # How to hardcode a shared library path into an executable.
13167 hardcode_action=$hardcode_action
13168
13169 # ### END LIBTOOL CONFIG
13170
13171 _LT_EOF
13172
13173   case $host_os in
13174   aix3*)
13175     cat <<\_LT_EOF >> "$cfgfile"
13176 # AIX sometimes has problems with the GCC collect2 program.  For some
13177 # reason, if we set the COLLECT_NAMES environment variable, the problems
13178 # vanish in a puff of smoke.
13179 if test "X${COLLECT_NAMES+set}" != Xset; then
13180   COLLECT_NAMES=
13181   export COLLECT_NAMES
13182 fi
13183 _LT_EOF
13184     ;;
13185   esac
13186
13187
13188 ltmain="$ac_aux_dir/ltmain.sh"
13189
13190
13191   # We use sed instead of cat because bash on DJGPP gets confused if
13192   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13193   # text mode, it properly converts lines to CR/LF.  This bash problem
13194   # is reportedly fixed, but why not run on old versions too?
13195   sed '$q' "$ltmain" >> "$cfgfile" \
13196      || (rm -f "$cfgfile"; exit 1)
13197
13198   if test x"$xsi_shell" = xyes; then
13199   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13200 func_dirname ()\
13201 {\
13202 \    case ${1} in\
13203 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13204 \      *  ) func_dirname_result="${3}" ;;\
13205 \    esac\
13206 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13207   && mv -f "$cfgfile.tmp" "$cfgfile" \
13208     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13209 test 0 -eq $? || _lt_function_replace_fail=:
13210
13211
13212   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13213 func_basename ()\
13214 {\
13215 \    func_basename_result="${1##*/}"\
13216 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13217   && mv -f "$cfgfile.tmp" "$cfgfile" \
13218     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13219 test 0 -eq $? || _lt_function_replace_fail=:
13220
13221
13222   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13223 func_dirname_and_basename ()\
13224 {\
13225 \    case ${1} in\
13226 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13227 \      *  ) func_dirname_result="${3}" ;;\
13228 \    esac\
13229 \    func_basename_result="${1##*/}"\
13230 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13231   && mv -f "$cfgfile.tmp" "$cfgfile" \
13232     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13233 test 0 -eq $? || _lt_function_replace_fail=:
13234
13235
13236   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13237 func_stripname ()\
13238 {\
13239 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13240 \    # positional parameters, so assign one to ordinary parameter first.\
13241 \    func_stripname_result=${3}\
13242 \    func_stripname_result=${func_stripname_result#"${1}"}\
13243 \    func_stripname_result=${func_stripname_result%"${2}"}\
13244 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13245   && mv -f "$cfgfile.tmp" "$cfgfile" \
13246     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13247 test 0 -eq $? || _lt_function_replace_fail=:
13248
13249
13250   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13251 func_split_long_opt ()\
13252 {\
13253 \    func_split_long_opt_name=${1%%=*}\
13254 \    func_split_long_opt_arg=${1#*=}\
13255 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13256   && mv -f "$cfgfile.tmp" "$cfgfile" \
13257     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13258 test 0 -eq $? || _lt_function_replace_fail=:
13259
13260
13261   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13262 func_split_short_opt ()\
13263 {\
13264 \    func_split_short_opt_arg=${1#??}\
13265 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13266 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13267   && mv -f "$cfgfile.tmp" "$cfgfile" \
13268     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13269 test 0 -eq $? || _lt_function_replace_fail=:
13270
13271
13272   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13273 func_lo2o ()\
13274 {\
13275 \    case ${1} in\
13276 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13277 \      *)    func_lo2o_result=${1} ;;\
13278 \    esac\
13279 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13280   && mv -f "$cfgfile.tmp" "$cfgfile" \
13281     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13282 test 0 -eq $? || _lt_function_replace_fail=:
13283
13284
13285   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13286 func_xform ()\
13287 {\
13288     func_xform_result=${1%.*}.lo\
13289 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13290   && mv -f "$cfgfile.tmp" "$cfgfile" \
13291     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13292 test 0 -eq $? || _lt_function_replace_fail=:
13293
13294
13295   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13296 func_arith ()\
13297 {\
13298     func_arith_result=$(( $* ))\
13299 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13300   && mv -f "$cfgfile.tmp" "$cfgfile" \
13301     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13302 test 0 -eq $? || _lt_function_replace_fail=:
13303
13304
13305   sed -e '/^func_len ()$/,/^} # func_len /c\
13306 func_len ()\
13307 {\
13308     func_len_result=${#1}\
13309 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13310   && mv -f "$cfgfile.tmp" "$cfgfile" \
13311     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13312 test 0 -eq $? || _lt_function_replace_fail=:
13313
13314 fi
13315
13316 if test x"$lt_shell_append" = xyes; then
13317   sed -e '/^func_append ()$/,/^} # func_append /c\
13318 func_append ()\
13319 {\
13320     eval "${1}+=\\${2}"\
13321 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13322   && mv -f "$cfgfile.tmp" "$cfgfile" \
13323     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13324 test 0 -eq $? || _lt_function_replace_fail=:
13325
13326
13327   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13328 func_append_quoted ()\
13329 {\
13330 \    func_quote_for_eval "${2}"\
13331 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13332 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13333   && mv -f "$cfgfile.tmp" "$cfgfile" \
13334     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13335 test 0 -eq $? || _lt_function_replace_fail=:
13336
13337
13338   # Save a `func_append' function call where possible by direct use of '+='
13339   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13340     && mv -f "$cfgfile.tmp" "$cfgfile" \
13341       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13342   test 0 -eq $? || _lt_function_replace_fail=:
13343 else
13344   # Save a `func_append' function call even when '+=' is not available
13345   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13346     && mv -f "$cfgfile.tmp" "$cfgfile" \
13347       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13348   test 0 -eq $? || _lt_function_replace_fail=:
13349 fi
13350
13351 if test x"$_lt_function_replace_fail" = x":"; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13353 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13354 fi
13355
13356
13357    mv -f "$cfgfile" "$ofile" ||
13358     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13359   chmod +x "$ofile"
13360
13361  ;;
13362
13363   esac
13364 done # for ac_tag
13365
13366
13367 as_fn_exit 0
13368 _ACEOF
13369 ac_clean_files=$ac_clean_files_save
13370
13371 test $ac_write_fail = 0 ||
13372   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13373
13374
13375 # configure is writing to config.log, and then calls config.status.
13376 # config.status does its own redirection, appending to config.log.
13377 # Unfortunately, on DOS this fails, as config.log is still kept open
13378 # by configure, so config.status won't be able to write to it; its
13379 # output is simply discarded.  So we exec the FD to /dev/null,
13380 # effectively closing config.log, so it can be properly (re)opened and
13381 # appended to by config.status.  When coming back to configure, we
13382 # need to make the FD available again.
13383 if test "$no_create" != yes; then
13384   ac_cs_success=:
13385   ac_config_status_args=
13386   test "$silent" = yes &&
13387     ac_config_status_args="$ac_config_status_args --quiet"
13388   exec 5>/dev/null
13389   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13390   exec 5>>config.log
13391   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13392   # would make configure fail if this is the last instruction.
13393   $ac_cs_success || as_fn_exit 1
13394 fi
13395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13398 fi
13399