packaging files
[platform/upstream/attr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="include/attributes.h"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 ALLOCA
636 libdirsuffix
637 have_zipped_manpages
638 rpmbuild
639 RPMBUILD
640 rpm_version
641 rpm
642 RPM
643 xgettext
644 XGETTEXT
645 msgmerge
646 MSGMERGE
647 msgfmt
648 MSGFMT
649 sort
650 SORT
651 echo
652 ECHO
653 sed
654 awk
655 makedepend
656 MAKEDEPEND
657 zip
658 ZIP
659 tar
660 TAR
661 make
662 MAKE
663 cc
664 pkg_platform
665 pkg_distribution
666 pkg_group
667 pkg_user
668 malloc_lib
669 opt_build
670 debug_build
671 pkg_release
672 pkg_version
673 pkg_name
674 enable_lib64
675 enable_gettext
676 enable_shared
677 CPP
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 AWK
685 RANLIB
686 STRIP
687 ac_ct_AR
688 AR
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LIBTOOL
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_gettext
765 enable_lib64
766 '
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *=)   ac_optarg= ;;
840   *)    ac_optarg=yes ;;
841   esac
842
843   # Accept the important Cygnus configure options, so we can diagnose typos.
844
845   case $ac_dashdash$ac_option in
846   --)
847     ac_dashdash=yes ;;
848
849   -bindir | --bindir | --bindi | --bind | --bin | --bi)
850     ac_prev=bindir ;;
851   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852     bindir=$ac_optarg ;;
853
854   -build | --build | --buil | --bui | --bu)
855     ac_prev=build_alias ;;
856   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857     build_alias=$ac_optarg ;;
858
859   -cache-file | --cache-file | --cache-fil | --cache-fi \
860   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861     ac_prev=cache_file ;;
862   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864     cache_file=$ac_optarg ;;
865
866   --config-cache | -C)
867     cache_file=config.cache ;;
868
869   -datadir | --datadir | --datadi | --datad)
870     ac_prev=datadir ;;
871   -datadir=* | --datadir=* | --datadi=* | --datad=*)
872     datadir=$ac_optarg ;;
873
874   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875   | --dataroo | --dataro | --datar)
876     ac_prev=datarootdir ;;
877   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879     datarootdir=$ac_optarg ;;
880
881   -disable-* | --disable-*)
882     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885       as_fn_error $? "invalid feature name: $ac_useropt"
886     ac_useropt_orig=$ac_useropt
887     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888     case $ac_user_opts in
889       *"
890 "enable_$ac_useropt"
891 "*) ;;
892       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893          ac_unrecognized_sep=', ';;
894     esac
895     eval enable_$ac_useropt=no ;;
896
897   -docdir | --docdir | --docdi | --doc | --do)
898     ac_prev=docdir ;;
899   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900     docdir=$ac_optarg ;;
901
902   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903     ac_prev=dvidir ;;
904   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905     dvidir=$ac_optarg ;;
906
907   -enable-* | --enable-*)
908     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909     # Reject names that are not valid shell variable names.
910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911       as_fn_error $? "invalid feature name: $ac_useropt"
912     ac_useropt_orig=$ac_useropt
913     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914     case $ac_user_opts in
915       *"
916 "enable_$ac_useropt"
917 "*) ;;
918       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919          ac_unrecognized_sep=', ';;
920     esac
921     eval enable_$ac_useropt=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       as_fn_error $? "invalid package name: $ac_useropt"
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval with_$ac_useropt=\$ac_optarg ;;
1126
1127   -without-* | --without-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=no ;;
1142
1143   --x)
1144     # Obsolete; use --with-x.
1145     with_x=yes ;;
1146
1147   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148   | --x-incl | --x-inc | --x-in | --x-i)
1149     ac_prev=x_includes ;;
1150   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152     x_includes=$ac_optarg ;;
1153
1154   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156     ac_prev=x_libraries ;;
1157   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159     x_libraries=$ac_optarg ;;
1160
1161   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163     ;;
1164
1165   *=*)
1166     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167     # Reject names that are not valid shell variable names.
1168     case $ac_envvar in #(
1169       '' | [0-9]* | *[!_$as_cr_alnum]* )
1170       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171     esac
1172     eval $ac_envvar=\$ac_optarg
1173     export $ac_envvar ;;
1174
1175   *)
1176     # FIXME: should be removed in autoconf 3.0.
1177     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181     ;;
1182
1183   esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188   as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192   case $enable_option_checking in
1193     no) ;;
1194     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196   esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201                 datadir sysconfdir sharedstatedir localstatedir includedir \
1202                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203                 libdir localedir mandir
1204 do
1205   eval ac_val=\$$ac_var
1206   # Remove trailing slashes.
1207   case $ac_val in
1208     */ )
1209       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210       eval $ac_var=\$ac_val;;
1211   esac
1212   # Be sure to have absolute directory names.
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures this package to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking ...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380
1381   cat <<\_ACEOF
1382
1383 Optional Features:
1384   --disable-option-checking  ignore unrecognized --enable/--with options
1385   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387   --enable-shared[=PKGS]  build shared libraries [default=yes]
1388   --enable-static[=PKGS]  build static libraries [default=yes]
1389   --enable-fast-install[=PKGS]
1390                           optimize for fast installation [default=yes]
1391   --disable-libtool-lock  avoid locking (might break parallel builds)
1392  --enable-shared=yes/no Enable use of shared libraries default=yes
1393  --enable-gettext=yes/no Enable alternate language support default=yes
1394  --enable-lib64=yes/no Enable lib64 support default=no
1395
1396 Optional Packages:
1397   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1400                           both]
1401   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402   --with-sysroot=DIR Search for dependent libraries within DIR
1403                         (or the compiler's sysroot if not specified).
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CPP         C preprocessor
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to the package provider.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424   # If there are subdirs, report their specific --help.
1425   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426     test -d "$ac_dir" ||
1427       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428       continue
1429     ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435   # A ".." for each directory in $ac_dir_suffix.
1436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437   case $ac_top_builddir_sub in
1438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440   esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448   .)  # We are building in place.
1449     ac_srcdir=.
1450     ac_top_srcdir=$ac_top_builddir_sub
1451     ac_abs_top_srcdir=$ac_pwd ;;
1452   [\\/]* | ?:[\\/]* )  # Absolute name.
1453     ac_srcdir=$srcdir$ac_dir_suffix;
1454     ac_top_srcdir=$srcdir
1455     ac_abs_top_srcdir=$srcdir ;;
1456   *) # Relative name.
1457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458     ac_top_srcdir=$ac_top_build_prefix$srcdir
1459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463     cd "$ac_dir" || { ac_status=$?; continue; }
1464     # Check for guested configure.
1465     if test -f "$ac_srcdir/configure.gnu"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468     elif test -f "$ac_srcdir/configure"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure" --help=recursive
1471     else
1472       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473     fi || ac_status=$?
1474     cd "$ac_pwd" || { ac_status=$?; break; }
1475   done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480   cat <<\_ACEOF
1481 configure
1482 generated by GNU Autoconf 2.69
1483
1484 Copyright (C) 2012 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488   exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501   rm -f conftest.$ac_objext
1502   if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505   *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509   (eval "$ac_compile") 2>conftest.err
1510   ac_status=$?
1511   if test -s conftest.err; then
1512     grep -v '^ *+' conftest.err >conftest.er1
1513     cat conftest.er1 >&5
1514     mv -f conftest.er1 conftest.err
1515   fi
1516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517   test $ac_status = 0; } && {
1518          test -z "$ac_c_werror_flag" ||
1519          test ! -s conftest.err
1520        } && test -s conftest.$ac_objext; then :
1521   ac_retval=0
1522 else
1523   $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526         ac_retval=1
1527 fi
1528   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529   as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_link ()
1537 {
1538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539   rm -f conftest.$ac_objext conftest$ac_exeext
1540   if { { ac_try="$ac_link"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_link") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && {
1556          test -z "$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        } && test -s conftest$ac_exeext && {
1559          test "$cross_compiling" = yes ||
1560          test -x conftest$ac_exeext
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571   # interfere with the next link command; also delete a directory that is
1572   # left behind by Apple's compiler.  We do this before executing the actions.
1573   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_link
1578
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589   $as_echo_n "(cached) " >&6
1590 else
1591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h.  */
1593 $4
1594 #include <$2>
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597   eval "$3=yes"
1598 else
1599   eval "$3=no"
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 fi
1603 eval ac_res=\$$3
1604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608 } # ac_fn_c_check_header_compile
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } > conftest.i && {
1632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640     ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_link") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665   { { case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_try") 2>&5
1672   ac_status=$?
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; }; }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: program exited with status $ac_status" >&5
1678        $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681        ac_retval=$ac_status
1682 fi
1683   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1704 #define $2 innocuous_$2
1705
1706 /* System header to define __stub macros and hopefully few prototypes,
1707     which can conflict with char $2 (); below.
1708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709     <limits.h> exists even on freestanding compilers.  */
1710
1711 #ifdef __STDC__
1712 # include <limits.h>
1713 #else
1714 # include <assert.h>
1715 #endif
1716
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720    Use char because int might match the return type of a GCC
1721    builtin and then its argument prototype would still apply.  */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 ();
1726 /* The GNU C library defines this for functions which it implements
1727     to always fail with ENOSYS.  Some functions are actually named
1728     something starting with __ and the normal name is an alias.  */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main ()
1735 {
1736 return $2 ();
1737   ;
1738   return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"; then :
1742   eval "$3=yes"
1743 else
1744   eval "$3=no"
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext \
1747     conftest$ac_exeext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_func
1755
1756 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1757 # -------------------------------------------
1758 # Tests whether TYPE exists after having included INCLUDES, setting cache
1759 # variable VAR accordingly.
1760 ac_fn_c_check_type ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   eval "$3=no"
1769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 $4
1772 int
1773 main ()
1774 {
1775 if (sizeof ($2))
1776          return 0;
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 $4
1785 int
1786 main ()
1787 {
1788 if (sizeof (($2)))
1789             return 0;
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795
1796 else
1797   eval "$3=yes"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_type
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1812
1813 It was created by $as_me, which was
1814 generated by GNU Autoconf 2.69.  Invocation command line was
1815
1816   $ $0 $@
1817
1818 _ACEOF
1819 exec 5>>config.log
1820 {
1821 cat <<_ASUNAME
1822 ## --------- ##
1823 ## Platform. ##
1824 ## --------- ##
1825
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1834
1835 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1836 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1839 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1840 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1841 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1842
1843 _ASUNAME
1844
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850     $as_echo "PATH: $as_dir"
1851   done
1852 IFS=$as_save_IFS
1853
1854 } >&5
1855
1856 cat >&5 <<_ACEOF
1857
1858
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1862
1863 _ACEOF
1864
1865
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1876 do
1877   for ac_arg
1878   do
1879     case $ac_arg in
1880     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882     | -silent | --silent | --silen | --sile | --sil)
1883       continue ;;
1884     *\'*)
1885       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     esac
1887     case $ac_pass in
1888     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889     2)
1890       as_fn_append ac_configure_args1 " '$ac_arg'"
1891       if test $ac_must_keep_next = true; then
1892         ac_must_keep_next=false # Got value, back to normal.
1893       else
1894         case $ac_arg in
1895           *=* | --config-cache | -C | -disable-* | --disable-* \
1896           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898           | -with-* | --with-* | -without-* | --without-* | --x)
1899             case "$ac_configure_args0 " in
1900               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901             esac
1902             ;;
1903           -* ) ac_must_keep_next=true ;;
1904         esac
1905       fi
1906       as_fn_append ac_configure_args " '$ac_arg'"
1907       ;;
1908     esac
1909   done
1910 done
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1913
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log.  We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920   # Save into config.log some information that might help in debugging.
1921   {
1922     echo
1923
1924     $as_echo "## ---------------- ##
1925 ## Cache variables. ##
1926 ## ---------------- ##"
1927     echo
1928     # The following way of writing the cache mishandles newlines in values,
1929 (
1930   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931     eval ac_val=\$$ac_var
1932     case $ac_val in #(
1933     *${as_nl}*)
1934       case $ac_var in #(
1935       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937       esac
1938       case $ac_var in #(
1939       _ | IFS | as_nl) ;; #(
1940       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941       *) { eval $ac_var=; unset $ac_var;} ;;
1942       esac ;;
1943     esac
1944   done
1945   (set) 2>&1 |
1946     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947     *${as_nl}ac_space=\ *)
1948       sed -n \
1949         "s/'\''/'\''\\\\'\'''\''/g;
1950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951       ;; #(
1952     *)
1953       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954       ;;
1955     esac |
1956     sort
1957 )
1958     echo
1959
1960     $as_echo "## ----------------- ##
1961 ## Output variables. ##
1962 ## ----------------- ##"
1963     echo
1964     for ac_var in $ac_subst_vars
1965     do
1966       eval ac_val=\$$ac_var
1967       case $ac_val in
1968       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969       esac
1970       $as_echo "$ac_var='\''$ac_val'\''"
1971     done | sort
1972     echo
1973
1974     if test -n "$ac_subst_files"; then
1975       $as_echo "## ------------------- ##
1976 ## File substitutions. ##
1977 ## ------------------- ##"
1978       echo
1979       for ac_var in $ac_subst_files
1980       do
1981         eval ac_val=\$$ac_var
1982         case $ac_val in
1983         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984         esac
1985         $as_echo "$ac_var='\''$ac_val'\''"
1986       done | sort
1987       echo
1988     fi
1989
1990     if test -s confdefs.h; then
1991       $as_echo "## ----------- ##
1992 ## confdefs.h. ##
1993 ## ----------- ##"
1994       echo
1995       cat confdefs.h
1996       echo
1997     fi
1998     test "$ac_signal" != 0 &&
1999       $as_echo "$as_me: caught signal $ac_signal"
2000     $as_echo "$as_me: exit $exit_status"
2001   } >&5
2002   rm -f core *.core core.conftest.* &&
2003     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004     exit $exit_status
2005 ' 0
2006 for ac_signal in 1 2 13 15; do
2007   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008 done
2009 ac_signal=0
2010
2011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2012 rm -f -r conftest* confdefs.h
2013
2014 $as_echo "/* confdefs.h */" > confdefs.h
2015
2016 # Predefined preprocessor variables.
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_NAME "$PACKAGE_NAME"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_STRING "$PACKAGE_STRING"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_URL "$PACKAGE_URL"
2040 _ACEOF
2041
2042
2043 # Let the site file select an alternate cache file if it wants to.
2044 # Prefer an explicitly selected file to automatically selected ones.
2045 ac_site_file1=NONE
2046 ac_site_file2=NONE
2047 if test -n "$CONFIG_SITE"; then
2048   # We do not want a PATH search for config.site.
2049   case $CONFIG_SITE in #((
2050     -*)  ac_site_file1=./$CONFIG_SITE;;
2051     */*) ac_site_file1=$CONFIG_SITE;;
2052     *)   ac_site_file1=./$CONFIG_SITE;;
2053   esac
2054 elif test "x$prefix" != xNONE; then
2055   ac_site_file1=$prefix/share/config.site
2056   ac_site_file2=$prefix/etc/config.site
2057 else
2058   ac_site_file1=$ac_default_prefix/share/config.site
2059   ac_site_file2=$ac_default_prefix/etc/config.site
2060 fi
2061 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2062 do
2063   test "x$ac_site_file" = xNONE && continue
2064   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2066 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2067     sed 's/^/| /' "$ac_site_file" >&5
2068     . "$ac_site_file" \
2069       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 as_fn_error $? "failed to load site script $ac_site_file
2072 See \`config.log' for more details" "$LINENO" 5; }
2073   fi
2074 done
2075
2076 if test -r "$cache_file"; then
2077   # Some versions of bash will fail to source /dev/null (special files
2078   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2079   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081 $as_echo "$as_me: loading cache $cache_file" >&6;}
2082     case $cache_file in
2083       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084       *)                      . "./$cache_file";;
2085     esac
2086   fi
2087 else
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089 $as_echo "$as_me: creating cache $cache_file" >&6;}
2090   >$cache_file
2091 fi
2092
2093 # Check that the precious variables saved in the cache have kept the same
2094 # value.
2095 ac_cache_corrupted=false
2096 for ac_var in $ac_precious_vars; do
2097   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098   eval ac_new_set=\$ac_env_${ac_var}_set
2099   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100   eval ac_new_val=\$ac_env_${ac_var}_value
2101   case $ac_old_set,$ac_new_set in
2102     set,)
2103       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105       ac_cache_corrupted=: ;;
2106     ,set)
2107       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2108 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109       ac_cache_corrupted=: ;;
2110     ,);;
2111     *)
2112       if test "x$ac_old_val" != "x$ac_new_val"; then
2113         # differences in whitespace do not lead to failure.
2114         ac_old_val_w=`echo x $ac_old_val`
2115         ac_new_val_w=`echo x $ac_new_val`
2116         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2118 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119           ac_cache_corrupted=:
2120         else
2121           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123           eval $ac_var=\$ac_old_val
2124         fi
2125         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2126 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2127         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2128 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2129       fi;;
2130   esac
2131   # Pass precious variables to config.status.
2132   if test "$ac_new_set" = set; then
2133     case $ac_new_val in
2134     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135     *) ac_arg=$ac_var=$ac_new_val ;;
2136     esac
2137     case " $ac_configure_args " in
2138       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2139       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2140     esac
2141   fi
2142 done
2143 if $ac_cache_corrupted; then
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2147 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2149 fi
2150 ## -------------------- ##
2151 ## Main body of script. ##
2152 ## -------------------- ##
2153
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161 ac_aux_dir=
2162 for ac_dir in . "$srcdir"/.; do
2163   if test -f "$ac_dir/install-sh"; then
2164     ac_aux_dir=$ac_dir
2165     ac_install_sh="$ac_aux_dir/install-sh -c"
2166     break
2167   elif test -f "$ac_dir/install.sh"; then
2168     ac_aux_dir=$ac_dir
2169     ac_install_sh="$ac_aux_dir/install.sh -c"
2170     break
2171   elif test -f "$ac_dir/shtool"; then
2172     ac_aux_dir=$ac_dir
2173     ac_install_sh="$ac_aux_dir/shtool install -c"
2174     break
2175   fi
2176 done
2177 if test -z "$ac_aux_dir"; then
2178   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2179 fi
2180
2181 # These three variables are undocumented and unsupported,
2182 # and are intended to be withdrawn in a future Autoconf release.
2183 # They can cause serious problems if a builder's source tree is in a directory
2184 # whose full name contains unusual characters.
2185 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2186 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2187 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2188
2189
2190
2191 ac_config_headers="$ac_config_headers include/config.h"
2192
2193
2194
2195 case `pwd` in
2196   *\ * | *\     *)
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2198 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2199 esac
2200
2201
2202
2203 macro_version='2.4.2'
2204 macro_revision='1.3337'
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218 ltmain="$ac_aux_dir/ltmain.sh"
2219
2220 # Make sure we can run config.sub.
2221 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2222   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2223
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2225 $as_echo_n "checking build system type... " >&6; }
2226 if ${ac_cv_build+:} false; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   ac_build_alias=$build_alias
2230 test "x$ac_build_alias" = x &&
2231   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2232 test "x$ac_build_alias" = x &&
2233   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2234 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2235   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2236
2237 fi
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2239 $as_echo "$ac_cv_build" >&6; }
2240 case $ac_cv_build in
2241 *-*-*) ;;
2242 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2243 esac
2244 build=$ac_cv_build
2245 ac_save_IFS=$IFS; IFS='-'
2246 set x $ac_cv_build
2247 shift
2248 build_cpu=$1
2249 build_vendor=$2
2250 shift; shift
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2253 build_os=$*
2254 IFS=$ac_save_IFS
2255 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2256
2257
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2259 $as_echo_n "checking host system type... " >&6; }
2260 if ${ac_cv_host+:} false; then :
2261   $as_echo_n "(cached) " >&6
2262 else
2263   if test "x$host_alias" = x; then
2264   ac_cv_host=$ac_cv_build
2265 else
2266   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2267     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2268 fi
2269
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2272 $as_echo "$ac_cv_host" >&6; }
2273 case $ac_cv_host in
2274 *-*-*) ;;
2275 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2276 esac
2277 host=$ac_cv_host
2278 ac_save_IFS=$IFS; IFS='-'
2279 set x $ac_cv_host
2280 shift
2281 host_cpu=$1
2282 host_vendor=$2
2283 shift; shift
2284 # Remember, the first character of IFS is used to create $*,
2285 # except with old shells:
2286 host_os=$*
2287 IFS=$ac_save_IFS
2288 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2289
2290
2291 # Backslashify metacharacters that are still active within
2292 # double-quoted strings.
2293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2294
2295 # Same as above, but do not quote variable references.
2296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2297
2298 # Sed substitution to delay expansion of an escaped shell variable in a
2299 # double_quote_subst'ed string.
2300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2301
2302 # Sed substitution to delay expansion of an escaped single quote.
2303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2304
2305 # Sed substitution to avoid accidental globbing in evaled expressions
2306 no_glob_subst='s/\*/\\\*/g'
2307
2308 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2311
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2313 $as_echo_n "checking how to print strings... " >&6; }
2314 # Test print first, because it will be a builtin if present.
2315 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2316    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2317   ECHO='print -r --'
2318 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2319   ECHO='printf %s\n'
2320 else
2321   # Use this function as a fallback that always works.
2322   func_fallback_echo ()
2323   {
2324     eval 'cat <<_LTECHO_EOF
2325 $1
2326 _LTECHO_EOF'
2327   }
2328   ECHO='func_fallback_echo'
2329 fi
2330
2331 # func_echo_all arg...
2332 # Invoke $ECHO with all args, space-separated.
2333 func_echo_all ()
2334 {
2335     $ECHO ""
2336 }
2337
2338 case "$ECHO" in
2339   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2340 $as_echo "printf" >&6; } ;;
2341   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2342 $as_echo "print -r" >&6; } ;;
2343   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2344 $as_echo "cat" >&6; } ;;
2345 esac
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 if test -n "$ac_tool_prefix"; then
2366   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2369 $as_echo_n "checking for $ac_word... " >&6; }
2370 if ${ac_cv_prog_CC+:} false; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   if test -n "$CC"; then
2374   ac_cv_prog_CC="$CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381     for ac_exec_ext in '' $ac_executable_extensions; do
2382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2385     break 2
2386   fi
2387 done
2388   done
2389 IFS=$as_save_IFS
2390
2391 fi
2392 fi
2393 CC=$ac_cv_prog_CC
2394 if test -n "$CC"; then
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2396 $as_echo "$CC" >&6; }
2397 else
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2399 $as_echo "no" >&6; }
2400 fi
2401
2402
2403 fi
2404 if test -z "$ac_cv_prog_CC"; then
2405   ac_ct_CC=$CC
2406   # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2411   $as_echo_n "(cached) " >&6
2412 else
2413   if test -n "$ac_ct_CC"; then
2414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421     for ac_exec_ext in '' $ac_executable_extensions; do
2422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423     ac_cv_prog_ac_ct_CC="gcc"
2424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428   done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2436 $as_echo "$ac_ct_CC" >&6; }
2437 else
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442   if test "x$ac_ct_CC" = x; then
2443     CC=""
2444   else
2445     case $cross_compiling:$ac_tool_warned in
2446 yes:)
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2449 ac_tool_warned=yes ;;
2450 esac
2451     CC=$ac_ct_CC
2452   fi
2453 else
2454   CC="$ac_cv_prog_CC"
2455 fi
2456
2457 if test -z "$CC"; then
2458           if test -n "$ac_tool_prefix"; then
2459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     for ac_exec_ext in '' $ac_executable_extensions; do
2475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476     ac_cv_prog_CC="${ac_tool_prefix}cc"
2477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481   done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496   fi
2497 fi
2498 if test -z "$CC"; then
2499   # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_CC+:} false; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509   ac_prog_rejected=no
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515     for ac_exec_ext in '' $ac_executable_extensions; do
2516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518        ac_prog_rejected=yes
2519        continue
2520      fi
2521     ac_cv_prog_CC="cc"
2522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523     break 2
2524   fi
2525 done
2526   done
2527 IFS=$as_save_IFS
2528
2529 if test $ac_prog_rejected = yes; then
2530   # We found a bogon in the path, so make sure we never use it.
2531   set dummy $ac_cv_prog_CC
2532   shift
2533   if test $# != 0; then
2534     # We chose a different compiler from the bogus one.
2535     # However, it has the same basename, so the bogon will be chosen
2536     # first if we set CC to just the basename; use the full file name.
2537     shift
2538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539   fi
2540 fi
2541 fi
2542 fi
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552
2553 fi
2554 if test -z "$CC"; then
2555   if test -n "$ac_tool_prefix"; then
2556   for ac_prog in cl.exe
2557   do
2558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573     for ac_exec_ext in '' $ac_executable_extensions; do
2574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580   done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2589 else
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595     test -n "$CC" && break
2596   done
2597 fi
2598 if test -z "$CC"; then
2599   ac_ct_CC=$CC
2600   for ac_prog in cl.exe
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   if test -n "$ac_ct_CC"; then
2610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617     for ac_exec_ext in '' $ac_executable_extensions; do
2618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619     ac_cv_prog_ac_ct_CC="$ac_prog"
2620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624   done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639   test -n "$ac_ct_CC" && break
2640 done
2641
2642   if test "x$ac_ct_CC" = x; then
2643     CC=""
2644   else
2645     case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651     CC=$ac_ct_CC
2652   fi
2653 fi
2654
2655 fi
2656
2657
2658 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 as_fn_error $? "no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details" "$LINENO" 5; }
2662
2663 # Provide some information about the compiler.
2664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2665 set X $ac_compile
2666 ac_compiler=$2
2667 for ac_option in --version -v -V -qversion; do
2668   { { ac_try="$ac_compiler $ac_option >&5"
2669 case "(($ac_try" in
2670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671   *) ac_try_echo=$ac_try;;
2672 esac
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2676   ac_status=$?
2677   if test -s conftest.err; then
2678     sed '10a\
2679 ... rest of stderr output deleted ...
2680          10q' conftest.err >conftest.er1
2681     cat conftest.er1 >&5
2682   fi
2683   rm -f conftest.er1 conftest.err
2684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685   test $ac_status = 0; }
2686 done
2687
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h.  */
2690
2691 int
2692 main ()
2693 {
2694
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 ac_clean_files_save=$ac_clean_files
2700 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2701 # Try to create an executable without -o first, disregard a.out.
2702 # It will help us diagnose broken compilers, and finding out an intuition
2703 # of exeext.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2705 $as_echo_n "checking whether the C compiler works... " >&6; }
2706 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2707
2708 # The possible output files:
2709 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2710
2711 ac_rmfiles=
2712 for ac_file in $ac_files
2713 do
2714   case $ac_file in
2715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2716     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2717   esac
2718 done
2719 rm -f $ac_rmfiles
2720
2721 if { { ac_try="$ac_link_default"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727 $as_echo "$ac_try_echo"; } >&5
2728   (eval "$ac_link_default") 2>&5
2729   ac_status=$?
2730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731   test $ac_status = 0; }; then :
2732   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2733 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2734 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2735 # so that the user can short-circuit this test for compilers unknown to
2736 # Autoconf.
2737 for ac_file in $ac_files ''
2738 do
2739   test -f "$ac_file" || continue
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2742         ;;
2743     [ab].out )
2744         # We found the default executable, but exeext='' is most
2745         # certainly right.
2746         break;;
2747     *.* )
2748         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749         then :; else
2750            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751         fi
2752         # We set ac_cv_exeext here because the later test for it is not
2753         # safe: cross compilers may not add the suffix if given an `-o'
2754         # argument, so we may need to know it at that point already.
2755         # Even if this section looks crufty: it has the advantage of
2756         # actually working.
2757         break;;
2758     * )
2759         break;;
2760   esac
2761 done
2762 test "$ac_cv_exeext" = no && ac_cv_exeext=
2763
2764 else
2765   ac_file=''
2766 fi
2767 if test -z "$ac_file"; then :
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 $as_echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775 as_fn_error 77 "C compiler cannot create executables
2776 See \`config.log' for more details" "$LINENO" 5; }
2777 else
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2782 $as_echo_n "checking for C compiler default output file name... " >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2784 $as_echo "$ac_file" >&6; }
2785 ac_exeext=$ac_cv_exeext
2786
2787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2788 ac_clean_files=$ac_clean_files_save
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2790 $as_echo_n "checking for suffix of executables... " >&6; }
2791 if { { ac_try="$ac_link"
2792 case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798   (eval "$ac_link") 2>&5
2799   ac_status=$?
2800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801   test $ac_status = 0; }; then :
2802   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2803 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2804 # work properly (i.e., refer to `conftest.exe'), while it won't with
2805 # `rm'.
2806 for ac_file in conftest.exe conftest conftest.*; do
2807   test -f "$ac_file" || continue
2808   case $ac_file in
2809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2810     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2811           break;;
2812     * ) break;;
2813   esac
2814 done
2815 else
2816   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2819 See \`config.log' for more details" "$LINENO" 5; }
2820 fi
2821 rm -f conftest conftest$ac_cv_exeext
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2823 $as_echo "$ac_cv_exeext" >&6; }
2824
2825 rm -f conftest.$ac_ext
2826 EXEEXT=$ac_cv_exeext
2827 ac_exeext=$EXEEXT
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h.  */
2830 #include <stdio.h>
2831 int
2832 main ()
2833 {
2834 FILE *f = fopen ("conftest.out", "w");
2835  return ferror (f) || fclose (f) != 0;
2836
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 ac_clean_files="$ac_clean_files conftest.out"
2842 # Check that the compiler produces executables we can run.  If not, either
2843 # the compiler is broken, or we cross compile.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2845 $as_echo_n "checking whether we are cross compiling... " >&6; }
2846 if test "$cross_compiling" != yes; then
2847   { { ac_try="$ac_link"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854   (eval "$ac_link") 2>&5
2855   ac_status=$?
2856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857   test $ac_status = 0; }
2858   if { ac_try='./conftest$ac_cv_exeext'
2859   { { case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864 $as_echo "$ac_try_echo"; } >&5
2865   (eval "$ac_try") 2>&5
2866   ac_status=$?
2867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868   test $ac_status = 0; }; }; then
2869     cross_compiling=no
2870   else
2871     if test "$cross_compiling" = maybe; then
2872         cross_compiling=yes
2873     else
2874         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details" "$LINENO" 5; }
2879     fi
2880   fi
2881 fi
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2883 $as_echo "$cross_compiling" >&6; }
2884
2885 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2886 ac_clean_files=$ac_clean_files_save
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2888 $as_echo_n "checking for suffix of object files... " >&6; }
2889 if ${ac_cv_objext+:} false; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { { ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911   (eval "$ac_compile") 2>&5
2912   ac_status=$?
2913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914   test $ac_status = 0; }; then :
2915   for ac_file in conftest.o conftest.obj conftest.*; do
2916   test -f "$ac_file" || continue;
2917   case $ac_file in
2918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920        break;;
2921   esac
2922 done
2923 else
2924   $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details" "$LINENO" 5; }
2931 fi
2932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2935 $as_echo "$ac_cv_objext" >&6; }
2936 OBJEXT=$ac_cv_objext
2937 ac_objext=$OBJEXT
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2940 if ${ac_cv_c_compiler_gnu+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949 #ifndef __GNUC__
2950        choke me
2951 #endif
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 if ac_fn_c_try_compile "$LINENO"; then :
2958   ac_compiler_gnu=yes
2959 else
2960   ac_compiler_gnu=no
2961 fi
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2964
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2968 if test $ac_compiler_gnu = yes; then
2969   GCC=yes
2970 else
2971   GCC=
2972 fi
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2977 if ${ac_cv_prog_cc_g+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   ac_save_c_werror_flag=$ac_c_werror_flag
2981    ac_c_werror_flag=yes
2982    ac_cv_prog_cc_g=no
2983    CFLAGS="-g"
2984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h.  */
2986
2987 int
2988 main ()
2989 {
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996   ac_cv_prog_cc_g=yes
2997 else
2998   CFLAGS=""
2999       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 if ac_fn_c_try_compile "$LINENO"; then :
3011
3012 else
3013   ac_c_werror_flag=$ac_save_c_werror_flag
3014          CFLAGS="-g"
3015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 if ac_fn_c_try_compile "$LINENO"; then :
3027   ac_cv_prog_cc_g=yes
3028 fi
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 fi
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 fi
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034    ac_c_werror_flag=$ac_save_c_werror_flag
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3037 $as_echo "$ac_cv_prog_cc_g" >&6; }
3038 if test "$ac_test_CFLAGS" = set; then
3039   CFLAGS=$ac_save_CFLAGS
3040 elif test $ac_cv_prog_cc_g = yes; then
3041   if test "$GCC" = yes; then
3042     CFLAGS="-g -O2"
3043   else
3044     CFLAGS="-g"
3045   fi
3046 else
3047   if test "$GCC" = yes; then
3048     CFLAGS="-O2"
3049   else
3050     CFLAGS=
3051   fi
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3055 if ${ac_cv_prog_cc_c89+:} false; then :
3056   $as_echo_n "(cached) " >&6
3057 else
3058   ac_cv_prog_cc_c89=no
3059 ac_save_CC=$CC
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h.  */
3062 #include <stdarg.h>
3063 #include <stdio.h>
3064 struct stat;
3065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3066 struct buf { int x; };
3067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3068 static char *e (p, i)
3069      char **p;
3070      int i;
3071 {
3072   return p[i];
3073 }
3074 static char *f (char * (*g) (char **, int), char **p, ...)
3075 {
3076   char *s;
3077   va_list v;
3078   va_start (v,p);
3079   s = g (p, va_arg (v,int));
3080   va_end (v);
3081   return s;
3082 }
3083
3084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3085    function prototypes and stuff, but not '\xHH' hex character constants.
3086    These don't provoke an error unfortunately, instead are silently treated
3087    as 'x'.  The following induces an error, until -std is added to get
3088    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3089    array size at least.  It's necessary to write '\x00'==0 to get something
3090    that's true only with -std.  */
3091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3092
3093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3094    inside strings and character constants.  */
3095 #define FOO(x) 'x'
3096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3097
3098 int test (int i, double x);
3099 struct s1 {int (*f) (int a);};
3100 struct s2 {int (*f) (double a);};
3101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3102 int argc;
3103 char **argv;
3104 int
3105 main ()
3106 {
3107 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3113         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3114 do
3115   CC="$ac_save_CC $ac_arg"
3116   if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_cv_prog_cc_c89=$ac_arg
3118 fi
3119 rm -f core conftest.err conftest.$ac_objext
3120   test "x$ac_cv_prog_cc_c89" != "xno" && break
3121 done
3122 rm -f conftest.$ac_ext
3123 CC=$ac_save_CC
3124
3125 fi
3126 # AC_CACHE_VAL
3127 case "x$ac_cv_prog_cc_c89" in
3128   x)
3129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3130 $as_echo "none needed" >&6; } ;;
3131   xno)
3132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3133 $as_echo "unsupported" >&6; } ;;
3134   *)
3135     CC="$CC $ac_cv_prog_cc_c89"
3136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3138 esac
3139 if test "x$ac_cv_prog_cc_c89" != xno; then :
3140
3141 fi
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3150 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3151 if ${ac_cv_path_SED+:} false; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3155      for ac_i in 1 2 3 4 5 6 7; do
3156        ac_script="$ac_script$as_nl$ac_script"
3157      done
3158      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3159      { ac_script=; unset ac_script;}
3160      if test -z "$SED"; then
3161   ac_path_SED_found=false
3162   # Loop through the user's path and test for each of PROGNAME-LIST
3163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168     for ac_prog in sed gsed; do
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3171       as_fn_executable_p "$ac_path_SED" || continue
3172 # Check for GNU ac_path_SED and select it if it is found.
3173   # Check for GNU $ac_path_SED
3174 case `"$ac_path_SED" --version 2>&1` in
3175 *GNU*)
3176   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3177 *)
3178   ac_count=0
3179   $as_echo_n 0123456789 >"conftest.in"
3180   while :
3181   do
3182     cat "conftest.in" "conftest.in" >"conftest.tmp"
3183     mv "conftest.tmp" "conftest.in"
3184     cp "conftest.in" "conftest.nl"
3185     $as_echo '' >> "conftest.nl"
3186     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3188     as_fn_arith $ac_count + 1 && ac_count=$as_val
3189     if test $ac_count -gt ${ac_path_SED_max-0}; then
3190       # Best one so far, save it but keep looking for a better one
3191       ac_cv_path_SED="$ac_path_SED"
3192       ac_path_SED_max=$ac_count
3193     fi
3194     # 10*(2^10) chars as input seems more than enough
3195     test $ac_count -gt 10 && break
3196   done
3197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3198 esac
3199
3200       $ac_path_SED_found && break 3
3201     done
3202   done
3203   done
3204 IFS=$as_save_IFS
3205   if test -z "$ac_cv_path_SED"; then
3206     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3207   fi
3208 else
3209   ac_cv_path_SED=$SED
3210 fi
3211
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3214 $as_echo "$ac_cv_path_SED" >&6; }
3215  SED="$ac_cv_path_SED"
3216   rm -f conftest.sed
3217
3218 test -z "$SED" && SED=sed
3219 Xsed="$SED -e 1s/^X//"
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3233 if ${ac_cv_path_GREP+:} false; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   if test -z "$GREP"; then
3237   ac_path_GREP_found=false
3238   # Loop through the user's path and test for each of PROGNAME-LIST
3239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244     for ac_prog in grep ggrep; do
3245     for ac_exec_ext in '' $ac_executable_extensions; do
3246       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3247       as_fn_executable_p "$ac_path_GREP" || continue
3248 # Check for GNU ac_path_GREP and select it if it is found.
3249   # Check for GNU $ac_path_GREP
3250 case `"$ac_path_GREP" --version 2>&1` in
3251 *GNU*)
3252   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3253 *)
3254   ac_count=0
3255   $as_echo_n 0123456789 >"conftest.in"
3256   while :
3257   do
3258     cat "conftest.in" "conftest.in" >"conftest.tmp"
3259     mv "conftest.tmp" "conftest.in"
3260     cp "conftest.in" "conftest.nl"
3261     $as_echo 'GREP' >> "conftest.nl"
3262     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3263     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3264     as_fn_arith $ac_count + 1 && ac_count=$as_val
3265     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3266       # Best one so far, save it but keep looking for a better one
3267       ac_cv_path_GREP="$ac_path_GREP"
3268       ac_path_GREP_max=$ac_count
3269     fi
3270     # 10*(2^10) chars as input seems more than enough
3271     test $ac_count -gt 10 && break
3272   done
3273   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3274 esac
3275
3276       $ac_path_GREP_found && break 3
3277     done
3278   done
3279   done
3280 IFS=$as_save_IFS
3281   if test -z "$ac_cv_path_GREP"; then
3282     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3283   fi
3284 else
3285   ac_cv_path_GREP=$GREP
3286 fi
3287
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3290 $as_echo "$ac_cv_path_GREP" >&6; }
3291  GREP="$ac_cv_path_GREP"
3292
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3295 $as_echo_n "checking for egrep... " >&6; }
3296 if ${ac_cv_path_EGREP+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300    then ac_cv_path_EGREP="$GREP -E"
3301    else
3302      if test -z "$EGREP"; then
3303   ac_path_EGREP_found=false
3304   # Loop through the user's path and test for each of PROGNAME-LIST
3305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310     for ac_prog in egrep; do
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3313       as_fn_executable_p "$ac_path_EGREP" || continue
3314 # Check for GNU ac_path_EGREP and select it if it is found.
3315   # Check for GNU $ac_path_EGREP
3316 case `"$ac_path_EGREP" --version 2>&1` in
3317 *GNU*)
3318   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3319 *)
3320   ac_count=0
3321   $as_echo_n 0123456789 >"conftest.in"
3322   while :
3323   do
3324     cat "conftest.in" "conftest.in" >"conftest.tmp"
3325     mv "conftest.tmp" "conftest.in"
3326     cp "conftest.in" "conftest.nl"
3327     $as_echo 'EGREP' >> "conftest.nl"
3328     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330     as_fn_arith $ac_count + 1 && ac_count=$as_val
3331     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3332       # Best one so far, save it but keep looking for a better one
3333       ac_cv_path_EGREP="$ac_path_EGREP"
3334       ac_path_EGREP_max=$ac_count
3335     fi
3336     # 10*(2^10) chars as input seems more than enough
3337     test $ac_count -gt 10 && break
3338   done
3339   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340 esac
3341
3342       $ac_path_EGREP_found && break 3
3343     done
3344   done
3345   done
3346 IFS=$as_save_IFS
3347   if test -z "$ac_cv_path_EGREP"; then
3348     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3349   fi
3350 else
3351   ac_cv_path_EGREP=$EGREP
3352 fi
3353
3354    fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3357 $as_echo "$ac_cv_path_EGREP" >&6; }
3358  EGREP="$ac_cv_path_EGREP"
3359
3360
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3362 $as_echo_n "checking for fgrep... " >&6; }
3363 if ${ac_cv_path_FGREP+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3367    then ac_cv_path_FGREP="$GREP -F"
3368    else
3369      if test -z "$FGREP"; then
3370   ac_path_FGREP_found=false
3371   # Loop through the user's path and test for each of PROGNAME-LIST
3372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_prog in fgrep; do
3378     for ac_exec_ext in '' $ac_executable_extensions; do
3379       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3380       as_fn_executable_p "$ac_path_FGREP" || continue
3381 # Check for GNU ac_path_FGREP and select it if it is found.
3382   # Check for GNU $ac_path_FGREP
3383 case `"$ac_path_FGREP" --version 2>&1` in
3384 *GNU*)
3385   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3386 *)
3387   ac_count=0
3388   $as_echo_n 0123456789 >"conftest.in"
3389   while :
3390   do
3391     cat "conftest.in" "conftest.in" >"conftest.tmp"
3392     mv "conftest.tmp" "conftest.in"
3393     cp "conftest.in" "conftest.nl"
3394     $as_echo 'FGREP' >> "conftest.nl"
3395     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397     as_fn_arith $ac_count + 1 && ac_count=$as_val
3398     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3399       # Best one so far, save it but keep looking for a better one
3400       ac_cv_path_FGREP="$ac_path_FGREP"
3401       ac_path_FGREP_max=$ac_count
3402     fi
3403     # 10*(2^10) chars as input seems more than enough
3404     test $ac_count -gt 10 && break
3405   done
3406   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407 esac
3408
3409       $ac_path_FGREP_found && break 3
3410     done
3411   done
3412   done
3413 IFS=$as_save_IFS
3414   if test -z "$ac_cv_path_FGREP"; then
3415     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3416   fi
3417 else
3418   ac_cv_path_FGREP=$FGREP
3419 fi
3420
3421    fi
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3424 $as_echo "$ac_cv_path_FGREP" >&6; }
3425  FGREP="$ac_cv_path_FGREP"
3426
3427
3428 test -z "$GREP" && GREP=grep
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448 # Check whether --with-gnu-ld was given.
3449 if test "${with_gnu_ld+set}" = set; then :
3450   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3451 else
3452   with_gnu_ld=no
3453 fi
3454
3455 ac_prog=ld
3456 if test "$GCC" = yes; then
3457   # Check if gcc -print-prog-name=ld gives a path.
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3459 $as_echo_n "checking for ld used by $CC... " >&6; }
3460   case $host in
3461   *-*-mingw*)
3462     # gcc leaves a trailing carriage return which upsets mingw
3463     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3464   *)
3465     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3466   esac
3467   case $ac_prog in
3468     # Accept absolute paths.
3469     [\\/]* | ?:[\\/]*)
3470       re_direlt='/[^/][^/]*/\.\./'
3471       # Canonicalize the pathname of ld
3472       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3473       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3474         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3475       done
3476       test -z "$LD" && LD="$ac_prog"
3477       ;;
3478   "")
3479     # If it fails, then pretend we aren't using GCC.
3480     ac_prog=ld
3481     ;;
3482   *)
3483     # If it is relative, then search for the first ld in PATH.
3484     with_gnu_ld=unknown
3485     ;;
3486   esac
3487 elif test "$with_gnu_ld" = yes; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3489 $as_echo_n "checking for GNU ld... " >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3492 $as_echo_n "checking for non-GNU ld... " >&6; }
3493 fi
3494 if ${lt_cv_path_LD+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -z "$LD"; then
3498   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3499   for ac_dir in $PATH; do
3500     IFS="$lt_save_ifs"
3501     test -z "$ac_dir" && ac_dir=.
3502     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3503       lt_cv_path_LD="$ac_dir/$ac_prog"
3504       # Check to see if the program is GNU ld.  I'd rather use --version,
3505       # but apparently some variants of GNU ld only accept -v.
3506       # Break only if it was the GNU/non-GNU ld that we prefer.
3507       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3508       *GNU* | *'with BFD'*)
3509         test "$with_gnu_ld" != no && break
3510         ;;
3511       *)
3512         test "$with_gnu_ld" != yes && break
3513         ;;
3514       esac
3515     fi
3516   done
3517   IFS="$lt_save_ifs"
3518 else
3519   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3520 fi
3521 fi
3522
3523 LD="$lt_cv_path_LD"
3524 if test -n "$LD"; then
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3526 $as_echo "$LD" >&6; }
3527 else
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3534 if ${lt_cv_prog_gnu_ld+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3538 case `$LD -v 2>&1 </dev/null` in
3539 *GNU* | *'with BFD'*)
3540   lt_cv_prog_gnu_ld=yes
3541   ;;
3542 *)
3543   lt_cv_prog_gnu_ld=no
3544   ;;
3545 esac
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3549 with_gnu_ld=$lt_cv_prog_gnu_ld
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3560 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3561 if ${lt_cv_path_NM+:} false; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   if test -n "$NM"; then
3565   # Let the user override the test.
3566   lt_cv_path_NM="$NM"
3567 else
3568   lt_nm_to_check="${ac_tool_prefix}nm"
3569   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3570     lt_nm_to_check="$lt_nm_to_check nm"
3571   fi
3572   for lt_tmp_nm in $lt_nm_to_check; do
3573     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3575       IFS="$lt_save_ifs"
3576       test -z "$ac_dir" && ac_dir=.
3577       tmp_nm="$ac_dir/$lt_tmp_nm"
3578       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3579         # Check to see if the nm accepts a BSD-compat flag.
3580         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3581         #   nm: unknown option "B" ignored
3582         # Tru64's nm complains that /dev/null is an invalid object file
3583         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3584         */dev/null* | *'Invalid file or object type'*)
3585           lt_cv_path_NM="$tmp_nm -B"
3586           break
3587           ;;
3588         *)
3589           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3590           */dev/null*)
3591             lt_cv_path_NM="$tmp_nm -p"
3592             break
3593             ;;
3594           *)
3595             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3596             continue # so that we can try to find one that supports BSD flags
3597             ;;
3598           esac
3599           ;;
3600         esac
3601       fi
3602     done
3603     IFS="$lt_save_ifs"
3604   done
3605   : ${lt_cv_path_NM=no}
3606 fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3609 $as_echo "$lt_cv_path_NM" >&6; }
3610 if test "$lt_cv_path_NM" != "no"; then
3611   NM="$lt_cv_path_NM"
3612 else
3613   # Didn't find any BSD compatible name lister, look for dumpbin.
3614   if test -n "$DUMPBIN"; then :
3615     # Let the user override the test.
3616   else
3617     if test -n "$ac_tool_prefix"; then
3618   for ac_prog in dumpbin "link -dump"
3619   do
3620     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_DUMPBIN+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   if test -n "$DUMPBIN"; then
3628   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635     for ac_exec_ext in '' $ac_executable_extensions; do
3636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642   done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 DUMPBIN=$ac_cv_prog_DUMPBIN
3648 if test -n "$DUMPBIN"; then
3649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3650 $as_echo "$DUMPBIN" >&6; }
3651 else
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657     test -n "$DUMPBIN" && break
3658   done
3659 fi
3660 if test -z "$DUMPBIN"; then
3661   ac_ct_DUMPBIN=$DUMPBIN
3662   for ac_prog in dumpbin "link -dump"
3663 do
3664   # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   if test -n "$ac_ct_DUMPBIN"; then
3672   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686   done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3692 if test -n "$ac_ct_DUMPBIN"; then
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3694 $as_echo "$ac_ct_DUMPBIN" >&6; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701   test -n "$ac_ct_DUMPBIN" && break
3702 done
3703
3704   if test "x$ac_ct_DUMPBIN" = x; then
3705     DUMPBIN=":"
3706   else
3707     case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713     DUMPBIN=$ac_ct_DUMPBIN
3714   fi
3715 fi
3716
3717     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3718     *COFF*)
3719       DUMPBIN="$DUMPBIN -symbols"
3720       ;;
3721     *)
3722       DUMPBIN=:
3723       ;;
3724     esac
3725   fi
3726
3727   if test "$DUMPBIN" != ":"; then
3728     NM="$DUMPBIN"
3729   fi
3730 fi
3731 test -z "$NM" && NM=nm
3732
3733
3734
3735
3736
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3739 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3740 if ${lt_cv_nm_interface+:} false; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   lt_cv_nm_interface="BSD nm"
3744   echo "int some_variable = 0;" > conftest.$ac_ext
3745   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3746   (eval "$ac_compile" 2>conftest.err)
3747   cat conftest.err >&5
3748   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3749   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3750   cat conftest.err >&5
3751   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3752   cat conftest.out >&5
3753   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3754     lt_cv_nm_interface="MS dumpbin"
3755   fi
3756   rm -f conftest*
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3759 $as_echo "$lt_cv_nm_interface" >&6; }
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3762 $as_echo_n "checking whether ln -s works... " >&6; }
3763 LN_S=$as_ln_s
3764 if test "$LN_S" = "ln -s"; then
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3767 else
3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3769 $as_echo "no, using $LN_S" >&6; }
3770 fi
3771
3772 # find the maximum length of command line arguments
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3774 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3775 if ${lt_cv_sys_max_cmd_len+:} false; then :
3776   $as_echo_n "(cached) " >&6
3777 else
3778     i=0
3779   teststring="ABCD"
3780
3781   case $build_os in
3782   msdosdjgpp*)
3783     # On DJGPP, this test can blow up pretty badly due to problems in libc
3784     # (any single argument exceeding 2000 bytes causes a buffer overrun
3785     # during glob expansion).  Even if it were fixed, the result of this
3786     # check would be larger than it should be.
3787     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3788     ;;
3789
3790   gnu*)
3791     # Under GNU Hurd, this test is not required because there is
3792     # no limit to the length of command line arguments.
3793     # Libtool will interpret -1 as no limit whatsoever
3794     lt_cv_sys_max_cmd_len=-1;
3795     ;;
3796
3797   cygwin* | mingw* | cegcc*)
3798     # On Win9x/ME, this test blows up -- it succeeds, but takes
3799     # about 5 minutes as the teststring grows exponentially.
3800     # Worse, since 9x/ME are not pre-emptively multitasking,
3801     # you end up with a "frozen" computer, even though with patience
3802     # the test eventually succeeds (with a max line length of 256k).
3803     # Instead, let's just punt: use the minimum linelength reported by
3804     # all of the supported platforms: 8192 (on NT/2K/XP).
3805     lt_cv_sys_max_cmd_len=8192;
3806     ;;
3807
3808   mint*)
3809     # On MiNT this can take a long time and run out of memory.
3810     lt_cv_sys_max_cmd_len=8192;
3811     ;;
3812
3813   amigaos*)
3814     # On AmigaOS with pdksh, this test takes hours, literally.
3815     # So we just punt and use a minimum line length of 8192.
3816     lt_cv_sys_max_cmd_len=8192;
3817     ;;
3818
3819   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3820     # This has been around since 386BSD, at least.  Likely further.
3821     if test -x /sbin/sysctl; then
3822       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3823     elif test -x /usr/sbin/sysctl; then
3824       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3825     else
3826       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3827     fi
3828     # And add a safety zone
3829     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3830     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3831     ;;
3832
3833   interix*)
3834     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3835     lt_cv_sys_max_cmd_len=196608
3836     ;;
3837
3838   os2*)
3839     # The test takes a long time on OS/2.
3840     lt_cv_sys_max_cmd_len=8192
3841     ;;
3842
3843   osf*)
3844     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3845     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3846     # nice to cause kernel panics so lets avoid the loop below.
3847     # First set a reasonable default.
3848     lt_cv_sys_max_cmd_len=16384
3849     #
3850     if test -x /sbin/sysconfig; then
3851       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3852         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3853       esac
3854     fi
3855     ;;
3856   sco3.2v5*)
3857     lt_cv_sys_max_cmd_len=102400
3858     ;;
3859   sysv5* | sco5v6* | sysv4.2uw2*)
3860     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3861     if test -n "$kargmax"; then
3862       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3863     else
3864       lt_cv_sys_max_cmd_len=32768
3865     fi
3866     ;;
3867   *)
3868     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3869     if test -n "$lt_cv_sys_max_cmd_len"; then
3870       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3871       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3872     else
3873       # Make teststring a little bigger before we do anything with it.
3874       # a 1K string should be a reasonable start.
3875       for i in 1 2 3 4 5 6 7 8 ; do
3876         teststring=$teststring$teststring
3877       done
3878       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3879       # If test is not a shell built-in, we'll probably end up computing a
3880       # maximum length that is only half of the actual maximum length, but
3881       # we can't tell.
3882       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3883                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3884               test $i != 17 # 1/2 MB should be enough
3885       do
3886         i=`expr $i + 1`
3887         teststring=$teststring$teststring
3888       done
3889       # Only check the string length outside the loop.
3890       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3891       teststring=
3892       # Add a significant safety factor because C++ compilers can tack on
3893       # massive amounts of additional arguments before passing them to the
3894       # linker.  It appears as though 1/2 is a usable value.
3895       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3896     fi
3897     ;;
3898   esac
3899
3900 fi
3901
3902 if test -n $lt_cv_sys_max_cmd_len ; then
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3904 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3905 else
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3907 $as_echo "none" >&6; }
3908 fi
3909 max_cmd_len=$lt_cv_sys_max_cmd_len
3910
3911
3912
3913
3914
3915
3916 : ${CP="cp -f"}
3917 : ${MV="mv -f"}
3918 : ${RM="rm -f"}
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3921 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3922 # Try some XSI features
3923 xsi_shell=no
3924 ( _lt_dummy="a/b/c"
3925   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3926       = c,a/b,b/c, \
3927     && eval 'test $(( 1 + 1 )) -eq 2 \
3928     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3929   && xsi_shell=yes
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3931 $as_echo "$xsi_shell" >&6; }
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3935 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3936 lt_shell_append=no
3937 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3938     >/dev/null 2>&1 \
3939   && lt_shell_append=yes
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3941 $as_echo "$lt_shell_append" >&6; }
3942
3943
3944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3945   lt_unset=unset
3946 else
3947   lt_unset=false
3948 fi
3949
3950
3951
3952
3953
3954 # test EBCDIC or ASCII
3955 case `echo X|tr X '\101'` in
3956  A) # ASCII based system
3957     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3958   lt_SP2NL='tr \040 \012'
3959   lt_NL2SP='tr \015\012 \040\040'
3960   ;;
3961  *) # EBCDIC based system
3962   lt_SP2NL='tr \100 \n'
3963   lt_NL2SP='tr \r\n \100\100'
3964   ;;
3965 esac
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3976 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3977 if ${lt_cv_to_host_file_cmd+:} false; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   case $host in
3981   *-*-mingw* )
3982     case $build in
3983       *-*-mingw* ) # actually msys
3984         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
3985         ;;
3986       *-*-cygwin* )
3987         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
3988         ;;
3989       * ) # otherwise, assume *nix
3990         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
3991         ;;
3992     esac
3993     ;;
3994   *-*-cygwin* )
3995     case $build in
3996       *-*-mingw* ) # actually msys
3997         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
3998         ;;
3999       *-*-cygwin* )
4000         lt_cv_to_host_file_cmd=func_convert_file_noop
4001         ;;
4002       * ) # otherwise, assume *nix
4003         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4004         ;;
4005     esac
4006     ;;
4007   * ) # unhandled hosts (and "normal" native builds)
4008     lt_cv_to_host_file_cmd=func_convert_file_noop
4009     ;;
4010 esac
4011
4012 fi
4013
4014 to_host_file_cmd=$lt_cv_to_host_file_cmd
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4016 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4017
4018
4019
4020
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4023 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4024 if ${lt_cv_to_tool_file_cmd+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   #assume ordinary cross tools, or native build.
4028 lt_cv_to_tool_file_cmd=func_convert_file_noop
4029 case $host in
4030   *-*-mingw* )
4031     case $build in
4032       *-*-mingw* ) # actually msys
4033         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4034         ;;
4035     esac
4036     ;;
4037 esac
4038
4039 fi
4040
4041 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4043 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4044
4045
4046
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4050 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4051 if ${lt_cv_ld_reload_flag+:} false; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   lt_cv_ld_reload_flag='-r'
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4057 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4058 reload_flag=$lt_cv_ld_reload_flag
4059 case $reload_flag in
4060 "" | " "*) ;;
4061 *) reload_flag=" $reload_flag" ;;
4062 esac
4063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4064 case $host_os in
4065   cygwin* | mingw* | pw32* | cegcc*)
4066     if test "$GCC" != yes; then
4067       reload_cmds=false
4068     fi
4069     ;;
4070   darwin*)
4071     if test "$GCC" = yes; then
4072       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4073     else
4074       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075     fi
4076     ;;
4077 esac
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087 if test -n "$ac_tool_prefix"; then
4088   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_OBJDUMP+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   if test -n "$OBJDUMP"; then
4096   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103     for ac_exec_ext in '' $ac_executable_extensions; do
4104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110   done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 OBJDUMP=$ac_cv_prog_OBJDUMP
4116 if test -n "$OBJDUMP"; then
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4118 $as_echo "$OBJDUMP" >&6; }
4119 else
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 fi
4123
4124
4125 fi
4126 if test -z "$ac_cv_prog_OBJDUMP"; then
4127   ac_ct_OBJDUMP=$OBJDUMP
4128   # Extract the first word of "objdump", so it can be a program name with args.
4129 set dummy objdump; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$ac_ct_OBJDUMP"; then
4136   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4156 if test -n "$ac_ct_OBJDUMP"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4158 $as_echo "$ac_ct_OBJDUMP" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164   if test "x$ac_ct_OBJDUMP" = x; then
4165     OBJDUMP="false"
4166   else
4167     case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173     OBJDUMP=$ac_ct_OBJDUMP
4174   fi
4175 else
4176   OBJDUMP="$ac_cv_prog_OBJDUMP"
4177 fi
4178
4179 test -z "$OBJDUMP" && OBJDUMP=objdump
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4191 if ${lt_cv_deplibs_check_method+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   lt_cv_file_magic_cmd='$MAGIC_CMD'
4195 lt_cv_file_magic_test_file=
4196 lt_cv_deplibs_check_method='unknown'
4197 # Need to set the preceding variable on all platforms that support
4198 # interlibrary dependencies.
4199 # 'none' -- dependencies not supported.
4200 # `unknown' -- same as none, but documents that we really don't know.
4201 # 'pass_all' -- all dependencies passed with no checks.
4202 # 'test_compile' -- check by making test program.
4203 # 'file_magic [[regex]]' -- check by looking for files in library path
4204 # which responds to the $file_magic_cmd with a given extended regex.
4205 # If you have `file' or equivalent on your system and you're not sure
4206 # whether `pass_all' will *always* work, you probably want this one.
4207
4208 case $host_os in
4209 aix[4-9]*)
4210   lt_cv_deplibs_check_method=pass_all
4211   ;;
4212
4213 beos*)
4214   lt_cv_deplibs_check_method=pass_all
4215   ;;
4216
4217 bsdi[45]*)
4218   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4219   lt_cv_file_magic_cmd='/usr/bin/file -L'
4220   lt_cv_file_magic_test_file=/shlib/libc.so
4221   ;;
4222
4223 cygwin*)
4224   # func_win32_libid is a shell function defined in ltmain.sh
4225   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4226   lt_cv_file_magic_cmd='func_win32_libid'
4227   ;;
4228
4229 mingw* | pw32*)
4230   # Base MSYS/MinGW do not provide the 'file' command needed by
4231   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4232   # unless we find 'file', for example because we are cross-compiling.
4233   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4234   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4235     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236     lt_cv_file_magic_cmd='func_win32_libid'
4237   else
4238     # Keep this pattern in sync with the one in func_win32_libid.
4239     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4240     lt_cv_file_magic_cmd='$OBJDUMP -f'
4241   fi
4242   ;;
4243
4244 cegcc*)
4245   # use the weaker test based on 'objdump'. See mingw*.
4246   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4247   lt_cv_file_magic_cmd='$OBJDUMP -f'
4248   ;;
4249
4250 darwin* | rhapsody*)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 freebsd* | dragonfly*)
4255   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4256     case $host_cpu in
4257     i*86 )
4258       # Not sure whether the presence of OpenBSD here was a mistake.
4259       # Let's accept both of them until this is cleared up.
4260       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4261       lt_cv_file_magic_cmd=/usr/bin/file
4262       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4263       ;;
4264     esac
4265   else
4266     lt_cv_deplibs_check_method=pass_all
4267   fi
4268   ;;
4269
4270 gnu*)
4271   lt_cv_deplibs_check_method=pass_all
4272   ;;
4273
4274 haiku*)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 hpux10.20* | hpux11*)
4279   lt_cv_file_magic_cmd=/usr/bin/file
4280   case $host_cpu in
4281   ia64*)
4282     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284     ;;
4285   hppa*64*)
4286     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]'
4287     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288     ;;
4289   *)
4290     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4291     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292     ;;
4293   esac
4294   ;;
4295
4296 interix[3-9]*)
4297   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299   ;;
4300
4301 irix5* | irix6* | nonstopux*)
4302   case $LD in
4303   *-32|*"-32 ") libmagic=32-bit;;
4304   *-n32|*"-n32 ") libmagic=N32;;
4305   *-64|*"-64 ") libmagic=64-bit;;
4306   *) libmagic=never-match;;
4307   esac
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310
4311 # This must be glibc/ELF.
4312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 netbsd*)
4317   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319   else
4320     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321   fi
4322   ;;
4323
4324 newos6*)
4325   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326   lt_cv_file_magic_cmd=/usr/bin/file
4327   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328   ;;
4329
4330 *nto* | *qnx*)
4331   lt_cv_deplibs_check_method=pass_all
4332   ;;
4333
4334 openbsd*)
4335   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337   else
4338     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339   fi
4340   ;;
4341
4342 osf3* | osf4* | osf5*)
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 rdos*)
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349
4350 solaris*)
4351   lt_cv_deplibs_check_method=pass_all
4352   ;;
4353
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355   lt_cv_deplibs_check_method=pass_all
4356   ;;
4357
4358 sysv4 | sysv4.3*)
4359   case $host_vendor in
4360   motorola)
4361     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]'
4362     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363     ;;
4364   ncr)
4365     lt_cv_deplibs_check_method=pass_all
4366     ;;
4367   sequent)
4368     lt_cv_file_magic_cmd='/bin/file'
4369     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4370     ;;
4371   sni)
4372     lt_cv_file_magic_cmd='/bin/file'
4373     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374     lt_cv_file_magic_test_file=/lib/libc.so
4375     ;;
4376   siemens)
4377     lt_cv_deplibs_check_method=pass_all
4378     ;;
4379   pc)
4380     lt_cv_deplibs_check_method=pass_all
4381     ;;
4382   esac
4383   ;;
4384
4385 tpf*)
4386   lt_cv_deplibs_check_method=pass_all
4387   ;;
4388 esac
4389
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4392 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4393
4394 file_magic_glob=
4395 want_nocaseglob=no
4396 if test "$build" = "$host"; then
4397   case $host_os in
4398   mingw* | pw32*)
4399     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4400       want_nocaseglob=yes
4401     else
4402       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4403     fi
4404     ;;
4405   esac
4406 fi
4407
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433 if test -n "$ac_tool_prefix"; then
4434   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_DLLTOOL+:} false; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   if test -n "$DLLTOOL"; then
4442   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456   done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 DLLTOOL=$ac_cv_prog_DLLTOOL
4462 if test -n "$DLLTOOL"; then
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4464 $as_echo "$DLLTOOL" >&6; }
4465 else
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471 fi
4472 if test -z "$ac_cv_prog_DLLTOOL"; then
4473   ac_ct_DLLTOOL=$DLLTOOL
4474   # Extract the first word of "dlltool", so it can be a program name with args.
4475 set dummy dlltool; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   if test -n "$ac_ct_DLLTOOL"; then
4482   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489     for ac_exec_ext in '' $ac_executable_extensions; do
4490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496   done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4502 if test -n "$ac_ct_DLLTOOL"; then
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4504 $as_echo "$ac_ct_DLLTOOL" >&6; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509
4510   if test "x$ac_ct_DLLTOOL" = x; then
4511     DLLTOOL="false"
4512   else
4513     case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519     DLLTOOL=$ac_ct_DLLTOOL
4520   fi
4521 else
4522   DLLTOOL="$ac_cv_prog_DLLTOOL"
4523 fi
4524
4525 test -z "$DLLTOOL" && DLLTOOL=dlltool
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4537 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4538 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   lt_cv_sharedlib_from_linklib_cmd='unknown'
4542
4543 case $host_os in
4544 cygwin* | mingw* | pw32* | cegcc*)
4545   # two different shell functions defined in ltmain.sh
4546   # decide which to use based on capabilities of $DLLTOOL
4547   case `$DLLTOOL --help 2>&1` in
4548   *--identify-strict*)
4549     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4550     ;;
4551   *)
4552     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4553     ;;
4554   esac
4555   ;;
4556 *)
4557   # fallback: assume linklib IS sharedlib
4558   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4559   ;;
4560 esac
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4564 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4565 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4566 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4567
4568
4569
4570
4571
4572
4573
4574
4575 if test -n "$ac_tool_prefix"; then
4576   for ac_prog in ar
4577   do
4578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_AR+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -n "$AR"; then
4586   ac_cv_prog_AR="$AR" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593     for ac_exec_ext in '' $ac_executable_extensions; do
4594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600   done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 AR=$ac_cv_prog_AR
4606 if test -n "$AR"; then
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4608 $as_echo "$AR" >&6; }
4609 else
4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614
4615     test -n "$AR" && break
4616   done
4617 fi
4618 if test -z "$AR"; then
4619   ac_ct_AR=$AR
4620   for ac_prog in ar
4621 do
4622   # Extract the first word of "$ac_prog", so it can be a program name with args.
4623 set dummy $ac_prog; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if test -n "$ac_ct_AR"; then
4630   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637     for ac_exec_ext in '' $ac_executable_extensions; do
4638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639     ac_cv_prog_ac_ct_AR="$ac_prog"
4640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644   done
4645 IFS=$as_save_IFS
4646
4647 fi
4648 fi
4649 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4650 if test -n "$ac_ct_AR"; then
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4652 $as_echo "$ac_ct_AR" >&6; }
4653 else
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657
4658
4659   test -n "$ac_ct_AR" && break
4660 done
4661
4662   if test "x$ac_ct_AR" = x; then
4663     AR="false"
4664   else
4665     case $cross_compiling:$ac_tool_warned in
4666 yes:)
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669 ac_tool_warned=yes ;;
4670 esac
4671     AR=$ac_ct_AR
4672   fi
4673 fi
4674
4675 : ${AR=ar}
4676 : ${AR_FLAGS=cru}
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4689 $as_echo_n "checking for archiver @FILE support... " >&6; }
4690 if ${lt_cv_ar_at_file+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   lt_cv_ar_at_file=no
4694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h.  */
4696
4697 int
4698 main ()
4699 {
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706   echo conftest.$ac_objext > conftest.lst
4707       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4708       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4709   (eval $lt_ar_try) 2>&5
4710   ac_status=$?
4711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712   test $ac_status = 0; }
4713       if test "$ac_status" -eq 0; then
4714         # Ensure the archiver fails upon bogus file names.
4715         rm -f conftest.$ac_objext libconftest.a
4716         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4717   (eval $lt_ar_try) 2>&5
4718   ac_status=$?
4719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720   test $ac_status = 0; }
4721         if test "$ac_status" -ne 0; then
4722           lt_cv_ar_at_file=@
4723         fi
4724       fi
4725       rm -f conftest.* libconftest.a
4726
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4732 $as_echo "$lt_cv_ar_at_file" >&6; }
4733
4734 if test "x$lt_cv_ar_at_file" = xno; then
4735   archiver_list_spec=
4736 else
4737   archiver_list_spec=$lt_cv_ar_at_file
4738 fi
4739
4740
4741
4742
4743
4744
4745
4746 if test -n "$ac_tool_prefix"; then
4747   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}strip; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_STRIP+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -n "$STRIP"; then
4755   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 STRIP=$ac_cv_prog_STRIP
4775 if test -n "$STRIP"; then
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4777 $as_echo "$STRIP" >&6; }
4778 else
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4781 fi
4782
4783
4784 fi
4785 if test -z "$ac_cv_prog_STRIP"; then
4786   ac_ct_STRIP=$STRIP
4787   # Extract the first word of "strip", so it can be a program name with args.
4788 set dummy strip; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if test -n "$ac_ct_STRIP"; then
4795   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804     ac_cv_prog_ac_ct_STRIP="strip"
4805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809   done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4815 if test -n "$ac_ct_STRIP"; then
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4817 $as_echo "$ac_ct_STRIP" >&6; }
4818 else
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823   if test "x$ac_ct_STRIP" = x; then
4824     STRIP=":"
4825   else
4826     case $cross_compiling:$ac_tool_warned in
4827 yes:)
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4831 esac
4832     STRIP=$ac_ct_STRIP
4833   fi
4834 else
4835   STRIP="$ac_cv_prog_STRIP"
4836 fi
4837
4838 test -z "$STRIP" && STRIP=:
4839
4840
4841
4842
4843
4844
4845 if test -n "$ac_tool_prefix"; then
4846   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_RANLIB+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if test -n "$RANLIB"; then
4854   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868   done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 RANLIB=$ac_cv_prog_RANLIB
4874 if test -n "$RANLIB"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4876 $as_echo "$RANLIB" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883 fi
4884 if test -z "$ac_cv_prog_RANLIB"; then
4885   ac_ct_RANLIB=$RANLIB
4886   # Extract the first word of "ranlib", so it can be a program name with args.
4887 set dummy ranlib; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -n "$ac_ct_RANLIB"; then
4894   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_prog_ac_ct_RANLIB="ranlib"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4914 if test -n "$ac_ct_RANLIB"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4916 $as_echo "$ac_ct_RANLIB" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922   if test "x$ac_ct_RANLIB" = x; then
4923     RANLIB=":"
4924   else
4925     case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4930 esac
4931     RANLIB=$ac_ct_RANLIB
4932   fi
4933 else
4934   RANLIB="$ac_cv_prog_RANLIB"
4935 fi
4936
4937 test -z "$RANLIB" && RANLIB=:
4938
4939
4940
4941
4942
4943
4944 # Determine commands to create old-style static archives.
4945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4946 old_postinstall_cmds='chmod 644 $oldlib'
4947 old_postuninstall_cmds=
4948
4949 if test -n "$RANLIB"; then
4950   case $host_os in
4951   openbsd*)
4952     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
4953     ;;
4954   *)
4955     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
4956     ;;
4957   esac
4958   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
4959 fi
4960
4961 case $host_os in
4962   darwin*)
4963     lock_old_archive_extraction=yes ;;
4964   *)
4965     lock_old_archive_extraction=no ;;
4966 esac
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 for ac_prog in gawk mawk nawk awk
4989 do
4990   # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_AWK+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   if test -n "$AWK"; then
4998   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_prog_AWK="$ac_prog"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 AWK=$ac_cv_prog_AWK
5018 if test -n "$AWK"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5020 $as_echo "$AWK" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027   test -n "$AWK" && break
5028 done
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 # If no C compiler was specified, use CC.
5049 LTCC=${LTCC-"$CC"}
5050
5051 # If no C compiler flags were specified, use CFLAGS.
5052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5053
5054 # Allow CC to be a program name with arguments.
5055 compiler=$CC
5056
5057
5058 # Check for command to grab the raw symbol name followed by C symbol from nm.
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5060 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5061 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064
5065 # These are sane defaults that work on at least a few old systems.
5066 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5067
5068 # Character class describing NM global symbol codes.
5069 symcode='[BCDEGRST]'
5070
5071 # Regexp to match symbols that can be accessed directly from C.
5072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5073
5074 # Define system-specific variables.
5075 case $host_os in
5076 aix*)
5077   symcode='[BCDT]'
5078   ;;
5079 cygwin* | mingw* | pw32* | cegcc*)
5080   symcode='[ABCDGISTW]'
5081   ;;
5082 hpux*)
5083   if test "$host_cpu" = ia64; then
5084     symcode='[ABCDEGRST]'
5085   fi
5086   ;;
5087 irix* | nonstopux*)
5088   symcode='[BCDEGRST]'
5089   ;;
5090 osf*)
5091   symcode='[BCDEGQRST]'
5092   ;;
5093 solaris*)
5094   symcode='[BDRT]'
5095   ;;
5096 sco3.2v5*)
5097   symcode='[DT]'
5098   ;;
5099 sysv4.2uw2*)
5100   symcode='[DT]'
5101   ;;
5102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5103   symcode='[ABDT]'
5104   ;;
5105 sysv4)
5106   symcode='[DFNSTU]'
5107   ;;
5108 esac
5109
5110 # If we're using GNU nm, then use its standard symbol codes.
5111 case `$NM -V 2>&1` in
5112 *GNU* | *'with BFD'*)
5113   symcode='[ABCDGIRSTW]' ;;
5114 esac
5115
5116 # Transform an extracted symbol line into a proper C declaration.
5117 # Some systems (esp. on ia64) link data and code symbols differently,
5118 # so use this general approach.
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120
5121 # Transform an extracted symbol line into symbol name and symbol address
5122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5123 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'"
5124
5125 # Handle CRLF in mingw tool chain
5126 opt_cr=
5127 case $build_os in
5128 mingw*)
5129   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5130   ;;
5131 esac
5132
5133 # Try without a prefix underscore, then with it.
5134 for ac_symprfx in "" "_"; do
5135
5136   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5137   symxfrm="\\1 $ac_symprfx\\2 \\2"
5138
5139   # Write the raw and C identifiers.
5140   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5141     # Fake it for dumpbin and say T for any non-static function
5142     # and D for any global variable.
5143     # Also find C++ and __fastcall symbols from MSVC++,
5144     # which start with @ or ?.
5145     lt_cv_sys_global_symbol_pipe="$AWK '"\
5146 "     {last_section=section; section=\$ 3};"\
5147 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5148 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5149 "     \$ 0!~/External *\|/{next};"\
5150 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5151 "     {if(hide[section]) next};"\
5152 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5153 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5154 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5155 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5156 "     ' prfx=^$ac_symprfx"
5157   else
5158     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5159   fi
5160   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5161
5162   # Check to see that the pipe works correctly.
5163   pipe_works=no
5164
5165   rm -f conftest*
5166   cat > conftest.$ac_ext <<_LT_EOF
5167 #ifdef __cplusplus
5168 extern "C" {
5169 #endif
5170 char nm_test_var;
5171 void nm_test_func(void);
5172 void nm_test_func(void){}
5173 #ifdef __cplusplus
5174 }
5175 #endif
5176 int main(){nm_test_var='a';nm_test_func();return(0);}
5177 _LT_EOF
5178
5179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5180   (eval $ac_compile) 2>&5
5181   ac_status=$?
5182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183   test $ac_status = 0; }; then
5184     # Now try to grab the symbols.
5185     nlist=conftest.nm
5186     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5187   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5188   ac_status=$?
5189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190   test $ac_status = 0; } && test -s "$nlist"; then
5191       # Try sorting and uniquifying the output.
5192       if sort "$nlist" | uniq > "$nlist"T; then
5193         mv -f "$nlist"T "$nlist"
5194       else
5195         rm -f "$nlist"T
5196       fi
5197
5198       # Make sure that we snagged all the symbols we need.
5199       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5200         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5201           cat <<_LT_EOF > conftest.$ac_ext
5202 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5203 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5204 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5205    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5206 # define LT_DLSYM_CONST
5207 #elif defined(__osf__)
5208 /* This system does not cope well with relocations in const data.  */
5209 # define LT_DLSYM_CONST
5210 #else
5211 # define LT_DLSYM_CONST const
5212 #endif
5213
5214 #ifdef __cplusplus
5215 extern "C" {
5216 #endif
5217
5218 _LT_EOF
5219           # Now generate the symbol file.
5220           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5221
5222           cat <<_LT_EOF >> conftest.$ac_ext
5223
5224 /* The mapping between symbol names and symbols.  */
5225 LT_DLSYM_CONST struct {
5226   const char *name;
5227   void       *address;
5228 }
5229 lt__PROGRAM__LTX_preloaded_symbols[] =
5230 {
5231   { "@PROGRAM@", (void *) 0 },
5232 _LT_EOF
5233           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5234           cat <<\_LT_EOF >> conftest.$ac_ext
5235   {0, (void *) 0}
5236 };
5237
5238 /* This works around a problem in FreeBSD linker */
5239 #ifdef FREEBSD_WORKAROUND
5240 static const void *lt_preloaded_setup() {
5241   return lt__PROGRAM__LTX_preloaded_symbols;
5242 }
5243 #endif
5244
5245 #ifdef __cplusplus
5246 }
5247 #endif
5248 _LT_EOF
5249           # Now try linking the two files.
5250           mv conftest.$ac_objext conftstm.$ac_objext
5251           lt_globsym_save_LIBS=$LIBS
5252           lt_globsym_save_CFLAGS=$CFLAGS
5253           LIBS="conftstm.$ac_objext"
5254           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5255           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5256   (eval $ac_link) 2>&5
5257   ac_status=$?
5258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5260             pipe_works=yes
5261           fi
5262           LIBS=$lt_globsym_save_LIBS
5263           CFLAGS=$lt_globsym_save_CFLAGS
5264         else
5265           echo "cannot find nm_test_func in $nlist" >&5
5266         fi
5267       else
5268         echo "cannot find nm_test_var in $nlist" >&5
5269       fi
5270     else
5271       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5272     fi
5273   else
5274     echo "$progname: failed program was:" >&5
5275     cat conftest.$ac_ext >&5
5276   fi
5277   rm -rf conftest* conftst*
5278
5279   # Do not use the global_symbol_pipe unless it works.
5280   if test "$pipe_works" = yes; then
5281     break
5282   else
5283     lt_cv_sys_global_symbol_pipe=
5284   fi
5285 done
5286
5287 fi
5288
5289 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5290   lt_cv_sys_global_symbol_to_cdecl=
5291 fi
5292 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5294 $as_echo "failed" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5297 $as_echo "ok" >&6; }
5298 fi
5299
5300 # Response file support.
5301 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5302   nm_file_list_spec='@'
5303 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5304   nm_file_list_spec='@'
5305 fi
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5334 $as_echo_n "checking for sysroot... " >&6; }
5335
5336 # Check whether --with-sysroot was given.
5337 if test "${with_sysroot+set}" = set; then :
5338   withval=$with_sysroot;
5339 else
5340   with_sysroot=no
5341 fi
5342
5343
5344 lt_sysroot=
5345 case ${with_sysroot} in #(
5346  yes)
5347    if test "$GCC" = yes; then
5348      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5349    fi
5350    ;; #(
5351  /*)
5352    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5353    ;; #(
5354  no|'')
5355    ;; #(
5356  *)
5357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5358 $as_echo "${with_sysroot}" >&6; }
5359    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5360    ;;
5361 esac
5362
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5364 $as_echo "${lt_sysroot:-no}" >&6; }
5365
5366
5367
5368
5369
5370 # Check whether --enable-libtool-lock was given.
5371 if test "${enable_libtool_lock+set}" = set; then :
5372   enableval=$enable_libtool_lock;
5373 fi
5374
5375 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5376
5377 # Some flags need to be propagated to the compiler or linker for good
5378 # libtool support.
5379 case $host in
5380 ia64-*-hpux*)
5381   # Find out which ABI we are using.
5382   echo 'int i;' > conftest.$ac_ext
5383   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5384   (eval $ac_compile) 2>&5
5385   ac_status=$?
5386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5387   test $ac_status = 0; }; then
5388     case `/usr/bin/file conftest.$ac_objext` in
5389       *ELF-32*)
5390         HPUX_IA64_MODE="32"
5391         ;;
5392       *ELF-64*)
5393         HPUX_IA64_MODE="64"
5394         ;;
5395     esac
5396   fi
5397   rm -rf conftest*
5398   ;;
5399 *-*-irix6*)
5400   # Find out which ABI we are using.
5401   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5402   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5403   (eval $ac_compile) 2>&5
5404   ac_status=$?
5405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406   test $ac_status = 0; }; then
5407     if test "$lt_cv_prog_gnu_ld" = yes; then
5408       case `/usr/bin/file conftest.$ac_objext` in
5409         *32-bit*)
5410           LD="${LD-ld} -melf32bsmip"
5411           ;;
5412         *N32*)
5413           LD="${LD-ld} -melf32bmipn32"
5414           ;;
5415         *64-bit*)
5416           LD="${LD-ld} -melf64bmip"
5417         ;;
5418       esac
5419     else
5420       case `/usr/bin/file conftest.$ac_objext` in
5421         *32-bit*)
5422           LD="${LD-ld} -32"
5423           ;;
5424         *N32*)
5425           LD="${LD-ld} -n32"
5426           ;;
5427         *64-bit*)
5428           LD="${LD-ld} -64"
5429           ;;
5430       esac
5431     fi
5432   fi
5433   rm -rf conftest*
5434   ;;
5435
5436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5438   # Find out which ABI we are using.
5439   echo 'int i;' > conftest.$ac_ext
5440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5441   (eval $ac_compile) 2>&5
5442   ac_status=$?
5443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5444   test $ac_status = 0; }; then
5445     case `/usr/bin/file conftest.o` in
5446       *32-bit*)
5447         case $host in
5448           x86_64-*kfreebsd*-gnu)
5449             LD="${LD-ld} -m elf_i386_fbsd"
5450             ;;
5451           x86_64-*linux*)
5452             LD="${LD-ld} -m elf_i386"
5453             ;;
5454           ppc64-*linux*|powerpc64-*linux*)
5455             LD="${LD-ld} -m elf32ppclinux"
5456             ;;
5457           s390x-*linux*)
5458             LD="${LD-ld} -m elf_s390"
5459             ;;
5460           sparc64-*linux*)
5461             LD="${LD-ld} -m elf32_sparc"
5462             ;;
5463         esac
5464         ;;
5465       *64-bit*)
5466         case $host in
5467           x86_64-*kfreebsd*-gnu)
5468             LD="${LD-ld} -m elf_x86_64_fbsd"
5469             ;;
5470           x86_64-*linux*)
5471             LD="${LD-ld} -m elf_x86_64"
5472             ;;
5473           ppc*-*linux*|powerpc*-*linux*)
5474             LD="${LD-ld} -m elf64ppc"
5475             ;;
5476           s390*-*linux*|s390*-*tpf*)
5477             LD="${LD-ld} -m elf64_s390"
5478             ;;
5479           sparc*-*linux*)
5480             LD="${LD-ld} -m elf64_sparc"
5481             ;;
5482         esac
5483         ;;
5484     esac
5485   fi
5486   rm -rf conftest*
5487   ;;
5488
5489 *-*-sco3.2v5*)
5490   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5491   SAVE_CFLAGS="$CFLAGS"
5492   CFLAGS="$CFLAGS -belf"
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5494 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5495 if ${lt_cv_cc_needs_belf+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   ac_ext=c
5499 ac_cpp='$CPP $CPPFLAGS'
5500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503
5504      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506
5507 int
5508 main ()
5509 {
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_link "$LINENO"; then :
5516   lt_cv_cc_needs_belf=yes
5517 else
5518   lt_cv_cc_needs_belf=no
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext \
5521     conftest$ac_exeext conftest.$ac_ext
5522      ac_ext=c
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5530 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5531   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5532     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5533     CFLAGS="$SAVE_CFLAGS"
5534   fi
5535   ;;
5536 *-*solaris*)
5537   # Find out which ABI we are using.
5538   echo 'int i;' > conftest.$ac_ext
5539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5540   (eval $ac_compile) 2>&5
5541   ac_status=$?
5542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5543   test $ac_status = 0; }; then
5544     case `/usr/bin/file conftest.o` in
5545     *64-bit*)
5546       case $lt_cv_prog_gnu_ld in
5547       yes*)
5548         case $host in
5549         i?86-*-solaris*)
5550           LD="${LD-ld} -m elf_x86_64"
5551           ;;
5552         sparc*-*-solaris*)
5553           LD="${LD-ld} -m elf64_sparc"
5554           ;;
5555         esac
5556         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5557         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5558           LD="${LD-ld}_sol2"
5559         fi
5560         ;;
5561       *)
5562         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5563           LD="${LD-ld} -64"
5564         fi
5565         ;;
5566       esac
5567       ;;
5568     esac
5569   fi
5570   rm -rf conftest*
5571   ;;
5572 esac
5573
5574 need_locks="$enable_libtool_lock"
5575
5576 if test -n "$ac_tool_prefix"; then
5577   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}mt; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   if test -n "$MANIFEST_TOOL"; then
5585   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590   IFS=$as_save_IFS
5591   test -z "$as_dir" && as_dir=.
5592     for ac_exec_ext in '' $ac_executable_extensions; do
5593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596     break 2
5597   fi
5598 done
5599   done
5600 IFS=$as_save_IFS
5601
5602 fi
5603 fi
5604 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5605 if test -n "$MANIFEST_TOOL"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5607 $as_echo "$MANIFEST_TOOL" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 fi
5615 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5616   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5617   # Extract the first word of "mt", so it can be a program name with args.
5618 set dummy mt; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$ac_ct_MANIFEST_TOOL"; then
5625   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5645 if test -n "$ac_ct_MANIFEST_TOOL"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5647 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653   if test "x$ac_ct_MANIFEST_TOOL" = x; then
5654     MANIFEST_TOOL=":"
5655   else
5656     case $cross_compiling:$ac_tool_warned in
5657 yes:)
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5663   fi
5664 else
5665   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5666 fi
5667
5668 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5670 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5671 if ${lt_cv_path_mainfest_tool+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   lt_cv_path_mainfest_tool=no
5675   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5676   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5677   cat conftest.err >&5
5678   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5679     lt_cv_path_mainfest_tool=yes
5680   fi
5681   rm -f conftest*
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5684 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5685 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5686   MANIFEST_TOOL=:
5687 fi
5688
5689
5690
5691
5692
5693
5694   case $host_os in
5695     rhapsody* | darwin*)
5696     if test -n "$ac_tool_prefix"; then
5697   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$DSYMUTIL"; then
5705   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5725 if test -n "$DSYMUTIL"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5727 $as_echo "$DSYMUTIL" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_prog_DSYMUTIL"; then
5736   ac_ct_DSYMUTIL=$DSYMUTIL
5737   # Extract the first word of "dsymutil", so it can be a program name with args.
5738 set dummy dsymutil; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$ac_ct_DSYMUTIL"; then
5745   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5765 if test -n "$ac_ct_DSYMUTIL"; then
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5767 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773   if test "x$ac_ct_DSYMUTIL" = x; then
5774     DSYMUTIL=":"
5775   else
5776     case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782     DSYMUTIL=$ac_ct_DSYMUTIL
5783   fi
5784 else
5785   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5786 fi
5787
5788     if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_NMEDIT+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$NMEDIT"; then
5797   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 NMEDIT=$ac_cv_prog_NMEDIT
5817 if test -n "$NMEDIT"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5819 $as_echo "$NMEDIT" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826 fi
5827 if test -z "$ac_cv_prog_NMEDIT"; then
5828   ac_ct_NMEDIT=$NMEDIT
5829   # Extract the first word of "nmedit", so it can be a program name with args.
5830 set dummy nmedit; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$ac_ct_NMEDIT"; then
5837   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5857 if test -n "$ac_ct_NMEDIT"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5859 $as_echo "$ac_ct_NMEDIT" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865   if test "x$ac_ct_NMEDIT" = x; then
5866     NMEDIT=":"
5867   else
5868     case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5873 esac
5874     NMEDIT=$ac_ct_NMEDIT
5875   fi
5876 else
5877   NMEDIT="$ac_cv_prog_NMEDIT"
5878 fi
5879
5880     if test -n "$ac_tool_prefix"; then
5881   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_LIPO+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test -n "$LIPO"; then
5889   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 LIPO=$ac_cv_prog_LIPO
5909 if test -n "$LIPO"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5911 $as_echo "$LIPO" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917
5918 fi
5919 if test -z "$ac_cv_prog_LIPO"; then
5920   ac_ct_LIPO=$LIPO
5921   # Extract the first word of "lipo", so it can be a program name with args.
5922 set dummy lipo; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if test -n "$ac_ct_LIPO"; then
5929   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_ac_ct_LIPO="lipo"
5939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943   done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5949 if test -n "$ac_ct_LIPO"; then
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5951 $as_echo "$ac_ct_LIPO" >&6; }
5952 else
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957   if test "x$ac_ct_LIPO" = x; then
5958     LIPO=":"
5959   else
5960     case $cross_compiling:$ac_tool_warned in
5961 yes:)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5965 esac
5966     LIPO=$ac_ct_LIPO
5967   fi
5968 else
5969   LIPO="$ac_cv_prog_LIPO"
5970 fi
5971
5972     if test -n "$ac_tool_prefix"; then
5973   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}otool; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_OTOOL+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   if test -n "$OTOOL"; then
5981   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988     for ac_exec_ext in '' $ac_executable_extensions; do
5989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995   done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 OTOOL=$ac_cv_prog_OTOOL
6001 if test -n "$OTOOL"; then
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6003 $as_echo "$OTOOL" >&6; }
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_OTOOL"; then
6012   ac_ct_OTOOL=$OTOOL
6013   # Extract the first word of "otool", so it can be a program name with args.
6014 set dummy otool; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   if test -n "$ac_ct_OTOOL"; then
6021   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028     for ac_exec_ext in '' $ac_executable_extensions; do
6029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030     ac_cv_prog_ac_ct_OTOOL="otool"
6031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035   done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6041 if test -n "$ac_ct_OTOOL"; then
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6043 $as_echo "$ac_ct_OTOOL" >&6; }
6044 else
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049   if test "x$ac_ct_OTOOL" = x; then
6050     OTOOL=":"
6051   else
6052     case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058     OTOOL=$ac_ct_OTOOL
6059   fi
6060 else
6061   OTOOL="$ac_cv_prog_OTOOL"
6062 fi
6063
6064     if test -n "$ac_tool_prefix"; then
6065   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_OTOOL64+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$OTOOL64"; then
6073   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 OTOOL64=$ac_cv_prog_OTOOL64
6093 if test -n "$OTOOL64"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6095 $as_echo "$OTOOL64" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101
6102 fi
6103 if test -z "$ac_cv_prog_OTOOL64"; then
6104   ac_ct_OTOOL64=$OTOOL64
6105   # Extract the first word of "otool64", so it can be a program name with args.
6106 set dummy otool64; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   if test -n "$ac_ct_OTOOL64"; then
6113   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122     ac_cv_prog_ac_ct_OTOOL64="otool64"
6123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127   done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6133 if test -n "$ac_ct_OTOOL64"; then
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6135 $as_echo "$ac_ct_OTOOL64" >&6; }
6136 else
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141   if test "x$ac_ct_OTOOL64" = x; then
6142     OTOOL64=":"
6143   else
6144     case $cross_compiling:$ac_tool_warned in
6145 yes:)
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6148 ac_tool_warned=yes ;;
6149 esac
6150     OTOOL64=$ac_ct_OTOOL64
6151   fi
6152 else
6153   OTOOL64="$ac_cv_prog_OTOOL64"
6154 fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6183 $as_echo_n "checking for -single_module linker flag... " >&6; }
6184 if ${lt_cv_apple_cc_single_mod+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   lt_cv_apple_cc_single_mod=no
6188       if test -z "${LT_MULTI_MODULE}"; then
6189         # By default we will add the -single_module flag. You can override
6190         # by either setting the environment variable LT_MULTI_MODULE
6191         # non-empty at configure time, or by adding -multi_module to the
6192         # link flags.
6193         rm -rf libconftest.dylib*
6194         echo "int foo(void){return 1;}" > conftest.c
6195         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6196 -dynamiclib -Wl,-single_module conftest.c" >&5
6197         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6198           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6199         _lt_result=$?
6200         # If there is a non-empty error log, and "single_module"
6201         # appears in it, assume the flag caused a linker warning
6202         if test -s conftest.err && $GREP single_module conftest.err; then
6203           cat conftest.err >&5
6204         # Otherwise, if the output was created with a 0 exit code from
6205         # the compiler, it worked.
6206         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6207           lt_cv_apple_cc_single_mod=yes
6208         else
6209           cat conftest.err >&5
6210         fi
6211         rm -rf libconftest.dylib*
6212         rm -f conftest.*
6213       fi
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6216 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6217
6218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6219 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6220 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   lt_cv_ld_exported_symbols_list=no
6224       save_LDFLAGS=$LDFLAGS
6225       echo "_main" > conftest.sym
6226       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6227       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229
6230 int
6231 main ()
6232 {
6233
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_link "$LINENO"; then :
6239   lt_cv_ld_exported_symbols_list=yes
6240 else
6241   lt_cv_ld_exported_symbols_list=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext \
6244     conftest$ac_exeext conftest.$ac_ext
6245         LDFLAGS="$save_LDFLAGS"
6246
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6249 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6250
6251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6252 $as_echo_n "checking for -force_load linker flag... " >&6; }
6253 if ${lt_cv_ld_force_load+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   lt_cv_ld_force_load=no
6257       cat > conftest.c << _LT_EOF
6258 int forced_loaded() { return 2;}
6259 _LT_EOF
6260       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6261       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6262       echo "$AR cru libconftest.a conftest.o" >&5
6263       $AR cru libconftest.a conftest.o 2>&5
6264       echo "$RANLIB libconftest.a" >&5
6265       $RANLIB libconftest.a 2>&5
6266       cat > conftest.c << _LT_EOF
6267 int main() { return 0;}
6268 _LT_EOF
6269       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6270       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6271       _lt_result=$?
6272       if test -s conftest.err && $GREP force_load conftest.err; then
6273         cat conftest.err >&5
6274       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6275         lt_cv_ld_force_load=yes
6276       else
6277         cat conftest.err >&5
6278       fi
6279         rm -f conftest.err libconftest.a conftest conftest.c
6280         rm -rf conftest.dSYM
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6284 $as_echo "$lt_cv_ld_force_load" >&6; }
6285     case $host_os in
6286     rhapsody* | darwin1.[012])
6287       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6288     darwin1.*)
6289       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6290     darwin*) # darwin 5.x on
6291       # if running on 10.5 or later, the deployment target defaults
6292       # to the OS version, if on x86, and 10.4, the deployment
6293       # target defaults to 10.4. Don't you love it?
6294       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6295         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6296           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6297         10.[012]*)
6298           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6299         10.*)
6300           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6301       esac
6302     ;;
6303   esac
6304     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6305       _lt_dar_single_mod='$single_module'
6306     fi
6307     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6308       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6309     else
6310       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6311     fi
6312     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6313       _lt_dsymutil='~$DSYMUTIL $lib || :'
6314     else
6315       _lt_dsymutil=
6316     fi
6317     ;;
6318   esac
6319
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6327 # On Suns, sometimes $CPP names a directory.
6328 if test -n "$CPP" && test -d "$CPP"; then
6329   CPP=
6330 fi
6331 if test -z "$CPP"; then
6332   if ${ac_cv_prog_CPP+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335       # Double quotes because CPP needs to be expanded
6336     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6337     do
6338       ac_preproc_ok=false
6339 for ac_c_preproc_warn_flag in '' yes
6340 do
6341   # Use a header file that comes with gcc, so configuring glibc
6342   # with a fresh cross-compiler works.
6343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344   # <limits.h> exists even on freestanding compilers.
6345   # On the NeXT, cc -E runs the code through the compiler's parser,
6346   # not just through cpp. "Syntax error" is here to catch this case.
6347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h.  */
6349 #ifdef __STDC__
6350 # include <limits.h>
6351 #else
6352 # include <assert.h>
6353 #endif
6354                      Syntax error
6355 _ACEOF
6356 if ac_fn_c_try_cpp "$LINENO"; then :
6357
6358 else
6359   # Broken: fails on valid input.
6360 continue
6361 fi
6362 rm -f conftest.err conftest.i conftest.$ac_ext
6363
6364   # OK, works on sane cases.  Now check whether nonexistent headers
6365   # can be detected and how.
6366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h.  */
6368 #include <ac_nonexistent.h>
6369 _ACEOF
6370 if ac_fn_c_try_cpp "$LINENO"; then :
6371   # Broken: success on invalid input.
6372 continue
6373 else
6374   # Passes both tests.
6375 ac_preproc_ok=:
6376 break
6377 fi
6378 rm -f conftest.err conftest.i conftest.$ac_ext
6379
6380 done
6381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382 rm -f conftest.i conftest.err conftest.$ac_ext
6383 if $ac_preproc_ok; then :
6384   break
6385 fi
6386
6387     done
6388     ac_cv_prog_CPP=$CPP
6389
6390 fi
6391   CPP=$ac_cv_prog_CPP
6392 else
6393   ac_cv_prog_CPP=$CPP
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6396 $as_echo "$CPP" >&6; }
6397 ac_preproc_ok=false
6398 for ac_c_preproc_warn_flag in '' yes
6399 do
6400   # Use a header file that comes with gcc, so configuring glibc
6401   # with a fresh cross-compiler works.
6402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403   # <limits.h> exists even on freestanding compilers.
6404   # On the NeXT, cc -E runs the code through the compiler's parser,
6405   # not just through cpp. "Syntax error" is here to catch this case.
6406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413                      Syntax error
6414 _ACEOF
6415 if ac_fn_c_try_cpp "$LINENO"; then :
6416
6417 else
6418   # Broken: fails on valid input.
6419 continue
6420 fi
6421 rm -f conftest.err conftest.i conftest.$ac_ext
6422
6423   # OK, works on sane cases.  Now check whether nonexistent headers
6424   # can be detected and how.
6425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h.  */
6427 #include <ac_nonexistent.h>
6428 _ACEOF
6429 if ac_fn_c_try_cpp "$LINENO"; then :
6430   # Broken: success on invalid input.
6431 continue
6432 else
6433   # Passes both tests.
6434 ac_preproc_ok=:
6435 break
6436 fi
6437 rm -f conftest.err conftest.i conftest.$ac_ext
6438
6439 done
6440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441 rm -f conftest.i conftest.err conftest.$ac_ext
6442 if $ac_preproc_ok; then :
6443
6444 else
6445   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6447 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6448 See \`config.log' for more details" "$LINENO" 5; }
6449 fi
6450
6451 ac_ext=c
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6459 $as_echo_n "checking for ANSI C header files... " >&6; }
6460 if ${ac_cv_header_stdc+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h.  */
6465 #include <stdlib.h>
6466 #include <stdarg.h>
6467 #include <string.h>
6468 #include <float.h>
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479   ac_cv_header_stdc=yes
6480 else
6481   ac_cv_header_stdc=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484
6485 if test $ac_cv_header_stdc = yes; then
6486   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h.  */
6489 #include <string.h>
6490
6491 _ACEOF
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493   $EGREP "memchr" >/dev/null 2>&1; then :
6494
6495 else
6496   ac_cv_header_stdc=no
6497 fi
6498 rm -f conftest*
6499
6500 fi
6501
6502 if test $ac_cv_header_stdc = yes; then
6503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506 #include <stdlib.h>
6507
6508 _ACEOF
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510   $EGREP "free" >/dev/null 2>&1; then :
6511
6512 else
6513   ac_cv_header_stdc=no
6514 fi
6515 rm -f conftest*
6516
6517 fi
6518
6519 if test $ac_cv_header_stdc = yes; then
6520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6521   if test "$cross_compiling" = yes; then :
6522   :
6523 else
6524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h.  */
6526 #include <ctype.h>
6527 #include <stdlib.h>
6528 #if ((' ' & 0x0FF) == 0x020)
6529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6531 #else
6532 # define ISLOWER(c) \
6533                    (('a' <= (c) && (c) <= 'i') \
6534                      || ('j' <= (c) && (c) <= 'r') \
6535                      || ('s' <= (c) && (c) <= 'z'))
6536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6537 #endif
6538
6539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 int
6541 main ()
6542 {
6543   int i;
6544   for (i = 0; i < 256; i++)
6545     if (XOR (islower (i), ISLOWER (i))
6546         || toupper (i) != TOUPPER (i))
6547       return 2;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_run "$LINENO"; then :
6552
6553 else
6554   ac_cv_header_stdc=no
6555 fi
6556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557   conftest.$ac_objext conftest.beam conftest.$ac_ext
6558 fi
6559
6560 fi
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6563 $as_echo "$ac_cv_header_stdc" >&6; }
6564 if test $ac_cv_header_stdc = yes; then
6565
6566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6567
6568 fi
6569
6570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6572                   inttypes.h stdint.h unistd.h
6573 do :
6574   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6576 "
6577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6578   cat >>confdefs.h <<_ACEOF
6579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580 _ACEOF
6581
6582 fi
6583
6584 done
6585
6586
6587 for ac_header in dlfcn.h
6588 do :
6589   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6590 "
6591 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6592   cat >>confdefs.h <<_ACEOF
6593 #define HAVE_DLFCN_H 1
6594 _ACEOF
6595
6596 fi
6597
6598 done
6599
6600
6601
6602
6603
6604 # Set options
6605
6606
6607
6608         enable_dlopen=no
6609
6610
6611   enable_win32_dll=no
6612
6613
6614             # Check whether --enable-shared was given.
6615 if test "${enable_shared+set}" = set; then :
6616   enableval=$enable_shared; p=${PACKAGE-default}
6617     case $enableval in
6618     yes) enable_shared=yes ;;
6619     no) enable_shared=no ;;
6620     *)
6621       enable_shared=no
6622       # Look at the argument we got.  We use all the common list separators.
6623       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6624       for pkg in $enableval; do
6625         IFS="$lt_save_ifs"
6626         if test "X$pkg" = "X$p"; then
6627           enable_shared=yes
6628         fi
6629       done
6630       IFS="$lt_save_ifs"
6631       ;;
6632     esac
6633 else
6634   enable_shared=yes
6635 fi
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645   # Check whether --enable-static was given.
6646 if test "${enable_static+set}" = set; then :
6647   enableval=$enable_static; p=${PACKAGE-default}
6648     case $enableval in
6649     yes) enable_static=yes ;;
6650     no) enable_static=no ;;
6651     *)
6652      enable_static=no
6653       # Look at the argument we got.  We use all the common list separators.
6654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6655       for pkg in $enableval; do
6656         IFS="$lt_save_ifs"
6657         if test "X$pkg" = "X$p"; then
6658           enable_static=yes
6659         fi
6660       done
6661       IFS="$lt_save_ifs"
6662       ;;
6663     esac
6664 else
6665   enable_static=yes
6666 fi
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 # Check whether --with-pic was given.
6678 if test "${with_pic+set}" = set; then :
6679   withval=$with_pic; lt_p=${PACKAGE-default}
6680     case $withval in
6681     yes|no) pic_mode=$withval ;;
6682     *)
6683       pic_mode=default
6684       # Look at the argument we got.  We use all the common list separators.
6685       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6686       for lt_pkg in $withval; do
6687         IFS="$lt_save_ifs"
6688         if test "X$lt_pkg" = "X$lt_p"; then
6689           pic_mode=yes
6690         fi
6691       done
6692       IFS="$lt_save_ifs"
6693       ;;
6694     esac
6695 else
6696   pic_mode=default
6697 fi
6698
6699
6700 test -z "$pic_mode" && pic_mode=default
6701
6702
6703
6704
6705
6706
6707
6708   # Check whether --enable-fast-install was given.
6709 if test "${enable_fast_install+set}" = set; then :
6710   enableval=$enable_fast_install; p=${PACKAGE-default}
6711     case $enableval in
6712     yes) enable_fast_install=yes ;;
6713     no) enable_fast_install=no ;;
6714     *)
6715       enable_fast_install=no
6716       # Look at the argument we got.  We use all the common list separators.
6717       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6718       for pkg in $enableval; do
6719         IFS="$lt_save_ifs"
6720         if test "X$pkg" = "X$p"; then
6721           enable_fast_install=yes
6722         fi
6723       done
6724       IFS="$lt_save_ifs"
6725       ;;
6726     esac
6727 else
6728   enable_fast_install=yes
6729 fi
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741 # This can be used to rebuild libtool when needed
6742 LIBTOOL_DEPS="$ltmain"
6743
6744 # Always use our own libtool.
6745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776 test -z "$LN_S" && LN_S="ln -s"
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 if test -n "${ZSH_VERSION+set}" ; then
6792    setopt NO_GLOB_SUBST
6793 fi
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6796 $as_echo_n "checking for objdir... " >&6; }
6797 if ${lt_cv_objdir+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   rm -f .libs 2>/dev/null
6801 mkdir .libs 2>/dev/null
6802 if test -d .libs; then
6803   lt_cv_objdir=.libs
6804 else
6805   # MS-DOS does not allow filenames that begin with a dot.
6806   lt_cv_objdir=_libs
6807 fi
6808 rmdir .libs 2>/dev/null
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6811 $as_echo "$lt_cv_objdir" >&6; }
6812 objdir=$lt_cv_objdir
6813
6814
6815
6816
6817
6818 cat >>confdefs.h <<_ACEOF
6819 #define LT_OBJDIR "$lt_cv_objdir/"
6820 _ACEOF
6821
6822
6823
6824
6825 case $host_os in
6826 aix3*)
6827   # AIX sometimes has problems with the GCC collect2 program.  For some
6828   # reason, if we set the COLLECT_NAMES environment variable, the problems
6829   # vanish in a puff of smoke.
6830   if test "X${COLLECT_NAMES+set}" != Xset; then
6831     COLLECT_NAMES=
6832     export COLLECT_NAMES
6833   fi
6834   ;;
6835 esac
6836
6837 # Global variables:
6838 ofile=libtool
6839 can_build_shared=yes
6840
6841 # All known linkers require a `.a' archive for static linking (except MSVC,
6842 # which needs '.lib').
6843 libext=a
6844
6845 with_gnu_ld="$lt_cv_prog_gnu_ld"
6846
6847 old_CC="$CC"
6848 old_CFLAGS="$CFLAGS"
6849
6850 # Set sane defaults for various variables
6851 test -z "$CC" && CC=cc
6852 test -z "$LTCC" && LTCC=$CC
6853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6854 test -z "$LD" && LD=ld
6855 test -z "$ac_objext" && ac_objext=o
6856
6857 for cc_temp in $compiler""; do
6858   case $cc_temp in
6859     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6860     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6861     \-*) ;;
6862     *) break;;
6863   esac
6864 done
6865 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6866
6867
6868 # Only perform the check for file, if the check method requires it
6869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6870 case $deplibs_check_method in
6871 file_magic*)
6872   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6874 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6875 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   case $MAGIC_CMD in
6879 [\\/*] |  ?:[\\/]*)
6880   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6881   ;;
6882 *)
6883   lt_save_MAGIC_CMD="$MAGIC_CMD"
6884   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6885   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6886   for ac_dir in $ac_dummy; do
6887     IFS="$lt_save_ifs"
6888     test -z "$ac_dir" && ac_dir=.
6889     if test -f $ac_dir/${ac_tool_prefix}file; then
6890       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6891       if test -n "$file_magic_test_file"; then
6892         case $deplibs_check_method in
6893         "file_magic "*)
6894           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6895           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6896           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6897             $EGREP "$file_magic_regex" > /dev/null; then
6898             :
6899           else
6900             cat <<_LT_EOF 1>&2
6901
6902 *** Warning: the command libtool uses to detect shared libraries,
6903 *** $file_magic_cmd, produces output that libtool cannot recognize.
6904 *** The result is that libtool may fail to recognize shared libraries
6905 *** as such.  This will affect the creation of libtool libraries that
6906 *** depend on shared libraries, but programs linked with such libtool
6907 *** libraries will work regardless of this problem.  Nevertheless, you
6908 *** may want to report the problem to your system manager and/or to
6909 *** bug-libtool@gnu.org
6910
6911 _LT_EOF
6912           fi ;;
6913         esac
6914       fi
6915       break
6916     fi
6917   done
6918   IFS="$lt_save_ifs"
6919   MAGIC_CMD="$lt_save_MAGIC_CMD"
6920   ;;
6921 esac
6922 fi
6923
6924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6925 if test -n "$MAGIC_CMD"; then
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6927 $as_echo "$MAGIC_CMD" >&6; }
6928 else
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934
6935
6936
6937 if test -z "$lt_cv_path_MAGIC_CMD"; then
6938   if test -n "$ac_tool_prefix"; then
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6940 $as_echo_n "checking for file... " >&6; }
6941 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   case $MAGIC_CMD in
6945 [\\/*] |  ?:[\\/]*)
6946   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6947   ;;
6948 *)
6949   lt_save_MAGIC_CMD="$MAGIC_CMD"
6950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6951   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6952   for ac_dir in $ac_dummy; do
6953     IFS="$lt_save_ifs"
6954     test -z "$ac_dir" && ac_dir=.
6955     if test -f $ac_dir/file; then
6956       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6957       if test -n "$file_magic_test_file"; then
6958         case $deplibs_check_method in
6959         "file_magic "*)
6960           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6962           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6963             $EGREP "$file_magic_regex" > /dev/null; then
6964             :
6965           else
6966             cat <<_LT_EOF 1>&2
6967
6968 *** Warning: the command libtool uses to detect shared libraries,
6969 *** $file_magic_cmd, produces output that libtool cannot recognize.
6970 *** The result is that libtool may fail to recognize shared libraries
6971 *** as such.  This will affect the creation of libtool libraries that
6972 *** depend on shared libraries, but programs linked with such libtool
6973 *** libraries will work regardless of this problem.  Nevertheless, you
6974 *** may want to report the problem to your system manager and/or to
6975 *** bug-libtool@gnu.org
6976
6977 _LT_EOF
6978           fi ;;
6979         esac
6980       fi
6981       break
6982     fi
6983   done
6984   IFS="$lt_save_ifs"
6985   MAGIC_CMD="$lt_save_MAGIC_CMD"
6986   ;;
6987 esac
6988 fi
6989
6990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991 if test -n "$MAGIC_CMD"; then
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6993 $as_echo "$MAGIC_CMD" >&6; }
6994 else
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999
7000   else
7001     MAGIC_CMD=:
7002   fi
7003 fi
7004
7005   fi
7006   ;;
7007 esac
7008
7009 # Use C for the default configuration in the libtool script
7010
7011 lt_save_CC="$CC"
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
7018
7019 # Source file extension for C test sources.
7020 ac_ext=c
7021
7022 # Object file extension for compiled C test sources.
7023 objext=o
7024 objext=$objext
7025
7026 # Code to be used in simple compile tests
7027 lt_simple_compile_test_code="int some_variable = 0;"
7028
7029 # Code to be used in simple link tests
7030 lt_simple_link_test_code='int main(){return(0);}'
7031
7032
7033
7034
7035
7036
7037
7038 # If no C compiler was specified, use CC.
7039 LTCC=${LTCC-"$CC"}
7040
7041 # If no C compiler flags were specified, use CFLAGS.
7042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7043
7044 # Allow CC to be a program name with arguments.
7045 compiler=$CC
7046
7047 # Save the default compiler, since it gets overwritten when the other
7048 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7049 compiler_DEFAULT=$CC
7050
7051 # save warnings/boilerplate of simple test code
7052 ac_outfile=conftest.$ac_objext
7053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055 _lt_compiler_boilerplate=`cat conftest.err`
7056 $RM conftest*
7057
7058 ac_outfile=conftest.$ac_objext
7059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_linker_boilerplate=`cat conftest.err`
7062 $RM -r conftest*
7063
7064
7065 ## CAVEAT EMPTOR:
7066 ## There is no encapsulation within the following macros, do not change
7067 ## the running order or otherwise move them around unless you know exactly
7068 ## what you are doing...
7069 if test -n "$compiler"; then
7070
7071 lt_prog_compiler_no_builtin_flag=
7072
7073 if test "$GCC" = yes; then
7074   case $cc_basename in
7075   nvcc*)
7076     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7077   *)
7078     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7079   esac
7080
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7082 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7083 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   lt_cv_prog_compiler_rtti_exceptions=no
7087    ac_outfile=conftest.$ac_objext
7088    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7089    lt_compiler_flag="-fno-rtti -fno-exceptions"
7090    # Insert the option either (1) after the last *FLAGS variable, or
7091    # (2) before a word containing "conftest.", or (3) at the end.
7092    # Note that $ac_compile itself does not contain backslashes and begins
7093    # with a dollar sign (not a hyphen), so the echo should work correctly.
7094    # The option is referenced via a variable to avoid confusing sed.
7095    lt_compile=`echo "$ac_compile" | $SED \
7096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098    -e 's:$: $lt_compiler_flag:'`
7099    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7100    (eval "$lt_compile" 2>conftest.err)
7101    ac_status=$?
7102    cat conftest.err >&5
7103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104    if (exit $ac_status) && test -s "$ac_outfile"; then
7105      # The compiler can only warn and ignore the option if not recognized
7106      # So say no if there are warnings other than the usual output.
7107      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7108      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7109      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7110        lt_cv_prog_compiler_rtti_exceptions=yes
7111      fi
7112    fi
7113    $RM conftest*
7114
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7117 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7118
7119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7120     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7121 else
7122     :
7123 fi
7124
7125 fi
7126
7127
7128
7129
7130
7131
7132   lt_prog_compiler_wl=
7133 lt_prog_compiler_pic=
7134 lt_prog_compiler_static=
7135
7136
7137   if test "$GCC" = yes; then
7138     lt_prog_compiler_wl='-Wl,'
7139     lt_prog_compiler_static='-static'
7140
7141     case $host_os in
7142       aix*)
7143       # All AIX code is PIC.
7144       if test "$host_cpu" = ia64; then
7145         # AIX 5 now supports IA64 processor
7146         lt_prog_compiler_static='-Bstatic'
7147       fi
7148       ;;
7149
7150     amigaos*)
7151       case $host_cpu in
7152       powerpc)
7153             # see comment about AmigaOS4 .so support
7154             lt_prog_compiler_pic='-fPIC'
7155         ;;
7156       m68k)
7157             # FIXME: we need at least 68020 code to build shared libraries, but
7158             # adding the `-m68020' flag to GCC prevents building anything better,
7159             # like `-m68040'.
7160             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7161         ;;
7162       esac
7163       ;;
7164
7165     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7166       # PIC is the default for these OSes.
7167       ;;
7168
7169     mingw* | cygwin* | pw32* | os2* | cegcc*)
7170       # This hack is so that the source file can tell whether it is being
7171       # built for inclusion in a dll (and should export symbols for example).
7172       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7173       # (--disable-auto-import) libraries
7174       lt_prog_compiler_pic='-DDLL_EXPORT'
7175       ;;
7176
7177     darwin* | rhapsody*)
7178       # PIC is the default on this platform
7179       # Common symbols not allowed in MH_DYLIB files
7180       lt_prog_compiler_pic='-fno-common'
7181       ;;
7182
7183     haiku*)
7184       # PIC is the default for Haiku.
7185       # The "-static" flag exists, but is broken.
7186       lt_prog_compiler_static=
7187       ;;
7188
7189     hpux*)
7190       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7191       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7192       # sets the default TLS model and affects inlining.
7193       case $host_cpu in
7194       hppa*64*)
7195         # +Z the default
7196         ;;
7197       *)
7198         lt_prog_compiler_pic='-fPIC'
7199         ;;
7200       esac
7201       ;;
7202
7203     interix[3-9]*)
7204       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7205       # Instead, we relocate shared libraries at runtime.
7206       ;;
7207
7208     msdosdjgpp*)
7209       # Just because we use GCC doesn't mean we suddenly get shared libraries
7210       # on systems that don't support them.
7211       lt_prog_compiler_can_build_shared=no
7212       enable_shared=no
7213       ;;
7214
7215     *nto* | *qnx*)
7216       # QNX uses GNU C++, but need to define -shared option too, otherwise
7217       # it will coredump.
7218       lt_prog_compiler_pic='-fPIC -shared'
7219       ;;
7220
7221     sysv4*MP*)
7222       if test -d /usr/nec; then
7223         lt_prog_compiler_pic=-Kconform_pic
7224       fi
7225       ;;
7226
7227     *)
7228       lt_prog_compiler_pic='-fPIC'
7229       ;;
7230     esac
7231
7232     case $cc_basename in
7233     nvcc*) # Cuda Compiler Driver 2.2
7234       lt_prog_compiler_wl='-Xlinker '
7235       if test -n "$lt_prog_compiler_pic"; then
7236         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7237       fi
7238       ;;
7239     esac
7240   else
7241     # PORTME Check for flag to pass linker flags through the system compiler.
7242     case $host_os in
7243     aix*)
7244       lt_prog_compiler_wl='-Wl,'
7245       if test "$host_cpu" = ia64; then
7246         # AIX 5 now supports IA64 processor
7247         lt_prog_compiler_static='-Bstatic'
7248       else
7249         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7250       fi
7251       ;;
7252
7253     mingw* | cygwin* | pw32* | os2* | cegcc*)
7254       # This hack is so that the source file can tell whether it is being
7255       # built for inclusion in a dll (and should export symbols for example).
7256       lt_prog_compiler_pic='-DDLL_EXPORT'
7257       ;;
7258
7259     hpux9* | hpux10* | hpux11*)
7260       lt_prog_compiler_wl='-Wl,'
7261       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7262       # not for PA HP-UX.
7263       case $host_cpu in
7264       hppa*64*|ia64*)
7265         # +Z the default
7266         ;;
7267       *)
7268         lt_prog_compiler_pic='+Z'
7269         ;;
7270       esac
7271       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7272       lt_prog_compiler_static='${wl}-a ${wl}archive'
7273       ;;
7274
7275     irix5* | irix6* | nonstopux*)
7276       lt_prog_compiler_wl='-Wl,'
7277       # PIC (with -KPIC) is the default.
7278       lt_prog_compiler_static='-non_shared'
7279       ;;
7280
7281     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7282       case $cc_basename in
7283       # old Intel for x86_64 which still supported -KPIC.
7284       ecc*)
7285         lt_prog_compiler_wl='-Wl,'
7286         lt_prog_compiler_pic='-KPIC'
7287         lt_prog_compiler_static='-static'
7288         ;;
7289       # icc used to be incompatible with GCC.
7290       # ICC 10 doesn't accept -KPIC any more.
7291       icc* | ifort*)
7292         lt_prog_compiler_wl='-Wl,'
7293         lt_prog_compiler_pic='-fPIC'
7294         lt_prog_compiler_static='-static'
7295         ;;
7296       # Lahey Fortran 8.1.
7297       lf95*)
7298         lt_prog_compiler_wl='-Wl,'
7299         lt_prog_compiler_pic='--shared'
7300         lt_prog_compiler_static='--static'
7301         ;;
7302       nagfor*)
7303         # NAG Fortran compiler
7304         lt_prog_compiler_wl='-Wl,-Wl,,'
7305         lt_prog_compiler_pic='-PIC'
7306         lt_prog_compiler_static='-Bstatic'
7307         ;;
7308       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7309         # Portland Group compilers (*not* the Pentium gcc compiler,
7310         # which looks to be a dead project)
7311         lt_prog_compiler_wl='-Wl,'
7312         lt_prog_compiler_pic='-fpic'
7313         lt_prog_compiler_static='-Bstatic'
7314         ;;
7315       ccc*)
7316         lt_prog_compiler_wl='-Wl,'
7317         # All Alpha code is PIC.
7318         lt_prog_compiler_static='-non_shared'
7319         ;;
7320       xl* | bgxl* | bgf* | mpixl*)
7321         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7322         lt_prog_compiler_wl='-Wl,'
7323         lt_prog_compiler_pic='-qpic'
7324         lt_prog_compiler_static='-qstaticlink'
7325         ;;
7326       *)
7327         case `$CC -V 2>&1 | sed 5q` in
7328         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7329           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7330           lt_prog_compiler_pic='-KPIC'
7331           lt_prog_compiler_static='-Bstatic'
7332           lt_prog_compiler_wl=''
7333           ;;
7334         *Sun\ F* | *Sun*Fortran*)
7335           lt_prog_compiler_pic='-KPIC'
7336           lt_prog_compiler_static='-Bstatic'
7337           lt_prog_compiler_wl='-Qoption ld '
7338           ;;
7339         *Sun\ C*)
7340           # Sun C 5.9
7341           lt_prog_compiler_pic='-KPIC'
7342           lt_prog_compiler_static='-Bstatic'
7343           lt_prog_compiler_wl='-Wl,'
7344           ;;
7345         *Intel*\ [CF]*Compiler*)
7346           lt_prog_compiler_wl='-Wl,'
7347           lt_prog_compiler_pic='-fPIC'
7348           lt_prog_compiler_static='-static'
7349           ;;
7350         *Portland\ Group*)
7351           lt_prog_compiler_wl='-Wl,'
7352           lt_prog_compiler_pic='-fpic'
7353           lt_prog_compiler_static='-Bstatic'
7354           ;;
7355         esac
7356         ;;
7357       esac
7358       ;;
7359
7360     newsos6)
7361       lt_prog_compiler_pic='-KPIC'
7362       lt_prog_compiler_static='-Bstatic'
7363       ;;
7364
7365     *nto* | *qnx*)
7366       # QNX uses GNU C++, but need to define -shared option too, otherwise
7367       # it will coredump.
7368       lt_prog_compiler_pic='-fPIC -shared'
7369       ;;
7370
7371     osf3* | osf4* | osf5*)
7372       lt_prog_compiler_wl='-Wl,'
7373       # All OSF/1 code is PIC.
7374       lt_prog_compiler_static='-non_shared'
7375       ;;
7376
7377     rdos*)
7378       lt_prog_compiler_static='-non_shared'
7379       ;;
7380
7381     solaris*)
7382       lt_prog_compiler_pic='-KPIC'
7383       lt_prog_compiler_static='-Bstatic'
7384       case $cc_basename in
7385       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7386         lt_prog_compiler_wl='-Qoption ld ';;
7387       *)
7388         lt_prog_compiler_wl='-Wl,';;
7389       esac
7390       ;;
7391
7392     sunos4*)
7393       lt_prog_compiler_wl='-Qoption ld '
7394       lt_prog_compiler_pic='-PIC'
7395       lt_prog_compiler_static='-Bstatic'
7396       ;;
7397
7398     sysv4 | sysv4.2uw2* | sysv4.3*)
7399       lt_prog_compiler_wl='-Wl,'
7400       lt_prog_compiler_pic='-KPIC'
7401       lt_prog_compiler_static='-Bstatic'
7402       ;;
7403
7404     sysv4*MP*)
7405       if test -d /usr/nec ;then
7406         lt_prog_compiler_pic='-Kconform_pic'
7407         lt_prog_compiler_static='-Bstatic'
7408       fi
7409       ;;
7410
7411     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7412       lt_prog_compiler_wl='-Wl,'
7413       lt_prog_compiler_pic='-KPIC'
7414       lt_prog_compiler_static='-Bstatic'
7415       ;;
7416
7417     unicos*)
7418       lt_prog_compiler_wl='-Wl,'
7419       lt_prog_compiler_can_build_shared=no
7420       ;;
7421
7422     uts4*)
7423       lt_prog_compiler_pic='-pic'
7424       lt_prog_compiler_static='-Bstatic'
7425       ;;
7426
7427     *)
7428       lt_prog_compiler_can_build_shared=no
7429       ;;
7430     esac
7431   fi
7432
7433 case $host_os in
7434   # For platforms which do not support PIC, -DPIC is meaningless:
7435   *djgpp*)
7436     lt_prog_compiler_pic=
7437     ;;
7438   *)
7439     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7440     ;;
7441 esac
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7444 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7445 if ${lt_cv_prog_compiler_pic+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7451 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7452 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7453
7454 #
7455 # Check to make sure the PIC flag actually works.
7456 #
7457 if test -n "$lt_prog_compiler_pic"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7460 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   lt_cv_prog_compiler_pic_works=no
7464    ac_outfile=conftest.$ac_objext
7465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7467    # Insert the option either (1) after the last *FLAGS variable, or
7468    # (2) before a word containing "conftest.", or (3) at the end.
7469    # Note that $ac_compile itself does not contain backslashes and begins
7470    # with a dollar sign (not a hyphen), so the echo should work correctly.
7471    # The option is referenced via a variable to avoid confusing sed.
7472    lt_compile=`echo "$ac_compile" | $SED \
7473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475    -e 's:$: $lt_compiler_flag:'`
7476    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7477    (eval "$lt_compile" 2>conftest.err)
7478    ac_status=$?
7479    cat conftest.err >&5
7480    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481    if (exit $ac_status) && test -s "$ac_outfile"; then
7482      # The compiler can only warn and ignore the option if not recognized
7483      # So say no if there are warnings other than the usual output.
7484      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7485      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487        lt_cv_prog_compiler_pic_works=yes
7488      fi
7489    fi
7490    $RM conftest*
7491
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7495
7496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7497     case $lt_prog_compiler_pic in
7498      "" | " "*) ;;
7499      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7500      esac
7501 else
7502     lt_prog_compiler_pic=
7503      lt_prog_compiler_can_build_shared=no
7504 fi
7505
7506 fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 #
7519 # Check to make sure the static flag actually works.
7520 #
7521 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7523 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7524 if ${lt_cv_prog_compiler_static_works+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   lt_cv_prog_compiler_static_works=no
7528    save_LDFLAGS="$LDFLAGS"
7529    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7530    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7531    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7532      # The linker can only warn and ignore the option if not recognized
7533      # So say no if there are warnings
7534      if test -s conftest.err; then
7535        # Append any errors to the config.log.
7536        cat conftest.err 1>&5
7537        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7538        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7539        if diff conftest.exp conftest.er2 >/dev/null; then
7540          lt_cv_prog_compiler_static_works=yes
7541        fi
7542      else
7543        lt_cv_prog_compiler_static_works=yes
7544      fi
7545    fi
7546    $RM -r conftest*
7547    LDFLAGS="$save_LDFLAGS"
7548
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7551 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7552
7553 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7554     :
7555 else
7556     lt_prog_compiler_static=
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7567 if ${lt_cv_prog_compiler_c_o+:} false; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   lt_cv_prog_compiler_c_o=no
7571    $RM -r conftest 2>/dev/null
7572    mkdir conftest
7573    cd conftest
7574    mkdir out
7575    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576
7577    lt_compiler_flag="-o out/conftest2.$ac_objext"
7578    # Insert the option either (1) after the last *FLAGS variable, or
7579    # (2) before a word containing "conftest.", or (3) at the end.
7580    # Note that $ac_compile itself does not contain backslashes and begins
7581    # with a dollar sign (not a hyphen), so the echo should work correctly.
7582    lt_compile=`echo "$ac_compile" | $SED \
7583    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585    -e 's:$: $lt_compiler_flag:'`
7586    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7587    (eval "$lt_compile" 2>out/conftest.err)
7588    ac_status=$?
7589    cat out/conftest.err >&5
7590    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7592    then
7593      # The compiler can only warn and ignore the option if not recognized
7594      # So say no if there are warnings
7595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7596      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7597      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7598        lt_cv_prog_compiler_c_o=yes
7599      fi
7600    fi
7601    chmod u+w . 2>&5
7602    $RM conftest*
7603    # SGI C++ compiler will create directory out/ii_files/ for
7604    # template instantiation
7605    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7606    $RM out/* && rmdir out
7607    cd ..
7608    $RM -r conftest
7609    $RM conftest*
7610
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7614
7615
7616
7617
7618
7619
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7621 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7622 if ${lt_cv_prog_compiler_c_o+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   lt_cv_prog_compiler_c_o=no
7626    $RM -r conftest 2>/dev/null
7627    mkdir conftest
7628    cd conftest
7629    mkdir out
7630    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7631
7632    lt_compiler_flag="-o out/conftest2.$ac_objext"
7633    # Insert the option either (1) after the last *FLAGS variable, or
7634    # (2) before a word containing "conftest.", or (3) at the end.
7635    # Note that $ac_compile itself does not contain backslashes and begins
7636    # with a dollar sign (not a hyphen), so the echo should work correctly.
7637    lt_compile=`echo "$ac_compile" | $SED \
7638    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7639    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7640    -e 's:$: $lt_compiler_flag:'`
7641    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7642    (eval "$lt_compile" 2>out/conftest.err)
7643    ac_status=$?
7644    cat out/conftest.err >&5
7645    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7647    then
7648      # The compiler can only warn and ignore the option if not recognized
7649      # So say no if there are warnings
7650      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7651      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7652      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7653        lt_cv_prog_compiler_c_o=yes
7654      fi
7655    fi
7656    chmod u+w . 2>&5
7657    $RM conftest*
7658    # SGI C++ compiler will create directory out/ii_files/ for
7659    # template instantiation
7660    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7661    $RM out/* && rmdir out
7662    cd ..
7663    $RM -r conftest
7664    $RM conftest*
7665
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7668 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7669
7670
7671
7672
7673 hard_links="nottested"
7674 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7675   # do not overwrite the value of need_locks provided by the user
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7677 $as_echo_n "checking if we can lock with hard links... " >&6; }
7678   hard_links=yes
7679   $RM conftest*
7680   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7681   touch conftest.a
7682   ln conftest.a conftest.b 2>&5 || hard_links=no
7683   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7685 $as_echo "$hard_links" >&6; }
7686   if test "$hard_links" = no; then
7687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7688 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7689     need_locks=warn
7690   fi
7691 else
7692   need_locks=no
7693 fi
7694
7695
7696
7697
7698
7699
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7701 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7702
7703   runpath_var=
7704   allow_undefined_flag=
7705   always_export_symbols=no
7706   archive_cmds=
7707   archive_expsym_cmds=
7708   compiler_needs_object=no
7709   enable_shared_with_static_runtimes=no
7710   export_dynamic_flag_spec=
7711   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7712   hardcode_automatic=no
7713   hardcode_direct=no
7714   hardcode_direct_absolute=no
7715   hardcode_libdir_flag_spec=
7716   hardcode_libdir_separator=
7717   hardcode_minus_L=no
7718   hardcode_shlibpath_var=unsupported
7719   inherit_rpath=no
7720   link_all_deplibs=unknown
7721   module_cmds=
7722   module_expsym_cmds=
7723   old_archive_from_new_cmds=
7724   old_archive_from_expsyms_cmds=
7725   thread_safe_flag_spec=
7726   whole_archive_flag_spec=
7727   # include_expsyms should be a list of space-separated symbols to be *always*
7728   # included in the symbol list
7729   include_expsyms=
7730   # exclude_expsyms can be an extended regexp of symbols to exclude
7731   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7732   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7733   # as well as any symbol that contains `d'.
7734   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7735   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7736   # platforms (ab)use it in PIC code, but their linkers get confused if
7737   # the symbol is explicitly referenced.  Since portable code cannot
7738   # rely on this symbol name, it's probably fine to never include it in
7739   # preloaded symbol tables.
7740   # Exclude shared library initialization/finalization symbols.
7741   extract_expsyms_cmds=
7742
7743   case $host_os in
7744   cygwin* | mingw* | pw32* | cegcc*)
7745     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7746     # When not using gcc, we currently assume that we are using
7747     # Microsoft Visual C++.
7748     if test "$GCC" != yes; then
7749       with_gnu_ld=no
7750     fi
7751     ;;
7752   interix*)
7753     # we just hope/assume this is gcc and not c89 (= MSVC++)
7754     with_gnu_ld=yes
7755     ;;
7756   openbsd*)
7757     with_gnu_ld=no
7758     ;;
7759   esac
7760
7761   ld_shlibs=yes
7762
7763   # On some targets, GNU ld is compatible enough with the native linker
7764   # that we're better off using the native interface for both.
7765   lt_use_gnu_ld_interface=no
7766   if test "$with_gnu_ld" = yes; then
7767     case $host_os in
7768       aix*)
7769         # The AIX port of GNU ld has always aspired to compatibility
7770         # with the native linker.  However, as the warning in the GNU ld
7771         # block says, versions before 2.19.5* couldn't really create working
7772         # shared libraries, regardless of the interface used.
7773         case `$LD -v 2>&1` in
7774           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7775           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7776           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7777           *)
7778             lt_use_gnu_ld_interface=yes
7779             ;;
7780         esac
7781         ;;
7782       *)
7783         lt_use_gnu_ld_interface=yes
7784         ;;
7785     esac
7786   fi
7787
7788   if test "$lt_use_gnu_ld_interface" = yes; then
7789     # If archive_cmds runs LD, not CC, wlarc should be empty
7790     wlarc='${wl}'
7791
7792     # Set some defaults for GNU ld with shared library support. These
7793     # are reset later if shared libraries are not supported. Putting them
7794     # here allows them to be overridden if necessary.
7795     runpath_var=LD_RUN_PATH
7796     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7797     export_dynamic_flag_spec='${wl}--export-dynamic'
7798     # ancient GNU ld didn't support --whole-archive et. al.
7799     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7800       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7801     else
7802       whole_archive_flag_spec=
7803     fi
7804     supports_anon_versioning=no
7805     case `$LD -v 2>&1` in
7806       *GNU\ gold*) supports_anon_versioning=yes ;;
7807       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7808       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7809       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7810       *\ 2.11.*) ;; # other 2.11 versions
7811       *) supports_anon_versioning=yes ;;
7812     esac
7813
7814     # See if GNU ld supports shared libraries.
7815     case $host_os in
7816     aix[3-9]*)
7817       # On AIX/PPC, the GNU linker is very broken
7818       if test "$host_cpu" != ia64; then
7819         ld_shlibs=no
7820         cat <<_LT_EOF 1>&2
7821
7822 *** Warning: the GNU linker, at least up to release 2.19, is reported
7823 *** to be unable to reliably create shared libraries on AIX.
7824 *** Therefore, libtool is disabling shared libraries support.  If you
7825 *** really care for shared libraries, you may want to install binutils
7826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7827 *** You will then need to restart the configuration process.
7828
7829 _LT_EOF
7830       fi
7831       ;;
7832
7833     amigaos*)
7834       case $host_cpu in
7835       powerpc)
7836             # see comment about AmigaOS4 .so support
7837             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7838             archive_expsym_cmds=''
7839         ;;
7840       m68k)
7841             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)'
7842             hardcode_libdir_flag_spec='-L$libdir'
7843             hardcode_minus_L=yes
7844         ;;
7845       esac
7846       ;;
7847
7848     beos*)
7849       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7850         allow_undefined_flag=unsupported
7851         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7852         # support --undefined.  This deserves some investigation.  FIXME
7853         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854       else
7855         ld_shlibs=no
7856       fi
7857       ;;
7858
7859     cygwin* | mingw* | pw32* | cegcc*)
7860       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7861       # as there is no search path for DLLs.
7862       hardcode_libdir_flag_spec='-L$libdir'
7863       export_dynamic_flag_spec='${wl}--export-all-symbols'
7864       allow_undefined_flag=unsupported
7865       always_export_symbols=no
7866       enable_shared_with_static_runtimes=yes
7867       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'
7868       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7869
7870       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7871         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7872         # If the export-symbols file already is a .def file (1st line
7873         # is EXPORTS), use it as is; otherwise, prepend...
7874         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7875           cp $export_symbols $output_objdir/$soname.def;
7876         else
7877           echo EXPORTS > $output_objdir/$soname.def;
7878           cat $export_symbols >> $output_objdir/$soname.def;
7879         fi~
7880         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7881       else
7882         ld_shlibs=no
7883       fi
7884       ;;
7885
7886     haiku*)
7887       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888       link_all_deplibs=yes
7889       ;;
7890
7891     interix[3-9]*)
7892       hardcode_direct=no
7893       hardcode_shlibpath_var=no
7894       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7895       export_dynamic_flag_spec='${wl}-E'
7896       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7897       # Instead, shared libraries are loaded at an image base (0x10000000 by
7898       # default) and relocated if they conflict, which is a slow very memory
7899       # consuming and fragmenting process.  To avoid this, we pick a random,
7900       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7901       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7902       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7903       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'
7904       ;;
7905
7906     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7907       tmp_diet=no
7908       if test "$host_os" = linux-dietlibc; then
7909         case $cc_basename in
7910           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7911         esac
7912       fi
7913       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7914          && test "$tmp_diet" = no
7915       then
7916         tmp_addflag=' $pic_flag'
7917         tmp_sharedflag='-shared'
7918         case $cc_basename,$host_cpu in
7919         pgcc*)                          # Portland Group C compiler
7920           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'
7921           tmp_addflag=' $pic_flag'
7922           ;;
7923         pgf77* | pgf90* | pgf95* | pgfortran*)
7924                                         # Portland Group f77 and f90 compilers
7925           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'
7926           tmp_addflag=' $pic_flag -Mnomain' ;;
7927         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7928           tmp_addflag=' -i_dynamic' ;;
7929         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7930           tmp_addflag=' -i_dynamic -nofor_main' ;;
7931         ifc* | ifort*)                  # Intel Fortran compiler
7932           tmp_addflag=' -nofor_main' ;;
7933         lf95*)                          # Lahey Fortran 8.1
7934           whole_archive_flag_spec=
7935           tmp_sharedflag='--shared' ;;
7936         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7937           tmp_sharedflag='-qmkshrobj'
7938           tmp_addflag= ;;
7939         nvcc*)  # Cuda Compiler Driver 2.2
7940           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'
7941           compiler_needs_object=yes
7942           ;;
7943         esac
7944         case `$CC -V 2>&1 | sed 5q` in
7945         *Sun\ C*)                       # Sun C 5.9
7946           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'
7947           compiler_needs_object=yes
7948           tmp_sharedflag='-G' ;;
7949         *Sun\ F*)                       # Sun Fortran 8.3
7950           tmp_sharedflag='-G' ;;
7951         esac
7952         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7953
7954         if test "x$supports_anon_versioning" = xyes; then
7955           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7956             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7957             echo "local: *; };" >> $output_objdir/$libname.ver~
7958             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7959         fi
7960
7961         case $cc_basename in
7962         xlf* | bgf* | bgxlf* | mpixlf*)
7963           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7964           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7965           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7966           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7967           if test "x$supports_anon_versioning" = xyes; then
7968             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7969               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7970               echo "local: *; };" >> $output_objdir/$libname.ver~
7971               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7972           fi
7973           ;;
7974         esac
7975       else
7976         ld_shlibs=no
7977       fi
7978       ;;
7979
7980     netbsd*)
7981       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7982         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7983         wlarc=
7984       else
7985         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7987       fi
7988       ;;
7989
7990     solaris*)
7991       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7992         ld_shlibs=no
7993         cat <<_LT_EOF 1>&2
7994
7995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7996 *** create shared libraries on Solaris systems.  Therefore, libtool
7997 *** is disabling shared libraries support.  We urge you to upgrade GNU
7998 *** binutils to release 2.9.1 or newer.  Another option is to modify
7999 *** your PATH or compiler configuration so that the native linker is
8000 *** used, and then restart.
8001
8002 _LT_EOF
8003       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8004         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8005         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8006       else
8007         ld_shlibs=no
8008       fi
8009       ;;
8010
8011     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8012       case `$LD -v 2>&1` in
8013         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8014         ld_shlibs=no
8015         cat <<_LT_EOF 1>&2
8016
8017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8018 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8019 *** is disabling shared libraries support.  We urge you to upgrade GNU
8020 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8021 *** your PATH or compiler configuration so that the native linker is
8022 *** used, and then restart.
8023
8024 _LT_EOF
8025         ;;
8026         *)
8027           # For security reasons, it is highly recommended that you always
8028           # use absolute paths for naming shared libraries, and exclude the
8029           # DT_RUNPATH tag from executables and libraries.  But doing so
8030           # requires that you compile everything twice, which is a pain.
8031           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8032             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8035           else
8036             ld_shlibs=no
8037           fi
8038         ;;
8039       esac
8040       ;;
8041
8042     sunos4*)
8043       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8044       wlarc=
8045       hardcode_direct=yes
8046       hardcode_shlibpath_var=no
8047       ;;
8048
8049     *)
8050       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8051         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053       else
8054         ld_shlibs=no
8055       fi
8056       ;;
8057     esac
8058
8059     if test "$ld_shlibs" = no; then
8060       runpath_var=
8061       hardcode_libdir_flag_spec=
8062       export_dynamic_flag_spec=
8063       whole_archive_flag_spec=
8064     fi
8065   else
8066     # PORTME fill in a description of your system's linker (not GNU ld)
8067     case $host_os in
8068     aix3*)
8069       allow_undefined_flag=unsupported
8070       always_export_symbols=yes
8071       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'
8072       # Note: this linker hardcodes the directories in LIBPATH if there
8073       # are no directories specified by -L.
8074       hardcode_minus_L=yes
8075       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8076         # Neither direct hardcoding nor static linking is supported with a
8077         # broken collect2.
8078         hardcode_direct=unsupported
8079       fi
8080       ;;
8081
8082     aix[4-9]*)
8083       if test "$host_cpu" = ia64; then
8084         # On IA64, the linker does run time linking by default, so we don't
8085         # have to do anything special.
8086         aix_use_runtimelinking=no
8087         exp_sym_flag='-Bexport'
8088         no_entry_flag=""
8089       else
8090         # If we're using GNU nm, then we don't want the "-C" option.
8091         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8092         # Also, AIX nm treats weak defined symbols like other global
8093         # defined symbols, whereas GNU nm marks them as "W".
8094         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8095           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'
8096         else
8097           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'
8098         fi
8099         aix_use_runtimelinking=no
8100
8101         # Test if we are trying to use run time linking or normal
8102         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103         # need to do runtime linking.
8104         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8105           for ld_flag in $LDFLAGS; do
8106           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8107             aix_use_runtimelinking=yes
8108             break
8109           fi
8110           done
8111           ;;
8112         esac
8113
8114         exp_sym_flag='-bexport'
8115         no_entry_flag='-bnoentry'
8116       fi
8117
8118       # When large executables or shared objects are built, AIX ld can
8119       # have problems creating the table of contents.  If linking a library
8120       # or program results in "error TOC overflow" add -mminimal-toc to
8121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8123
8124       archive_cmds=''
8125       hardcode_direct=yes
8126       hardcode_direct_absolute=yes
8127       hardcode_libdir_separator=':'
8128       link_all_deplibs=yes
8129       file_list_spec='${wl}-f,'
8130
8131       if test "$GCC" = yes; then
8132         case $host_os in aix4.[012]|aix4.[012].*)
8133         # We only want to do this on AIX 4.2 and lower, the check
8134         # below for broken collect2 doesn't work under 4.3+
8135           collect2name=`${CC} -print-prog-name=collect2`
8136           if test -f "$collect2name" &&
8137            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8138           then
8139           # We have reworked collect2
8140           :
8141           else
8142           # We have old collect2
8143           hardcode_direct=unsupported
8144           # It fails to find uninstalled libraries when the uninstalled
8145           # path is not listed in the libpath.  Setting hardcode_minus_L
8146           # to unsupported forces relinking
8147           hardcode_minus_L=yes
8148           hardcode_libdir_flag_spec='-L$libdir'
8149           hardcode_libdir_separator=
8150           fi
8151           ;;
8152         esac
8153         shared_flag='-shared'
8154         if test "$aix_use_runtimelinking" = yes; then
8155           shared_flag="$shared_flag "'${wl}-G'
8156         fi
8157       else
8158         # not using gcc
8159         if test "$host_cpu" = ia64; then
8160         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8161         # chokes on -Wl,-G. The following line is correct:
8162           shared_flag='-G'
8163         else
8164           if test "$aix_use_runtimelinking" = yes; then
8165             shared_flag='${wl}-G'
8166           else
8167             shared_flag='${wl}-bM:SRE'
8168           fi
8169         fi
8170       fi
8171
8172       export_dynamic_flag_spec='${wl}-bexpall'
8173       # It seems that -bexpall does not export symbols beginning with
8174       # underscore (_), so it is better to generate a list of symbols to export.
8175       always_export_symbols=yes
8176       if test "$aix_use_runtimelinking" = yes; then
8177         # Warning - without using the other runtime loading flags (-brtl),
8178         # -berok will link without error, but may produce a broken library.
8179         allow_undefined_flag='-berok'
8180         # Determine the default libpath from the value encoded in an
8181         # empty executable.
8182         if test "${lt_cv_aix_libpath+set}" = set; then
8183   aix_libpath=$lt_cv_aix_libpath
8184 else
8185   if ${lt_cv_aix_libpath_+:} false; then :
8186   $as_echo_n "(cached) " >&6
8187 else
8188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h.  */
8190
8191 int
8192 main ()
8193 {
8194
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200
8201   lt_aix_libpath_sed='
8202       /Import File Strings/,/^$/ {
8203           /^0/ {
8204               s/^0  *\([^ ]*\) *$/\1/
8205               p
8206           }
8207       }'
8208   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8209   # Check for a 64-bit object if we didn't find anything.
8210   if test -z "$lt_cv_aix_libpath_"; then
8211     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8212   fi
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext \
8215     conftest$ac_exeext conftest.$ac_ext
8216   if test -z "$lt_cv_aix_libpath_"; then
8217     lt_cv_aix_libpath_="/usr/lib:/lib"
8218   fi
8219
8220 fi
8221
8222   aix_libpath=$lt_cv_aix_libpath_
8223 fi
8224
8225         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8226         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"
8227       else
8228         if test "$host_cpu" = ia64; then
8229           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8230           allow_undefined_flag="-z nodefs"
8231           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"
8232         else
8233          # Determine the default libpath from the value encoded in an
8234          # empty executable.
8235          if test "${lt_cv_aix_libpath+set}" = set; then
8236   aix_libpath=$lt_cv_aix_libpath
8237 else
8238   if ${lt_cv_aix_libpath_+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h.  */
8243
8244 int
8245 main ()
8246 {
8247
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253
8254   lt_aix_libpath_sed='
8255       /Import File Strings/,/^$/ {
8256           /^0/ {
8257               s/^0  *\([^ ]*\) *$/\1/
8258               p
8259           }
8260       }'
8261   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8262   # Check for a 64-bit object if we didn't find anything.
8263   if test -z "$lt_cv_aix_libpath_"; then
8264     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8265   fi
8266 fi
8267 rm -f core conftest.err conftest.$ac_objext \
8268     conftest$ac_exeext conftest.$ac_ext
8269   if test -z "$lt_cv_aix_libpath_"; then
8270     lt_cv_aix_libpath_="/usr/lib:/lib"
8271   fi
8272
8273 fi
8274
8275   aix_libpath=$lt_cv_aix_libpath_
8276 fi
8277
8278          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279           # Warning - without using the other run time loading flags,
8280           # -berok will link without error, but may produce a broken library.
8281           no_undefined_flag=' ${wl}-bernotok'
8282           allow_undefined_flag=' ${wl}-berok'
8283           if test "$with_gnu_ld" = yes; then
8284             # We only use this code for GNU lds that support --whole-archive.
8285             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8286           else
8287             # Exported symbols can be pulled into shared objects from archives
8288             whole_archive_flag_spec='$convenience'
8289           fi
8290           archive_cmds_need_lc=yes
8291           # This is similar to how AIX traditionally builds its shared libraries.
8292           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'
8293         fi
8294       fi
8295       ;;
8296
8297     amigaos*)
8298       case $host_cpu in
8299       powerpc)
8300             # see comment about AmigaOS4 .so support
8301             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302             archive_expsym_cmds=''
8303         ;;
8304       m68k)
8305             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)'
8306             hardcode_libdir_flag_spec='-L$libdir'
8307             hardcode_minus_L=yes
8308         ;;
8309       esac
8310       ;;
8311
8312     bsdi[45]*)
8313       export_dynamic_flag_spec=-rdynamic
8314       ;;
8315
8316     cygwin* | mingw* | pw32* | cegcc*)
8317       # When not using gcc, we currently assume that we are using
8318       # Microsoft Visual C++.
8319       # hardcode_libdir_flag_spec is actually meaningless, as there is
8320       # no search path for DLLs.
8321       case $cc_basename in
8322       cl*)
8323         # Native MSVC
8324         hardcode_libdir_flag_spec=' '
8325         allow_undefined_flag=unsupported
8326         always_export_symbols=yes
8327         file_list_spec='@'
8328         # Tell ltmain to make .lib files, not .a files.
8329         libext=lib
8330         # Tell ltmain to make .dll files, not .so files.
8331         shrext_cmds=".dll"
8332         # FIXME: Setting linknames here is a bad hack.
8333         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8334         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8335             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8336           else
8337             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8338           fi~
8339           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8340           linknames='
8341         # The linker will not automatically build a static lib if we build a DLL.
8342         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8343         enable_shared_with_static_runtimes=yes
8344         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8345         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8346         # Don't use ranlib
8347         old_postinstall_cmds='chmod 644 $oldlib'
8348         postlink_cmds='lt_outputfile="@OUTPUT@"~
8349           lt_tool_outputfile="@TOOL_OUTPUT@"~
8350           case $lt_outputfile in
8351             *.exe|*.EXE) ;;
8352             *)
8353               lt_outputfile="$lt_outputfile.exe"
8354               lt_tool_outputfile="$lt_tool_outputfile.exe"
8355               ;;
8356           esac~
8357           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8358             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8359             $RM "$lt_outputfile.manifest";
8360           fi'
8361         ;;
8362       *)
8363         # Assume MSVC wrapper
8364         hardcode_libdir_flag_spec=' '
8365         allow_undefined_flag=unsupported
8366         # Tell ltmain to make .lib files, not .a files.
8367         libext=lib
8368         # Tell ltmain to make .dll files, not .so files.
8369         shrext_cmds=".dll"
8370         # FIXME: Setting linknames here is a bad hack.
8371         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8372         # The linker will automatically build a .lib file if we build a DLL.
8373         old_archive_from_new_cmds='true'
8374         # FIXME: Should let the user specify the lib program.
8375         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8376         enable_shared_with_static_runtimes=yes
8377         ;;
8378       esac
8379       ;;
8380
8381     darwin* | rhapsody*)
8382
8383
8384   archive_cmds_need_lc=no
8385   hardcode_direct=no
8386   hardcode_automatic=yes
8387   hardcode_shlibpath_var=unsupported
8388   if test "$lt_cv_ld_force_load" = "yes"; then
8389     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\"`'
8390
8391   else
8392     whole_archive_flag_spec=''
8393   fi
8394   link_all_deplibs=yes
8395   allow_undefined_flag="$_lt_dar_allow_undefined"
8396   case $cc_basename in
8397      ifort*) _lt_dar_can_shared=yes ;;
8398      *) _lt_dar_can_shared=$GCC ;;
8399   esac
8400   if test "$_lt_dar_can_shared" = "yes"; then
8401     output_verbose_link_cmd=func_echo_all
8402     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8403     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8404     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}"
8405     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}"
8406
8407   else
8408   ld_shlibs=no
8409   fi
8410
8411       ;;
8412
8413     dgux*)
8414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8420     # support.  Future versions do this automatically, but an explicit c++rt0.o
8421     # does not break anything, and helps significantly (at the cost of a little
8422     # extra space).
8423     freebsd2.2*)
8424       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8425       hardcode_libdir_flag_spec='-R$libdir'
8426       hardcode_direct=yes
8427       hardcode_shlibpath_var=no
8428       ;;
8429
8430     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8431     freebsd2.*)
8432       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8433       hardcode_direct=yes
8434       hardcode_minus_L=yes
8435       hardcode_shlibpath_var=no
8436       ;;
8437
8438     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8439     freebsd* | dragonfly*)
8440       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8441       hardcode_libdir_flag_spec='-R$libdir'
8442       hardcode_direct=yes
8443       hardcode_shlibpath_var=no
8444       ;;
8445
8446     hpux9*)
8447       if test "$GCC" = yes; then
8448         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'
8449       else
8450         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'
8451       fi
8452       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453       hardcode_libdir_separator=:
8454       hardcode_direct=yes
8455
8456       # hardcode_minus_L: Not really in the search PATH,
8457       # but as the default location of the library.
8458       hardcode_minus_L=yes
8459       export_dynamic_flag_spec='${wl}-E'
8460       ;;
8461
8462     hpux10*)
8463       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8464         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465       else
8466         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8467       fi
8468       if test "$with_gnu_ld" = no; then
8469         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470         hardcode_libdir_separator=:
8471         hardcode_direct=yes
8472         hardcode_direct_absolute=yes
8473         export_dynamic_flag_spec='${wl}-E'
8474         # hardcode_minus_L: Not really in the search PATH,
8475         # but as the default location of the library.
8476         hardcode_minus_L=yes
8477       fi
8478       ;;
8479
8480     hpux11*)
8481       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8482         case $host_cpu in
8483         hppa*64*)
8484           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485           ;;
8486         ia64*)
8487           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8488           ;;
8489         *)
8490           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8491           ;;
8492         esac
8493       else
8494         case $host_cpu in
8495         hppa*64*)
8496           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497           ;;
8498         ia64*)
8499           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8500           ;;
8501         *)
8502
8503           # Older versions of the 11.00 compiler do not understand -b yet
8504           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8505           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8506 $as_echo_n "checking if $CC understands -b... " >&6; }
8507 if ${lt_cv_prog_compiler__b+:} false; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   lt_cv_prog_compiler__b=no
8511    save_LDFLAGS="$LDFLAGS"
8512    LDFLAGS="$LDFLAGS -b"
8513    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515      # The linker can only warn and ignore the option if not recognized
8516      # So say no if there are warnings
8517      if test -s conftest.err; then
8518        # Append any errors to the config.log.
8519        cat conftest.err 1>&5
8520        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522        if diff conftest.exp conftest.er2 >/dev/null; then
8523          lt_cv_prog_compiler__b=yes
8524        fi
8525      else
8526        lt_cv_prog_compiler__b=yes
8527      fi
8528    fi
8529    $RM -r conftest*
8530    LDFLAGS="$save_LDFLAGS"
8531
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8534 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8535
8536 if test x"$lt_cv_prog_compiler__b" = xyes; then
8537     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8538 else
8539     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8540 fi
8541
8542           ;;
8543         esac
8544       fi
8545       if test "$with_gnu_ld" = no; then
8546         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8547         hardcode_libdir_separator=:
8548
8549         case $host_cpu in
8550         hppa*64*|ia64*)
8551           hardcode_direct=no
8552           hardcode_shlibpath_var=no
8553           ;;
8554         *)
8555           hardcode_direct=yes
8556           hardcode_direct_absolute=yes
8557           export_dynamic_flag_spec='${wl}-E'
8558
8559           # hardcode_minus_L: Not really in the search PATH,
8560           # but as the default location of the library.
8561           hardcode_minus_L=yes
8562           ;;
8563         esac
8564       fi
8565       ;;
8566
8567     irix5* | irix6* | nonstopux*)
8568       if test "$GCC" = yes; then
8569         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'
8570         # Try to use the -exported_symbol ld option, if it does not
8571         # work, assume that -exports_file does not work either and
8572         # implicitly export all symbols.
8573         # This should be the same for all languages, so no per-tag cache variable.
8574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8575 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8576 if ${lt_cv_irix_exported_symbol+:} false; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   save_LDFLAGS="$LDFLAGS"
8580            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8581            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h.  */
8583 int foo (void) { return 0; }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"; then :
8586   lt_cv_irix_exported_symbol=yes
8587 else
8588   lt_cv_irix_exported_symbol=no
8589 fi
8590 rm -f core conftest.err conftest.$ac_objext \
8591     conftest$ac_exeext conftest.$ac_ext
8592            LDFLAGS="$save_LDFLAGS"
8593 fi
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8595 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8596         if test "$lt_cv_irix_exported_symbol" = yes; then
8597           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'
8598         fi
8599       else
8600         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'
8601         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'
8602       fi
8603       archive_cmds_need_lc='no'
8604       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605       hardcode_libdir_separator=:
8606       inherit_rpath=yes
8607       link_all_deplibs=yes
8608       ;;
8609
8610     netbsd*)
8611       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8612         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8613       else
8614         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8615       fi
8616       hardcode_libdir_flag_spec='-R$libdir'
8617       hardcode_direct=yes
8618       hardcode_shlibpath_var=no
8619       ;;
8620
8621     newsos6)
8622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8623       hardcode_direct=yes
8624       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625       hardcode_libdir_separator=:
8626       hardcode_shlibpath_var=no
8627       ;;
8628
8629     *nto* | *qnx*)
8630       ;;
8631
8632     openbsd*)
8633       if test -f /usr/libexec/ld.so; then
8634         hardcode_direct=yes
8635         hardcode_shlibpath_var=no
8636         hardcode_direct_absolute=yes
8637         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8638           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8639           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8640           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641           export_dynamic_flag_spec='${wl}-E'
8642         else
8643           case $host_os in
8644            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8645              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646              hardcode_libdir_flag_spec='-R$libdir'
8647              ;;
8648            *)
8649              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8650              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8651              ;;
8652           esac
8653         fi
8654       else
8655         ld_shlibs=no
8656       fi
8657       ;;
8658
8659     os2*)
8660       hardcode_libdir_flag_spec='-L$libdir'
8661       hardcode_minus_L=yes
8662       allow_undefined_flag=unsupported
8663       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'
8664       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8665       ;;
8666
8667     osf3*)
8668       if test "$GCC" = yes; then
8669         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8670         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'
8671       else
8672         allow_undefined_flag=' -expect_unresolved \*'
8673         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'
8674       fi
8675       archive_cmds_need_lc='no'
8676       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677       hardcode_libdir_separator=:
8678       ;;
8679
8680     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8681       if test "$GCC" = yes; then
8682         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683         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'
8684         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685       else
8686         allow_undefined_flag=' -expect_unresolved \*'
8687         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'
8688         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~
8689         $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'
8690
8691         # Both c and cxx compiler support -rpath directly
8692         hardcode_libdir_flag_spec='-rpath $libdir'
8693       fi
8694       archive_cmds_need_lc='no'
8695       hardcode_libdir_separator=:
8696       ;;
8697
8698     solaris*)
8699       no_undefined_flag=' -z defs'
8700       if test "$GCC" = yes; then
8701         wlarc='${wl}'
8702         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8704           $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'
8705       else
8706         case `$CC -V 2>&1` in
8707         *"Compilers 5.0"*)
8708           wlarc=''
8709           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8711           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8712           ;;
8713         *)
8714           wlarc='${wl}'
8715           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8716           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8717           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8718           ;;
8719         esac
8720       fi
8721       hardcode_libdir_flag_spec='-R$libdir'
8722       hardcode_shlibpath_var=no
8723       case $host_os in
8724       solaris2.[0-5] | solaris2.[0-5].*) ;;
8725       *)
8726         # The compiler driver will combine and reorder linker options,
8727         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8728         # but is careful enough not to reorder.
8729         # Supported since Solaris 2.6 (maybe 2.5.1?)
8730         if test "$GCC" = yes; then
8731           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8732         else
8733           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8734         fi
8735         ;;
8736       esac
8737       link_all_deplibs=yes
8738       ;;
8739
8740     sunos4*)
8741       if test "x$host_vendor" = xsequent; then
8742         # Use $CC to link under sequent, because it throws in some extra .o
8743         # files that make .init and .fini sections work.
8744         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8745       else
8746         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8747       fi
8748       hardcode_libdir_flag_spec='-L$libdir'
8749       hardcode_direct=yes
8750       hardcode_minus_L=yes
8751       hardcode_shlibpath_var=no
8752       ;;
8753
8754     sysv4)
8755       case $host_vendor in
8756         sni)
8757           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758           hardcode_direct=yes # is this really true???
8759         ;;
8760         siemens)
8761           ## LD is ld it makes a PLAMLIB
8762           ## CC just makes a GrossModule.
8763           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8764           reload_cmds='$CC -r -o $output$reload_objs'
8765           hardcode_direct=no
8766         ;;
8767         motorola)
8768           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8770         ;;
8771       esac
8772       runpath_var='LD_RUN_PATH'
8773       hardcode_shlibpath_var=no
8774       ;;
8775
8776     sysv4.3*)
8777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778       hardcode_shlibpath_var=no
8779       export_dynamic_flag_spec='-Bexport'
8780       ;;
8781
8782     sysv4*MP*)
8783       if test -d /usr/nec; then
8784         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785         hardcode_shlibpath_var=no
8786         runpath_var=LD_RUN_PATH
8787         hardcode_runpath_var=yes
8788         ld_shlibs=yes
8789       fi
8790       ;;
8791
8792     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8793       no_undefined_flag='${wl}-z,text'
8794       archive_cmds_need_lc=no
8795       hardcode_shlibpath_var=no
8796       runpath_var='LD_RUN_PATH'
8797
8798       if test "$GCC" = yes; then
8799         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8800         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801       else
8802         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804       fi
8805       ;;
8806
8807     sysv5* | sco3.2v5* | sco5v6*)
8808       # Note: We can NOT use -z defs as we might desire, because we do not
8809       # link with -lc, and that would cause any symbols used from libc to
8810       # always be unresolved, which means just about no library would
8811       # ever link correctly.  If we're not using GNU ld we use -z text
8812       # though, which does catch some bad symbols but isn't as heavy-handed
8813       # as -z defs.
8814       no_undefined_flag='${wl}-z,text'
8815       allow_undefined_flag='${wl}-z,nodefs'
8816       archive_cmds_need_lc=no
8817       hardcode_shlibpath_var=no
8818       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8819       hardcode_libdir_separator=':'
8820       link_all_deplibs=yes
8821       export_dynamic_flag_spec='${wl}-Bexport'
8822       runpath_var='LD_RUN_PATH'
8823
8824       if test "$GCC" = yes; then
8825         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827       else
8828         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830       fi
8831       ;;
8832
8833     uts4*)
8834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835       hardcode_libdir_flag_spec='-L$libdir'
8836       hardcode_shlibpath_var=no
8837       ;;
8838
8839     *)
8840       ld_shlibs=no
8841       ;;
8842     esac
8843
8844     if test x$host_vendor = xsni; then
8845       case $host in
8846       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8847         export_dynamic_flag_spec='${wl}-Blargedynsym'
8848         ;;
8849       esac
8850     fi
8851   fi
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8854 $as_echo "$ld_shlibs" >&6; }
8855 test "$ld_shlibs" = no && can_build_shared=no
8856
8857 with_gnu_ld=$with_gnu_ld
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 #
8874 # Do we need to explicitly link libc?
8875 #
8876 case "x$archive_cmds_need_lc" in
8877 x|xyes)
8878   # Assume -lc should be added
8879   archive_cmds_need_lc=yes
8880
8881   if test "$enable_shared" = yes && test "$GCC" = yes; then
8882     case $archive_cmds in
8883     *'~'*)
8884       # FIXME: we may have to deal with multi-command sequences.
8885       ;;
8886     '$CC '*)
8887       # Test whether the compiler implicitly links with -lc since on some
8888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8889       # to ld, don't add -lc before -lgcc.
8890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8892 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   $RM conftest*
8896         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8897
8898         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8899   (eval $ac_compile) 2>&5
8900   ac_status=$?
8901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8902   test $ac_status = 0; } 2>conftest.err; then
8903           soname=conftest
8904           lib=conftest
8905           libobjs=conftest.$ac_objext
8906           deplibs=
8907           wl=$lt_prog_compiler_wl
8908           pic_flag=$lt_prog_compiler_pic
8909           compiler_flags=-v
8910           linker_flags=-v
8911           verstring=
8912           output_objdir=.
8913           libname=conftest
8914           lt_save_allow_undefined_flag=$allow_undefined_flag
8915           allow_undefined_flag=
8916           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8917   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8918   ac_status=$?
8919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8920   test $ac_status = 0; }
8921           then
8922             lt_cv_archive_cmds_need_lc=no
8923           else
8924             lt_cv_archive_cmds_need_lc=yes
8925           fi
8926           allow_undefined_flag=$lt_save_allow_undefined_flag
8927         else
8928           cat conftest.err 1>&5
8929         fi
8930         $RM conftest*
8931
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8934 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8935       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8936       ;;
8937     esac
8938   fi
8939   ;;
8940 esac
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9094 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9095
9096 if test "$GCC" = yes; then
9097   case $host_os in
9098     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9099     *) lt_awk_arg="/^libraries:/" ;;
9100   esac
9101   case $host_os in
9102     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9103     *) lt_sed_strip_eq="s,=/,/,g" ;;
9104   esac
9105   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9106   case $lt_search_path_spec in
9107   *\;*)
9108     # if the path contains ";" then we assume it to be the separator
9109     # otherwise default to the standard path separator (i.e. ":") - it is
9110     # assumed that no part of a normal pathname contains ";" but that should
9111     # okay in the real world where ";" in dirpaths is itself problematic.
9112     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9113     ;;
9114   *)
9115     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9116     ;;
9117   esac
9118   # Ok, now we have the path, separated by spaces, we can step through it
9119   # and add multilib dir if necessary.
9120   lt_tmp_lt_search_path_spec=
9121   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122   for lt_sys_path in $lt_search_path_spec; do
9123     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9125     else
9126       test -d "$lt_sys_path" && \
9127         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9128     fi
9129   done
9130   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9131 BEGIN {RS=" "; FS="/|\n";} {
9132   lt_foo="";
9133   lt_count=0;
9134   for (lt_i = NF; lt_i > 0; lt_i--) {
9135     if ($lt_i != "" && $lt_i != ".") {
9136       if ($lt_i == "..") {
9137         lt_count++;
9138       } else {
9139         if (lt_count == 0) {
9140           lt_foo="/" $lt_i lt_foo;
9141         } else {
9142           lt_count--;
9143         }
9144       }
9145     }
9146   }
9147   if (lt_foo != "") { lt_freq[lt_foo]++; }
9148   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9149 }'`
9150   # AWK program above erroneously prepends '/' to C:/dos/paths
9151   # for these hosts.
9152   case $host_os in
9153     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9154       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9155   esac
9156   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9157 else
9158   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9159 fi
9160 library_names_spec=
9161 libname_spec='lib$name'
9162 soname_spec=
9163 shrext_cmds=".so"
9164 postinstall_cmds=
9165 postuninstall_cmds=
9166 finish_cmds=
9167 finish_eval=
9168 shlibpath_var=
9169 shlibpath_overrides_runpath=unknown
9170 version_type=none
9171 dynamic_linker="$host_os ld.so"
9172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9173 need_lib_prefix=unknown
9174 hardcode_into_libs=no
9175
9176 # when you set need_version to no, make sure it does not cause -set_version
9177 # flags to be left without arguments
9178 need_version=unknown
9179
9180 case $host_os in
9181 aix3*)
9182   version_type=linux # correct to gnu/linux during the next big refactor
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9184   shlibpath_var=LIBPATH
9185
9186   # AIX 3 has no versioning support, so we append a major version to the name.
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   ;;
9189
9190 aix[4-9]*)
9191   version_type=linux # correct to gnu/linux during the next big refactor
9192   need_lib_prefix=no
9193   need_version=no
9194   hardcode_into_libs=yes
9195   if test "$host_cpu" = ia64; then
9196     # AIX 5 supports IA64
9197     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9198     shlibpath_var=LD_LIBRARY_PATH
9199   else
9200     # With GCC up to 2.95.x, collect2 would create an import file
9201     # for dependence libraries.  The import file would start with
9202     # the line `#! .'.  This would cause the generated library to
9203     # depend on `.', always an invalid library.  This was fixed in
9204     # development snapshots of GCC prior to 3.0.
9205     case $host_os in
9206       aix4 | aix4.[01] | aix4.[01].*)
9207       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9208            echo ' yes '
9209            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9210         :
9211       else
9212         can_build_shared=no
9213       fi
9214       ;;
9215     esac
9216     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9217     # soname into executable. Probably we can add versioning support to
9218     # collect2, so additional links can be useful in future.
9219     if test "$aix_use_runtimelinking" = yes; then
9220       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9221       # instead of lib<name>.a to let people know that these are not
9222       # typical AIX shared libraries.
9223       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224     else
9225       # We preserve .a as extension for shared libraries through AIX4.2
9226       # and later when we are not doing run time linking.
9227       library_names_spec='${libname}${release}.a $libname.a'
9228       soname_spec='${libname}${release}${shared_ext}$major'
9229     fi
9230     shlibpath_var=LIBPATH
9231   fi
9232   ;;
9233
9234 amigaos*)
9235   case $host_cpu in
9236   powerpc)
9237     # Since July 2007 AmigaOS4 officially supports .so libraries.
9238     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240     ;;
9241   m68k)
9242     library_names_spec='$libname.ixlibrary $libname.a'
9243     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9244     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'
9245     ;;
9246   esac
9247   ;;
9248
9249 beos*)
9250   library_names_spec='${libname}${shared_ext}'
9251   dynamic_linker="$host_os ld.so"
9252   shlibpath_var=LIBRARY_PATH
9253   ;;
9254
9255 bsdi[45]*)
9256   version_type=linux # correct to gnu/linux during the next big refactor
9257   need_version=no
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9263   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9264   # the default ld.so.conf also contains /usr/contrib/lib and
9265   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9266   # libtool to hard-code these into programs
9267   ;;
9268
9269 cygwin* | mingw* | pw32* | cegcc*)
9270   version_type=windows
9271   shrext_cmds=".dll"
9272   need_version=no
9273   need_lib_prefix=no
9274
9275   case $GCC,$cc_basename in
9276   yes,*)
9277     # gcc
9278     library_names_spec='$libname.dll.a'
9279     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9280     postinstall_cmds='base_file=`basename \${file}`~
9281       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9282       dldir=$destdir/`dirname \$dlpath`~
9283       test -d \$dldir || mkdir -p \$dldir~
9284       $install_prog $dir/$dlname \$dldir/$dlname~
9285       chmod a+x \$dldir/$dlname~
9286       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9287         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9288       fi'
9289     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9290       dlpath=$dir/\$dldll~
9291        $RM \$dlpath'
9292     shlibpath_overrides_runpath=yes
9293
9294     case $host_os in
9295     cygwin*)
9296       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9297       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298
9299       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9300       ;;
9301     mingw* | cegcc*)
9302       # MinGW DLLs use traditional 'lib' prefix
9303       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304       ;;
9305     pw32*)
9306       # pw32 DLLs use 'pw' prefix rather than 'lib'
9307       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9308       ;;
9309     esac
9310     dynamic_linker='Win32 ld.exe'
9311     ;;
9312
9313   *,cl*)
9314     # Native MSVC
9315     libname_spec='$name'
9316     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317     library_names_spec='${libname}.dll.lib'
9318
9319     case $build_os in
9320     mingw*)
9321       sys_lib_search_path_spec=
9322       lt_save_ifs=$IFS
9323       IFS=';'
9324       for lt_path in $LIB
9325       do
9326         IFS=$lt_save_ifs
9327         # Let DOS variable expansion print the short 8.3 style file name.
9328         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9329         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9330       done
9331       IFS=$lt_save_ifs
9332       # Convert to MSYS style.
9333       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9334       ;;
9335     cygwin*)
9336       # Convert to unix form, then to dos form, then back to unix form
9337       # but this time dos style (no spaces!) so that the unix form looks
9338       # like /cygdrive/c/PROGRA~1:/cygdr...
9339       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9340       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9341       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9342       ;;
9343     *)
9344       sys_lib_search_path_spec="$LIB"
9345       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9346         # It is most probably a Windows format PATH.
9347         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9348       else
9349         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9350       fi
9351       # FIXME: find the short name or the path components, as spaces are
9352       # common. (e.g. "Program Files" -> "PROGRA~1")
9353       ;;
9354     esac
9355
9356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9357     postinstall_cmds='base_file=`basename \${file}`~
9358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9359       dldir=$destdir/`dirname \$dlpath`~
9360       test -d \$dldir || mkdir -p \$dldir~
9361       $install_prog $dir/$dlname \$dldir/$dlname'
9362     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9363       dlpath=$dir/\$dldll~
9364        $RM \$dlpath'
9365     shlibpath_overrides_runpath=yes
9366     dynamic_linker='Win32 link.exe'
9367     ;;
9368
9369   *)
9370     # Assume MSVC wrapper
9371     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9372     dynamic_linker='Win32 ld.exe'
9373     ;;
9374   esac
9375   # FIXME: first we should search . and the directory the executable is in
9376   shlibpath_var=PATH
9377   ;;
9378
9379 darwin* | rhapsody*)
9380   dynamic_linker="$host_os dyld"
9381   version_type=darwin
9382   need_lib_prefix=no
9383   need_version=no
9384   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9385   soname_spec='${libname}${release}${major}$shared_ext'
9386   shlibpath_overrides_runpath=yes
9387   shlibpath_var=DYLD_LIBRARY_PATH
9388   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9389
9390   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9391   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9392   ;;
9393
9394 dgux*)
9395   version_type=linux # correct to gnu/linux during the next big refactor
9396   need_lib_prefix=no
9397   need_version=no
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9399   soname_spec='${libname}${release}${shared_ext}$major'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   ;;
9402
9403 freebsd* | dragonfly*)
9404   # DragonFly does not have aout.  When/if they implement a new
9405   # versioning mechanism, adjust this.
9406   if test -x /usr/bin/objformat; then
9407     objformat=`/usr/bin/objformat`
9408   else
9409     case $host_os in
9410     freebsd[23].*) objformat=aout ;;
9411     *) objformat=elf ;;
9412     esac
9413   fi
9414   version_type=freebsd-$objformat
9415   case $version_type in
9416     freebsd-elf*)
9417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9418       need_version=no
9419       need_lib_prefix=no
9420       ;;
9421     freebsd-*)
9422       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9423       need_version=yes
9424       ;;
9425   esac
9426   shlibpath_var=LD_LIBRARY_PATH
9427   case $host_os in
9428   freebsd2.*)
9429     shlibpath_overrides_runpath=yes
9430     ;;
9431   freebsd3.[01]* | freebsdelf3.[01]*)
9432     shlibpath_overrides_runpath=yes
9433     hardcode_into_libs=yes
9434     ;;
9435   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9436   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9437     shlibpath_overrides_runpath=no
9438     hardcode_into_libs=yes
9439     ;;
9440   *) # from 4.6 on, and DragonFly
9441     shlibpath_overrides_runpath=yes
9442     hardcode_into_libs=yes
9443     ;;
9444   esac
9445   ;;
9446
9447 gnu*)
9448   version_type=linux # correct to gnu/linux during the next big refactor
9449   need_lib_prefix=no
9450   need_version=no
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   shlibpath_overrides_runpath=no
9455   hardcode_into_libs=yes
9456   ;;
9457
9458 haiku*)
9459   version_type=linux # correct to gnu/linux during the next big refactor
9460   need_lib_prefix=no
9461   need_version=no
9462   dynamic_linker="$host_os runtime_loader"
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   shlibpath_var=LIBRARY_PATH
9466   shlibpath_overrides_runpath=yes
9467   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9468   hardcode_into_libs=yes
9469   ;;
9470
9471 hpux9* | hpux10* | hpux11*)
9472   # Give a soname corresponding to the major version so that dld.sl refuses to
9473   # link against other versions.
9474   version_type=sunos
9475   need_lib_prefix=no
9476   need_version=no
9477   case $host_cpu in
9478   ia64*)
9479     shrext_cmds='.so'
9480     hardcode_into_libs=yes
9481     dynamic_linker="$host_os dld.so"
9482     shlibpath_var=LD_LIBRARY_PATH
9483     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485     soname_spec='${libname}${release}${shared_ext}$major'
9486     if test "X$HPUX_IA64_MODE" = X32; then
9487       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9488     else
9489       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9490     fi
9491     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9492     ;;
9493   hppa*64*)
9494     shrext_cmds='.sl'
9495     hardcode_into_libs=yes
9496     dynamic_linker="$host_os dld.sl"
9497     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500     soname_spec='${libname}${release}${shared_ext}$major'
9501     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9502     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9503     ;;
9504   *)
9505     shrext_cmds='.sl'
9506     dynamic_linker="$host_os dld.sl"
9507     shlibpath_var=SHLIB_PATH
9508     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510     soname_spec='${libname}${release}${shared_ext}$major'
9511     ;;
9512   esac
9513   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9514   postinstall_cmds='chmod 555 $lib'
9515   # or fails outright, so override atomically:
9516   install_override_mode=555
9517   ;;
9518
9519 interix[3-9]*)
9520   version_type=linux # correct to gnu/linux during the next big refactor
9521   need_lib_prefix=no
9522   need_version=no
9523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9524   soname_spec='${libname}${release}${shared_ext}$major'
9525   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9526   shlibpath_var=LD_LIBRARY_PATH
9527   shlibpath_overrides_runpath=no
9528   hardcode_into_libs=yes
9529   ;;
9530
9531 irix5* | irix6* | nonstopux*)
9532   case $host_os in
9533     nonstopux*) version_type=nonstopux ;;
9534     *)
9535         if test "$lt_cv_prog_gnu_ld" = yes; then
9536                 version_type=linux # correct to gnu/linux during the next big refactor
9537         else
9538                 version_type=irix
9539         fi ;;
9540   esac
9541   need_lib_prefix=no
9542   need_version=no
9543   soname_spec='${libname}${release}${shared_ext}$major'
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9545   case $host_os in
9546   irix5* | nonstopux*)
9547     libsuff= shlibsuff=
9548     ;;
9549   *)
9550     case $LD in # libtool.m4 will add one of these switches to LD
9551     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9552       libsuff= shlibsuff= libmagic=32-bit;;
9553     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9554       libsuff=32 shlibsuff=N32 libmagic=N32;;
9555     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9556       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9557     *) libsuff= shlibsuff= libmagic=never-match;;
9558     esac
9559     ;;
9560   esac
9561   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9562   shlibpath_overrides_runpath=no
9563   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9564   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9565   hardcode_into_libs=yes
9566   ;;
9567
9568 # No shared lib support for Linux oldld, aout, or coff.
9569 linux*oldld* | linux*aout* | linux*coff*)
9570   dynamic_linker=no
9571   ;;
9572
9573 # This must be glibc/ELF.
9574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9575   version_type=linux # correct to gnu/linux during the next big refactor
9576   need_lib_prefix=no
9577   need_version=no
9578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579   soname_spec='${libname}${release}${shared_ext}$major'
9580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9581   shlibpath_var=LD_LIBRARY_PATH
9582   shlibpath_overrides_runpath=no
9583
9584   # Some binutils ld are patched to set DT_RUNPATH
9585   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9586   $as_echo_n "(cached) " >&6
9587 else
9588   lt_cv_shlibpath_overrides_runpath=no
9589     save_LDFLAGS=$LDFLAGS
9590     save_libdir=$libdir
9591     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9592          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595
9596 int
9597 main ()
9598 {
9599
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9606   lt_cv_shlibpath_overrides_runpath=yes
9607 fi
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610     conftest$ac_exeext conftest.$ac_ext
9611     LDFLAGS=$save_LDFLAGS
9612     libdir=$save_libdir
9613
9614 fi
9615
9616   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9617
9618   # This implies no fast_install, which is unacceptable.
9619   # Some rework will be needed to allow for fast_install
9620   # before this can be enabled.
9621   hardcode_into_libs=yes
9622
9623   # Add ABI-specific directories to the system library path.
9624   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9625
9626   # Append ld.so.conf contents to the search path
9627   if test -f /etc/ld.so.conf; then
9628     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' ' '`
9629     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9630
9631   fi
9632
9633   # We used to test for /lib/ld.so.1 and disable shared libraries on
9634   # powerpc, because MkLinux only supported shared libraries with the
9635   # GNU dynamic linker.  Since this was broken with cross compilers,
9636   # most powerpc-linux boxes support dynamic linking these days and
9637   # people can always --disable-shared, the test was removed, and we
9638   # assume the GNU/Linux dynamic linker is in use.
9639   dynamic_linker='GNU/Linux ld.so'
9640   ;;
9641
9642 netbsd*)
9643   version_type=sunos
9644   need_lib_prefix=no
9645   need_version=no
9646   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9648     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9649     dynamic_linker='NetBSD (a.out) ld.so'
9650   else
9651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652     soname_spec='${libname}${release}${shared_ext}$major'
9653     dynamic_linker='NetBSD ld.elf_so'
9654   fi
9655   shlibpath_var=LD_LIBRARY_PATH
9656   shlibpath_overrides_runpath=yes
9657   hardcode_into_libs=yes
9658   ;;
9659
9660 newsos6)
9661   version_type=linux # correct to gnu/linux during the next big refactor
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663   shlibpath_var=LD_LIBRARY_PATH
9664   shlibpath_overrides_runpath=yes
9665   ;;
9666
9667 *nto* | *qnx*)
9668   version_type=qnx
9669   need_lib_prefix=no
9670   need_version=no
9671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672   soname_spec='${libname}${release}${shared_ext}$major'
9673   shlibpath_var=LD_LIBRARY_PATH
9674   shlibpath_overrides_runpath=no
9675   hardcode_into_libs=yes
9676   dynamic_linker='ldqnx.so'
9677   ;;
9678
9679 openbsd*)
9680   version_type=sunos
9681   sys_lib_dlsearch_path_spec="/usr/lib"
9682   need_lib_prefix=no
9683   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9684   case $host_os in
9685     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9686     *)                          need_version=no  ;;
9687   esac
9688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9689   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9690   shlibpath_var=LD_LIBRARY_PATH
9691   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9692     case $host_os in
9693       openbsd2.[89] | openbsd2.[89].*)
9694         shlibpath_overrides_runpath=no
9695         ;;
9696       *)
9697         shlibpath_overrides_runpath=yes
9698         ;;
9699       esac
9700   else
9701     shlibpath_overrides_runpath=yes
9702   fi
9703   ;;
9704
9705 os2*)
9706   libname_spec='$name'
9707   shrext_cmds=".dll"
9708   need_lib_prefix=no
9709   library_names_spec='$libname${shared_ext} $libname.a'
9710   dynamic_linker='OS/2 ld.exe'
9711   shlibpath_var=LIBPATH
9712   ;;
9713
9714 osf3* | osf4* | osf5*)
9715   version_type=osf
9716   need_lib_prefix=no
9717   need_version=no
9718   soname_spec='${libname}${release}${shared_ext}$major'
9719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720   shlibpath_var=LD_LIBRARY_PATH
9721   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9722   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9723   ;;
9724
9725 rdos*)
9726   dynamic_linker=no
9727   ;;
9728
9729 solaris*)
9730   version_type=linux # correct to gnu/linux during the next big refactor
9731   need_lib_prefix=no
9732   need_version=no
9733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734   soname_spec='${libname}${release}${shared_ext}$major'
9735   shlibpath_var=LD_LIBRARY_PATH
9736   shlibpath_overrides_runpath=yes
9737   hardcode_into_libs=yes
9738   # ldd complains unless libraries are executable
9739   postinstall_cmds='chmod +x $lib'
9740   ;;
9741
9742 sunos4*)
9743   version_type=sunos
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9746   shlibpath_var=LD_LIBRARY_PATH
9747   shlibpath_overrides_runpath=yes
9748   if test "$with_gnu_ld" = yes; then
9749     need_lib_prefix=no
9750   fi
9751   need_version=yes
9752   ;;
9753
9754 sysv4 | sysv4.3*)
9755   version_type=linux # correct to gnu/linux during the next big refactor
9756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757   soname_spec='${libname}${release}${shared_ext}$major'
9758   shlibpath_var=LD_LIBRARY_PATH
9759   case $host_vendor in
9760     sni)
9761       shlibpath_overrides_runpath=no
9762       need_lib_prefix=no
9763       runpath_var=LD_RUN_PATH
9764       ;;
9765     siemens)
9766       need_lib_prefix=no
9767       ;;
9768     motorola)
9769       need_lib_prefix=no
9770       need_version=no
9771       shlibpath_overrides_runpath=no
9772       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9773       ;;
9774   esac
9775   ;;
9776
9777 sysv4*MP*)
9778   if test -d /usr/nec ;then
9779     version_type=linux # correct to gnu/linux during the next big refactor
9780     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9781     soname_spec='$libname${shared_ext}.$major'
9782     shlibpath_var=LD_LIBRARY_PATH
9783   fi
9784   ;;
9785
9786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9787   version_type=freebsd-elf
9788   need_lib_prefix=no
9789   need_version=no
9790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9791   soname_spec='${libname}${release}${shared_ext}$major'
9792   shlibpath_var=LD_LIBRARY_PATH
9793   shlibpath_overrides_runpath=yes
9794   hardcode_into_libs=yes
9795   if test "$with_gnu_ld" = yes; then
9796     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9797   else
9798     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9799     case $host_os in
9800       sco3.2v5*)
9801         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9802         ;;
9803     esac
9804   fi
9805   sys_lib_dlsearch_path_spec='/usr/lib'
9806   ;;
9807
9808 tpf*)
9809   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9810   version_type=linux # correct to gnu/linux during the next big refactor
9811   need_lib_prefix=no
9812   need_version=no
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814   shlibpath_var=LD_LIBRARY_PATH
9815   shlibpath_overrides_runpath=no
9816   hardcode_into_libs=yes
9817   ;;
9818
9819 uts4*)
9820   version_type=linux # correct to gnu/linux during the next big refactor
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   shlibpath_var=LD_LIBRARY_PATH
9824   ;;
9825
9826 *)
9827   dynamic_linker=no
9828   ;;
9829 esac
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9831 $as_echo "$dynamic_linker" >&6; }
9832 test "$dynamic_linker" = no && can_build_shared=no
9833
9834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9835 if test "$GCC" = yes; then
9836   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9837 fi
9838
9839 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9840   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9841 fi
9842 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9843   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9844 fi
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9939 hardcode_action=
9940 if test -n "$hardcode_libdir_flag_spec" ||
9941    test -n "$runpath_var" ||
9942    test "X$hardcode_automatic" = "Xyes" ; then
9943
9944   # We can hardcode non-existent directories.
9945   if test "$hardcode_direct" != no &&
9946      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9947      # have to relink, otherwise we might link with an installed library
9948      # when we should be linking with a yet-to-be-installed one
9949      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9950      test "$hardcode_minus_L" != no; then
9951     # Linking always hardcodes the temporary library directory.
9952     hardcode_action=relink
9953   else
9954     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9955     hardcode_action=immediate
9956   fi
9957 else
9958   # We cannot hardcode anything, or else we can only hardcode existing
9959   # directories.
9960   hardcode_action=unsupported
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9963 $as_echo "$hardcode_action" >&6; }
9964
9965 if test "$hardcode_action" = relink ||
9966    test "$inherit_rpath" = yes; then
9967   # Fast installation is not supported
9968   enable_fast_install=no
9969 elif test "$shlibpath_overrides_runpath" = yes ||
9970      test "$enable_shared" = no; then
9971   # Fast installation is not necessary
9972   enable_fast_install=needless
9973 fi
9974
9975
9976
9977
9978
9979
9980   if test "x$enable_dlopen" != xyes; then
9981   enable_dlopen=unknown
9982   enable_dlopen_self=unknown
9983   enable_dlopen_self_static=unknown
9984 else
9985   lt_cv_dlopen=no
9986   lt_cv_dlopen_libs=
9987
9988   case $host_os in
9989   beos*)
9990     lt_cv_dlopen="load_add_on"
9991     lt_cv_dlopen_libs=
9992     lt_cv_dlopen_self=yes
9993     ;;
9994
9995   mingw* | pw32* | cegcc*)
9996     lt_cv_dlopen="LoadLibrary"
9997     lt_cv_dlopen_libs=
9998     ;;
9999
10000   cygwin*)
10001     lt_cv_dlopen="dlopen"
10002     lt_cv_dlopen_libs=
10003     ;;
10004
10005   darwin*)
10006   # if libdl is installed we need to link against it
10007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10009 if ${ac_cv_lib_dl_dlopen+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-ldl  $LIBS"
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018    Use char because int might match the return type of a GCC
10019    builtin and then its argument prototype would still apply.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char dlopen ();
10024 int
10025 main ()
10026 {
10027 return dlopen ();
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033   ac_cv_lib_dl_dlopen=yes
10034 else
10035   ac_cv_lib_dl_dlopen=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext \
10038     conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10040 fi
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10042 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10043 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10045 else
10046
10047     lt_cv_dlopen="dyld"
10048     lt_cv_dlopen_libs=
10049     lt_cv_dlopen_self=yes
10050
10051 fi
10052
10053     ;;
10054
10055   *)
10056     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10057 if test "x$ac_cv_func_shl_load" = xyes; then :
10058   lt_cv_dlopen="shl_load"
10059 else
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10061 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10062 if ${ac_cv_lib_dld_shl_load+:} false; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-ldld  $LIBS"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h.  */
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char shl_load ();
10077 int
10078 main ()
10079 {
10080 return shl_load ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086   ac_cv_lib_dld_shl_load=yes
10087 else
10088   ac_cv_lib_dld_shl_load=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext \
10091     conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10095 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10096 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10097   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10098 else
10099   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10100 if test "x$ac_cv_func_dlopen" = xyes; then :
10101   lt_cv_dlopen="dlopen"
10102 else
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10105 if ${ac_cv_lib_dl_dlopen+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-ldl  $LIBS"
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h.  */
10112
10113 /* Override any GCC internal prototype to avoid an error.
10114    Use char because int might match the return type of a GCC
10115    builtin and then its argument prototype would still apply.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 char dlopen ();
10120 int
10121 main ()
10122 {
10123 return dlopen ();
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129   ac_cv_lib_dl_dlopen=yes
10130 else
10131   ac_cv_lib_dl_dlopen=no
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134     conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10140   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10141 else
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10143 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10144 if ${ac_cv_lib_svld_dlopen+:} false; then :
10145   $as_echo_n "(cached) " >&6
10146 else
10147   ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-lsvld  $LIBS"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h.  */
10151
10152 /* Override any GCC internal prototype to avoid an error.
10153    Use char because int might match the return type of a GCC
10154    builtin and then its argument prototype would still apply.  */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char dlopen ();
10159 int
10160 main ()
10161 {
10162 return dlopen ();
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168   ac_cv_lib_svld_dlopen=yes
10169 else
10170   ac_cv_lib_svld_dlopen=no
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173     conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10177 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10178 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10179   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10180 else
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10182 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10183 if ${ac_cv_lib_dld_dld_link+:} false; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-ldld  $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h.  */
10190
10191 /* Override any GCC internal prototype to avoid an error.
10192    Use char because int might match the return type of a GCC
10193    builtin and then its argument prototype would still apply.  */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char dld_link ();
10198 int
10199 main ()
10200 {
10201 return dld_link ();
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   ac_cv_lib_dld_dld_link=yes
10208 else
10209   ac_cv_lib_dld_dld_link=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10216 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10217 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10218   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10219 fi
10220
10221
10222 fi
10223
10224
10225 fi
10226
10227
10228 fi
10229
10230
10231 fi
10232
10233
10234 fi
10235
10236     ;;
10237   esac
10238
10239   if test "x$lt_cv_dlopen" != xno; then
10240     enable_dlopen=yes
10241   else
10242     enable_dlopen=no
10243   fi
10244
10245   case $lt_cv_dlopen in
10246   dlopen)
10247     save_CPPFLAGS="$CPPFLAGS"
10248     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10249
10250     save_LDFLAGS="$LDFLAGS"
10251     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10252
10253     save_LIBS="$LIBS"
10254     LIBS="$lt_cv_dlopen_libs $LIBS"
10255
10256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10257 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10258 if ${lt_cv_dlopen_self+:} false; then :
10259   $as_echo_n "(cached) " >&6
10260 else
10261           if test "$cross_compiling" = yes; then :
10262   lt_cv_dlopen_self=cross
10263 else
10264   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265   lt_status=$lt_dlunknown
10266   cat > conftest.$ac_ext <<_LT_EOF
10267 #line $LINENO "configure"
10268 #include "confdefs.h"
10269
10270 #if HAVE_DLFCN_H
10271 #include <dlfcn.h>
10272 #endif
10273
10274 #include <stdio.h>
10275
10276 #ifdef RTLD_GLOBAL
10277 #  define LT_DLGLOBAL           RTLD_GLOBAL
10278 #else
10279 #  ifdef DL_GLOBAL
10280 #    define LT_DLGLOBAL         DL_GLOBAL
10281 #  else
10282 #    define LT_DLGLOBAL         0
10283 #  endif
10284 #endif
10285
10286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287    find out it does not work in some platform. */
10288 #ifndef LT_DLLAZY_OR_NOW
10289 #  ifdef RTLD_LAZY
10290 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10291 #  else
10292 #    ifdef DL_LAZY
10293 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10294 #    else
10295 #      ifdef RTLD_NOW
10296 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10297 #      else
10298 #        ifdef DL_NOW
10299 #          define LT_DLLAZY_OR_NOW      DL_NOW
10300 #        else
10301 #          define LT_DLLAZY_OR_NOW      0
10302 #        endif
10303 #      endif
10304 #    endif
10305 #  endif
10306 #endif
10307
10308 /* When -fvisbility=hidden is used, assume the code has been annotated
10309    correspondingly for the symbols needed.  */
10310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10311 int fnord () __attribute__((visibility("default")));
10312 #endif
10313
10314 int fnord () { return 42; }
10315 int main ()
10316 {
10317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10318   int status = $lt_dlunknown;
10319
10320   if (self)
10321     {
10322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10323       else
10324         {
10325           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10326           else puts (dlerror ());
10327         }
10328       /* dlclose (self); */
10329     }
10330   else
10331     puts (dlerror ());
10332
10333   return status;
10334 }
10335 _LT_EOF
10336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10337   (eval $ac_link) 2>&5
10338   ac_status=$?
10339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10341     (./conftest; exit; ) >&5 2>/dev/null
10342     lt_status=$?
10343     case x$lt_status in
10344       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10347     esac
10348   else :
10349     # compilation failed
10350     lt_cv_dlopen_self=no
10351   fi
10352 fi
10353 rm -fr conftest*
10354
10355
10356 fi
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10358 $as_echo "$lt_cv_dlopen_self" >&6; }
10359
10360     if test "x$lt_cv_dlopen_self" = xyes; then
10361       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10363 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10364 if ${lt_cv_dlopen_self_static+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367           if test "$cross_compiling" = yes; then :
10368   lt_cv_dlopen_self_static=cross
10369 else
10370   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371   lt_status=$lt_dlunknown
10372   cat > conftest.$ac_ext <<_LT_EOF
10373 #line $LINENO "configure"
10374 #include "confdefs.h"
10375
10376 #if HAVE_DLFCN_H
10377 #include <dlfcn.h>
10378 #endif
10379
10380 #include <stdio.h>
10381
10382 #ifdef RTLD_GLOBAL
10383 #  define LT_DLGLOBAL           RTLD_GLOBAL
10384 #else
10385 #  ifdef DL_GLOBAL
10386 #    define LT_DLGLOBAL         DL_GLOBAL
10387 #  else
10388 #    define LT_DLGLOBAL         0
10389 #  endif
10390 #endif
10391
10392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393    find out it does not work in some platform. */
10394 #ifndef LT_DLLAZY_OR_NOW
10395 #  ifdef RTLD_LAZY
10396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10397 #  else
10398 #    ifdef DL_LAZY
10399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10400 #    else
10401 #      ifdef RTLD_NOW
10402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10403 #      else
10404 #        ifdef DL_NOW
10405 #          define LT_DLLAZY_OR_NOW      DL_NOW
10406 #        else
10407 #          define LT_DLLAZY_OR_NOW      0
10408 #        endif
10409 #      endif
10410 #    endif
10411 #  endif
10412 #endif
10413
10414 /* When -fvisbility=hidden is used, assume the code has been annotated
10415    correspondingly for the symbols needed.  */
10416 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10417 int fnord () __attribute__((visibility("default")));
10418 #endif
10419
10420 int fnord () { return 42; }
10421 int main ()
10422 {
10423   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10424   int status = $lt_dlunknown;
10425
10426   if (self)
10427     {
10428       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10429       else
10430         {
10431           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10432           else puts (dlerror ());
10433         }
10434       /* dlclose (self); */
10435     }
10436   else
10437     puts (dlerror ());
10438
10439   return status;
10440 }
10441 _LT_EOF
10442   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10443   (eval $ac_link) 2>&5
10444   ac_status=$?
10445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10447     (./conftest; exit; ) >&5 2>/dev/null
10448     lt_status=$?
10449     case x$lt_status in
10450       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10451       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10452       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10453     esac
10454   else :
10455     # compilation failed
10456     lt_cv_dlopen_self_static=no
10457   fi
10458 fi
10459 rm -fr conftest*
10460
10461
10462 fi
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10464 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10465     fi
10466
10467     CPPFLAGS="$save_CPPFLAGS"
10468     LDFLAGS="$save_LDFLAGS"
10469     LIBS="$save_LIBS"
10470     ;;
10471   esac
10472
10473   case $lt_cv_dlopen_self in
10474   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10475   *) enable_dlopen_self=unknown ;;
10476   esac
10477
10478   case $lt_cv_dlopen_self_static in
10479   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10480   *) enable_dlopen_self_static=unknown ;;
10481   esac
10482 fi
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500 striplib=
10501 old_striplib=
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10503 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10504 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10505   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10506   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10509 else
10510 # FIXME - insert some real tests, host_os isn't really good enough
10511   case $host_os in
10512   darwin*)
10513     if test -n "$STRIP" ; then
10514       striplib="$STRIP -x"
10515       old_striplib="$STRIP -S"
10516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517 $as_echo "yes" >&6; }
10518     else
10519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10521     fi
10522     ;;
10523   *)
10524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526     ;;
10527   esac
10528 fi
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541   # Report which library types will actually be built
10542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10543 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10545 $as_echo "$can_build_shared" >&6; }
10546
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10548 $as_echo_n "checking whether to build shared libraries... " >&6; }
10549   test "$can_build_shared" = "no" && enable_shared=no
10550
10551   # On AIX, shared libraries and static libraries use the same namespace, and
10552   # are all built from PIC.
10553   case $host_os in
10554   aix3*)
10555     test "$enable_shared" = yes && enable_static=no
10556     if test -n "$RANLIB"; then
10557       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10558       postinstall_cmds='$RANLIB $lib'
10559     fi
10560     ;;
10561
10562   aix[4-9]*)
10563     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10564       test "$enable_shared" = yes && enable_static=no
10565     fi
10566     ;;
10567   esac
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10569 $as_echo "$enable_shared" >&6; }
10570
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10572 $as_echo_n "checking whether to build static libraries... " >&6; }
10573   # Make sure either enable_shared or enable_static is yes.
10574   test "$enable_shared" = yes || enable_static=yes
10575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10576 $as_echo "$enable_static" >&6; }
10577
10578
10579
10580
10581 fi
10582 ac_ext=c
10583 ac_cpp='$CPP $CPPFLAGS'
10584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10587
10588 CC="$lt_save_CC"
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604         ac_config_commands="$ac_config_commands libtool"
10605
10606
10607
10608
10609 # Only expand once:
10610
10611
10612
10613 # Check whether --enable-shared was given.
10614 if test "${enable_shared+set}" = set; then :
10615   enableval=$enable_shared;
10616 else
10617   enable_shared=yes
10618 fi
10619
10620
10621
10622 # Check whether --enable-gettext was given.
10623 if test "${enable_gettext+set}" = set; then :
10624   enableval=$enable_gettext;
10625 else
10626   enable_gettext=yes
10627 fi
10628
10629
10630
10631 # Check whether --enable-lib64 was given.
10632 if test "${enable_lib64+set}" = set; then :
10633   enableval=$enable_lib64;
10634 else
10635   enable_lib64=no
10636 fi
10637
10638
10639
10640  pkg_name="attr"
10641
10642
10643     ac_ext=c
10644 ac_cpp='$CPP $CPPFLAGS'
10645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10648 if test -n "$ac_tool_prefix"; then
10649   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_prog_CC+:} false; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   if test -n "$CC"; then
10657   ac_cv_prog_CC="$CC" # Let the user override the test.
10658 else
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668     break 2
10669   fi
10670 done
10671   done
10672 IFS=$as_save_IFS
10673
10674 fi
10675 fi
10676 CC=$ac_cv_prog_CC
10677 if test -n "$CC"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10679 $as_echo "$CC" >&6; }
10680 else
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 fi
10684
10685
10686 fi
10687 if test -z "$ac_cv_prog_CC"; then
10688   ac_ct_CC=$CC
10689   # Extract the first word of "gcc", so it can be a program name with args.
10690 set dummy gcc; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   if test -n "$ac_ct_CC"; then
10697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10698 else
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702   IFS=$as_save_IFS
10703   test -z "$as_dir" && as_dir=.
10704     for ac_exec_ext in '' $ac_executable_extensions; do
10705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706     ac_cv_prog_ac_ct_CC="gcc"
10707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708     break 2
10709   fi
10710 done
10711   done
10712 IFS=$as_save_IFS
10713
10714 fi
10715 fi
10716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10717 if test -n "$ac_ct_CC"; then
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10719 $as_echo "$ac_ct_CC" >&6; }
10720 else
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10723 fi
10724
10725   if test "x$ac_ct_CC" = x; then
10726     CC=""
10727   else
10728     case $cross_compiling:$ac_tool_warned in
10729 yes:)
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10732 ac_tool_warned=yes ;;
10733 esac
10734     CC=$ac_ct_CC
10735   fi
10736 else
10737   CC="$ac_cv_prog_CC"
10738 fi
10739
10740 if test -z "$CC"; then
10741           if test -n "$ac_tool_prefix"; then
10742     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10743 set dummy ${ac_tool_prefix}cc; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_prog_CC+:} false; then :
10747   $as_echo_n "(cached) " >&6
10748 else
10749   if test -n "$CC"; then
10750   ac_cv_prog_CC="$CC" # Let the user override the test.
10751 else
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10754 do
10755   IFS=$as_save_IFS
10756   test -z "$as_dir" && as_dir=.
10757     for ac_exec_ext in '' $ac_executable_extensions; do
10758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759     ac_cv_prog_CC="${ac_tool_prefix}cc"
10760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761     break 2
10762   fi
10763 done
10764   done
10765 IFS=$as_save_IFS
10766
10767 fi
10768 fi
10769 CC=$ac_cv_prog_CC
10770 if test -n "$CC"; then
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10772 $as_echo "$CC" >&6; }
10773 else
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10776 fi
10777
10778
10779   fi
10780 fi
10781 if test -z "$CC"; then
10782   # Extract the first word of "cc", so it can be a program name with args.
10783 set dummy cc; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_prog_CC+:} false; then :
10787   $as_echo_n "(cached) " >&6
10788 else
10789   if test -n "$CC"; then
10790   ac_cv_prog_CC="$CC" # Let the user override the test.
10791 else
10792   ac_prog_rejected=no
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10795 do
10796   IFS=$as_save_IFS
10797   test -z "$as_dir" && as_dir=.
10798     for ac_exec_ext in '' $ac_executable_extensions; do
10799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10801        ac_prog_rejected=yes
10802        continue
10803      fi
10804     ac_cv_prog_CC="cc"
10805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806     break 2
10807   fi
10808 done
10809   done
10810 IFS=$as_save_IFS
10811
10812 if test $ac_prog_rejected = yes; then
10813   # We found a bogon in the path, so make sure we never use it.
10814   set dummy $ac_cv_prog_CC
10815   shift
10816   if test $# != 0; then
10817     # We chose a different compiler from the bogus one.
10818     # However, it has the same basename, so the bogon will be chosen
10819     # first if we set CC to just the basename; use the full file name.
10820     shift
10821     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10822   fi
10823 fi
10824 fi
10825 fi
10826 CC=$ac_cv_prog_CC
10827 if test -n "$CC"; then
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10829 $as_echo "$CC" >&6; }
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834
10835
10836 fi
10837 if test -z "$CC"; then
10838   if test -n "$ac_tool_prefix"; then
10839   for ac_prog in cl.exe
10840   do
10841     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_CC+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   if test -n "$CC"; then
10849   ac_cv_prog_CC="$CC" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854   IFS=$as_save_IFS
10855   test -z "$as_dir" && as_dir=.
10856     for ac_exec_ext in '' $ac_executable_extensions; do
10857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860     break 2
10861   fi
10862 done
10863   done
10864 IFS=$as_save_IFS
10865
10866 fi
10867 fi
10868 CC=$ac_cv_prog_CC
10869 if test -n "$CC"; then
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10871 $as_echo "$CC" >&6; }
10872 else
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876
10877
10878     test -n "$CC" && break
10879   done
10880 fi
10881 if test -z "$CC"; then
10882   ac_ct_CC=$CC
10883   for ac_prog in cl.exe
10884 do
10885   # Extract the first word of "$ac_prog", so it can be a program name with args.
10886 set dummy $ac_prog; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   if test -n "$ac_ct_CC"; then
10893   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10894 else
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898   IFS=$as_save_IFS
10899   test -z "$as_dir" && as_dir=.
10900     for ac_exec_ext in '' $ac_executable_extensions; do
10901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902     ac_cv_prog_ac_ct_CC="$ac_prog"
10903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904     break 2
10905   fi
10906 done
10907   done
10908 IFS=$as_save_IFS
10909
10910 fi
10911 fi
10912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10913 if test -n "$ac_ct_CC"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10915 $as_echo "$ac_ct_CC" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920
10921
10922   test -n "$ac_ct_CC" && break
10923 done
10924
10925   if test "x$ac_ct_CC" = x; then
10926     CC=""
10927   else
10928     case $cross_compiling:$ac_tool_warned in
10929 yes:)
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932 ac_tool_warned=yes ;;
10933 esac
10934     CC=$ac_ct_CC
10935   fi
10936 fi
10937
10938 fi
10939
10940
10941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10943 as_fn_error $? "no acceptable C compiler found in \$PATH
10944 See \`config.log' for more details" "$LINENO" 5; }
10945
10946 # Provide some information about the compiler.
10947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10948 set X $ac_compile
10949 ac_compiler=$2
10950 for ac_option in --version -v -V -qversion; do
10951   { { ac_try="$ac_compiler $ac_option >&5"
10952 case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10957 $as_echo "$ac_try_echo"; } >&5
10958   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10959   ac_status=$?
10960   if test -s conftest.err; then
10961     sed '10a\
10962 ... rest of stderr output deleted ...
10963          10q' conftest.err >conftest.er1
10964     cat conftest.er1 >&5
10965   fi
10966   rm -f conftest.er1 conftest.err
10967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10968   test $ac_status = 0; }
10969 done
10970
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10973 if ${ac_cv_c_compiler_gnu+:} false; then :
10974   $as_echo_n "(cached) " >&6
10975 else
10976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h.  */
10978
10979 int
10980 main ()
10981 {
10982 #ifndef __GNUC__
10983        choke me
10984 #endif
10985
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991   ac_compiler_gnu=yes
10992 else
10993   ac_compiler_gnu=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10997
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11001 if test $ac_compiler_gnu = yes; then
11002   GCC=yes
11003 else
11004   GCC=
11005 fi
11006 ac_test_CFLAGS=${CFLAGS+set}
11007 ac_save_CFLAGS=$CFLAGS
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11010 if ${ac_cv_prog_cc_g+:} false; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013   ac_save_c_werror_flag=$ac_c_werror_flag
11014    ac_c_werror_flag=yes
11015    ac_cv_prog_cc_g=no
11016    CFLAGS="-g"
11017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h.  */
11019
11020 int
11021 main ()
11022 {
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_compile "$LINENO"; then :
11029   ac_cv_prog_cc_g=yes
11030 else
11031   CFLAGS=""
11032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 int
11036 main ()
11037 {
11038
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_compile "$LINENO"; then :
11044
11045 else
11046   ac_c_werror_flag=$ac_save_c_werror_flag
11047          CFLAGS="-g"
11048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h.  */
11050
11051 int
11052 main ()
11053 {
11054
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060   ac_cv_prog_cc_g=yes
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067    ac_c_werror_flag=$ac_save_c_werror_flag
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11070 $as_echo "$ac_cv_prog_cc_g" >&6; }
11071 if test "$ac_test_CFLAGS" = set; then
11072   CFLAGS=$ac_save_CFLAGS
11073 elif test $ac_cv_prog_cc_g = yes; then
11074   if test "$GCC" = yes; then
11075     CFLAGS="-g -O2"
11076   else
11077     CFLAGS="-g"
11078   fi
11079 else
11080   if test "$GCC" = yes; then
11081     CFLAGS="-O2"
11082   else
11083     CFLAGS=
11084   fi
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11088 if ${ac_cv_prog_cc_c89+:} false; then :
11089   $as_echo_n "(cached) " >&6
11090 else
11091   ac_cv_prog_cc_c89=no
11092 ac_save_CC=$CC
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h.  */
11095 #include <stdarg.h>
11096 #include <stdio.h>
11097 struct stat;
11098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11099 struct buf { int x; };
11100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11101 static char *e (p, i)
11102      char **p;
11103      int i;
11104 {
11105   return p[i];
11106 }
11107 static char *f (char * (*g) (char **, int), char **p, ...)
11108 {
11109   char *s;
11110   va_list v;
11111   va_start (v,p);
11112   s = g (p, va_arg (v,int));
11113   va_end (v);
11114   return s;
11115 }
11116
11117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11118    function prototypes and stuff, but not '\xHH' hex character constants.
11119    These don't provoke an error unfortunately, instead are silently treated
11120    as 'x'.  The following induces an error, until -std is added to get
11121    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11122    array size at least.  It's necessary to write '\x00'==0 to get something
11123    that's true only with -std.  */
11124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11125
11126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11127    inside strings and character constants.  */
11128 #define FOO(x) 'x'
11129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11130
11131 int test (int i, double x);
11132 struct s1 {int (*f) (int a);};
11133 struct s2 {int (*f) (double a);};
11134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11135 int argc;
11136 char **argv;
11137 int
11138 main ()
11139 {
11140 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11146         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11147 do
11148   CC="$ac_save_CC $ac_arg"
11149   if ac_fn_c_try_compile "$LINENO"; then :
11150   ac_cv_prog_cc_c89=$ac_arg
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext
11153   test "x$ac_cv_prog_cc_c89" != "xno" && break
11154 done
11155 rm -f conftest.$ac_ext
11156 CC=$ac_save_CC
11157
11158 fi
11159 # AC_CACHE_VAL
11160 case "x$ac_cv_prog_cc_c89" in
11161   x)
11162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11163 $as_echo "none needed" >&6; } ;;
11164   xno)
11165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11166 $as_echo "unsupported" >&6; } ;;
11167   *)
11168     CC="$CC $ac_cv_prog_cc_c89"
11169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11171 esac
11172 if test "x$ac_cv_prog_cc_c89" != xno; then :
11173
11174 fi
11175
11176 ac_ext=c
11177 ac_cpp='$CPP $CPPFLAGS'
11178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11181
11182
11183     . ./VERSION
11184     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11185
11186     pkg_release=$PKG_BUILD
11187     test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11188
11189
11190     DEBUG=${DEBUG:-'-DDEBUG'}               debug_build="$DEBUG"
11191
11192
11193     OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11194     opt_build="$OPTIMIZER"
11195
11196
11197     MALLOCLIB=${MALLOCLIB:-''}              malloc_lib="$MALLOCLIB"
11198
11199
11200     pkg_user=`id -u -n`
11201     test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11202
11203
11204     pkg_group=`id -g -n`
11205     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11206
11207
11208     pkg_distribution=`uname -s`
11209     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11210
11211
11212     pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11213     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11214
11215
11216  ac_ext=c
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11221 if test -n "$ac_tool_prefix"; then
11222   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11223 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_prog_CC+:} false; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   if test -n "$CC"; then
11230   ac_cv_prog_CC="$CC" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235   IFS=$as_save_IFS
11236   test -z "$as_dir" && as_dir=.
11237     for ac_exec_ext in '' $ac_executable_extensions; do
11238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241     break 2
11242   fi
11243 done
11244   done
11245 IFS=$as_save_IFS
11246
11247 fi
11248 fi
11249 CC=$ac_cv_prog_CC
11250 if test -n "$CC"; then
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11252 $as_echo "$CC" >&6; }
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259 fi
11260 if test -z "$ac_cv_prog_CC"; then
11261   ac_ct_CC=$CC
11262   # Extract the first word of "gcc", so it can be a program name with args.
11263 set dummy gcc; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   if test -n "$ac_ct_CC"; then
11270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275   IFS=$as_save_IFS
11276   test -z "$as_dir" && as_dir=.
11277     for ac_exec_ext in '' $ac_executable_extensions; do
11278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279     ac_cv_prog_ac_ct_CC="gcc"
11280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281     break 2
11282   fi
11283 done
11284   done
11285 IFS=$as_save_IFS
11286
11287 fi
11288 fi
11289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11290 if test -n "$ac_ct_CC"; then
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11292 $as_echo "$ac_ct_CC" >&6; }
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297
11298   if test "x$ac_ct_CC" = x; then
11299     CC=""
11300   else
11301     case $cross_compiling:$ac_tool_warned in
11302 yes:)
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11305 ac_tool_warned=yes ;;
11306 esac
11307     CC=$ac_ct_CC
11308   fi
11309 else
11310   CC="$ac_cv_prog_CC"
11311 fi
11312
11313 if test -z "$CC"; then
11314           if test -n "$ac_tool_prefix"; then
11315     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11316 set dummy ${ac_tool_prefix}cc; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if ${ac_cv_prog_CC+:} false; then :
11320   $as_echo_n "(cached) " >&6
11321 else
11322   if test -n "$CC"; then
11323   ac_cv_prog_CC="$CC" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328   IFS=$as_save_IFS
11329   test -z "$as_dir" && as_dir=.
11330     for ac_exec_ext in '' $ac_executable_extensions; do
11331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332     ac_cv_prog_CC="${ac_tool_prefix}cc"
11333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334     break 2
11335   fi
11336 done
11337   done
11338 IFS=$as_save_IFS
11339
11340 fi
11341 fi
11342 CC=$ac_cv_prog_CC
11343 if test -n "$CC"; then
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11345 $as_echo "$CC" >&6; }
11346 else
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350
11351
11352   fi
11353 fi
11354 if test -z "$CC"; then
11355   # Extract the first word of "cc", so it can be a program name with args.
11356 set dummy cc; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_prog_CC+:} false; then :
11360   $as_echo_n "(cached) " >&6
11361 else
11362   if test -n "$CC"; then
11363   ac_cv_prog_CC="$CC" # Let the user override the test.
11364 else
11365   ac_prog_rejected=no
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369   IFS=$as_save_IFS
11370   test -z "$as_dir" && as_dir=.
11371     for ac_exec_ext in '' $ac_executable_extensions; do
11372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11374        ac_prog_rejected=yes
11375        continue
11376      fi
11377     ac_cv_prog_CC="cc"
11378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379     break 2
11380   fi
11381 done
11382   done
11383 IFS=$as_save_IFS
11384
11385 if test $ac_prog_rejected = yes; then
11386   # We found a bogon in the path, so make sure we never use it.
11387   set dummy $ac_cv_prog_CC
11388   shift
11389   if test $# != 0; then
11390     # We chose a different compiler from the bogus one.
11391     # However, it has the same basename, so the bogon will be chosen
11392     # first if we set CC to just the basename; use the full file name.
11393     shift
11394     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11395   fi
11396 fi
11397 fi
11398 fi
11399 CC=$ac_cv_prog_CC
11400 if test -n "$CC"; then
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11402 $as_echo "$CC" >&6; }
11403 else
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 fi
11407
11408
11409 fi
11410 if test -z "$CC"; then
11411   if test -n "$ac_tool_prefix"; then
11412   for ac_prog in cl.exe
11413   do
11414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if ${ac_cv_prog_CC+:} false; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   if test -n "$CC"; then
11422   ac_cv_prog_CC="$CC" # Let the user override the test.
11423 else
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11426 do
11427   IFS=$as_save_IFS
11428   test -z "$as_dir" && as_dir=.
11429     for ac_exec_ext in '' $ac_executable_extensions; do
11430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433     break 2
11434   fi
11435 done
11436   done
11437 IFS=$as_save_IFS
11438
11439 fi
11440 fi
11441 CC=$ac_cv_prog_CC
11442 if test -n "$CC"; then
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11444 $as_echo "$CC" >&6; }
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11448 fi
11449
11450
11451     test -n "$CC" && break
11452   done
11453 fi
11454 if test -z "$CC"; then
11455   ac_ct_CC=$CC
11456   for ac_prog in cl.exe
11457 do
11458   # Extract the first word of "$ac_prog", so it can be a program name with args.
11459 set dummy $ac_prog; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11463   $as_echo_n "(cached) " >&6
11464 else
11465   if test -n "$ac_ct_CC"; then
11466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11467 else
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471   IFS=$as_save_IFS
11472   test -z "$as_dir" && as_dir=.
11473     for ac_exec_ext in '' $ac_executable_extensions; do
11474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475     ac_cv_prog_ac_ct_CC="$ac_prog"
11476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477     break 2
11478   fi
11479 done
11480   done
11481 IFS=$as_save_IFS
11482
11483 fi
11484 fi
11485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11486 if test -n "$ac_ct_CC"; then
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11488 $as_echo "$ac_ct_CC" >&6; }
11489 else
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11492 fi
11493
11494
11495   test -n "$ac_ct_CC" && break
11496 done
11497
11498   if test "x$ac_ct_CC" = x; then
11499     CC=""
11500   else
11501     case $cross_compiling:$ac_tool_warned in
11502 yes:)
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11505 ac_tool_warned=yes ;;
11506 esac
11507     CC=$ac_ct_CC
11508   fi
11509 fi
11510
11511 fi
11512
11513
11514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11516 as_fn_error $? "no acceptable C compiler found in \$PATH
11517 See \`config.log' for more details" "$LINENO" 5; }
11518
11519 # Provide some information about the compiler.
11520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11521 set X $ac_compile
11522 ac_compiler=$2
11523 for ac_option in --version -v -V -qversion; do
11524   { { ac_try="$ac_compiler $ac_option >&5"
11525 case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11530 $as_echo "$ac_try_echo"; } >&5
11531   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11532   ac_status=$?
11533   if test -s conftest.err; then
11534     sed '10a\
11535 ... rest of stderr output deleted ...
11536          10q' conftest.err >conftest.er1
11537     cat conftest.er1 >&5
11538   fi
11539   rm -f conftest.er1 conftest.err
11540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541   test $ac_status = 0; }
11542 done
11543
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11546 if ${ac_cv_c_compiler_gnu+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551
11552 int
11553 main ()
11554 {
11555 #ifndef __GNUC__
11556        choke me
11557 #endif
11558
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564   ac_compiler_gnu=yes
11565 else
11566   ac_compiler_gnu=no
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11570
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11574 if test $ac_compiler_gnu = yes; then
11575   GCC=yes
11576 else
11577   GCC=
11578 fi
11579 ac_test_CFLAGS=${CFLAGS+set}
11580 ac_save_CFLAGS=$CFLAGS
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11583 if ${ac_cv_prog_cc_g+:} false; then :
11584   $as_echo_n "(cached) " >&6
11585 else
11586   ac_save_c_werror_flag=$ac_c_werror_flag
11587    ac_c_werror_flag=yes
11588    ac_cv_prog_cc_g=no
11589    CFLAGS="-g"
11590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h.  */
11592
11593 int
11594 main ()
11595 {
11596
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602   ac_cv_prog_cc_g=yes
11603 else
11604   CFLAGS=""
11605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607
11608 int
11609 main ()
11610 {
11611
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_compile "$LINENO"; then :
11617
11618 else
11619   ac_c_werror_flag=$ac_save_c_werror_flag
11620          CFLAGS="-g"
11621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h.  */
11623
11624 int
11625 main ()
11626 {
11627
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_compile "$LINENO"; then :
11633   ac_cv_prog_cc_g=yes
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640    ac_c_werror_flag=$ac_save_c_werror_flag
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11643 $as_echo "$ac_cv_prog_cc_g" >&6; }
11644 if test "$ac_test_CFLAGS" = set; then
11645   CFLAGS=$ac_save_CFLAGS
11646 elif test $ac_cv_prog_cc_g = yes; then
11647   if test "$GCC" = yes; then
11648     CFLAGS="-g -O2"
11649   else
11650     CFLAGS="-g"
11651   fi
11652 else
11653   if test "$GCC" = yes; then
11654     CFLAGS="-O2"
11655   else
11656     CFLAGS=
11657   fi
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11661 if ${ac_cv_prog_cc_c89+:} false; then :
11662   $as_echo_n "(cached) " >&6
11663 else
11664   ac_cv_prog_cc_c89=no
11665 ac_save_CC=$CC
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h.  */
11668 #include <stdarg.h>
11669 #include <stdio.h>
11670 struct stat;
11671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11672 struct buf { int x; };
11673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11674 static char *e (p, i)
11675      char **p;
11676      int i;
11677 {
11678   return p[i];
11679 }
11680 static char *f (char * (*g) (char **, int), char **p, ...)
11681 {
11682   char *s;
11683   va_list v;
11684   va_start (v,p);
11685   s = g (p, va_arg (v,int));
11686   va_end (v);
11687   return s;
11688 }
11689
11690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11691    function prototypes and stuff, but not '\xHH' hex character constants.
11692    These don't provoke an error unfortunately, instead are silently treated
11693    as 'x'.  The following induces an error, until -std is added to get
11694    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11695    array size at least.  It's necessary to write '\x00'==0 to get something
11696    that's true only with -std.  */
11697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11698
11699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11700    inside strings and character constants.  */
11701 #define FOO(x) 'x'
11702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11703
11704 int test (int i, double x);
11705 struct s1 {int (*f) (int a);};
11706 struct s2 {int (*f) (double a);};
11707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11708 int argc;
11709 char **argv;
11710 int
11711 main ()
11712 {
11713 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11719         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11720 do
11721   CC="$ac_save_CC $ac_arg"
11722   if ac_fn_c_try_compile "$LINENO"; then :
11723   ac_cv_prog_cc_c89=$ac_arg
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext
11726   test "x$ac_cv_prog_cc_c89" != "xno" && break
11727 done
11728 rm -f conftest.$ac_ext
11729 CC=$ac_save_CC
11730
11731 fi
11732 # AC_CACHE_VAL
11733 case "x$ac_cv_prog_cc_c89" in
11734   x)
11735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11736 $as_echo "none needed" >&6; } ;;
11737   xno)
11738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11739 $as_echo "unsupported" >&6; } ;;
11740   *)
11741     CC="$CC $ac_cv_prog_cc_c89"
11742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11744 esac
11745 if test "x$ac_cv_prog_cc_c89" != xno; then :
11746
11747 fi
11748
11749 ac_ext=c
11750 ac_cpp='$CPP $CPPFLAGS'
11751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11754
11755     cc="$CC"
11756
11757      if test -z ""$cc""; then
11758         echo
11759         echo FATAL ERROR: cc does not seem to be installed.
11760         echo attr cannot be built without a working C compiler installation.
11761         exit 1
11762     fi
11763
11764
11765     search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11766
11767     for ac_prog in gmake make
11768 do
11769   # Extract the first word of "$ac_prog", so it can be a program name with args.
11770 set dummy $ac_prog; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_path_MAKE+:} false; then :
11774   $as_echo_n "(cached) " >&6
11775 else
11776   case $MAKE in
11777   [\\/]* | ?:[\\/]*)
11778   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11779   ;;
11780   *)
11781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $search_path
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_exec_ext in '' $ac_executable_extensions; do
11787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795
11796   ;;
11797 esac
11798 fi
11799 MAKE=$ac_cv_path_MAKE
11800 if test -n "$MAKE"; then
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11802 $as_echo "$MAKE" >&6; }
11803 else
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 fi
11807
11808
11809   test -n "$MAKE" && break
11810 done
11811
11812     make=$MAKE
11813
11814      if test -z ""$make""; then
11815         echo
11816         echo FATAL ERROR: make does not seem to be installed.
11817         echo attr cannot be built without a working GNU make installation.
11818         exit 1
11819     fi
11820
11821
11822     # Extract the first word of "tar", so it can be a program name with args.
11823 set dummy tar; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_path_TAR+:} false; then :
11827   $as_echo_n "(cached) " >&6
11828 else
11829   case $TAR in
11830   [\\/]* | ?:[\\/]*)
11831   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11832   ;;
11833   *)
11834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $search_path
11836 do
11837   IFS=$as_save_IFS
11838   test -z "$as_dir" && as_dir=.
11839     for ac_exec_ext in '' $ac_executable_extensions; do
11840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843     break 2
11844   fi
11845 done
11846   done
11847 IFS=$as_save_IFS
11848
11849   ;;
11850 esac
11851 fi
11852 TAR=$ac_cv_path_TAR
11853 if test -n "$TAR"; then
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11855 $as_echo "$TAR" >&6; }
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861
11862     tar=$TAR
11863
11864
11865     # Extract the first word of "gzip", so it can be a program name with args.
11866 set dummy gzip; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_path_ZIP+:} false; then :
11870   $as_echo_n "(cached) " >&6
11871 else
11872   case $ZIP in
11873   [\\/]* | ?:[\\/]*)
11874   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11875   ;;
11876   *)
11877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $search_path
11879 do
11880   IFS=$as_save_IFS
11881   test -z "$as_dir" && as_dir=.
11882     for ac_exec_ext in '' $ac_executable_extensions; do
11883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886     break 2
11887   fi
11888 done
11889   done
11890 IFS=$as_save_IFS
11891
11892   ;;
11893 esac
11894 fi
11895 ZIP=$ac_cv_path_ZIP
11896 if test -n "$ZIP"; then
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11898 $as_echo "$ZIP" >&6; }
11899 else
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 fi
11903
11904
11905     zip=$ZIP
11906
11907
11908     # Extract the first word of "makedepend", so it can be a program name with args.
11909 set dummy makedepend; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   case $MAKEDEPEND in
11916   [\\/]* | ?:[\\/]*)
11917   ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11918   ;;
11919   *)
11920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11922 do
11923   IFS=$as_save_IFS
11924   test -z "$as_dir" && as_dir=.
11925     for ac_exec_ext in '' $ac_executable_extensions; do
11926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929     break 2
11930   fi
11931 done
11932   done
11933 IFS=$as_save_IFS
11934
11935   test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11936   ;;
11937 esac
11938 fi
11939 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11940 if test -n "$MAKEDEPEND"; then
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11942 $as_echo "$MAKEDEPEND" >&6; }
11943 else
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947
11948
11949     makedepend=$MAKEDEPEND
11950
11951
11952     # Extract the first word of "awk", so it can be a program name with args.
11953 set dummy awk; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_path_AWK+:} false; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   case $AWK in
11960   [\\/]* | ?:[\\/]*)
11961   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11962   ;;
11963   *)
11964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965 for as_dir in $search_path
11966 do
11967   IFS=$as_save_IFS
11968   test -z "$as_dir" && as_dir=.
11969     for ac_exec_ext in '' $ac_executable_extensions; do
11970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11971     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973     break 2
11974   fi
11975 done
11976   done
11977 IFS=$as_save_IFS
11978
11979   ;;
11980 esac
11981 fi
11982 AWK=$ac_cv_path_AWK
11983 if test -n "$AWK"; then
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11985 $as_echo "$AWK" >&6; }
11986 else
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 fi
11990
11991
11992     awk=$AWK
11993
11994
11995     # Extract the first word of "sed", so it can be a program name with args.
11996 set dummy sed; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_SED+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   case $SED in
12003   [\\/]* | ?:[\\/]*)
12004   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12005   ;;
12006   *)
12007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $search_path
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021
12022   ;;
12023 esac
12024 fi
12025 SED=$ac_cv_path_SED
12026 if test -n "$SED"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12028 $as_echo "$SED" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035     sed=$SED
12036
12037
12038     # Extract the first word of "echo", so it can be a program name with args.
12039 set dummy echo; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_path_ECHO+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   case $ECHO in
12046   [\\/]* | ?:[\\/]*)
12047   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12048   ;;
12049   *)
12050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $search_path
12052 do
12053   IFS=$as_save_IFS
12054   test -z "$as_dir" && as_dir=.
12055     for ac_exec_ext in '' $ac_executable_extensions; do
12056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059     break 2
12060   fi
12061 done
12062   done
12063 IFS=$as_save_IFS
12064
12065   ;;
12066 esac
12067 fi
12068 ECHO=$ac_cv_path_ECHO
12069 if test -n "$ECHO"; then
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
12071 $as_echo "$ECHO" >&6; }
12072 else
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077
12078     echo=$ECHO
12079
12080
12081     # Extract the first word of "sort", so it can be a program name with args.
12082 set dummy sort; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_SORT+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   case $SORT in
12089   [\\/]* | ?:[\\/]*)
12090   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12091   ;;
12092   *)
12093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $search_path
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107
12108   ;;
12109 esac
12110 fi
12111 SORT=$ac_cv_path_SORT
12112 if test -n "$SORT"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12114 $as_echo "$SORT" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121     sort=$SORT
12122
12123
12124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12125 $as_echo_n "checking whether ln -s works... " >&6; }
12126 LN_S=$as_ln_s
12127 if test "$LN_S" = "ln -s"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12132 $as_echo "no, using $LN_S" >&6; }
12133 fi
12134
12135
12136     if test "$enable_gettext" = yes; then
12137         # Extract the first word of "msgfmt", so it can be a program name with args.
12138 set dummy msgfmt; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_path_MSGFMT+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   case $MSGFMT in
12145   [\\/]* | ?:[\\/]*)
12146   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12147   ;;
12148   *)
12149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $search_path
12151 do
12152   IFS=$as_save_IFS
12153   test -z "$as_dir" && as_dir=.
12154     for ac_exec_ext in '' $ac_executable_extensions; do
12155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158     break 2
12159   fi
12160 done
12161   done
12162 IFS=$as_save_IFS
12163
12164   ;;
12165 esac
12166 fi
12167 MSGFMT=$ac_cv_path_MSGFMT
12168 if test -n "$MSGFMT"; then
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12170 $as_echo "$MSGFMT" >&6; }
12171 else
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12174 fi
12175
12176
12177         msgfmt=$MSGFMT
12178
12179          if test -z ""$msgfmt""; then
12180         echo
12181         echo FATAL ERROR: msgfmt does not seem to be installed.
12182         echo attr cannot be built without a working gettext installation.
12183         exit 1
12184     fi
12185
12186
12187         # Extract the first word of "msgmerge", so it can be a program name with args.
12188 set dummy msgmerge; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_MSGMERGE+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   case $MSGMERGE in
12195   [\\/]* | ?:[\\/]*)
12196   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12197   ;;
12198   *)
12199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $search_path
12201 do
12202   IFS=$as_save_IFS
12203   test -z "$as_dir" && as_dir=.
12204     for ac_exec_ext in '' $ac_executable_extensions; do
12205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208     break 2
12209   fi
12210 done
12211   done
12212 IFS=$as_save_IFS
12213
12214   ;;
12215 esac
12216 fi
12217 MSGMERGE=$ac_cv_path_MSGMERGE
12218 if test -n "$MSGMERGE"; then
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12220 $as_echo "$MSGMERGE" >&6; }
12221 else
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225
12226
12227         msgmerge=$MSGMERGE
12228
12229          if test -z ""$msgmerge""; then
12230         echo
12231         echo FATAL ERROR: msgmerge does not seem to be installed.
12232         echo attr cannot be built without a working gettext installation.
12233         exit 1
12234     fi
12235
12236
12237         # Extract the first word of "xgettext", so it can be a program name with args.
12238 set dummy xgettext; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if ${ac_cv_path_XGETTEXT+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   case $XGETTEXT in
12245   [\\/]* | ?:[\\/]*)
12246   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12247   ;;
12248   *)
12249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $search_path
12251 do
12252   IFS=$as_save_IFS
12253   test -z "$as_dir" && as_dir=.
12254     for ac_exec_ext in '' $ac_executable_extensions; do
12255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258     break 2
12259   fi
12260 done
12261   done
12262 IFS=$as_save_IFS
12263
12264   ;;
12265 esac
12266 fi
12267 XGETTEXT=$ac_cv_path_XGETTEXT
12268 if test -n "$XGETTEXT"; then
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12270 $as_echo "$XGETTEXT" >&6; }
12271 else
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12274 fi
12275
12276
12277         xgettext=$XGETTEXT
12278
12279          if test -z ""$xgettext""; then
12280         echo
12281         echo FATAL ERROR: xgettext does not seem to be installed.
12282         echo attr cannot be built without a working gettext installation.
12283         exit 1
12284     fi
12285
12286
12287
12288 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12289
12290     fi
12291
12292     # Extract the first word of "rpm", so it can be a program name with args.
12293 set dummy rpm; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_path_RPM+:} false; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   case $RPM in
12300   [\\/]* | ?:[\\/]*)
12301   ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12302   ;;
12303   *)
12304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $search_path
12306 do
12307   IFS=$as_save_IFS
12308   test -z "$as_dir" && as_dir=.
12309     for ac_exec_ext in '' $ac_executable_extensions; do
12310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311     ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313     break 2
12314   fi
12315 done
12316   done
12317 IFS=$as_save_IFS
12318
12319   ;;
12320 esac
12321 fi
12322 RPM=$ac_cv_path_RPM
12323 if test -n "$RPM"; then
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12325 $as_echo "$RPM" >&6; }
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332     rpm=$RPM
12333
12334
12335         rpm_version=0
12336     test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12337                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12338
12339                 if test $rpm_version -ge 4; then
12340         # Extract the first word of "rpmbuild", so it can be a program name with args.
12341 set dummy rpmbuild; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_path_RPMBUILD+:} false; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347   case $RPMBUILD in
12348   [\\/]* | ?:[\\/]*)
12349   ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12350   ;;
12351   *)
12352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355   IFS=$as_save_IFS
12356   test -z "$as_dir" && as_dir=.
12357     for ac_exec_ext in '' $ac_executable_extensions; do
12358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359     ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361     break 2
12362   fi
12363 done
12364   done
12365 IFS=$as_save_IFS
12366
12367   ;;
12368 esac
12369 fi
12370 RPMBUILD=$ac_cv_path_RPMBUILD
12371 if test -n "$RPMBUILD"; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12373 $as_echo "$RPMBUILD" >&6; }
12374 else
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380         rpmbuild=$RPMBUILD
12381     else
12382         rpmbuild=$RPM
12383     fi
12384
12385
12386  have_zipped_manpages=false
12387     for d in ${prefix}/share/man ${prefix}/man ; do
12388         if test -f $d/man1/man.1.gz
12389         then
12390             have_zipped_manpages=true
12391             break
12392         fi
12393     done
12394
12395
12396
12397                   enable_lib64="$enable_lib64"
12398   libdirsuffix=""
12399   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12400   if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12401     save_IFS="${IFS=    }"; IFS=":"
12402     for searchdir in $searchpath; do
12403       if test -d "$searchdir"; then
12404         case "$searchdir" in
12405           */lib64/ | */lib64 ) libdirsuffix=64 ;;
12406           *) searchdir=`cd "$searchdir" && pwd`
12407              case "$searchdir" in
12408                */lib64 ) libdirsuffix=64 ;;
12409              esac ;;
12410         esac
12411       fi
12412     done
12413     IFS="$save_IFS"
12414   fi
12415
12416
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12419 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12420 if ${ac_cv_c_const+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h.  */
12425
12426 int
12427 main ()
12428 {
12429
12430 #ifndef __cplusplus
12431   /* Ultrix mips cc rejects this sort of thing.  */
12432   typedef int charset[2];
12433   const charset cs = { 0, 0 };
12434   /* SunOS 4.1.1 cc rejects this.  */
12435   char const *const *pcpcc;
12436   char **ppc;
12437   /* NEC SVR4.0.2 mips cc rejects this.  */
12438   struct point {int x, y;};
12439   static struct point const zero = {0,0};
12440   /* AIX XL C 1.02.0.0 rejects this.
12441      It does not let you subtract one const X* pointer from another in
12442      an arm of an if-expression whose if-part is not a constant
12443      expression */
12444   const char *g = "string";
12445   pcpcc = &g + (g ? g-g : 0);
12446   /* HPUX 7.0 cc rejects these. */
12447   ++pcpcc;
12448   ppc = (char**) pcpcc;
12449   pcpcc = (char const *const *) ppc;
12450   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12451     char tx;
12452     char *t = &tx;
12453     char const *s = 0 ? (char *) 0 : (char const *) 0;
12454
12455     *t++ = 0;
12456     if (s) return 0;
12457   }
12458   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12459     int x[] = {25, 17};
12460     const int *foo = &x[0];
12461     ++foo;
12462   }
12463   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12464     typedef const int *iptr;
12465     iptr p = 0;
12466     ++p;
12467   }
12468   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12469        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12470     struct s { int j; const int *ap[3]; } bx;
12471     struct s *b = &bx; b->j = 5;
12472   }
12473   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12474     const int foo = 10;
12475     if (!foo) return 0;
12476   }
12477   return !cs[0] && !zero.x;
12478 #endif
12479
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485   ac_cv_c_const=yes
12486 else
12487   ac_cv_c_const=no
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12492 $as_echo "$ac_cv_c_const" >&6; }
12493 if test $ac_cv_c_const = no; then
12494
12495 $as_echo "#define const /**/" >>confdefs.h
12496
12497 fi
12498
12499 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12500 if test "x$ac_cv_type_mode_t" = xyes; then :
12501
12502 else
12503
12504 cat >>confdefs.h <<_ACEOF
12505 #define mode_t int
12506 _ACEOF
12507
12508 fi
12509
12510 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12511 if test "x$ac_cv_type_size_t" = xyes; then :
12512
12513 else
12514
12515 cat >>confdefs.h <<_ACEOF
12516 #define size_t unsigned int
12517 _ACEOF
12518
12519 fi
12520
12521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12522 # for constant arguments.  Useless!
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12524 $as_echo_n "checking for working alloca.h... " >&6; }
12525 if ${ac_cv_working_alloca_h+:} false; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h.  */
12530 #include <alloca.h>
12531 int
12532 main ()
12533 {
12534 char *p = (char *) alloca (2 * sizeof (int));
12535                           if (p) return 0;
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541   ac_cv_working_alloca_h=yes
12542 else
12543   ac_cv_working_alloca_h=no
12544 fi
12545 rm -f core conftest.err conftest.$ac_objext \
12546     conftest$ac_exeext conftest.$ac_ext
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12549 $as_echo "$ac_cv_working_alloca_h" >&6; }
12550 if test $ac_cv_working_alloca_h = yes; then
12551
12552 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12553
12554 fi
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12557 $as_echo_n "checking for alloca... " >&6; }
12558 if ${ac_cv_func_alloca_works+:} false; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h.  */
12563 #ifdef __GNUC__
12564 # define alloca __builtin_alloca
12565 #else
12566 # ifdef _MSC_VER
12567 #  include <malloc.h>
12568 #  define alloca _alloca
12569 # else
12570 #  ifdef HAVE_ALLOCA_H
12571 #   include <alloca.h>
12572 #  else
12573 #   ifdef _AIX
12574  #pragma alloca
12575 #   else
12576 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12577 void *alloca (size_t);
12578 #    endif
12579 #   endif
12580 #  endif
12581 # endif
12582 #endif
12583
12584 int
12585 main ()
12586 {
12587 char *p = (char *) alloca (1);
12588                                     if (p) return 0;
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594   ac_cv_func_alloca_works=yes
12595 else
12596   ac_cv_func_alloca_works=no
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599     conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12602 $as_echo "$ac_cv_func_alloca_works" >&6; }
12603
12604 if test $ac_cv_func_alloca_works = yes; then
12605
12606 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12607
12608 else
12609   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12610 # that cause trouble.  Some versions do not even contain alloca or
12611 # contain a buggy version.  If you still want to use their alloca,
12612 # use ar to extract alloca.o from them instead of compiling alloca.c.
12613
12614 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12615
12616 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12617
12618
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12620 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12621 if ${ac_cv_os_cray+:} false; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626 #if defined CRAY && ! defined CRAY2
12627 webecray
12628 #else
12629 wenotbecray
12630 #endif
12631
12632 _ACEOF
12633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12634   $EGREP "webecray" >/dev/null 2>&1; then :
12635   ac_cv_os_cray=yes
12636 else
12637   ac_cv_os_cray=no
12638 fi
12639 rm -f conftest*
12640
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12643 $as_echo "$ac_cv_os_cray" >&6; }
12644 if test $ac_cv_os_cray = yes; then
12645   for ac_func in _getb67 GETB67 getb67; do
12646     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12649
12650 cat >>confdefs.h <<_ACEOF
12651 #define CRAY_STACKSEG_END $ac_func
12652 _ACEOF
12653
12654     break
12655 fi
12656
12657   done
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12661 $as_echo_n "checking stack direction for C alloca... " >&6; }
12662 if ${ac_cv_c_stack_direction+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   if test "$cross_compiling" = yes; then :
12666   ac_cv_c_stack_direction=0
12667 else
12668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670 $ac_includes_default
12671 int
12672 find_stack_direction (int *addr, int depth)
12673 {
12674   int dir, dummy = 0;
12675   if (! addr)
12676     addr = &dummy;
12677   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12678   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12679   return dir + dummy;
12680 }
12681
12682 int
12683 main (int argc, char **argv)
12684 {
12685   return find_stack_direction (0, argc + !argv + 20) < 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_run "$LINENO"; then :
12689   ac_cv_c_stack_direction=1
12690 else
12691   ac_cv_c_stack_direction=-1
12692 fi
12693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12694   conftest.$ac_objext conftest.beam conftest.$ac_ext
12695 fi
12696
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12699 $as_echo "$ac_cv_c_stack_direction" >&6; }
12700 cat >>confdefs.h <<_ACEOF
12701 #define STACK_DIRECTION $ac_cv_c_stack_direction
12702 _ACEOF
12703
12704
12705 fi
12706
12707
12708 ac_config_files="$ac_config_files include/builddefs"
12709
12710 cat >confcache <<\_ACEOF
12711 # This file is a shell script that caches the results of configure
12712 # tests run on this system so they can be shared between configure
12713 # scripts and configure runs, see configure's option --config-cache.
12714 # It is not useful on other systems.  If it contains results you don't
12715 # want to keep, you may remove or edit it.
12716 #
12717 # config.status only pays attention to the cache file if you give it
12718 # the --recheck option to rerun configure.
12719 #
12720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12722 # following values.
12723
12724 _ACEOF
12725
12726 # The following way of writing the cache mishandles newlines in values,
12727 # but we know of no workaround that is simple, portable, and efficient.
12728 # So, we kill variables containing newlines.
12729 # Ultrix sh set writes to stderr and can't be redirected directly,
12730 # and sets the high bit in the cache file unless we assign to the vars.
12731 (
12732   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12733     eval ac_val=\$$ac_var
12734     case $ac_val in #(
12735     *${as_nl}*)
12736       case $ac_var in #(
12737       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12739       esac
12740       case $ac_var in #(
12741       _ | IFS | as_nl) ;; #(
12742       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12743       *) { eval $ac_var=; unset $ac_var;} ;;
12744       esac ;;
12745     esac
12746   done
12747
12748   (set) 2>&1 |
12749     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12750     *${as_nl}ac_space=\ *)
12751       # `set' does not quote correctly, so add quotes: double-quote
12752       # substitution turns \\\\ into \\, and sed turns \\ into \.
12753       sed -n \
12754         "s/'/'\\\\''/g;
12755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12756       ;; #(
12757     *)
12758       # `set' quotes correctly as required by POSIX, so do not add quotes.
12759       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12760       ;;
12761     esac |
12762     sort
12763 ) |
12764   sed '
12765      /^ac_cv_env_/b end
12766      t clear
12767      :clear
12768      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12769      t end
12770      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12771      :end' >>confcache
12772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12773   if test -w "$cache_file"; then
12774     if test "x$cache_file" != "x/dev/null"; then
12775       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12776 $as_echo "$as_me: updating cache $cache_file" >&6;}
12777       if test ! -f "$cache_file" || test -h "$cache_file"; then
12778         cat confcache >"$cache_file"
12779       else
12780         case $cache_file in #(
12781         */* | ?:*)
12782           mv -f confcache "$cache_file"$$ &&
12783           mv -f "$cache_file"$$ "$cache_file" ;; #(
12784         *)
12785           mv -f confcache "$cache_file" ;;
12786         esac
12787       fi
12788     fi
12789   else
12790     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12791 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12792   fi
12793 fi
12794 rm -f confcache
12795
12796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12797 # Let make expand exec_prefix.
12798 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12799
12800 DEFS=-DHAVE_CONFIG_H
12801
12802 ac_libobjs=
12803 ac_ltlibobjs=
12804 U=
12805 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12806   # 1. Remove the extension, and $U if already installed.
12807   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12808   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12809   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12810   #    will be set to the directory where LIBOBJS objects are built.
12811   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12812   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12813 done
12814 LIBOBJS=$ac_libobjs
12815
12816 LTLIBOBJS=$ac_ltlibobjs
12817
12818
12819
12820 : "${CONFIG_STATUS=./config.status}"
12821 ac_write_fail=0
12822 ac_clean_files_save=$ac_clean_files
12823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12826 as_write_fail=0
12827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12828 #! $SHELL
12829 # Generated by $as_me.
12830 # Run this file to recreate the current configuration.
12831 # Compiler output produced by configure, useful for debugging
12832 # configure, is in config.log if it exists.
12833
12834 debug=false
12835 ac_cs_recheck=false
12836 ac_cs_silent=false
12837
12838 SHELL=\${CONFIG_SHELL-$SHELL}
12839 export SHELL
12840 _ASEOF
12841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12842 ## -------------------- ##
12843 ## M4sh Initialization. ##
12844 ## -------------------- ##
12845
12846 # Be more Bourne compatible
12847 DUALCASE=1; export DUALCASE # for MKS sh
12848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12849   emulate sh
12850   NULLCMD=:
12851   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12852   # is contrary to our usage.  Disable this feature.
12853   alias -g '${1+"$@"}'='"$@"'
12854   setopt NO_GLOB_SUBST
12855 else
12856   case `(set -o) 2>/dev/null` in #(
12857   *posix*) :
12858     set -o posix ;; #(
12859   *) :
12860      ;;
12861 esac
12862 fi
12863
12864
12865 as_nl='
12866 '
12867 export as_nl
12868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12872 # Prefer a ksh shell builtin over an external printf program on Solaris,
12873 # but without wasting forks for bash or zsh.
12874 if test -z "$BASH_VERSION$ZSH_VERSION" \
12875     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12876   as_echo='print -r --'
12877   as_echo_n='print -rn --'
12878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12879   as_echo='printf %s\n'
12880   as_echo_n='printf %s'
12881 else
12882   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12883     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12884     as_echo_n='/usr/ucb/echo -n'
12885   else
12886     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12887     as_echo_n_body='eval
12888       arg=$1;
12889       case $arg in #(
12890       *"$as_nl"*)
12891         expr "X$arg" : "X\\(.*\\)$as_nl";
12892         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12893       esac;
12894       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12895     '
12896     export as_echo_n_body
12897     as_echo_n='sh -c $as_echo_n_body as_echo'
12898   fi
12899   export as_echo_body
12900   as_echo='sh -c $as_echo_body as_echo'
12901 fi
12902
12903 # The user is always right.
12904 if test "${PATH_SEPARATOR+set}" != set; then
12905   PATH_SEPARATOR=:
12906   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12907     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12908       PATH_SEPARATOR=';'
12909   }
12910 fi
12911
12912
12913 # IFS
12914 # We need space, tab and new line, in precisely that order.  Quoting is
12915 # there to prevent editors from complaining about space-tab.
12916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12917 # splitting by setting IFS to empty value.)
12918 IFS=" ""        $as_nl"
12919
12920 # Find who we are.  Look in the path if we contain no directory separator.
12921 as_myself=
12922 case $0 in #((
12923   *[\\/]* ) as_myself=$0 ;;
12924   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927   IFS=$as_save_IFS
12928   test -z "$as_dir" && as_dir=.
12929     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12930   done
12931 IFS=$as_save_IFS
12932
12933      ;;
12934 esac
12935 # We did not find ourselves, most probably we were run as `sh COMMAND'
12936 # in which case we are not to be found in the path.
12937 if test "x$as_myself" = x; then
12938   as_myself=$0
12939 fi
12940 if test ! -f "$as_myself"; then
12941   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12942   exit 1
12943 fi
12944
12945 # Unset variables that we do not need and which cause bugs (e.g. in
12946 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12947 # suppresses any "Segmentation fault" message there.  '((' could
12948 # trigger a bug in pdksh 5.2.14.
12949 for as_var in BASH_ENV ENV MAIL MAILPATH
12950 do eval test x\${$as_var+set} = xset \
12951   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12952 done
12953 PS1='$ '
12954 PS2='> '
12955 PS4='+ '
12956
12957 # NLS nuisances.
12958 LC_ALL=C
12959 export LC_ALL
12960 LANGUAGE=C
12961 export LANGUAGE
12962
12963 # CDPATH.
12964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12965
12966
12967 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12968 # ----------------------------------------
12969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12971 # script with STATUS, using 1 if that was 0.
12972 as_fn_error ()
12973 {
12974   as_status=$1; test $as_status -eq 0 && as_status=1
12975   if test "$4"; then
12976     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12977     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12978   fi
12979   $as_echo "$as_me: error: $2" >&2
12980   as_fn_exit $as_status
12981 } # as_fn_error
12982
12983
12984 # as_fn_set_status STATUS
12985 # -----------------------
12986 # Set $? to STATUS, without forking.
12987 as_fn_set_status ()
12988 {
12989   return $1
12990 } # as_fn_set_status
12991
12992 # as_fn_exit STATUS
12993 # -----------------
12994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12995 as_fn_exit ()
12996 {
12997   set +e
12998   as_fn_set_status $1
12999   exit $1
13000 } # as_fn_exit
13001
13002 # as_fn_unset VAR
13003 # ---------------
13004 # Portably unset VAR.
13005 as_fn_unset ()
13006 {
13007   { eval $1=; unset $1;}
13008 }
13009 as_unset=as_fn_unset
13010 # as_fn_append VAR VALUE
13011 # ----------------------
13012 # Append the text in VALUE to the end of the definition contained in VAR. Take
13013 # advantage of any shell optimizations that allow amortized linear growth over
13014 # repeated appends, instead of the typical quadratic growth present in naive
13015 # implementations.
13016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13017   eval 'as_fn_append ()
13018   {
13019     eval $1+=\$2
13020   }'
13021 else
13022   as_fn_append ()
13023   {
13024     eval $1=\$$1\$2
13025   }
13026 fi # as_fn_append
13027
13028 # as_fn_arith ARG...
13029 # ------------------
13030 # Perform arithmetic evaluation on the ARGs, and store the result in the
13031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13032 # must be portable across $(()) and expr.
13033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13034   eval 'as_fn_arith ()
13035   {
13036     as_val=$(( $* ))
13037   }'
13038 else
13039   as_fn_arith ()
13040   {
13041     as_val=`expr "$@" || test $? -eq 1`
13042   }
13043 fi # as_fn_arith
13044
13045
13046 if expr a : '\(a\)' >/dev/null 2>&1 &&
13047    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13048   as_expr=expr
13049 else
13050   as_expr=false
13051 fi
13052
13053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13054   as_basename=basename
13055 else
13056   as_basename=false
13057 fi
13058
13059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13060   as_dirname=dirname
13061 else
13062   as_dirname=false
13063 fi
13064
13065 as_me=`$as_basename -- "$0" ||
13066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13067          X"$0" : 'X\(//\)$' \| \
13068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13069 $as_echo X/"$0" |
13070     sed '/^.*\/\([^/][^/]*\)\/*$/{
13071             s//\1/
13072             q
13073           }
13074           /^X\/\(\/\/\)$/{
13075             s//\1/
13076             q
13077           }
13078           /^X\/\(\/\).*/{
13079             s//\1/
13080             q
13081           }
13082           s/.*/./; q'`
13083
13084 # Avoid depending upon Character Ranges.
13085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13088 as_cr_digits='0123456789'
13089 as_cr_alnum=$as_cr_Letters$as_cr_digits
13090
13091 ECHO_C= ECHO_N= ECHO_T=
13092 case `echo -n x` in #(((((
13093 -n*)
13094   case `echo 'xy\c'` in
13095   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13096   xy)  ECHO_C='\c';;
13097   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13098        ECHO_T=' ';;
13099   esac;;
13100 *)
13101   ECHO_N='-n';;
13102 esac
13103
13104 rm -f conf$$ conf$$.exe conf$$.file
13105 if test -d conf$$.dir; then
13106   rm -f conf$$.dir/conf$$.file
13107 else
13108   rm -f conf$$.dir
13109   mkdir conf$$.dir 2>/dev/null
13110 fi
13111 if (echo >conf$$.file) 2>/dev/null; then
13112   if ln -s conf$$.file conf$$ 2>/dev/null; then
13113     as_ln_s='ln -s'
13114     # ... but there are two gotchas:
13115     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13116     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13117     # In both cases, we have to default to `cp -pR'.
13118     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13119       as_ln_s='cp -pR'
13120   elif ln conf$$.file conf$$ 2>/dev/null; then
13121     as_ln_s=ln
13122   else
13123     as_ln_s='cp -pR'
13124   fi
13125 else
13126   as_ln_s='cp -pR'
13127 fi
13128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13129 rmdir conf$$.dir 2>/dev/null
13130
13131
13132 # as_fn_mkdir_p
13133 # -------------
13134 # Create "$as_dir" as a directory, including parents if necessary.
13135 as_fn_mkdir_p ()
13136 {
13137
13138   case $as_dir in #(
13139   -*) as_dir=./$as_dir;;
13140   esac
13141   test -d "$as_dir" || eval $as_mkdir_p || {
13142     as_dirs=
13143     while :; do
13144       case $as_dir in #(
13145       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13146       *) as_qdir=$as_dir;;
13147       esac
13148       as_dirs="'$as_qdir' $as_dirs"
13149       as_dir=`$as_dirname -- "$as_dir" ||
13150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13151          X"$as_dir" : 'X\(//\)[^/]' \| \
13152          X"$as_dir" : 'X\(//\)$' \| \
13153          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13154 $as_echo X"$as_dir" |
13155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13156             s//\1/
13157             q
13158           }
13159           /^X\(\/\/\)[^/].*/{
13160             s//\1/
13161             q
13162           }
13163           /^X\(\/\/\)$/{
13164             s//\1/
13165             q
13166           }
13167           /^X\(\/\).*/{
13168             s//\1/
13169             q
13170           }
13171           s/.*/./; q'`
13172       test -d "$as_dir" && break
13173     done
13174     test -z "$as_dirs" || eval "mkdir $as_dirs"
13175   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13176
13177
13178 } # as_fn_mkdir_p
13179 if mkdir -p . 2>/dev/null; then
13180   as_mkdir_p='mkdir -p "$as_dir"'
13181 else
13182   test -d ./-p && rmdir ./-p
13183   as_mkdir_p=false
13184 fi
13185
13186
13187 # as_fn_executable_p FILE
13188 # -----------------------
13189 # Test if FILE is an executable regular file.
13190 as_fn_executable_p ()
13191 {
13192   test -f "$1" && test -x "$1"
13193 } # as_fn_executable_p
13194 as_test_x='test -x'
13195 as_executable_p=as_fn_executable_p
13196
13197 # Sed expression to map a string onto a valid CPP name.
13198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13199
13200 # Sed expression to map a string onto a valid variable name.
13201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13202
13203
13204 exec 6>&1
13205 ## ----------------------------------- ##
13206 ## Main body of $CONFIG_STATUS script. ##
13207 ## ----------------------------------- ##
13208 _ASEOF
13209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13210
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 # Save the log message, to keep $0 and so on meaningful, and to
13213 # report actual input values of CONFIG_FILES etc. instead of their
13214 # values after options handling.
13215 ac_log="
13216 This file was extended by $as_me, which was
13217 generated by GNU Autoconf 2.69.  Invocation command line was
13218
13219   CONFIG_FILES    = $CONFIG_FILES
13220   CONFIG_HEADERS  = $CONFIG_HEADERS
13221   CONFIG_LINKS    = $CONFIG_LINKS
13222   CONFIG_COMMANDS = $CONFIG_COMMANDS
13223   $ $0 $@
13224
13225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13226 "
13227
13228 _ACEOF
13229
13230 case $ac_config_files in *"
13231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13232 esac
13233
13234 case $ac_config_headers in *"
13235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13236 esac
13237
13238
13239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 # Files that config.status was made for.
13241 config_files="$ac_config_files"
13242 config_headers="$ac_config_headers"
13243 config_commands="$ac_config_commands"
13244
13245 _ACEOF
13246
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248 ac_cs_usage="\
13249 \`$as_me' instantiates files and other configuration actions
13250 from templates according to the current configuration.  Unless the files
13251 and actions are specified as TAGs, all are instantiated by default.
13252
13253 Usage: $0 [OPTION]... [TAG]...
13254
13255   -h, --help       print this help, then exit
13256   -V, --version    print version number and configuration settings, then exit
13257       --config     print configuration, then exit
13258   -q, --quiet, --silent
13259                    do not print progress messages
13260   -d, --debug      don't remove temporary files
13261       --recheck    update $as_me by reconfiguring in the same conditions
13262       --file=FILE[:TEMPLATE]
13263                    instantiate the configuration file FILE
13264       --header=FILE[:TEMPLATE]
13265                    instantiate the configuration header FILE
13266
13267 Configuration files:
13268 $config_files
13269
13270 Configuration headers:
13271 $config_headers
13272
13273 Configuration commands:
13274 $config_commands
13275
13276 Report bugs to the package provider."
13277
13278 _ACEOF
13279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13281 ac_cs_version="\\
13282 config.status
13283 configured by $0, generated by GNU Autoconf 2.69,
13284   with options \\"\$ac_cs_config\\"
13285
13286 Copyright (C) 2012 Free Software Foundation, Inc.
13287 This config.status script is free software; the Free Software Foundation
13288 gives unlimited permission to copy, distribute and modify it."
13289
13290 ac_pwd='$ac_pwd'
13291 srcdir='$srcdir'
13292 AWK='$AWK'
13293 test -n "\$AWK" || AWK=awk
13294 _ACEOF
13295
13296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13297 # The default lists apply if the user does not specify any file.
13298 ac_need_defaults=:
13299 while test $# != 0
13300 do
13301   case $1 in
13302   --*=?*)
13303     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13304     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13305     ac_shift=:
13306     ;;
13307   --*=)
13308     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13309     ac_optarg=
13310     ac_shift=:
13311     ;;
13312   *)
13313     ac_option=$1
13314     ac_optarg=$2
13315     ac_shift=shift
13316     ;;
13317   esac
13318
13319   case $ac_option in
13320   # Handling of the options.
13321   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13322     ac_cs_recheck=: ;;
13323   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13324     $as_echo "$ac_cs_version"; exit ;;
13325   --config | --confi | --conf | --con | --co | --c )
13326     $as_echo "$ac_cs_config"; exit ;;
13327   --debug | --debu | --deb | --de | --d | -d )
13328     debug=: ;;
13329   --file | --fil | --fi | --f )
13330     $ac_shift
13331     case $ac_optarg in
13332     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13333     '') as_fn_error $? "missing file argument" ;;
13334     esac
13335     as_fn_append CONFIG_FILES " '$ac_optarg'"
13336     ac_need_defaults=false;;
13337   --header | --heade | --head | --hea )
13338     $ac_shift
13339     case $ac_optarg in
13340     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13341     esac
13342     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13343     ac_need_defaults=false;;
13344   --he | --h)
13345     # Conflict between --help and --header
13346     as_fn_error $? "ambiguous option: \`$1'
13347 Try \`$0 --help' for more information.";;
13348   --help | --hel | -h )
13349     $as_echo "$ac_cs_usage"; exit ;;
13350   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13351   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13352     ac_cs_silent=: ;;
13353
13354   # This is an error.
13355   -*) as_fn_error $? "unrecognized option: \`$1'
13356 Try \`$0 --help' for more information." ;;
13357
13358   *) as_fn_append ac_config_targets " $1"
13359      ac_need_defaults=false ;;
13360
13361   esac
13362   shift
13363 done
13364
13365 ac_configure_extra_args=
13366
13367 if $ac_cs_silent; then
13368   exec 6>/dev/null
13369   ac_configure_extra_args="$ac_configure_extra_args --silent"
13370 fi
13371
13372 _ACEOF
13373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13374 if \$ac_cs_recheck; then
13375   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13376   shift
13377   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13378   CONFIG_SHELL='$SHELL'
13379   export CONFIG_SHELL
13380   exec "\$@"
13381 fi
13382
13383 _ACEOF
13384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13385 exec 5>>config.log
13386 {
13387   echo
13388   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13389 ## Running $as_me. ##
13390 _ASBOX
13391   $as_echo "$ac_log"
13392 } >&5
13393
13394 _ACEOF
13395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13396 #
13397 # INIT-COMMANDS
13398 #
13399
13400
13401 # The HP-UX ksh and POSIX shell print the target directory to stdout
13402 # if CDPATH is set.
13403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13404
13405 sed_quote_subst='$sed_quote_subst'
13406 double_quote_subst='$double_quote_subst'
13407 delay_variable_subst='$delay_variable_subst'
13408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13410 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13411 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13412 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13413 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13441 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13442 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13443 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13444 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13445 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13446 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13447 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13448 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13449 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13450 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13463 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13464 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"`'
13465 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13466 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13467 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13468 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13469 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13470 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13471 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13472 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13473 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13474 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13475 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13476 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13477 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13478 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13479 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13480 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13481 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13482 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13483 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13484 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13485 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13486 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13487 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13488 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13489 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13490 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13491 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13492 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13493 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13494 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13495 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13496 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13497 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13498 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13499 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13500 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13501 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13502 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13503 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13504 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13505 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13506 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13507 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13508 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13509 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13510 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13511 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13512 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13513 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13514 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13515 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13516 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13517 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13518 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13519 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13520 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13521 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13522 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13523 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13524 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13525 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13526 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13527 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13528 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13529 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13530 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13531 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13532 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13533 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13534 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13535 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13536 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13537 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13538
13539 LTCC='$LTCC'
13540 LTCFLAGS='$LTCFLAGS'
13541 compiler='$compiler_DEFAULT'
13542
13543 # A function that is used when there is no print builtin or printf.
13544 func_fallback_echo ()
13545 {
13546   eval 'cat <<_LTECHO_EOF
13547 \$1
13548 _LTECHO_EOF'
13549 }
13550
13551 # Quote evaled strings.
13552 for var in SHELL \
13553 ECHO \
13554 PATH_SEPARATOR \
13555 SED \
13556 GREP \
13557 EGREP \
13558 FGREP \
13559 LD \
13560 NM \
13561 LN_S \
13562 lt_SP2NL \
13563 lt_NL2SP \
13564 reload_flag \
13565 OBJDUMP \
13566 deplibs_check_method \
13567 file_magic_cmd \
13568 file_magic_glob \
13569 want_nocaseglob \
13570 DLLTOOL \
13571 sharedlib_from_linklib_cmd \
13572 AR \
13573 AR_FLAGS \
13574 archiver_list_spec \
13575 STRIP \
13576 RANLIB \
13577 CC \
13578 CFLAGS \
13579 compiler \
13580 lt_cv_sys_global_symbol_pipe \
13581 lt_cv_sys_global_symbol_to_cdecl \
13582 lt_cv_sys_global_symbol_to_c_name_address \
13583 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13584 nm_file_list_spec \
13585 lt_prog_compiler_no_builtin_flag \
13586 lt_prog_compiler_pic \
13587 lt_prog_compiler_wl \
13588 lt_prog_compiler_static \
13589 lt_cv_prog_compiler_c_o \
13590 need_locks \
13591 MANIFEST_TOOL \
13592 DSYMUTIL \
13593 NMEDIT \
13594 LIPO \
13595 OTOOL \
13596 OTOOL64 \
13597 shrext_cmds \
13598 export_dynamic_flag_spec \
13599 whole_archive_flag_spec \
13600 compiler_needs_object \
13601 with_gnu_ld \
13602 allow_undefined_flag \
13603 no_undefined_flag \
13604 hardcode_libdir_flag_spec \
13605 hardcode_libdir_separator \
13606 exclude_expsyms \
13607 include_expsyms \
13608 file_list_spec \
13609 variables_saved_for_relink \
13610 libname_spec \
13611 library_names_spec \
13612 soname_spec \
13613 install_override_mode \
13614 finish_eval \
13615 old_striplib \
13616 striplib; do
13617     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13618     *[\\\\\\\`\\"\\\$]*)
13619       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13620       ;;
13621     *)
13622       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13623       ;;
13624     esac
13625 done
13626
13627 # Double-quote double-evaled strings.
13628 for var in reload_cmds \
13629 old_postinstall_cmds \
13630 old_postuninstall_cmds \
13631 old_archive_cmds \
13632 extract_expsyms_cmds \
13633 old_archive_from_new_cmds \
13634 old_archive_from_expsyms_cmds \
13635 archive_cmds \
13636 archive_expsym_cmds \
13637 module_cmds \
13638 module_expsym_cmds \
13639 export_symbols_cmds \
13640 prelink_cmds \
13641 postlink_cmds \
13642 postinstall_cmds \
13643 postuninstall_cmds \
13644 finish_cmds \
13645 sys_lib_search_path_spec \
13646 sys_lib_dlsearch_path_spec; do
13647     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13648     *[\\\\\\\`\\"\\\$]*)
13649       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13650       ;;
13651     *)
13652       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13653       ;;
13654     esac
13655 done
13656
13657 ac_aux_dir='$ac_aux_dir'
13658 xsi_shell='$xsi_shell'
13659 lt_shell_append='$lt_shell_append'
13660
13661 # See if we are running on zsh, and set the options which allow our
13662 # commands through without removal of \ escapes INIT.
13663 if test -n "\${ZSH_VERSION+set}" ; then
13664    setopt NO_GLOB_SUBST
13665 fi
13666
13667
13668     PACKAGE='$PACKAGE'
13669     VERSION='$VERSION'
13670     TIMESTAMP='$TIMESTAMP'
13671     RM='$RM'
13672     ofile='$ofile'
13673
13674
13675
13676
13677 _ACEOF
13678
13679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680
13681 # Handling of arguments.
13682 for ac_config_target in $ac_config_targets
13683 do
13684   case $ac_config_target in
13685     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13686     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13687     "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13688
13689   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13690   esac
13691 done
13692
13693
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used.  Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13700   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13701   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13702 fi
13703
13704 # Have a temporary directory for convenience.  Make it in the build tree
13705 # simply because there is no reason against having it here, and in addition,
13706 # creating and moving files from /tmp can sometimes cause problems.
13707 # Hook for its removal unless debugging.
13708 # Note that there is a small window in which the directory will not be cleaned:
13709 # after its creation but before its name has been assigned to `$tmp'.
13710 $debug ||
13711 {
13712   tmp= ac_tmp=
13713   trap 'exit_status=$?
13714   : "${ac_tmp:=$tmp}"
13715   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13716 ' 0
13717   trap 'as_fn_exit 1' 1 2 13 15
13718 }
13719 # Create a (secure) tmp directory for tmp files.
13720
13721 {
13722   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13723   test -d "$tmp"
13724 }  ||
13725 {
13726   tmp=./conf$$-$RANDOM
13727   (umask 077 && mkdir "$tmp")
13728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13729 ac_tmp=$tmp
13730
13731 # Set up the scripts for CONFIG_FILES section.
13732 # No need to generate them if there are no CONFIG_FILES.
13733 # This happens for instance with `./config.status config.h'.
13734 if test -n "$CONFIG_FILES"; then
13735
13736
13737 ac_cr=`echo X | tr X '\015'`
13738 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13739 # But we know of no other shell where ac_cr would be empty at this
13740 # point, so we can use a bashism as a fallback.
13741 if test "x$ac_cr" = x; then
13742   eval ac_cr=\$\'\\r\'
13743 fi
13744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13746   ac_cs_awk_cr='\\r'
13747 else
13748   ac_cs_awk_cr=$ac_cr
13749 fi
13750
13751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13752 _ACEOF
13753
13754
13755 {
13756   echo "cat >conf$$subs.awk <<_ACEOF" &&
13757   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13758   echo "_ACEOF"
13759 } >conf$$subs.sh ||
13760   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13762 ac_delim='%!_!# '
13763 for ac_last_try in false false false false false :; do
13764   . ./conf$$subs.sh ||
13765     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13766
13767   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13768   if test $ac_delim_n = $ac_delim_num; then
13769     break
13770   elif $ac_last_try; then
13771     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13772   else
13773     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13774   fi
13775 done
13776 rm -f conf$$subs.sh
13777
13778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13780 _ACEOF
13781 sed -n '
13782 h
13783 s/^/S["/; s/!.*/"]=/
13784 p
13785 g
13786 s/^[^!]*!//
13787 :repl
13788 t repl
13789 s/'"$ac_delim"'$//
13790 t delim
13791 :nl
13792 h
13793 s/\(.\{148\}\)..*/\1/
13794 t more1
13795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13796 p
13797 n
13798 b repl
13799 :more1
13800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13801 p
13802 g
13803 s/.\{148\}//
13804 t nl
13805 :delim
13806 h
13807 s/\(.\{148\}\)..*/\1/
13808 t more2
13809 s/["\\]/\\&/g; s/^/"/; s/$/"/
13810 p
13811 b
13812 :more2
13813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13814 p
13815 g
13816 s/.\{148\}//
13817 t delim
13818 ' <conf$$subs.awk | sed '
13819 /^[^""]/{
13820   N
13821   s/\n//
13822 }
13823 ' >>$CONFIG_STATUS || ac_write_fail=1
13824 rm -f conf$$subs.awk
13825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13826 _ACAWK
13827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13828   for (key in S) S_is_set[key] = 1
13829   FS = "\a"
13830
13831 }
13832 {
13833   line = $ 0
13834   nfields = split(line, field, "@")
13835   substed = 0
13836   len = length(field[1])
13837   for (i = 2; i < nfields; i++) {
13838     key = field[i]
13839     keylen = length(key)
13840     if (S_is_set[key]) {
13841       value = S[key]
13842       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13843       len += length(value) + length(field[++i])
13844       substed = 1
13845     } else
13846       len += 1 + keylen
13847   }
13848
13849   print line
13850 }
13851
13852 _ACAWK
13853 _ACEOF
13854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13856   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13857 else
13858   cat
13859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13860   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13861 _ACEOF
13862
13863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13865 # trailing colons and then remove the whole line if VPATH becomes empty
13866 # (actually we leave an empty line to preserve line numbers).
13867 if test "x$srcdir" = x.; then
13868   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13869 h
13870 s///
13871 s/^/:/
13872 s/[      ]*$/:/
13873 s/:\$(srcdir):/:/g
13874 s/:\${srcdir}:/:/g
13875 s/:@srcdir@:/:/g
13876 s/^:*//
13877 s/:*$//
13878 x
13879 s/\(=[   ]*\).*/\1/
13880 G
13881 s/\n//
13882 s/^[^=]*=[       ]*$//
13883 }'
13884 fi
13885
13886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13887 fi # test -n "$CONFIG_FILES"
13888
13889 # Set up the scripts for CONFIG_HEADERS section.
13890 # No need to generate them if there are no CONFIG_HEADERS.
13891 # This happens for instance with `./config.status Makefile'.
13892 if test -n "$CONFIG_HEADERS"; then
13893 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13894 BEGIN {
13895 _ACEOF
13896
13897 # Transform confdefs.h into an awk script `defines.awk', embedded as
13898 # here-document in config.status, that substitutes the proper values into
13899 # config.h.in to produce config.h.
13900
13901 # Create a delimiter string that does not exist in confdefs.h, to ease
13902 # handling of long lines.
13903 ac_delim='%!_!# '
13904 for ac_last_try in false false :; do
13905   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13906   if test -z "$ac_tt"; then
13907     break
13908   elif $ac_last_try; then
13909     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13910   else
13911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13912   fi
13913 done
13914
13915 # For the awk script, D is an array of macro values keyed by name,
13916 # likewise P contains macro parameters if any.  Preserve backslash
13917 # newline sequences.
13918
13919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13920 sed -n '
13921 s/.\{148\}/&'"$ac_delim"'/g
13922 t rset
13923 :rset
13924 s/^[     ]*#[    ]*define[       ][      ]*/ /
13925 t def
13926 d
13927 :def
13928 s/\\$//
13929 t bsnl
13930 s/["\\]/\\&/g
13931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13932 D["\1"]=" \3"/p
13933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13934 d
13935 :bsnl
13936 s/["\\]/\\&/g
13937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13938 D["\1"]=" \3\\\\\\n"\\/p
13939 t cont
13940 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13941 t cont
13942 d
13943 :cont
13944 n
13945 s/.\{148\}/&'"$ac_delim"'/g
13946 t clear
13947 :clear
13948 s/\\$//
13949 t bsnlc
13950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13951 d
13952 :bsnlc
13953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13954 b cont
13955 ' <confdefs.h | sed '
13956 s/'"$ac_delim"'/"\\\
13957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13958
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960   for (key in D) D_is_set[key] = 1
13961   FS = "\a"
13962 }
13963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13964   line = \$ 0
13965   split(line, arg, " ")
13966   if (arg[1] == "#") {
13967     defundef = arg[2]
13968     mac1 = arg[3]
13969   } else {
13970     defundef = substr(arg[1], 2)
13971     mac1 = arg[2]
13972   }
13973   split(mac1, mac2, "(") #)
13974   macro = mac2[1]
13975   prefix = substr(line, 1, index(line, defundef) - 1)
13976   if (D_is_set[macro]) {
13977     # Preserve the white space surrounding the "#".
13978     print prefix "define", macro P[macro] D[macro]
13979     next
13980   } else {
13981     # Replace #undef with comments.  This is necessary, for example,
13982     # in the case of _POSIX_SOURCE, which is predefined and required
13983     # on some systems where configure will not decide to define it.
13984     if (defundef == "undef") {
13985       print "/*", prefix defundef, macro, "*/"
13986       next
13987     }
13988   }
13989 }
13990 { print }
13991 _ACAWK
13992 _ACEOF
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13995 fi # test -n "$CONFIG_HEADERS"
13996
13997
13998 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13999 shift
14000 for ac_tag
14001 do
14002   case $ac_tag in
14003   :[FHLC]) ac_mode=$ac_tag; continue;;
14004   esac
14005   case $ac_mode$ac_tag in
14006   :[FHL]*:*);;
14007   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14008   :[FH]-) ac_tag=-:-;;
14009   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14010   esac
14011   ac_save_IFS=$IFS
14012   IFS=:
14013   set x $ac_tag
14014   IFS=$ac_save_IFS
14015   shift
14016   ac_file=$1
14017   shift
14018
14019   case $ac_mode in
14020   :L) ac_source=$1;;
14021   :[FH])
14022     ac_file_inputs=
14023     for ac_f
14024     do
14025       case $ac_f in
14026       -) ac_f="$ac_tmp/stdin";;
14027       *) # Look for the file first in the build tree, then in the source tree
14028          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14029          # because $ac_f cannot contain `:'.
14030          test -f "$ac_f" ||
14031            case $ac_f in
14032            [\\/$]*) false;;
14033            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14034            esac ||
14035            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14036       esac
14037       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14038       as_fn_append ac_file_inputs " '$ac_f'"
14039     done
14040
14041     # Let's still pretend it is `configure' which instantiates (i.e., don't
14042     # use $as_me), people would be surprised to read:
14043     #    /* config.h.  Generated by config.status.  */
14044     configure_input='Generated from '`
14045           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14046         `' by configure.'
14047     if test x"$ac_file" != x-; then
14048       configure_input="$ac_file.  $configure_input"
14049       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14050 $as_echo "$as_me: creating $ac_file" >&6;}
14051     fi
14052     # Neutralize special characters interpreted by sed in replacement strings.
14053     case $configure_input in #(
14054     *\&* | *\|* | *\\* )
14055        ac_sed_conf_input=`$as_echo "$configure_input" |
14056        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14057     *) ac_sed_conf_input=$configure_input;;
14058     esac
14059
14060     case $ac_tag in
14061     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14062       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14063     esac
14064     ;;
14065   esac
14066
14067   ac_dir=`$as_dirname -- "$ac_file" ||
14068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069          X"$ac_file" : 'X\(//\)[^/]' \| \
14070          X"$ac_file" : 'X\(//\)$' \| \
14071          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14072 $as_echo X"$ac_file" |
14073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14074             s//\1/
14075             q
14076           }
14077           /^X\(\/\/\)[^/].*/{
14078             s//\1/
14079             q
14080           }
14081           /^X\(\/\/\)$/{
14082             s//\1/
14083             q
14084           }
14085           /^X\(\/\).*/{
14086             s//\1/
14087             q
14088           }
14089           s/.*/./; q'`
14090   as_dir="$ac_dir"; as_fn_mkdir_p
14091   ac_builddir=.
14092
14093 case "$ac_dir" in
14094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14095 *)
14096   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14097   # A ".." for each directory in $ac_dir_suffix.
14098   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14099   case $ac_top_builddir_sub in
14100   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14101   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14102   esac ;;
14103 esac
14104 ac_abs_top_builddir=$ac_pwd
14105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14106 # for backward compatibility:
14107 ac_top_builddir=$ac_top_build_prefix
14108
14109 case $srcdir in
14110   .)  # We are building in place.
14111     ac_srcdir=.
14112     ac_top_srcdir=$ac_top_builddir_sub
14113     ac_abs_top_srcdir=$ac_pwd ;;
14114   [\\/]* | ?:[\\/]* )  # Absolute name.
14115     ac_srcdir=$srcdir$ac_dir_suffix;
14116     ac_top_srcdir=$srcdir
14117     ac_abs_top_srcdir=$srcdir ;;
14118   *) # Relative name.
14119     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14120     ac_top_srcdir=$ac_top_build_prefix$srcdir
14121     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14122 esac
14123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14124
14125
14126   case $ac_mode in
14127   :F)
14128   #
14129   # CONFIG_FILE
14130   #
14131
14132 _ACEOF
14133
14134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14135 # If the template does not know about datarootdir, expand it.
14136 # FIXME: This hack should be removed a few years after 2.60.
14137 ac_datarootdir_hack=; ac_datarootdir_seen=
14138 ac_sed_dataroot='
14139 /datarootdir/ {
14140   p
14141   q
14142 }
14143 /@datadir@/p
14144 /@docdir@/p
14145 /@infodir@/p
14146 /@localedir@/p
14147 /@mandir@/p'
14148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14149 *datarootdir*) ac_datarootdir_seen=yes;;
14150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14153 _ACEOF
14154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14155   ac_datarootdir_hack='
14156   s&@datadir@&$datadir&g
14157   s&@docdir@&$docdir&g
14158   s&@infodir@&$infodir&g
14159   s&@localedir@&$localedir&g
14160   s&@mandir@&$mandir&g
14161   s&\\\${datarootdir}&$datarootdir&g' ;;
14162 esac
14163 _ACEOF
14164
14165 # Neutralize VPATH when `$srcdir' = `.'.
14166 # Shell code in configure.ac might set extrasub.
14167 # FIXME: do we really want to maintain this feature?
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 ac_sed_extra="$ac_vpsub
14170 $extrasub
14171 _ACEOF
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 :t
14174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14175 s|@configure_input@|$ac_sed_conf_input|;t t
14176 s&@top_builddir@&$ac_top_builddir_sub&;t t
14177 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14178 s&@srcdir@&$ac_srcdir&;t t
14179 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14180 s&@top_srcdir@&$ac_top_srcdir&;t t
14181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14182 s&@builddir@&$ac_builddir&;t t
14183 s&@abs_builddir@&$ac_abs_builddir&;t t
14184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14185 $ac_datarootdir_hack
14186 "
14187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14188   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189
14190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14191   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14192   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14193       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14194   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14195 which seems to be undefined.  Please make sure it is defined" >&5
14196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14197 which seems to be undefined.  Please make sure it is defined" >&2;}
14198
14199   rm -f "$ac_tmp/stdin"
14200   case $ac_file in
14201   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14202   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14203   esac \
14204   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14205  ;;
14206   :H)
14207   #
14208   # CONFIG_HEADER
14209   #
14210   if test x"$ac_file" != x-; then
14211     {
14212       $as_echo "/* $configure_input  */" \
14213       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14214     } >"$ac_tmp/config.h" \
14215       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14216     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14217       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14219     else
14220       rm -f "$ac_file"
14221       mv "$ac_tmp/config.h" "$ac_file" \
14222         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14223     fi
14224   else
14225     $as_echo "/* $configure_input  */" \
14226       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14227       || as_fn_error $? "could not create -" "$LINENO" 5
14228   fi
14229  ;;
14230
14231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14232 $as_echo "$as_me: executing $ac_file commands" >&6;}
14233  ;;
14234   esac
14235
14236
14237   case $ac_file$ac_mode in
14238     "libtool":C)
14239
14240     # See if we are running on zsh, and set the options which allow our
14241     # commands through without removal of \ escapes.
14242     if test -n "${ZSH_VERSION+set}" ; then
14243       setopt NO_GLOB_SUBST
14244     fi
14245
14246     cfgfile="${ofile}T"
14247     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14248     $RM "$cfgfile"
14249
14250     cat <<_LT_EOF >> "$cfgfile"
14251 #! $SHELL
14252
14253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14257 #
14258 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14259 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14260 #                 Foundation, Inc.
14261 #   Written by Gordon Matzigkeit, 1996
14262 #
14263 #   This file is part of GNU Libtool.
14264 #
14265 # GNU Libtool is free software; you can redistribute it and/or
14266 # modify it under the terms of the GNU General Public License as
14267 # published by the Free Software Foundation; either version 2 of
14268 # the License, or (at your option) any later version.
14269 #
14270 # As a special exception to the GNU General Public License,
14271 # if you distribute this file as part of a program or library that
14272 # is built using GNU Libtool, you may include this file under the
14273 # same distribution terms that you use for the rest of that program.
14274 #
14275 # GNU Libtool is distributed in the hope that it will be useful,
14276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14278 # GNU General Public License for more details.
14279 #
14280 # You should have received a copy of the GNU General Public License
14281 # along with GNU Libtool; see the file COPYING.  If not, a copy
14282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14283 # obtained by writing to the Free Software Foundation, Inc.,
14284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14285
14286
14287 # The names of the tagged configurations supported by this script.
14288 available_tags=""
14289
14290 # ### BEGIN LIBTOOL CONFIG
14291
14292 # Which release of libtool.m4 was used?
14293 macro_version=$macro_version
14294 macro_revision=$macro_revision
14295
14296 # Whether or not to build shared libraries.
14297 build_libtool_libs=$enable_shared
14298
14299 # Whether or not to build static libraries.
14300 build_old_libs=$enable_static
14301
14302 # What type of objects to build.
14303 pic_mode=$pic_mode
14304
14305 # Whether or not to optimize for fast installation.
14306 fast_install=$enable_fast_install
14307
14308 # Shell to use when invoking shell scripts.
14309 SHELL=$lt_SHELL
14310
14311 # An echo program that protects backslashes.
14312 ECHO=$lt_ECHO
14313
14314 # The PATH separator for the build system.
14315 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14316
14317 # The host system.
14318 host_alias=$host_alias
14319 host=$host
14320 host_os=$host_os
14321
14322 # The build system.
14323 build_alias=$build_alias
14324 build=$build
14325 build_os=$build_os
14326
14327 # A sed program that does not truncate output.
14328 SED=$lt_SED
14329
14330 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14331 Xsed="\$SED -e 1s/^X//"
14332
14333 # A grep program that handles long lines.
14334 GREP=$lt_GREP
14335
14336 # An ERE matcher.
14337 EGREP=$lt_EGREP
14338
14339 # A literal string matcher.
14340 FGREP=$lt_FGREP
14341
14342 # A BSD- or MS-compatible name lister.
14343 NM=$lt_NM
14344
14345 # Whether we need soft or hard links.
14346 LN_S=$lt_LN_S
14347
14348 # What is the maximum length of a command?
14349 max_cmd_len=$max_cmd_len
14350
14351 # Object file suffix (normally "o").
14352 objext=$ac_objext
14353
14354 # Executable file suffix (normally "").
14355 exeext=$exeext
14356
14357 # whether the shell understands "unset".
14358 lt_unset=$lt_unset
14359
14360 # turn spaces into newlines.
14361 SP2NL=$lt_lt_SP2NL
14362
14363 # turn newlines into spaces.
14364 NL2SP=$lt_lt_NL2SP
14365
14366 # convert \$build file names to \$host format.
14367 to_host_file_cmd=$lt_cv_to_host_file_cmd
14368
14369 # convert \$build files to toolchain format.
14370 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14371
14372 # An object symbol dumper.
14373 OBJDUMP=$lt_OBJDUMP
14374
14375 # Method to check whether dependent libraries are shared objects.
14376 deplibs_check_method=$lt_deplibs_check_method
14377
14378 # Command to use when deplibs_check_method = "file_magic".
14379 file_magic_cmd=$lt_file_magic_cmd
14380
14381 # How to find potential files when deplibs_check_method = "file_magic".
14382 file_magic_glob=$lt_file_magic_glob
14383
14384 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14385 want_nocaseglob=$lt_want_nocaseglob
14386
14387 # DLL creation program.
14388 DLLTOOL=$lt_DLLTOOL
14389
14390 # Command to associate shared and link libraries.
14391 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14392
14393 # The archiver.
14394 AR=$lt_AR
14395
14396 # Flags to create an archive.
14397 AR_FLAGS=$lt_AR_FLAGS
14398
14399 # How to feed a file listing to the archiver.
14400 archiver_list_spec=$lt_archiver_list_spec
14401
14402 # A symbol stripping program.
14403 STRIP=$lt_STRIP
14404
14405 # Commands used to install an old-style archive.
14406 RANLIB=$lt_RANLIB
14407 old_postinstall_cmds=$lt_old_postinstall_cmds
14408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14409
14410 # Whether to use a lock for old archive extraction.
14411 lock_old_archive_extraction=$lock_old_archive_extraction
14412
14413 # A C compiler.
14414 LTCC=$lt_CC
14415
14416 # LTCC compiler flags.
14417 LTCFLAGS=$lt_CFLAGS
14418
14419 # Take the output of nm and produce a listing of raw symbols and C names.
14420 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14421
14422 # Transform the output of nm in a proper C declaration.
14423 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14424
14425 # Transform the output of nm in a C name address pair.
14426 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14427
14428 # Transform the output of nm in a C name address pair when lib prefix is needed.
14429 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14430
14431 # Specify filename containing input files for \$NM.
14432 nm_file_list_spec=$lt_nm_file_list_spec
14433
14434 # The root where to search for dependent libraries,and in which our libraries should be installed.
14435 lt_sysroot=$lt_sysroot
14436
14437 # The name of the directory that contains temporary libtool files.
14438 objdir=$objdir
14439
14440 # Used to examine libraries when file_magic_cmd begins with "file".
14441 MAGIC_CMD=$MAGIC_CMD
14442
14443 # Must we lock files when doing compilation?
14444 need_locks=$lt_need_locks
14445
14446 # Manifest tool.
14447 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14448
14449 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14450 DSYMUTIL=$lt_DSYMUTIL
14451
14452 # Tool to change global to local symbols on Mac OS X.
14453 NMEDIT=$lt_NMEDIT
14454
14455 # Tool to manipulate fat objects and archives on Mac OS X.
14456 LIPO=$lt_LIPO
14457
14458 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14459 OTOOL=$lt_OTOOL
14460
14461 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14462 OTOOL64=$lt_OTOOL64
14463
14464 # Old archive suffix (normally "a").
14465 libext=$libext
14466
14467 # Shared library suffix (normally ".so").
14468 shrext_cmds=$lt_shrext_cmds
14469
14470 # The commands to extract the exported symbol list from a shared archive.
14471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14472
14473 # Variables whose values should be saved in libtool wrapper scripts and
14474 # restored at link time.
14475 variables_saved_for_relink=$lt_variables_saved_for_relink
14476
14477 # Do we need the "lib" prefix for modules?
14478 need_lib_prefix=$need_lib_prefix
14479
14480 # Do we need a version for libraries?
14481 need_version=$need_version
14482
14483 # Library versioning type.
14484 version_type=$version_type
14485
14486 # Shared library runtime path variable.
14487 runpath_var=$runpath_var
14488
14489 # Shared library path variable.
14490 shlibpath_var=$shlibpath_var
14491
14492 # Is shlibpath searched before the hard-coded library search path?
14493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14494
14495 # Format of library name prefix.
14496 libname_spec=$lt_libname_spec
14497
14498 # List of archive names.  First name is the real one, the rest are links.
14499 # The last name is the one that the linker finds with -lNAME
14500 library_names_spec=$lt_library_names_spec
14501
14502 # The coded name of the library, if different from the real name.
14503 soname_spec=$lt_soname_spec
14504
14505 # Permission mode override for installation of shared libraries.
14506 install_override_mode=$lt_install_override_mode
14507
14508 # Command to use after installation of a shared archive.
14509 postinstall_cmds=$lt_postinstall_cmds
14510
14511 # Command to use after uninstallation of a shared archive.
14512 postuninstall_cmds=$lt_postuninstall_cmds
14513
14514 # Commands used to finish a libtool library installation in a directory.
14515 finish_cmds=$lt_finish_cmds
14516
14517 # As "finish_cmds", except a single script fragment to be evaled but
14518 # not shown.
14519 finish_eval=$lt_finish_eval
14520
14521 # Whether we should hardcode library paths into libraries.
14522 hardcode_into_libs=$hardcode_into_libs
14523
14524 # Compile-time system search path for libraries.
14525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14526
14527 # Run-time system search path for libraries.
14528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14529
14530 # Whether dlopen is supported.
14531 dlopen_support=$enable_dlopen
14532
14533 # Whether dlopen of programs is supported.
14534 dlopen_self=$enable_dlopen_self
14535
14536 # Whether dlopen of statically linked programs is supported.
14537 dlopen_self_static=$enable_dlopen_self_static
14538
14539 # Commands to strip libraries.
14540 old_striplib=$lt_old_striplib
14541 striplib=$lt_striplib
14542
14543
14544 # The linker used to build libraries.
14545 LD=$lt_LD
14546
14547 # How to create reloadable object files.
14548 reload_flag=$lt_reload_flag
14549 reload_cmds=$lt_reload_cmds
14550
14551 # Commands used to build an old-style archive.
14552 old_archive_cmds=$lt_old_archive_cmds
14553
14554 # A language specific compiler.
14555 CC=$lt_compiler
14556
14557 # Is the compiler the GNU compiler?
14558 with_gcc=$GCC
14559
14560 # Compiler flag to turn off builtin functions.
14561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14562
14563 # Additional compiler flags for building library objects.
14564 pic_flag=$lt_lt_prog_compiler_pic
14565
14566 # How to pass a linker flag through the compiler.
14567 wl=$lt_lt_prog_compiler_wl
14568
14569 # Compiler flag to prevent dynamic linking.
14570 link_static_flag=$lt_lt_prog_compiler_static
14571
14572 # Does compiler simultaneously support -c and -o options?
14573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14574
14575 # Whether or not to add -lc for building shared libraries.
14576 build_libtool_need_lc=$archive_cmds_need_lc
14577
14578 # Whether or not to disallow shared libs when runtime libs are static.
14579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14580
14581 # Compiler flag to allow reflexive dlopens.
14582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14583
14584 # Compiler flag to generate shared objects directly from archives.
14585 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14586
14587 # Whether the compiler copes with passing no objects directly.
14588 compiler_needs_object=$lt_compiler_needs_object
14589
14590 # Create an old-style archive from a shared archive.
14591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14592
14593 # Create a temporary old-style archive to link instead of a shared archive.
14594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14595
14596 # Commands used to build a shared archive.
14597 archive_cmds=$lt_archive_cmds
14598 archive_expsym_cmds=$lt_archive_expsym_cmds
14599
14600 # Commands used to build a loadable module if different from building
14601 # a shared archive.
14602 module_cmds=$lt_module_cmds
14603 module_expsym_cmds=$lt_module_expsym_cmds
14604
14605 # Whether we are building with GNU ld or not.
14606 with_gnu_ld=$lt_with_gnu_ld
14607
14608 # Flag that allows shared libraries with undefined symbols to be built.
14609 allow_undefined_flag=$lt_allow_undefined_flag
14610
14611 # Flag that enforces no undefined symbols.
14612 no_undefined_flag=$lt_no_undefined_flag
14613
14614 # Flag to hardcode \$libdir into a binary during linking.
14615 # This must work even if \$libdir does not exist
14616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14617
14618 # Whether we need a single "-rpath" flag with a separated argument.
14619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14620
14621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14622 # DIR into the resulting binary.
14623 hardcode_direct=$hardcode_direct
14624
14625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14626 # DIR into the resulting binary and the resulting library dependency is
14627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14628 # library is relocated.
14629 hardcode_direct_absolute=$hardcode_direct_absolute
14630
14631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14632 # into the resulting binary.
14633 hardcode_minus_L=$hardcode_minus_L
14634
14635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14636 # into the resulting binary.
14637 hardcode_shlibpath_var=$hardcode_shlibpath_var
14638
14639 # Set to "yes" if building a shared library automatically hardcodes DIR
14640 # into the library and all subsequent libraries and executables linked
14641 # against it.
14642 hardcode_automatic=$hardcode_automatic
14643
14644 # Set to yes if linker adds runtime paths of dependent libraries
14645 # to runtime path list.
14646 inherit_rpath=$inherit_rpath
14647
14648 # Whether libtool must link a program against all its dependency libraries.
14649 link_all_deplibs=$link_all_deplibs
14650
14651 # Set to "yes" if exported symbols are required.
14652 always_export_symbols=$always_export_symbols
14653
14654 # The commands to list exported symbols.
14655 export_symbols_cmds=$lt_export_symbols_cmds
14656
14657 # Symbols that should not be listed in the preloaded symbols.
14658 exclude_expsyms=$lt_exclude_expsyms
14659
14660 # Symbols that must always be exported.
14661 include_expsyms=$lt_include_expsyms
14662
14663 # Commands necessary for linking programs (against libraries) with templates.
14664 prelink_cmds=$lt_prelink_cmds
14665
14666 # Commands necessary for finishing linking programs.
14667 postlink_cmds=$lt_postlink_cmds
14668
14669 # Specify filename containing input files.
14670 file_list_spec=$lt_file_list_spec
14671
14672 # How to hardcode a shared library path into an executable.
14673 hardcode_action=$hardcode_action
14674
14675 # ### END LIBTOOL CONFIG
14676
14677 _LT_EOF
14678
14679   case $host_os in
14680   aix3*)
14681     cat <<\_LT_EOF >> "$cfgfile"
14682 # AIX sometimes has problems with the GCC collect2 program.  For some
14683 # reason, if we set the COLLECT_NAMES environment variable, the problems
14684 # vanish in a puff of smoke.
14685 if test "X${COLLECT_NAMES+set}" != Xset; then
14686   COLLECT_NAMES=
14687   export COLLECT_NAMES
14688 fi
14689 _LT_EOF
14690     ;;
14691   esac
14692
14693
14694 ltmain="$ac_aux_dir/ltmain.sh"
14695
14696
14697   # We use sed instead of cat because bash on DJGPP gets confused if
14698   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14699   # text mode, it properly converts lines to CR/LF.  This bash problem
14700   # is reportedly fixed, but why not run on old versions too?
14701   sed '$q' "$ltmain" >> "$cfgfile" \
14702      || (rm -f "$cfgfile"; exit 1)
14703
14704   if test x"$xsi_shell" = xyes; then
14705   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14706 func_dirname ()\
14707 {\
14708 \    case ${1} in\
14709 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14710 \      *  ) func_dirname_result="${3}" ;;\
14711 \    esac\
14712 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14713   && mv -f "$cfgfile.tmp" "$cfgfile" \
14714     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14716
14717
14718   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14719 func_basename ()\
14720 {\
14721 \    func_basename_result="${1##*/}"\
14722 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14723   && mv -f "$cfgfile.tmp" "$cfgfile" \
14724     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14725 test 0 -eq $? || _lt_function_replace_fail=:
14726
14727
14728   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14729 func_dirname_and_basename ()\
14730 {\
14731 \    case ${1} in\
14732 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14733 \      *  ) func_dirname_result="${3}" ;;\
14734 \    esac\
14735 \    func_basename_result="${1##*/}"\
14736 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14737   && mv -f "$cfgfile.tmp" "$cfgfile" \
14738     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14739 test 0 -eq $? || _lt_function_replace_fail=:
14740
14741
14742   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14743 func_stripname ()\
14744 {\
14745 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14746 \    # positional parameters, so assign one to ordinary parameter first.\
14747 \    func_stripname_result=${3}\
14748 \    func_stripname_result=${func_stripname_result#"${1}"}\
14749 \    func_stripname_result=${func_stripname_result%"${2}"}\
14750 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14751   && mv -f "$cfgfile.tmp" "$cfgfile" \
14752     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14753 test 0 -eq $? || _lt_function_replace_fail=:
14754
14755
14756   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14757 func_split_long_opt ()\
14758 {\
14759 \    func_split_long_opt_name=${1%%=*}\
14760 \    func_split_long_opt_arg=${1#*=}\
14761 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14762   && mv -f "$cfgfile.tmp" "$cfgfile" \
14763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14764 test 0 -eq $? || _lt_function_replace_fail=:
14765
14766
14767   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14768 func_split_short_opt ()\
14769 {\
14770 \    func_split_short_opt_arg=${1#??}\
14771 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14772 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14773   && mv -f "$cfgfile.tmp" "$cfgfile" \
14774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14775 test 0 -eq $? || _lt_function_replace_fail=:
14776
14777
14778   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14779 func_lo2o ()\
14780 {\
14781 \    case ${1} in\
14782 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14783 \      *)    func_lo2o_result=${1} ;;\
14784 \    esac\
14785 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14786   && mv -f "$cfgfile.tmp" "$cfgfile" \
14787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14789
14790
14791   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14792 func_xform ()\
14793 {\
14794     func_xform_result=${1%.*}.lo\
14795 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14796   && mv -f "$cfgfile.tmp" "$cfgfile" \
14797     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14798 test 0 -eq $? || _lt_function_replace_fail=:
14799
14800
14801   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14802 func_arith ()\
14803 {\
14804     func_arith_result=$(( $* ))\
14805 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14806   && mv -f "$cfgfile.tmp" "$cfgfile" \
14807     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14808 test 0 -eq $? || _lt_function_replace_fail=:
14809
14810
14811   sed -e '/^func_len ()$/,/^} # func_len /c\
14812 func_len ()\
14813 {\
14814     func_len_result=${#1}\
14815 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14816   && mv -f "$cfgfile.tmp" "$cfgfile" \
14817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818 test 0 -eq $? || _lt_function_replace_fail=:
14819
14820 fi
14821
14822 if test x"$lt_shell_append" = xyes; then
14823   sed -e '/^func_append ()$/,/^} # func_append /c\
14824 func_append ()\
14825 {\
14826     eval "${1}+=\\${2}"\
14827 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14828   && mv -f "$cfgfile.tmp" "$cfgfile" \
14829     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14830 test 0 -eq $? || _lt_function_replace_fail=:
14831
14832
14833   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14834 func_append_quoted ()\
14835 {\
14836 \    func_quote_for_eval "${2}"\
14837 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14838 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14839   && mv -f "$cfgfile.tmp" "$cfgfile" \
14840     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14841 test 0 -eq $? || _lt_function_replace_fail=:
14842
14843
14844   # Save a `func_append' function call where possible by direct use of '+='
14845   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14846     && mv -f "$cfgfile.tmp" "$cfgfile" \
14847       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848   test 0 -eq $? || _lt_function_replace_fail=:
14849 else
14850   # Save a `func_append' function call even when '+=' is not available
14851   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14852     && mv -f "$cfgfile.tmp" "$cfgfile" \
14853       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14854   test 0 -eq $? || _lt_function_replace_fail=:
14855 fi
14856
14857 if test x"$_lt_function_replace_fail" = x":"; then
14858   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14859 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14860 fi
14861
14862
14863    mv -f "$cfgfile" "$ofile" ||
14864     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14865   chmod +x "$ofile"
14866
14867  ;;
14868
14869   esac
14870 done # for ac_tag
14871
14872
14873 as_fn_exit 0
14874 _ACEOF
14875 ac_clean_files=$ac_clean_files_save
14876
14877 test $ac_write_fail = 0 ||
14878   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14879
14880
14881 # configure is writing to config.log, and then calls config.status.
14882 # config.status does its own redirection, appending to config.log.
14883 # Unfortunately, on DOS this fails, as config.log is still kept open
14884 # by configure, so config.status won't be able to write to it; its
14885 # output is simply discarded.  So we exec the FD to /dev/null,
14886 # effectively closing config.log, so it can be properly (re)opened and
14887 # appended to by config.status.  When coming back to configure, we
14888 # need to make the FD available again.
14889 if test "$no_create" != yes; then
14890   ac_cs_success=:
14891   ac_config_status_args=
14892   test "$silent" = yes &&
14893     ac_config_status_args="$ac_config_status_args --quiet"
14894   exec 5>/dev/null
14895   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14896   exec 5>>config.log
14897   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14898   # would make configure fail if this is the last instruction.
14899   $ac_cs_success || as_fn_exit 1
14900 fi
14901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14904 fi
14905