Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / pdemo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for pdemo 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='pdemo'
572 PACKAGE_TARNAME='pdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='pdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="longer_file_name_hello.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 LIBM
620 BINARY_HELLDL_FALSE
621 BINARY_HELLDL_TRUE
622 STATIC
623 LIBTOOL_DEPS
624 CPP
625 OTOOL64
626 OTOOL
627 LIPO
628 NMEDIT
629 DSYMUTIL
630 MANIFEST_TOOL
631 RANLIB
632 ac_ct_AR
633 AR
634 DLLTOOL
635 OBJDUMP
636 LN_S
637 NM
638 ac_ct_DUMPBIN
639 DUMPBIN
640 LD
641 FGREP
642 EGREP
643 GREP
644 SED
645 host_os
646 host_vendor
647 host_cpu
648 host
649 build_os
650 build_vendor
651 build_cpu
652 build
653 LIBTOOL
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 with_sysroot
741 enable_libtool_lock
742 '
743       ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
775
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
801
802 ac_prev=
803 ac_dashdash=
804 for ac_option
805 do
806   # If the previous option needs an argument, assign it.
807   if test -n "$ac_prev"; then
808     eval $ac_prev=\$ac_option
809     ac_prev=
810     continue
811   fi
812
813   case $ac_option in
814   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815   *=)   ac_optarg= ;;
816   *)    ac_optarg=yes ;;
817   esac
818
819   # Accept the important Cygnus configure options, so we can diagnose typos.
820
821   case $ac_dashdash$ac_option in
822   --)
823     ac_dashdash=yes ;;
824
825   -bindir | --bindir | --bindi | --bind | --bin | --bi)
826     ac_prev=bindir ;;
827   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828     bindir=$ac_optarg ;;
829
830   -build | --build | --buil | --bui | --bu)
831     ac_prev=build_alias ;;
832   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833     build_alias=$ac_optarg ;;
834
835   -cache-file | --cache-file | --cache-fil | --cache-fi \
836   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837     ac_prev=cache_file ;;
838   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840     cache_file=$ac_optarg ;;
841
842   --config-cache | -C)
843     cache_file=config.cache ;;
844
845   -datadir | --datadir | --datadi | --datad)
846     ac_prev=datadir ;;
847   -datadir=* | --datadir=* | --datadi=* | --datad=*)
848     datadir=$ac_optarg ;;
849
850   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851   | --dataroo | --dataro | --datar)
852     ac_prev=datarootdir ;;
853   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855     datarootdir=$ac_optarg ;;
856
857   -disable-* | --disable-*)
858     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859     # Reject names that are not valid shell variable names.
860     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861       as_fn_error $? "invalid feature name: $ac_useropt"
862     ac_useropt_orig=$ac_useropt
863     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864     case $ac_user_opts in
865       *"
866 "enable_$ac_useropt"
867 "*) ;;
868       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869          ac_unrecognized_sep=', ';;
870     esac
871     eval enable_$ac_useropt=no ;;
872
873   -docdir | --docdir | --docdi | --doc | --do)
874     ac_prev=docdir ;;
875   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876     docdir=$ac_optarg ;;
877
878   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879     ac_prev=dvidir ;;
880   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881     dvidir=$ac_optarg ;;
882
883   -enable-* | --enable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=\$ac_optarg ;;
898
899   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901   | --exec | --exe | --ex)
902     ac_prev=exec_prefix ;;
903   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905   | --exec=* | --exe=* | --ex=*)
906     exec_prefix=$ac_optarg ;;
907
908   -gas | --gas | --ga | --g)
909     # Obsolete; use --with-gas.
910     with_gas=yes ;;
911
912   -help | --help | --hel | --he | -h)
913     ac_init_help=long ;;
914   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915     ac_init_help=recursive ;;
916   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917     ac_init_help=short ;;
918
919   -host | --host | --hos | --ho)
920     ac_prev=host_alias ;;
921   -host=* | --host=* | --hos=* | --ho=*)
922     host_alias=$ac_optarg ;;
923
924   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925     ac_prev=htmldir ;;
926   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927   | --ht=*)
928     htmldir=$ac_optarg ;;
929
930   -includedir | --includedir | --includedi | --included | --include \
931   | --includ | --inclu | --incl | --inc)
932     ac_prev=includedir ;;
933   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934   | --includ=* | --inclu=* | --incl=* | --inc=*)
935     includedir=$ac_optarg ;;
936
937   -infodir | --infodir | --infodi | --infod | --info | --inf)
938     ac_prev=infodir ;;
939   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940     infodir=$ac_optarg ;;
941
942   -libdir | --libdir | --libdi | --libd)
943     ac_prev=libdir ;;
944   -libdir=* | --libdir=* | --libdi=* | --libd=*)
945     libdir=$ac_optarg ;;
946
947   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948   | --libexe | --libex | --libe)
949     ac_prev=libexecdir ;;
950   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951   | --libexe=* | --libex=* | --libe=*)
952     libexecdir=$ac_optarg ;;
953
954   -localedir | --localedir | --localedi | --localed | --locale)
955     ac_prev=localedir ;;
956   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957     localedir=$ac_optarg ;;
958
959   -localstatedir | --localstatedir | --localstatedi | --localstated \
960   | --localstate | --localstat | --localsta | --localst | --locals)
961     ac_prev=localstatedir ;;
962   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964     localstatedir=$ac_optarg ;;
965
966   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967     ac_prev=mandir ;;
968   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969     mandir=$ac_optarg ;;
970
971   -nfp | --nfp | --nf)
972     # Obsolete; use --without-fp.
973     with_fp=no ;;
974
975   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976   | --no-cr | --no-c | -n)
977     no_create=yes ;;
978
979   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981     no_recursion=yes ;;
982
983   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985   | --oldin | --oldi | --old | --ol | --o)
986     ac_prev=oldincludedir ;;
987   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990     oldincludedir=$ac_optarg ;;
991
992   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993     ac_prev=prefix ;;
994   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995     prefix=$ac_optarg ;;
996
997   -program-prefix | --program-prefix | --program-prefi | --program-pref \
998   | --program-pre | --program-pr | --program-p)
999     ac_prev=program_prefix ;;
1000   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002     program_prefix=$ac_optarg ;;
1003
1004   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005   | --program-suf | --program-su | --program-s)
1006     ac_prev=program_suffix ;;
1007   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009     program_suffix=$ac_optarg ;;
1010
1011   -program-transform-name | --program-transform-name \
1012   | --program-transform-nam | --program-transform-na \
1013   | --program-transform-n | --program-transform- \
1014   | --program-transform | --program-transfor \
1015   | --program-transfo | --program-transf \
1016   | --program-trans | --program-tran \
1017   | --progr-tra | --program-tr | --program-t)
1018     ac_prev=program_transform_name ;;
1019   -program-transform-name=* | --program-transform-name=* \
1020   | --program-transform-nam=* | --program-transform-na=* \
1021   | --program-transform-n=* | --program-transform-=* \
1022   | --program-transform=* | --program-transfor=* \
1023   | --program-transfo=* | --program-transf=* \
1024   | --program-trans=* | --program-tran=* \
1025   | --progr-tra=* | --program-tr=* | --program-t=*)
1026     program_transform_name=$ac_optarg ;;
1027
1028   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029     ac_prev=pdfdir ;;
1030   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031     pdfdir=$ac_optarg ;;
1032
1033   -psdir | --psdir | --psdi | --psd | --ps)
1034     ac_prev=psdir ;;
1035   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036     psdir=$ac_optarg ;;
1037
1038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039   | -silent | --silent | --silen | --sile | --sil)
1040     silent=yes ;;
1041
1042   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043     ac_prev=sbindir ;;
1044   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045   | --sbi=* | --sb=*)
1046     sbindir=$ac_optarg ;;
1047
1048   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050   | --sharedst | --shareds | --shared | --share | --shar \
1051   | --sha | --sh)
1052     ac_prev=sharedstatedir ;;
1053   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056   | --sha=* | --sh=*)
1057     sharedstatedir=$ac_optarg ;;
1058
1059   -site | --site | --sit)
1060     ac_prev=site ;;
1061   -site=* | --site=* | --sit=*)
1062     site=$ac_optarg ;;
1063
1064   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065     ac_prev=srcdir ;;
1066   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067     srcdir=$ac_optarg ;;
1068
1069   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070   | --syscon | --sysco | --sysc | --sys | --sy)
1071     ac_prev=sysconfdir ;;
1072   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074     sysconfdir=$ac_optarg ;;
1075
1076   -target | --target | --targe | --targ | --tar | --ta | --t)
1077     ac_prev=target_alias ;;
1078   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079     target_alias=$ac_optarg ;;
1080
1081   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082     verbose=yes ;;
1083
1084   -version | --version | --versio | --versi | --vers | -V)
1085     ac_init_version=: ;;
1086
1087   -with-* | --with-*)
1088     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091       as_fn_error $? "invalid package name: $ac_useropt"
1092     ac_useropt_orig=$ac_useropt
1093     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094     case $ac_user_opts in
1095       *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099          ac_unrecognized_sep=', ';;
1100     esac
1101     eval with_$ac_useropt=\$ac_optarg ;;
1102
1103   -without-* | --without-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       as_fn_error $? "invalid package name: $ac_useropt"
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1139     ;;
1140
1141   *=*)
1142     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143     # Reject names that are not valid shell variable names.
1144     case $ac_envvar in #(
1145       '' | [0-9]* | *[!_$as_cr_alnum]* )
1146       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147     esac
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   as_fn_error $? "missing argument to $ac_option"
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168   case $enable_option_checking in
1169     no) ;;
1170     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172   esac
1173 fi
1174
1175 # Check all directory arguments for consistency.
1176 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177                 datadir sysconfdir sharedstatedir localstatedir includedir \
1178                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179                 libdir localedir mandir
1180 do
1181   eval ac_val=\$$ac_var
1182   # Remove trailing slashes.
1183   case $ac_val in
1184     */ )
1185       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186       eval $ac_var=\$ac_val;;
1187   esac
1188   # Be sure to have absolute directory names.
1189   case $ac_val in
1190     [\\/$]* | ?:[\\/]* )  continue;;
1191     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192   esac
1193   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205   if test "x$build_alias" = x; then
1206     cross_compiling=maybe
1207     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208     If a cross compiler is detected then cross compile mode will be used" >&2
1209   elif test "x$build_alias" != "x$host_alias"; then
1210     cross_compiling=yes
1211   fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223   as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225   as_fn_error $? "pwd does not report name of working directory"
1226
1227
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230   ac_srcdir_defaulted=yes
1231   # Try the directory containing this script, then the parent directory.
1232   ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234          X"$as_myself" : 'X\(//\)[^/]' \| \
1235          X"$as_myself" : 'X\(//\)$' \| \
1236          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)[^/].*/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\).*/{
1251             s//\1/
1252             q
1253           }
1254           s/.*/./; q'`
1255   srcdir=$ac_confdir
1256   if test ! -r "$srcdir/$ac_unique_file"; then
1257     srcdir=..
1258   fi
1259 else
1260   ac_srcdir_defaulted=no
1261 fi
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures pdemo 1.0 to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking ...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR            user executables [EPREFIX/bin]
1329   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR        program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR            object code libraries [EPREFIX/lib]
1335   --includedir=DIR        C header files [PREFIX/include]
1336   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR           info documentation [DATAROOTDIR/info]
1340   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR            man documentation [DATAROOTDIR/man]
1342   --docdir=DIR            documentation root [DATAROOTDIR/doc/pdemo]
1343   --htmldir=DIR           html documentation [DOCDIR]
1344   --dvidir=DIR            dvi documentation [DOCDIR]
1345   --pdfdir=DIR            pdf documentation [DOCDIR]
1346   --psdir=DIR             ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 Program names:
1352   --program-prefix=PREFIX            prepend PREFIX to installed program names
1353   --program-suffix=SUFFIX            append SUFFIX to installed program names
1354   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1355
1356 System types:
1357   --build=BUILD     configure for building on BUILD [guessed]
1358   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363   case $ac_init_help in
1364      short | recursive ) echo "Configuration of pdemo 1.0:";;
1365    esac
1366   cat <<\_ACEOF
1367
1368 Optional Features:
1369   --disable-option-checking  ignore unrecognized --enable/--with options
1370   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1371   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1372   --disable-dependency-tracking  speeds up one-time build
1373   --enable-dependency-tracking   do not reject slow dependency extractors
1374   --enable-shared[=PKGS]  build shared libraries [default=yes]
1375   --enable-static[=PKGS]  build static libraries [default=yes]
1376   --enable-fast-install[=PKGS]
1377                           optimize for fast installation [default=yes]
1378   --disable-libtool-lock  avoid locking (might break parallel builds)
1379
1380 Optional Packages:
1381   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1384                           both]
1385   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1386   --with-sysroot=DIR Search for dependent libraries within DIR
1387                         (or the compiler's sysroot if not specified).
1388
1389 Some influential environment variables:
1390   CC          C compiler command
1391   CFLAGS      C compiler flags
1392   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393               nonstandard directory <lib dir>
1394   LIBS        libraries to pass to the linker, e.g. -l<library>
1395   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396               you have headers in a nonstandard directory <include dir>
1397   CPP         C preprocessor
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 Report bugs to <bug-libtool@gnu.org>.
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408   # If there are subdirs, report their specific --help.
1409   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410     test -d "$ac_dir" ||
1411       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412       continue
1413     ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419   # A ".." for each directory in $ac_dir_suffix.
1420   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421   case $ac_top_builddir_sub in
1422   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424   esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432   .)  # We are building in place.
1433     ac_srcdir=.
1434     ac_top_srcdir=$ac_top_builddir_sub
1435     ac_abs_top_srcdir=$ac_pwd ;;
1436   [\\/]* | ?:[\\/]* )  # Absolute name.
1437     ac_srcdir=$srcdir$ac_dir_suffix;
1438     ac_top_srcdir=$srcdir
1439     ac_abs_top_srcdir=$srcdir ;;
1440   *) # Relative name.
1441     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442     ac_top_srcdir=$ac_top_build_prefix$srcdir
1443     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447     cd "$ac_dir" || { ac_status=$?; continue; }
1448     # Check for guested configure.
1449     if test -f "$ac_srcdir/configure.gnu"; then
1450       echo &&
1451       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452     elif test -f "$ac_srcdir/configure"; then
1453       echo &&
1454       $SHELL "$ac_srcdir/configure" --help=recursive
1455     else
1456       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457     fi || ac_status=$?
1458     cd "$ac_pwd" || { ac_status=$?; break; }
1459   done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464   cat <<\_ACEOF
1465 pdemo configure 1.0
1466 generated by GNU Autoconf 2.68
1467
1468 Copyright (C) 2010 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472   exit
1473 fi
1474
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1478
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1483 {
1484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485   rm -f conftest.$ac_objext
1486   if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489   *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493   (eval "$ac_compile") 2>conftest.err
1494   ac_status=$?
1495   if test -s conftest.err; then
1496     grep -v '^ *+' conftest.err >conftest.er1
1497     cat conftest.er1 >&5
1498     mv -f conftest.er1 conftest.err
1499   fi
1500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501   test $ac_status = 0; } && {
1502          test -z "$ac_c_werror_flag" ||
1503          test ! -s conftest.err
1504        } && test -s conftest.$ac_objext; then :
1505   ac_retval=0
1506 else
1507   $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510         ac_retval=1
1511 fi
1512   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1513   as_fn_set_status $ac_retval
1514
1515 } # ac_fn_c_try_compile
1516
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1521 {
1522   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523   rm -f conftest.$ac_objext conftest$ac_exeext
1524   if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527   *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531   (eval "$ac_link") 2>conftest.err
1532   ac_status=$?
1533   if test -s conftest.err; then
1534     grep -v '^ *+' conftest.err >conftest.er1
1535     cat conftest.er1 >&5
1536     mv -f conftest.er1 conftest.err
1537   fi
1538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539   test $ac_status = 0; } && {
1540          test -z "$ac_c_werror_flag" ||
1541          test ! -s conftest.err
1542        } && test -s conftest$ac_exeext && {
1543          test "$cross_compiling" = yes ||
1544          $as_test_x conftest$ac_exeext
1545        }; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551         ac_retval=1
1552 fi
1553   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555   # interfere with the next link command; also delete a directory that is
1556   # left behind by Apple's compiler.  We do this before executing the actions.
1557   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_link
1562
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if eval \${$3+:} false; then :
1573   $as_echo_n "(cached) " >&6
1574 else
1575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h.  */
1577 $4
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581   eval "$3=yes"
1582 else
1583   eval "$3=no"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 eval ac_res=\$$3
1588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591
1592 } # ac_fn_c_check_header_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } > conftest.i && {
1616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617          test ! -s conftest.err
1618        }; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624     ac_retval=1
1625 fi
1626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627   as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_link") 2>&5
1646   ac_status=$?
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649   { { case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_try") 2>&5
1656   ac_status=$?
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; }; }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: program exited with status $ac_status" >&5
1662        $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665        ac_retval=$ac_status
1666 fi
1667   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682   $as_echo_n "(cached) " >&6
1683 else
1684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1688 #define $2 innocuous_$2
1689
1690 /* System header to define __stub macros and hopefully few prototypes,
1691     which can conflict with char $2 (); below.
1692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693     <limits.h> exists even on freestanding compilers.  */
1694
1695 #ifdef __STDC__
1696 # include <limits.h>
1697 #else
1698 # include <assert.h>
1699 #endif
1700
1701 #undef $2
1702
1703 /* Override any GCC internal prototype to avoid an error.
1704    Use char because int might match the return type of a GCC
1705    builtin and then its argument prototype would still apply.  */
1706 #ifdef __cplusplus
1707 extern "C"
1708 #endif
1709 char $2 ();
1710 /* The GNU C library defines this for functions which it implements
1711     to always fail with ENOSYS.  Some functions are actually named
1712     something starting with __ and the normal name is an alias.  */
1713 #if defined __stub_$2 || defined __stub___$2
1714 choke me
1715 #endif
1716
1717 int
1718 main ()
1719 {
1720 return $2 ();
1721   ;
1722   return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_link "$LINENO"; then :
1726   eval "$3=yes"
1727 else
1728   eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext \
1731     conftest$ac_exeext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_func
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by pdemo $as_me 1.0, which was
1744 generated by GNU Autoconf 2.68.  Invocation command line was
1745
1746   $ $0 $@
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1764
1765 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1766 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1769 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1770 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1771 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
1779   test -z "$as_dir" && as_dir=.
1780     $as_echo "PATH: $as_dir"
1781   done
1782 IFS=$as_save_IFS
1783
1784 } >&5
1785
1786 cat >&5 <<_ACEOF
1787
1788
1789 ## ----------- ##
1790 ## Core tests. ##
1791 ## ----------- ##
1792
1793 _ACEOF
1794
1795
1796 # Keep a trace of the command line.
1797 # Strip out --no-create and --no-recursion so they do not pile up.
1798 # Strip out --silent because we don't want to record it for future runs.
1799 # Also quote any args containing shell meta-characters.
1800 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_configure_args=
1802 ac_configure_args0=
1803 ac_configure_args1=
1804 ac_must_keep_next=false
1805 for ac_pass in 1 2
1806 do
1807   for ac_arg
1808   do
1809     case $ac_arg in
1810     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812     | -silent | --silent | --silen | --sile | --sil)
1813       continue ;;
1814     *\'*)
1815       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816     esac
1817     case $ac_pass in
1818     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819     2)
1820       as_fn_append ac_configure_args1 " '$ac_arg'"
1821       if test $ac_must_keep_next = true; then
1822         ac_must_keep_next=false # Got value, back to normal.
1823       else
1824         case $ac_arg in
1825           *=* | --config-cache | -C | -disable-* | --disable-* \
1826           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828           | -with-* | --with-* | -without-* | --without-* | --x)
1829             case "$ac_configure_args0 " in
1830               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831             esac
1832             ;;
1833           -* ) ac_must_keep_next=true ;;
1834         esac
1835       fi
1836       as_fn_append ac_configure_args " '$ac_arg'"
1837       ;;
1838     esac
1839   done
1840 done
1841 { ac_configure_args0=; unset ac_configure_args0;}
1842 { ac_configure_args1=; unset ac_configure_args1;}
1843
1844 # When interrupted or exit'd, cleanup temporary files, and complete
1845 # config.log.  We remove comments because anyway the quotes in there
1846 # would cause problems or look ugly.
1847 # WARNING: Use '\'' to represent an apostrophe within the trap.
1848 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849 trap 'exit_status=$?
1850   # Save into config.log some information that might help in debugging.
1851   {
1852     echo
1853
1854     $as_echo "## ---------------- ##
1855 ## Cache variables. ##
1856 ## ---------------- ##"
1857     echo
1858     # The following way of writing the cache mishandles newlines in values,
1859 (
1860   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861     eval ac_val=\$$ac_var
1862     case $ac_val in #(
1863     *${as_nl}*)
1864       case $ac_var in #(
1865       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867       esac
1868       case $ac_var in #(
1869       _ | IFS | as_nl) ;; #(
1870       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871       *) { eval $ac_var=; unset $ac_var;} ;;
1872       esac ;;
1873     esac
1874   done
1875   (set) 2>&1 |
1876     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877     *${as_nl}ac_space=\ *)
1878       sed -n \
1879         "s/'\''/'\''\\\\'\'''\''/g;
1880           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881       ;; #(
1882     *)
1883       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884       ;;
1885     esac |
1886     sort
1887 )
1888     echo
1889
1890     $as_echo "## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##"
1893     echo
1894     for ac_var in $ac_subst_vars
1895     do
1896       eval ac_val=\$$ac_var
1897       case $ac_val in
1898       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899       esac
1900       $as_echo "$ac_var='\''$ac_val'\''"
1901     done | sort
1902     echo
1903
1904     if test -n "$ac_subst_files"; then
1905       $as_echo "## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##"
1908       echo
1909       for ac_var in $ac_subst_files
1910       do
1911         eval ac_val=\$$ac_var
1912         case $ac_val in
1913         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914         esac
1915         $as_echo "$ac_var='\''$ac_val'\''"
1916       done | sort
1917       echo
1918     fi
1919
1920     if test -s confdefs.h; then
1921       $as_echo "## ----------- ##
1922 ## confdefs.h. ##
1923 ## ----------- ##"
1924       echo
1925       cat confdefs.h
1926       echo
1927     fi
1928     test "$ac_signal" != 0 &&
1929       $as_echo "$as_me: caught signal $ac_signal"
1930     $as_echo "$as_me: exit $exit_status"
1931   } >&5
1932   rm -f core *.core core.conftest.* &&
1933     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934     exit $exit_status
1935 ' 0
1936 for ac_signal in 1 2 13 15; do
1937   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938 done
1939 ac_signal=0
1940
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1943
1944 $as_echo "/* confdefs.h */" > confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1962 _ACEOF
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966 _ACEOF
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_URL "$PACKAGE_URL"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978   # We do not want a PATH search for config.site.
1979   case $CONFIG_SITE in #((
1980     -*)  ac_site_file1=./$CONFIG_SITE;;
1981     */*) ac_site_file1=$CONFIG_SITE;;
1982     *)   ac_site_file1=./$CONFIG_SITE;;
1983   esac
1984 elif test "x$prefix" != xNONE; then
1985   ac_site_file1=$prefix/share/config.site
1986   ac_site_file2=$prefix/etc/config.site
1987 else
1988   ac_site_file1=$ac_default_prefix/share/config.site
1989   ac_site_file2=$ac_default_prefix/etc/config.site
1990 fi
1991 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992 do
1993   test "x$ac_site_file" = xNONE && continue
1994   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997     sed 's/^/| /' "$ac_site_file" >&5
1998     . "$ac_site_file" \
1999       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 as_fn_error $? "failed to load site script $ac_site_file
2002 See \`config.log' for more details" "$LINENO" 5; }
2003   fi
2004 done
2005
2006 if test -r "$cache_file"; then
2007   # Some versions of bash will fail to source /dev/null (special files
2008   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2009   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011 $as_echo "$as_me: loading cache $cache_file" >&6;}
2012     case $cache_file in
2013       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014       *)                      . "./$cache_file";;
2015     esac
2016   fi
2017 else
2018   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019 $as_echo "$as_me: creating cache $cache_file" >&6;}
2020   >$cache_file
2021 fi
2022
2023 # Check that the precious variables saved in the cache have kept the same
2024 # value.
2025 ac_cache_corrupted=false
2026 for ac_var in $ac_precious_vars; do
2027   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028   eval ac_new_set=\$ac_env_${ac_var}_set
2029   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030   eval ac_new_val=\$ac_env_${ac_var}_value
2031   case $ac_old_set,$ac_new_set in
2032     set,)
2033       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035       ac_cache_corrupted=: ;;
2036     ,set)
2037       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039       ac_cache_corrupted=: ;;
2040     ,);;
2041     *)
2042       if test "x$ac_old_val" != "x$ac_new_val"; then
2043         # differences in whitespace do not lead to failure.
2044         ac_old_val_w=`echo x $ac_old_val`
2045         ac_new_val_w=`echo x $ac_new_val`
2046         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049           ac_cache_corrupted=:
2050         else
2051           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053           eval $ac_var=\$ac_old_val
2054         fi
2055         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2056 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2058 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059       fi;;
2060   esac
2061   # Pass precious variables to config.status.
2062   if test "$ac_new_set" = set; then
2063     case $ac_new_val in
2064     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065     *) ac_arg=$ac_var=$ac_new_val ;;
2066     esac
2067     case " $ac_configure_args " in
2068       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070     esac
2071   fi
2072 done
2073 if $ac_cache_corrupted; then
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079 fi
2080 ## -------------------- ##
2081 ## Main body of script. ##
2082 ## -------------------- ##
2083
2084 ac_ext=c
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091
2092 ac_aux_dir=
2093 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2094   if test -f "$ac_dir/install-sh"; then
2095     ac_aux_dir=$ac_dir
2096     ac_install_sh="$ac_aux_dir/install-sh -c"
2097     break
2098   elif test -f "$ac_dir/install.sh"; then
2099     ac_aux_dir=$ac_dir
2100     ac_install_sh="$ac_aux_dir/install.sh -c"
2101     break
2102   elif test -f "$ac_dir/shtool"; then
2103     ac_aux_dir=$ac_dir
2104     ac_install_sh="$ac_aux_dir/shtool install -c"
2105     break
2106   fi
2107 done
2108 if test -z "$ac_aux_dir"; then
2109   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2110 fi
2111
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2119
2120
2121
2122
2123 ## ------------------------ ##
2124 ## Automake Initialisation. ##
2125 ## ------------------------ ##
2126 am__api_version='1.11'
2127
2128 # Find a good install program.  We prefer a C program (faster),
2129 # so one script is as good as another.  But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2134 # AIX /bin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if ${ac_cv_path_install+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153     # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in #((
2155   ./ | .// | /[cC]/* | \
2156   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2158   /usr/ucb/* ) ;;
2159   *)
2160     # OSF1 and SCO ODT 3.0 have their own names for install.
2161     # Don't use installbsd from OSF since it installs stuff as root
2162     # by default.
2163     for ac_prog in ginstall scoinst install; do
2164       for ac_exec_ext in '' $ac_executable_extensions; do
2165         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166           if test $ac_prog = install &&
2167             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168             # AIX install.  It has an incompatible calling convention.
2169             :
2170           elif test $ac_prog = install &&
2171             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172             # program-specific install script used by HP pwplus--don't use.
2173             :
2174           else
2175             rm -rf conftest.one conftest.two conftest.dir
2176             echo one > conftest.one
2177             echo two > conftest.two
2178             mkdir conftest.dir
2179             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180               test -s conftest.one && test -s conftest.two &&
2181               test -s conftest.dir/conftest.one &&
2182               test -s conftest.dir/conftest.two
2183             then
2184               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185               break 3
2186             fi
2187           fi
2188         fi
2189       done
2190     done
2191     ;;
2192 esac
2193
2194   done
2195 IFS=$as_save_IFS
2196
2197 rm -rf conftest.one conftest.two conftest.dir
2198
2199 fi
2200   if test "${ac_cv_path_install+set}" = set; then
2201     INSTALL=$ac_cv_path_install
2202   else
2203     # As a last resort, use the slow shell script.  Don't cache a
2204     # value for INSTALL within a source directory, because that will
2205     # break other packages using the cache if that directory is
2206     # removed, or if the value is a relative name.
2207     INSTALL=$ac_install_sh
2208   fi
2209 fi
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2212
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2223 # Just in case
2224 sleep 1
2225 echo timestamp > conftest.file
2226 # Reject unsafe characters in $srcdir or the absolute working directory
2227 # name.  Accept space and tab only in the latter.
2228 am_lf='
2229 '
2230 case `pwd` in
2231   *[\\\"\#\$\&\'\`$am_lf]*)
2232     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2233 esac
2234 case $srcdir in
2235   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2236     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2237 esac
2238
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments.  Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2243 # directory).
2244 if (
2245    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246    if test "$*" = "X"; then
2247       # -L didn't work.
2248       set X `ls -t "$srcdir/configure" conftest.file`
2249    fi
2250    rm -f conftest.file
2251    if test "$*" != "X $srcdir/configure conftest.file" \
2252       && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254       # If neither matched, then we have a broken ls.  This can happen
2255       # if, for instance, CONFIG_SHELL is bash and it inherits a
2256       # broken ls alias from the environment.  This has actually
2257       # happened.  Such a system could not be considered "sane".
2258       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2259 alias in your environment" "$LINENO" 5
2260    fi
2261
2262    test "$2" = conftest.file
2263    )
2264 then
2265    # Ok.
2266    :
2267 else
2268    as_fn_error $? "newly created file is older than distributed files!
2269 Check your system clock" "$LINENO" 5
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2272 $as_echo "yes" >&6; }
2273 test "$program_prefix" != NONE &&
2274   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2275 # Use a double $ so make ignores it.
2276 test "$program_suffix" != NONE &&
2277   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2278 # Double any \ or $.
2279 # By default was `s,x,x', remove it if useless.
2280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2282
2283 # expand $ac_aux_dir to an absolute path
2284 am_aux_dir=`cd $ac_aux_dir && pwd`
2285
2286 if test x"${MISSING+set}" != xset; then
2287   case $am_aux_dir in
2288   *\ * | *\     *)
2289     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2290   *)
2291     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2292   esac
2293 fi
2294 # Use eval to expand $SHELL
2295 if eval "$MISSING --run true"; then
2296   am_missing_run="$MISSING --run "
2297 else
2298   am_missing_run=
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2301 fi
2302
2303 if test x"${install_sh}" != xset; then
2304   case $am_aux_dir in
2305   *\ * | *\     *)
2306     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2307   *)
2308     install_sh="\${SHELL} $am_aux_dir/install-sh"
2309   esac
2310 fi
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_STRIP+:} false; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333     for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340   done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2348 $as_echo "$STRIP" >&6; }
2349 else
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2363   $as_echo_n "(cached) " >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373     for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380   done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2388 $as_echo "$ac_ct_STRIP" >&6; }
2389 else
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391 $as_echo "no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403     STRIP=$ac_ct_STRIP
2404   fi
2405 else
2406   STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2414 if test -z "$MKDIR_P"; then
2415   if ${ac_cv_path_mkdir+:} false; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423     for ac_prog in mkdir gmkdir; do
2424          for ac_exec_ext in '' $ac_executable_extensions; do
2425            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427              'mkdir (GNU coreutils) '* | \
2428              'mkdir (coreutils) '* | \
2429              'mkdir (fileutils) '4.1*)
2430                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2431                break 3;;
2432            esac
2433          done
2434        done
2435   done
2436 IFS=$as_save_IFS
2437
2438 fi
2439
2440   test -d ./--version && rmdir ./--version
2441   if test "${ac_cv_path_mkdir+set}" = set; then
2442     MKDIR_P="$ac_cv_path_mkdir -p"
2443   else
2444     # As a last resort, use the slow shell script.  Don't cache a
2445     # value for MKDIR_P within a source directory, because that will
2446     # break other packages using the cache if that directory is
2447     # removed, or if the value is a relative name.
2448     MKDIR_P="$ac_install_sh -d"
2449   fi
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2452 $as_echo "$MKDIR_P" >&6; }
2453
2454 mkdir_p="$MKDIR_P"
2455 case $mkdir_p in
2456   [\\/$]* | ?:[\\/]*) ;;
2457   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2458 esac
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462   # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   if test -n "$AWK"; then
2470   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477     for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_AWK="$ac_prog"
2480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484   done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2493 else
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499   test -n "$AWK" && break
2500 done
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2504 set x ${MAKE-make}
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   cat >conftest.make <<\_ACEOF
2510 SHELL = /bin/sh
2511 all:
2512         @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 _ACEOF
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516   *@@@%%%=?*=@@@%%%*)
2517     eval ac_cv_prog_make_${ac_make}_set=yes;;
2518   *)
2519     eval ac_cv_prog_make_${ac_make}_set=no;;
2520 esac
2521 rm -f conftest.make
2522 fi
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526   SET_MAKE=
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530   SET_MAKE="MAKE=${MAKE-make}"
2531 fi
2532
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2536   am__leading_dot=.
2537 else
2538   am__leading_dot=_
2539 fi
2540 rmdir .tst 2>/dev/null
2541
2542 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2543   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2544   # is not polluted with repeated "-I."
2545   am__isrc=' -I$(srcdir)'
2546   # test to see if srcdir already configured
2547   if test -f $srcdir/config.status; then
2548     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2549   fi
2550 fi
2551
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554   if (cygpath --version) >/dev/null 2>/dev/null; then
2555     CYGPATH_W='cygpath -w'
2556   else
2557     CYGPATH_W=echo
2558   fi
2559 fi
2560
2561
2562 # Define the identity of the package.
2563  PACKAGE='pdemo'
2564  VERSION='1.0'
2565
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2569 _ACEOF
2570
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2574 _ACEOF
2575
2576 # Some tools Automake needs.
2577
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2579
2580
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2582
2583
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2585
2586
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2588
2589
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2591
2592 # We need awk for the "check" target.  The system "awk" is bad on
2593 # some platforms.
2594 # Always define AMTAR for backward compatibility.
2595
2596 AMTAR=${AMTAR-"${am_missing_run}tar"}
2597
2598 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2599
2600
2601
2602
2603
2604
2605
2606 ## ------------------ ##
2607 ## C compiler checks. ##
2608 ## ------------------ ##
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 if test -n "$ac_tool_prefix"; then
2615   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$CC"; then
2623   ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630     for ac_exec_ext in '' $ac_executable_extensions; do
2631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637   done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652 fi
2653 if test -z "$ac_cv_prog_CC"; then
2654   ac_ct_CC=$CC
2655   # Extract the first word of "gcc", so it can be a program name with args.
2656 set dummy gcc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660   $as_echo_n "(cached) " >&6
2661 else
2662   if test -n "$ac_ct_CC"; then
2663   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670     for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_prog_ac_ct_CC="gcc"
2673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677   done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685 $as_echo "$ac_ct_CC" >&6; }
2686 else
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691   if test "x$ac_ct_CC" = x; then
2692     CC=""
2693   else
2694     case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2699 esac
2700     CC=$ac_ct_CC
2701   fi
2702 else
2703   CC="$ac_cv_prog_CC"
2704 fi
2705
2706 if test -z "$CC"; then
2707           if test -n "$ac_tool_prefix"; then
2708     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}cc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   if test -n "$CC"; then
2716   ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723     for ac_exec_ext in '' $ac_executable_extensions; do
2724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725     ac_cv_prog_CC="${ac_tool_prefix}cc"
2726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727     break 2
2728   fi
2729 done
2730   done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745   fi
2746 fi
2747 if test -z "$CC"; then
2748   # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   if test -n "$CC"; then
2756   ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758   ac_prog_rejected=no
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     for ac_exec_ext in '' $ac_executable_extensions; do
2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767        ac_prog_rejected=yes
2768        continue
2769      fi
2770     ac_cv_prog_CC="cc"
2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775   done
2776 IFS=$as_save_IFS
2777
2778 if test $ac_prog_rejected = yes; then
2779   # We found a bogon in the path, so make sure we never use it.
2780   set dummy $ac_cv_prog_CC
2781   shift
2782   if test $# != 0; then
2783     # We chose a different compiler from the bogus one.
2784     # However, it has the same basename, so the bogon will be chosen
2785     # first if we set CC to just the basename; use the full file name.
2786     shift
2787     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788   fi
2789 fi
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$CC"; then
2804   if test -n "$ac_tool_prefix"; then
2805   for ac_prog in cl.exe
2806   do
2807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812   $as_echo_n "(cached) " >&6
2813 else
2814   if test -n "$CC"; then
2815   ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822     for ac_exec_ext in '' $ac_executable_extensions; do
2823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829   done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2838 else
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844     test -n "$CC" && break
2845   done
2846 fi
2847 if test -z "$CC"; then
2848   ac_ct_CC=$CC
2849   for ac_prog in cl.exe
2850 do
2851   # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$ac_ct_CC"; then
2859   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866     for ac_exec_ext in '' $ac_executable_extensions; do
2867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868     ac_cv_prog_ac_ct_CC="$ac_prog"
2869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873   done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881 $as_echo "$ac_ct_CC" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888   test -n "$ac_ct_CC" && break
2889 done
2890
2891   if test "x$ac_ct_CC" = x; then
2892     CC=""
2893   else
2894     case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900     CC=$ac_ct_CC
2901   fi
2902 fi
2903
2904 fi
2905
2906
2907 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details" "$LINENO" 5; }
2911
2912 # Provide some information about the compiler.
2913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2914 set X $ac_compile
2915 ac_compiler=$2
2916 for ac_option in --version -v -V -qversion; do
2917   { { ac_try="$ac_compiler $ac_option >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2925   ac_status=$?
2926   if test -s conftest.err; then
2927     sed '10a\
2928 ... rest of stderr output deleted ...
2929          10q' conftest.err >conftest.er1
2930     cat conftest.er1 >&5
2931   fi
2932   rm -f conftest.er1 conftest.err
2933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934   test $ac_status = 0; }
2935 done
2936
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h.  */
2939
2940 int
2941 main ()
2942 {
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 ac_clean_files_save=$ac_clean_files
2949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950 # Try to create an executable without -o first, disregard a.out.
2951 # It will help us diagnose broken compilers, and finding out an intuition
2952 # of exeext.
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954 $as_echo_n "checking whether the C compiler works... " >&6; }
2955 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956
2957 # The possible output files:
2958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959
2960 ac_rmfiles=
2961 for ac_file in $ac_files
2962 do
2963   case $ac_file in
2964     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966   esac
2967 done
2968 rm -f $ac_rmfiles
2969
2970 if { { ac_try="$ac_link_default"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977   (eval "$ac_link_default") 2>&5
2978   ac_status=$?
2979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980   test $ac_status = 0; }; then :
2981   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2985 # Autoconf.
2986 for ac_file in $ac_files ''
2987 do
2988   test -f "$ac_file" || continue
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991         ;;
2992     [ab].out )
2993         # We found the default executable, but exeext='' is most
2994         # certainly right.
2995         break;;
2996     *.* )
2997         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998         then :; else
2999            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000         fi
3001         # We set ac_cv_exeext here because the later test for it is not
3002         # safe: cross compilers may not add the suffix if given an `-o'
3003         # argument, so we may need to know it at that point already.
3004         # Even if this section looks crufty: it has the advantage of
3005         # actually working.
3006         break;;
3007     * )
3008         break;;
3009   esac
3010 done
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013 else
3014   ac_file=''
3015 fi
3016 if test -z "$ac_file"; then :
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error 77 "C compiler cannot create executables
3025 See \`config.log' for more details" "$LINENO" 5; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033 $as_echo "$ac_file" >&6; }
3034 ac_exeext=$ac_cv_exeext
3035
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039 $as_echo_n "checking for suffix of executables... " >&6; }
3040 if { { ac_try="$ac_link"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047   (eval "$ac_link") 2>&5
3048   ac_status=$?
3049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050   test $ac_status = 0; }; then :
3051   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3053 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 # `rm'.
3055 for ac_file in conftest.exe conftest conftest.*; do
3056   test -f "$ac_file" || continue
3057   case $ac_file in
3058     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060           break;;
3061     * ) break;;
3062   esac
3063 done
3064 else
3065   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details" "$LINENO" 5; }
3069 fi
3070 rm -f conftest conftest$ac_cv_exeext
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072 $as_echo "$ac_cv_exeext" >&6; }
3073
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3076 ac_exeext=$EXEEXT
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h.  */
3079 #include <stdio.h>
3080 int
3081 main ()
3082 {
3083 FILE *f = fopen ("conftest.out", "w");
3084  return ferror (f) || fclose (f) != 0;
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 ac_clean_files="$ac_clean_files conftest.out"
3091 # Check that the compiler produces executables we can run.  If not, either
3092 # the compiler is broken, or we cross compile.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094 $as_echo_n "checking whether we are cross compiling... " >&6; }
3095 if test "$cross_compiling" != yes; then
3096   { { ac_try="$ac_link"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103   (eval "$ac_link") 2>&5
3104   ac_status=$?
3105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106   test $ac_status = 0; }
3107   if { ac_try='./conftest$ac_cv_exeext'
3108   { { case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114   (eval "$ac_try") 2>&5
3115   ac_status=$?
3116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117   test $ac_status = 0; }; }; then
3118     cross_compiling=no
3119   else
3120     if test "$cross_compiling" = maybe; then
3121         cross_compiling=yes
3122     else
3123         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details" "$LINENO" 5; }
3128     fi
3129   fi
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132 $as_echo "$cross_compiling" >&6; }
3133
3134 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if ${ac_cv_objext+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h.  */
3143
3144 int
3145 main ()
3146 {
3147
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.o conftest.obj
3153 if { { ac_try="$ac_compile"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160   (eval "$ac_compile") 2>&5
3161   ac_status=$?
3162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163   test $ac_status = 0; }; then :
3164   for ac_file in conftest.o conftest.obj conftest.*; do
3165   test -f "$ac_file" || continue;
3166   case $ac_file in
3167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169        break;;
3170   esac
3171 done
3172 else
3173   $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184 $as_echo "$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3186 ac_objext=$OBJEXT
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189 if ${ac_cv_c_compiler_gnu+:} false; then :
3190   $as_echo_n "(cached) " >&6
3191 else
3192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h.  */
3194
3195 int
3196 main ()
3197 {
3198 #ifndef __GNUC__
3199        choke me
3200 #endif
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3207   ac_compiler_gnu=yes
3208 else
3209   ac_compiler_gnu=no
3210 fi
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217 if test $ac_compiler_gnu = yes; then
3218   GCC=yes
3219 else
3220   GCC=
3221 fi
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3226 if ${ac_cv_prog_cc_g+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   ac_save_c_werror_flag=$ac_c_werror_flag
3230    ac_c_werror_flag=yes
3231    ac_cv_prog_cc_g=no
3232    CFLAGS="-g"
3233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235
3236 int
3237 main ()
3238 {
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245   ac_cv_prog_cc_g=yes
3246 else
3247   CFLAGS=""
3248       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h.  */
3250
3251 int
3252 main ()
3253 {
3254
3255   ;
3256   return 0;
3257 }
3258 _ACEOF
3259 if ac_fn_c_try_compile "$LINENO"; then :
3260
3261 else
3262   ac_c_werror_flag=$ac_save_c_werror_flag
3263          CFLAGS="-g"
3264          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h.  */
3266
3267 int
3268 main ()
3269 {
3270
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_prog_cc_g=yes
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283    ac_c_werror_flag=$ac_save_c_werror_flag
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286 $as_echo "$ac_cv_prog_cc_g" >&6; }
3287 if test "$ac_test_CFLAGS" = set; then
3288   CFLAGS=$ac_save_CFLAGS
3289 elif test $ac_cv_prog_cc_g = yes; then
3290   if test "$GCC" = yes; then
3291     CFLAGS="-g -O2"
3292   else
3293     CFLAGS="-g"
3294   fi
3295 else
3296   if test "$GCC" = yes; then
3297     CFLAGS="-O2"
3298   else
3299     CFLAGS=
3300   fi
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304 if ${ac_cv_prog_cc_c89+:} false; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   ac_cv_prog_cc_c89=no
3308 ac_save_CC=$CC
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h.  */
3311 #include <stdarg.h>
3312 #include <stdio.h>
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319      char **p;
3320      int i;
3321 {
3322   return p[i];
3323 }
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3325 {
3326   char *s;
3327   va_list v;
3328   va_start (v,p);
3329   s = g (p, va_arg (v,int));
3330   va_end (v);
3331   return s;
3332 }
3333
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3335    function prototypes and stuff, but not '\xHH' hex character constants.
3336    These don't provoke an error unfortunately, instead are silently treated
3337    as 'x'.  The following induces an error, until -std is added to get
3338    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3339    array size at least.  It's necessary to write '\x00'==0 to get something
3340    that's true only with -std.  */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344    inside strings and character constants.  */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3354 int
3355 main ()
3356 {
3357 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 do
3365   CC="$ac_save_CC $ac_arg"
3366   if ac_fn_c_try_compile "$LINENO"; then :
3367   ac_cv_prog_cc_c89=$ac_arg
3368 fi
3369 rm -f core conftest.err conftest.$ac_objext
3370   test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378   x)
3379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3381   xno)
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3384   *)
3385     CC="$CC $ac_cv_prog_cc_c89"
3386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3390
3391 fi
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 DEPDIR="${am__leading_dot}deps"
3399
3400 ac_config_commands="$ac_config_commands depfiles"
3401
3402
3403 am_make=${MAKE-make}
3404 cat > confinc << 'END'
3405 am__doit:
3406         @echo this is the am__doit target
3407 .PHONY: am__doit
3408 END
3409 # If we don't find an include directive, just comment out the code.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3411 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3412 am__include="#"
3413 am__quote=
3414 _am_result=none
3415 # First try GNU make style include.
3416 echo "include confinc" > confmf
3417 # Ignore all kinds of additional output from `make'.
3418 case `$am_make -s -f confmf 2> /dev/null` in #(
3419 *the\ am__doit\ target*)
3420   am__include=include
3421   am__quote=
3422   _am_result=GNU
3423   ;;
3424 esac
3425 # Now try BSD make style include.
3426 if test "$am__include" = "#"; then
3427    echo '.include "confinc"' > confmf
3428    case `$am_make -s -f confmf 2> /dev/null` in #(
3429    *the\ am__doit\ target*)
3430      am__include=.include
3431      am__quote="\""
3432      _am_result=BSD
3433      ;;
3434    esac
3435 fi
3436
3437
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3439 $as_echo "$_am_result" >&6; }
3440 rm -f confinc confmf
3441
3442 # Check whether --enable-dependency-tracking was given.
3443 if test "${enable_dependency_tracking+set}" = set; then :
3444   enableval=$enable_dependency_tracking;
3445 fi
3446
3447 if test "x$enable_dependency_tracking" != xno; then
3448   am_depcomp="$ac_aux_dir/depcomp"
3449   AMDEPBACKSLASH='\'
3450 fi
3451  if test "x$enable_dependency_tracking" != xno; then
3452   AMDEP_TRUE=
3453   AMDEP_FALSE='#'
3454 else
3455   AMDEP_TRUE='#'
3456   AMDEP_FALSE=
3457 fi
3458
3459
3460
3461 depcc="$CC"   am_compiler_list=
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3464 $as_echo_n "checking dependency style of $depcc... " >&6; }
3465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469   # We make a subdir and do the tests there.  Otherwise we can end up
3470   # making bogus files that we don't know about and never remove.  For
3471   # instance it was reported that on HP-UX the gcc test will end up
3472   # making a dummy file named `D' -- because `-MD' means `put the output
3473   # in D'.
3474   mkdir conftest.dir
3475   # Copy depcomp to subdir because otherwise we won't find it if we're
3476   # using a relative directory.
3477   cp "$am_depcomp" conftest.dir
3478   cd conftest.dir
3479   # We will build objects and dependencies in a subdirectory because
3480   # it helps to detect inapplicable dependency modes.  For instance
3481   # both Tru64's cc and ICC support -MD to output dependencies as a
3482   # side effect of compilation, but ICC will put the dependencies in
3483   # the current directory while Tru64 will put them in the object
3484   # directory.
3485   mkdir sub
3486
3487   am_cv_CC_dependencies_compiler_type=none
3488   if test "$am_compiler_list" = ""; then
3489      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3490   fi
3491   am__universal=false
3492   case " $depcc " in #(
3493      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3494      esac
3495
3496   for depmode in $am_compiler_list; do
3497     # Setup a source with many dependencies, because some compilers
3498     # like to wrap large dependency lists on column 80 (with \), and
3499     # we should not choose a depcomp mode which is confused by this.
3500     #
3501     # We need to recreate these files for each test, as the compiler may
3502     # overwrite some of them when testing with obscure command lines.
3503     # This happens at least with the AIX C compiler.
3504     : > sub/conftest.c
3505     for i in 1 2 3 4 5 6; do
3506       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3507       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3508       # Solaris 8's {/usr,}/bin/sh.
3509       touch sub/conftst$i.h
3510     done
3511     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3512
3513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3514     # mode.  It turns out that the SunPro C++ compiler does not properly
3515     # handle `-M -o', and we need to detect this.  Also, some Intel
3516     # versions had trouble with output in subdirs
3517     am__obj=sub/conftest.${OBJEXT-o}
3518     am__minus_obj="-o $am__obj"
3519     case $depmode in
3520     gcc)
3521       # This depmode causes a compiler race in universal mode.
3522       test "$am__universal" = false || continue
3523       ;;
3524     nosideeffect)
3525       # after this tag, mechanisms are not by side-effect, so they'll
3526       # only be used when explicitly requested
3527       if test "x$enable_dependency_tracking" = xyes; then
3528         continue
3529       else
3530         break
3531       fi
3532       ;;
3533     msvisualcpp | msvcmsys)
3534       # This compiler won't grok `-c -o', but also, the minuso test has
3535       # not run yet.  These depmodes are late enough in the game, and
3536       # so weak that their functioning should not be impacted.
3537       am__obj=conftest.${OBJEXT-o}
3538       am__minus_obj=
3539       ;;
3540     none) break ;;
3541     esac
3542     if depmode=$depmode \
3543        source=sub/conftest.c object=$am__obj \
3544        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3545        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3546          >/dev/null 2>conftest.err &&
3547        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3548        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3549        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3550        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3551       # icc doesn't choke on unknown options, it will just issue warnings
3552       # or remarks (even with -Werror).  So we grep stderr for any message
3553       # that says an option was ignored or not supported.
3554       # When given -MP, icc 7.0 and 7.1 complain thusly:
3555       #   icc: Command line warning: ignoring option '-M'; no argument required
3556       # The diagnosis changed in icc 8.0:
3557       #   icc: Command line remark: option '-MP' not supported
3558       if (grep 'ignoring option' conftest.err ||
3559           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3560         am_cv_CC_dependencies_compiler_type=$depmode
3561         break
3562       fi
3563     fi
3564   done
3565
3566   cd ..
3567   rm -rf conftest.dir
3568 else
3569   am_cv_CC_dependencies_compiler_type=none
3570 fi
3571
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3574 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3575 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3576
3577  if
3578   test "x$enable_dependency_tracking" != xno \
3579   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3580   am__fastdepCC_TRUE=
3581   am__fastdepCC_FALSE='#'
3582 else
3583   am__fastdepCC_TRUE='#'
3584   am__fastdepCC_FALSE=
3585 fi
3586
3587
3588
3589
3590 ## ----------------------- ##
3591 ## Libtool initialisation. ##
3592 ## ----------------------- ##
3593 case `pwd` in
3594   *\ * | *\     *)
3595     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3596 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3597 esac
3598
3599
3600
3601 macro_version='2.4.2'
3602 macro_revision='1.3337'
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616 ltmain="$ac_aux_dir/ltmain.sh"
3617
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if ${ac_cv_build+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3634
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3639 *-*-*) ;;
3640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3641 esac
3642 build=$ac_cv_build
3643 ac_save_IFS=$IFS; IFS='-'
3644 set x $ac_cv_build
3645 shift
3646 build_cpu=$1
3647 build_vendor=$2
3648 shift; shift
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3651 build_os=$*
3652 IFS=$ac_save_IFS
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if ${ac_cv_host+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   if test "x$host_alias" = x; then
3662   ac_cv_host=$ac_cv_build
3663 else
3664   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3671 case $ac_cv_host in
3672 *-*-*) ;;
3673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3674 esac
3675 host=$ac_cv_host
3676 ac_save_IFS=$IFS; IFS='-'
3677 set x $ac_cv_host
3678 shift
3679 host_cpu=$1
3680 host_vendor=$2
3681 shift; shift
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3684 host_os=$*
3685 IFS=$ac_save_IFS
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3687
3688
3689 # Backslashify metacharacters that are still active within
3690 # double-quoted strings.
3691 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3692
3693 # Same as above, but do not quote variable references.
3694 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3695
3696 # Sed substitution to delay expansion of an escaped shell variable in a
3697 # double_quote_subst'ed string.
3698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3699
3700 # Sed substitution to delay expansion of an escaped single quote.
3701 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3702
3703 # Sed substitution to avoid accidental globbing in evaled expressions
3704 no_glob_subst='s/\*/\\\*/g'
3705
3706 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3707 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3709
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3711 $as_echo_n "checking how to print strings... " >&6; }
3712 # Test print first, because it will be a builtin if present.
3713 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3714    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3715   ECHO='print -r --'
3716 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3717   ECHO='printf %s\n'
3718 else
3719   # Use this function as a fallback that always works.
3720   func_fallback_echo ()
3721   {
3722     eval 'cat <<_LTECHO_EOF
3723 $1
3724 _LTECHO_EOF'
3725   }
3726   ECHO='func_fallback_echo'
3727 fi
3728
3729 # func_echo_all arg...
3730 # Invoke $ECHO with all args, space-separated.
3731 func_echo_all ()
3732 {
3733     $ECHO ""
3734 }
3735
3736 case "$ECHO" in
3737   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3738 $as_echo "printf" >&6; } ;;
3739   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3740 $as_echo "print -r" >&6; } ;;
3741   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3742 $as_echo "cat" >&6; } ;;
3743 esac
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3759 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3760 if ${ac_cv_path_SED+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3764      for ac_i in 1 2 3 4 5 6 7; do
3765        ac_script="$ac_script$as_nl$ac_script"
3766      done
3767      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3768      { ac_script=; unset ac_script;}
3769      if test -z "$SED"; then
3770   ac_path_SED_found=false
3771   # Loop through the user's path and test for each of PROGNAME-LIST
3772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777     for ac_prog in sed gsed; do
3778     for ac_exec_ext in '' $ac_executable_extensions; do
3779       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3780       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3781 # Check for GNU ac_path_SED and select it if it is found.
3782   # Check for GNU $ac_path_SED
3783 case `"$ac_path_SED" --version 2>&1` in
3784 *GNU*)
3785   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3786 *)
3787   ac_count=0
3788   $as_echo_n 0123456789 >"conftest.in"
3789   while :
3790   do
3791     cat "conftest.in" "conftest.in" >"conftest.tmp"
3792     mv "conftest.tmp" "conftest.in"
3793     cp "conftest.in" "conftest.nl"
3794     $as_echo '' >> "conftest.nl"
3795     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3797     as_fn_arith $ac_count + 1 && ac_count=$as_val
3798     if test $ac_count -gt ${ac_path_SED_max-0}; then
3799       # Best one so far, save it but keep looking for a better one
3800       ac_cv_path_SED="$ac_path_SED"
3801       ac_path_SED_max=$ac_count
3802     fi
3803     # 10*(2^10) chars as input seems more than enough
3804     test $ac_count -gt 10 && break
3805   done
3806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 esac
3808
3809       $ac_path_SED_found && break 3
3810     done
3811   done
3812   done
3813 IFS=$as_save_IFS
3814   if test -z "$ac_cv_path_SED"; then
3815     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3816   fi
3817 else
3818   ac_cv_path_SED=$SED
3819 fi
3820
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3823 $as_echo "$ac_cv_path_SED" >&6; }
3824  SED="$ac_cv_path_SED"
3825   rm -f conftest.sed
3826
3827 test -z "$SED" && SED=sed
3828 Xsed="$SED -e 1s/^X//"
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842 if ${ac_cv_path_GREP+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   if test -z "$GREP"; then
3846   ac_path_GREP_found=false
3847   # Loop through the user's path and test for each of PROGNAME-LIST
3848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853     for ac_prog in grep ggrep; do
3854     for ac_exec_ext in '' $ac_executable_extensions; do
3855       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858   # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3860 *GNU*)
3861   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862 *)
3863   ac_count=0
3864   $as_echo_n 0123456789 >"conftest.in"
3865   while :
3866   do
3867     cat "conftest.in" "conftest.in" >"conftest.tmp"
3868     mv "conftest.tmp" "conftest.in"
3869     cp "conftest.in" "conftest.nl"
3870     $as_echo 'GREP' >> "conftest.nl"
3871     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873     as_fn_arith $ac_count + 1 && ac_count=$as_val
3874     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875       # Best one so far, save it but keep looking for a better one
3876       ac_cv_path_GREP="$ac_path_GREP"
3877       ac_path_GREP_max=$ac_count
3878     fi
3879     # 10*(2^10) chars as input seems more than enough
3880     test $ac_count -gt 10 && break
3881   done
3882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 esac
3884
3885       $ac_path_GREP_found && break 3
3886     done
3887   done
3888   done
3889 IFS=$as_save_IFS
3890   if test -z "$ac_cv_path_GREP"; then
3891     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892   fi
3893 else
3894   ac_cv_path_GREP=$GREP
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3899 $as_echo "$ac_cv_path_GREP" >&6; }
3900  GREP="$ac_cv_path_GREP"
3901
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3904 $as_echo_n "checking for egrep... " >&6; }
3905 if ${ac_cv_path_EGREP+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3909    then ac_cv_path_EGREP="$GREP -E"
3910    else
3911      if test -z "$EGREP"; then
3912   ac_path_EGREP_found=false
3913   # Loop through the user's path and test for each of PROGNAME-LIST
3914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_prog in egrep; do
3920     for ac_exec_ext in '' $ac_executable_extensions; do
3921       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923 # Check for GNU ac_path_EGREP and select it if it is found.
3924   # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3926 *GNU*)
3927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 *)
3929   ac_count=0
3930   $as_echo_n 0123456789 >"conftest.in"
3931   while :
3932   do
3933     cat "conftest.in" "conftest.in" >"conftest.tmp"
3934     mv "conftest.tmp" "conftest.in"
3935     cp "conftest.in" "conftest.nl"
3936     $as_echo 'EGREP' >> "conftest.nl"
3937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939     as_fn_arith $ac_count + 1 && ac_count=$as_val
3940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941       # Best one so far, save it but keep looking for a better one
3942       ac_cv_path_EGREP="$ac_path_EGREP"
3943       ac_path_EGREP_max=$ac_count
3944     fi
3945     # 10*(2^10) chars as input seems more than enough
3946     test $ac_count -gt 10 && break
3947   done
3948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951       $ac_path_EGREP_found && break 3
3952     done
3953   done
3954   done
3955 IFS=$as_save_IFS
3956   if test -z "$ac_cv_path_EGREP"; then
3957     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958   fi
3959 else
3960   ac_cv_path_EGREP=$EGREP
3961 fi
3962
3963    fi
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3966 $as_echo "$ac_cv_path_EGREP" >&6; }
3967  EGREP="$ac_cv_path_EGREP"
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3971 $as_echo_n "checking for fgrep... " >&6; }
3972 if ${ac_cv_path_FGREP+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3976    then ac_cv_path_FGREP="$GREP -F"
3977    else
3978      if test -z "$FGREP"; then
3979   ac_path_FGREP_found=false
3980   # Loop through the user's path and test for each of PROGNAME-LIST
3981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986     for ac_prog in fgrep; do
3987     for ac_exec_ext in '' $ac_executable_extensions; do
3988       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3989       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3990 # Check for GNU ac_path_FGREP and select it if it is found.
3991   # Check for GNU $ac_path_FGREP
3992 case `"$ac_path_FGREP" --version 2>&1` in
3993 *GNU*)
3994   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3995 *)
3996   ac_count=0
3997   $as_echo_n 0123456789 >"conftest.in"
3998   while :
3999   do
4000     cat "conftest.in" "conftest.in" >"conftest.tmp"
4001     mv "conftest.tmp" "conftest.in"
4002     cp "conftest.in" "conftest.nl"
4003     $as_echo 'FGREP' >> "conftest.nl"
4004     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006     as_fn_arith $ac_count + 1 && ac_count=$as_val
4007     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4008       # Best one so far, save it but keep looking for a better one
4009       ac_cv_path_FGREP="$ac_path_FGREP"
4010       ac_path_FGREP_max=$ac_count
4011     fi
4012     # 10*(2^10) chars as input seems more than enough
4013     test $ac_count -gt 10 && break
4014   done
4015   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4017
4018       $ac_path_FGREP_found && break 3
4019     done
4020   done
4021   done
4022 IFS=$as_save_IFS
4023   if test -z "$ac_cv_path_FGREP"; then
4024     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4025   fi
4026 else
4027   ac_cv_path_FGREP=$FGREP
4028 fi
4029
4030    fi
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4033 $as_echo "$ac_cv_path_FGREP" >&6; }
4034  FGREP="$ac_cv_path_FGREP"
4035
4036
4037 test -z "$GREP" && GREP=grep
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 # Check whether --with-gnu-ld was given.
4058 if test "${with_gnu_ld+set}" = set; then :
4059   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4060 else
4061   with_gnu_ld=no
4062 fi
4063
4064 ac_prog=ld
4065 if test "$GCC" = yes; then
4066   # Check if gcc -print-prog-name=ld gives a path.
4067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4068 $as_echo_n "checking for ld used by $CC... " >&6; }
4069   case $host in
4070   *-*-mingw*)
4071     # gcc leaves a trailing carriage return which upsets mingw
4072     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4073   *)
4074     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4075   esac
4076   case $ac_prog in
4077     # Accept absolute paths.
4078     [\\/]* | ?:[\\/]*)
4079       re_direlt='/[^/][^/]*/\.\./'
4080       # Canonicalize the pathname of ld
4081       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4082       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4083         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4084       done
4085       test -z "$LD" && LD="$ac_prog"
4086       ;;
4087   "")
4088     # If it fails, then pretend we aren't using GCC.
4089     ac_prog=ld
4090     ;;
4091   *)
4092     # If it is relative, then search for the first ld in PATH.
4093     with_gnu_ld=unknown
4094     ;;
4095   esac
4096 elif test "$with_gnu_ld" = yes; then
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4098 $as_echo_n "checking for GNU ld... " >&6; }
4099 else
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4101 $as_echo_n "checking for non-GNU ld... " >&6; }
4102 fi
4103 if ${lt_cv_path_LD+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -z "$LD"; then
4107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108   for ac_dir in $PATH; do
4109     IFS="$lt_save_ifs"
4110     test -z "$ac_dir" && ac_dir=.
4111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4112       lt_cv_path_LD="$ac_dir/$ac_prog"
4113       # Check to see if the program is GNU ld.  I'd rather use --version,
4114       # but apparently some variants of GNU ld only accept -v.
4115       # Break only if it was the GNU/non-GNU ld that we prefer.
4116       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4117       *GNU* | *'with BFD'*)
4118         test "$with_gnu_ld" != no && break
4119         ;;
4120       *)
4121         test "$with_gnu_ld" != yes && break
4122         ;;
4123       esac
4124     fi
4125   done
4126   IFS="$lt_save_ifs"
4127 else
4128   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4129 fi
4130 fi
4131
4132 LD="$lt_cv_path_LD"
4133 if test -n "$LD"; then
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4135 $as_echo "$LD" >&6; }
4136 else
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4143 if ${lt_cv_prog_gnu_ld+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4147 case `$LD -v 2>&1 </dev/null` in
4148 *GNU* | *'with BFD'*)
4149   lt_cv_prog_gnu_ld=yes
4150   ;;
4151 *)
4152   lt_cv_prog_gnu_ld=no
4153   ;;
4154 esac
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4158 with_gnu_ld=$lt_cv_prog_gnu_ld
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4170 if ${lt_cv_path_NM+:} false; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173   if test -n "$NM"; then
4174   # Let the user override the test.
4175   lt_cv_path_NM="$NM"
4176 else
4177   lt_nm_to_check="${ac_tool_prefix}nm"
4178   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4179     lt_nm_to_check="$lt_nm_to_check nm"
4180   fi
4181   for lt_tmp_nm in $lt_nm_to_check; do
4182     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4183     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4184       IFS="$lt_save_ifs"
4185       test -z "$ac_dir" && ac_dir=.
4186       tmp_nm="$ac_dir/$lt_tmp_nm"
4187       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4188         # Check to see if the nm accepts a BSD-compat flag.
4189         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4190         #   nm: unknown option "B" ignored
4191         # Tru64's nm complains that /dev/null is an invalid object file
4192         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4193         */dev/null* | *'Invalid file or object type'*)
4194           lt_cv_path_NM="$tmp_nm -B"
4195           break
4196           ;;
4197         *)
4198           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4199           */dev/null*)
4200             lt_cv_path_NM="$tmp_nm -p"
4201             break
4202             ;;
4203           *)
4204             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4205             continue # so that we can try to find one that supports BSD flags
4206             ;;
4207           esac
4208           ;;
4209         esac
4210       fi
4211     done
4212     IFS="$lt_save_ifs"
4213   done
4214   : ${lt_cv_path_NM=no}
4215 fi
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4218 $as_echo "$lt_cv_path_NM" >&6; }
4219 if test "$lt_cv_path_NM" != "no"; then
4220   NM="$lt_cv_path_NM"
4221 else
4222   # Didn't find any BSD compatible name lister, look for dumpbin.
4223   if test -n "$DUMPBIN"; then :
4224     # Let the user override the test.
4225   else
4226     if test -n "$ac_tool_prefix"; then
4227   for ac_prog in dumpbin "link -dump"
4228   do
4229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_DUMPBIN+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   if test -n "$DUMPBIN"; then
4237   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_exec_ext in '' $ac_executable_extensions; do
4245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 DUMPBIN=$ac_cv_prog_DUMPBIN
4257 if test -n "$DUMPBIN"; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4259 $as_echo "$DUMPBIN" >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266     test -n "$DUMPBIN" && break
4267   done
4268 fi
4269 if test -z "$DUMPBIN"; then
4270   ac_ct_DUMPBIN=$DUMPBIN
4271   for ac_prog in dumpbin "link -dump"
4272 do
4273   # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$ac_ct_DUMPBIN"; then
4281   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4301 if test -n "$ac_ct_DUMPBIN"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4303 $as_echo "$ac_ct_DUMPBIN" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310   test -n "$ac_ct_DUMPBIN" && break
4311 done
4312
4313   if test "x$ac_ct_DUMPBIN" = x; then
4314     DUMPBIN=":"
4315   else
4316     case $cross_compiling:$ac_tool_warned in
4317 yes:)
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4320 ac_tool_warned=yes ;;
4321 esac
4322     DUMPBIN=$ac_ct_DUMPBIN
4323   fi
4324 fi
4325
4326     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4327     *COFF*)
4328       DUMPBIN="$DUMPBIN -symbols"
4329       ;;
4330     *)
4331       DUMPBIN=:
4332       ;;
4333     esac
4334   fi
4335
4336   if test "$DUMPBIN" != ":"; then
4337     NM="$DUMPBIN"
4338   fi
4339 fi
4340 test -z "$NM" && NM=nm
4341
4342
4343
4344
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4348 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4349 if ${lt_cv_nm_interface+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   lt_cv_nm_interface="BSD nm"
4353   echo "int some_variable = 0;" > conftest.$ac_ext
4354   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4355   (eval "$ac_compile" 2>conftest.err)
4356   cat conftest.err >&5
4357   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4358   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4359   cat conftest.err >&5
4360   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4361   cat conftest.out >&5
4362   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4363     lt_cv_nm_interface="MS dumpbin"
4364   fi
4365   rm -f conftest*
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4368 $as_echo "$lt_cv_nm_interface" >&6; }
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4371 $as_echo_n "checking whether ln -s works... " >&6; }
4372 LN_S=$as_ln_s
4373 if test "$LN_S" = "ln -s"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4378 $as_echo "no, using $LN_S" >&6; }
4379 fi
4380
4381 # find the maximum length of command line arguments
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4383 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4384 if ${lt_cv_sys_max_cmd_len+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387     i=0
4388   teststring="ABCD"
4389
4390   case $build_os in
4391   msdosdjgpp*)
4392     # On DJGPP, this test can blow up pretty badly due to problems in libc
4393     # (any single argument exceeding 2000 bytes causes a buffer overrun
4394     # during glob expansion).  Even if it were fixed, the result of this
4395     # check would be larger than it should be.
4396     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4397     ;;
4398
4399   gnu*)
4400     # Under GNU Hurd, this test is not required because there is
4401     # no limit to the length of command line arguments.
4402     # Libtool will interpret -1 as no limit whatsoever
4403     lt_cv_sys_max_cmd_len=-1;
4404     ;;
4405
4406   cygwin* | mingw* | cegcc*)
4407     # On Win9x/ME, this test blows up -- it succeeds, but takes
4408     # about 5 minutes as the teststring grows exponentially.
4409     # Worse, since 9x/ME are not pre-emptively multitasking,
4410     # you end up with a "frozen" computer, even though with patience
4411     # the test eventually succeeds (with a max line length of 256k).
4412     # Instead, let's just punt: use the minimum linelength reported by
4413     # all of the supported platforms: 8192 (on NT/2K/XP).
4414     lt_cv_sys_max_cmd_len=8192;
4415     ;;
4416
4417   mint*)
4418     # On MiNT this can take a long time and run out of memory.
4419     lt_cv_sys_max_cmd_len=8192;
4420     ;;
4421
4422   amigaos*)
4423     # On AmigaOS with pdksh, this test takes hours, literally.
4424     # So we just punt and use a minimum line length of 8192.
4425     lt_cv_sys_max_cmd_len=8192;
4426     ;;
4427
4428   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4429     # This has been around since 386BSD, at least.  Likely further.
4430     if test -x /sbin/sysctl; then
4431       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4432     elif test -x /usr/sbin/sysctl; then
4433       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4434     else
4435       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4436     fi
4437     # And add a safety zone
4438     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4439     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4440     ;;
4441
4442   interix*)
4443     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4444     lt_cv_sys_max_cmd_len=196608
4445     ;;
4446
4447   os2*)
4448     # The test takes a long time on OS/2.
4449     lt_cv_sys_max_cmd_len=8192
4450     ;;
4451
4452   osf*)
4453     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4454     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4455     # nice to cause kernel panics so lets avoid the loop below.
4456     # First set a reasonable default.
4457     lt_cv_sys_max_cmd_len=16384
4458     #
4459     if test -x /sbin/sysconfig; then
4460       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4461         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4462       esac
4463     fi
4464     ;;
4465   sco3.2v5*)
4466     lt_cv_sys_max_cmd_len=102400
4467     ;;
4468   sysv5* | sco5v6* | sysv4.2uw2*)
4469     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4470     if test -n "$kargmax"; then
4471       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4472     else
4473       lt_cv_sys_max_cmd_len=32768
4474     fi
4475     ;;
4476   *)
4477     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4478     if test -n "$lt_cv_sys_max_cmd_len"; then
4479       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4480       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4481     else
4482       # Make teststring a little bigger before we do anything with it.
4483       # a 1K string should be a reasonable start.
4484       for i in 1 2 3 4 5 6 7 8 ; do
4485         teststring=$teststring$teststring
4486       done
4487       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4488       # If test is not a shell built-in, we'll probably end up computing a
4489       # maximum length that is only half of the actual maximum length, but
4490       # we can't tell.
4491       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4492                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4493               test $i != 17 # 1/2 MB should be enough
4494       do
4495         i=`expr $i + 1`
4496         teststring=$teststring$teststring
4497       done
4498       # Only check the string length outside the loop.
4499       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4500       teststring=
4501       # Add a significant safety factor because C++ compilers can tack on
4502       # massive amounts of additional arguments before passing them to the
4503       # linker.  It appears as though 1/2 is a usable value.
4504       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4505     fi
4506     ;;
4507   esac
4508
4509 fi
4510
4511 if test -n $lt_cv_sys_max_cmd_len ; then
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4513 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4514 else
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4516 $as_echo "none" >&6; }
4517 fi
4518 max_cmd_len=$lt_cv_sys_max_cmd_len
4519
4520
4521
4522
4523
4524
4525 : ${CP="cp -f"}
4526 : ${MV="mv -f"}
4527 : ${RM="rm -f"}
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4530 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4531 # Try some XSI features
4532 xsi_shell=no
4533 ( _lt_dummy="a/b/c"
4534   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4535       = c,a/b,b/c, \
4536     && eval 'test $(( 1 + 1 )) -eq 2 \
4537     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4538   && xsi_shell=yes
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4540 $as_echo "$xsi_shell" >&6; }
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4544 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4545 lt_shell_append=no
4546 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4547     >/dev/null 2>&1 \
4548   && lt_shell_append=yes
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4550 $as_echo "$lt_shell_append" >&6; }
4551
4552
4553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4554   lt_unset=unset
4555 else
4556   lt_unset=false
4557 fi
4558
4559
4560
4561
4562
4563 # test EBCDIC or ASCII
4564 case `echo X|tr X '\101'` in
4565  A) # ASCII based system
4566     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4567   lt_SP2NL='tr \040 \012'
4568   lt_NL2SP='tr \015\012 \040\040'
4569   ;;
4570  *) # EBCDIC based system
4571   lt_SP2NL='tr \100 \n'
4572   lt_NL2SP='tr \r\n \100\100'
4573   ;;
4574 esac
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4585 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4586 if ${lt_cv_to_host_file_cmd+:} false; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   case $host in
4590   *-*-mingw* )
4591     case $build in
4592       *-*-mingw* ) # actually msys
4593         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4594         ;;
4595       *-*-cygwin* )
4596         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4597         ;;
4598       * ) # otherwise, assume *nix
4599         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4600         ;;
4601     esac
4602     ;;
4603   *-*-cygwin* )
4604     case $build in
4605       *-*-mingw* ) # actually msys
4606         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4607         ;;
4608       *-*-cygwin* )
4609         lt_cv_to_host_file_cmd=func_convert_file_noop
4610         ;;
4611       * ) # otherwise, assume *nix
4612         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4613         ;;
4614     esac
4615     ;;
4616   * ) # unhandled hosts (and "normal" native builds)
4617     lt_cv_to_host_file_cmd=func_convert_file_noop
4618     ;;
4619 esac
4620
4621 fi
4622
4623 to_host_file_cmd=$lt_cv_to_host_file_cmd
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4625 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4626
4627
4628
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4632 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4633 if ${lt_cv_to_tool_file_cmd+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   #assume ordinary cross tools, or native build.
4637 lt_cv_to_tool_file_cmd=func_convert_file_noop
4638 case $host in
4639   *-*-mingw* )
4640     case $build in
4641       *-*-mingw* ) # actually msys
4642         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4643         ;;
4644     esac
4645     ;;
4646 esac
4647
4648 fi
4649
4650 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4652 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4653
4654
4655
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4659 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4660 if ${lt_cv_ld_reload_flag+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   lt_cv_ld_reload_flag='-r'
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4666 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4667 reload_flag=$lt_cv_ld_reload_flag
4668 case $reload_flag in
4669 "" | " "*) ;;
4670 *) reload_flag=" $reload_flag" ;;
4671 esac
4672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4673 case $host_os in
4674   cygwin* | mingw* | pw32* | cegcc*)
4675     if test "$GCC" != yes; then
4676       reload_cmds=false
4677     fi
4678     ;;
4679   darwin*)
4680     if test "$GCC" = yes; then
4681       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4682     else
4683       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4684     fi
4685     ;;
4686 esac
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696 if test -n "$ac_tool_prefix"; then
4697   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_OBJDUMP+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   if test -n "$OBJDUMP"; then
4705   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_exec_ext in '' $ac_executable_extensions; do
4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719   done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 OBJDUMP=$ac_cv_prog_OBJDUMP
4725 if test -n "$OBJDUMP"; then
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4727 $as_echo "$OBJDUMP" >&6; }
4728 else
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 fi
4735 if test -z "$ac_cv_prog_OBJDUMP"; then
4736   ac_ct_OBJDUMP=$OBJDUMP
4737   # Extract the first word of "objdump", so it can be a program name with args.
4738 set dummy objdump; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if test -n "$ac_ct_OBJDUMP"; then
4745   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752     for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759   done
4760 IFS=$as_save_IFS
4761
4762 fi
4763 fi
4764 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4765 if test -n "$ac_ct_OBJDUMP"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4767 $as_echo "$ac_ct_OBJDUMP" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772
4773   if test "x$ac_ct_OBJDUMP" = x; then
4774     OBJDUMP="false"
4775   else
4776     case $cross_compiling:$ac_tool_warned in
4777 yes:)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4781 esac
4782     OBJDUMP=$ac_ct_OBJDUMP
4783   fi
4784 else
4785   OBJDUMP="$ac_cv_prog_OBJDUMP"
4786 fi
4787
4788 test -z "$OBJDUMP" && OBJDUMP=objdump
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4799 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4800 if ${lt_cv_deplibs_check_method+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   lt_cv_file_magic_cmd='$MAGIC_CMD'
4804 lt_cv_file_magic_test_file=
4805 lt_cv_deplibs_check_method='unknown'
4806 # Need to set the preceding variable on all platforms that support
4807 # interlibrary dependencies.
4808 # 'none' -- dependencies not supported.
4809 # `unknown' -- same as none, but documents that we really don't know.
4810 # 'pass_all' -- all dependencies passed with no checks.
4811 # 'test_compile' -- check by making test program.
4812 # 'file_magic [[regex]]' -- check by looking for files in library path
4813 # which responds to the $file_magic_cmd with a given extended regex.
4814 # If you have `file' or equivalent on your system and you're not sure
4815 # whether `pass_all' will *always* work, you probably want this one.
4816
4817 case $host_os in
4818 aix[4-9]*)
4819   lt_cv_deplibs_check_method=pass_all
4820   ;;
4821
4822 beos*)
4823   lt_cv_deplibs_check_method=pass_all
4824   ;;
4825
4826 bsdi[45]*)
4827   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4828   lt_cv_file_magic_cmd='/usr/bin/file -L'
4829   lt_cv_file_magic_test_file=/shlib/libc.so
4830   ;;
4831
4832 cygwin*)
4833   # func_win32_libid is a shell function defined in ltmain.sh
4834   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835   lt_cv_file_magic_cmd='func_win32_libid'
4836   ;;
4837
4838 mingw* | pw32*)
4839   # Base MSYS/MinGW do not provide the 'file' command needed by
4840   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4841   # unless we find 'file', for example because we are cross-compiling.
4842   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4843   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4844     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4845     lt_cv_file_magic_cmd='func_win32_libid'
4846   else
4847     # Keep this pattern in sync with the one in func_win32_libid.
4848     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4849     lt_cv_file_magic_cmd='$OBJDUMP -f'
4850   fi
4851   ;;
4852
4853 cegcc*)
4854   # use the weaker test based on 'objdump'. See mingw*.
4855   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4856   lt_cv_file_magic_cmd='$OBJDUMP -f'
4857   ;;
4858
4859 darwin* | rhapsody*)
4860   lt_cv_deplibs_check_method=pass_all
4861   ;;
4862
4863 freebsd* | dragonfly*)
4864   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4865     case $host_cpu in
4866     i*86 )
4867       # Not sure whether the presence of OpenBSD here was a mistake.
4868       # Let's accept both of them until this is cleared up.
4869       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4870       lt_cv_file_magic_cmd=/usr/bin/file
4871       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4872       ;;
4873     esac
4874   else
4875     lt_cv_deplibs_check_method=pass_all
4876   fi
4877   ;;
4878
4879 gnu*)
4880   lt_cv_deplibs_check_method=pass_all
4881   ;;
4882
4883 haiku*)
4884   lt_cv_deplibs_check_method=pass_all
4885   ;;
4886
4887 hpux10.20* | hpux11*)
4888   lt_cv_file_magic_cmd=/usr/bin/file
4889   case $host_cpu in
4890   ia64*)
4891     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4892     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4893     ;;
4894   hppa*64*)
4895     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]'
4896     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4897     ;;
4898   *)
4899     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4900     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4901     ;;
4902   esac
4903   ;;
4904
4905 interix[3-9]*)
4906   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4907   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4908   ;;
4909
4910 irix5* | irix6* | nonstopux*)
4911   case $LD in
4912   *-32|*"-32 ") libmagic=32-bit;;
4913   *-n32|*"-n32 ") libmagic=N32;;
4914   *-64|*"-64 ") libmagic=64-bit;;
4915   *) libmagic=never-match;;
4916   esac
4917   lt_cv_deplibs_check_method=pass_all
4918   ;;
4919
4920 # This must be glibc/ELF.
4921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4922   lt_cv_deplibs_check_method=pass_all
4923   ;;
4924
4925 netbsd*)
4926   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4928   else
4929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4930   fi
4931   ;;
4932
4933 newos6*)
4934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4935   lt_cv_file_magic_cmd=/usr/bin/file
4936   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4937   ;;
4938
4939 *nto* | *qnx*)
4940   lt_cv_deplibs_check_method=pass_all
4941   ;;
4942
4943 openbsd*)
4944   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4945     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4946   else
4947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948   fi
4949   ;;
4950
4951 osf3* | osf4* | osf5*)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 rdos*)
4956   lt_cv_deplibs_check_method=pass_all
4957   ;;
4958
4959 solaris*)
4960   lt_cv_deplibs_check_method=pass_all
4961   ;;
4962
4963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4964   lt_cv_deplibs_check_method=pass_all
4965   ;;
4966
4967 sysv4 | sysv4.3*)
4968   case $host_vendor in
4969   motorola)
4970     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]'
4971     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4972     ;;
4973   ncr)
4974     lt_cv_deplibs_check_method=pass_all
4975     ;;
4976   sequent)
4977     lt_cv_file_magic_cmd='/bin/file'
4978     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4979     ;;
4980   sni)
4981     lt_cv_file_magic_cmd='/bin/file'
4982     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4983     lt_cv_file_magic_test_file=/lib/libc.so
4984     ;;
4985   siemens)
4986     lt_cv_deplibs_check_method=pass_all
4987     ;;
4988   pc)
4989     lt_cv_deplibs_check_method=pass_all
4990     ;;
4991   esac
4992   ;;
4993
4994 tpf*)
4995   lt_cv_deplibs_check_method=pass_all
4996   ;;
4997 esac
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5001 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5002
5003 file_magic_glob=
5004 want_nocaseglob=no
5005 if test "$build" = "$host"; then
5006   case $host_os in
5007   mingw* | pw32*)
5008     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5009       want_nocaseglob=yes
5010     else
5011       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5012     fi
5013     ;;
5014   esac
5015 fi
5016
5017 file_magic_cmd=$lt_cv_file_magic_cmd
5018 deplibs_check_method=$lt_cv_deplibs_check_method
5019 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_DLLTOOL+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -n "$DLLTOOL"; then
5051   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058     for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065   done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 DLLTOOL=$ac_cv_prog_DLLTOOL
5071 if test -n "$DLLTOOL"; then
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5073 $as_echo "$DLLTOOL" >&6; }
5074 else
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 fi
5081 if test -z "$ac_cv_prog_DLLTOOL"; then
5082   ac_ct_DLLTOOL=$DLLTOOL
5083   # Extract the first word of "dlltool", so it can be a program name with args.
5084 set dummy dlltool; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   if test -n "$ac_ct_DLLTOOL"; then
5091   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5111 if test -n "$ac_ct_DLLTOOL"; then
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5113 $as_echo "$ac_ct_DLLTOOL" >&6; }
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119   if test "x$ac_ct_DLLTOOL" = x; then
5120     DLLTOOL="false"
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128     DLLTOOL=$ac_ct_DLLTOOL
5129   fi
5130 else
5131   DLLTOOL="$ac_cv_prog_DLLTOOL"
5132 fi
5133
5134 test -z "$DLLTOOL" && DLLTOOL=dlltool
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5146 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5147 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   lt_cv_sharedlib_from_linklib_cmd='unknown'
5151
5152 case $host_os in
5153 cygwin* | mingw* | pw32* | cegcc*)
5154   # two different shell functions defined in ltmain.sh
5155   # decide which to use based on capabilities of $DLLTOOL
5156   case `$DLLTOOL --help 2>&1` in
5157   *--identify-strict*)
5158     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5159     ;;
5160   *)
5161     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5162     ;;
5163   esac
5164   ;;
5165 *)
5166   # fallback: assume linklib IS sharedlib
5167   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5168   ;;
5169 esac
5170
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5173 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5174 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5175 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5176
5177
5178
5179
5180
5181
5182
5183
5184 if test -n "$ac_tool_prefix"; then
5185   for ac_prog in ar
5186   do
5187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_AR+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   if test -n "$AR"; then
5195   ac_cv_prog_AR="$AR" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 AR=$ac_cv_prog_AR
5215 if test -n "$AR"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5217 $as_echo "$AR" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224     test -n "$AR" && break
5225   done
5226 fi
5227 if test -z "$AR"; then
5228   ac_ct_AR=$AR
5229   for ac_prog in ar
5230 do
5231   # Extract the first word of "$ac_prog", so it can be a program name with args.
5232 set dummy $ac_prog; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   if test -n "$ac_ct_AR"; then
5239   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246     for ac_exec_ext in '' $ac_executable_extensions; do
5247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248     ac_cv_prog_ac_ct_AR="$ac_prog"
5249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250     break 2
5251   fi
5252 done
5253   done
5254 IFS=$as_save_IFS
5255
5256 fi
5257 fi
5258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5259 if test -n "$ac_ct_AR"; then
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5261 $as_echo "$ac_ct_AR" >&6; }
5262 else
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267
5268   test -n "$ac_ct_AR" && break
5269 done
5270
5271   if test "x$ac_ct_AR" = x; then
5272     AR="false"
5273   else
5274     case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280     AR=$ac_ct_AR
5281   fi
5282 fi
5283
5284 : ${AR=ar}
5285 : ${AR_FLAGS=cru}
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5298 $as_echo_n "checking for archiver @FILE support... " >&6; }
5299 if ${lt_cv_ar_at_file+:} false; then :
5300   $as_echo_n "(cached) " >&6
5301 else
5302   lt_cv_ar_at_file=no
5303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h.  */
5305
5306 int
5307 main ()
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315   echo conftest.$ac_objext > conftest.lst
5316       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5317       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5318   (eval $lt_ar_try) 2>&5
5319   ac_status=$?
5320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321   test $ac_status = 0; }
5322       if test "$ac_status" -eq 0; then
5323         # Ensure the archiver fails upon bogus file names.
5324         rm -f conftest.$ac_objext libconftest.a
5325         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5326   (eval $lt_ar_try) 2>&5
5327   ac_status=$?
5328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329   test $ac_status = 0; }
5330         if test "$ac_status" -ne 0; then
5331           lt_cv_ar_at_file=@
5332         fi
5333       fi
5334       rm -f conftest.* libconftest.a
5335
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5341 $as_echo "$lt_cv_ar_at_file" >&6; }
5342
5343 if test "x$lt_cv_ar_at_file" = xno; then
5344   archiver_list_spec=
5345 else
5346   archiver_list_spec=$lt_cv_ar_at_file
5347 fi
5348
5349
5350
5351
5352
5353
5354
5355 if test -n "$ac_tool_prefix"; then
5356   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}strip; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_STRIP+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$STRIP"; then
5364   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 STRIP=$ac_cv_prog_STRIP
5384 if test -n "$STRIP"; then
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5386 $as_echo "$STRIP" >&6; }
5387 else
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 fi
5394 if test -z "$ac_cv_prog_STRIP"; then
5395   ac_ct_STRIP=$STRIP
5396   # Extract the first word of "strip", so it can be a program name with args.
5397 set dummy strip; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$ac_ct_STRIP"; then
5404   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413     ac_cv_prog_ac_ct_STRIP="strip"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5424 if test -n "$ac_ct_STRIP"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5426 $as_echo "$ac_ct_STRIP" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432   if test "x$ac_ct_STRIP" = x; then
5433     STRIP=":"
5434   else
5435     case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5440 esac
5441     STRIP=$ac_ct_STRIP
5442   fi
5443 else
5444   STRIP="$ac_cv_prog_STRIP"
5445 fi
5446
5447 test -z "$STRIP" && STRIP=:
5448
5449
5450
5451
5452
5453
5454 if test -n "$ac_tool_prefix"; then
5455   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_RANLIB+:} false; then :
5460   $as_echo_n "(cached) " >&6
5461 else
5462   if test -n "$RANLIB"; then
5463   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470     for ac_exec_ext in '' $ac_executable_extensions; do
5471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477   done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 RANLIB=$ac_cv_prog_RANLIB
5483 if test -n "$RANLIB"; then
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5485 $as_echo "$RANLIB" >&6; }
5486 else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492 fi
5493 if test -z "$ac_cv_prog_RANLIB"; then
5494   ac_ct_RANLIB=$RANLIB
5495   # Extract the first word of "ranlib", so it can be a program name with args.
5496 set dummy ranlib; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5500   $as_echo_n "(cached) " >&6
5501 else
5502   if test -n "$ac_ct_RANLIB"; then
5503   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510     for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_prog_ac_ct_RANLIB="ranlib"
5513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517   done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5523 if test -n "$ac_ct_RANLIB"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5525 $as_echo "$ac_ct_RANLIB" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531   if test "x$ac_ct_RANLIB" = x; then
5532     RANLIB=":"
5533   else
5534     case $cross_compiling:$ac_tool_warned in
5535 yes:)
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5539 esac
5540     RANLIB=$ac_ct_RANLIB
5541   fi
5542 else
5543   RANLIB="$ac_cv_prog_RANLIB"
5544 fi
5545
5546 test -z "$RANLIB" && RANLIB=:
5547
5548
5549
5550
5551
5552
5553 # Determine commands to create old-style static archives.
5554 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5555 old_postinstall_cmds='chmod 644 $oldlib'
5556 old_postuninstall_cmds=
5557
5558 if test -n "$RANLIB"; then
5559   case $host_os in
5560   openbsd*)
5561     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5562     ;;
5563   *)
5564     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5565     ;;
5566   esac
5567   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5568 fi
5569
5570 case $host_os in
5571   darwin*)
5572     lock_old_archive_extraction=yes ;;
5573   *)
5574     lock_old_archive_extraction=no ;;
5575 esac
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
5613
5614
5615 # If no C compiler was specified, use CC.
5616 LTCC=${LTCC-"$CC"}
5617
5618 # If no C compiler flags were specified, use CFLAGS.
5619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5620
5621 # Allow CC to be a program name with arguments.
5622 compiler=$CC
5623
5624
5625 # Check for command to grab the raw symbol name followed by C symbol from nm.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5627 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5628 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631
5632 # These are sane defaults that work on at least a few old systems.
5633 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5634
5635 # Character class describing NM global symbol codes.
5636 symcode='[BCDEGRST]'
5637
5638 # Regexp to match symbols that can be accessed directly from C.
5639 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5640
5641 # Define system-specific variables.
5642 case $host_os in
5643 aix*)
5644   symcode='[BCDT]'
5645   ;;
5646 cygwin* | mingw* | pw32* | cegcc*)
5647   symcode='[ABCDGISTW]'
5648   ;;
5649 hpux*)
5650   if test "$host_cpu" = ia64; then
5651     symcode='[ABCDEGRST]'
5652   fi
5653   ;;
5654 irix* | nonstopux*)
5655   symcode='[BCDEGRST]'
5656   ;;
5657 osf*)
5658   symcode='[BCDEGQRST]'
5659   ;;
5660 solaris*)
5661   symcode='[BDRT]'
5662   ;;
5663 sco3.2v5*)
5664   symcode='[DT]'
5665   ;;
5666 sysv4.2uw2*)
5667   symcode='[DT]'
5668   ;;
5669 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5670   symcode='[ABDT]'
5671   ;;
5672 sysv4)
5673   symcode='[DFNSTU]'
5674   ;;
5675 esac
5676
5677 # If we're using GNU nm, then use its standard symbol codes.
5678 case `$NM -V 2>&1` in
5679 *GNU* | *'with BFD'*)
5680   symcode='[ABCDGIRSTW]' ;;
5681 esac
5682
5683 # Transform an extracted symbol line into a proper C declaration.
5684 # Some systems (esp. on ia64) link data and code symbols differently,
5685 # so use this general approach.
5686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5687
5688 # Transform an extracted symbol line into symbol name and symbol address
5689 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5690 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'"
5691
5692 # Handle CRLF in mingw tool chain
5693 opt_cr=
5694 case $build_os in
5695 mingw*)
5696   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5697   ;;
5698 esac
5699
5700 # Try without a prefix underscore, then with it.
5701 for ac_symprfx in "" "_"; do
5702
5703   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5704   symxfrm="\\1 $ac_symprfx\\2 \\2"
5705
5706   # Write the raw and C identifiers.
5707   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5708     # Fake it for dumpbin and say T for any non-static function
5709     # and D for any global variable.
5710     # Also find C++ and __fastcall symbols from MSVC++,
5711     # which start with @ or ?.
5712     lt_cv_sys_global_symbol_pipe="$AWK '"\
5713 "     {last_section=section; section=\$ 3};"\
5714 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5715 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5716 "     \$ 0!~/External *\|/{next};"\
5717 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5718 "     {if(hide[section]) next};"\
5719 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5720 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5721 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5722 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5723 "     ' prfx=^$ac_symprfx"
5724   else
5725     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5726   fi
5727   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5728
5729   # Check to see that the pipe works correctly.
5730   pipe_works=no
5731
5732   rm -f conftest*
5733   cat > conftest.$ac_ext <<_LT_EOF
5734 #ifdef __cplusplus
5735 extern "C" {
5736 #endif
5737 char nm_test_var;
5738 void nm_test_func(void);
5739 void nm_test_func(void){}
5740 #ifdef __cplusplus
5741 }
5742 #endif
5743 int main(){nm_test_var='a';nm_test_func();return(0);}
5744 _LT_EOF
5745
5746   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747   (eval $ac_compile) 2>&5
5748   ac_status=$?
5749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750   test $ac_status = 0; }; then
5751     # Now try to grab the symbols.
5752     nlist=conftest.nm
5753     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5754   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5755   ac_status=$?
5756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757   test $ac_status = 0; } && test -s "$nlist"; then
5758       # Try sorting and uniquifying the output.
5759       if sort "$nlist" | uniq > "$nlist"T; then
5760         mv -f "$nlist"T "$nlist"
5761       else
5762         rm -f "$nlist"T
5763       fi
5764
5765       # Make sure that we snagged all the symbols we need.
5766       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5767         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5768           cat <<_LT_EOF > conftest.$ac_ext
5769 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5770 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5771 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5772    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5773 # define LT_DLSYM_CONST
5774 #elif defined(__osf__)
5775 /* This system does not cope well with relocations in const data.  */
5776 # define LT_DLSYM_CONST
5777 #else
5778 # define LT_DLSYM_CONST const
5779 #endif
5780
5781 #ifdef __cplusplus
5782 extern "C" {
5783 #endif
5784
5785 _LT_EOF
5786           # Now generate the symbol file.
5787           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5788
5789           cat <<_LT_EOF >> conftest.$ac_ext
5790
5791 /* The mapping between symbol names and symbols.  */
5792 LT_DLSYM_CONST struct {
5793   const char *name;
5794   void       *address;
5795 }
5796 lt__PROGRAM__LTX_preloaded_symbols[] =
5797 {
5798   { "@PROGRAM@", (void *) 0 },
5799 _LT_EOF
5800           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5801           cat <<\_LT_EOF >> conftest.$ac_ext
5802   {0, (void *) 0}
5803 };
5804
5805 /* This works around a problem in FreeBSD linker */
5806 #ifdef FREEBSD_WORKAROUND
5807 static const void *lt_preloaded_setup() {
5808   return lt__PROGRAM__LTX_preloaded_symbols;
5809 }
5810 #endif
5811
5812 #ifdef __cplusplus
5813 }
5814 #endif
5815 _LT_EOF
5816           # Now try linking the two files.
5817           mv conftest.$ac_objext conftstm.$ac_objext
5818           lt_globsym_save_LIBS=$LIBS
5819           lt_globsym_save_CFLAGS=$CFLAGS
5820           LIBS="conftstm.$ac_objext"
5821           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5822           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5823   (eval $ac_link) 2>&5
5824   ac_status=$?
5825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5827             pipe_works=yes
5828           fi
5829           LIBS=$lt_globsym_save_LIBS
5830           CFLAGS=$lt_globsym_save_CFLAGS
5831         else
5832           echo "cannot find nm_test_func in $nlist" >&5
5833         fi
5834       else
5835         echo "cannot find nm_test_var in $nlist" >&5
5836       fi
5837     else
5838       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5839     fi
5840   else
5841     echo "$progname: failed program was:" >&5
5842     cat conftest.$ac_ext >&5
5843   fi
5844   rm -rf conftest* conftst*
5845
5846   # Do not use the global_symbol_pipe unless it works.
5847   if test "$pipe_works" = yes; then
5848     break
5849   else
5850     lt_cv_sys_global_symbol_pipe=
5851   fi
5852 done
5853
5854 fi
5855
5856 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5857   lt_cv_sys_global_symbol_to_cdecl=
5858 fi
5859 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5861 $as_echo "failed" >&6; }
5862 else
5863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5864 $as_echo "ok" >&6; }
5865 fi
5866
5867 # Response file support.
5868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5869   nm_file_list_spec='@'
5870 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5871   nm_file_list_spec='@'
5872 fi
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
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5901 $as_echo_n "checking for sysroot... " >&6; }
5902
5903 # Check whether --with-sysroot was given.
5904 if test "${with_sysroot+set}" = set; then :
5905   withval=$with_sysroot;
5906 else
5907   with_sysroot=no
5908 fi
5909
5910
5911 lt_sysroot=
5912 case ${with_sysroot} in #(
5913  yes)
5914    if test "$GCC" = yes; then
5915      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5916    fi
5917    ;; #(
5918  /*)
5919    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5920    ;; #(
5921  no|'')
5922    ;; #(
5923  *)
5924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5925 $as_echo "${with_sysroot}" >&6; }
5926    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5927    ;;
5928 esac
5929
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5931 $as_echo "${lt_sysroot:-no}" >&6; }
5932
5933
5934
5935
5936
5937 # Check whether --enable-libtool-lock was given.
5938 if test "${enable_libtool_lock+set}" = set; then :
5939   enableval=$enable_libtool_lock;
5940 fi
5941
5942 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5943
5944 # Some flags need to be propagated to the compiler or linker for good
5945 # libtool support.
5946 case $host in
5947 ia64-*-hpux*)
5948   # Find out which ABI we are using.
5949   echo 'int i;' > conftest.$ac_ext
5950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5951   (eval $ac_compile) 2>&5
5952   ac_status=$?
5953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954   test $ac_status = 0; }; then
5955     case `/usr/bin/file conftest.$ac_objext` in
5956       *ELF-32*)
5957         HPUX_IA64_MODE="32"
5958         ;;
5959       *ELF-64*)
5960         HPUX_IA64_MODE="64"
5961         ;;
5962     esac
5963   fi
5964   rm -rf conftest*
5965   ;;
5966 *-*-irix6*)
5967   # Find out which ABI we are using.
5968   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5969   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5970   (eval $ac_compile) 2>&5
5971   ac_status=$?
5972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973   test $ac_status = 0; }; then
5974     if test "$lt_cv_prog_gnu_ld" = yes; then
5975       case `/usr/bin/file conftest.$ac_objext` in
5976         *32-bit*)
5977           LD="${LD-ld} -melf32bsmip"
5978           ;;
5979         *N32*)
5980           LD="${LD-ld} -melf32bmipn32"
5981           ;;
5982         *64-bit*)
5983           LD="${LD-ld} -melf64bmip"
5984         ;;
5985       esac
5986     else
5987       case `/usr/bin/file conftest.$ac_objext` in
5988         *32-bit*)
5989           LD="${LD-ld} -32"
5990           ;;
5991         *N32*)
5992           LD="${LD-ld} -n32"
5993           ;;
5994         *64-bit*)
5995           LD="${LD-ld} -64"
5996           ;;
5997       esac
5998     fi
5999   fi
6000   rm -rf conftest*
6001   ;;
6002
6003 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6004 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6005   # Find out which ABI we are using.
6006   echo 'int i;' > conftest.$ac_ext
6007   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6008   (eval $ac_compile) 2>&5
6009   ac_status=$?
6010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6011   test $ac_status = 0; }; then
6012     case `/usr/bin/file conftest.o` in
6013       *32-bit*)
6014         case $host in
6015           x86_64-*kfreebsd*-gnu)
6016             LD="${LD-ld} -m elf_i386_fbsd"
6017             ;;
6018           x86_64-*linux*)
6019             LD="${LD-ld} -m elf_i386"
6020             ;;
6021           ppc64-*linux*|powerpc64-*linux*)
6022             LD="${LD-ld} -m elf32ppclinux"
6023             ;;
6024           s390x-*linux*)
6025             LD="${LD-ld} -m elf_s390"
6026             ;;
6027           sparc64-*linux*)
6028             LD="${LD-ld} -m elf32_sparc"
6029             ;;
6030         esac
6031         ;;
6032       *64-bit*)
6033         case $host in
6034           x86_64-*kfreebsd*-gnu)
6035             LD="${LD-ld} -m elf_x86_64_fbsd"
6036             ;;
6037           x86_64-*linux*)
6038             LD="${LD-ld} -m elf_x86_64"
6039             ;;
6040           ppc*-*linux*|powerpc*-*linux*)
6041             LD="${LD-ld} -m elf64ppc"
6042             ;;
6043           s390*-*linux*|s390*-*tpf*)
6044             LD="${LD-ld} -m elf64_s390"
6045             ;;
6046           sparc*-*linux*)
6047             LD="${LD-ld} -m elf64_sparc"
6048             ;;
6049         esac
6050         ;;
6051     esac
6052   fi
6053   rm -rf conftest*
6054   ;;
6055
6056 *-*-sco3.2v5*)
6057   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6058   SAVE_CFLAGS="$CFLAGS"
6059   CFLAGS="$CFLAGS -belf"
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6061 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6062 if ${lt_cv_cc_needs_belf+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   ac_ext=c
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 int
6075 main ()
6076 {
6077
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_link "$LINENO"; then :
6083   lt_cv_cc_needs_belf=yes
6084 else
6085   lt_cv_cc_needs_belf=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext \
6088     conftest$ac_exeext conftest.$ac_ext
6089      ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6097 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6098   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6099     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6100     CFLAGS="$SAVE_CFLAGS"
6101   fi
6102   ;;
6103 *-*solaris*)
6104   # Find out which ABI we are using.
6105   echo 'int i;' > conftest.$ac_ext
6106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110   test $ac_status = 0; }; then
6111     case `/usr/bin/file conftest.o` in
6112     *64-bit*)
6113       case $lt_cv_prog_gnu_ld in
6114       yes*)
6115         case $host in
6116         i?86-*-solaris*)
6117           LD="${LD-ld} -m elf_x86_64"
6118           ;;
6119         sparc*-*-solaris*)
6120           LD="${LD-ld} -m elf64_sparc"
6121           ;;
6122         esac
6123         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6124         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6125           LD="${LD-ld}_sol2"
6126         fi
6127         ;;
6128       *)
6129         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6130           LD="${LD-ld} -64"
6131         fi
6132         ;;
6133       esac
6134       ;;
6135     esac
6136   fi
6137   rm -rf conftest*
6138   ;;
6139 esac
6140
6141 need_locks="$enable_libtool_lock"
6142
6143 if test -n "$ac_tool_prefix"; then
6144   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}mt; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   if test -n "$MANIFEST_TOOL"; then
6152   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159     for ac_exec_ext in '' $ac_executable_extensions; do
6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166   done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6172 if test -n "$MANIFEST_TOOL"; then
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6174 $as_echo "$MANIFEST_TOOL" >&6; }
6175 else
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6183   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6184   # Extract the first word of "mt", so it can be a program name with args.
6185 set dummy mt; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$ac_ct_MANIFEST_TOOL"; then
6192   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6212 if test -n "$ac_ct_MANIFEST_TOOL"; then
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6214 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6215 else
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6221     MANIFEST_TOOL=":"
6222   else
6223     case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6230   fi
6231 else
6232   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6233 fi
6234
6235 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6237 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6238 if ${lt_cv_path_mainfest_tool+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   lt_cv_path_mainfest_tool=no
6242   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6243   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6244   cat conftest.err >&5
6245   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6246     lt_cv_path_mainfest_tool=yes
6247   fi
6248   rm -f conftest*
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6251 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6252 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6253   MANIFEST_TOOL=:
6254 fi
6255
6256
6257
6258
6259
6260
6261   case $host_os in
6262     rhapsody* | darwin*)
6263     if test -n "$ac_tool_prefix"; then
6264   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -n "$DSYMUTIL"; then
6272   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286   done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6292 if test -n "$DSYMUTIL"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6294 $as_echo "$DSYMUTIL" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300
6301 fi
6302 if test -z "$ac_cv_prog_DSYMUTIL"; then
6303   ac_ct_DSYMUTIL=$DSYMUTIL
6304   # Extract the first word of "dsymutil", so it can be a program name with args.
6305 set dummy dsymutil; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$ac_ct_DSYMUTIL"; then
6312   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6334 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340   if test "x$ac_ct_DSYMUTIL" = x; then
6341     DSYMUTIL=":"
6342   else
6343     case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349     DSYMUTIL=$ac_ct_DSYMUTIL
6350   fi
6351 else
6352   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6353 fi
6354
6355     if test -n "$ac_tool_prefix"; then
6356   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_NMEDIT+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   if test -n "$NMEDIT"; then
6364   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371     for ac_exec_ext in '' $ac_executable_extensions; do
6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378   done
6379 IFS=$as_save_IFS
6380
6381 fi
6382 fi
6383 NMEDIT=$ac_cv_prog_NMEDIT
6384 if test -n "$NMEDIT"; then
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6386 $as_echo "$NMEDIT" >&6; }
6387 else
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392
6393 fi
6394 if test -z "$ac_cv_prog_NMEDIT"; then
6395   ac_ct_NMEDIT=$NMEDIT
6396   # Extract the first word of "nmedit", so it can be a program name with args.
6397 set dummy nmedit; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$ac_ct_NMEDIT"; then
6404   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6424 if test -n "$ac_ct_NMEDIT"; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6426 $as_echo "$ac_ct_NMEDIT" >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432   if test "x$ac_ct_NMEDIT" = x; then
6433     NMEDIT=":"
6434   else
6435     case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441     NMEDIT=$ac_ct_NMEDIT
6442   fi
6443 else
6444   NMEDIT="$ac_cv_prog_NMEDIT"
6445 fi
6446
6447     if test -n "$ac_tool_prefix"; then
6448   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_LIPO+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$LIPO"; then
6456   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 LIPO=$ac_cv_prog_LIPO
6476 if test -n "$LIPO"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6478 $as_echo "$LIPO" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_LIPO"; then
6487   ac_ct_LIPO=$LIPO
6488   # Extract the first word of "lipo", so it can be a program name with args.
6489 set dummy lipo; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$ac_ct_LIPO"; then
6496   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_ac_ct_LIPO="lipo"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6516 if test -n "$ac_ct_LIPO"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6518 $as_echo "$ac_ct_LIPO" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524   if test "x$ac_ct_LIPO" = x; then
6525     LIPO=":"
6526   else
6527     case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533     LIPO=$ac_ct_LIPO
6534   fi
6535 else
6536   LIPO="$ac_cv_prog_LIPO"
6537 fi
6538
6539     if test -n "$ac_tool_prefix"; then
6540   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}otool; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_OTOOL+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   if test -n "$OTOOL"; then
6548   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 OTOOL=$ac_cv_prog_OTOOL
6568 if test -n "$OTOOL"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6570 $as_echo "$OTOOL" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_OTOOL"; then
6579   ac_ct_OTOOL=$OTOOL
6580   # Extract the first word of "otool", so it can be a program name with args.
6581 set dummy otool; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6585   $as_echo_n "(cached) " >&6
6586 else
6587   if test -n "$ac_ct_OTOOL"; then
6588   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_prog_ac_ct_OTOOL="otool"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6608 if test -n "$ac_ct_OTOOL"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6610 $as_echo "$ac_ct_OTOOL" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616   if test "x$ac_ct_OTOOL" = x; then
6617     OTOOL=":"
6618   else
6619     case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625     OTOOL=$ac_ct_OTOOL
6626   fi
6627 else
6628   OTOOL="$ac_cv_prog_OTOOL"
6629 fi
6630
6631     if test -n "$ac_tool_prefix"; then
6632   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_OTOOL64+:} false; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   if test -n "$OTOOL64"; then
6640   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 OTOOL64=$ac_cv_prog_OTOOL64
6660 if test -n "$OTOOL64"; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6662 $as_echo "$OTOOL64" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_OTOOL64"; then
6671   ac_ct_OTOOL64=$OTOOL64
6672   # Extract the first word of "otool64", so it can be a program name with args.
6673 set dummy otool64; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$ac_ct_OTOOL64"; then
6680   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_ac_ct_OTOOL64="otool64"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6700 if test -n "$ac_ct_OTOOL64"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6702 $as_echo "$ac_ct_OTOOL64" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708   if test "x$ac_ct_OTOOL64" = x; then
6709     OTOOL64=":"
6710   else
6711     case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717     OTOOL64=$ac_ct_OTOOL64
6718   fi
6719 else
6720   OTOOL64="$ac_cv_prog_OTOOL64"
6721 fi
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
6747
6748
6749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6750 $as_echo_n "checking for -single_module linker flag... " >&6; }
6751 if ${lt_cv_apple_cc_single_mod+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   lt_cv_apple_cc_single_mod=no
6755       if test -z "${LT_MULTI_MODULE}"; then
6756         # By default we will add the -single_module flag. You can override
6757         # by either setting the environment variable LT_MULTI_MODULE
6758         # non-empty at configure time, or by adding -multi_module to the
6759         # link flags.
6760         rm -rf libconftest.dylib*
6761         echo "int foo(void){return 1;}" > conftest.c
6762         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6763 -dynamiclib -Wl,-single_module conftest.c" >&5
6764         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6765           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6766         _lt_result=$?
6767         # If there is a non-empty error log, and "single_module"
6768         # appears in it, assume the flag caused a linker warning
6769         if test -s conftest.err && $GREP single_module conftest.err; then
6770           cat conftest.err >&5
6771         # Otherwise, if the output was created with a 0 exit code from
6772         # the compiler, it worked.
6773         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6774           lt_cv_apple_cc_single_mod=yes
6775         else
6776           cat conftest.err >&5
6777         fi
6778         rm -rf libconftest.dylib*
6779         rm -f conftest.*
6780       fi
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6783 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6784
6785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6786 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6787 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   lt_cv_ld_exported_symbols_list=no
6791       save_LDFLAGS=$LDFLAGS
6792       echo "_main" > conftest.sym
6793       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796
6797 int
6798 main ()
6799 {
6800
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_link "$LINENO"; then :
6806   lt_cv_ld_exported_symbols_list=yes
6807 else
6808   lt_cv_ld_exported_symbols_list=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext \
6811     conftest$ac_exeext conftest.$ac_ext
6812         LDFLAGS="$save_LDFLAGS"
6813
6814 fi
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6816 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6817
6818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6819 $as_echo_n "checking for -force_load linker flag... " >&6; }
6820 if ${lt_cv_ld_force_load+:} false; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   lt_cv_ld_force_load=no
6824       cat > conftest.c << _LT_EOF
6825 int forced_loaded() { return 2;}
6826 _LT_EOF
6827       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6828       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6829       echo "$AR cru libconftest.a conftest.o" >&5
6830       $AR cru libconftest.a conftest.o 2>&5
6831       echo "$RANLIB libconftest.a" >&5
6832       $RANLIB libconftest.a 2>&5
6833       cat > conftest.c << _LT_EOF
6834 int main() { return 0;}
6835 _LT_EOF
6836       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6837       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6838       _lt_result=$?
6839       if test -s conftest.err && $GREP force_load conftest.err; then
6840         cat conftest.err >&5
6841       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6842         lt_cv_ld_force_load=yes
6843       else
6844         cat conftest.err >&5
6845       fi
6846         rm -f conftest.err libconftest.a conftest conftest.c
6847         rm -rf conftest.dSYM
6848
6849 fi
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6851 $as_echo "$lt_cv_ld_force_load" >&6; }
6852     case $host_os in
6853     rhapsody* | darwin1.[012])
6854       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6855     darwin1.*)
6856       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6857     darwin*) # darwin 5.x on
6858       # if running on 10.5 or later, the deployment target defaults
6859       # to the OS version, if on x86, and 10.4, the deployment
6860       # target defaults to 10.4. Don't you love it?
6861       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6862         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6863           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6864         10.[012]*)
6865           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6866         10.*)
6867           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6868       esac
6869     ;;
6870   esac
6871     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6872       _lt_dar_single_mod='$single_module'
6873     fi
6874     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6875       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6876     else
6877       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6878     fi
6879     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6880       _lt_dsymutil='~$DSYMUTIL $lib || :'
6881     else
6882       _lt_dsymutil=
6883     fi
6884     ;;
6885   esac
6886
6887 ac_ext=c
6888 ac_cpp='$CPP $CPPFLAGS'
6889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6894 # On Suns, sometimes $CPP names a directory.
6895 if test -n "$CPP" && test -d "$CPP"; then
6896   CPP=
6897 fi
6898 if test -z "$CPP"; then
6899   if ${ac_cv_prog_CPP+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902       # Double quotes because CPP needs to be expanded
6903     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6904     do
6905       ac_preproc_ok=false
6906 for ac_c_preproc_warn_flag in '' yes
6907 do
6908   # Use a header file that comes with gcc, so configuring glibc
6909   # with a fresh cross-compiler works.
6910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6911   # <limits.h> exists even on freestanding compilers.
6912   # On the NeXT, cc -E runs the code through the compiler's parser,
6913   # not just through cpp. "Syntax error" is here to catch this case.
6914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h.  */
6916 #ifdef __STDC__
6917 # include <limits.h>
6918 #else
6919 # include <assert.h>
6920 #endif
6921                      Syntax error
6922 _ACEOF
6923 if ac_fn_c_try_cpp "$LINENO"; then :
6924
6925 else
6926   # Broken: fails on valid input.
6927 continue
6928 fi
6929 rm -f conftest.err conftest.i conftest.$ac_ext
6930
6931   # OK, works on sane cases.  Now check whether nonexistent headers
6932   # can be detected and how.
6933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h.  */
6935 #include <ac_nonexistent.h>
6936 _ACEOF
6937 if ac_fn_c_try_cpp "$LINENO"; then :
6938   # Broken: success on invalid input.
6939 continue
6940 else
6941   # Passes both tests.
6942 ac_preproc_ok=:
6943 break
6944 fi
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6946
6947 done
6948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6949 rm -f conftest.i conftest.err conftest.$ac_ext
6950 if $ac_preproc_ok; then :
6951   break
6952 fi
6953
6954     done
6955     ac_cv_prog_CPP=$CPP
6956
6957 fi
6958   CPP=$ac_cv_prog_CPP
6959 else
6960   ac_cv_prog_CPP=$CPP
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6963 $as_echo "$CPP" >&6; }
6964 ac_preproc_ok=false
6965 for ac_c_preproc_warn_flag in '' yes
6966 do
6967   # Use a header file that comes with gcc, so configuring glibc
6968   # with a fresh cross-compiler works.
6969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970   # <limits.h> exists even on freestanding compilers.
6971   # On the NeXT, cc -E runs the code through the compiler's parser,
6972   # not just through cpp. "Syntax error" is here to catch this case.
6973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975 #ifdef __STDC__
6976 # include <limits.h>
6977 #else
6978 # include <assert.h>
6979 #endif
6980                      Syntax error
6981 _ACEOF
6982 if ac_fn_c_try_cpp "$LINENO"; then :
6983
6984 else
6985   # Broken: fails on valid input.
6986 continue
6987 fi
6988 rm -f conftest.err conftest.i conftest.$ac_ext
6989
6990   # OK, works on sane cases.  Now check whether nonexistent headers
6991   # can be detected and how.
6992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994 #include <ac_nonexistent.h>
6995 _ACEOF
6996 if ac_fn_c_try_cpp "$LINENO"; then :
6997   # Broken: success on invalid input.
6998 continue
6999 else
7000   # Passes both tests.
7001 ac_preproc_ok=:
7002 break
7003 fi
7004 rm -f conftest.err conftest.i conftest.$ac_ext
7005
7006 done
7007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7008 rm -f conftest.i conftest.err conftest.$ac_ext
7009 if $ac_preproc_ok; then :
7010
7011 else
7012   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7014 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7015 See \`config.log' for more details" "$LINENO" 5; }
7016 fi
7017
7018 ac_ext=c
7019 ac_cpp='$CPP $CPPFLAGS'
7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7026 $as_echo_n "checking for ANSI C header files... " >&6; }
7027 if ${ac_cv_header_stdc+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032 #include <stdlib.h>
7033 #include <stdarg.h>
7034 #include <string.h>
7035 #include <float.h>
7036
7037 int
7038 main ()
7039 {
7040
7041   ;
7042   return 0;
7043 }
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046   ac_cv_header_stdc=yes
7047 else
7048   ac_cv_header_stdc=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051
7052 if test $ac_cv_header_stdc = yes; then
7053   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056 #include <string.h>
7057
7058 _ACEOF
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060   $EGREP "memchr" >/dev/null 2>&1; then :
7061
7062 else
7063   ac_cv_header_stdc=no
7064 fi
7065 rm -f conftest*
7066
7067 fi
7068
7069 if test $ac_cv_header_stdc = yes; then
7070   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h.  */
7073 #include <stdlib.h>
7074
7075 _ACEOF
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077   $EGREP "free" >/dev/null 2>&1; then :
7078
7079 else
7080   ac_cv_header_stdc=no
7081 fi
7082 rm -f conftest*
7083
7084 fi
7085
7086 if test $ac_cv_header_stdc = yes; then
7087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7088   if test "$cross_compiling" = yes; then :
7089   :
7090 else
7091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h.  */
7093 #include <ctype.h>
7094 #include <stdlib.h>
7095 #if ((' ' & 0x0FF) == 0x020)
7096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7098 #else
7099 # define ISLOWER(c) \
7100                    (('a' <= (c) && (c) <= 'i') \
7101                      || ('j' <= (c) && (c) <= 'r') \
7102                      || ('s' <= (c) && (c) <= 'z'))
7103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7104 #endif
7105
7106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7107 int
7108 main ()
7109 {
7110   int i;
7111   for (i = 0; i < 256; i++)
7112     if (XOR (islower (i), ISLOWER (i))
7113         || toupper (i) != TOUPPER (i))
7114       return 2;
7115   return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_c_try_run "$LINENO"; then :
7119
7120 else
7121   ac_cv_header_stdc=no
7122 fi
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7124   conftest.$ac_objext conftest.beam conftest.$ac_ext
7125 fi
7126
7127 fi
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7130 $as_echo "$ac_cv_header_stdc" >&6; }
7131 if test $ac_cv_header_stdc = yes; then
7132
7133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7134
7135 fi
7136
7137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139                   inttypes.h stdint.h unistd.h
7140 do :
7141   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7143 "
7144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7145   cat >>confdefs.h <<_ACEOF
7146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147 _ACEOF
7148
7149 fi
7150
7151 done
7152
7153
7154 for ac_header in dlfcn.h
7155 do :
7156   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7157 "
7158 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7159   cat >>confdefs.h <<_ACEOF
7160 #define HAVE_DLFCN_H 1
7161 _ACEOF
7162
7163 fi
7164
7165 done
7166
7167
7168
7169
7170
7171 # Set options
7172 enable_dlopen=yes
7173
7174
7175
7176
7177   enable_win32_dll=no
7178
7179
7180             # Check whether --enable-shared was given.
7181 if test "${enable_shared+set}" = set; then :
7182   enableval=$enable_shared; p=${PACKAGE-default}
7183     case $enableval in
7184     yes) enable_shared=yes ;;
7185     no) enable_shared=no ;;
7186     *)
7187       enable_shared=no
7188       # Look at the argument we got.  We use all the common list separators.
7189       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7190       for pkg in $enableval; do
7191         IFS="$lt_save_ifs"
7192         if test "X$pkg" = "X$p"; then
7193           enable_shared=yes
7194         fi
7195       done
7196       IFS="$lt_save_ifs"
7197       ;;
7198     esac
7199 else
7200   enable_shared=yes
7201 fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211   # Check whether --enable-static was given.
7212 if test "${enable_static+set}" = set; then :
7213   enableval=$enable_static; p=${PACKAGE-default}
7214     case $enableval in
7215     yes) enable_static=yes ;;
7216     no) enable_static=no ;;
7217     *)
7218      enable_static=no
7219       # Look at the argument we got.  We use all the common list separators.
7220       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7221       for pkg in $enableval; do
7222         IFS="$lt_save_ifs"
7223         if test "X$pkg" = "X$p"; then
7224           enable_static=yes
7225         fi
7226       done
7227       IFS="$lt_save_ifs"
7228       ;;
7229     esac
7230 else
7231   enable_static=yes
7232 fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 # Check whether --with-pic was given.
7244 if test "${with_pic+set}" = set; then :
7245   withval=$with_pic; lt_p=${PACKAGE-default}
7246     case $withval in
7247     yes|no) pic_mode=$withval ;;
7248     *)
7249       pic_mode=default
7250       # Look at the argument we got.  We use all the common list separators.
7251       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7252       for lt_pkg in $withval; do
7253         IFS="$lt_save_ifs"
7254         if test "X$lt_pkg" = "X$lt_p"; then
7255           pic_mode=yes
7256         fi
7257       done
7258       IFS="$lt_save_ifs"
7259       ;;
7260     esac
7261 else
7262   pic_mode=default
7263 fi
7264
7265
7266 test -z "$pic_mode" && pic_mode=default
7267
7268
7269
7270
7271
7272
7273
7274   # Check whether --enable-fast-install was given.
7275 if test "${enable_fast_install+set}" = set; then :
7276   enableval=$enable_fast_install; p=${PACKAGE-default}
7277     case $enableval in
7278     yes) enable_fast_install=yes ;;
7279     no) enable_fast_install=no ;;
7280     *)
7281       enable_fast_install=no
7282       # Look at the argument we got.  We use all the common list separators.
7283       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284       for pkg in $enableval; do
7285         IFS="$lt_save_ifs"
7286         if test "X$pkg" = "X$p"; then
7287           enable_fast_install=yes
7288         fi
7289       done
7290       IFS="$lt_save_ifs"
7291       ;;
7292     esac
7293 else
7294   enable_fast_install=yes
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307 # This can be used to rebuild libtool when needed
7308 LIBTOOL_DEPS="$ltmain"
7309
7310 # Always use our own libtool.
7311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7340
7341
7342 test -z "$LN_S" && LN_S="ln -s"
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 if test -n "${ZSH_VERSION+set}" ; then
7358    setopt NO_GLOB_SUBST
7359 fi
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7362 $as_echo_n "checking for objdir... " >&6; }
7363 if ${lt_cv_objdir+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   rm -f .libs 2>/dev/null
7367 mkdir .libs 2>/dev/null
7368 if test -d .libs; then
7369   lt_cv_objdir=.libs
7370 else
7371   # MS-DOS does not allow filenames that begin with a dot.
7372   lt_cv_objdir=_libs
7373 fi
7374 rmdir .libs 2>/dev/null
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7377 $as_echo "$lt_cv_objdir" >&6; }
7378 objdir=$lt_cv_objdir
7379
7380
7381
7382
7383
7384 cat >>confdefs.h <<_ACEOF
7385 #define LT_OBJDIR "$lt_cv_objdir/"
7386 _ACEOF
7387
7388
7389
7390
7391 case $host_os in
7392 aix3*)
7393   # AIX sometimes has problems with the GCC collect2 program.  For some
7394   # reason, if we set the COLLECT_NAMES environment variable, the problems
7395   # vanish in a puff of smoke.
7396   if test "X${COLLECT_NAMES+set}" != Xset; then
7397     COLLECT_NAMES=
7398     export COLLECT_NAMES
7399   fi
7400   ;;
7401 esac
7402
7403 # Global variables:
7404 ofile=libtool
7405 can_build_shared=yes
7406
7407 # All known linkers require a `.a' archive for static linking (except MSVC,
7408 # which needs '.lib').
7409 libext=a
7410
7411 with_gnu_ld="$lt_cv_prog_gnu_ld"
7412
7413 old_CC="$CC"
7414 old_CFLAGS="$CFLAGS"
7415
7416 # Set sane defaults for various variables
7417 test -z "$CC" && CC=cc
7418 test -z "$LTCC" && LTCC=$CC
7419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7420 test -z "$LD" && LD=ld
7421 test -z "$ac_objext" && ac_objext=o
7422
7423 for cc_temp in $compiler""; do
7424   case $cc_temp in
7425     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7426     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7427     \-*) ;;
7428     *) break;;
7429   esac
7430 done
7431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7432
7433
7434 # Only perform the check for file, if the check method requires it
7435 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7436 case $deplibs_check_method in
7437 file_magic*)
7438   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7440 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7441 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   case $MAGIC_CMD in
7445 [\\/*] |  ?:[\\/]*)
7446   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7447   ;;
7448 *)
7449   lt_save_MAGIC_CMD="$MAGIC_CMD"
7450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7451   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7452   for ac_dir in $ac_dummy; do
7453     IFS="$lt_save_ifs"
7454     test -z "$ac_dir" && ac_dir=.
7455     if test -f $ac_dir/${ac_tool_prefix}file; then
7456       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7457       if test -n "$file_magic_test_file"; then
7458         case $deplibs_check_method in
7459         "file_magic "*)
7460           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7461           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7463             $EGREP "$file_magic_regex" > /dev/null; then
7464             :
7465           else
7466             cat <<_LT_EOF 1>&2
7467
7468 *** Warning: the command libtool uses to detect shared libraries,
7469 *** $file_magic_cmd, produces output that libtool cannot recognize.
7470 *** The result is that libtool may fail to recognize shared libraries
7471 *** as such.  This will affect the creation of libtool libraries that
7472 *** depend on shared libraries, but programs linked with such libtool
7473 *** libraries will work regardless of this problem.  Nevertheless, you
7474 *** may want to report the problem to your system manager and/or to
7475 *** bug-libtool@gnu.org
7476
7477 _LT_EOF
7478           fi ;;
7479         esac
7480       fi
7481       break
7482     fi
7483   done
7484   IFS="$lt_save_ifs"
7485   MAGIC_CMD="$lt_save_MAGIC_CMD"
7486   ;;
7487 esac
7488 fi
7489
7490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7491 if test -n "$MAGIC_CMD"; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7493 $as_echo "$MAGIC_CMD" >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499
7500
7501
7502
7503 if test -z "$lt_cv_path_MAGIC_CMD"; then
7504   if test -n "$ac_tool_prefix"; then
7505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7506 $as_echo_n "checking for file... " >&6; }
7507 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   case $MAGIC_CMD in
7511 [\\/*] |  ?:[\\/]*)
7512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7513   ;;
7514 *)
7515   lt_save_MAGIC_CMD="$MAGIC_CMD"
7516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7518   for ac_dir in $ac_dummy; do
7519     IFS="$lt_save_ifs"
7520     test -z "$ac_dir" && ac_dir=.
7521     if test -f $ac_dir/file; then
7522       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7523       if test -n "$file_magic_test_file"; then
7524         case $deplibs_check_method in
7525         "file_magic "*)
7526           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7529             $EGREP "$file_magic_regex" > /dev/null; then
7530             :
7531           else
7532             cat <<_LT_EOF 1>&2
7533
7534 *** Warning: the command libtool uses to detect shared libraries,
7535 *** $file_magic_cmd, produces output that libtool cannot recognize.
7536 *** The result is that libtool may fail to recognize shared libraries
7537 *** as such.  This will affect the creation of libtool libraries that
7538 *** depend on shared libraries, but programs linked with such libtool
7539 *** libraries will work regardless of this problem.  Nevertheless, you
7540 *** may want to report the problem to your system manager and/or to
7541 *** bug-libtool@gnu.org
7542
7543 _LT_EOF
7544           fi ;;
7545         esac
7546       fi
7547       break
7548     fi
7549   done
7550   IFS="$lt_save_ifs"
7551   MAGIC_CMD="$lt_save_MAGIC_CMD"
7552   ;;
7553 esac
7554 fi
7555
7556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7557 if test -n "$MAGIC_CMD"; then
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7559 $as_echo "$MAGIC_CMD" >&6; }
7560 else
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566   else
7567     MAGIC_CMD=:
7568   fi
7569 fi
7570
7571   fi
7572   ;;
7573 esac
7574
7575 # Use C for the default configuration in the libtool script
7576
7577 lt_save_CC="$CC"
7578 ac_ext=c
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584
7585 # Source file extension for C test sources.
7586 ac_ext=c
7587
7588 # Object file extension for compiled C test sources.
7589 objext=o
7590 objext=$objext
7591
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code="int some_variable = 0;"
7594
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code='int main(){return(0);}'
7597
7598
7599
7600
7601
7602
7603
7604 # If no C compiler was specified, use CC.
7605 LTCC=${LTCC-"$CC"}
7606
7607 # If no C compiler flags were specified, use CFLAGS.
7608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7609
7610 # Allow CC to be a program name with arguments.
7611 compiler=$CC
7612
7613 # Save the default compiler, since it gets overwritten when the other
7614 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7615 compiler_DEFAULT=$CC
7616
7617 # save warnings/boilerplate of simple test code
7618 ac_outfile=conftest.$ac_objext
7619 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7621 _lt_compiler_boilerplate=`cat conftest.err`
7622 $RM conftest*
7623
7624 ac_outfile=conftest.$ac_objext
7625 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627 _lt_linker_boilerplate=`cat conftest.err`
7628 $RM -r conftest*
7629
7630
7631 ## CAVEAT EMPTOR:
7632 ## There is no encapsulation within the following macros, do not change
7633 ## the running order or otherwise move them around unless you know exactly
7634 ## what you are doing...
7635 if test -n "$compiler"; then
7636
7637 lt_prog_compiler_no_builtin_flag=
7638
7639 if test "$GCC" = yes; then
7640   case $cc_basename in
7641   nvcc*)
7642     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7643   *)
7644     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7645   esac
7646
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7648 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7649 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   lt_cv_prog_compiler_rtti_exceptions=no
7653    ac_outfile=conftest.$ac_objext
7654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7655    lt_compiler_flag="-fno-rtti -fno-exceptions"
7656    # Insert the option either (1) after the last *FLAGS variable, or
7657    # (2) before a word containing "conftest.", or (3) at the end.
7658    # Note that $ac_compile itself does not contain backslashes and begins
7659    # with a dollar sign (not a hyphen), so the echo should work correctly.
7660    # The option is referenced via a variable to avoid confusing sed.
7661    lt_compile=`echo "$ac_compile" | $SED \
7662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7664    -e 's:$: $lt_compiler_flag:'`
7665    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7666    (eval "$lt_compile" 2>conftest.err)
7667    ac_status=$?
7668    cat conftest.err >&5
7669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670    if (exit $ac_status) && test -s "$ac_outfile"; then
7671      # The compiler can only warn and ignore the option if not recognized
7672      # So say no if there are warnings other than the usual output.
7673      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7674      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7675      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7676        lt_cv_prog_compiler_rtti_exceptions=yes
7677      fi
7678    fi
7679    $RM conftest*
7680
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7683 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7684
7685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7686     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7687 else
7688     :
7689 fi
7690
7691 fi
7692
7693
7694
7695
7696
7697
7698   lt_prog_compiler_wl=
7699 lt_prog_compiler_pic=
7700 lt_prog_compiler_static=
7701
7702
7703   if test "$GCC" = yes; then
7704     lt_prog_compiler_wl='-Wl,'
7705     lt_prog_compiler_static='-static'
7706
7707     case $host_os in
7708       aix*)
7709       # All AIX code is PIC.
7710       if test "$host_cpu" = ia64; then
7711         # AIX 5 now supports IA64 processor
7712         lt_prog_compiler_static='-Bstatic'
7713       fi
7714       ;;
7715
7716     amigaos*)
7717       case $host_cpu in
7718       powerpc)
7719             # see comment about AmigaOS4 .so support
7720             lt_prog_compiler_pic='-fPIC'
7721         ;;
7722       m68k)
7723             # FIXME: we need at least 68020 code to build shared libraries, but
7724             # adding the `-m68020' flag to GCC prevents building anything better,
7725             # like `-m68040'.
7726             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7727         ;;
7728       esac
7729       ;;
7730
7731     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732       # PIC is the default for these OSes.
7733       ;;
7734
7735     mingw* | cygwin* | pw32* | os2* | cegcc*)
7736       # This hack is so that the source file can tell whether it is being
7737       # built for inclusion in a dll (and should export symbols for example).
7738       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7739       # (--disable-auto-import) libraries
7740       lt_prog_compiler_pic='-DDLL_EXPORT'
7741       ;;
7742
7743     darwin* | rhapsody*)
7744       # PIC is the default on this platform
7745       # Common symbols not allowed in MH_DYLIB files
7746       lt_prog_compiler_pic='-fno-common'
7747       ;;
7748
7749     haiku*)
7750       # PIC is the default for Haiku.
7751       # The "-static" flag exists, but is broken.
7752       lt_prog_compiler_static=
7753       ;;
7754
7755     hpux*)
7756       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7757       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7758       # sets the default TLS model and affects inlining.
7759       case $host_cpu in
7760       hppa*64*)
7761         # +Z the default
7762         ;;
7763       *)
7764         lt_prog_compiler_pic='-fPIC'
7765         ;;
7766       esac
7767       ;;
7768
7769     interix[3-9]*)
7770       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7771       # Instead, we relocate shared libraries at runtime.
7772       ;;
7773
7774     msdosdjgpp*)
7775       # Just because we use GCC doesn't mean we suddenly get shared libraries
7776       # on systems that don't support them.
7777       lt_prog_compiler_can_build_shared=no
7778       enable_shared=no
7779       ;;
7780
7781     *nto* | *qnx*)
7782       # QNX uses GNU C++, but need to define -shared option too, otherwise
7783       # it will coredump.
7784       lt_prog_compiler_pic='-fPIC -shared'
7785       ;;
7786
7787     sysv4*MP*)
7788       if test -d /usr/nec; then
7789         lt_prog_compiler_pic=-Kconform_pic
7790       fi
7791       ;;
7792
7793     *)
7794       lt_prog_compiler_pic='-fPIC'
7795       ;;
7796     esac
7797
7798     case $cc_basename in
7799     nvcc*) # Cuda Compiler Driver 2.2
7800       lt_prog_compiler_wl='-Xlinker '
7801       if test -n "$lt_prog_compiler_pic"; then
7802         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7803       fi
7804       ;;
7805     esac
7806   else
7807     # PORTME Check for flag to pass linker flags through the system compiler.
7808     case $host_os in
7809     aix*)
7810       lt_prog_compiler_wl='-Wl,'
7811       if test "$host_cpu" = ia64; then
7812         # AIX 5 now supports IA64 processor
7813         lt_prog_compiler_static='-Bstatic'
7814       else
7815         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7816       fi
7817       ;;
7818
7819     mingw* | cygwin* | pw32* | os2* | cegcc*)
7820       # This hack is so that the source file can tell whether it is being
7821       # built for inclusion in a dll (and should export symbols for example).
7822       lt_prog_compiler_pic='-DDLL_EXPORT'
7823       ;;
7824
7825     hpux9* | hpux10* | hpux11*)
7826       lt_prog_compiler_wl='-Wl,'
7827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7828       # not for PA HP-UX.
7829       case $host_cpu in
7830       hppa*64*|ia64*)
7831         # +Z the default
7832         ;;
7833       *)
7834         lt_prog_compiler_pic='+Z'
7835         ;;
7836       esac
7837       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7838       lt_prog_compiler_static='${wl}-a ${wl}archive'
7839       ;;
7840
7841     irix5* | irix6* | nonstopux*)
7842       lt_prog_compiler_wl='-Wl,'
7843       # PIC (with -KPIC) is the default.
7844       lt_prog_compiler_static='-non_shared'
7845       ;;
7846
7847     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7848       case $cc_basename in
7849       # old Intel for x86_64 which still supported -KPIC.
7850       ecc*)
7851         lt_prog_compiler_wl='-Wl,'
7852         lt_prog_compiler_pic='-KPIC'
7853         lt_prog_compiler_static='-static'
7854         ;;
7855       # icc used to be incompatible with GCC.
7856       # ICC 10 doesn't accept -KPIC any more.
7857       icc* | ifort*)
7858         lt_prog_compiler_wl='-Wl,'
7859         lt_prog_compiler_pic='-fPIC'
7860         lt_prog_compiler_static='-static'
7861         ;;
7862       # Lahey Fortran 8.1.
7863       lf95*)
7864         lt_prog_compiler_wl='-Wl,'
7865         lt_prog_compiler_pic='--shared'
7866         lt_prog_compiler_static='--static'
7867         ;;
7868       nagfor*)
7869         # NAG Fortran compiler
7870         lt_prog_compiler_wl='-Wl,-Wl,,'
7871         lt_prog_compiler_pic='-PIC'
7872         lt_prog_compiler_static='-Bstatic'
7873         ;;
7874       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7875         # Portland Group compilers (*not* the Pentium gcc compiler,
7876         # which looks to be a dead project)
7877         lt_prog_compiler_wl='-Wl,'
7878         lt_prog_compiler_pic='-fpic'
7879         lt_prog_compiler_static='-Bstatic'
7880         ;;
7881       ccc*)
7882         lt_prog_compiler_wl='-Wl,'
7883         # All Alpha code is PIC.
7884         lt_prog_compiler_static='-non_shared'
7885         ;;
7886       xl* | bgxl* | bgf* | mpixl*)
7887         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7888         lt_prog_compiler_wl='-Wl,'
7889         lt_prog_compiler_pic='-qpic'
7890         lt_prog_compiler_static='-qstaticlink'
7891         ;;
7892       *)
7893         case `$CC -V 2>&1 | sed 5q` in
7894         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7895           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7896           lt_prog_compiler_pic='-KPIC'
7897           lt_prog_compiler_static='-Bstatic'
7898           lt_prog_compiler_wl=''
7899           ;;
7900         *Sun\ F* | *Sun*Fortran*)
7901           lt_prog_compiler_pic='-KPIC'
7902           lt_prog_compiler_static='-Bstatic'
7903           lt_prog_compiler_wl='-Qoption ld '
7904           ;;
7905         *Sun\ C*)
7906           # Sun C 5.9
7907           lt_prog_compiler_pic='-KPIC'
7908           lt_prog_compiler_static='-Bstatic'
7909           lt_prog_compiler_wl='-Wl,'
7910           ;;
7911         *Intel*\ [CF]*Compiler*)
7912           lt_prog_compiler_wl='-Wl,'
7913           lt_prog_compiler_pic='-fPIC'
7914           lt_prog_compiler_static='-static'
7915           ;;
7916         *Portland\ Group*)
7917           lt_prog_compiler_wl='-Wl,'
7918           lt_prog_compiler_pic='-fpic'
7919           lt_prog_compiler_static='-Bstatic'
7920           ;;
7921         esac
7922         ;;
7923       esac
7924       ;;
7925
7926     newsos6)
7927       lt_prog_compiler_pic='-KPIC'
7928       lt_prog_compiler_static='-Bstatic'
7929       ;;
7930
7931     *nto* | *qnx*)
7932       # QNX uses GNU C++, but need to define -shared option too, otherwise
7933       # it will coredump.
7934       lt_prog_compiler_pic='-fPIC -shared'
7935       ;;
7936
7937     osf3* | osf4* | osf5*)
7938       lt_prog_compiler_wl='-Wl,'
7939       # All OSF/1 code is PIC.
7940       lt_prog_compiler_static='-non_shared'
7941       ;;
7942
7943     rdos*)
7944       lt_prog_compiler_static='-non_shared'
7945       ;;
7946
7947     solaris*)
7948       lt_prog_compiler_pic='-KPIC'
7949       lt_prog_compiler_static='-Bstatic'
7950       case $cc_basename in
7951       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7952         lt_prog_compiler_wl='-Qoption ld ';;
7953       *)
7954         lt_prog_compiler_wl='-Wl,';;
7955       esac
7956       ;;
7957
7958     sunos4*)
7959       lt_prog_compiler_wl='-Qoption ld '
7960       lt_prog_compiler_pic='-PIC'
7961       lt_prog_compiler_static='-Bstatic'
7962       ;;
7963
7964     sysv4 | sysv4.2uw2* | sysv4.3*)
7965       lt_prog_compiler_wl='-Wl,'
7966       lt_prog_compiler_pic='-KPIC'
7967       lt_prog_compiler_static='-Bstatic'
7968       ;;
7969
7970     sysv4*MP*)
7971       if test -d /usr/nec ;then
7972         lt_prog_compiler_pic='-Kconform_pic'
7973         lt_prog_compiler_static='-Bstatic'
7974       fi
7975       ;;
7976
7977     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7978       lt_prog_compiler_wl='-Wl,'
7979       lt_prog_compiler_pic='-KPIC'
7980       lt_prog_compiler_static='-Bstatic'
7981       ;;
7982
7983     unicos*)
7984       lt_prog_compiler_wl='-Wl,'
7985       lt_prog_compiler_can_build_shared=no
7986       ;;
7987
7988     uts4*)
7989       lt_prog_compiler_pic='-pic'
7990       lt_prog_compiler_static='-Bstatic'
7991       ;;
7992
7993     *)
7994       lt_prog_compiler_can_build_shared=no
7995       ;;
7996     esac
7997   fi
7998
7999 case $host_os in
8000   # For platforms which do not support PIC, -DPIC is meaningless:
8001   *djgpp*)
8002     lt_prog_compiler_pic=
8003     ;;
8004   *)
8005     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8006     ;;
8007 esac
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8011 if ${lt_cv_prog_compiler_pic+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8015 fi
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8017 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8018 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8019
8020 #
8021 # Check to make sure the PIC flag actually works.
8022 #
8023 if test -n "$lt_prog_compiler_pic"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8026 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   lt_cv_prog_compiler_pic_works=no
8030    ac_outfile=conftest.$ac_objext
8031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8033    # Insert the option either (1) after the last *FLAGS variable, or
8034    # (2) before a word containing "conftest.", or (3) at the end.
8035    # Note that $ac_compile itself does not contain backslashes and begins
8036    # with a dollar sign (not a hyphen), so the echo should work correctly.
8037    # The option is referenced via a variable to avoid confusing sed.
8038    lt_compile=`echo "$ac_compile" | $SED \
8039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041    -e 's:$: $lt_compiler_flag:'`
8042    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8043    (eval "$lt_compile" 2>conftest.err)
8044    ac_status=$?
8045    cat conftest.err >&5
8046    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047    if (exit $ac_status) && test -s "$ac_outfile"; then
8048      # The compiler can only warn and ignore the option if not recognized
8049      # So say no if there are warnings other than the usual output.
8050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8053        lt_cv_prog_compiler_pic_works=yes
8054      fi
8055    fi
8056    $RM conftest*
8057
8058 fi
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8060 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8061
8062 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8063     case $lt_prog_compiler_pic in
8064      "" | " "*) ;;
8065      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8066      esac
8067 else
8068     lt_prog_compiler_pic=
8069      lt_prog_compiler_can_build_shared=no
8070 fi
8071
8072 fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 #
8085 # Check to make sure the static flag actually works.
8086 #
8087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8089 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8090 if ${lt_cv_prog_compiler_static_works+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   lt_cv_prog_compiler_static_works=no
8094    save_LDFLAGS="$LDFLAGS"
8095    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8096    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8097    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8098      # The linker can only warn and ignore the option if not recognized
8099      # So say no if there are warnings
8100      if test -s conftest.err; then
8101        # Append any errors to the config.log.
8102        cat conftest.err 1>&5
8103        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8104        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105        if diff conftest.exp conftest.er2 >/dev/null; then
8106          lt_cv_prog_compiler_static_works=yes
8107        fi
8108      else
8109        lt_cv_prog_compiler_static_works=yes
8110      fi
8111    fi
8112    $RM -r conftest*
8113    LDFLAGS="$save_LDFLAGS"
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8117 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8118
8119 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8120     :
8121 else
8122     lt_prog_compiler_static=
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8133 if ${lt_cv_prog_compiler_c_o+:} false; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   lt_cv_prog_compiler_c_o=no
8137    $RM -r conftest 2>/dev/null
8138    mkdir conftest
8139    cd conftest
8140    mkdir out
8141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142
8143    lt_compiler_flag="-o out/conftest2.$ac_objext"
8144    # Insert the option either (1) after the last *FLAGS variable, or
8145    # (2) before a word containing "conftest.", or (3) at the end.
8146    # Note that $ac_compile itself does not contain backslashes and begins
8147    # with a dollar sign (not a hyphen), so the echo should work correctly.
8148    lt_compile=`echo "$ac_compile" | $SED \
8149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151    -e 's:$: $lt_compiler_flag:'`
8152    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8153    (eval "$lt_compile" 2>out/conftest.err)
8154    ac_status=$?
8155    cat out/conftest.err >&5
8156    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8158    then
8159      # The compiler can only warn and ignore the option if not recognized
8160      # So say no if there are warnings
8161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8162      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8163      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8164        lt_cv_prog_compiler_c_o=yes
8165      fi
8166    fi
8167    chmod u+w . 2>&5
8168    $RM conftest*
8169    # SGI C++ compiler will create directory out/ii_files/ for
8170    # template instantiation
8171    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8172    $RM out/* && rmdir out
8173    cd ..
8174    $RM -r conftest
8175    $RM conftest*
8176
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8180
8181
8182
8183
8184
8185
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8188 if ${lt_cv_prog_compiler_c_o+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   lt_cv_prog_compiler_c_o=no
8192    $RM -r conftest 2>/dev/null
8193    mkdir conftest
8194    cd conftest
8195    mkdir out
8196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8197
8198    lt_compiler_flag="-o out/conftest2.$ac_objext"
8199    # Insert the option either (1) after the last *FLAGS variable, or
8200    # (2) before a word containing "conftest.", or (3) at the end.
8201    # Note that $ac_compile itself does not contain backslashes and begins
8202    # with a dollar sign (not a hyphen), so the echo should work correctly.
8203    lt_compile=`echo "$ac_compile" | $SED \
8204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8206    -e 's:$: $lt_compiler_flag:'`
8207    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8208    (eval "$lt_compile" 2>out/conftest.err)
8209    ac_status=$?
8210    cat out/conftest.err >&5
8211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8213    then
8214      # The compiler can only warn and ignore the option if not recognized
8215      # So say no if there are warnings
8216      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8217      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8218      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8219        lt_cv_prog_compiler_c_o=yes
8220      fi
8221    fi
8222    chmod u+w . 2>&5
8223    $RM conftest*
8224    # SGI C++ compiler will create directory out/ii_files/ for
8225    # template instantiation
8226    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8227    $RM out/* && rmdir out
8228    cd ..
8229    $RM -r conftest
8230    $RM conftest*
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8234 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8235
8236
8237
8238
8239 hard_links="nottested"
8240 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8241   # do not overwrite the value of need_locks provided by the user
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8243 $as_echo_n "checking if we can lock with hard links... " >&6; }
8244   hard_links=yes
8245   $RM conftest*
8246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247   touch conftest.a
8248   ln conftest.a conftest.b 2>&5 || hard_links=no
8249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8251 $as_echo "$hard_links" >&6; }
8252   if test "$hard_links" = no; then
8253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8254 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8255     need_locks=warn
8256   fi
8257 else
8258   need_locks=no
8259 fi
8260
8261
8262
8263
8264
8265
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8268
8269   runpath_var=
8270   allow_undefined_flag=
8271   always_export_symbols=no
8272   archive_cmds=
8273   archive_expsym_cmds=
8274   compiler_needs_object=no
8275   enable_shared_with_static_runtimes=no
8276   export_dynamic_flag_spec=
8277   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8278   hardcode_automatic=no
8279   hardcode_direct=no
8280   hardcode_direct_absolute=no
8281   hardcode_libdir_flag_spec=
8282   hardcode_libdir_separator=
8283   hardcode_minus_L=no
8284   hardcode_shlibpath_var=unsupported
8285   inherit_rpath=no
8286   link_all_deplibs=unknown
8287   module_cmds=
8288   module_expsym_cmds=
8289   old_archive_from_new_cmds=
8290   old_archive_from_expsyms_cmds=
8291   thread_safe_flag_spec=
8292   whole_archive_flag_spec=
8293   # include_expsyms should be a list of space-separated symbols to be *always*
8294   # included in the symbol list
8295   include_expsyms=
8296   # exclude_expsyms can be an extended regexp of symbols to exclude
8297   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299   # as well as any symbol that contains `d'.
8300   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8301   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302   # platforms (ab)use it in PIC code, but their linkers get confused if
8303   # the symbol is explicitly referenced.  Since portable code cannot
8304   # rely on this symbol name, it's probably fine to never include it in
8305   # preloaded symbol tables.
8306   # Exclude shared library initialization/finalization symbols.
8307   extract_expsyms_cmds=
8308
8309   case $host_os in
8310   cygwin* | mingw* | pw32* | cegcc*)
8311     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8312     # When not using gcc, we currently assume that we are using
8313     # Microsoft Visual C++.
8314     if test "$GCC" != yes; then
8315       with_gnu_ld=no
8316     fi
8317     ;;
8318   interix*)
8319     # we just hope/assume this is gcc and not c89 (= MSVC++)
8320     with_gnu_ld=yes
8321     ;;
8322   openbsd*)
8323     with_gnu_ld=no
8324     ;;
8325   esac
8326
8327   ld_shlibs=yes
8328
8329   # On some targets, GNU ld is compatible enough with the native linker
8330   # that we're better off using the native interface for both.
8331   lt_use_gnu_ld_interface=no
8332   if test "$with_gnu_ld" = yes; then
8333     case $host_os in
8334       aix*)
8335         # The AIX port of GNU ld has always aspired to compatibility
8336         # with the native linker.  However, as the warning in the GNU ld
8337         # block says, versions before 2.19.5* couldn't really create working
8338         # shared libraries, regardless of the interface used.
8339         case `$LD -v 2>&1` in
8340           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8341           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8342           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8343           *)
8344             lt_use_gnu_ld_interface=yes
8345             ;;
8346         esac
8347         ;;
8348       *)
8349         lt_use_gnu_ld_interface=yes
8350         ;;
8351     esac
8352   fi
8353
8354   if test "$lt_use_gnu_ld_interface" = yes; then
8355     # If archive_cmds runs LD, not CC, wlarc should be empty
8356     wlarc='${wl}'
8357
8358     # Set some defaults for GNU ld with shared library support. These
8359     # are reset later if shared libraries are not supported. Putting them
8360     # here allows them to be overridden if necessary.
8361     runpath_var=LD_RUN_PATH
8362     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8363     export_dynamic_flag_spec='${wl}--export-dynamic'
8364     # ancient GNU ld didn't support --whole-archive et. al.
8365     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8366       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8367     else
8368       whole_archive_flag_spec=
8369     fi
8370     supports_anon_versioning=no
8371     case `$LD -v 2>&1` in
8372       *GNU\ gold*) supports_anon_versioning=yes ;;
8373       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8374       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8375       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8376       *\ 2.11.*) ;; # other 2.11 versions
8377       *) supports_anon_versioning=yes ;;
8378     esac
8379
8380     # See if GNU ld supports shared libraries.
8381     case $host_os in
8382     aix[3-9]*)
8383       # On AIX/PPC, the GNU linker is very broken
8384       if test "$host_cpu" != ia64; then
8385         ld_shlibs=no
8386         cat <<_LT_EOF 1>&2
8387
8388 *** Warning: the GNU linker, at least up to release 2.19, is reported
8389 *** to be unable to reliably create shared libraries on AIX.
8390 *** Therefore, libtool is disabling shared libraries support.  If you
8391 *** really care for shared libraries, you may want to install binutils
8392 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8393 *** You will then need to restart the configuration process.
8394
8395 _LT_EOF
8396       fi
8397       ;;
8398
8399     amigaos*)
8400       case $host_cpu in
8401       powerpc)
8402             # see comment about AmigaOS4 .so support
8403             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404             archive_expsym_cmds=''
8405         ;;
8406       m68k)
8407             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)'
8408             hardcode_libdir_flag_spec='-L$libdir'
8409             hardcode_minus_L=yes
8410         ;;
8411       esac
8412       ;;
8413
8414     beos*)
8415       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8416         allow_undefined_flag=unsupported
8417         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8418         # support --undefined.  This deserves some investigation.  FIXME
8419         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420       else
8421         ld_shlibs=no
8422       fi
8423       ;;
8424
8425     cygwin* | mingw* | pw32* | cegcc*)
8426       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8427       # as there is no search path for DLLs.
8428       hardcode_libdir_flag_spec='-L$libdir'
8429       export_dynamic_flag_spec='${wl}--export-all-symbols'
8430       allow_undefined_flag=unsupported
8431       always_export_symbols=no
8432       enable_shared_with_static_runtimes=yes
8433       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'
8434       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8435
8436       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8437         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8438         # If the export-symbols file already is a .def file (1st line
8439         # is EXPORTS), use it as is; otherwise, prepend...
8440         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8441           cp $export_symbols $output_objdir/$soname.def;
8442         else
8443           echo EXPORTS > $output_objdir/$soname.def;
8444           cat $export_symbols >> $output_objdir/$soname.def;
8445         fi~
8446         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8447       else
8448         ld_shlibs=no
8449       fi
8450       ;;
8451
8452     haiku*)
8453       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454       link_all_deplibs=yes
8455       ;;
8456
8457     interix[3-9]*)
8458       hardcode_direct=no
8459       hardcode_shlibpath_var=no
8460       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461       export_dynamic_flag_spec='${wl}-E'
8462       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463       # Instead, shared libraries are loaded at an image base (0x10000000 by
8464       # default) and relocated if they conflict, which is a slow very memory
8465       # consuming and fragmenting process.  To avoid this, we pick a random,
8466       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8468       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469       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'
8470       ;;
8471
8472     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8473       tmp_diet=no
8474       if test "$host_os" = linux-dietlibc; then
8475         case $cc_basename in
8476           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8477         esac
8478       fi
8479       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8480          && test "$tmp_diet" = no
8481       then
8482         tmp_addflag=' $pic_flag'
8483         tmp_sharedflag='-shared'
8484         case $cc_basename,$host_cpu in
8485         pgcc*)                          # Portland Group C compiler
8486           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'
8487           tmp_addflag=' $pic_flag'
8488           ;;
8489         pgf77* | pgf90* | pgf95* | pgfortran*)
8490                                         # Portland Group f77 and f90 compilers
8491           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'
8492           tmp_addflag=' $pic_flag -Mnomain' ;;
8493         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8494           tmp_addflag=' -i_dynamic' ;;
8495         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8496           tmp_addflag=' -i_dynamic -nofor_main' ;;
8497         ifc* | ifort*)                  # Intel Fortran compiler
8498           tmp_addflag=' -nofor_main' ;;
8499         lf95*)                          # Lahey Fortran 8.1
8500           whole_archive_flag_spec=
8501           tmp_sharedflag='--shared' ;;
8502         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8503           tmp_sharedflag='-qmkshrobj'
8504           tmp_addflag= ;;
8505         nvcc*)  # Cuda Compiler Driver 2.2
8506           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'
8507           compiler_needs_object=yes
8508           ;;
8509         esac
8510         case `$CC -V 2>&1 | sed 5q` in
8511         *Sun\ C*)                       # Sun C 5.9
8512           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'
8513           compiler_needs_object=yes
8514           tmp_sharedflag='-G' ;;
8515         *Sun\ F*)                       # Sun Fortran 8.3
8516           tmp_sharedflag='-G' ;;
8517         esac
8518         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519
8520         if test "x$supports_anon_versioning" = xyes; then
8521           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8522             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8523             echo "local: *; };" >> $output_objdir/$libname.ver~
8524             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8525         fi
8526
8527         case $cc_basename in
8528         xlf* | bgf* | bgxlf* | mpixlf*)
8529           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8530           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8531           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8533           if test "x$supports_anon_versioning" = xyes; then
8534             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8535               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8536               echo "local: *; };" >> $output_objdir/$libname.ver~
8537               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8538           fi
8539           ;;
8540         esac
8541       else
8542         ld_shlibs=no
8543       fi
8544       ;;
8545
8546     netbsd*)
8547       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8548         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8549         wlarc=
8550       else
8551         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553       fi
8554       ;;
8555
8556     solaris*)
8557       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8558         ld_shlibs=no
8559         cat <<_LT_EOF 1>&2
8560
8561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8562 *** create shared libraries on Solaris systems.  Therefore, libtool
8563 *** is disabling shared libraries support.  We urge you to upgrade GNU
8564 *** binutils to release 2.9.1 or newer.  Another option is to modify
8565 *** your PATH or compiler configuration so that the native linker is
8566 *** used, and then restart.
8567
8568 _LT_EOF
8569       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8572       else
8573         ld_shlibs=no
8574       fi
8575       ;;
8576
8577     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8578       case `$LD -v 2>&1` in
8579         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8580         ld_shlibs=no
8581         cat <<_LT_EOF 1>&2
8582
8583 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8584 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8585 *** is disabling shared libraries support.  We urge you to upgrade GNU
8586 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8587 *** your PATH or compiler configuration so that the native linker is
8588 *** used, and then restart.
8589
8590 _LT_EOF
8591         ;;
8592         *)
8593           # For security reasons, it is highly recommended that you always
8594           # use absolute paths for naming shared libraries, and exclude the
8595           # DT_RUNPATH tag from executables and libraries.  But doing so
8596           # requires that you compile everything twice, which is a pain.
8597           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8601           else
8602             ld_shlibs=no
8603           fi
8604         ;;
8605       esac
8606       ;;
8607
8608     sunos4*)
8609       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8610       wlarc=
8611       hardcode_direct=yes
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     *)
8616       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619       else
8620         ld_shlibs=no
8621       fi
8622       ;;
8623     esac
8624
8625     if test "$ld_shlibs" = no; then
8626       runpath_var=
8627       hardcode_libdir_flag_spec=
8628       export_dynamic_flag_spec=
8629       whole_archive_flag_spec=
8630     fi
8631   else
8632     # PORTME fill in a description of your system's linker (not GNU ld)
8633     case $host_os in
8634     aix3*)
8635       allow_undefined_flag=unsupported
8636       always_export_symbols=yes
8637       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'
8638       # Note: this linker hardcodes the directories in LIBPATH if there
8639       # are no directories specified by -L.
8640       hardcode_minus_L=yes
8641       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8642         # Neither direct hardcoding nor static linking is supported with a
8643         # broken collect2.
8644         hardcode_direct=unsupported
8645       fi
8646       ;;
8647
8648     aix[4-9]*)
8649       if test "$host_cpu" = ia64; then
8650         # On IA64, the linker does run time linking by default, so we don't
8651         # have to do anything special.
8652         aix_use_runtimelinking=no
8653         exp_sym_flag='-Bexport'
8654         no_entry_flag=""
8655       else
8656         # If we're using GNU nm, then we don't want the "-C" option.
8657         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8658         # Also, AIX nm treats weak defined symbols like other global
8659         # defined symbols, whereas GNU nm marks them as "W".
8660         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8661           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'
8662         else
8663           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'
8664         fi
8665         aix_use_runtimelinking=no
8666
8667         # Test if we are trying to use run time linking or normal
8668         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8669         # need to do runtime linking.
8670         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8671           for ld_flag in $LDFLAGS; do
8672           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8673             aix_use_runtimelinking=yes
8674             break
8675           fi
8676           done
8677           ;;
8678         esac
8679
8680         exp_sym_flag='-bexport'
8681         no_entry_flag='-bnoentry'
8682       fi
8683
8684       # When large executables or shared objects are built, AIX ld can
8685       # have problems creating the table of contents.  If linking a library
8686       # or program results in "error TOC overflow" add -mminimal-toc to
8687       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8688       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8689
8690       archive_cmds=''
8691       hardcode_direct=yes
8692       hardcode_direct_absolute=yes
8693       hardcode_libdir_separator=':'
8694       link_all_deplibs=yes
8695       file_list_spec='${wl}-f,'
8696
8697       if test "$GCC" = yes; then
8698         case $host_os in aix4.[012]|aix4.[012].*)
8699         # We only want to do this on AIX 4.2 and lower, the check
8700         # below for broken collect2 doesn't work under 4.3+
8701           collect2name=`${CC} -print-prog-name=collect2`
8702           if test -f "$collect2name" &&
8703            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8704           then
8705           # We have reworked collect2
8706           :
8707           else
8708           # We have old collect2
8709           hardcode_direct=unsupported
8710           # It fails to find uninstalled libraries when the uninstalled
8711           # path is not listed in the libpath.  Setting hardcode_minus_L
8712           # to unsupported forces relinking
8713           hardcode_minus_L=yes
8714           hardcode_libdir_flag_spec='-L$libdir'
8715           hardcode_libdir_separator=
8716           fi
8717           ;;
8718         esac
8719         shared_flag='-shared'
8720         if test "$aix_use_runtimelinking" = yes; then
8721           shared_flag="$shared_flag "'${wl}-G'
8722         fi
8723       else
8724         # not using gcc
8725         if test "$host_cpu" = ia64; then
8726         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8727         # chokes on -Wl,-G. The following line is correct:
8728           shared_flag='-G'
8729         else
8730           if test "$aix_use_runtimelinking" = yes; then
8731             shared_flag='${wl}-G'
8732           else
8733             shared_flag='${wl}-bM:SRE'
8734           fi
8735         fi
8736       fi
8737
8738       export_dynamic_flag_spec='${wl}-bexpall'
8739       # It seems that -bexpall does not export symbols beginning with
8740       # underscore (_), so it is better to generate a list of symbols to export.
8741       always_export_symbols=yes
8742       if test "$aix_use_runtimelinking" = yes; then
8743         # Warning - without using the other runtime loading flags (-brtl),
8744         # -berok will link without error, but may produce a broken library.
8745         allow_undefined_flag='-berok'
8746         # Determine the default libpath from the value encoded in an
8747         # empty executable.
8748         if test "${lt_cv_aix_libpath+set}" = set; then
8749   aix_libpath=$lt_cv_aix_libpath
8750 else
8751   if ${lt_cv_aix_libpath_+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756
8757 int
8758 main ()
8759 {
8760
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766
8767   lt_aix_libpath_sed='
8768       /Import File Strings/,/^$/ {
8769           /^0/ {
8770               s/^0  *\([^ ]*\) *$/\1/
8771               p
8772           }
8773       }'
8774   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775   # Check for a 64-bit object if we didn't find anything.
8776   if test -z "$lt_cv_aix_libpath_"; then
8777     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778   fi
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781     conftest$ac_exeext conftest.$ac_ext
8782   if test -z "$lt_cv_aix_libpath_"; then
8783     lt_cv_aix_libpath_="/usr/lib:/lib"
8784   fi
8785
8786 fi
8787
8788   aix_libpath=$lt_cv_aix_libpath_
8789 fi
8790
8791         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8793       else
8794         if test "$host_cpu" = ia64; then
8795           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8796           allow_undefined_flag="-z nodefs"
8797           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8798         else
8799          # Determine the default libpath from the value encoded in an
8800          # empty executable.
8801          if test "${lt_cv_aix_libpath+set}" = set; then
8802   aix_libpath=$lt_cv_aix_libpath
8803 else
8804   if ${lt_cv_aix_libpath_+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h.  */
8809
8810 int
8811 main ()
8812 {
8813
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_link "$LINENO"; then :
8819
8820   lt_aix_libpath_sed='
8821       /Import File Strings/,/^$/ {
8822           /^0/ {
8823               s/^0  *\([^ ]*\) *$/\1/
8824               p
8825           }
8826       }'
8827   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828   # Check for a 64-bit object if we didn't find anything.
8829   if test -z "$lt_cv_aix_libpath_"; then
8830     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831   fi
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834     conftest$ac_exeext conftest.$ac_ext
8835   if test -z "$lt_cv_aix_libpath_"; then
8836     lt_cv_aix_libpath_="/usr/lib:/lib"
8837   fi
8838
8839 fi
8840
8841   aix_libpath=$lt_cv_aix_libpath_
8842 fi
8843
8844          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8845           # Warning - without using the other run time loading flags,
8846           # -berok will link without error, but may produce a broken library.
8847           no_undefined_flag=' ${wl}-bernotok'
8848           allow_undefined_flag=' ${wl}-berok'
8849           if test "$with_gnu_ld" = yes; then
8850             # We only use this code for GNU lds that support --whole-archive.
8851             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8852           else
8853             # Exported symbols can be pulled into shared objects from archives
8854             whole_archive_flag_spec='$convenience'
8855           fi
8856           archive_cmds_need_lc=yes
8857           # This is similar to how AIX traditionally builds its shared libraries.
8858           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8859         fi
8860       fi
8861       ;;
8862
8863     amigaos*)
8864       case $host_cpu in
8865       powerpc)
8866             # see comment about AmigaOS4 .so support
8867             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868             archive_expsym_cmds=''
8869         ;;
8870       m68k)
8871             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8872             hardcode_libdir_flag_spec='-L$libdir'
8873             hardcode_minus_L=yes
8874         ;;
8875       esac
8876       ;;
8877
8878     bsdi[45]*)
8879       export_dynamic_flag_spec=-rdynamic
8880       ;;
8881
8882     cygwin* | mingw* | pw32* | cegcc*)
8883       # When not using gcc, we currently assume that we are using
8884       # Microsoft Visual C++.
8885       # hardcode_libdir_flag_spec is actually meaningless, as there is
8886       # no search path for DLLs.
8887       case $cc_basename in
8888       cl*)
8889         # Native MSVC
8890         hardcode_libdir_flag_spec=' '
8891         allow_undefined_flag=unsupported
8892         always_export_symbols=yes
8893         file_list_spec='@'
8894         # Tell ltmain to make .lib files, not .a files.
8895         libext=lib
8896         # Tell ltmain to make .dll files, not .so files.
8897         shrext_cmds=".dll"
8898         # FIXME: Setting linknames here is a bad hack.
8899         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8900         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8902           else
8903             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8904           fi~
8905           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8906           linknames='
8907         # The linker will not automatically build a static lib if we build a DLL.
8908         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8909         enable_shared_with_static_runtimes=yes
8910         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8911         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8912         # Don't use ranlib
8913         old_postinstall_cmds='chmod 644 $oldlib'
8914         postlink_cmds='lt_outputfile="@OUTPUT@"~
8915           lt_tool_outputfile="@TOOL_OUTPUT@"~
8916           case $lt_outputfile in
8917             *.exe|*.EXE) ;;
8918             *)
8919               lt_outputfile="$lt_outputfile.exe"
8920               lt_tool_outputfile="$lt_tool_outputfile.exe"
8921               ;;
8922           esac~
8923           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8924             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8925             $RM "$lt_outputfile.manifest";
8926           fi'
8927         ;;
8928       *)
8929         # Assume MSVC wrapper
8930         hardcode_libdir_flag_spec=' '
8931         allow_undefined_flag=unsupported
8932         # Tell ltmain to make .lib files, not .a files.
8933         libext=lib
8934         # Tell ltmain to make .dll files, not .so files.
8935         shrext_cmds=".dll"
8936         # FIXME: Setting linknames here is a bad hack.
8937         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8938         # The linker will automatically build a .lib file if we build a DLL.
8939         old_archive_from_new_cmds='true'
8940         # FIXME: Should let the user specify the lib program.
8941         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8942         enable_shared_with_static_runtimes=yes
8943         ;;
8944       esac
8945       ;;
8946
8947     darwin* | rhapsody*)
8948
8949
8950   archive_cmds_need_lc=no
8951   hardcode_direct=no
8952   hardcode_automatic=yes
8953   hardcode_shlibpath_var=unsupported
8954   if test "$lt_cv_ld_force_load" = "yes"; then
8955     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8956
8957   else
8958     whole_archive_flag_spec=''
8959   fi
8960   link_all_deplibs=yes
8961   allow_undefined_flag="$_lt_dar_allow_undefined"
8962   case $cc_basename in
8963      ifort*) _lt_dar_can_shared=yes ;;
8964      *) _lt_dar_can_shared=$GCC ;;
8965   esac
8966   if test "$_lt_dar_can_shared" = "yes"; then
8967     output_verbose_link_cmd=func_echo_all
8968     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8969     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8970     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8971     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8972
8973   else
8974   ld_shlibs=no
8975   fi
8976
8977       ;;
8978
8979     dgux*)
8980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981       hardcode_libdir_flag_spec='-L$libdir'
8982       hardcode_shlibpath_var=no
8983       ;;
8984
8985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8986     # support.  Future versions do this automatically, but an explicit c++rt0.o
8987     # does not break anything, and helps significantly (at the cost of a little
8988     # extra space).
8989     freebsd2.2*)
8990       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8991       hardcode_libdir_flag_spec='-R$libdir'
8992       hardcode_direct=yes
8993       hardcode_shlibpath_var=no
8994       ;;
8995
8996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8997     freebsd2.*)
8998       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999       hardcode_direct=yes
9000       hardcode_minus_L=yes
9001       hardcode_shlibpath_var=no
9002       ;;
9003
9004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9005     freebsd* | dragonfly*)
9006       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007       hardcode_libdir_flag_spec='-R$libdir'
9008       hardcode_direct=yes
9009       hardcode_shlibpath_var=no
9010       ;;
9011
9012     hpux9*)
9013       if test "$GCC" = yes; then
9014         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9015       else
9016         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9017       fi
9018       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9019       hardcode_libdir_separator=:
9020       hardcode_direct=yes
9021
9022       # hardcode_minus_L: Not really in the search PATH,
9023       # but as the default location of the library.
9024       hardcode_minus_L=yes
9025       export_dynamic_flag_spec='${wl}-E'
9026       ;;
9027
9028     hpux10*)
9029       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9030         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031       else
9032         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9033       fi
9034       if test "$with_gnu_ld" = no; then
9035         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036         hardcode_libdir_separator=:
9037         hardcode_direct=yes
9038         hardcode_direct_absolute=yes
9039         export_dynamic_flag_spec='${wl}-E'
9040         # hardcode_minus_L: Not really in the search PATH,
9041         # but as the default location of the library.
9042         hardcode_minus_L=yes
9043       fi
9044       ;;
9045
9046     hpux11*)
9047       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9048         case $host_cpu in
9049         hppa*64*)
9050           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051           ;;
9052         ia64*)
9053           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9054           ;;
9055         *)
9056           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057           ;;
9058         esac
9059       else
9060         case $host_cpu in
9061         hppa*64*)
9062           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063           ;;
9064         ia64*)
9065           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066           ;;
9067         *)
9068
9069           # Older versions of the 11.00 compiler do not understand -b yet
9070           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9071           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9072 $as_echo_n "checking if $CC understands -b... " >&6; }
9073 if ${lt_cv_prog_compiler__b+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   lt_cv_prog_compiler__b=no
9077    save_LDFLAGS="$LDFLAGS"
9078    LDFLAGS="$LDFLAGS -b"
9079    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081      # The linker can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      if test -s conftest.err; then
9084        # Append any errors to the config.log.
9085        cat conftest.err 1>&5
9086        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088        if diff conftest.exp conftest.er2 >/dev/null; then
9089          lt_cv_prog_compiler__b=yes
9090        fi
9091      else
9092        lt_cv_prog_compiler__b=yes
9093      fi
9094    fi
9095    $RM -r conftest*
9096    LDFLAGS="$save_LDFLAGS"
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9100 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9101
9102 if test x"$lt_cv_prog_compiler__b" = xyes; then
9103     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9106 fi
9107
9108           ;;
9109         esac
9110       fi
9111       if test "$with_gnu_ld" = no; then
9112         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9113         hardcode_libdir_separator=:
9114
9115         case $host_cpu in
9116         hppa*64*|ia64*)
9117           hardcode_direct=no
9118           hardcode_shlibpath_var=no
9119           ;;
9120         *)
9121           hardcode_direct=yes
9122           hardcode_direct_absolute=yes
9123           export_dynamic_flag_spec='${wl}-E'
9124
9125           # hardcode_minus_L: Not really in the search PATH,
9126           # but as the default location of the library.
9127           hardcode_minus_L=yes
9128           ;;
9129         esac
9130       fi
9131       ;;
9132
9133     irix5* | irix6* | nonstopux*)
9134       if test "$GCC" = yes; then
9135         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9136         # Try to use the -exported_symbol ld option, if it does not
9137         # work, assume that -exports_file does not work either and
9138         # implicitly export all symbols.
9139         # This should be the same for all languages, so no per-tag cache variable.
9140         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9141 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9142 if ${lt_cv_irix_exported_symbol+:} false; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   save_LDFLAGS="$LDFLAGS"
9146            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9147            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h.  */
9149 int foo (void) { return 0; }
9150 _ACEOF
9151 if ac_fn_c_try_link "$LINENO"; then :
9152   lt_cv_irix_exported_symbol=yes
9153 else
9154   lt_cv_irix_exported_symbol=no
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext \
9157     conftest$ac_exeext conftest.$ac_ext
9158            LDFLAGS="$save_LDFLAGS"
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9161 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9162         if test "$lt_cv_irix_exported_symbol" = yes; then
9163           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9164         fi
9165       else
9166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9168       fi
9169       archive_cmds_need_lc='no'
9170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171       hardcode_libdir_separator=:
9172       inherit_rpath=yes
9173       link_all_deplibs=yes
9174       ;;
9175
9176     netbsd*)
9177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9179       else
9180         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9181       fi
9182       hardcode_libdir_flag_spec='-R$libdir'
9183       hardcode_direct=yes
9184       hardcode_shlibpath_var=no
9185       ;;
9186
9187     newsos6)
9188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189       hardcode_direct=yes
9190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191       hardcode_libdir_separator=:
9192       hardcode_shlibpath_var=no
9193       ;;
9194
9195     *nto* | *qnx*)
9196       ;;
9197
9198     openbsd*)
9199       if test -f /usr/libexec/ld.so; then
9200         hardcode_direct=yes
9201         hardcode_shlibpath_var=no
9202         hardcode_direct_absolute=yes
9203         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207           export_dynamic_flag_spec='${wl}-E'
9208         else
9209           case $host_os in
9210            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212              hardcode_libdir_flag_spec='-R$libdir'
9213              ;;
9214            *)
9215              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9217              ;;
9218           esac
9219         fi
9220       else
9221         ld_shlibs=no
9222       fi
9223       ;;
9224
9225     os2*)
9226       hardcode_libdir_flag_spec='-L$libdir'
9227       hardcode_minus_L=yes
9228       allow_undefined_flag=unsupported
9229       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9230       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9231       ;;
9232
9233     osf3*)
9234       if test "$GCC" = yes; then
9235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9236         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9237       else
9238         allow_undefined_flag=' -expect_unresolved \*'
9239         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9240       fi
9241       archive_cmds_need_lc='no'
9242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       hardcode_libdir_separator=:
9244       ;;
9245
9246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9247       if test "$GCC" = yes; then
9248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9250         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251       else
9252         allow_undefined_flag=' -expect_unresolved \*'
9253         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9254         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9255         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9256
9257         # Both c and cxx compiler support -rpath directly
9258         hardcode_libdir_flag_spec='-rpath $libdir'
9259       fi
9260       archive_cmds_need_lc='no'
9261       hardcode_libdir_separator=:
9262       ;;
9263
9264     solaris*)
9265       no_undefined_flag=' -z defs'
9266       if test "$GCC" = yes; then
9267         wlarc='${wl}'
9268         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9269         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9270           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9271       else
9272         case `$CC -V 2>&1` in
9273         *"Compilers 5.0"*)
9274           wlarc=''
9275           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278           ;;
9279         *)
9280           wlarc='${wl}'
9281           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284           ;;
9285         esac
9286       fi
9287       hardcode_libdir_flag_spec='-R$libdir'
9288       hardcode_shlibpath_var=no
9289       case $host_os in
9290       solaris2.[0-5] | solaris2.[0-5].*) ;;
9291       *)
9292         # The compiler driver will combine and reorder linker options,
9293         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9294         # but is careful enough not to reorder.
9295         # Supported since Solaris 2.6 (maybe 2.5.1?)
9296         if test "$GCC" = yes; then
9297           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9298         else
9299           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300         fi
9301         ;;
9302       esac
9303       link_all_deplibs=yes
9304       ;;
9305
9306     sunos4*)
9307       if test "x$host_vendor" = xsequent; then
9308         # Use $CC to link under sequent, because it throws in some extra .o
9309         # files that make .init and .fini sections work.
9310         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9311       else
9312         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9313       fi
9314       hardcode_libdir_flag_spec='-L$libdir'
9315       hardcode_direct=yes
9316       hardcode_minus_L=yes
9317       hardcode_shlibpath_var=no
9318       ;;
9319
9320     sysv4)
9321       case $host_vendor in
9322         sni)
9323           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324           hardcode_direct=yes # is this really true???
9325         ;;
9326         siemens)
9327           ## LD is ld it makes a PLAMLIB
9328           ## CC just makes a GrossModule.
9329           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9330           reload_cmds='$CC -r -o $output$reload_objs'
9331           hardcode_direct=no
9332         ;;
9333         motorola)
9334           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9336         ;;
9337       esac
9338       runpath_var='LD_RUN_PATH'
9339       hardcode_shlibpath_var=no
9340       ;;
9341
9342     sysv4.3*)
9343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344       hardcode_shlibpath_var=no
9345       export_dynamic_flag_spec='-Bexport'
9346       ;;
9347
9348     sysv4*MP*)
9349       if test -d /usr/nec; then
9350         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351         hardcode_shlibpath_var=no
9352         runpath_var=LD_RUN_PATH
9353         hardcode_runpath_var=yes
9354         ld_shlibs=yes
9355       fi
9356       ;;
9357
9358     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9359       no_undefined_flag='${wl}-z,text'
9360       archive_cmds_need_lc=no
9361       hardcode_shlibpath_var=no
9362       runpath_var='LD_RUN_PATH'
9363
9364       if test "$GCC" = yes; then
9365         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367       else
9368         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370       fi
9371       ;;
9372
9373     sysv5* | sco3.2v5* | sco5v6*)
9374       # Note: We can NOT use -z defs as we might desire, because we do not
9375       # link with -lc, and that would cause any symbols used from libc to
9376       # always be unresolved, which means just about no library would
9377       # ever link correctly.  If we're not using GNU ld we use -z text
9378       # though, which does catch some bad symbols but isn't as heavy-handed
9379       # as -z defs.
9380       no_undefined_flag='${wl}-z,text'
9381       allow_undefined_flag='${wl}-z,nodefs'
9382       archive_cmds_need_lc=no
9383       hardcode_shlibpath_var=no
9384       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9385       hardcode_libdir_separator=':'
9386       link_all_deplibs=yes
9387       export_dynamic_flag_spec='${wl}-Bexport'
9388       runpath_var='LD_RUN_PATH'
9389
9390       if test "$GCC" = yes; then
9391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       else
9394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396       fi
9397       ;;
9398
9399     uts4*)
9400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401       hardcode_libdir_flag_spec='-L$libdir'
9402       hardcode_shlibpath_var=no
9403       ;;
9404
9405     *)
9406       ld_shlibs=no
9407       ;;
9408     esac
9409
9410     if test x$host_vendor = xsni; then
9411       case $host in
9412       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9413         export_dynamic_flag_spec='${wl}-Blargedynsym'
9414         ;;
9415       esac
9416     fi
9417   fi
9418
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9420 $as_echo "$ld_shlibs" >&6; }
9421 test "$ld_shlibs" = no && can_build_shared=no
9422
9423 with_gnu_ld=$with_gnu_ld
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439 #
9440 # Do we need to explicitly link libc?
9441 #
9442 case "x$archive_cmds_need_lc" in
9443 x|xyes)
9444   # Assume -lc should be added
9445   archive_cmds_need_lc=yes
9446
9447   if test "$enable_shared" = yes && test "$GCC" = yes; then
9448     case $archive_cmds in
9449     *'~'*)
9450       # FIXME: we may have to deal with multi-command sequences.
9451       ;;
9452     '$CC '*)
9453       # Test whether the compiler implicitly links with -lc since on some
9454       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9455       # to ld, don't add -lc before -lgcc.
9456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9458 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   $RM conftest*
9462         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463
9464         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9465   (eval $ac_compile) 2>&5
9466   ac_status=$?
9467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468   test $ac_status = 0; } 2>conftest.err; then
9469           soname=conftest
9470           lib=conftest
9471           libobjs=conftest.$ac_objext
9472           deplibs=
9473           wl=$lt_prog_compiler_wl
9474           pic_flag=$lt_prog_compiler_pic
9475           compiler_flags=-v
9476           linker_flags=-v
9477           verstring=
9478           output_objdir=.
9479           libname=conftest
9480           lt_save_allow_undefined_flag=$allow_undefined_flag
9481           allow_undefined_flag=
9482           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9483   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9484   ac_status=$?
9485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486   test $ac_status = 0; }
9487           then
9488             lt_cv_archive_cmds_need_lc=no
9489           else
9490             lt_cv_archive_cmds_need_lc=yes
9491           fi
9492           allow_undefined_flag=$lt_save_allow_undefined_flag
9493         else
9494           cat conftest.err 1>&5
9495         fi
9496         $RM conftest*
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9500 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9501       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9502       ;;
9503     esac
9504   fi
9505   ;;
9506 esac
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9661
9662 if test "$GCC" = yes; then
9663   case $host_os in
9664     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9665     *) lt_awk_arg="/^libraries:/" ;;
9666   esac
9667   case $host_os in
9668     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9669     *) lt_sed_strip_eq="s,=/,/,g" ;;
9670   esac
9671   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9672   case $lt_search_path_spec in
9673   *\;*)
9674     # if the path contains ";" then we assume it to be the separator
9675     # otherwise default to the standard path separator (i.e. ":") - it is
9676     # assumed that no part of a normal pathname contains ";" but that should
9677     # okay in the real world where ";" in dirpaths is itself problematic.
9678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9679     ;;
9680   *)
9681     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9682     ;;
9683   esac
9684   # Ok, now we have the path, separated by spaces, we can step through it
9685   # and add multilib dir if necessary.
9686   lt_tmp_lt_search_path_spec=
9687   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9688   for lt_sys_path in $lt_search_path_spec; do
9689     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9690       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9691     else
9692       test -d "$lt_sys_path" && \
9693         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9694     fi
9695   done
9696   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9697 BEGIN {RS=" "; FS="/|\n";} {
9698   lt_foo="";
9699   lt_count=0;
9700   for (lt_i = NF; lt_i > 0; lt_i--) {
9701     if ($lt_i != "" && $lt_i != ".") {
9702       if ($lt_i == "..") {
9703         lt_count++;
9704       } else {
9705         if (lt_count == 0) {
9706           lt_foo="/" $lt_i lt_foo;
9707         } else {
9708           lt_count--;
9709         }
9710       }
9711     }
9712   }
9713   if (lt_foo != "") { lt_freq[lt_foo]++; }
9714   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9715 }'`
9716   # AWK program above erroneously prepends '/' to C:/dos/paths
9717   # for these hosts.
9718   case $host_os in
9719     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9720       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9721   esac
9722   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9723 else
9724   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9725 fi
9726 library_names_spec=
9727 libname_spec='lib$name'
9728 soname_spec=
9729 shrext_cmds=".so"
9730 postinstall_cmds=
9731 postuninstall_cmds=
9732 finish_cmds=
9733 finish_eval=
9734 shlibpath_var=
9735 shlibpath_overrides_runpath=unknown
9736 version_type=none
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 need_lib_prefix=unknown
9740 hardcode_into_libs=no
9741
9742 # when you set need_version to no, make sure it does not cause -set_version
9743 # flags to be left without arguments
9744 need_version=unknown
9745
9746 case $host_os in
9747 aix3*)
9748   version_type=linux # correct to gnu/linux during the next big refactor
9749   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9750   shlibpath_var=LIBPATH
9751
9752   # AIX 3 has no versioning support, so we append a major version to the name.
9753   soname_spec='${libname}${release}${shared_ext}$major'
9754   ;;
9755
9756 aix[4-9]*)
9757   version_type=linux # correct to gnu/linux during the next big refactor
9758   need_lib_prefix=no
9759   need_version=no
9760   hardcode_into_libs=yes
9761   if test "$host_cpu" = ia64; then
9762     # AIX 5 supports IA64
9763     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9764     shlibpath_var=LD_LIBRARY_PATH
9765   else
9766     # With GCC up to 2.95.x, collect2 would create an import file
9767     # for dependence libraries.  The import file would start with
9768     # the line `#! .'.  This would cause the generated library to
9769     # depend on `.', always an invalid library.  This was fixed in
9770     # development snapshots of GCC prior to 3.0.
9771     case $host_os in
9772       aix4 | aix4.[01] | aix4.[01].*)
9773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9774            echo ' yes '
9775            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9776         :
9777       else
9778         can_build_shared=no
9779       fi
9780       ;;
9781     esac
9782     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9783     # soname into executable. Probably we can add versioning support to
9784     # collect2, so additional links can be useful in future.
9785     if test "$aix_use_runtimelinking" = yes; then
9786       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9787       # instead of lib<name>.a to let people know that these are not
9788       # typical AIX shared libraries.
9789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790     else
9791       # We preserve .a as extension for shared libraries through AIX4.2
9792       # and later when we are not doing run time linking.
9793       library_names_spec='${libname}${release}.a $libname.a'
9794       soname_spec='${libname}${release}${shared_ext}$major'
9795     fi
9796     shlibpath_var=LIBPATH
9797   fi
9798   ;;
9799
9800 amigaos*)
9801   case $host_cpu in
9802   powerpc)
9803     # Since July 2007 AmigaOS4 officially supports .so libraries.
9804     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806     ;;
9807   m68k)
9808     library_names_spec='$libname.ixlibrary $libname.a'
9809     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9810     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9811     ;;
9812   esac
9813   ;;
9814
9815 beos*)
9816   library_names_spec='${libname}${shared_ext}'
9817   dynamic_linker="$host_os ld.so"
9818   shlibpath_var=LIBRARY_PATH
9819   ;;
9820
9821 bsdi[45]*)
9822   version_type=linux # correct to gnu/linux during the next big refactor
9823   need_version=no
9824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825   soname_spec='${libname}${release}${shared_ext}$major'
9826   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9829   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9830   # the default ld.so.conf also contains /usr/contrib/lib and
9831   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9832   # libtool to hard-code these into programs
9833   ;;
9834
9835 cygwin* | mingw* | pw32* | cegcc*)
9836   version_type=windows
9837   shrext_cmds=".dll"
9838   need_version=no
9839   need_lib_prefix=no
9840
9841   case $GCC,$cc_basename in
9842   yes,*)
9843     # gcc
9844     library_names_spec='$libname.dll.a'
9845     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846     postinstall_cmds='base_file=`basename \${file}`~
9847       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848       dldir=$destdir/`dirname \$dlpath`~
9849       test -d \$dldir || mkdir -p \$dldir~
9850       $install_prog $dir/$dlname \$dldir/$dlname~
9851       chmod a+x \$dldir/$dlname~
9852       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9854       fi'
9855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856       dlpath=$dir/\$dldll~
9857        $RM \$dlpath'
9858     shlibpath_overrides_runpath=yes
9859
9860     case $host_os in
9861     cygwin*)
9862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9864
9865       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9866       ;;
9867     mingw* | cegcc*)
9868       # MinGW DLLs use traditional 'lib' prefix
9869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870       ;;
9871     pw32*)
9872       # pw32 DLLs use 'pw' prefix rather than 'lib'
9873       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874       ;;
9875     esac
9876     dynamic_linker='Win32 ld.exe'
9877     ;;
9878
9879   *,cl*)
9880     # Native MSVC
9881     libname_spec='$name'
9882     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883     library_names_spec='${libname}.dll.lib'
9884
9885     case $build_os in
9886     mingw*)
9887       sys_lib_search_path_spec=
9888       lt_save_ifs=$IFS
9889       IFS=';'
9890       for lt_path in $LIB
9891       do
9892         IFS=$lt_save_ifs
9893         # Let DOS variable expansion print the short 8.3 style file name.
9894         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9895         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9896       done
9897       IFS=$lt_save_ifs
9898       # Convert to MSYS style.
9899       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9900       ;;
9901     cygwin*)
9902       # Convert to unix form, then to dos form, then back to unix form
9903       # but this time dos style (no spaces!) so that the unix form looks
9904       # like /cygdrive/c/PROGRA~1:/cygdr...
9905       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9906       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9907       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9908       ;;
9909     *)
9910       sys_lib_search_path_spec="$LIB"
9911       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9912         # It is most probably a Windows format PATH.
9913         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9914       else
9915         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9916       fi
9917       # FIXME: find the short name or the path components, as spaces are
9918       # common. (e.g. "Program Files" -> "PROGRA~1")
9919       ;;
9920     esac
9921
9922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923     postinstall_cmds='base_file=`basename \${file}`~
9924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925       dldir=$destdir/`dirname \$dlpath`~
9926       test -d \$dldir || mkdir -p \$dldir~
9927       $install_prog $dir/$dlname \$dldir/$dlname'
9928     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9929       dlpath=$dir/\$dldll~
9930        $RM \$dlpath'
9931     shlibpath_overrides_runpath=yes
9932     dynamic_linker='Win32 link.exe'
9933     ;;
9934
9935   *)
9936     # Assume MSVC wrapper
9937     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9938     dynamic_linker='Win32 ld.exe'
9939     ;;
9940   esac
9941   # FIXME: first we should search . and the directory the executable is in
9942   shlibpath_var=PATH
9943   ;;
9944
9945 darwin* | rhapsody*)
9946   dynamic_linker="$host_os dyld"
9947   version_type=darwin
9948   need_lib_prefix=no
9949   need_version=no
9950   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9951   soname_spec='${libname}${release}${major}$shared_ext'
9952   shlibpath_overrides_runpath=yes
9953   shlibpath_var=DYLD_LIBRARY_PATH
9954   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9955
9956   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9957   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9958   ;;
9959
9960 dgux*)
9961   version_type=linux # correct to gnu/linux during the next big refactor
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   shlibpath_var=LD_LIBRARY_PATH
9967   ;;
9968
9969 freebsd* | dragonfly*)
9970   # DragonFly does not have aout.  When/if they implement a new
9971   # versioning mechanism, adjust this.
9972   if test -x /usr/bin/objformat; then
9973     objformat=`/usr/bin/objformat`
9974   else
9975     case $host_os in
9976     freebsd[23].*) objformat=aout ;;
9977     *) objformat=elf ;;
9978     esac
9979   fi
9980   version_type=freebsd-$objformat
9981   case $version_type in
9982     freebsd-elf*)
9983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984       need_version=no
9985       need_lib_prefix=no
9986       ;;
9987     freebsd-*)
9988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989       need_version=yes
9990       ;;
9991   esac
9992   shlibpath_var=LD_LIBRARY_PATH
9993   case $host_os in
9994   freebsd2.*)
9995     shlibpath_overrides_runpath=yes
9996     ;;
9997   freebsd3.[01]* | freebsdelf3.[01]*)
9998     shlibpath_overrides_runpath=yes
9999     hardcode_into_libs=yes
10000     ;;
10001   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003     shlibpath_overrides_runpath=no
10004     hardcode_into_libs=yes
10005     ;;
10006   *) # from 4.6 on, and DragonFly
10007     shlibpath_overrides_runpath=yes
10008     hardcode_into_libs=yes
10009     ;;
10010   esac
10011   ;;
10012
10013 gnu*)
10014   version_type=linux # correct to gnu/linux during the next big refactor
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   shlibpath_overrides_runpath=no
10021   hardcode_into_libs=yes
10022   ;;
10023
10024 haiku*)
10025   version_type=linux # correct to gnu/linux during the next big refactor
10026   need_lib_prefix=no
10027   need_version=no
10028   dynamic_linker="$host_os runtime_loader"
10029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   shlibpath_var=LIBRARY_PATH
10032   shlibpath_overrides_runpath=yes
10033   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10034   hardcode_into_libs=yes
10035   ;;
10036
10037 hpux9* | hpux10* | hpux11*)
10038   # Give a soname corresponding to the major version so that dld.sl refuses to
10039   # link against other versions.
10040   version_type=sunos
10041   need_lib_prefix=no
10042   need_version=no
10043   case $host_cpu in
10044   ia64*)
10045     shrext_cmds='.so'
10046     hardcode_into_libs=yes
10047     dynamic_linker="$host_os dld.so"
10048     shlibpath_var=LD_LIBRARY_PATH
10049     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051     soname_spec='${libname}${release}${shared_ext}$major'
10052     if test "X$HPUX_IA64_MODE" = X32; then
10053       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10054     else
10055       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10056     fi
10057     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058     ;;
10059   hppa*64*)
10060     shrext_cmds='.sl'
10061     hardcode_into_libs=yes
10062     dynamic_linker="$host_os dld.sl"
10063     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066     soname_spec='${libname}${release}${shared_ext}$major'
10067     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069     ;;
10070   *)
10071     shrext_cmds='.sl'
10072     dynamic_linker="$host_os dld.sl"
10073     shlibpath_var=SHLIB_PATH
10074     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076     soname_spec='${libname}${release}${shared_ext}$major'
10077     ;;
10078   esac
10079   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10080   postinstall_cmds='chmod 555 $lib'
10081   # or fails outright, so override atomically:
10082   install_override_mode=555
10083   ;;
10084
10085 interix[3-9]*)
10086   version_type=linux # correct to gnu/linux during the next big refactor
10087   need_lib_prefix=no
10088   need_version=no
10089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090   soname_spec='${libname}${release}${shared_ext}$major'
10091   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092   shlibpath_var=LD_LIBRARY_PATH
10093   shlibpath_overrides_runpath=no
10094   hardcode_into_libs=yes
10095   ;;
10096
10097 irix5* | irix6* | nonstopux*)
10098   case $host_os in
10099     nonstopux*) version_type=nonstopux ;;
10100     *)
10101         if test "$lt_cv_prog_gnu_ld" = yes; then
10102                 version_type=linux # correct to gnu/linux during the next big refactor
10103         else
10104                 version_type=irix
10105         fi ;;
10106   esac
10107   need_lib_prefix=no
10108   need_version=no
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10111   case $host_os in
10112   irix5* | nonstopux*)
10113     libsuff= shlibsuff=
10114     ;;
10115   *)
10116     case $LD in # libtool.m4 will add one of these switches to LD
10117     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118       libsuff= shlibsuff= libmagic=32-bit;;
10119     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120       libsuff=32 shlibsuff=N32 libmagic=N32;;
10121     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123     *) libsuff= shlibsuff= libmagic=never-match;;
10124     esac
10125     ;;
10126   esac
10127   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128   shlibpath_overrides_runpath=no
10129   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131   hardcode_into_libs=yes
10132   ;;
10133
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10136   dynamic_linker=no
10137   ;;
10138
10139 # This must be glibc/ELF.
10140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10141   version_type=linux # correct to gnu/linux during the next big refactor
10142   need_lib_prefix=no
10143   need_version=no
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   shlibpath_overrides_runpath=no
10149
10150   # Some binutils ld are patched to set DT_RUNPATH
10151   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   lt_cv_shlibpath_overrides_runpath=no
10155     save_LDFLAGS=$LDFLAGS
10156     save_libdir=$libdir
10157     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10158          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161
10162 int
10163 main ()
10164 {
10165
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10172   lt_cv_shlibpath_overrides_runpath=yes
10173 fi
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext \
10176     conftest$ac_exeext conftest.$ac_ext
10177     LDFLAGS=$save_LDFLAGS
10178     libdir=$save_libdir
10179
10180 fi
10181
10182   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10183
10184   # This implies no fast_install, which is unacceptable.
10185   # Some rework will be needed to allow for fast_install
10186   # before this can be enabled.
10187   hardcode_into_libs=yes
10188
10189   # Append ld.so.conf contents to the search path
10190   if test -f /etc/ld.so.conf; then
10191     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10192     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10193   fi
10194
10195   # We used to test for /lib/ld.so.1 and disable shared libraries on
10196   # powerpc, because MkLinux only supported shared libraries with the
10197   # GNU dynamic linker.  Since this was broken with cross compilers,
10198   # most powerpc-linux boxes support dynamic linking these days and
10199   # people can always --disable-shared, the test was removed, and we
10200   # assume the GNU/Linux dynamic linker is in use.
10201   dynamic_linker='GNU/Linux ld.so'
10202   ;;
10203
10204 netbsd*)
10205   version_type=sunos
10206   need_lib_prefix=no
10207   need_version=no
10208   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211     dynamic_linker='NetBSD (a.out) ld.so'
10212   else
10213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10214     soname_spec='${libname}${release}${shared_ext}$major'
10215     dynamic_linker='NetBSD ld.elf_so'
10216   fi
10217   shlibpath_var=LD_LIBRARY_PATH
10218   shlibpath_overrides_runpath=yes
10219   hardcode_into_libs=yes
10220   ;;
10221
10222 newsos6)
10223   version_type=linux # correct to gnu/linux during the next big refactor
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   shlibpath_overrides_runpath=yes
10227   ;;
10228
10229 *nto* | *qnx*)
10230   version_type=qnx
10231   need_lib_prefix=no
10232   need_version=no
10233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234   soname_spec='${libname}${release}${shared_ext}$major'
10235   shlibpath_var=LD_LIBRARY_PATH
10236   shlibpath_overrides_runpath=no
10237   hardcode_into_libs=yes
10238   dynamic_linker='ldqnx.so'
10239   ;;
10240
10241 openbsd*)
10242   version_type=sunos
10243   sys_lib_dlsearch_path_spec="/usr/lib"
10244   need_lib_prefix=no
10245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10246   case $host_os in
10247     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10248     *)                          need_version=no  ;;
10249   esac
10250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252   shlibpath_var=LD_LIBRARY_PATH
10253   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10254     case $host_os in
10255       openbsd2.[89] | openbsd2.[89].*)
10256         shlibpath_overrides_runpath=no
10257         ;;
10258       *)
10259         shlibpath_overrides_runpath=yes
10260         ;;
10261       esac
10262   else
10263     shlibpath_overrides_runpath=yes
10264   fi
10265   ;;
10266
10267 os2*)
10268   libname_spec='$name'
10269   shrext_cmds=".dll"
10270   need_lib_prefix=no
10271   library_names_spec='$libname${shared_ext} $libname.a'
10272   dynamic_linker='OS/2 ld.exe'
10273   shlibpath_var=LIBPATH
10274   ;;
10275
10276 osf3* | osf4* | osf5*)
10277   version_type=osf
10278   need_lib_prefix=no
10279   need_version=no
10280   soname_spec='${libname}${release}${shared_ext}$major'
10281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10285   ;;
10286
10287 rdos*)
10288   dynamic_linker=no
10289   ;;
10290
10291 solaris*)
10292   version_type=linux # correct to gnu/linux during the next big refactor
10293   need_lib_prefix=no
10294   need_version=no
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   shlibpath_overrides_runpath=yes
10299   hardcode_into_libs=yes
10300   # ldd complains unless libraries are executable
10301   postinstall_cmds='chmod +x $lib'
10302   ;;
10303
10304 sunos4*)
10305   version_type=sunos
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10308   shlibpath_var=LD_LIBRARY_PATH
10309   shlibpath_overrides_runpath=yes
10310   if test "$with_gnu_ld" = yes; then
10311     need_lib_prefix=no
10312   fi
10313   need_version=yes
10314   ;;
10315
10316 sysv4 | sysv4.3*)
10317   version_type=linux # correct to gnu/linux during the next big refactor
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   case $host_vendor in
10322     sni)
10323       shlibpath_overrides_runpath=no
10324       need_lib_prefix=no
10325       runpath_var=LD_RUN_PATH
10326       ;;
10327     siemens)
10328       need_lib_prefix=no
10329       ;;
10330     motorola)
10331       need_lib_prefix=no
10332       need_version=no
10333       shlibpath_overrides_runpath=no
10334       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10335       ;;
10336   esac
10337   ;;
10338
10339 sysv4*MP*)
10340   if test -d /usr/nec ;then
10341     version_type=linux # correct to gnu/linux during the next big refactor
10342     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10343     soname_spec='$libname${shared_ext}.$major'
10344     shlibpath_var=LD_LIBRARY_PATH
10345   fi
10346   ;;
10347
10348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10349   version_type=freebsd-elf
10350   need_lib_prefix=no
10351   need_version=no
10352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10353   soname_spec='${libname}${release}${shared_ext}$major'
10354   shlibpath_var=LD_LIBRARY_PATH
10355   shlibpath_overrides_runpath=yes
10356   hardcode_into_libs=yes
10357   if test "$with_gnu_ld" = yes; then
10358     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10359   else
10360     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10361     case $host_os in
10362       sco3.2v5*)
10363         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10364         ;;
10365     esac
10366   fi
10367   sys_lib_dlsearch_path_spec='/usr/lib'
10368   ;;
10369
10370 tpf*)
10371   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10372   version_type=linux # correct to gnu/linux during the next big refactor
10373   need_lib_prefix=no
10374   need_version=no
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376   shlibpath_var=LD_LIBRARY_PATH
10377   shlibpath_overrides_runpath=no
10378   hardcode_into_libs=yes
10379   ;;
10380
10381 uts4*)
10382   version_type=linux # correct to gnu/linux during the next big refactor
10383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384   soname_spec='${libname}${release}${shared_ext}$major'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   ;;
10387
10388 *)
10389   dynamic_linker=no
10390   ;;
10391 esac
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10393 $as_echo "$dynamic_linker" >&6; }
10394 test "$dynamic_linker" = no && can_build_shared=no
10395
10396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10397 if test "$GCC" = yes; then
10398   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10399 fi
10400
10401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10402   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10403 fi
10404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10405   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10406 fi
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
10497
10498
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10501 hardcode_action=
10502 if test -n "$hardcode_libdir_flag_spec" ||
10503    test -n "$runpath_var" ||
10504    test "X$hardcode_automatic" = "Xyes" ; then
10505
10506   # We can hardcode non-existent directories.
10507   if test "$hardcode_direct" != no &&
10508      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10509      # have to relink, otherwise we might link with an installed library
10510      # when we should be linking with a yet-to-be-installed one
10511      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10512      test "$hardcode_minus_L" != no; then
10513     # Linking always hardcodes the temporary library directory.
10514     hardcode_action=relink
10515   else
10516     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10517     hardcode_action=immediate
10518   fi
10519 else
10520   # We cannot hardcode anything, or else we can only hardcode existing
10521   # directories.
10522   hardcode_action=unsupported
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10525 $as_echo "$hardcode_action" >&6; }
10526
10527 if test "$hardcode_action" = relink ||
10528    test "$inherit_rpath" = yes; then
10529   # Fast installation is not supported
10530   enable_fast_install=no
10531 elif test "$shlibpath_overrides_runpath" = yes ||
10532      test "$enable_shared" = no; then
10533   # Fast installation is not necessary
10534   enable_fast_install=needless
10535 fi
10536
10537
10538
10539
10540
10541
10542   if test "x$enable_dlopen" != xyes; then
10543   enable_dlopen=unknown
10544   enable_dlopen_self=unknown
10545   enable_dlopen_self_static=unknown
10546 else
10547   lt_cv_dlopen=no
10548   lt_cv_dlopen_libs=
10549
10550   case $host_os in
10551   beos*)
10552     lt_cv_dlopen="load_add_on"
10553     lt_cv_dlopen_libs=
10554     lt_cv_dlopen_self=yes
10555     ;;
10556
10557   mingw* | pw32* | cegcc*)
10558     lt_cv_dlopen="LoadLibrary"
10559     lt_cv_dlopen_libs=
10560     ;;
10561
10562   cygwin*)
10563     lt_cv_dlopen="dlopen"
10564     lt_cv_dlopen_libs=
10565     ;;
10566
10567   darwin*)
10568   # if libdl is installed we need to link against it
10569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10571 if ${ac_cv_lib_dl_dlopen+:} false; then :
10572   $as_echo_n "(cached) " >&6
10573 else
10574   ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-ldl  $LIBS"
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h.  */
10578
10579 /* Override any GCC internal prototype to avoid an error.
10580    Use char because int might match the return type of a GCC
10581    builtin and then its argument prototype would still apply.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char dlopen ();
10586 int
10587 main ()
10588 {
10589 return dlopen ();
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595   ac_cv_lib_dl_dlopen=yes
10596 else
10597   ac_cv_lib_dl_dlopen=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600     conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10606   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10607 else
10608
10609     lt_cv_dlopen="dyld"
10610     lt_cv_dlopen_libs=
10611     lt_cv_dlopen_self=yes
10612
10613 fi
10614
10615     ;;
10616
10617   *)
10618     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10619 if test "x$ac_cv_func_shl_load" = xyes; then :
10620   lt_cv_dlopen="shl_load"
10621 else
10622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10623 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10624 if ${ac_cv_lib_dld_shl_load+:} false; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   ac_check_lib_save_LIBS=$LIBS
10628 LIBS="-ldld  $LIBS"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h.  */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633    Use char because int might match the return type of a GCC
10634    builtin and then its argument prototype would still apply.  */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char shl_load ();
10639 int
10640 main ()
10641 {
10642 return shl_load ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648   ac_cv_lib_dld_shl_load=yes
10649 else
10650   ac_cv_lib_dld_shl_load=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653     conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10659   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10660 else
10661   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10662 if test "x$ac_cv_func_dlopen" = xyes; then :
10663   lt_cv_dlopen="dlopen"
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10667 if ${ac_cv_lib_dl_dlopen+:} false; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldl  $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h.  */
10674
10675 /* Override any GCC internal prototype to avoid an error.
10676    Use char because int might match the return type of a GCC
10677    builtin and then its argument prototype would still apply.  */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char dlopen ();
10682 int
10683 main ()
10684 {
10685 return dlopen ();
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691   ac_cv_lib_dl_dlopen=yes
10692 else
10693   ac_cv_lib_dl_dlopen=no
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext \
10696     conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10703 else
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10706 if ${ac_cv_lib_svld_dlopen+:} false; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-lsvld  $LIBS"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char dlopen ();
10721 int
10722 main ()
10723 {
10724 return dlopen ();
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"; then :
10730   ac_cv_lib_svld_dlopen=yes
10731 else
10732   ac_cv_lib_svld_dlopen=no
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735     conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10737 fi
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10740 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10745 if ${ac_cv_lib_dld_dld_link+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-ldld  $LIBS"
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char dld_link ();
10760 int
10761 main ()
10762 {
10763 return dld_link ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769   ac_cv_lib_dld_dld_link=yes
10770 else
10771   ac_cv_lib_dld_dld_link=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774     conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10779 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10780   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10781 fi
10782
10783
10784 fi
10785
10786
10787 fi
10788
10789
10790 fi
10791
10792
10793 fi
10794
10795
10796 fi
10797
10798     ;;
10799   esac
10800
10801   if test "x$lt_cv_dlopen" != xno; then
10802     enable_dlopen=yes
10803   else
10804     enable_dlopen=no
10805   fi
10806
10807   case $lt_cv_dlopen in
10808   dlopen)
10809     save_CPPFLAGS="$CPPFLAGS"
10810     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10811
10812     save_LDFLAGS="$LDFLAGS"
10813     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10814
10815     save_LIBS="$LIBS"
10816     LIBS="$lt_cv_dlopen_libs $LIBS"
10817
10818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10820 if ${lt_cv_dlopen_self+:} false; then :
10821   $as_echo_n "(cached) " >&6
10822 else
10823           if test "$cross_compiling" = yes; then :
10824   lt_cv_dlopen_self=cross
10825 else
10826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827   lt_status=$lt_dlunknown
10828   cat > conftest.$ac_ext <<_LT_EOF
10829 #line $LINENO "configure"
10830 #include "confdefs.h"
10831
10832 #if HAVE_DLFCN_H
10833 #include <dlfcn.h>
10834 #endif
10835
10836 #include <stdio.h>
10837
10838 #ifdef RTLD_GLOBAL
10839 #  define LT_DLGLOBAL           RTLD_GLOBAL
10840 #else
10841 #  ifdef DL_GLOBAL
10842 #    define LT_DLGLOBAL         DL_GLOBAL
10843 #  else
10844 #    define LT_DLGLOBAL         0
10845 #  endif
10846 #endif
10847
10848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849    find out it does not work in some platform. */
10850 #ifndef LT_DLLAZY_OR_NOW
10851 #  ifdef RTLD_LAZY
10852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10853 #  else
10854 #    ifdef DL_LAZY
10855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10856 #    else
10857 #      ifdef RTLD_NOW
10858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10859 #      else
10860 #        ifdef DL_NOW
10861 #          define LT_DLLAZY_OR_NOW      DL_NOW
10862 #        else
10863 #          define LT_DLLAZY_OR_NOW      0
10864 #        endif
10865 #      endif
10866 #    endif
10867 #  endif
10868 #endif
10869
10870 /* When -fvisbility=hidden is used, assume the code has been annotated
10871    correspondingly for the symbols needed.  */
10872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10873 int fnord () __attribute__((visibility("default")));
10874 #endif
10875
10876 int fnord () { return 42; }
10877 int main ()
10878 {
10879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10880   int status = $lt_dlunknown;
10881
10882   if (self)
10883     {
10884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10885       else
10886         {
10887           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10888           else puts (dlerror ());
10889         }
10890       /* dlclose (self); */
10891     }
10892   else
10893     puts (dlerror ());
10894
10895   return status;
10896 }
10897 _LT_EOF
10898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10899   (eval $ac_link) 2>&5
10900   ac_status=$?
10901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10903     (./conftest; exit; ) >&5 2>/dev/null
10904     lt_status=$?
10905     case x$lt_status in
10906       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10907       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10908       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10909     esac
10910   else :
10911     # compilation failed
10912     lt_cv_dlopen_self=no
10913   fi
10914 fi
10915 rm -fr conftest*
10916
10917
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10920 $as_echo "$lt_cv_dlopen_self" >&6; }
10921
10922     if test "x$lt_cv_dlopen_self" = xyes; then
10923       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self_static+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929           if test "$cross_compiling" = yes; then :
10930   lt_cv_dlopen_self_static=cross
10931 else
10932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933   lt_status=$lt_dlunknown
10934   cat > conftest.$ac_ext <<_LT_EOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10937
10938 #if HAVE_DLFCN_H
10939 #include <dlfcn.h>
10940 #endif
10941
10942 #include <stdio.h>
10943
10944 #ifdef RTLD_GLOBAL
10945 #  define LT_DLGLOBAL           RTLD_GLOBAL
10946 #else
10947 #  ifdef DL_GLOBAL
10948 #    define LT_DLGLOBAL         DL_GLOBAL
10949 #  else
10950 #    define LT_DLGLOBAL         0
10951 #  endif
10952 #endif
10953
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955    find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10957 #  ifdef RTLD_LAZY
10958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10959 #  else
10960 #    ifdef DL_LAZY
10961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10962 #    else
10963 #      ifdef RTLD_NOW
10964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10965 #      else
10966 #        ifdef DL_NOW
10967 #          define LT_DLLAZY_OR_NOW      DL_NOW
10968 #        else
10969 #          define LT_DLLAZY_OR_NOW      0
10970 #        endif
10971 #      endif
10972 #    endif
10973 #  endif
10974 #endif
10975
10976 /* When -fvisbility=hidden is used, assume the code has been annotated
10977    correspondingly for the symbols needed.  */
10978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 int fnord () __attribute__((visibility("default")));
10980 #endif
10981
10982 int fnord () { return 42; }
10983 int main ()
10984 {
10985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986   int status = $lt_dlunknown;
10987
10988   if (self)
10989     {
10990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10991       else
10992         {
10993           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10994           else puts (dlerror ());
10995         }
10996       /* dlclose (self); */
10997     }
10998   else
10999     puts (dlerror ());
11000
11001   return status;
11002 }
11003 _LT_EOF
11004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005   (eval $ac_link) 2>&5
11006   ac_status=$?
11007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11009     (./conftest; exit; ) >&5 2>/dev/null
11010     lt_status=$?
11011     case x$lt_status in
11012       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11013       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11014       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11015     esac
11016   else :
11017     # compilation failed
11018     lt_cv_dlopen_self_static=no
11019   fi
11020 fi
11021 rm -fr conftest*
11022
11023
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11027     fi
11028
11029     CPPFLAGS="$save_CPPFLAGS"
11030     LDFLAGS="$save_LDFLAGS"
11031     LIBS="$save_LIBS"
11032     ;;
11033   esac
11034
11035   case $lt_cv_dlopen_self in
11036   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11037   *) enable_dlopen_self=unknown ;;
11038   esac
11039
11040   case $lt_cv_dlopen_self_static in
11041   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11042   *) enable_dlopen_self_static=unknown ;;
11043   esac
11044 fi
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 striplib=
11063 old_striplib=
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11067   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11068   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; }
11071 else
11072 # FIXME - insert some real tests, host_os isn't really good enough
11073   case $host_os in
11074   darwin*)
11075     if test -n "$STRIP" ; then
11076       striplib="$STRIP -x"
11077       old_striplib="$STRIP -S"
11078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 $as_echo "yes" >&6; }
11080     else
11081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083     fi
11084     ;;
11085   *)
11086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11088     ;;
11089   esac
11090 fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103   # Report which library types will actually be built
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11107 $as_echo "$can_build_shared" >&6; }
11108
11109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11110 $as_echo_n "checking whether to build shared libraries... " >&6; }
11111   test "$can_build_shared" = "no" && enable_shared=no
11112
11113   # On AIX, shared libraries and static libraries use the same namespace, and
11114   # are all built from PIC.
11115   case $host_os in
11116   aix3*)
11117     test "$enable_shared" = yes && enable_static=no
11118     if test -n "$RANLIB"; then
11119       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11120       postinstall_cmds='$RANLIB $lib'
11121     fi
11122     ;;
11123
11124   aix[4-9]*)
11125     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11126       test "$enable_shared" = yes && enable_static=no
11127     fi
11128     ;;
11129   esac
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11131 $as_echo "$enable_shared" >&6; }
11132
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11134 $as_echo_n "checking whether to build static libraries... " >&6; }
11135   # Make sure either enable_shared or enable_static is yes.
11136   test "$enable_shared" = yes || enable_static=yes
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11138 $as_echo "$enable_static" >&6; }
11139
11140
11141
11142
11143 fi
11144 ac_ext=c
11145 ac_cpp='$CPP $CPPFLAGS'
11146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11149
11150 CC="$lt_save_CC"
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166         ac_config_commands="$ac_config_commands libtool"
11167
11168
11169
11170
11171 # Only expand once:
11172
11173
11174
11175
11176 STATIC=
11177 test "X$enable_static" = Xyes && STATIC=-static
11178
11179
11180 case $lt_cv_sys_global_symbol_pipe in
11181   ?*) binary_helldl=yes ;;
11182 esac
11183  if test "X$binary_helldl" = Xyes; then
11184   BINARY_HELLDL_TRUE=
11185   BINARY_HELLDL_FALSE='#'
11186 else
11187   BINARY_HELLDL_TRUE='#'
11188   BINARY_HELLDL_FALSE=
11189 fi
11190
11191
11192
11193 ## ---------------------------- ##
11194 ## Libraries required by pdemo. ##
11195 ## ---------------------------- ##
11196 LIBM=
11197 case $host in
11198 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11199   # These system don't have libm, or don't need it
11200   ;;
11201 *-ncr-sysv4.3*)
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11203 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11204 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-lmw  $LIBS"
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h.  */
11211
11212 /* Override any GCC internal prototype to avoid an error.
11213    Use char because int might match the return type of a GCC
11214    builtin and then its argument prototype would still apply.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 char _mwvalidcheckl ();
11219 int
11220 main ()
11221 {
11222 return _mwvalidcheckl ();
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_link "$LINENO"; then :
11228   ac_cv_lib_mw__mwvalidcheckl=yes
11229 else
11230   ac_cv_lib_mw__mwvalidcheckl=no
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233     conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11237 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11238 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11239   LIBM="-lmw"
11240 fi
11241
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11243 $as_echo_n "checking for cos in -lm... " >&6; }
11244 if ${ac_cv_lib_m_cos+:} false; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-lm  $LIBS"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h.  */
11251
11252 /* Override any GCC internal prototype to avoid an error.
11253    Use char because int might match the return type of a GCC
11254    builtin and then its argument prototype would still apply.  */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char cos ();
11259 int
11260 main ()
11261 {
11262 return cos ();
11263   ;
11264   return 0;
11265 }
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268   ac_cv_lib_m_cos=yes
11269 else
11270   ac_cv_lib_m_cos=no
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext \
11273     conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11275 fi
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11277 $as_echo "$ac_cv_lib_m_cos" >&6; }
11278 if test "x$ac_cv_lib_m_cos" = xyes; then :
11279   LIBM="$LIBM -lm"
11280 fi
11281
11282   ;;
11283 *)
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11285 $as_echo_n "checking for cos in -lm... " >&6; }
11286 if ${ac_cv_lib_m_cos+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-lm  $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char cos ();
11301 int
11302 main ()
11303 {
11304 return cos ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310   ac_cv_lib_m_cos=yes
11311 else
11312   ac_cv_lib_m_cos=no
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315     conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11319 $as_echo "$ac_cv_lib_m_cos" >&6; }
11320 if test "x$ac_cv_lib_m_cos" = xyes; then :
11321   LIBM="-lm"
11322 fi
11323
11324   ;;
11325 esac
11326
11327
11328
11329
11330 ## -------- ##
11331 ## Outputs. ##
11332 ## -------- ##
11333 ac_config_files="$ac_config_files Makefile"
11334
11335 cat >confcache <<\_ACEOF
11336 # This file is a shell script that caches the results of configure
11337 # tests run on this system so they can be shared between configure
11338 # scripts and configure runs, see configure's option --config-cache.
11339 # It is not useful on other systems.  If it contains results you don't
11340 # want to keep, you may remove or edit it.
11341 #
11342 # config.status only pays attention to the cache file if you give it
11343 # the --recheck option to rerun configure.
11344 #
11345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11347 # following values.
11348
11349 _ACEOF
11350
11351 # The following way of writing the cache mishandles newlines in values,
11352 # but we know of no workaround that is simple, portable, and efficient.
11353 # So, we kill variables containing newlines.
11354 # Ultrix sh set writes to stderr and can't be redirected directly,
11355 # and sets the high bit in the cache file unless we assign to the vars.
11356 (
11357   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11358     eval ac_val=\$$ac_var
11359     case $ac_val in #(
11360     *${as_nl}*)
11361       case $ac_var in #(
11362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11364       esac
11365       case $ac_var in #(
11366       _ | IFS | as_nl) ;; #(
11367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11368       *) { eval $ac_var=; unset $ac_var;} ;;
11369       esac ;;
11370     esac
11371   done
11372
11373   (set) 2>&1 |
11374     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11375     *${as_nl}ac_space=\ *)
11376       # `set' does not quote correctly, so add quotes: double-quote
11377       # substitution turns \\\\ into \\, and sed turns \\ into \.
11378       sed -n \
11379         "s/'/'\\\\''/g;
11380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11381       ;; #(
11382     *)
11383       # `set' quotes correctly as required by POSIX, so do not add quotes.
11384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11385       ;;
11386     esac |
11387     sort
11388 ) |
11389   sed '
11390      /^ac_cv_env_/b end
11391      t clear
11392      :clear
11393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11394      t end
11395      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11396      :end' >>confcache
11397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11398   if test -w "$cache_file"; then
11399     if test "x$cache_file" != "x/dev/null"; then
11400       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11401 $as_echo "$as_me: updating cache $cache_file" >&6;}
11402       if test ! -f "$cache_file" || test -h "$cache_file"; then
11403         cat confcache >"$cache_file"
11404       else
11405         case $cache_file in #(
11406         */* | ?:*)
11407           mv -f confcache "$cache_file"$$ &&
11408           mv -f "$cache_file"$$ "$cache_file" ;; #(
11409         *)
11410           mv -f confcache "$cache_file" ;;
11411         esac
11412       fi
11413     fi
11414   else
11415     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11417   fi
11418 fi
11419 rm -f confcache
11420
11421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11422 # Let make expand exec_prefix.
11423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11424
11425 # Transform confdefs.h into DEFS.
11426 # Protect against shell expansion while executing Makefile rules.
11427 # Protect against Makefile macro expansion.
11428 #
11429 # If the first sed substitution is executed (which looks for macros that
11430 # take arguments), then branch to the quote section.  Otherwise,
11431 # look for a macro that doesn't take arguments.
11432 ac_script='
11433 :mline
11434 /\\$/{
11435  N
11436  s,\\\n,,
11437  b mline
11438 }
11439 t clear
11440 :clear
11441 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11442 t quote
11443 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11444 t quote
11445 b any
11446 :quote
11447 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11448 s/\[/\\&/g
11449 s/\]/\\&/g
11450 s/\$/$$/g
11451 H
11452 :any
11453 ${
11454         g
11455         s/^\n//
11456         s/\n/ /g
11457         p
11458 }
11459 '
11460 DEFS=`sed -n "$ac_script" confdefs.h`
11461
11462
11463 ac_libobjs=
11464 ac_ltlibobjs=
11465 U=
11466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11467   # 1. Remove the extension, and $U if already installed.
11468   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11469   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11470   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11471   #    will be set to the directory where LIBOBJS objects are built.
11472   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11473   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11474 done
11475 LIBOBJS=$ac_libobjs
11476
11477 LTLIBOBJS=$ac_ltlibobjs
11478
11479
11480  if test -n "$EXEEXT"; then
11481   am__EXEEXT_TRUE=
11482   am__EXEEXT_FALSE='#'
11483 else
11484   am__EXEEXT_TRUE='#'
11485   am__EXEEXT_FALSE=
11486 fi
11487
11488 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11489   as_fn_error $? "conditional \"AMDEP\" was never defined.
11490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11491 fi
11492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11493   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11495 fi
11496 if test -z "${BINARY_HELLDL_TRUE}" && test -z "${BINARY_HELLDL_FALSE}"; then
11497   as_fn_error $? "conditional \"BINARY_HELLDL\" was never defined.
11498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11499 fi
11500
11501 : "${CONFIG_STATUS=./config.status}"
11502 ac_write_fail=0
11503 ac_clean_files_save=$ac_clean_files
11504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11506 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11507 as_write_fail=0
11508 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11509 #! $SHELL
11510 # Generated by $as_me.
11511 # Run this file to recreate the current configuration.
11512 # Compiler output produced by configure, useful for debugging
11513 # configure, is in config.log if it exists.
11514
11515 debug=false
11516 ac_cs_recheck=false
11517 ac_cs_silent=false
11518
11519 SHELL=\${CONFIG_SHELL-$SHELL}
11520 export SHELL
11521 _ASEOF
11522 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11523 ## -------------------- ##
11524 ## M4sh Initialization. ##
11525 ## -------------------- ##
11526
11527 # Be more Bourne compatible
11528 DUALCASE=1; export DUALCASE # for MKS sh
11529 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11530   emulate sh
11531   NULLCMD=:
11532   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11533   # is contrary to our usage.  Disable this feature.
11534   alias -g '${1+"$@"}'='"$@"'
11535   setopt NO_GLOB_SUBST
11536 else
11537   case `(set -o) 2>/dev/null` in #(
11538   *posix*) :
11539     set -o posix ;; #(
11540   *) :
11541      ;;
11542 esac
11543 fi
11544
11545
11546 as_nl='
11547 '
11548 export as_nl
11549 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11550 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11553 # Prefer a ksh shell builtin over an external printf program on Solaris,
11554 # but without wasting forks for bash or zsh.
11555 if test -z "$BASH_VERSION$ZSH_VERSION" \
11556     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11557   as_echo='print -r --'
11558   as_echo_n='print -rn --'
11559 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11560   as_echo='printf %s\n'
11561   as_echo_n='printf %s'
11562 else
11563   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11564     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11565     as_echo_n='/usr/ucb/echo -n'
11566   else
11567     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11568     as_echo_n_body='eval
11569       arg=$1;
11570       case $arg in #(
11571       *"$as_nl"*)
11572         expr "X$arg" : "X\\(.*\\)$as_nl";
11573         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11574       esac;
11575       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11576     '
11577     export as_echo_n_body
11578     as_echo_n='sh -c $as_echo_n_body as_echo'
11579   fi
11580   export as_echo_body
11581   as_echo='sh -c $as_echo_body as_echo'
11582 fi
11583
11584 # The user is always right.
11585 if test "${PATH_SEPARATOR+set}" != set; then
11586   PATH_SEPARATOR=:
11587   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11588     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11589       PATH_SEPARATOR=';'
11590   }
11591 fi
11592
11593
11594 # IFS
11595 # We need space, tab and new line, in precisely that order.  Quoting is
11596 # there to prevent editors from complaining about space-tab.
11597 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11598 # splitting by setting IFS to empty value.)
11599 IFS=" ""        $as_nl"
11600
11601 # Find who we are.  Look in the path if we contain no directory separator.
11602 as_myself=
11603 case $0 in #((
11604   *[\\/]* ) as_myself=$0 ;;
11605   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608   IFS=$as_save_IFS
11609   test -z "$as_dir" && as_dir=.
11610     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11611   done
11612 IFS=$as_save_IFS
11613
11614      ;;
11615 esac
11616 # We did not find ourselves, most probably we were run as `sh COMMAND'
11617 # in which case we are not to be found in the path.
11618 if test "x$as_myself" = x; then
11619   as_myself=$0
11620 fi
11621 if test ! -f "$as_myself"; then
11622   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11623   exit 1
11624 fi
11625
11626 # Unset variables that we do not need and which cause bugs (e.g. in
11627 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11628 # suppresses any "Segmentation fault" message there.  '((' could
11629 # trigger a bug in pdksh 5.2.14.
11630 for as_var in BASH_ENV ENV MAIL MAILPATH
11631 do eval test x\${$as_var+set} = xset \
11632   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11633 done
11634 PS1='$ '
11635 PS2='> '
11636 PS4='+ '
11637
11638 # NLS nuisances.
11639 LC_ALL=C
11640 export LC_ALL
11641 LANGUAGE=C
11642 export LANGUAGE
11643
11644 # CDPATH.
11645 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11646
11647
11648 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11649 # ----------------------------------------
11650 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11651 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11652 # script with STATUS, using 1 if that was 0.
11653 as_fn_error ()
11654 {
11655   as_status=$1; test $as_status -eq 0 && as_status=1
11656   if test "$4"; then
11657     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11658     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11659   fi
11660   $as_echo "$as_me: error: $2" >&2
11661   as_fn_exit $as_status
11662 } # as_fn_error
11663
11664
11665 # as_fn_set_status STATUS
11666 # -----------------------
11667 # Set $? to STATUS, without forking.
11668 as_fn_set_status ()
11669 {
11670   return $1
11671 } # as_fn_set_status
11672
11673 # as_fn_exit STATUS
11674 # -----------------
11675 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11676 as_fn_exit ()
11677 {
11678   set +e
11679   as_fn_set_status $1
11680   exit $1
11681 } # as_fn_exit
11682
11683 # as_fn_unset VAR
11684 # ---------------
11685 # Portably unset VAR.
11686 as_fn_unset ()
11687 {
11688   { eval $1=; unset $1;}
11689 }
11690 as_unset=as_fn_unset
11691 # as_fn_append VAR VALUE
11692 # ----------------------
11693 # Append the text in VALUE to the end of the definition contained in VAR. Take
11694 # advantage of any shell optimizations that allow amortized linear growth over
11695 # repeated appends, instead of the typical quadratic growth present in naive
11696 # implementations.
11697 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11698   eval 'as_fn_append ()
11699   {
11700     eval $1+=\$2
11701   }'
11702 else
11703   as_fn_append ()
11704   {
11705     eval $1=\$$1\$2
11706   }
11707 fi # as_fn_append
11708
11709 # as_fn_arith ARG...
11710 # ------------------
11711 # Perform arithmetic evaluation on the ARGs, and store the result in the
11712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11713 # must be portable across $(()) and expr.
11714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11715   eval 'as_fn_arith ()
11716   {
11717     as_val=$(( $* ))
11718   }'
11719 else
11720   as_fn_arith ()
11721   {
11722     as_val=`expr "$@" || test $? -eq 1`
11723   }
11724 fi # as_fn_arith
11725
11726
11727 if expr a : '\(a\)' >/dev/null 2>&1 &&
11728    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11729   as_expr=expr
11730 else
11731   as_expr=false
11732 fi
11733
11734 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11735   as_basename=basename
11736 else
11737   as_basename=false
11738 fi
11739
11740 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11741   as_dirname=dirname
11742 else
11743   as_dirname=false
11744 fi
11745
11746 as_me=`$as_basename -- "$0" ||
11747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11748          X"$0" : 'X\(//\)$' \| \
11749          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11750 $as_echo X/"$0" |
11751     sed '/^.*\/\([^/][^/]*\)\/*$/{
11752             s//\1/
11753             q
11754           }
11755           /^X\/\(\/\/\)$/{
11756             s//\1/
11757             q
11758           }
11759           /^X\/\(\/\).*/{
11760             s//\1/
11761             q
11762           }
11763           s/.*/./; q'`
11764
11765 # Avoid depending upon Character Ranges.
11766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11769 as_cr_digits='0123456789'
11770 as_cr_alnum=$as_cr_Letters$as_cr_digits
11771
11772 ECHO_C= ECHO_N= ECHO_T=
11773 case `echo -n x` in #(((((
11774 -n*)
11775   case `echo 'xy\c'` in
11776   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11777   xy)  ECHO_C='\c';;
11778   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11779        ECHO_T=' ';;
11780   esac;;
11781 *)
11782   ECHO_N='-n';;
11783 esac
11784
11785 rm -f conf$$ conf$$.exe conf$$.file
11786 if test -d conf$$.dir; then
11787   rm -f conf$$.dir/conf$$.file
11788 else
11789   rm -f conf$$.dir
11790   mkdir conf$$.dir 2>/dev/null
11791 fi
11792 if (echo >conf$$.file) 2>/dev/null; then
11793   if ln -s conf$$.file conf$$ 2>/dev/null; then
11794     as_ln_s='ln -s'
11795     # ... but there are two gotchas:
11796     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11797     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11798     # In both cases, we have to default to `cp -p'.
11799     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11800       as_ln_s='cp -p'
11801   elif ln conf$$.file conf$$ 2>/dev/null; then
11802     as_ln_s=ln
11803   else
11804     as_ln_s='cp -p'
11805   fi
11806 else
11807   as_ln_s='cp -p'
11808 fi
11809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11810 rmdir conf$$.dir 2>/dev/null
11811
11812
11813 # as_fn_mkdir_p
11814 # -------------
11815 # Create "$as_dir" as a directory, including parents if necessary.
11816 as_fn_mkdir_p ()
11817 {
11818
11819   case $as_dir in #(
11820   -*) as_dir=./$as_dir;;
11821   esac
11822   test -d "$as_dir" || eval $as_mkdir_p || {
11823     as_dirs=
11824     while :; do
11825       case $as_dir in #(
11826       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11827       *) as_qdir=$as_dir;;
11828       esac
11829       as_dirs="'$as_qdir' $as_dirs"
11830       as_dir=`$as_dirname -- "$as_dir" ||
11831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11832          X"$as_dir" : 'X\(//\)[^/]' \| \
11833          X"$as_dir" : 'X\(//\)$' \| \
11834          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11835 $as_echo X"$as_dir" |
11836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11837             s//\1/
11838             q
11839           }
11840           /^X\(\/\/\)[^/].*/{
11841             s//\1/
11842             q
11843           }
11844           /^X\(\/\/\)$/{
11845             s//\1/
11846             q
11847           }
11848           /^X\(\/\).*/{
11849             s//\1/
11850             q
11851           }
11852           s/.*/./; q'`
11853       test -d "$as_dir" && break
11854     done
11855     test -z "$as_dirs" || eval "mkdir $as_dirs"
11856   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11857
11858
11859 } # as_fn_mkdir_p
11860 if mkdir -p . 2>/dev/null; then
11861   as_mkdir_p='mkdir -p "$as_dir"'
11862 else
11863   test -d ./-p && rmdir ./-p
11864   as_mkdir_p=false
11865 fi
11866
11867 if test -x / >/dev/null 2>&1; then
11868   as_test_x='test -x'
11869 else
11870   if ls -dL / >/dev/null 2>&1; then
11871     as_ls_L_option=L
11872   else
11873     as_ls_L_option=
11874   fi
11875   as_test_x='
11876     eval sh -c '\''
11877       if test -d "$1"; then
11878         test -d "$1/.";
11879       else
11880         case $1 in #(
11881         -*)set "./$1";;
11882         esac;
11883         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11884         ???[sx]*):;;*)false;;esac;fi
11885     '\'' sh
11886   '
11887 fi
11888 as_executable_p=$as_test_x
11889
11890 # Sed expression to map a string onto a valid CPP name.
11891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11892
11893 # Sed expression to map a string onto a valid variable name.
11894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11895
11896
11897 exec 6>&1
11898 ## ----------------------------------- ##
11899 ## Main body of $CONFIG_STATUS script. ##
11900 ## ----------------------------------- ##
11901 _ASEOF
11902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11903
11904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11905 # Save the log message, to keep $0 and so on meaningful, and to
11906 # report actual input values of CONFIG_FILES etc. instead of their
11907 # values after options handling.
11908 ac_log="
11909 This file was extended by pdemo $as_me 1.0, which was
11910 generated by GNU Autoconf 2.68.  Invocation command line was
11911
11912   CONFIG_FILES    = $CONFIG_FILES
11913   CONFIG_HEADERS  = $CONFIG_HEADERS
11914   CONFIG_LINKS    = $CONFIG_LINKS
11915   CONFIG_COMMANDS = $CONFIG_COMMANDS
11916   $ $0 $@
11917
11918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11919 "
11920
11921 _ACEOF
11922
11923 case $ac_config_files in *"
11924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11925 esac
11926
11927
11928
11929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11930 # Files that config.status was made for.
11931 config_files="$ac_config_files"
11932 config_commands="$ac_config_commands"
11933
11934 _ACEOF
11935
11936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11937 ac_cs_usage="\
11938 \`$as_me' instantiates files and other configuration actions
11939 from templates according to the current configuration.  Unless the files
11940 and actions are specified as TAGs, all are instantiated by default.
11941
11942 Usage: $0 [OPTION]... [TAG]...
11943
11944   -h, --help       print this help, then exit
11945   -V, --version    print version number and configuration settings, then exit
11946       --config     print configuration, then exit
11947   -q, --quiet, --silent
11948                    do not print progress messages
11949   -d, --debug      don't remove temporary files
11950       --recheck    update $as_me by reconfiguring in the same conditions
11951       --file=FILE[:TEMPLATE]
11952                    instantiate the configuration file FILE
11953
11954 Configuration files:
11955 $config_files
11956
11957 Configuration commands:
11958 $config_commands
11959
11960 Report bugs to <bug-libtool@gnu.org>."
11961
11962 _ACEOF
11963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11965 ac_cs_version="\\
11966 pdemo config.status 1.0
11967 configured by $0, generated by GNU Autoconf 2.68,
11968   with options \\"\$ac_cs_config\\"
11969
11970 Copyright (C) 2010 Free Software Foundation, Inc.
11971 This config.status script is free software; the Free Software Foundation
11972 gives unlimited permission to copy, distribute and modify it."
11973
11974 ac_pwd='$ac_pwd'
11975 srcdir='$srcdir'
11976 INSTALL='$INSTALL'
11977 MKDIR_P='$MKDIR_P'
11978 AWK='$AWK'
11979 test -n "\$AWK" || AWK=awk
11980 _ACEOF
11981
11982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11983 # The default lists apply if the user does not specify any file.
11984 ac_need_defaults=:
11985 while test $# != 0
11986 do
11987   case $1 in
11988   --*=?*)
11989     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11990     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11991     ac_shift=:
11992     ;;
11993   --*=)
11994     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11995     ac_optarg=
11996     ac_shift=:
11997     ;;
11998   *)
11999     ac_option=$1
12000     ac_optarg=$2
12001     ac_shift=shift
12002     ;;
12003   esac
12004
12005   case $ac_option in
12006   # Handling of the options.
12007   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12008     ac_cs_recheck=: ;;
12009   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12010     $as_echo "$ac_cs_version"; exit ;;
12011   --config | --confi | --conf | --con | --co | --c )
12012     $as_echo "$ac_cs_config"; exit ;;
12013   --debug | --debu | --deb | --de | --d | -d )
12014     debug=: ;;
12015   --file | --fil | --fi | --f )
12016     $ac_shift
12017     case $ac_optarg in
12018     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12019     '') as_fn_error $? "missing file argument" ;;
12020     esac
12021     as_fn_append CONFIG_FILES " '$ac_optarg'"
12022     ac_need_defaults=false;;
12023   --he | --h |  --help | --hel | -h )
12024     $as_echo "$ac_cs_usage"; exit ;;
12025   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12026   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12027     ac_cs_silent=: ;;
12028
12029   # This is an error.
12030   -*) as_fn_error $? "unrecognized option: \`$1'
12031 Try \`$0 --help' for more information." ;;
12032
12033   *) as_fn_append ac_config_targets " $1"
12034      ac_need_defaults=false ;;
12035
12036   esac
12037   shift
12038 done
12039
12040 ac_configure_extra_args=
12041
12042 if $ac_cs_silent; then
12043   exec 6>/dev/null
12044   ac_configure_extra_args="$ac_configure_extra_args --silent"
12045 fi
12046
12047 _ACEOF
12048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049 if \$ac_cs_recheck; then
12050   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12051   shift
12052   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12053   CONFIG_SHELL='$SHELL'
12054   export CONFIG_SHELL
12055   exec "\$@"
12056 fi
12057
12058 _ACEOF
12059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12060 exec 5>>config.log
12061 {
12062   echo
12063   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12064 ## Running $as_me. ##
12065 _ASBOX
12066   $as_echo "$ac_log"
12067 } >&5
12068
12069 _ACEOF
12070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12071 #
12072 # INIT-COMMANDS
12073 #
12074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12075
12076
12077 # The HP-UX ksh and POSIX shell print the target directory to stdout
12078 # if CDPATH is set.
12079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12080
12081 sed_quote_subst='$sed_quote_subst'
12082 double_quote_subst='$double_quote_subst'
12083 delay_variable_subst='$delay_variable_subst'
12084 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12085 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12087 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12088 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12089 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12090 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12091 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12092 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12093 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12094 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12095 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12096 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12097 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12098 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12099 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12100 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12101 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12102 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12103 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12104 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12105 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12106 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12107 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12108 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12109 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12110 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12111 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12112 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12113 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12114 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12115 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12116 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12117 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12118 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12119 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12120 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12121 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12122 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12123 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12124 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12125 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12126 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12127 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12128 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12129 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12130 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12131 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12132 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12133 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12134 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12135 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12136 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12137 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12138 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12139 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12140 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"`'
12141 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12142 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12143 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12144 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12145 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12146 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12147 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12148 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12149 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12150 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12151 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12152 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12153 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12154 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12155 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12156 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12157 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12158 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12159 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12160 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12161 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12162 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12163 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12164 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12165 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12166 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12167 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12168 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12169 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12170 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12171 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12172 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12173 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12174 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12175 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12176 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12177 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12178 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12179 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12180 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12181 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12182 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12183 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12184 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12185 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12186 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12187 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12188 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12189 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12190 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12191 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12192 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12193 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12194 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12195 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12196 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12197 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12198 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12199 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12200 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12201 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12202 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12203 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12204 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12205 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12206 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12207 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12208 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12209 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12210 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12211 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12212 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12213 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12214
12215 LTCC='$LTCC'
12216 LTCFLAGS='$LTCFLAGS'
12217 compiler='$compiler_DEFAULT'
12218
12219 # A function that is used when there is no print builtin or printf.
12220 func_fallback_echo ()
12221 {
12222   eval 'cat <<_LTECHO_EOF
12223 \$1
12224 _LTECHO_EOF'
12225 }
12226
12227 # Quote evaled strings.
12228 for var in SHELL \
12229 ECHO \
12230 PATH_SEPARATOR \
12231 SED \
12232 GREP \
12233 EGREP \
12234 FGREP \
12235 LD \
12236 NM \
12237 LN_S \
12238 lt_SP2NL \
12239 lt_NL2SP \
12240 reload_flag \
12241 OBJDUMP \
12242 deplibs_check_method \
12243 file_magic_cmd \
12244 file_magic_glob \
12245 want_nocaseglob \
12246 DLLTOOL \
12247 sharedlib_from_linklib_cmd \
12248 AR \
12249 AR_FLAGS \
12250 archiver_list_spec \
12251 STRIP \
12252 RANLIB \
12253 CC \
12254 CFLAGS \
12255 compiler \
12256 lt_cv_sys_global_symbol_pipe \
12257 lt_cv_sys_global_symbol_to_cdecl \
12258 lt_cv_sys_global_symbol_to_c_name_address \
12259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12260 nm_file_list_spec \
12261 lt_prog_compiler_no_builtin_flag \
12262 lt_prog_compiler_pic \
12263 lt_prog_compiler_wl \
12264 lt_prog_compiler_static \
12265 lt_cv_prog_compiler_c_o \
12266 need_locks \
12267 MANIFEST_TOOL \
12268 DSYMUTIL \
12269 NMEDIT \
12270 LIPO \
12271 OTOOL \
12272 OTOOL64 \
12273 shrext_cmds \
12274 export_dynamic_flag_spec \
12275 whole_archive_flag_spec \
12276 compiler_needs_object \
12277 with_gnu_ld \
12278 allow_undefined_flag \
12279 no_undefined_flag \
12280 hardcode_libdir_flag_spec \
12281 hardcode_libdir_separator \
12282 exclude_expsyms \
12283 include_expsyms \
12284 file_list_spec \
12285 variables_saved_for_relink \
12286 libname_spec \
12287 library_names_spec \
12288 soname_spec \
12289 install_override_mode \
12290 finish_eval \
12291 old_striplib \
12292 striplib; do
12293     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12294     *[\\\\\\\`\\"\\\$]*)
12295       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12296       ;;
12297     *)
12298       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12299       ;;
12300     esac
12301 done
12302
12303 # Double-quote double-evaled strings.
12304 for var in reload_cmds \
12305 old_postinstall_cmds \
12306 old_postuninstall_cmds \
12307 old_archive_cmds \
12308 extract_expsyms_cmds \
12309 old_archive_from_new_cmds \
12310 old_archive_from_expsyms_cmds \
12311 archive_cmds \
12312 archive_expsym_cmds \
12313 module_cmds \
12314 module_expsym_cmds \
12315 export_symbols_cmds \
12316 prelink_cmds \
12317 postlink_cmds \
12318 postinstall_cmds \
12319 postuninstall_cmds \
12320 finish_cmds \
12321 sys_lib_search_path_spec \
12322 sys_lib_dlsearch_path_spec; do
12323     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12324     *[\\\\\\\`\\"\\\$]*)
12325       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12326       ;;
12327     *)
12328       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12329       ;;
12330     esac
12331 done
12332
12333 ac_aux_dir='$ac_aux_dir'
12334 xsi_shell='$xsi_shell'
12335 lt_shell_append='$lt_shell_append'
12336
12337 # See if we are running on zsh, and set the options which allow our
12338 # commands through without removal of \ escapes INIT.
12339 if test -n "\${ZSH_VERSION+set}" ; then
12340    setopt NO_GLOB_SUBST
12341 fi
12342
12343
12344     PACKAGE='$PACKAGE'
12345     VERSION='$VERSION'
12346     TIMESTAMP='$TIMESTAMP'
12347     RM='$RM'
12348     ofile='$ofile'
12349
12350
12351
12352
12353 _ACEOF
12354
12355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356
12357 # Handling of arguments.
12358 for ac_config_target in $ac_config_targets
12359 do
12360   case $ac_config_target in
12361     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12362     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12363     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12364
12365   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12366   esac
12367 done
12368
12369
12370 # If the user did not use the arguments to specify the items to instantiate,
12371 # then the envvar interface is used.  Set only those that are not.
12372 # We use the long form for the default assignment because of an extremely
12373 # bizarre bug on SunOS 4.1.3.
12374 if $ac_need_defaults; then
12375   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12376   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12377 fi
12378
12379 # Have a temporary directory for convenience.  Make it in the build tree
12380 # simply because there is no reason against having it here, and in addition,
12381 # creating and moving files from /tmp can sometimes cause problems.
12382 # Hook for its removal unless debugging.
12383 # Note that there is a small window in which the directory will not be cleaned:
12384 # after its creation but before its name has been assigned to `$tmp'.
12385 $debug ||
12386 {
12387   tmp= ac_tmp=
12388   trap 'exit_status=$?
12389   : "${ac_tmp:=$tmp}"
12390   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12391 ' 0
12392   trap 'as_fn_exit 1' 1 2 13 15
12393 }
12394 # Create a (secure) tmp directory for tmp files.
12395
12396 {
12397   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12398   test -d "$tmp"
12399 }  ||
12400 {
12401   tmp=./conf$$-$RANDOM
12402   (umask 077 && mkdir "$tmp")
12403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12404 ac_tmp=$tmp
12405
12406 # Set up the scripts for CONFIG_FILES section.
12407 # No need to generate them if there are no CONFIG_FILES.
12408 # This happens for instance with `./config.status config.h'.
12409 if test -n "$CONFIG_FILES"; then
12410
12411
12412 ac_cr=`echo X | tr X '\015'`
12413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12414 # But we know of no other shell where ac_cr would be empty at this
12415 # point, so we can use a bashism as a fallback.
12416 if test "x$ac_cr" = x; then
12417   eval ac_cr=\$\'\\r\'
12418 fi
12419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12421   ac_cs_awk_cr='\\r'
12422 else
12423   ac_cs_awk_cr=$ac_cr
12424 fi
12425
12426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12427 _ACEOF
12428
12429
12430 {
12431   echo "cat >conf$$subs.awk <<_ACEOF" &&
12432   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12433   echo "_ACEOF"
12434 } >conf$$subs.sh ||
12435   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12437 ac_delim='%!_!# '
12438 for ac_last_try in false false false false false :; do
12439   . ./conf$$subs.sh ||
12440     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12441
12442   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12443   if test $ac_delim_n = $ac_delim_num; then
12444     break
12445   elif $ac_last_try; then
12446     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12447   else
12448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12449   fi
12450 done
12451 rm -f conf$$subs.sh
12452
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12455 _ACEOF
12456 sed -n '
12457 h
12458 s/^/S["/; s/!.*/"]=/
12459 p
12460 g
12461 s/^[^!]*!//
12462 :repl
12463 t repl
12464 s/'"$ac_delim"'$//
12465 t delim
12466 :nl
12467 h
12468 s/\(.\{148\}\)..*/\1/
12469 t more1
12470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12471 p
12472 n
12473 b repl
12474 :more1
12475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12476 p
12477 g
12478 s/.\{148\}//
12479 t nl
12480 :delim
12481 h
12482 s/\(.\{148\}\)..*/\1/
12483 t more2
12484 s/["\\]/\\&/g; s/^/"/; s/$/"/
12485 p
12486 b
12487 :more2
12488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12489 p
12490 g
12491 s/.\{148\}//
12492 t delim
12493 ' <conf$$subs.awk | sed '
12494 /^[^""]/{
12495   N
12496   s/\n//
12497 }
12498 ' >>$CONFIG_STATUS || ac_write_fail=1
12499 rm -f conf$$subs.awk
12500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12501 _ACAWK
12502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12503   for (key in S) S_is_set[key] = 1
12504   FS = "\a"
12505
12506 }
12507 {
12508   line = $ 0
12509   nfields = split(line, field, "@")
12510   substed = 0
12511   len = length(field[1])
12512   for (i = 2; i < nfields; i++) {
12513     key = field[i]
12514     keylen = length(key)
12515     if (S_is_set[key]) {
12516       value = S[key]
12517       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12518       len += length(value) + length(field[++i])
12519       substed = 1
12520     } else
12521       len += 1 + keylen
12522   }
12523
12524   print line
12525 }
12526
12527 _ACAWK
12528 _ACEOF
12529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12531   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12532 else
12533   cat
12534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12535   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12536 _ACEOF
12537
12538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12540 # trailing colons and then remove the whole line if VPATH becomes empty
12541 # (actually we leave an empty line to preserve line numbers).
12542 if test "x$srcdir" = x.; then
12543   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12544 h
12545 s///
12546 s/^/:/
12547 s/[      ]*$/:/
12548 s/:\$(srcdir):/:/g
12549 s/:\${srcdir}:/:/g
12550 s/:@srcdir@:/:/g
12551 s/^:*//
12552 s/:*$//
12553 x
12554 s/\(=[   ]*\).*/\1/
12555 G
12556 s/\n//
12557 s/^[^=]*=[       ]*$//
12558 }'
12559 fi
12560
12561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562 fi # test -n "$CONFIG_FILES"
12563
12564
12565 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12566 shift
12567 for ac_tag
12568 do
12569   case $ac_tag in
12570   :[FHLC]) ac_mode=$ac_tag; continue;;
12571   esac
12572   case $ac_mode$ac_tag in
12573   :[FHL]*:*);;
12574   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12575   :[FH]-) ac_tag=-:-;;
12576   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12577   esac
12578   ac_save_IFS=$IFS
12579   IFS=:
12580   set x $ac_tag
12581   IFS=$ac_save_IFS
12582   shift
12583   ac_file=$1
12584   shift
12585
12586   case $ac_mode in
12587   :L) ac_source=$1;;
12588   :[FH])
12589     ac_file_inputs=
12590     for ac_f
12591     do
12592       case $ac_f in
12593       -) ac_f="$ac_tmp/stdin";;
12594       *) # Look for the file first in the build tree, then in the source tree
12595          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12596          # because $ac_f cannot contain `:'.
12597          test -f "$ac_f" ||
12598            case $ac_f in
12599            [\\/$]*) false;;
12600            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12601            esac ||
12602            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12603       esac
12604       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12605       as_fn_append ac_file_inputs " '$ac_f'"
12606     done
12607
12608     # Let's still pretend it is `configure' which instantiates (i.e., don't
12609     # use $as_me), people would be surprised to read:
12610     #    /* config.h.  Generated by config.status.  */
12611     configure_input='Generated from '`
12612           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12613         `' by configure.'
12614     if test x"$ac_file" != x-; then
12615       configure_input="$ac_file.  $configure_input"
12616       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12617 $as_echo "$as_me: creating $ac_file" >&6;}
12618     fi
12619     # Neutralize special characters interpreted by sed in replacement strings.
12620     case $configure_input in #(
12621     *\&* | *\|* | *\\* )
12622        ac_sed_conf_input=`$as_echo "$configure_input" |
12623        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12624     *) ac_sed_conf_input=$configure_input;;
12625     esac
12626
12627     case $ac_tag in
12628     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12629       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12630     esac
12631     ;;
12632   esac
12633
12634   ac_dir=`$as_dirname -- "$ac_file" ||
12635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636          X"$ac_file" : 'X\(//\)[^/]' \| \
12637          X"$ac_file" : 'X\(//\)$' \| \
12638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12639 $as_echo X"$ac_file" |
12640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12641             s//\1/
12642             q
12643           }
12644           /^X\(\/\/\)[^/].*/{
12645             s//\1/
12646             q
12647           }
12648           /^X\(\/\/\)$/{
12649             s//\1/
12650             q
12651           }
12652           /^X\(\/\).*/{
12653             s//\1/
12654             q
12655           }
12656           s/.*/./; q'`
12657   as_dir="$ac_dir"; as_fn_mkdir_p
12658   ac_builddir=.
12659
12660 case "$ac_dir" in
12661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12662 *)
12663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12664   # A ".." for each directory in $ac_dir_suffix.
12665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12666   case $ac_top_builddir_sub in
12667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12669   esac ;;
12670 esac
12671 ac_abs_top_builddir=$ac_pwd
12672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12673 # for backward compatibility:
12674 ac_top_builddir=$ac_top_build_prefix
12675
12676 case $srcdir in
12677   .)  # We are building in place.
12678     ac_srcdir=.
12679     ac_top_srcdir=$ac_top_builddir_sub
12680     ac_abs_top_srcdir=$ac_pwd ;;
12681   [\\/]* | ?:[\\/]* )  # Absolute name.
12682     ac_srcdir=$srcdir$ac_dir_suffix;
12683     ac_top_srcdir=$srcdir
12684     ac_abs_top_srcdir=$srcdir ;;
12685   *) # Relative name.
12686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12687     ac_top_srcdir=$ac_top_build_prefix$srcdir
12688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12689 esac
12690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12691
12692
12693   case $ac_mode in
12694   :F)
12695   #
12696   # CONFIG_FILE
12697   #
12698
12699   case $INSTALL in
12700   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12701   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12702   esac
12703   ac_MKDIR_P=$MKDIR_P
12704   case $MKDIR_P in
12705   [\\/$]* | ?:[\\/]* ) ;;
12706   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12707   esac
12708 _ACEOF
12709
12710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711 # If the template does not know about datarootdir, expand it.
12712 # FIXME: This hack should be removed a few years after 2.60.
12713 ac_datarootdir_hack=; ac_datarootdir_seen=
12714 ac_sed_dataroot='
12715 /datarootdir/ {
12716   p
12717   q
12718 }
12719 /@datadir@/p
12720 /@docdir@/p
12721 /@infodir@/p
12722 /@localedir@/p
12723 /@mandir@/p'
12724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12725 *datarootdir*) ac_datarootdir_seen=yes;;
12726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12729 _ACEOF
12730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12731   ac_datarootdir_hack='
12732   s&@datadir@&$datadir&g
12733   s&@docdir@&$docdir&g
12734   s&@infodir@&$infodir&g
12735   s&@localedir@&$localedir&g
12736   s&@mandir@&$mandir&g
12737   s&\\\${datarootdir}&$datarootdir&g' ;;
12738 esac
12739 _ACEOF
12740
12741 # Neutralize VPATH when `$srcdir' = `.'.
12742 # Shell code in configure.ac might set extrasub.
12743 # FIXME: do we really want to maintain this feature?
12744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12745 ac_sed_extra="$ac_vpsub
12746 $extrasub
12747 _ACEOF
12748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749 :t
12750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12751 s|@configure_input@|$ac_sed_conf_input|;t t
12752 s&@top_builddir@&$ac_top_builddir_sub&;t t
12753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12754 s&@srcdir@&$ac_srcdir&;t t
12755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12756 s&@top_srcdir@&$ac_top_srcdir&;t t
12757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12758 s&@builddir@&$ac_builddir&;t t
12759 s&@abs_builddir@&$ac_abs_builddir&;t t
12760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12761 s&@INSTALL@&$ac_INSTALL&;t t
12762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12763 $ac_datarootdir_hack
12764 "
12765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12766   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12767
12768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12769   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12770   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12771       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12773 which seems to be undefined.  Please make sure it is defined" >&5
12774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12775 which seems to be undefined.  Please make sure it is defined" >&2;}
12776
12777   rm -f "$ac_tmp/stdin"
12778   case $ac_file in
12779   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12780   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12781   esac \
12782   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12783  ;;
12784
12785
12786   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12787 $as_echo "$as_me: executing $ac_file commands" >&6;}
12788  ;;
12789   esac
12790
12791
12792   case $ac_file$ac_mode in
12793     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12794   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12795   # are listed without --file.  Let's play safe and only enable the eval
12796   # if we detect the quoting.
12797   case $CONFIG_FILES in
12798   *\'*) eval set x "$CONFIG_FILES" ;;
12799   *)   set x $CONFIG_FILES ;;
12800   esac
12801   shift
12802   for mf
12803   do
12804     # Strip MF so we end up with the name of the file.
12805     mf=`echo "$mf" | sed -e 's/:.*$//'`
12806     # Check whether this is an Automake generated Makefile or not.
12807     # We used to match only the files named `Makefile.in', but
12808     # some people rename them; so instead we look at the file content.
12809     # Grep'ing the first line is not enough: some people post-process
12810     # each Makefile.in and add a new line on top of each file to say so.
12811     # Grep'ing the whole file is not good either: AIX grep has a line
12812     # limit of 2048, but all sed's we know have understand at least 4000.
12813     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12814       dirpart=`$as_dirname -- "$mf" ||
12815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12816          X"$mf" : 'X\(//\)[^/]' \| \
12817          X"$mf" : 'X\(//\)$' \| \
12818          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12819 $as_echo X"$mf" |
12820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12821             s//\1/
12822             q
12823           }
12824           /^X\(\/\/\)[^/].*/{
12825             s//\1/
12826             q
12827           }
12828           /^X\(\/\/\)$/{
12829             s//\1/
12830             q
12831           }
12832           /^X\(\/\).*/{
12833             s//\1/
12834             q
12835           }
12836           s/.*/./; q'`
12837     else
12838       continue
12839     fi
12840     # Extract the definition of DEPDIR, am__include, and am__quote
12841     # from the Makefile without running `make'.
12842     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12843     test -z "$DEPDIR" && continue
12844     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12845     test -z "am__include" && continue
12846     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12847     # When using ansi2knr, U may be empty or an underscore; expand it
12848     U=`sed -n 's/^U = //p' < "$mf"`
12849     # Find all dependency output files, they are included files with
12850     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12851     # simplest approach to changing $(DEPDIR) to its actual value in the
12852     # expansion.
12853     for file in `sed -n "
12854       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12855          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12856       # Make sure the directory exists.
12857       test -f "$dirpart/$file" && continue
12858       fdir=`$as_dirname -- "$file" ||
12859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860          X"$file" : 'X\(//\)[^/]' \| \
12861          X"$file" : 'X\(//\)$' \| \
12862          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12863 $as_echo X"$file" |
12864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12865             s//\1/
12866             q
12867           }
12868           /^X\(\/\/\)[^/].*/{
12869             s//\1/
12870             q
12871           }
12872           /^X\(\/\/\)$/{
12873             s//\1/
12874             q
12875           }
12876           /^X\(\/\).*/{
12877             s//\1/
12878             q
12879           }
12880           s/.*/./; q'`
12881       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12882       # echo "creating $dirpart/$file"
12883       echo '# dummy' > "$dirpart/$file"
12884     done
12885   done
12886 }
12887  ;;
12888     "libtool":C)
12889
12890     # See if we are running on zsh, and set the options which allow our
12891     # commands through without removal of \ escapes.
12892     if test -n "${ZSH_VERSION+set}" ; then
12893       setopt NO_GLOB_SUBST
12894     fi
12895
12896     cfgfile="${ofile}T"
12897     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12898     $RM "$cfgfile"
12899
12900     cat <<_LT_EOF >> "$cfgfile"
12901 #! $SHELL
12902
12903 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12904 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12906 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12907 #
12908 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12909 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12910 #                 Foundation, Inc.
12911 #   Written by Gordon Matzigkeit, 1996
12912 #
12913 #   This file is part of GNU Libtool.
12914 #
12915 # GNU Libtool is free software; you can redistribute it and/or
12916 # modify it under the terms of the GNU General Public License as
12917 # published by the Free Software Foundation; either version 2 of
12918 # the License, or (at your option) any later version.
12919 #
12920 # As a special exception to the GNU General Public License,
12921 # if you distribute this file as part of a program or library that
12922 # is built using GNU Libtool, you may include this file under the
12923 # same distribution terms that you use for the rest of that program.
12924 #
12925 # GNU Libtool is distributed in the hope that it will be useful,
12926 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12927 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12928 # GNU General Public License for more details.
12929 #
12930 # You should have received a copy of the GNU General Public License
12931 # along with GNU Libtool; see the file COPYING.  If not, a copy
12932 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12933 # obtained by writing to the Free Software Foundation, Inc.,
12934 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12935
12936
12937 # The names of the tagged configurations supported by this script.
12938 available_tags=""
12939
12940 # ### BEGIN LIBTOOL CONFIG
12941
12942 # Which release of libtool.m4 was used?
12943 macro_version=$macro_version
12944 macro_revision=$macro_revision
12945
12946 # Whether or not to build shared libraries.
12947 build_libtool_libs=$enable_shared
12948
12949 # Whether or not to build static libraries.
12950 build_old_libs=$enable_static
12951
12952 # What type of objects to build.
12953 pic_mode=$pic_mode
12954
12955 # Whether or not to optimize for fast installation.
12956 fast_install=$enable_fast_install
12957
12958 # Shell to use when invoking shell scripts.
12959 SHELL=$lt_SHELL
12960
12961 # An echo program that protects backslashes.
12962 ECHO=$lt_ECHO
12963
12964 # The PATH separator for the build system.
12965 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12966
12967 # The host system.
12968 host_alias=$host_alias
12969 host=$host
12970 host_os=$host_os
12971
12972 # The build system.
12973 build_alias=$build_alias
12974 build=$build
12975 build_os=$build_os
12976
12977 # A sed program that does not truncate output.
12978 SED=$lt_SED
12979
12980 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12981 Xsed="\$SED -e 1s/^X//"
12982
12983 # A grep program that handles long lines.
12984 GREP=$lt_GREP
12985
12986 # An ERE matcher.
12987 EGREP=$lt_EGREP
12988
12989 # A literal string matcher.
12990 FGREP=$lt_FGREP
12991
12992 # A BSD- or MS-compatible name lister.
12993 NM=$lt_NM
12994
12995 # Whether we need soft or hard links.
12996 LN_S=$lt_LN_S
12997
12998 # What is the maximum length of a command?
12999 max_cmd_len=$max_cmd_len
13000
13001 # Object file suffix (normally "o").
13002 objext=$ac_objext
13003
13004 # Executable file suffix (normally "").
13005 exeext=$exeext
13006
13007 # whether the shell understands "unset".
13008 lt_unset=$lt_unset
13009
13010 # turn spaces into newlines.
13011 SP2NL=$lt_lt_SP2NL
13012
13013 # turn newlines into spaces.
13014 NL2SP=$lt_lt_NL2SP
13015
13016 # convert \$build file names to \$host format.
13017 to_host_file_cmd=$lt_cv_to_host_file_cmd
13018
13019 # convert \$build files to toolchain format.
13020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13021
13022 # An object symbol dumper.
13023 OBJDUMP=$lt_OBJDUMP
13024
13025 # Method to check whether dependent libraries are shared objects.
13026 deplibs_check_method=$lt_deplibs_check_method
13027
13028 # Command to use when deplibs_check_method = "file_magic".
13029 file_magic_cmd=$lt_file_magic_cmd
13030
13031 # How to find potential files when deplibs_check_method = "file_magic".
13032 file_magic_glob=$lt_file_magic_glob
13033
13034 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13035 want_nocaseglob=$lt_want_nocaseglob
13036
13037 # DLL creation program.
13038 DLLTOOL=$lt_DLLTOOL
13039
13040 # Command to associate shared and link libraries.
13041 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13042
13043 # The archiver.
13044 AR=$lt_AR
13045
13046 # Flags to create an archive.
13047 AR_FLAGS=$lt_AR_FLAGS
13048
13049 # How to feed a file listing to the archiver.
13050 archiver_list_spec=$lt_archiver_list_spec
13051
13052 # A symbol stripping program.
13053 STRIP=$lt_STRIP
13054
13055 # Commands used to install an old-style archive.
13056 RANLIB=$lt_RANLIB
13057 old_postinstall_cmds=$lt_old_postinstall_cmds
13058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13059
13060 # Whether to use a lock for old archive extraction.
13061 lock_old_archive_extraction=$lock_old_archive_extraction
13062
13063 # A C compiler.
13064 LTCC=$lt_CC
13065
13066 # LTCC compiler flags.
13067 LTCFLAGS=$lt_CFLAGS
13068
13069 # Take the output of nm and produce a listing of raw symbols and C names.
13070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13071
13072 # Transform the output of nm in a proper C declaration.
13073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13074
13075 # Transform the output of nm in a C name address pair.
13076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13077
13078 # Transform the output of nm in a C name address pair when lib prefix is needed.
13079 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13080
13081 # Specify filename containing input files for \$NM.
13082 nm_file_list_spec=$lt_nm_file_list_spec
13083
13084 # The root where to search for dependent libraries,and in which our libraries should be installed.
13085 lt_sysroot=$lt_sysroot
13086
13087 # The name of the directory that contains temporary libtool files.
13088 objdir=$objdir
13089
13090 # Used to examine libraries when file_magic_cmd begins with "file".
13091 MAGIC_CMD=$MAGIC_CMD
13092
13093 # Must we lock files when doing compilation?
13094 need_locks=$lt_need_locks
13095
13096 # Manifest tool.
13097 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13098
13099 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13100 DSYMUTIL=$lt_DSYMUTIL
13101
13102 # Tool to change global to local symbols on Mac OS X.
13103 NMEDIT=$lt_NMEDIT
13104
13105 # Tool to manipulate fat objects and archives on Mac OS X.
13106 LIPO=$lt_LIPO
13107
13108 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13109 OTOOL=$lt_OTOOL
13110
13111 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13112 OTOOL64=$lt_OTOOL64
13113
13114 # Old archive suffix (normally "a").
13115 libext=$libext
13116
13117 # Shared library suffix (normally ".so").
13118 shrext_cmds=$lt_shrext_cmds
13119
13120 # The commands to extract the exported symbol list from a shared archive.
13121 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13122
13123 # Variables whose values should be saved in libtool wrapper scripts and
13124 # restored at link time.
13125 variables_saved_for_relink=$lt_variables_saved_for_relink
13126
13127 # Do we need the "lib" prefix for modules?
13128 need_lib_prefix=$need_lib_prefix
13129
13130 # Do we need a version for libraries?
13131 need_version=$need_version
13132
13133 # Library versioning type.
13134 version_type=$version_type
13135
13136 # Shared library runtime path variable.
13137 runpath_var=$runpath_var
13138
13139 # Shared library path variable.
13140 shlibpath_var=$shlibpath_var
13141
13142 # Is shlibpath searched before the hard-coded library search path?
13143 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13144
13145 # Format of library name prefix.
13146 libname_spec=$lt_libname_spec
13147
13148 # List of archive names.  First name is the real one, the rest are links.
13149 # The last name is the one that the linker finds with -lNAME
13150 library_names_spec=$lt_library_names_spec
13151
13152 # The coded name of the library, if different from the real name.
13153 soname_spec=$lt_soname_spec
13154
13155 # Permission mode override for installation of shared libraries.
13156 install_override_mode=$lt_install_override_mode
13157
13158 # Command to use after installation of a shared archive.
13159 postinstall_cmds=$lt_postinstall_cmds
13160
13161 # Command to use after uninstallation of a shared archive.
13162 postuninstall_cmds=$lt_postuninstall_cmds
13163
13164 # Commands used to finish a libtool library installation in a directory.
13165 finish_cmds=$lt_finish_cmds
13166
13167 # As "finish_cmds", except a single script fragment to be evaled but
13168 # not shown.
13169 finish_eval=$lt_finish_eval
13170
13171 # Whether we should hardcode library paths into libraries.
13172 hardcode_into_libs=$hardcode_into_libs
13173
13174 # Compile-time system search path for libraries.
13175 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13176
13177 # Run-time system search path for libraries.
13178 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13179
13180 # Whether dlopen is supported.
13181 dlopen_support=$enable_dlopen
13182
13183 # Whether dlopen of programs is supported.
13184 dlopen_self=$enable_dlopen_self
13185
13186 # Whether dlopen of statically linked programs is supported.
13187 dlopen_self_static=$enable_dlopen_self_static
13188
13189 # Commands to strip libraries.
13190 old_striplib=$lt_old_striplib
13191 striplib=$lt_striplib
13192
13193
13194 # The linker used to build libraries.
13195 LD=$lt_LD
13196
13197 # How to create reloadable object files.
13198 reload_flag=$lt_reload_flag
13199 reload_cmds=$lt_reload_cmds
13200
13201 # Commands used to build an old-style archive.
13202 old_archive_cmds=$lt_old_archive_cmds
13203
13204 # A language specific compiler.
13205 CC=$lt_compiler
13206
13207 # Is the compiler the GNU compiler?
13208 with_gcc=$GCC
13209
13210 # Compiler flag to turn off builtin functions.
13211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13212
13213 # Additional compiler flags for building library objects.
13214 pic_flag=$lt_lt_prog_compiler_pic
13215
13216 # How to pass a linker flag through the compiler.
13217 wl=$lt_lt_prog_compiler_wl
13218
13219 # Compiler flag to prevent dynamic linking.
13220 link_static_flag=$lt_lt_prog_compiler_static
13221
13222 # Does compiler simultaneously support -c and -o options?
13223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13224
13225 # Whether or not to add -lc for building shared libraries.
13226 build_libtool_need_lc=$archive_cmds_need_lc
13227
13228 # Whether or not to disallow shared libs when runtime libs are static.
13229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13230
13231 # Compiler flag to allow reflexive dlopens.
13232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13233
13234 # Compiler flag to generate shared objects directly from archives.
13235 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13236
13237 # Whether the compiler copes with passing no objects directly.
13238 compiler_needs_object=$lt_compiler_needs_object
13239
13240 # Create an old-style archive from a shared archive.
13241 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13242
13243 # Create a temporary old-style archive to link instead of a shared archive.
13244 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13245
13246 # Commands used to build a shared archive.
13247 archive_cmds=$lt_archive_cmds
13248 archive_expsym_cmds=$lt_archive_expsym_cmds
13249
13250 # Commands used to build a loadable module if different from building
13251 # a shared archive.
13252 module_cmds=$lt_module_cmds
13253 module_expsym_cmds=$lt_module_expsym_cmds
13254
13255 # Whether we are building with GNU ld or not.
13256 with_gnu_ld=$lt_with_gnu_ld
13257
13258 # Flag that allows shared libraries with undefined symbols to be built.
13259 allow_undefined_flag=$lt_allow_undefined_flag
13260
13261 # Flag that enforces no undefined symbols.
13262 no_undefined_flag=$lt_no_undefined_flag
13263
13264 # Flag to hardcode \$libdir into a binary during linking.
13265 # This must work even if \$libdir does not exist
13266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13267
13268 # Whether we need a single "-rpath" flag with a separated argument.
13269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13270
13271 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13272 # DIR into the resulting binary.
13273 hardcode_direct=$hardcode_direct
13274
13275 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13276 # DIR into the resulting binary and the resulting library dependency is
13277 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13278 # library is relocated.
13279 hardcode_direct_absolute=$hardcode_direct_absolute
13280
13281 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13282 # into the resulting binary.
13283 hardcode_minus_L=$hardcode_minus_L
13284
13285 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13286 # into the resulting binary.
13287 hardcode_shlibpath_var=$hardcode_shlibpath_var
13288
13289 # Set to "yes" if building a shared library automatically hardcodes DIR
13290 # into the library and all subsequent libraries and executables linked
13291 # against it.
13292 hardcode_automatic=$hardcode_automatic
13293
13294 # Set to yes if linker adds runtime paths of dependent libraries
13295 # to runtime path list.
13296 inherit_rpath=$inherit_rpath
13297
13298 # Whether libtool must link a program against all its dependency libraries.
13299 link_all_deplibs=$link_all_deplibs
13300
13301 # Set to "yes" if exported symbols are required.
13302 always_export_symbols=$always_export_symbols
13303
13304 # The commands to list exported symbols.
13305 export_symbols_cmds=$lt_export_symbols_cmds
13306
13307 # Symbols that should not be listed in the preloaded symbols.
13308 exclude_expsyms=$lt_exclude_expsyms
13309
13310 # Symbols that must always be exported.
13311 include_expsyms=$lt_include_expsyms
13312
13313 # Commands necessary for linking programs (against libraries) with templates.
13314 prelink_cmds=$lt_prelink_cmds
13315
13316 # Commands necessary for finishing linking programs.
13317 postlink_cmds=$lt_postlink_cmds
13318
13319 # Specify filename containing input files.
13320 file_list_spec=$lt_file_list_spec
13321
13322 # How to hardcode a shared library path into an executable.
13323 hardcode_action=$hardcode_action
13324
13325 # ### END LIBTOOL CONFIG
13326
13327 _LT_EOF
13328
13329   case $host_os in
13330   aix3*)
13331     cat <<\_LT_EOF >> "$cfgfile"
13332 # AIX sometimes has problems with the GCC collect2 program.  For some
13333 # reason, if we set the COLLECT_NAMES environment variable, the problems
13334 # vanish in a puff of smoke.
13335 if test "X${COLLECT_NAMES+set}" != Xset; then
13336   COLLECT_NAMES=
13337   export COLLECT_NAMES
13338 fi
13339 _LT_EOF
13340     ;;
13341   esac
13342
13343
13344 ltmain="$ac_aux_dir/ltmain.sh"
13345
13346
13347   # We use sed instead of cat because bash on DJGPP gets confused if
13348   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13349   # text mode, it properly converts lines to CR/LF.  This bash problem
13350   # is reportedly fixed, but why not run on old versions too?
13351   sed '$q' "$ltmain" >> "$cfgfile" \
13352      || (rm -f "$cfgfile"; exit 1)
13353
13354   if test x"$xsi_shell" = xyes; then
13355   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13356 func_dirname ()\
13357 {\
13358 \    case ${1} in\
13359 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13360 \      *  ) func_dirname_result="${3}" ;;\
13361 \    esac\
13362 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13363   && mv -f "$cfgfile.tmp" "$cfgfile" \
13364     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13365 test 0 -eq $? || _lt_function_replace_fail=:
13366
13367
13368   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13369 func_basename ()\
13370 {\
13371 \    func_basename_result="${1##*/}"\
13372 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13373   && mv -f "$cfgfile.tmp" "$cfgfile" \
13374     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13375 test 0 -eq $? || _lt_function_replace_fail=:
13376
13377
13378   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13379 func_dirname_and_basename ()\
13380 {\
13381 \    case ${1} in\
13382 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13383 \      *  ) func_dirname_result="${3}" ;;\
13384 \    esac\
13385 \    func_basename_result="${1##*/}"\
13386 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13387   && mv -f "$cfgfile.tmp" "$cfgfile" \
13388     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13389 test 0 -eq $? || _lt_function_replace_fail=:
13390
13391
13392   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13393 func_stripname ()\
13394 {\
13395 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13396 \    # positional parameters, so assign one to ordinary parameter first.\
13397 \    func_stripname_result=${3}\
13398 \    func_stripname_result=${func_stripname_result#"${1}"}\
13399 \    func_stripname_result=${func_stripname_result%"${2}"}\
13400 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13401   && mv -f "$cfgfile.tmp" "$cfgfile" \
13402     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13403 test 0 -eq $? || _lt_function_replace_fail=:
13404
13405
13406   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13407 func_split_long_opt ()\
13408 {\
13409 \    func_split_long_opt_name=${1%%=*}\
13410 \    func_split_long_opt_arg=${1#*=}\
13411 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13412   && mv -f "$cfgfile.tmp" "$cfgfile" \
13413     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13414 test 0 -eq $? || _lt_function_replace_fail=:
13415
13416
13417   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13418 func_split_short_opt ()\
13419 {\
13420 \    func_split_short_opt_arg=${1#??}\
13421 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13422 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13423   && mv -f "$cfgfile.tmp" "$cfgfile" \
13424     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13425 test 0 -eq $? || _lt_function_replace_fail=:
13426
13427
13428   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13429 func_lo2o ()\
13430 {\
13431 \    case ${1} in\
13432 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13433 \      *)    func_lo2o_result=${1} ;;\
13434 \    esac\
13435 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13436   && mv -f "$cfgfile.tmp" "$cfgfile" \
13437     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13438 test 0 -eq $? || _lt_function_replace_fail=:
13439
13440
13441   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13442 func_xform ()\
13443 {\
13444     func_xform_result=${1%.*}.lo\
13445 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13446   && mv -f "$cfgfile.tmp" "$cfgfile" \
13447     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13448 test 0 -eq $? || _lt_function_replace_fail=:
13449
13450
13451   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13452 func_arith ()\
13453 {\
13454     func_arith_result=$(( $* ))\
13455 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13456   && mv -f "$cfgfile.tmp" "$cfgfile" \
13457     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13458 test 0 -eq $? || _lt_function_replace_fail=:
13459
13460
13461   sed -e '/^func_len ()$/,/^} # func_len /c\
13462 func_len ()\
13463 {\
13464     func_len_result=${#1}\
13465 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13466   && mv -f "$cfgfile.tmp" "$cfgfile" \
13467     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13468 test 0 -eq $? || _lt_function_replace_fail=:
13469
13470 fi
13471
13472 if test x"$lt_shell_append" = xyes; then
13473   sed -e '/^func_append ()$/,/^} # func_append /c\
13474 func_append ()\
13475 {\
13476     eval "${1}+=\\${2}"\
13477 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13478   && mv -f "$cfgfile.tmp" "$cfgfile" \
13479     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13480 test 0 -eq $? || _lt_function_replace_fail=:
13481
13482
13483   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13484 func_append_quoted ()\
13485 {\
13486 \    func_quote_for_eval "${2}"\
13487 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13488 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13489   && mv -f "$cfgfile.tmp" "$cfgfile" \
13490     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13491 test 0 -eq $? || _lt_function_replace_fail=:
13492
13493
13494   # Save a `func_append' function call where possible by direct use of '+='
13495   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13496     && mv -f "$cfgfile.tmp" "$cfgfile" \
13497       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13498   test 0 -eq $? || _lt_function_replace_fail=:
13499 else
13500   # Save a `func_append' function call even when '+=' is not available
13501   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13502     && mv -f "$cfgfile.tmp" "$cfgfile" \
13503       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13504   test 0 -eq $? || _lt_function_replace_fail=:
13505 fi
13506
13507 if test x"$_lt_function_replace_fail" = x":"; then
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13509 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13510 fi
13511
13512
13513    mv -f "$cfgfile" "$ofile" ||
13514     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13515   chmod +x "$ofile"
13516
13517  ;;
13518
13519   esac
13520 done # for ac_tag
13521
13522
13523 as_fn_exit 0
13524 _ACEOF
13525 ac_clean_files=$ac_clean_files_save
13526
13527 test $ac_write_fail = 0 ||
13528   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13529
13530
13531 # configure is writing to config.log, and then calls config.status.
13532 # config.status does its own redirection, appending to config.log.
13533 # Unfortunately, on DOS this fails, as config.log is still kept open
13534 # by configure, so config.status won't be able to write to it; its
13535 # output is simply discarded.  So we exec the FD to /dev/null,
13536 # effectively closing config.log, so it can be properly (re)opened and
13537 # appended to by config.status.  When coming back to configure, we
13538 # need to make the FD available again.
13539 if test "$no_create" != yes; then
13540   ac_cs_success=:
13541   ac_config_status_args=
13542   test "$silent" = yes &&
13543     ac_config_status_args="$ac_config_status_args --quiet"
13544   exec 5>/dev/null
13545   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13546   exec 5>>config.log
13547   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13548   # would make configure fail if this is the last instruction.
13549   $ac_cs_success || as_fn_exit 1
13550 fi
13551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13554 fi
13555