]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for bacula 5.2.0rc1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='bacula'
561 PACKAGE_TARNAME='bacula'
562 PACKAGE_VERSION='5.2.0rc1'
563 PACKAGE_STRING='bacula 5.2.0rc1'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_unique_file="src/version.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_header_list=
605 ac_subst_vars='LTLIBOBJS
606 COMPRESS_MANPAGES
607 DISTVER
608 DISTNAME
609 MACOSX
610 WIN32
611 PSCMD
612 TAPEDRIVE
613 OBJLIST
614 WRAPLIBS
615 WLDFLAGS
616 WCFLAGS
617 DLIB
618 DINCLUDE
619 DEBUG
620 FDLIBS
621 CAP_LIBS
622 LZOLIBS
623 ZLIBS
624 LIBOBJS
625 X_EXTRA_LIBS
626 X_LIBS
627 X_PRE_LIBS
628 X_CFLAGS
629 XMKMF
630 GETCONF
631 uncomment_dbi
632 SHARED_CATALOG_TARGETS
633 DEFAULT_DB_TYPE
634 DB_LIBS
635 DB_BACKENDS
636 SQLITE_BINDIR
637 SQLITE_INCLUDE
638 SQLITE_LIBS
639 MYSQL_BINDIR
640 MYSQL_INCLUDE
641 MYSQL_LIBS
642 POSTGRESQL_BINDIR
643 POSTGRESQL_INCLUDE
644 POSTGRESQL_LIBS
645 SBINPERM
646 fd_group
647 fd_user
648 sd_group
649 sd_user
650 dir_group
651 dir_user
652 db_port
653 db_password
654 db_user
655 db_name
656 mon_sd_password
657 mon_fd_password
658 mon_dir_password
659 sd_password
660 fd_password
661 dir_password
662 sd_port
663 fd_port
664 dir_port
665 baseport
666 subsysdir
667 piddir
668 smtp_host
669 job_email
670 dump_email
671 plugindir
672 logdir
673 bsrdir
674 scriptdir
675 hostname
676 basename
677 archivedir
678 working_dir
679 OPENSSL_INC
680 OPENSSL_LIBS
681 PYTHON_INCDIR
682 PYTHON_LIBS
683 READLINE_SRC
684 CONS_LDFLAGS
685 CONS_LIBS
686 CONS_SRC
687 CONS_OBJ
688 CONS_INC
689 STORED_DIR
690 DIR_TOOLS
691 DIRD_DIR
692 ALL_DIRS
693 STATIC_WX_CONS
694 STATIC_GNOME_CONS
695 STATIC_CONS
696 STATIC_DIR
697 STATIC_SD
698 STATIC_FD
699 TTOOL_LDFLAGS
700 TRAY_MONITOR_DIR
701 TRAY_MONITOR_LDFLAGS
702 TRAY_MONITOR_CPPFLAGS
703 WX_DIR
704 WXCONS_LDFLAGS
705 WXCONS_CPPFLAGS
706 QWT
707 QWT_LIB
708 QWT_LDFLAGS
709 QWT_INC
710 BAT_DIR
711 INTL_LIBTOOL_SUFFIX_PREFIX
712 INTLOBJS
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATOBJEXT
717 USE_INCLUDED_LIBINTL
718 BUILD_INCLUDED_LIBINTL
719 INTLBISON
720 HAVE_WPRINTF
721 HAVE_SNPRINTF
722 HAVE_ASPRINTF
723 HAVE_POSIX_PRINTF
724 GLIBC21
725 ALLOCA
726 GLIBC2
727 POSUB
728 LTLIBINTL
729 LIBINTL
730 INTLLIBS
731 LTLIBICONV
732 LIBICONV
733 INTL_MACOSX_LIBS
734 MSGMERGE
735 XGETTEXT
736 GMSGFMT
737 MSGFMT
738 USE_NLS
739 MKINSTALLDIRS
740 SET_MAKE
741 HAVE_DARWIN_OS_FALSE
742 HAVE_DARWIN_OS_TRUE
743 HAVE_IRIX_OS_FALSE
744 HAVE_IRIX_OS_TRUE
745 HAVE_SGI_OS_FALSE
746 HAVE_SGI_OS_TRUE
747 HAVE_BSDI_OS_FALSE
748 HAVE_BSDI_OS_TRUE
749 HAVE_OPENBSD_OS_FALSE
750 HAVE_OPENBSD_OS_TRUE
751 HAVE_NETBSD_OS_FALSE
752 HAVE_NETBSD_OS_TRUE
753 HAVE_FREEBSD_OS_FALSE
754 HAVE_FREEBSD_OS_TRUE
755 HAVE_LINUX_OS_FALSE
756 HAVE_LINUX_OS_TRUE
757 HAVE_HPUX_OS_FALSE
758 HAVE_HPUX_OS_TRUE
759 HAVE_AIX_OS_FALSE
760 HAVE_AIX_OS_TRUE
761 HAVE_OSF1_OS_FALSE
762 HAVE_OSF1_OS_TRUE
763 HAVE_SUN_OS_FALSE
764 HAVE_SUN_OS_TRUE
765 INCLUDE_UNINSTALL_TARGET
766 INCLUDE_INSTALL_TARGET
767 FD_PLUGIN_DIR
768 QMAKE_LIBTOOL
769 LIBTOOL_CLEAN_TARGET
770 LIBTOOL_UNINSTALL_TARGET
771 LIBTOOL_INSTALL_TARGET
772 DEFAULT_SHARED_OBJECT_TYPE
773 DEFAULT_ARCHIVE_TYPE
774 DEFAULT_OBJECT_TYPE
775 CXXCPP
776 OTOOL64
777 OTOOL
778 LIPO
779 NMEDIT
780 DSYMUTIL
781 MANIFEST_TOOL
782 RANLIB
783 STRIP
784 ac_ct_AR
785 DLLTOOL
786 OBJDUMP
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 host_os
794 host_vendor
795 host_cpu
796 host
797 build_os
798 build_vendor
799 build_cpu
800 build
801 LIBTOOL
802 LOCAL_DEFS
803 LOCAL_LDFLAGS
804 LOCAL_CFLAGS
805 LOCAL_LIBS
806 MAKE_SHELL
807 ARFLAGS
808 AWK
809 PIDOF
810 CDRECORD
811 WXFLAGS
812 WXCONFIG
813 GMAKE
814 QMAKE
815 PKGCONFIG
816 DVDRWFORMAT
817 DVDRWMEDIAINFO
818 GROWISOFS
819 PYTHON
820 MKISOFS
821 DD
822 MTX
823 OPENSSL
824 AR
825 TBL
826 CMP
827 ECHO
828 SED
829 CP
830 REMOVE
831 MV
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 EGREP
836 GREP
837 CPP
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 LIBBACFIND_LT_RELEASE
849 LIBBACCATS_LT_RELEASE
850 LIBBACSQL_LT_RELEASE
851 LIBBACPY_LT_RELEASE
852 LIBBACCFG_LT_RELEASE
853 LIBBAC_LT_RELEASE
854 BDB_VERSION
855 post_host
856 BACULA
857 LSMDATE
858 DATE
859 VERSION
860 FALSEPRG
861 TRUEPRG
862 WIN32TOPDIR
863 WIN32MAINDIR
864 WIN32BUILDDIR
865 TOP_DIR
866 BUILD_DIR
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files='MCOMMON'
906 ac_user_opts='
907 enable_option_checking
908 enable_libtool
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 with_sysroot
915 enable_libtool_lock
916 enable_includes
917 enable_nls
918 enable_rpath
919 with_libiconv_prefix
920 with_libintl_prefix
921 with_included_gettext
922 enable_gnome
923 enable_bat
924 enable_bwx_console
925 enable_tray_monitor
926 enable_smartalloc
927 enable_lockmgr
928 enable_static_tools
929 enable_static_fd
930 enable_static_sd
931 enable_static_dir
932 enable_static_cons
933 enable_client_only
934 enable_build_dird
935 enable_build_stored
936 enable_conio
937 enable_ipv6
938 enable_readline
939 with_readline
940 with_python
941 with_tcp_wrappers
942 with_openssl
943 with_working_dir
944 with_archivedir
945 with_basename
946 with_hostname
947 with_scriptdir
948 with_bsrdir
949 with_logdir
950 with_plugindir
951 with_dump_email
952 with_job_email
953 with_smtp_host
954 with_pid_dir
955 with_subsys_dir
956 with_baseport
957 with_dir_password
958 with_fd_password
959 with_sd_password
960 with_mon_dir_password
961 with_mon_fd_password
962 with_mon_sd_password
963 with_db_name
964 with_db_user
965 with_db_password
966 with_db_port
967 with_dir_user
968 with_dir_group
969 with_sd_user
970 with_sd_group
971 with_fd_user
972 with_fd_group
973 with_sbin_perm
974 with_postgresql
975 with_mysql
976 with_embedded_mysql
977 with_sqlite3
978 enable_batch_insert
979 enable_largefile
980 with_x
981 enable_acl
982 enable_xattr
983 '
984       ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 CC
988 CFLAGS
989 LDFLAGS
990 LIBS
991 CPPFLAGS
992 CXX
993 CXXFLAGS
994 CCC
995 CPP
996 WXCONFIG
997 WXFLAGS
998 CXXCPP
999 XMKMF'
1000
1001
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1023
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1049
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1053 do
1054   # If the previous option needs an argument, assign it.
1055   if test -n "$ac_prev"; then
1056     eval $ac_prev=\$ac_option
1057     ac_prev=
1058     continue
1059   fi
1060
1061   case $ac_option in
1062   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063   *=)   ac_optarg= ;;
1064   *)    ac_optarg=yes ;;
1065   esac
1066
1067   # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069   case $ac_dashdash$ac_option in
1070   --)
1071     ac_dashdash=yes ;;
1072
1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074     ac_prev=bindir ;;
1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076     bindir=$ac_optarg ;;
1077
1078   -build | --build | --buil | --bui | --bu)
1079     ac_prev=build_alias ;;
1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081     build_alias=$ac_optarg ;;
1082
1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085     ac_prev=cache_file ;;
1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088     cache_file=$ac_optarg ;;
1089
1090   --config-cache | -C)
1091     cache_file=config.cache ;;
1092
1093   -datadir | --datadir | --datadi | --datad)
1094     ac_prev=datadir ;;
1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096     datadir=$ac_optarg ;;
1097
1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099   | --dataroo | --dataro | --datar)
1100     ac_prev=datarootdir ;;
1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103     datarootdir=$ac_optarg ;;
1104
1105   -disable-* | --disable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid feature name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=no ;;
1120
1121   -docdir | --docdir | --docdi | --doc | --do)
1122     ac_prev=docdir ;;
1123   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124     docdir=$ac_optarg ;;
1125
1126   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127     ac_prev=dvidir ;;
1128   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129     dvidir=$ac_optarg ;;
1130
1131   -enable-* | --enable-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid feature name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149   | --exec | --exe | --ex)
1150     ac_prev=exec_prefix ;;
1151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153   | --exec=* | --exe=* | --ex=*)
1154     exec_prefix=$ac_optarg ;;
1155
1156   -gas | --gas | --ga | --g)
1157     # Obsolete; use --with-gas.
1158     with_gas=yes ;;
1159
1160   -help | --help | --hel | --he | -h)
1161     ac_init_help=long ;;
1162   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163     ac_init_help=recursive ;;
1164   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165     ac_init_help=short ;;
1166
1167   -host | --host | --hos | --ho)
1168     ac_prev=host_alias ;;
1169   -host=* | --host=* | --hos=* | --ho=*)
1170     host_alias=$ac_optarg ;;
1171
1172   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173     ac_prev=htmldir ;;
1174   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175   | --ht=*)
1176     htmldir=$ac_optarg ;;
1177
1178   -includedir | --includedir | --includedi | --included | --include \
1179   | --includ | --inclu | --incl | --inc)
1180     ac_prev=includedir ;;
1181   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182   | --includ=* | --inclu=* | --incl=* | --inc=*)
1183     includedir=$ac_optarg ;;
1184
1185   -infodir | --infodir | --infodi | --infod | --info | --inf)
1186     ac_prev=infodir ;;
1187   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188     infodir=$ac_optarg ;;
1189
1190   -libdir | --libdir | --libdi | --libd)
1191     ac_prev=libdir ;;
1192   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193     libdir=$ac_optarg ;;
1194
1195   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196   | --libexe | --libex | --libe)
1197     ac_prev=libexecdir ;;
1198   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199   | --libexe=* | --libex=* | --libe=*)
1200     libexecdir=$ac_optarg ;;
1201
1202   -localedir | --localedir | --localedi | --localed | --locale)
1203     ac_prev=localedir ;;
1204   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205     localedir=$ac_optarg ;;
1206
1207   -localstatedir | --localstatedir | --localstatedi | --localstated \
1208   | --localstate | --localstat | --localsta | --localst | --locals)
1209     ac_prev=localstatedir ;;
1210   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212     localstatedir=$ac_optarg ;;
1213
1214   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215     ac_prev=mandir ;;
1216   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217     mandir=$ac_optarg ;;
1218
1219   -nfp | --nfp | --nf)
1220     # Obsolete; use --without-fp.
1221     with_fp=no ;;
1222
1223   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224   | --no-cr | --no-c | -n)
1225     no_create=yes ;;
1226
1227   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229     no_recursion=yes ;;
1230
1231   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233   | --oldin | --oldi | --old | --ol | --o)
1234     ac_prev=oldincludedir ;;
1235   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238     oldincludedir=$ac_optarg ;;
1239
1240   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241     ac_prev=prefix ;;
1242   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243     prefix=$ac_optarg ;;
1244
1245   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246   | --program-pre | --program-pr | --program-p)
1247     ac_prev=program_prefix ;;
1248   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250     program_prefix=$ac_optarg ;;
1251
1252   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253   | --program-suf | --program-su | --program-s)
1254     ac_prev=program_suffix ;;
1255   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257     program_suffix=$ac_optarg ;;
1258
1259   -program-transform-name | --program-transform-name \
1260   | --program-transform-nam | --program-transform-na \
1261   | --program-transform-n | --program-transform- \
1262   | --program-transform | --program-transfor \
1263   | --program-transfo | --program-transf \
1264   | --program-trans | --program-tran \
1265   | --progr-tra | --program-tr | --program-t)
1266     ac_prev=program_transform_name ;;
1267   -program-transform-name=* | --program-transform-name=* \
1268   | --program-transform-nam=* | --program-transform-na=* \
1269   | --program-transform-n=* | --program-transform-=* \
1270   | --program-transform=* | --program-transfor=* \
1271   | --program-transfo=* | --program-transf=* \
1272   | --program-trans=* | --program-tran=* \
1273   | --progr-tra=* | --program-tr=* | --program-t=*)
1274     program_transform_name=$ac_optarg ;;
1275
1276   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277     ac_prev=pdfdir ;;
1278   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279     pdfdir=$ac_optarg ;;
1280
1281   -psdir | --psdir | --psdi | --psd | --ps)
1282     ac_prev=psdir ;;
1283   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284     psdir=$ac_optarg ;;
1285
1286   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287   | -silent | --silent | --silen | --sile | --sil)
1288     silent=yes ;;
1289
1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291     ac_prev=sbindir ;;
1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293   | --sbi=* | --sb=*)
1294     sbindir=$ac_optarg ;;
1295
1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298   | --sharedst | --shareds | --shared | --share | --shar \
1299   | --sha | --sh)
1300     ac_prev=sharedstatedir ;;
1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304   | --sha=* | --sh=*)
1305     sharedstatedir=$ac_optarg ;;
1306
1307   -site | --site | --sit)
1308     ac_prev=site ;;
1309   -site=* | --site=* | --sit=*)
1310     site=$ac_optarg ;;
1311
1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313     ac_prev=srcdir ;;
1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315     srcdir=$ac_optarg ;;
1316
1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318   | --syscon | --sysco | --sysc | --sys | --sy)
1319     ac_prev=sysconfdir ;;
1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322     sysconfdir=$ac_optarg ;;
1323
1324   -target | --target | --targe | --targ | --tar | --ta | --t)
1325     ac_prev=target_alias ;;
1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327     target_alias=$ac_optarg ;;
1328
1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330     verbose=yes ;;
1331
1332   -version | --version | --versio | --versi | --vers | -V)
1333     ac_init_version=: ;;
1334
1335   -with-* | --with-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       as_fn_error $? "invalid package name: $ac_useropt"
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1387     ;;
1388
1389   *=*)
1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391     # Reject names that are not valid shell variable names.
1392     case $ac_envvar in #(
1393       '' | [0-9]* | *[!_$as_cr_alnum]* )
1394       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395     esac
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   as_fn_error $? "missing argument to $ac_option"
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416   case $enable_option_checking in
1417     no) ;;
1418     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420   esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425                 datadir sysconfdir sharedstatedir localstatedir includedir \
1426                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427                 libdir localedir mandir
1428 do
1429   eval ac_val=\$$ac_var
1430   # Remove trailing slashes.
1431   case $ac_val in
1432     */ )
1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434       eval $ac_var=\$ac_val;;
1435   esac
1436   # Be sure to have absolute directory names.
1437   case $ac_val in
1438     [\\/$]* | ?:[\\/]* )  continue;;
1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440   esac
1441   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1443
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1450
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453   if test "x$build_alias" = x; then
1454     cross_compiling=maybe
1455     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1456     If a cross compiler is detected then cross compile mode will be used" >&2
1457   elif test "x$build_alias" != "x$host_alias"; then
1458     cross_compiling=yes
1459   fi
1460 fi
1461
1462 ac_tool_prefix=
1463 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1464
1465 test "$silent" = yes && exec 6>/dev/null
1466
1467
1468 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di=`ls -di .` &&
1470 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1471   as_fn_error $? "working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473   as_fn_error $? "pwd does not report name of working directory"
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478   ac_srcdir_defaulted=yes
1479   # Try the directory containing this script, then the parent directory.
1480   ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482          X"$as_myself" : 'X\(//\)[^/]' \| \
1483          X"$as_myself" : 'X\(//\)$' \| \
1484          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\/\)[^/].*/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\/\)$/{
1495             s//\1/
1496             q
1497           }
1498           /^X\(\/\).*/{
1499             s//\1/
1500             q
1501           }
1502           s/.*/./; q'`
1503   srcdir=$ac_confdir
1504   if test ! -r "$srcdir/$ac_unique_file"; then
1505     srcdir=..
1506   fi
1507 else
1508   ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1513 fi
1514 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 ac_abs_confdir=`(
1516         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1517         pwd)`
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520   srcdir=.
1521 fi
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1525 case $srcdir in
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 esac
1528 for ac_var in $ac_precious_vars; do
1529   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_env_${ac_var}_value=\$${ac_var}
1531   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 done
1534
1535 #
1536 # Report the --help message.
1537 #
1538 if test "$ac_init_help" = "long"; then
1539   # Omit some internal or obsolete options to make the list less imposing.
1540   # This message is too long to be a string in the A/UX 3.1 sh.
1541   cat <<_ACEOF
1542 \`configure' configures bacula 5.2.0rc1 to adapt to many kinds of systems.
1543
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE.  See below for descriptions of some of the useful variables.
1548
1549 Defaults for the options are specified in brackets.
1550
1551 Configuration:
1552   -h, --help              display this help and exit
1553       --help=short        display options specific to this package
1554       --help=recursive    display the short help of all the included packages
1555   -V, --version           display version information and exit
1556   -q, --quiet, --silent   do not print \`checking ...' messages
1557       --cache-file=FILE   cache test results in FILE [disabled]
1558   -C, --config-cache      alias for \`--cache-file=config.cache'
1559   -n, --no-create         do not create output files
1560       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1561
1562 Installation directories:
1563   --prefix=PREFIX         install architecture-independent files in PREFIX
1564                           [$ac_default_prefix]
1565   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1566                           [PREFIX]
1567
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1572
1573 For better control, use the options below.
1574
1575 Fine tuning of the installation directories:
1576   --bindir=DIR            user executables [EPREFIX/bin]
1577   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1578   --libexecdir=DIR        program executables [EPREFIX/libexec]
1579   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1580   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1581   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1582   --libdir=DIR            object code libraries [EPREFIX/lib]
1583   --includedir=DIR        C header files [PREFIX/include]
1584   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1585   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1586   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1587   --infodir=DIR           info documentation [DATAROOTDIR/info]
1588   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1589   --mandir=DIR            man documentation [DATAROOTDIR/man]
1590   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1591   --htmldir=DIR           html documentation [DOCDIR]
1592   --dvidir=DIR            dvi documentation [DOCDIR]
1593   --pdfdir=DIR            pdf documentation [DOCDIR]
1594   --psdir=DIR             ps documentation [DOCDIR]
1595 _ACEOF
1596
1597   cat <<\_ACEOF
1598
1599 X features:
1600   --x-includes=DIR    X include files are in DIR
1601   --x-libraries=DIR   X library files are in DIR
1602
1603 System types:
1604   --build=BUILD     configure for building on BUILD [guessed]
1605   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1606 _ACEOF
1607 fi
1608
1609 if test -n "$ac_init_help"; then
1610   case $ac_init_help in
1611      short | recursive ) echo "Configuration of bacula 5.2.0rc1:";;
1612    esac
1613   cat <<\_ACEOF
1614
1615 Optional Features:
1616   --disable-option-checking  ignore unrecognized --enable/--with options
1617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1619   --enable-libtool        enable building using GNU libtool [default=yes]
1620   --enable-shared[=PKGS]  build shared libraries [default=yes]
1621   --enable-static[=PKGS]  build static libraries [default=no]
1622   --enable-fast-install[=PKGS]
1623                           optimize for fast installation [default=yes]
1624   --disable-libtool-lock  avoid locking (might break parallel builds)
1625   --enable-includes       enable installing of include files [default=no]
1626   --disable-nls           do not use Native Language Support
1627   --disable-rpath         do not hardcode runtime library paths
1628   --enable-gnome          enable build of bgnome-console GUI [default=no]
1629   --enable-bat            enable build of bat Qt4 GUI [default=no]
1630   --enable-bwx-console    enable build of wxWidgets console [default=no]
1631   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1632                           KDE [default=no]
1633   --enable-smartalloc     enable smartalloc debugging support [default=no]
1634   --enable-lockmgr        enable lock manager support [default=no]
1635   --enable-static-tools   enable static tape tools [default=no]
1636   --enable-static-fd      enable static File daemon [default=no]
1637   --enable-static-sd      enable static Storage daemon [default=no]
1638   --enable-static-dir     enable static Director [default=no]
1639   --enable-static-cons    enable static Console [default=no]
1640   --enable-client-only    build client (File daemon) only [default=no]
1641   --enable-build-dird     enable building of dird (Director) [default=yes]
1642   --enable-build-stored   enable building of stored (Storage daemon)
1643                           [default=yes]
1644   --disable-conio         disable conio support [default=no]
1645   --enable-ipv6           enable ipv6 support [default=yes]
1646   --disable-readline      disable readline support [default=yes]
1647   --enable-batch-insert   enable the DB batch insert code [default=yes]
1648   --disable-largefile     omit support for large files
1649   --disable-acl           disable acl support [default=auto]
1650   --disable-xattr         disable xattr support [default=auto]
1651
1652 Optional Packages:
1653   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1654   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1655   --with-pic              try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658   --with-sysroot=DIR Search for dependent libraries within DIR
1659                         (or the compiler's sysroot if not specified).
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1664   --without-libintl-prefix     don't search for libintl in includedir and libdir
1665   --with-included-gettext use the GNU gettext library included here
1666   --with-readline[=DIR]   specify readline library directory
1667   --with-python[=DIR]     Include Python support. DIR is the Python base
1668                           install directory, default is to search through a
1669                           number of common places for the Python files.
1670   --with-tcp-wrappers[=DIR]
1671                           enable tcpwrappers support
1672   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1673   --with-working-dir=PATH specify path of Bacula working directory
1674   --with-archivedir=PATH  specify path of SD archive directory
1675   --with-basename=RESNAME specify base resource name for daemons
1676   --with-hostname=RESNAME specify host name for daemons
1677   --with-scriptdir=PATH   specify path of Bacula scripts directory
1678   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1679   --with-logdir=PATH      specify path of Bacula logs directory
1680   --with-plugindir=PATH   specify path of Bacula plugins directory
1681   --with-dump-email=EMAIL dump email address
1682   --with-job-email=EMAIL  job output email address
1683   --with-smtp-host=HOST   SMTP mail host address
1684   --with-pid-dir=PATH     specify location of Bacula pid files
1685   --with-subsys-dir=PATH  specify location of Bacula subsys file
1686   --with-baseport=PORT    specify base port address for daemons
1687   --with-dir-password=PASSWORD
1688                           specify Director's password
1689   --with-fd-password=PASSWORD
1690                           specify Client's password
1691   --with-sd-password=PASSWORD
1692                           specify Storage daemon's password
1693   --with-mon-dir-password=PASSWORD
1694                           specify Director's password used by the monitor
1695   --with-mon-fd-password=PASSWORD
1696                           specify Client's password used by the monitor
1697   --with-mon-sd-password=PASSWORD
1698                           specify Storage daemon's password used by the
1699                           monitor
1700   --with-db-name=DBNAME   specify database name [default=bacula]
1701   --with-db-user=UNAME    specify database user [default=bacula]
1702   --with-db-password=PWD  specify database password [default=*none*]
1703   --with-db-port=DBPORT   specify a database port [default=null]
1704   --with-dir-user=USER    specify user for Director daemon
1705   --with-dir-group=GROUP  specify group for Director daemon
1706   --with-sd-user=USER     specify user for Storage daemon
1707   --with-sd-group=GROUP   specify group for Storage daemon
1708   --with-fd-user=USER     specify user for File daemon
1709   --with-fd-group=GROUP   specify group for File daemon
1710   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1711   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712                           base install directory, [default=/usr/local/pgsql]
1713   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1714                           directory, default is to search through a number of
1715                           common places for the MySQL files.
1716   --with-embedded-mysql[=DIR]
1717                           Include MySQL support. DIR is the MySQL base install
1718                           directory, default is to search through a number of
1719                           common places for the MySQL files.
1720   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1721                           install directory, default is to search through a
1722                           number of common places for the SQLite3 files.
1723   --with-x                use the X Window System
1724
1725 Some influential environment variables:
1726   CC          C compiler command
1727   CFLAGS      C compiler flags
1728   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1729               nonstandard directory <lib dir>
1730   LIBS        libraries to pass to the linker, e.g. -l<library>
1731   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1732               you have headers in a nonstandard directory <include dir>
1733   CXX         C++ compiler command
1734   CXXFLAGS    C++ compiler flags
1735   CPP         C preprocessor
1736   WXCONFIG    wx-config command. On some systems, you must set it to
1737               wx-config-2.6 to use wxWidgets 2.6.
1738   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1739   CXXCPP      C++ preprocessor
1740   XMKMF       Path to xmkmf, Makefile generator for X Window System
1741
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1744
1745 Report bugs to the package provider.
1746 _ACEOF
1747 ac_status=$?
1748 fi
1749
1750 if test "$ac_init_help" = "recursive"; then
1751   # If there are subdirs, report their specific --help.
1752   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753     test -d "$ac_dir" ||
1754       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1755       continue
1756     ac_builddir=.
1757
1758 case "$ac_dir" in
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *)
1761   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762   # A ".." for each directory in $ac_dir_suffix.
1763   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764   case $ac_top_builddir_sub in
1765   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1767   esac ;;
1768 esac
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1773
1774 case $srcdir in
1775   .)  # We are building in place.
1776     ac_srcdir=.
1777     ac_top_srcdir=$ac_top_builddir_sub
1778     ac_abs_top_srcdir=$ac_pwd ;;
1779   [\\/]* | ?:[\\/]* )  # Absolute name.
1780     ac_srcdir=$srcdir$ac_dir_suffix;
1781     ac_top_srcdir=$srcdir
1782     ac_abs_top_srcdir=$srcdir ;;
1783   *) # Relative name.
1784     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785     ac_top_srcdir=$ac_top_build_prefix$srcdir
1786     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 esac
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789
1790     cd "$ac_dir" || { ac_status=$?; continue; }
1791     # Check for guested configure.
1792     if test -f "$ac_srcdir/configure.gnu"; then
1793       echo &&
1794       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795     elif test -f "$ac_srcdir/configure"; then
1796       echo &&
1797       $SHELL "$ac_srcdir/configure" --help=recursive
1798     else
1799       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800     fi || ac_status=$?
1801     cd "$ac_pwd" || { ac_status=$?; break; }
1802   done
1803 fi
1804
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1807   cat <<\_ACEOF
1808 bacula configure 5.2.0rc1
1809 generated by GNU Autoconf 2.67
1810
1811 Copyright (C) 2010 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1814 _ACEOF
1815   exit
1816 fi
1817
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1821
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   rm -f conftest.$ac_objext
1829   if { { ac_try="$ac_compile"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_compile") 2>conftest.err
1837   ac_status=$?
1838   if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842   fi
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } && {
1845          test -z "$ac_c_werror_flag" ||
1846          test ! -s conftest.err
1847        } && test -s conftest.$ac_objext; then :
1848   ac_retval=0
1849 else
1850   $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853         ac_retval=1
1854 fi
1855   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856   as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_compile
1859
1860 # ac_fn_cxx_try_compile LINENO
1861 # ----------------------------
1862 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_compile ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   rm -f conftest.$ac_objext
1867   if { { ac_try="$ac_compile"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_compile") 2>conftest.err
1875   ac_status=$?
1876   if test -s conftest.err; then
1877     grep -v '^ *+' conftest.err >conftest.er1
1878     cat conftest.er1 >&5
1879     mv -f conftest.er1 conftest.err
1880   fi
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; } && {
1883          test -z "$ac_cxx_werror_flag" ||
1884          test ! -s conftest.err
1885        } && test -s conftest.$ac_objext; then :
1886   ac_retval=0
1887 else
1888   $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891         ac_retval=1
1892 fi
1893   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_cxx_try_compile
1897
1898 # ac_fn_c_try_cpp LINENO
1899 # ----------------------
1900 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_cpp ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   if { { ac_try="$ac_cpp conftest.$ac_ext"
1905 case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912   ac_status=$?
1913   if test -s conftest.err; then
1914     grep -v '^ *+' conftest.err >conftest.er1
1915     cat conftest.er1 >&5
1916     mv -f conftest.er1 conftest.err
1917   fi
1918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919   test $ac_status = 0; } > conftest.i && {
1920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1921          test ! -s conftest.err
1922        }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928     ac_retval=1
1929 fi
1930   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931   as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_cpp
1934
1935 # ac_fn_c_try_link LINENO
1936 # -----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_link ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   rm -f conftest.$ac_objext conftest$ac_exeext
1942   if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945   *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949   (eval "$ac_link") 2>conftest.err
1950   ac_status=$?
1951   if test -s conftest.err; then
1952     grep -v '^ *+' conftest.err >conftest.er1
1953     cat conftest.er1 >&5
1954     mv -f conftest.er1 conftest.err
1955   fi
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; } && {
1958          test -z "$ac_c_werror_flag" ||
1959          test ! -s conftest.err
1960        } && test -s conftest$ac_exeext && {
1961          test "$cross_compiling" = yes ||
1962          $as_test_x conftest$ac_exeext
1963        }; then :
1964   ac_retval=0
1965 else
1966   $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969         ac_retval=1
1970 fi
1971   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973   # interfere with the next link command; also delete a directory that is
1974   # left behind by Apple's compiler.  We do this before executing the actions.
1975   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977   as_fn_set_status $ac_retval
1978
1979 } # ac_fn_c_try_link
1980
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval "test \"\${$3+set}\"" = set; then :
1991   $as_echo_n "(cached) " >&6
1992 else
1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   eval "$3=yes"
2000 else
2001   eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_header_compile
2011
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2016 ac_fn_c_try_run ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   if { { ac_try="$ac_link"
2020 case "(($ac_try" in
2021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022   *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026   (eval "$ac_link") 2>&5
2027   ac_status=$?
2028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2030   { { case "(($ac_try" in
2031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032   *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036   (eval "$ac_try") 2>&5
2037   ac_status=$?
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; }; }; then :
2040   ac_retval=0
2041 else
2042   $as_echo "$as_me: program exited with status $ac_status" >&5
2043        $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046        ac_retval=$ac_status
2047 fi
2048   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050   as_fn_set_status $ac_retval
2051
2052 } # ac_fn_c_try_run
2053
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2069 #define $2 innocuous_$2
2070
2071 /* System header to define __stub macros and hopefully few prototypes,
2072     which can conflict with char $2 (); below.
2073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074     <limits.h> exists even on freestanding compilers.  */
2075
2076 #ifdef __STDC__
2077 # include <limits.h>
2078 #else
2079 # include <assert.h>
2080 #endif
2081
2082 #undef $2
2083
2084 /* Override any GCC internal prototype to avoid an error.
2085    Use char because int might match the return type of a GCC
2086    builtin and then its argument prototype would still apply.  */
2087 #ifdef __cplusplus
2088 extern "C"
2089 #endif
2090 char $2 ();
2091 /* The GNU C library defines this for functions which it implements
2092     to always fail with ENOSYS.  Some functions are actually named
2093     something starting with __ and the normal name is an alias.  */
2094 #if defined __stub_$2 || defined __stub___$2
2095 choke me
2096 #endif
2097
2098 int
2099 main ()
2100 {
2101 return $2 ();
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_link "$LINENO"; then :
2107   eval "$3=yes"
2108 else
2109   eval "$3=no"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext \
2112     conftest$ac_exeext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118
2119 } # ac_fn_c_check_func
2120
2121 # ac_fn_cxx_try_cpp LINENO
2122 # ------------------------
2123 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_cxx_try_cpp ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   if { { ac_try="$ac_cpp conftest.$ac_ext"
2128 case "(($ac_try" in
2129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130   *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135   ac_status=$?
2136   if test -s conftest.err; then
2137     grep -v '^ *+' conftest.err >conftest.er1
2138     cat conftest.er1 >&5
2139     mv -f conftest.er1 conftest.err
2140   fi
2141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142   test $ac_status = 0; } > conftest.i && {
2143          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2144          test ! -s conftest.err
2145        }; then :
2146   ac_retval=0
2147 else
2148   $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151     ac_retval=1
2152 fi
2153   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154   as_fn_set_status $ac_retval
2155
2156 } # ac_fn_cxx_try_cpp
2157
2158 # ac_fn_cxx_try_link LINENO
2159 # -------------------------
2160 # Try to link conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_cxx_try_link ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   rm -f conftest.$ac_objext conftest$ac_exeext
2165   if { { ac_try="$ac_link"
2166 case "(($ac_try" in
2167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168   *) ac_try_echo=$ac_try;;
2169 esac
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172   (eval "$ac_link") 2>conftest.err
2173   ac_status=$?
2174   if test -s conftest.err; then
2175     grep -v '^ *+' conftest.err >conftest.er1
2176     cat conftest.er1 >&5
2177     mv -f conftest.er1 conftest.err
2178   fi
2179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180   test $ac_status = 0; } && {
2181          test -z "$ac_cxx_werror_flag" ||
2182          test ! -s conftest.err
2183        } && test -s conftest$ac_exeext && {
2184          test "$cross_compiling" = yes ||
2185          $as_test_x conftest$ac_exeext
2186        }; then :
2187   ac_retval=0
2188 else
2189   $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192         ac_retval=1
2193 fi
2194   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2195   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2196   # interfere with the next link command; also delete a directory that is
2197   # left behind by Apple's compiler.  We do this before executing the actions.
2198   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2199   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200   as_fn_set_status $ac_retval
2201
2202 } # ac_fn_cxx_try_link
2203
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2209 {
2210   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval "test \"\${$3+set}\"" = set; then :
2214   $as_echo_n "(cached) " >&6
2215 else
2216   eval "$3=no"
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 if (sizeof ($2))
2224          return 0;
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof (($2)))
2237             return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243
2244 else
2245   eval "$3=yes"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$3
2252                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256 } # ac_fn_c_check_type
2257
2258 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2259 # -------------------------------------------------------
2260 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2261 # the include files in INCLUDES and setting the cache variable VAR
2262 # accordingly.
2263 ac_fn_c_check_header_mongrel ()
2264 {
2265   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266   if eval "test \"\${$3+set}\"" = set; then :
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval "test \"\${$3+set}\"" = set; then :
2270   $as_echo_n "(cached) " >&6
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 else
2276   # Is the header compilable?
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2278 $as_echo_n "checking $2 usability... " >&6; }
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   ac_header_compiler=yes
2286 else
2287   ac_header_compiler=no
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2291 $as_echo "$ac_header_compiler" >&6; }
2292
2293 # Is the header present?
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2295 $as_echo_n "checking $2 presence... " >&6; }
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 #include <$2>
2299 _ACEOF
2300 if ac_fn_c_try_cpp "$LINENO"; then :
2301   ac_header_preproc=yes
2302 else
2303   ac_header_preproc=no
2304 fi
2305 rm -f conftest.err conftest.i conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2307 $as_echo "$ac_header_preproc" >&6; }
2308
2309 # So?  What about this header?
2310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2311   yes:no: )
2312     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2313 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2315 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2316     ;;
2317   no:yes:* )
2318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2319 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2321 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2322     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2323 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2324     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2325 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2327 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2328     ;;
2329 esac
2330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval "test \"\${$3+set}\"" = set; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   eval "$3=\$ac_header_compiler"
2336 fi
2337 eval ac_res=\$$3
2338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 fi
2341   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343 } # ac_fn_c_check_header_mongrel
2344
2345 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346 # --------------------------------------------
2347 # Tries to find the compile-time value of EXPR in a program that includes
2348 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2349 # computed
2350 ac_fn_c_compute_int ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   if test "$cross_compiling" = yes; then
2354     # Depending upon the size, compute the lo and hi bounds.
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h.  */
2357 $4
2358 int
2359 main ()
2360 {
2361 static int test_array [1 - 2 * !(($2) >= 0)];
2362 test_array [0] = 0
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369   ac_lo=0 ac_mid=0
2370   while :; do
2371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2378 test_array [0] = 0
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385   ac_hi=$ac_mid; break
2386 else
2387   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2388                         if test $ac_lo -le $ac_mid; then
2389                           ac_lo= ac_hi=
2390                           break
2391                         fi
2392                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395   done
2396 else
2397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h.  */
2399 $4
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(($2) < 0)];
2404 test_array [0] = 0
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411   ac_hi=-1 ac_mid=-1
2412   while :; do
2413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h.  */
2415 $4
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2420 test_array [0] = 0
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427   ac_lo=$ac_mid; break
2428 else
2429   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2430                         if test $ac_mid -le $ac_hi; then
2431                           ac_lo= ac_hi=
2432                           break
2433                         fi
2434                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437   done
2438 else
2439   ac_lo= ac_hi=
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 # Binary search between lo and hi bounds.
2445 while test "x$ac_lo" != "x$ac_hi"; do
2446   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 $4
2450 int
2451 main ()
2452 {
2453 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 test_array [0] = 0
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461   ac_hi=$ac_mid
2462 else
2463   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 done
2467 case $ac_lo in #((
2468 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2469 '') ac_retval=1 ;;
2470 esac
2471   else
2472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h.  */
2474 $4
2475 static long int longval () { return $2; }
2476 static unsigned long int ulongval () { return $2; }
2477 #include <stdio.h>
2478 #include <stdlib.h>
2479 int
2480 main ()
2481 {
2482
2483   FILE *f = fopen ("conftest.val", "w");
2484   if (! f)
2485     return 1;
2486   if (($2) < 0)
2487     {
2488       long int i = longval ();
2489       if (i != ($2))
2490         return 1;
2491       fprintf (f, "%ld", i);
2492     }
2493   else
2494     {
2495       unsigned long int i = ulongval ();
2496       if (i != ($2))
2497         return 1;
2498       fprintf (f, "%lu", i);
2499     }
2500   /* Do not output a trailing newline, as this causes \r\n confusion
2501      on some platforms.  */
2502   return ferror (f) || fclose (f) != 0;
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_run "$LINENO"; then :
2509   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2510 else
2511   ac_retval=1
2512 fi
2513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2514   conftest.$ac_objext conftest.beam conftest.$ac_ext
2515 rm -f conftest.val
2516
2517   fi
2518   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519   as_fn_set_status $ac_retval
2520
2521 } # ac_fn_c_compute_int
2522
2523 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2524 # ----------------------------------------------------
2525 # Tries to find if the field MEMBER exists in type AGGR, after including
2526 # INCLUDES, setting cache variable VAR accordingly.
2527 ac_fn_c_check_member ()
2528 {
2529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2531 $as_echo_n "checking for $2.$3... " >&6; }
2532 if eval "test \"\${$4+set}\"" = set; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h.  */
2537 $5
2538 int
2539 main ()
2540 {
2541 static $2 ac_aggr;
2542 if (ac_aggr.$3)
2543 return 0;
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549   eval "$4=yes"
2550 else
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $5
2554 int
2555 main ()
2556 {
2557 static $2 ac_aggr;
2558 if (sizeof ac_aggr.$3)
2559 return 0;
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565   eval "$4=yes"
2566 else
2567   eval "$4=no"
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 fi
2573 eval ac_res=\$$4
2574                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577
2578 } # ac_fn_c_check_member
2579
2580 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2581 # ---------------------------------------------
2582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2583 # accordingly.
2584 ac_fn_c_check_decl ()
2585 {
2586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587   as_decl_name=`echo $2|sed 's/ *(.*//'`
2588   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2590 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2591 if eval "test \"\${$3+set}\"" = set; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h.  */
2596 $4
2597 int
2598 main ()
2599 {
2600 #ifndef $as_decl_name
2601 #ifdef __cplusplus
2602   (void) $as_decl_use;
2603 #else
2604   (void) $as_decl_name;
2605 #endif
2606 #endif
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 if ac_fn_c_try_compile "$LINENO"; then :
2613   eval "$3=yes"
2614 else
2615   eval "$3=no"
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 eval ac_res=\$$3
2620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623
2624 } # ac_fn_c_check_decl
2625
2626 # ac_fn_cxx_try_run LINENO
2627 # ------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2629 # that executables *can* be run.
2630 ac_fn_cxx_try_run ()
2631 {
2632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633   if { { ac_try="$ac_link"
2634 case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640   (eval "$ac_link") 2>&5
2641   ac_status=$?
2642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2644   { { case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650   (eval "$ac_try") 2>&5
2651   ac_status=$?
2652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653   test $ac_status = 0; }; }; then :
2654   ac_retval=0
2655 else
2656   $as_echo "$as_me: program exited with status $ac_status" >&5
2657        $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660        ac_retval=$ac_status
2661 fi
2662   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664   as_fn_set_status $ac_retval
2665
2666 } # ac_fn_cxx_try_run
2667
2668 # ac_fn_cxx_check_func LINENO FUNC VAR
2669 # ------------------------------------
2670 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2671 ac_fn_cxx_check_func ()
2672 {
2673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if eval "test \"\${$3+set}\"" = set; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h.  */
2681 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2683 #define $2 innocuous_$2
2684
2685 /* System header to define __stub macros and hopefully few prototypes,
2686     which can conflict with char $2 (); below.
2687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2688     <limits.h> exists even on freestanding compilers.  */
2689
2690 #ifdef __STDC__
2691 # include <limits.h>
2692 #else
2693 # include <assert.h>
2694 #endif
2695
2696 #undef $2
2697
2698 /* Override any GCC internal prototype to avoid an error.
2699    Use char because int might match the return type of a GCC
2700    builtin and then its argument prototype would still apply.  */
2701 #ifdef __cplusplus
2702 extern "C"
2703 #endif
2704 char $2 ();
2705 /* The GNU C library defines this for functions which it implements
2706     to always fail with ENOSYS.  Some functions are actually named
2707     something starting with __ and the normal name is an alias.  */
2708 #if defined __stub_$2 || defined __stub___$2
2709 choke me
2710 #endif
2711
2712 int
2713 main ()
2714 {
2715 return $2 ();
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 if ac_fn_cxx_try_link "$LINENO"; then :
2721   eval "$3=yes"
2722 else
2723   eval "$3=no"
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext \
2726     conftest$ac_exeext conftest.$ac_ext
2727 fi
2728 eval ac_res=\$$3
2729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2732
2733 } # ac_fn_cxx_check_func
2734 cat >config.log <<_ACEOF
2735 This file contains any messages produced by compilers while
2736 running configure, to aid debugging if configure makes a mistake.
2737
2738 It was created by bacula $as_me 5.2.0rc1, which was
2739 generated by GNU Autoconf 2.67.  Invocation command line was
2740
2741   $ $0 $@
2742
2743 _ACEOF
2744 exec 5>>config.log
2745 {
2746 cat <<_ASUNAME
2747 ## --------- ##
2748 ## Platform. ##
2749 ## --------- ##
2750
2751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2756
2757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2758 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2759
2760 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2761 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2763 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2764 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2765 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2766 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2767
2768 _ASUNAME
2769
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     $as_echo "PATH: $as_dir"
2776   done
2777 IFS=$as_save_IFS
2778
2779 } >&5
2780
2781 cat >&5 <<_ACEOF
2782
2783
2784 ## ----------- ##
2785 ## Core tests. ##
2786 ## ----------- ##
2787
2788 _ACEOF
2789
2790
2791 # Keep a trace of the command line.
2792 # Strip out --no-create and --no-recursion so they do not pile up.
2793 # Strip out --silent because we don't want to record it for future runs.
2794 # Also quote any args containing shell meta-characters.
2795 # Make two passes to allow for proper duplicate-argument suppression.
2796 ac_configure_args=
2797 ac_configure_args0=
2798 ac_configure_args1=
2799 ac_must_keep_next=false
2800 for ac_pass in 1 2
2801 do
2802   for ac_arg
2803   do
2804     case $ac_arg in
2805     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2806     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2807     | -silent | --silent | --silen | --sile | --sil)
2808       continue ;;
2809     *\'*)
2810       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2811     esac
2812     case $ac_pass in
2813     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2814     2)
2815       as_fn_append ac_configure_args1 " '$ac_arg'"
2816       if test $ac_must_keep_next = true; then
2817         ac_must_keep_next=false # Got value, back to normal.
2818       else
2819         case $ac_arg in
2820           *=* | --config-cache | -C | -disable-* | --disable-* \
2821           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2822           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2823           | -with-* | --with-* | -without-* | --without-* | --x)
2824             case "$ac_configure_args0 " in
2825               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2826             esac
2827             ;;
2828           -* ) ac_must_keep_next=true ;;
2829         esac
2830       fi
2831       as_fn_append ac_configure_args " '$ac_arg'"
2832       ;;
2833     esac
2834   done
2835 done
2836 { ac_configure_args0=; unset ac_configure_args0;}
2837 { ac_configure_args1=; unset ac_configure_args1;}
2838
2839 # When interrupted or exit'd, cleanup temporary files, and complete
2840 # config.log.  We remove comments because anyway the quotes in there
2841 # would cause problems or look ugly.
2842 # WARNING: Use '\'' to represent an apostrophe within the trap.
2843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2844 trap 'exit_status=$?
2845   # Save into config.log some information that might help in debugging.
2846   {
2847     echo
2848
2849     $as_echo "## ---------------- ##
2850 ## Cache variables. ##
2851 ## ---------------- ##"
2852     echo
2853     # The following way of writing the cache mishandles newlines in values,
2854 (
2855   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856     eval ac_val=\$$ac_var
2857     case $ac_val in #(
2858     *${as_nl}*)
2859       case $ac_var in #(
2860       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862       esac
2863       case $ac_var in #(
2864       _ | IFS | as_nl) ;; #(
2865       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866       *) { eval $ac_var=; unset $ac_var;} ;;
2867       esac ;;
2868     esac
2869   done
2870   (set) 2>&1 |
2871     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872     *${as_nl}ac_space=\ *)
2873       sed -n \
2874         "s/'\''/'\''\\\\'\'''\''/g;
2875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876       ;; #(
2877     *)
2878       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2879       ;;
2880     esac |
2881     sort
2882 )
2883     echo
2884
2885     $as_echo "## ----------------- ##
2886 ## Output variables. ##
2887 ## ----------------- ##"
2888     echo
2889     for ac_var in $ac_subst_vars
2890     do
2891       eval ac_val=\$$ac_var
2892       case $ac_val in
2893       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2894       esac
2895       $as_echo "$ac_var='\''$ac_val'\''"
2896     done | sort
2897     echo
2898
2899     if test -n "$ac_subst_files"; then
2900       $as_echo "## ------------------- ##
2901 ## File substitutions. ##
2902 ## ------------------- ##"
2903       echo
2904       for ac_var in $ac_subst_files
2905       do
2906         eval ac_val=\$$ac_var
2907         case $ac_val in
2908         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909         esac
2910         $as_echo "$ac_var='\''$ac_val'\''"
2911       done | sort
2912       echo
2913     fi
2914
2915     if test -s confdefs.h; then
2916       $as_echo "## ----------- ##
2917 ## confdefs.h. ##
2918 ## ----------- ##"
2919       echo
2920       cat confdefs.h
2921       echo
2922     fi
2923     test "$ac_signal" != 0 &&
2924       $as_echo "$as_me: caught signal $ac_signal"
2925     $as_echo "$as_me: exit $exit_status"
2926   } >&5
2927   rm -f core *.core core.conftest.* &&
2928     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929     exit $exit_status
2930 ' 0
2931 for ac_signal in 1 2 13 15; do
2932   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933 done
2934 ac_signal=0
2935
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2938
2939 $as_echo "/* confdefs.h */" > confdefs.h
2940
2941 # Predefined preprocessor variables.
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 _ACEOF
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 _ACEOF
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 _ACEOF
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 _ACEOF
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2965 _ACEOF
2966
2967
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2970 ac_site_file1=NONE
2971 ac_site_file2=NONE
2972 if test -n "$CONFIG_SITE"; then
2973   # We do not want a PATH search for config.site.
2974   case $CONFIG_SITE in #((
2975     -*)  ac_site_file1=./$CONFIG_SITE;;
2976     */*) ac_site_file1=$CONFIG_SITE;;
2977     *)   ac_site_file1=./$CONFIG_SITE;;
2978   esac
2979 elif test "x$prefix" != xNONE; then
2980   ac_site_file1=$prefix/share/config.site
2981   ac_site_file2=$prefix/etc/config.site
2982 else
2983   ac_site_file1=$ac_default_prefix/share/config.site
2984   ac_site_file2=$ac_default_prefix/etc/config.site
2985 fi
2986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2987 do
2988   test "x$ac_site_file" = xNONE && continue
2989   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2990     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2992     sed 's/^/| /' "$ac_site_file" >&5
2993     . "$ac_site_file" \
2994       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "failed to load site script $ac_site_file
2997 See \`config.log' for more details" "$LINENO" 5 ; }
2998   fi
2999 done
3000
3001 if test -r "$cache_file"; then
3002   # Some versions of bash will fail to source /dev/null (special files
3003   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3004   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3005     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3007     case $cache_file in
3008       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009       *)                      . "./$cache_file";;
3010     esac
3011   fi
3012 else
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3015   >$cache_file
3016 fi
3017
3018 as_fn_append ac_header_list " stdlib.h"
3019 as_fn_append ac_header_list " unistd.h"
3020 as_fn_append ac_header_list " sys/param.h"
3021 # Check that the precious variables saved in the cache have kept the same
3022 # value.
3023 ac_cache_corrupted=false
3024 for ac_var in $ac_precious_vars; do
3025   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3026   eval ac_new_set=\$ac_env_${ac_var}_set
3027   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3028   eval ac_new_val=\$ac_env_${ac_var}_value
3029   case $ac_old_set,$ac_new_set in
3030     set,)
3031       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3032 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3033       ac_cache_corrupted=: ;;
3034     ,set)
3035       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3036 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3037       ac_cache_corrupted=: ;;
3038     ,);;
3039     *)
3040       if test "x$ac_old_val" != "x$ac_new_val"; then
3041         # differences in whitespace do not lead to failure.
3042         ac_old_val_w=`echo x $ac_old_val`
3043         ac_new_val_w=`echo x $ac_new_val`
3044         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3045           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3046 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3047           ac_cache_corrupted=:
3048         else
3049           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3050 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3051           eval $ac_var=\$ac_old_val
3052         fi
3053         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3054 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3055         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3056 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3057       fi;;
3058   esac
3059   # Pass precious variables to config.status.
3060   if test "$ac_new_set" = set; then
3061     case $ac_new_val in
3062     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3063     *) ac_arg=$ac_var=$ac_new_val ;;
3064     esac
3065     case " $ac_configure_args " in
3066       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3067       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3068     esac
3069   fi
3070 done
3071 if $ac_cache_corrupted; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3076   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3077 fi
3078 ## -------------------- ##
3079 ## Main body of script. ##
3080 ## -------------------- ##
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088
3089
3090
3091 BUILD_DIR=`pwd`
3092 cd ..
3093 TOP_DIR=`pwd`
3094 cd ${BUILD_DIR}
3095
3096
3097 ac_aux_dir=
3098 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3099   if test -f "$ac_dir/install-sh"; then
3100     ac_aux_dir=$ac_dir
3101     ac_install_sh="$ac_aux_dir/install-sh -c"
3102     break
3103   elif test -f "$ac_dir/install.sh"; then
3104     ac_aux_dir=$ac_dir
3105     ac_install_sh="$ac_aux_dir/install.sh -c"
3106     break
3107   elif test -f "$ac_dir/shtool"; then
3108     ac_aux_dir=$ac_dir
3109     ac_install_sh="$ac_aux_dir/shtool install -c"
3110     break
3111   fi
3112 done
3113 if test -z "$ac_aux_dir"; then
3114   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3115 fi
3116
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3124
3125
3126 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3127
3128
3129 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3130 WIN32MAINDIR=${BUILD_DIR}
3131 WIN32TOPDIR=${TOP_DIR}
3132
3133
3134
3135
3136 for ac_prog in true
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   case $TRUEPRG in
3146   [\\/]* | ?:[\\/]*)
3147   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3148   ;;
3149   *)
3150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155     for ac_exec_ext in '' $ac_executable_extensions; do
3156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165   ;;
3166 esac
3167 fi
3168 TRUEPRG=$ac_cv_path_TRUEPRG
3169 if test -n "$TRUEPRG"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3171 $as_echo "$TRUEPRG" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178   test -n "$TRUEPRG" && break
3179 done
3180 test -n "$TRUEPRG" || TRUEPRG=":"
3181
3182 for ac_prog in false
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   case $FALSEPRG in
3192   [\\/]* | ?:[\\/]*)
3193   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3194   ;;
3195   *)
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211   ;;
3212 esac
3213 fi
3214 FALSEPRG=$ac_cv_path_FALSEPRG
3215 if test -n "$FALSEPRG"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3217 $as_echo "$FALSEPRG" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224   test -n "$FALSEPRG" && break
3225 done
3226 test -n "$FALSEPRG" || FALSEPRG=":"
3227
3228
3229
3230 post_host=
3231 if test "x$BACULA" != x; then
3232    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3233 fi
3234 BACULA=${BACULA:-Bacula}
3235 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3237 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3239
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243
3244 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3245 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3246 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3247
3248
3249 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251
3252 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3253 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3254
3255
3256 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257
3258 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3259
3260
3261 echo "configuring for ${BACULA} $VERSION ($DATE)"
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 fi
3309 if test -z "$ac_cv_prog_CC"; then
3310   ac_ct_CC=$CC
3311   # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$ac_ct_CC"; then
3319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     ac_cv_prog_ac_ct_CC="gcc"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347   if test "x$ac_ct_CC" = x; then
3348     CC=""
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356     CC=$ac_ct_CC
3357   fi
3358 else
3359   CC="$ac_cv_prog_CC"
3360 fi
3361
3362 if test -z "$CC"; then
3363           if test -n "$ac_tool_prefix"; then
3364     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   if test -n "$CC"; then
3372   ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381     ac_cv_prog_CC="${ac_tool_prefix}cc"
3382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386   done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401   fi
3402 fi
3403 if test -z "$CC"; then
3404   # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test -n "$CC"; then
3412   ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414   ac_prog_rejected=no
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420     for ac_exec_ext in '' $ac_executable_extensions; do
3421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423        ac_prog_rejected=yes
3424        continue
3425      fi
3426     ac_cv_prog_CC="cc"
3427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431   done
3432 IFS=$as_save_IFS
3433
3434 if test $ac_prog_rejected = yes; then
3435   # We found a bogon in the path, so make sure we never use it.
3436   set dummy $ac_cv_prog_CC
3437   shift
3438   if test $# != 0; then
3439     # We chose a different compiler from the bogus one.
3440     # However, it has the same basename, so the bogon will be chosen
3441     # first if we set CC to just the basename; use the full file name.
3442     shift
3443     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444   fi
3445 fi
3446 fi
3447 fi
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458 fi
3459 if test -z "$CC"; then
3460   if test -n "$ac_tool_prefix"; then
3461   for ac_prog in cl.exe
3462   do
3463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500     test -n "$CC" && break
3501   done
3502 fi
3503 if test -z "$CC"; then
3504   ac_ct_CC=$CC
3505   for ac_prog in cl.exe
3506 do
3507   # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$ac_ct_CC"; then
3515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524     ac_cv_prog_ac_ct_CC="$ac_prog"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3538 else
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544   test -n "$ac_ct_CC" && break
3545 done
3546
3547   if test "x$ac_ct_CC" = x; then
3548     CC=""
3549   else
3550     case $cross_compiling:$ac_tool_warned in
3551 yes:)
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3555 esac
3556     CC=$ac_ct_CC
3557   fi
3558 fi
3559
3560 fi
3561
3562
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3567
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570 set X $ac_compile
3571 ac_compiler=$2
3572 for ac_option in --version -v -V -qversion; do
3573   { { ac_try="$ac_compiler $ac_option >&5"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581   ac_status=$?
3582   if test -s conftest.err; then
3583     sed '10a\
3584 ... rest of stderr output deleted ...
3585          10q' conftest.err >conftest.er1
3586     cat conftest.er1 >&5
3587   fi
3588   rm -f conftest.er1 conftest.err
3589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590   test $ac_status = 0; }
3591 done
3592
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595
3596 int
3597 main ()
3598 {
3599
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3608 # of exeext.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612
3613 # The possible output files:
3614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615
3616 ac_rmfiles=
3617 for ac_file in $ac_files
3618 do
3619   case $ac_file in
3620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622   esac
3623 done
3624 rm -f $ac_rmfiles
3625
3626 if { { ac_try="$ac_link_default"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_link_default") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }; then :
3637   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3641 # Autoconf.
3642 for ac_file in $ac_files ''
3643 do
3644   test -f "$ac_file" || continue
3645   case $ac_file in
3646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647         ;;
3648     [ab].out )
3649         # We found the default executable, but exeext='' is most
3650         # certainly right.
3651         break;;
3652     *.* )
3653         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3654         then :; else
3655            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656         fi
3657         # We set ac_cv_exeext here because the later test for it is not
3658         # safe: cross compilers may not add the suffix if given an `-o'
3659         # argument, so we may need to know it at that point already.
3660         # Even if this section looks crufty: it has the advantage of
3661         # actually working.
3662         break;;
3663     * )
3664         break;;
3665   esac
3666 done
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668
3669 else
3670   ac_file=''
3671 fi
3672 if test -z "$ac_file"; then :
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error 77 "C compiler cannot create executables
3681 See \`config.log' for more details" "$LINENO" 5 ; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3691
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703   (eval "$ac_link") 2>&5
3704   ac_status=$?
3705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706   test $ac_status = 0; }; then :
3707   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3710 # `rm'.
3711 for ac_file in conftest.exe conftest conftest.*; do
3712   test -f "$ac_file" || continue
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716           break;;
3717     * ) break;;
3718   esac
3719 done
3720 else
3721   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details" "$LINENO" 5 ; }
3725 fi
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3729
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3732 ac_exeext=$EXEEXT
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735 #include <stdio.h>
3736 int
3737 main ()
3738 {
3739 FILE *f = fopen ("conftest.out", "w");
3740  return ferror (f) || fclose (f) != 0;
3741
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run.  If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752   { { ac_try="$ac_link"
3753 case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759   (eval "$ac_link") 2>&5
3760   ac_status=$?
3761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762   test $ac_status = 0; }
3763   if { ac_try='./conftest$ac_cv_exeext'
3764   { { case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_try") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; }; then
3774     cross_compiling=no
3775   else
3776     if test "$cross_compiling" = maybe; then
3777         cross_compiling=yes
3778     else
3779         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3784     fi
3785   fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3789
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if test "${ac_cv_objext+set}" = set; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_compile") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }; then :
3820   for ac_file in conftest.o conftest.obj conftest.*; do
3821   test -f "$ac_file" || continue;
3822   case $ac_file in
3823     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825        break;;
3826   esac
3827 done
3828 else
3829   $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5 ; }
3836 fi
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3842 ac_objext=$OBJEXT
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850
3851 int
3852 main ()
3853 {
3854 #ifndef __GNUC__
3855        choke me
3856 #endif
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863   ac_compiler_gnu=yes
3864 else
3865   ac_compiler_gnu=no
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3874   GCC=yes
3875 else
3876   GCC=
3877 fi
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if test "${ac_cv_prog_cc_g+set}" = set; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   ac_save_c_werror_flag=$ac_c_werror_flag
3886    ac_c_werror_flag=yes
3887    ac_cv_prog_cc_g=no
3888    CFLAGS="-g"
3889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_cv_prog_cc_g=yes
3902 else
3903   CFLAGS=""
3904       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916
3917 else
3918   ac_c_werror_flag=$ac_save_c_werror_flag
3919          CFLAGS="-g"
3920          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932   ac_cv_prog_cc_g=yes
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939    ac_c_werror_flag=$ac_save_c_werror_flag
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944   CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946   if test "$GCC" = yes; then
3947     CFLAGS="-g -O2"
3948   else
3949     CFLAGS="-g"
3950   fi
3951 else
3952   if test "$GCC" = yes; then
3953     CFLAGS="-O2"
3954   else
3955     CFLAGS=
3956   fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   ac_cv_prog_cc_c89=no
3964 ac_save_CC=$CC
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h.  */
3967 #include <stdarg.h>
3968 #include <stdio.h>
3969 #include <sys/types.h>
3970 #include <sys/stat.h>
3971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3972 struct buf { int x; };
3973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974 static char *e (p, i)
3975      char **p;
3976      int i;
3977 {
3978   return p[i];
3979 }
3980 static char *f (char * (*g) (char **, int), char **p, ...)
3981 {
3982   char *s;
3983   va_list v;
3984   va_start (v,p);
3985   s = g (p, va_arg (v,int));
3986   va_end (v);
3987   return s;
3988 }
3989
3990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3991    function prototypes and stuff, but not '\xHH' hex character constants.
3992    These don't provoke an error unfortunately, instead are silently treated
3993    as 'x'.  The following induces an error, until -std is added to get
3994    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3995    array size at least.  It's necessary to write '\x00'==0 to get something
3996    that's true only with -std.  */
3997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998
3999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000    inside strings and character constants.  */
4001 #define FOO(x) 'x'
4002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003
4004 int test (int i, double x);
4005 struct s1 {int (*f) (int a);};
4006 struct s2 {int (*f) (double a);};
4007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008 int argc;
4009 char **argv;
4010 int
4011 main ()
4012 {
4013 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 do
4021   CC="$ac_save_CC $ac_arg"
4022   if ac_fn_c_try_compile "$LINENO"; then :
4023   ac_cv_prog_cc_c89=$ac_arg
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext
4026   test "x$ac_cv_prog_cc_c89" != "xno" && break
4027 done
4028 rm -f conftest.$ac_ext
4029 CC=$ac_save_CC
4030
4031 fi
4032 # AC_CACHE_VAL
4033 case "x$ac_cv_prog_cc_c89" in
4034   x)
4035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4037   xno)
4038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4040   *)
4041     CC="$CC $ac_cv_prog_cc_c89"
4042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4044 esac
4045 if test "x$ac_cv_prog_cc_c89" != xno; then :
4046
4047 fi
4048
4049 ac_ext=c
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054
4055 ac_ext=cpp
4056 ac_cpp='$CXXCPP $CPPFLAGS'
4057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4060 if test -z "$CXX"; then
4061   if test -n "$CCC"; then
4062     CXX=$CCC
4063   else
4064     if test -n "$ac_tool_prefix"; then
4065   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4066   do
4067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_CXX+set}" = set; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   if test -n "$CXX"; then
4075   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080   IFS=$as_save_IFS
4081   test -z "$as_dir" && as_dir=.
4082     for ac_exec_ext in '' $ac_executable_extensions; do
4083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086     break 2
4087   fi
4088 done
4089   done
4090 IFS=$as_save_IFS
4091
4092 fi
4093 fi
4094 CXX=$ac_cv_prog_CXX
4095 if test -n "$CXX"; then
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4097 $as_echo "$CXX" >&6; }
4098 else
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 fi
4102
4103
4104     test -n "$CXX" && break
4105   done
4106 fi
4107 if test -z "$CXX"; then
4108   ac_ct_CXX=$CXX
4109   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4110 do
4111   # Extract the first word of "$ac_prog", so it can be a program name with args.
4112 set dummy $ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -n "$ac_ct_CXX"; then
4119   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128     ac_cv_prog_ac_ct_CXX="$ac_prog"
4129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133   done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4139 if test -n "$ac_ct_CXX"; then
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4141 $as_echo "$ac_ct_CXX" >&6; }
4142 else
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147
4148   test -n "$ac_ct_CXX" && break
4149 done
4150
4151   if test "x$ac_ct_CXX" = x; then
4152     CXX="g++"
4153   else
4154     case $cross_compiling:$ac_tool_warned in
4155 yes:)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158 ac_tool_warned=yes ;;
4159 esac
4160     CXX=$ac_ct_CXX
4161   fi
4162 fi
4163
4164   fi
4165 fi
4166 # Provide some information about the compiler.
4167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4168 set X $ac_compile
4169 ac_compiler=$2
4170 for ac_option in --version -v -V -qversion; do
4171   { { ac_try="$ac_compiler $ac_option >&5"
4172 case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4179   ac_status=$?
4180   if test -s conftest.err; then
4181     sed '10a\
4182 ... rest of stderr output deleted ...
4183          10q' conftest.err >conftest.er1
4184     cat conftest.er1 >&5
4185   fi
4186   rm -f conftest.er1 conftest.err
4187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188   test $ac_status = 0; }
4189 done
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202 #ifndef __GNUC__
4203        choke me
4204 #endif
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_cxx_try_compile "$LINENO"; then :
4211   ac_compiler_gnu=yes
4212 else
4213   ac_compiler_gnu=no
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4222   GXX=yes
4223 else
4224   GXX=
4225 fi
4226 ac_test_CXXFLAGS=${CXXFLAGS+set}
4227 ac_save_CXXFLAGS=$CXXFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4230 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4234    ac_cxx_werror_flag=yes
4235    ac_cv_prog_cxx_g=no
4236    CXXFLAGS="-g"
4237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_cxx_try_compile "$LINENO"; then :
4249   ac_cv_prog_cxx_g=yes
4250 else
4251   CXXFLAGS=""
4252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h.  */
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_cxx_try_compile "$LINENO"; then :
4264
4265 else
4266   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4267          CXXFLAGS="-g"
4268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270
4271 int
4272 main ()
4273 {
4274
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_cxx_try_compile "$LINENO"; then :
4280   ac_cv_prog_cxx_g=yes
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4291 if test "$ac_test_CXXFLAGS" = set; then
4292   CXXFLAGS=$ac_save_CXXFLAGS
4293 elif test $ac_cv_prog_cxx_g = yes; then
4294   if test "$GXX" = yes; then
4295     CXXFLAGS="-g -O2"
4296   else
4297     CXXFLAGS="-g"
4298   fi
4299 else
4300   if test "$GXX" = yes; then
4301     CXXFLAGS="-O2"
4302   else
4303     CXXFLAGS=
4304   fi
4305 fi
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312 if test "x$CC" != xcc; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4314 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4317 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4318 fi
4319 set dummy $CC; ac_cc=`$as_echo "$2" |
4320                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4321 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 # Make sure it works both with $CC and with simple cc.
4336 # We do the test twice because some compilers refuse to overwrite an
4337 # existing .o file with -o, though they will create one.
4338 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4339 rm -f conftest2.*
4340 if { { case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346   (eval "$ac_try") 2>&5
4347   ac_status=$?
4348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349   test $ac_status = 0; } &&
4350    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355 $as_echo "$ac_try_echo"; } >&5
4356   (eval "$ac_try") 2>&5
4357   ac_status=$?
4358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4359   test $ac_status = 0; };
4360 then
4361   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4362   if test "x$CC" != xcc; then
4363     # Test first that cc exists at all.
4364     if { ac_try='cc -c conftest.$ac_ext >&5'
4365   { { case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374   test $ac_status = 0; }; }; then
4375       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4376       rm -f conftest2.*
4377       if { { case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383   (eval "$ac_try") 2>&5
4384   ac_status=$?
4385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386   test $ac_status = 0; } &&
4387          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; };
4397       then
4398         # cc works too.
4399         :
4400       else
4401         # cc exists but doesn't like -o.
4402         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4403       fi
4404     fi
4405   fi
4406 else
4407   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4408 fi
4409 rm -f core conftest*
4410
4411 fi
4412 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414 $as_echo "yes" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418
4419 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4420
4421 fi
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4430 # On Suns, sometimes $CPP names a directory.
4431 if test -n "$CPP" && test -d "$CPP"; then
4432   CPP=
4433 fi
4434 if test -z "$CPP"; then
4435   if test "${ac_cv_prog_CPP+set}" = set; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438       # Double quotes because CPP needs to be expanded
4439     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4440     do
4441       ac_preproc_ok=false
4442 for ac_c_preproc_warn_flag in '' yes
4443 do
4444   # Use a header file that comes with gcc, so configuring glibc
4445   # with a fresh cross-compiler works.
4446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447   # <limits.h> exists even on freestanding compilers.
4448   # On the NeXT, cc -E runs the code through the compiler's parser,
4449   # not just through cpp. "Syntax error" is here to catch this case.
4450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #ifdef __STDC__
4453 # include <limits.h>
4454 #else
4455 # include <assert.h>
4456 #endif
4457                      Syntax error
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460
4461 else
4462   # Broken: fails on valid input.
4463 continue
4464 fi
4465 rm -f conftest.err conftest.i conftest.$ac_ext
4466
4467   # OK, works on sane cases.  Now check whether nonexistent headers
4468   # can be detected and how.
4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471 #include <ac_nonexistent.h>
4472 _ACEOF
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474   # Broken: success on invalid input.
4475 continue
4476 else
4477   # Passes both tests.
4478 ac_preproc_ok=:
4479 break
4480 fi
4481 rm -f conftest.err conftest.i conftest.$ac_ext
4482
4483 done
4484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4485 rm -f conftest.i conftest.err conftest.$ac_ext
4486 if $ac_preproc_ok; then :
4487   break
4488 fi
4489
4490     done
4491     ac_cv_prog_CPP=$CPP
4492
4493 fi
4494   CPP=$ac_cv_prog_CPP
4495 else
4496   ac_cv_prog_CPP=$CPP
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4499 $as_echo "$CPP" >&6; }
4500 ac_preproc_ok=false
4501 for ac_c_preproc_warn_flag in '' yes
4502 do
4503   # Use a header file that comes with gcc, so configuring glibc
4504   # with a fresh cross-compiler works.
4505   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506   # <limits.h> exists even on freestanding compilers.
4507   # On the NeXT, cc -E runs the code through the compiler's parser,
4508   # not just through cpp. "Syntax error" is here to catch this case.
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511 #ifdef __STDC__
4512 # include <limits.h>
4513 #else
4514 # include <assert.h>
4515 #endif
4516                      Syntax error
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519
4520 else
4521   # Broken: fails on valid input.
4522 continue
4523 fi
4524 rm -f conftest.err conftest.i conftest.$ac_ext
4525
4526   # OK, works on sane cases.  Now check whether nonexistent headers
4527   # can be detected and how.
4528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530 #include <ac_nonexistent.h>
4531 _ACEOF
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533   # Broken: success on invalid input.
4534 continue
4535 else
4536   # Passes both tests.
4537 ac_preproc_ok=:
4538 break
4539 fi
4540 rm -f conftest.err conftest.i conftest.$ac_ext
4541
4542 done
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.i conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4546
4547 else
4548   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4551 See \`config.log' for more details" "$LINENO" 5 ; }
4552 fi
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if test "${ac_cv_path_GREP+set}" = set; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$GREP"; then
4567   ac_path_GREP_found=false
4568   # Loop through the user's path and test for each of PROGNAME-LIST
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_prog in grep ggrep; do
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579   # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4581 *GNU*)
4582   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 *)
4584   ac_count=0
4585   $as_echo_n 0123456789 >"conftest.in"
4586   while :
4587   do
4588     cat "conftest.in" "conftest.in" >"conftest.tmp"
4589     mv "conftest.tmp" "conftest.in"
4590     cp "conftest.in" "conftest.nl"
4591     $as_echo 'GREP' >> "conftest.nl"
4592     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594     as_fn_arith $ac_count + 1 && ac_count=$as_val
4595     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596       # Best one so far, save it but keep looking for a better one
4597       ac_cv_path_GREP="$ac_path_GREP"
4598       ac_path_GREP_max=$ac_count
4599     fi
4600     # 10*(2^10) chars as input seems more than enough
4601     test $ac_count -gt 10 && break
4602   done
4603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606       $ac_path_GREP_found && break 3
4607     done
4608   done
4609   done
4610 IFS=$as_save_IFS
4611   if test -z "$ac_cv_path_GREP"; then
4612     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613   fi
4614 else
4615   ac_cv_path_GREP=$GREP
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621  GREP="$ac_cv_path_GREP"
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if test "${ac_cv_path_EGREP+set}" = set; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630    then ac_cv_path_EGREP="$GREP -E"
4631    else
4632      if test -z "$EGREP"; then
4633   ac_path_EGREP_found=false
4634   # Loop through the user's path and test for each of PROGNAME-LIST
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_prog in egrep; do
4641     for ac_exec_ext in '' $ac_executable_extensions; do
4642       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645   # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4647 *GNU*)
4648   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 *)
4650   ac_count=0
4651   $as_echo_n 0123456789 >"conftest.in"
4652   while :
4653   do
4654     cat "conftest.in" "conftest.in" >"conftest.tmp"
4655     mv "conftest.tmp" "conftest.in"
4656     cp "conftest.in" "conftest.nl"
4657     $as_echo 'EGREP' >> "conftest.nl"
4658     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660     as_fn_arith $ac_count + 1 && ac_count=$as_val
4661     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662       # Best one so far, save it but keep looking for a better one
4663       ac_cv_path_EGREP="$ac_path_EGREP"
4664       ac_path_EGREP_max=$ac_count
4665     fi
4666     # 10*(2^10) chars as input seems more than enough
4667     test $ac_count -gt 10 && break
4668   done
4669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4671
4672       $ac_path_EGREP_found && break 3
4673     done
4674   done
4675   done
4676 IFS=$as_save_IFS
4677   if test -z "$ac_cv_path_EGREP"; then
4678     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679   fi
4680 else
4681   ac_cv_path_EGREP=$EGREP
4682 fi
4683
4684    fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688  EGREP="$ac_cv_path_EGREP"
4689
4690
4691 if test $ac_cv_c_compiler_gnu = yes; then
4692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4693 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4694 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697     ac_pattern="Autoconf.*'x'"
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #include <sgtty.h>
4701 Autoconf TIOCGETP
4702 _ACEOF
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4705   ac_cv_prog_gcc_traditional=yes
4706 else
4707   ac_cv_prog_gcc_traditional=no
4708 fi
4709 rm -f conftest*
4710
4711
4712   if test $ac_cv_prog_gcc_traditional = no; then
4713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h.  */
4715 #include <termio.h>
4716 Autoconf TCGETA
4717 _ACEOF
4718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4719   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4720   ac_cv_prog_gcc_traditional=yes
4721 fi
4722 rm -f conftest*
4723
4724   fi
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4727 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4728   if test $ac_cv_prog_gcc_traditional = yes; then
4729     CC="$CC -traditional"
4730   fi
4731 fi
4732
4733 BASECC=`basename $CC`
4734 have_gcc=no
4735 if test "x$BASECC" = xgcc; then
4736    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4737
4738    have_gcc=yes
4739 fi
4740 # Extract the first word of "$CXX", so it can be a program name with args.
4741 set dummy $CXX; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_path_CXX+set}" = set; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   case $CXX in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764   done
4765 IFS=$as_save_IFS
4766
4767   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4768   ;;
4769 esac
4770 fi
4771 CXX=$ac_cv_path_CXX
4772 if test -n "$CXX"; then
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4774 $as_echo "$CXX" >&6; }
4775 else
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781 if test ! -e $CXX; then
4782    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4783 fi
4784
4785 # Find a good install program.  We prefer a C program (faster),
4786 # so one script is as good as another.  But avoid the broken or
4787 # incompatible versions:
4788 # SysV /etc/install, /usr/sbin/install
4789 # SunOS /usr/etc/install
4790 # IRIX /sbin/install
4791 # AIX /bin/install
4792 # AmigaOS /C/install, which installs bootblocks on floppy discs
4793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4796 # OS/2's system install, which has a completely different semantic
4797 # ./install, which can be erroneously created by make from ./install.sh.
4798 # Reject install programs that cannot install multiple files.
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4800 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4801 if test -z "$INSTALL"; then
4802 if test "${ac_cv_path_install+set}" = set; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     # Account for people who put trailing slashes in PATH elements.
4811 case $as_dir/ in #((
4812   ./ | .// | /[cC]/* | \
4813   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4814   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4815   /usr/ucb/* ) ;;
4816   *)
4817     # OSF1 and SCO ODT 3.0 have their own names for install.
4818     # Don't use installbsd from OSF since it installs stuff as root
4819     # by default.
4820     for ac_prog in ginstall scoinst install; do
4821       for ac_exec_ext in '' $ac_executable_extensions; do
4822         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4823           if test $ac_prog = install &&
4824             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4825             # AIX install.  It has an incompatible calling convention.
4826             :
4827           elif test $ac_prog = install &&
4828             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4829             # program-specific install script used by HP pwplus--don't use.
4830             :
4831           else
4832             rm -rf conftest.one conftest.two conftest.dir
4833             echo one > conftest.one
4834             echo two > conftest.two
4835             mkdir conftest.dir
4836             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4837               test -s conftest.one && test -s conftest.two &&
4838               test -s conftest.dir/conftest.one &&
4839               test -s conftest.dir/conftest.two
4840             then
4841               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4842               break 3
4843             fi
4844           fi
4845         fi
4846       done
4847     done
4848     ;;
4849 esac
4850
4851   done
4852 IFS=$as_save_IFS
4853
4854 rm -rf conftest.one conftest.two conftest.dir
4855
4856 fi
4857   if test "${ac_cv_path_install+set}" = set; then
4858     INSTALL=$ac_cv_path_install
4859   else
4860     # As a last resort, use the slow shell script.  Don't cache a
4861     # value for INSTALL within a source directory, because that will
4862     # break other packages using the cache if that directory is
4863     # removed, or if the value is a relative name.
4864     INSTALL=$ac_install_sh
4865   fi
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4868 $as_echo "$INSTALL" >&6; }
4869
4870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4871 # It thinks the first close brace ends the variable substitution.
4872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4873
4874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4875
4876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4877
4878 # Extract the first word of "mv", so it can be a program name with args.
4879 set dummy mv; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_MV+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   case $MV in
4886   [\\/]* | ?:[\\/]*)
4887   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4888   ;;
4889   *)
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_exec_ext in '' $ac_executable_extensions; do
4896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902   done
4903 IFS=$as_save_IFS
4904
4905   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4906   ;;
4907 esac
4908 fi
4909 MV=$ac_cv_path_MV
4910 if test -n "$MV"; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4912 $as_echo "$MV" >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 # Extract the first word of "rm", so it can be a program name with args.
4920 set dummy rm; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_path_REMOVE+set}" = set; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   case $REMOVE in
4927   [\\/]* | ?:[\\/]*)
4928   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4929   ;;
4930   *)
4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4947   ;;
4948 esac
4949 fi
4950 REMOVE=$ac_cv_path_REMOVE
4951 if test -n "$REMOVE"; then
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4953 $as_echo "$REMOVE" >&6; }
4954 else
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 # Extract the first word of "cp", so it can be a program name with args.
4961 set dummy cp; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_path_CP+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   case $CP in
4968   [\\/]* | ?:[\\/]*)
4969   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4970   ;;
4971   *)
4972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4988   ;;
4989 esac
4990 fi
4991 CP=$ac_cv_path_CP
4992 if test -n "$CP"; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4994 $as_echo "$CP" >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 # Extract the first word of "sed", so it can be a program name with args.
5002 set dummy sed; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_path_SED+set}" = set; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   case $SED in
5009   [\\/]* | ?:[\\/]*)
5010   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011   ;;
5012   *)
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018     for ac_exec_ext in '' $ac_executable_extensions; do
5019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025   done
5026 IFS=$as_save_IFS
5027
5028   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5029   ;;
5030 esac
5031 fi
5032 SED=$ac_cv_path_SED
5033 if test -n "$SED"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5035 $as_echo "$SED" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042 # Extract the first word of "echo", so it can be a program name with args.
5043 set dummy echo; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_path_ECHO+set}" = set; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   case $ECHO in
5050   [\\/]* | ?:[\\/]*)
5051   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5052   ;;
5053   *)
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066   done
5067 IFS=$as_save_IFS
5068
5069   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5070   ;;
5071 esac
5072 fi
5073 ECHO=$ac_cv_path_ECHO
5074 if test -n "$ECHO"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5076 $as_echo "$ECHO" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 # Extract the first word of "cmp", so it can be a program name with args.
5084 set dummy cmp; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_path_CMP+set}" = set; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   case $CMP in
5091   [\\/]* | ?:[\\/]*)
5092   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5093   ;;
5094   *)
5095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107   done
5108 IFS=$as_save_IFS
5109
5110   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5111   ;;
5112 esac
5113 fi
5114 CMP=$ac_cv_path_CMP
5115 if test -n "$CMP"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5117 $as_echo "$CMP" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 # Extract the first word of "tbl", so it can be a program name with args.
5125 set dummy tbl; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_path_TBL+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   case $TBL in
5132   [\\/]* | ?:[\\/]*)
5133   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5134   ;;
5135   *)
5136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5152   ;;
5153 esac
5154 fi
5155 TBL=$ac_cv_path_TBL
5156 if test -n "$TBL"; then
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5158 $as_echo "$TBL" >&6; }
5159 else
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5162 fi
5163
5164
5165 # Extract the first word of "ar", so it can be a program name with args.
5166 set dummy ar; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_path_AR+set}" = set; then :
5170   $as_echo_n "(cached) " >&6
5171 else
5172   case $AR in
5173   [\\/]* | ?:[\\/]*)
5174   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5175   ;;
5176   *)
5177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182     for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189   done
5190 IFS=$as_save_IFS
5191
5192   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5193   ;;
5194 esac
5195 fi
5196 AR=$ac_cv_path_AR
5197 if test -n "$AR"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5199 $as_echo "$AR" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 # Extract the first word of "openssl", so it can be a program name with args.
5207 set dummy openssl; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5211   $as_echo_n "(cached) " >&6
5212 else
5213   case $OPENSSL in
5214   [\\/]* | ?:[\\/]*)
5215   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5216   ;;
5217   *)
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5234   ;;
5235 esac
5236 fi
5237 OPENSSL=$ac_cv_path_OPENSSL
5238 if test -n "$OPENSSL"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5240 $as_echo "$OPENSSL" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 # Extract the first word of "mtx", so it can be a program name with args.
5248 set dummy mtx; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_path_MTX+set}" = set; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   case $MTX in
5255   [\\/]* | ?:[\\/]*)
5256   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5257   ;;
5258   *)
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5275   ;;
5276 esac
5277 fi
5278 MTX=$ac_cv_path_MTX
5279 if test -n "$MTX"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5281 $as_echo "$MTX" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288 # Extract the first word of "dd", so it can be a program name with args.
5289 set dummy dd; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_path_DD+set}" = set; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   case $DD in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5316   ;;
5317 esac
5318 fi
5319 DD=$ac_cv_path_DD
5320 if test -n "$DD"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5322 $as_echo "$DD" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329 # Extract the first word of "mkisofs", so it can be a program name with args.
5330 set dummy mkisofs; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5334   $as_echo_n "(cached) " >&6
5335 else
5336   case $MKISOFS in
5337   [\\/]* | ?:[\\/]*)
5338   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5339   ;;
5340   *)
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353   done
5354 IFS=$as_save_IFS
5355
5356   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5357   ;;
5358 esac
5359 fi
5360 MKISOFS=$ac_cv_path_MKISOFS
5361 if test -n "$MKISOFS"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5363 $as_echo "$MKISOFS" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370 # Extract the first word of "python", so it can be a program name with args.
5371 set dummy python; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_path_PYTHON+set}" = set; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   case $PYTHON in
5378   [\\/]* | ?:[\\/]*)
5379   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5380   ;;
5381   *)
5382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396
5397   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5398   ;;
5399 esac
5400 fi
5401 PYTHON=$ac_cv_path_PYTHON
5402 if test -n "$PYTHON"; then
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5404 $as_echo "$PYTHON" >&6; }
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 # Extract the first word of "growisofs", so it can be a program name with args.
5412 set dummy growisofs; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   case $GROWISOFS in
5419   [\\/]* | ?:[\\/]*)
5420   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5421   ;;
5422   *)
5423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5439   ;;
5440 esac
5441 fi
5442 GROWISOFS=$ac_cv_path_GROWISOFS
5443 if test -n "$GROWISOFS"; then
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5445 $as_echo "$GROWISOFS" >&6; }
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451
5452 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5453 set dummy dvd+rw-mediainfo; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   case $DVDRWMEDIAINFO in
5460   [\\/]* | ?:[\\/]*)
5461   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5462   ;;
5463   *)
5464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469     for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476   done
5477 IFS=$as_save_IFS
5478
5479   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5480   ;;
5481 esac
5482 fi
5483 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5484 if test -n "$DVDRWMEDIAINFO"; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5486 $as_echo "$DVDRWMEDIAINFO" >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5494 set dummy dvd+rw-format; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   case $DVDRWFORMAT in
5501   [\\/]* | ?:[\\/]*)
5502   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5503   ;;
5504   *)
5505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510     for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517   done
5518 IFS=$as_save_IFS
5519
5520   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5521   ;;
5522 esac
5523 fi
5524 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5525 if test -n "$DVDRWFORMAT"; then
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5527 $as_echo "$DVDRWFORMAT" >&6; }
5528 else
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 # Extract the first word of "pkg-config", so it can be a program name with args.
5535 set dummy pkg-config; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   case $PKGCONFIG in
5542   [\\/]* | ?:[\\/]*)
5543   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5544   ;;
5545   *)
5546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551     for ac_exec_ext in '' $ac_executable_extensions; do
5552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558   done
5559 IFS=$as_save_IFS
5560
5561   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5562   ;;
5563 esac
5564 fi
5565 PKGCONFIG=$ac_cv_path_PKGCONFIG
5566 if test -n "$PKGCONFIG"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5568 $as_echo "$PKGCONFIG" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575 # Extract the first word of "qmake", so it can be a program name with args.
5576 set dummy qmake; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_path_QMAKE+set}" = set; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   case $QMAKE in
5583   [\\/]* | ?:[\\/]*)
5584   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5585   ;;
5586   *)
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5603   ;;
5604 esac
5605 fi
5606 QMAKE=$ac_cv_path_QMAKE
5607 if test -n "$QMAKE"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5609 $as_echo "$QMAKE" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615
5616 # Extract the first word of "gmake", so it can be a program name with args.
5617 set dummy gmake; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_GMAKE+set}" = set; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   case $GMAKE in
5624   [\\/]* | ?:[\\/]*)
5625   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5626   ;;
5627   *)
5628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640   done
5641 IFS=$as_save_IFS
5642
5643   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5644   ;;
5645 esac
5646 fi
5647 GMAKE=$ac_cv_path_GMAKE
5648 if test -n "$GMAKE"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5650 $as_echo "$GMAKE" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657
5658 if test "x$WXCONFIG" = x; then
5659    WXCONFIG=wx-config
5660 fi
5661 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5662 set dummy ${WXCONFIG}; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   case $WXCONFIG in
5669   [\\/]* | ?:[\\/]*)
5670   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5671   ;;
5672   *)
5673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678     for ac_exec_ext in '' $ac_executable_extensions; do
5679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685   done
5686 IFS=$as_save_IFS
5687
5688   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5689   ;;
5690 esac
5691 fi
5692 WXCONFIG=$ac_cv_path_WXCONFIG
5693 if test -n "$WXCONFIG"; then
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5695 $as_echo "$WXCONFIG" >&6; }
5696 else
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 fi
5700
5701
5702
5703 # Extract the first word of "cdrecord", so it can be a program name with args.
5704 set dummy cdrecord; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   case $CDRECORD in
5711   [\\/]* | ?:[\\/]*)
5712   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5713   ;;
5714   *)
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729
5730   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5731   ;;
5732 esac
5733 fi
5734 CDRECORD=$ac_cv_path_CDRECORD
5735 if test -n "$CDRECORD"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5737 $as_echo "$CDRECORD" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744 # Extract the first word of "pidof", so it can be a program name with args.
5745 set dummy pidof; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if test "${ac_cv_path_PIDOF+set}" = set; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   case $PIDOF in
5752   [\\/]* | ?:[\\/]*)
5753   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5754   ;;
5755   *)
5756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761     for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768   done
5769 IFS=$as_save_IFS
5770
5771   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5772   ;;
5773 esac
5774 fi
5775 PIDOF=$ac_cv_path_PIDOF
5776 if test -n "$PIDOF"; then
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5778 $as_echo "$PIDOF" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785 for ac_prog in gawk mawk nawk awk
5786 do
5787   # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_prog_AWK+set}" = set; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   if test -n "$AWK"; then
5795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802     for ac_exec_ext in '' $ac_executable_extensions; do
5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804     ac_cv_prog_AWK="$ac_prog"
5805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809   done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 AWK=$ac_cv_prog_AWK
5815 if test -n "$AWK"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5817 $as_echo "$AWK" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824   test -n "$AWK" && break
5825 done
5826
5827 # Some AWK programs fail, so test it and warn the user
5828 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5829       { if ((prog == $2) || (("(" prog ")") == $2) ||
5830       (("" prog "") == $2) ||
5831       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5832 else
5833   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5834    The regex engine of $AWK is too broken to be used you
5835    might want to install GNU AWK.
5836    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5837 fi
5838 THE_AWK=$AWK
5839 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5840 set dummy $THE_AWK; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_path_AWK+set}" = set; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   case $AWK in
5847   [\\/]* | ?:[\\/]*)
5848   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5849   ;;
5850   *)
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865
5866   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5867   ;;
5868 esac
5869 fi
5870 AWK=$ac_cv_path_AWK
5871 if test -n "$AWK"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5873 $as_echo "$AWK" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880
5881
5882 test -n "$ARFLAG" || ARFLAGS="cr"
5883
5884
5885 MAKE_SHELL=/bin/sh
5886
5887
5888
5889
5890
5891
5892
5893 use_libtool=yes
5894 # Check whether --enable-libtool was given.
5895 if test "${enable_libtool+set}" = set; then :
5896   enableval=$enable_libtool;
5897        if test x$enableval = xno; then
5898           use_libtool=no
5899        fi
5900
5901
5902 fi
5903
5904 case `pwd` in
5905   *\ * | *\     *)
5906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5908 esac
5909
5910
5911
5912 macro_version='2.4'
5913 macro_revision='1.3293'
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 ltmain="$ac_aux_dir/ltmain.sh"
5928
5929 # Make sure we can run config.sub.
5930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5931   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5934 $as_echo_n "checking build system type... " >&6; }
5935 if test "${ac_cv_build+set}" = set; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   ac_build_alias=$build_alias
5939 test "x$ac_build_alias" = x &&
5940   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5941 test "x$ac_build_alias" = x &&
5942   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5944   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5948 $as_echo "$ac_cv_build" >&6; }
5949 case $ac_cv_build in
5950 *-*-*) ;;
5951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5952 esac
5953 build=$ac_cv_build
5954 ac_save_IFS=$IFS; IFS='-'
5955 set x $ac_cv_build
5956 shift
5957 build_cpu=$1
5958 build_vendor=$2
5959 shift; shift
5960 # Remember, the first character of IFS is used to create $*,
5961 # except with old shells:
5962 build_os=$*
5963 IFS=$ac_save_IFS
5964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5965
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5968 $as_echo_n "checking host system type... " >&6; }
5969 if test "${ac_cv_host+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test "x$host_alias" = x; then
5973   ac_cv_host=$ac_cv_build
5974 else
5975   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5976     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5977 fi
5978
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5981 $as_echo "$ac_cv_host" >&6; }
5982 case $ac_cv_host in
5983 *-*-*) ;;
5984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5985 esac
5986 host=$ac_cv_host
5987 ac_save_IFS=$IFS; IFS='-'
5988 set x $ac_cv_host
5989 shift
5990 host_cpu=$1
5991 host_vendor=$2
5992 shift; shift
5993 # Remember, the first character of IFS is used to create $*,
5994 # except with old shells:
5995 host_os=$*
5996 IFS=$ac_save_IFS
5997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5998
5999
6000 # Backslashify metacharacters that are still active within
6001 # double-quoted strings.
6002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6003
6004 # Same as above, but do not quote variable references.
6005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6006
6007 # Sed substitution to delay expansion of an escaped shell variable in a
6008 # double_quote_subst'ed string.
6009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6010
6011 # Sed substitution to delay expansion of an escaped single quote.
6012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6013
6014 # Sed substitution to avoid accidental globbing in evaled expressions
6015 no_glob_subst='s/\*/\\\*/g'
6016
6017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6022 $as_echo_n "checking how to print strings... " >&6; }
6023 # Test print first, because it will be a builtin if present.
6024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6025    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6026   ECHO='print -r --'
6027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6028   ECHO='printf %s\n'
6029 else
6030   # Use this function as a fallback that always works.
6031   func_fallback_echo ()
6032   {
6033     eval 'cat <<_LTECHO_EOF
6034 $1
6035 _LTECHO_EOF'
6036   }
6037   ECHO='func_fallback_echo'
6038 fi
6039
6040 # func_echo_all arg...
6041 # Invoke $ECHO with all args, space-separated.
6042 func_echo_all ()
6043 {
6044     $ECHO ""
6045 }
6046
6047 case "$ECHO" in
6048   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6049 $as_echo "printf" >&6; } ;;
6050   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6051 $as_echo "print -r" >&6; } ;;
6052   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6053 $as_echo "cat" >&6; } ;;
6054 esac
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6071 if test "${ac_cv_path_SED+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6075      for ac_i in 1 2 3 4 5 6 7; do
6076        ac_script="$ac_script$as_nl$ac_script"
6077      done
6078      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6079      { ac_script=; unset ac_script;}
6080      if test -z "$SED"; then
6081   ac_path_SED_found=false
6082   # Loop through the user's path and test for each of PROGNAME-LIST
6083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088     for ac_prog in sed gsed; do
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6091       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6092 # Check for GNU ac_path_SED and select it if it is found.
6093   # Check for GNU $ac_path_SED
6094 case `"$ac_path_SED" --version 2>&1` in
6095 *GNU*)
6096   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6097 *)
6098   ac_count=0
6099   $as_echo_n 0123456789 >"conftest.in"
6100   while :
6101   do
6102     cat "conftest.in" "conftest.in" >"conftest.tmp"
6103     mv "conftest.tmp" "conftest.in"
6104     cp "conftest.in" "conftest.nl"
6105     $as_echo '' >> "conftest.nl"
6106     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108     as_fn_arith $ac_count + 1 && ac_count=$as_val
6109     if test $ac_count -gt ${ac_path_SED_max-0}; then
6110       # Best one so far, save it but keep looking for a better one
6111       ac_cv_path_SED="$ac_path_SED"
6112       ac_path_SED_max=$ac_count
6113     fi
6114     # 10*(2^10) chars as input seems more than enough
6115     test $ac_count -gt 10 && break
6116   done
6117   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6118 esac
6119
6120       $ac_path_SED_found && break 3
6121     done
6122   done
6123   done
6124 IFS=$as_save_IFS
6125   if test -z "$ac_cv_path_SED"; then
6126     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6127   fi
6128 else
6129   ac_cv_path_SED=$SED
6130 fi
6131
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6134 $as_echo "$ac_cv_path_SED" >&6; }
6135  SED="$ac_cv_path_SED"
6136   rm -f conftest.sed
6137
6138 test -z "$SED" && SED=sed
6139 Xsed="$SED -e 1s/^X//"
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6152 $as_echo_n "checking for fgrep... " >&6; }
6153 if test "${ac_cv_path_FGREP+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6157    then ac_cv_path_FGREP="$GREP -F"
6158    else
6159      if test -z "$FGREP"; then
6160   ac_path_FGREP_found=false
6161   # Loop through the user's path and test for each of PROGNAME-LIST
6162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_prog in fgrep; do
6168     for ac_exec_ext in '' $ac_executable_extensions; do
6169       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6170       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6171 # Check for GNU ac_path_FGREP and select it if it is found.
6172   # Check for GNU $ac_path_FGREP
6173 case `"$ac_path_FGREP" --version 2>&1` in
6174 *GNU*)
6175   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6176 *)
6177   ac_count=0
6178   $as_echo_n 0123456789 >"conftest.in"
6179   while :
6180   do
6181     cat "conftest.in" "conftest.in" >"conftest.tmp"
6182     mv "conftest.tmp" "conftest.in"
6183     cp "conftest.in" "conftest.nl"
6184     $as_echo 'FGREP' >> "conftest.nl"
6185     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6187     as_fn_arith $ac_count + 1 && ac_count=$as_val
6188     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6189       # Best one so far, save it but keep looking for a better one
6190       ac_cv_path_FGREP="$ac_path_FGREP"
6191       ac_path_FGREP_max=$ac_count
6192     fi
6193     # 10*(2^10) chars as input seems more than enough
6194     test $ac_count -gt 10 && break
6195   done
6196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6197 esac
6198
6199       $ac_path_FGREP_found && break 3
6200     done
6201   done
6202   done
6203 IFS=$as_save_IFS
6204   if test -z "$ac_cv_path_FGREP"; then
6205     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6206   fi
6207 else
6208   ac_cv_path_FGREP=$FGREP
6209 fi
6210
6211    fi
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6214 $as_echo "$ac_cv_path_FGREP" >&6; }
6215  FGREP="$ac_cv_path_FGREP"
6216
6217
6218 test -z "$GREP" && GREP=grep
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 # Check whether --with-gnu-ld was given.
6239 if test "${with_gnu_ld+set}" = set; then :
6240   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6241 else
6242   with_gnu_ld=no
6243 fi
6244
6245 ac_prog=ld
6246 if test "$GCC" = yes; then
6247   # Check if gcc -print-prog-name=ld gives a path.
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6249 $as_echo_n "checking for ld used by $CC... " >&6; }
6250   case $host in
6251   *-*-mingw*)
6252     # gcc leaves a trailing carriage return which upsets mingw
6253     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6254   *)
6255     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6256   esac
6257   case $ac_prog in
6258     # Accept absolute paths.
6259     [\\/]* | ?:[\\/]*)
6260       re_direlt='/[^/][^/]*/\.\./'
6261       # Canonicalize the pathname of ld
6262       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6263       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6264         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6265       done
6266       test -z "$LD" && LD="$ac_prog"
6267       ;;
6268   "")
6269     # If it fails, then pretend we aren't using GCC.
6270     ac_prog=ld
6271     ;;
6272   *)
6273     # If it is relative, then search for the first ld in PATH.
6274     with_gnu_ld=unknown
6275     ;;
6276   esac
6277 elif test "$with_gnu_ld" = yes; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6279 $as_echo_n "checking for GNU ld... " >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6282 $as_echo_n "checking for non-GNU ld... " >&6; }
6283 fi
6284 if test "${lt_cv_path_LD+set}" = set; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -z "$LD"; then
6288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289   for ac_dir in $PATH; do
6290     IFS="$lt_save_ifs"
6291     test -z "$ac_dir" && ac_dir=.
6292     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6293       lt_cv_path_LD="$ac_dir/$ac_prog"
6294       # Check to see if the program is GNU ld.  I'd rather use --version,
6295       # but apparently some variants of GNU ld only accept -v.
6296       # Break only if it was the GNU/non-GNU ld that we prefer.
6297       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6298       *GNU* | *'with BFD'*)
6299         test "$with_gnu_ld" != no && break
6300         ;;
6301       *)
6302         test "$with_gnu_ld" != yes && break
6303         ;;
6304       esac
6305     fi
6306   done
6307   IFS="$lt_save_ifs"
6308 else
6309   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6310 fi
6311 fi
6312
6313 LD="$lt_cv_path_LD"
6314 if test -n "$LD"; then
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6316 $as_echo "$LD" >&6; }
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6328 case `$LD -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330   lt_cv_prog_gnu_ld=yes
6331   ;;
6332 *)
6333   lt_cv_prog_gnu_ld=no
6334   ;;
6335 esac
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6339 with_gnu_ld=$lt_cv_prog_gnu_ld
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6351 if test "${lt_cv_path_NM+set}" = set; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$NM"; then
6355   # Let the user override the test.
6356   lt_cv_path_NM="$NM"
6357 else
6358   lt_nm_to_check="${ac_tool_prefix}nm"
6359   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6360     lt_nm_to_check="$lt_nm_to_check nm"
6361   fi
6362   for lt_tmp_nm in $lt_nm_to_check; do
6363     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6364     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6365       IFS="$lt_save_ifs"
6366       test -z "$ac_dir" && ac_dir=.
6367       tmp_nm="$ac_dir/$lt_tmp_nm"
6368       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6369         # Check to see if the nm accepts a BSD-compat flag.
6370         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6371         #   nm: unknown option "B" ignored
6372         # Tru64's nm complains that /dev/null is an invalid object file
6373         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6374         */dev/null* | *'Invalid file or object type'*)
6375           lt_cv_path_NM="$tmp_nm -B"
6376           break
6377           ;;
6378         *)
6379           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6380           */dev/null*)
6381             lt_cv_path_NM="$tmp_nm -p"
6382             break
6383             ;;
6384           *)
6385             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6386             continue # so that we can try to find one that supports BSD flags
6387             ;;
6388           esac
6389           ;;
6390         esac
6391       fi
6392     done
6393     IFS="$lt_save_ifs"
6394   done
6395   : ${lt_cv_path_NM=no}
6396 fi
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6399 $as_echo "$lt_cv_path_NM" >&6; }
6400 if test "$lt_cv_path_NM" != "no"; then
6401   NM="$lt_cv_path_NM"
6402 else
6403   # Didn't find any BSD compatible name lister, look for dumpbin.
6404   if test -n "$DUMPBIN"; then :
6405     # Let the user override the test.
6406   else
6407     if test -n "$ac_tool_prefix"; then
6408   for ac_prog in dumpbin "link -dump"
6409   do
6410     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$DUMPBIN"; then
6418   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 DUMPBIN=$ac_cv_prog_DUMPBIN
6438 if test -n "$DUMPBIN"; then
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6440 $as_echo "$DUMPBIN" >&6; }
6441 else
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446
6447     test -n "$DUMPBIN" && break
6448   done
6449 fi
6450 if test -z "$DUMPBIN"; then
6451   ac_ct_DUMPBIN=$DUMPBIN
6452   for ac_prog in dumpbin "link -dump"
6453 do
6454   # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$ac_ct_DUMPBIN"; then
6462   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6482 if test -n "$ac_ct_DUMPBIN"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6484 $as_echo "$ac_ct_DUMPBIN" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491   test -n "$ac_ct_DUMPBIN" && break
6492 done
6493
6494   if test "x$ac_ct_DUMPBIN" = x; then
6495     DUMPBIN=":"
6496   else
6497     case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503     DUMPBIN=$ac_ct_DUMPBIN
6504   fi
6505 fi
6506
6507     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6508     *COFF*)
6509       DUMPBIN="$DUMPBIN -symbols"
6510       ;;
6511     *)
6512       DUMPBIN=:
6513       ;;
6514     esac
6515   fi
6516
6517   if test "$DUMPBIN" != ":"; then
6518     NM="$DUMPBIN"
6519   fi
6520 fi
6521 test -z "$NM" && NM=nm
6522
6523
6524
6525
6526
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6529 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6530 if test "${lt_cv_nm_interface+set}" = set; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   lt_cv_nm_interface="BSD nm"
6534   echo "int some_variable = 0;" > conftest.$ac_ext
6535   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6536   (eval "$ac_compile" 2>conftest.err)
6537   cat conftest.err >&5
6538   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6539   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6540   cat conftest.err >&5
6541   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6542   cat conftest.out >&5
6543   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6544     lt_cv_nm_interface="MS dumpbin"
6545   fi
6546   rm -f conftest*
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6549 $as_echo "$lt_cv_nm_interface" >&6; }
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6552 $as_echo_n "checking whether ln -s works... " >&6; }
6553 LN_S=$as_ln_s
6554 if test "$LN_S" = "ln -s"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6559 $as_echo "no, using $LN_S" >&6; }
6560 fi
6561
6562 # find the maximum length of command line arguments
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6564 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568     i=0
6569   teststring="ABCD"
6570
6571   case $build_os in
6572   msdosdjgpp*)
6573     # On DJGPP, this test can blow up pretty badly due to problems in libc
6574     # (any single argument exceeding 2000 bytes causes a buffer overrun
6575     # during glob expansion).  Even if it were fixed, the result of this
6576     # check would be larger than it should be.
6577     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6578     ;;
6579
6580   gnu*)
6581     # Under GNU Hurd, this test is not required because there is
6582     # no limit to the length of command line arguments.
6583     # Libtool will interpret -1 as no limit whatsoever
6584     lt_cv_sys_max_cmd_len=-1;
6585     ;;
6586
6587   cygwin* | mingw* | cegcc*)
6588     # On Win9x/ME, this test blows up -- it succeeds, but takes
6589     # about 5 minutes as the teststring grows exponentially.
6590     # Worse, since 9x/ME are not pre-emptively multitasking,
6591     # you end up with a "frozen" computer, even though with patience
6592     # the test eventually succeeds (with a max line length of 256k).
6593     # Instead, let's just punt: use the minimum linelength reported by
6594     # all of the supported platforms: 8192 (on NT/2K/XP).
6595     lt_cv_sys_max_cmd_len=8192;
6596     ;;
6597
6598   mint*)
6599     # On MiNT this can take a long time and run out of memory.
6600     lt_cv_sys_max_cmd_len=8192;
6601     ;;
6602
6603   amigaos*)
6604     # On AmigaOS with pdksh, this test takes hours, literally.
6605     # So we just punt and use a minimum line length of 8192.
6606     lt_cv_sys_max_cmd_len=8192;
6607     ;;
6608
6609   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6610     # This has been around since 386BSD, at least.  Likely further.
6611     if test -x /sbin/sysctl; then
6612       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6613     elif test -x /usr/sbin/sysctl; then
6614       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6615     else
6616       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6617     fi
6618     # And add a safety zone
6619     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6621     ;;
6622
6623   interix*)
6624     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6625     lt_cv_sys_max_cmd_len=196608
6626     ;;
6627
6628   osf*)
6629     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6630     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6631     # nice to cause kernel panics so lets avoid the loop below.
6632     # First set a reasonable default.
6633     lt_cv_sys_max_cmd_len=16384
6634     #
6635     if test -x /sbin/sysconfig; then
6636       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6637         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6638       esac
6639     fi
6640     ;;
6641   sco3.2v5*)
6642     lt_cv_sys_max_cmd_len=102400
6643     ;;
6644   sysv5* | sco5v6* | sysv4.2uw2*)
6645     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6646     if test -n "$kargmax"; then
6647       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6648     else
6649       lt_cv_sys_max_cmd_len=32768
6650     fi
6651     ;;
6652   *)
6653     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6654     if test -n "$lt_cv_sys_max_cmd_len"; then
6655       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6656       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6657     else
6658       # Make teststring a little bigger before we do anything with it.
6659       # a 1K string should be a reasonable start.
6660       for i in 1 2 3 4 5 6 7 8 ; do
6661         teststring=$teststring$teststring
6662       done
6663       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6664       # If test is not a shell built-in, we'll probably end up computing a
6665       # maximum length that is only half of the actual maximum length, but
6666       # we can't tell.
6667       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6668                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6669               test $i != 17 # 1/2 MB should be enough
6670       do
6671         i=`expr $i + 1`
6672         teststring=$teststring$teststring
6673       done
6674       # Only check the string length outside the loop.
6675       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6676       teststring=
6677       # Add a significant safety factor because C++ compilers can tack on
6678       # massive amounts of additional arguments before passing them to the
6679       # linker.  It appears as though 1/2 is a usable value.
6680       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6681     fi
6682     ;;
6683   esac
6684
6685 fi
6686
6687 if test -n $lt_cv_sys_max_cmd_len ; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6692 $as_echo "none" >&6; }
6693 fi
6694 max_cmd_len=$lt_cv_sys_max_cmd_len
6695
6696
6697
6698
6699
6700
6701 : ${CP="cp -f"}
6702 : ${MV="mv -f"}
6703 : ${RM="rm -f"}
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6707 # Try some XSI features
6708 xsi_shell=no
6709 ( _lt_dummy="a/b/c"
6710   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6711       = c,a/b,b/c, \
6712     && eval 'test $(( 1 + 1 )) -eq 2 \
6713     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6714   && xsi_shell=yes
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6716 $as_echo "$xsi_shell" >&6; }
6717
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6721 lt_shell_append=no
6722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6723     >/dev/null 2>&1 \
6724   && lt_shell_append=yes
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6726 $as_echo "$lt_shell_append" >&6; }
6727
6728
6729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6730   lt_unset=unset
6731 else
6732   lt_unset=false
6733 fi
6734
6735
6736
6737
6738
6739 # test EBCDIC or ASCII
6740 case `echo X|tr X '\101'` in
6741  A) # ASCII based system
6742     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6743   lt_SP2NL='tr \040 \012'
6744   lt_NL2SP='tr \015\012 \040\040'
6745   ;;
6746  *) # EBCDIC based system
6747   lt_SP2NL='tr \100 \n'
6748   lt_NL2SP='tr \r\n \100\100'
6749   ;;
6750 esac
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6761 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6762 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   case $host in
6766   *-*-mingw* )
6767     case $build in
6768       *-*-mingw* ) # actually msys
6769         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6770         ;;
6771       *-*-cygwin* )
6772         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6773         ;;
6774       * ) # otherwise, assume *nix
6775         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6776         ;;
6777     esac
6778     ;;
6779   *-*-cygwin* )
6780     case $build in
6781       *-*-mingw* ) # actually msys
6782         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6783         ;;
6784       *-*-cygwin* )
6785         lt_cv_to_host_file_cmd=func_convert_file_noop
6786         ;;
6787       * ) # otherwise, assume *nix
6788         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6789         ;;
6790     esac
6791     ;;
6792   * ) # unhandled hosts (and "normal" native builds)
6793     lt_cv_to_host_file_cmd=func_convert_file_noop
6794     ;;
6795 esac
6796
6797 fi
6798
6799 to_host_file_cmd=$lt_cv_to_host_file_cmd
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6801 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6808 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6809 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   #assume ordinary cross tools, or native build.
6813 lt_cv_to_tool_file_cmd=func_convert_file_noop
6814 case $host in
6815   *-*-mingw* )
6816     case $build in
6817       *-*-mingw* ) # actually msys
6818         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6819         ;;
6820     esac
6821     ;;
6822 esac
6823
6824 fi
6825
6826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6828 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6829
6830
6831
6832
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6836 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   lt_cv_ld_reload_flag='-r'
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6843 reload_flag=$lt_cv_ld_reload_flag
6844 case $reload_flag in
6845 "" | " "*) ;;
6846 *) reload_flag=" $reload_flag" ;;
6847 esac
6848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6849 case $host_os in
6850   cygwin* | mingw* | pw32* | cegcc*)
6851     if test "$GCC" != yes; then
6852       reload_cmds=false
6853     fi
6854     ;;
6855   darwin*)
6856     if test "$GCC" = yes; then
6857       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6858     else
6859       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6860     fi
6861     ;;
6862 esac
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$OBJDUMP"; then
6881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 OBJDUMP=$ac_cv_prog_OBJDUMP
6901 if test -n "$OBJDUMP"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6903 $as_echo "$OBJDUMP" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_OBJDUMP"; then
6912   ac_ct_OBJDUMP=$OBJDUMP
6913   # Extract the first word of "objdump", so it can be a program name with args.
6914 set dummy objdump; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$ac_ct_OBJDUMP"; then
6921   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6941 if test -n "$ac_ct_OBJDUMP"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6943 $as_echo "$ac_ct_OBJDUMP" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_OBJDUMP" = x; then
6950     OBJDUMP="false"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     OBJDUMP=$ac_ct_OBJDUMP
6959   fi
6960 else
6961   OBJDUMP="$ac_cv_prog_OBJDUMP"
6962 fi
6963
6964 test -z "$OBJDUMP" && OBJDUMP=objdump
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6976 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   lt_cv_file_magic_cmd='$MAGIC_CMD'
6980 lt_cv_file_magic_test_file=
6981 lt_cv_deplibs_check_method='unknown'
6982 # Need to set the preceding variable on all platforms that support
6983 # interlibrary dependencies.
6984 # 'none' -- dependencies not supported.
6985 # `unknown' -- same as none, but documents that we really don't know.
6986 # 'pass_all' -- all dependencies passed with no checks.
6987 # 'test_compile' -- check by making test program.
6988 # 'file_magic [[regex]]' -- check by looking for files in library path
6989 # which responds to the $file_magic_cmd with a given extended regex.
6990 # If you have `file' or equivalent on your system and you're not sure
6991 # whether `pass_all' will *always* work, you probably want this one.
6992
6993 case $host_os in
6994 aix[4-9]*)
6995   lt_cv_deplibs_check_method=pass_all
6996   ;;
6997
6998 beos*)
6999   lt_cv_deplibs_check_method=pass_all
7000   ;;
7001
7002 bsdi[45]*)
7003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7004   lt_cv_file_magic_cmd='/usr/bin/file -L'
7005   lt_cv_file_magic_test_file=/shlib/libc.so
7006   ;;
7007
7008 cygwin*)
7009   # func_win32_libid is a shell function defined in ltmain.sh
7010   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7011   lt_cv_file_magic_cmd='func_win32_libid'
7012   ;;
7013
7014 mingw* | pw32*)
7015   # Base MSYS/MinGW do not provide the 'file' command needed by
7016   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7017   # unless we find 'file', for example because we are cross-compiling.
7018   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7019   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7020     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7021     lt_cv_file_magic_cmd='func_win32_libid'
7022   else
7023     # Keep this pattern in sync with the one in func_win32_libid.
7024     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7025     lt_cv_file_magic_cmd='$OBJDUMP -f'
7026   fi
7027   ;;
7028
7029 cegcc*)
7030   # use the weaker test based on 'objdump'. See mingw*.
7031   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7032   lt_cv_file_magic_cmd='$OBJDUMP -f'
7033   ;;
7034
7035 darwin* | rhapsody*)
7036   lt_cv_deplibs_check_method=pass_all
7037   ;;
7038
7039 freebsd* | dragonfly*)
7040   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7041     case $host_cpu in
7042     i*86 )
7043       # Not sure whether the presence of OpenBSD here was a mistake.
7044       # Let's accept both of them until this is cleared up.
7045       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7046       lt_cv_file_magic_cmd=/usr/bin/file
7047       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7048       ;;
7049     esac
7050   else
7051     lt_cv_deplibs_check_method=pass_all
7052   fi
7053   ;;
7054
7055 gnu*)
7056   lt_cv_deplibs_check_method=pass_all
7057   ;;
7058
7059 haiku*)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062
7063 hpux10.20* | hpux11*)
7064   lt_cv_file_magic_cmd=/usr/bin/file
7065   case $host_cpu in
7066   ia64*)
7067     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7068     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7069     ;;
7070   hppa*64*)
7071     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]'
7072     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7073     ;;
7074   *)
7075     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7076     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7077     ;;
7078   esac
7079   ;;
7080
7081 interix[3-9]*)
7082   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7083   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7084   ;;
7085
7086 irix5* | irix6* | nonstopux*)
7087   case $LD in
7088   *-32|*"-32 ") libmagic=32-bit;;
7089   *-n32|*"-n32 ") libmagic=N32;;
7090   *-64|*"-64 ") libmagic=64-bit;;
7091   *) libmagic=never-match;;
7092   esac
7093   lt_cv_deplibs_check_method=pass_all
7094   ;;
7095
7096 # This must be Linux ELF.
7097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7098   lt_cv_deplibs_check_method=pass_all
7099   ;;
7100
7101 netbsd*)
7102   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7103     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7104   else
7105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7106   fi
7107   ;;
7108
7109 newos6*)
7110   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7111   lt_cv_file_magic_cmd=/usr/bin/file
7112   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7113   ;;
7114
7115 *nto* | *qnx*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118
7119 openbsd*)
7120   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7121     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7122   else
7123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7124   fi
7125   ;;
7126
7127 osf3* | osf4* | osf5*)
7128   lt_cv_deplibs_check_method=pass_all
7129   ;;
7130
7131 rdos*)
7132   lt_cv_deplibs_check_method=pass_all
7133   ;;
7134
7135 solaris*)
7136   lt_cv_deplibs_check_method=pass_all
7137   ;;
7138
7139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7140   lt_cv_deplibs_check_method=pass_all
7141   ;;
7142
7143 sysv4 | sysv4.3*)
7144   case $host_vendor in
7145   motorola)
7146     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]'
7147     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7148     ;;
7149   ncr)
7150     lt_cv_deplibs_check_method=pass_all
7151     ;;
7152   sequent)
7153     lt_cv_file_magic_cmd='/bin/file'
7154     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7155     ;;
7156   sni)
7157     lt_cv_file_magic_cmd='/bin/file'
7158     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7159     lt_cv_file_magic_test_file=/lib/libc.so
7160     ;;
7161   siemens)
7162     lt_cv_deplibs_check_method=pass_all
7163     ;;
7164   pc)
7165     lt_cv_deplibs_check_method=pass_all
7166     ;;
7167   esac
7168   ;;
7169
7170 tpf*)
7171   lt_cv_deplibs_check_method=pass_all
7172   ;;
7173 esac
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7178
7179 file_magic_glob=
7180 want_nocaseglob=no
7181 if test "$build" = "$host"; then
7182   case $host_os in
7183   mingw* | pw32*)
7184     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7185       want_nocaseglob=yes
7186     else
7187       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7188     fi
7189     ;;
7190   esac
7191 fi
7192
7193 file_magic_cmd=$lt_cv_file_magic_cmd
7194 deplibs_check_method=$lt_cv_deplibs_check_method
7195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 if test -n "$ac_tool_prefix"; then
7219   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$DLLTOOL"; then
7227   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 DLLTOOL=$ac_cv_prog_DLLTOOL
7247 if test -n "$DLLTOOL"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7249 $as_echo "$DLLTOOL" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_DLLTOOL"; then
7258   ac_ct_DLLTOOL=$DLLTOOL
7259   # Extract the first word of "dlltool", so it can be a program name with args.
7260 set dummy dlltool; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$ac_ct_DLLTOOL"; then
7267   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7287 if test -n "$ac_ct_DLLTOOL"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7289 $as_echo "$ac_ct_DLLTOOL" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295   if test "x$ac_ct_DLLTOOL" = x; then
7296     DLLTOOL="false"
7297   else
7298     case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     DLLTOOL=$ac_ct_DLLTOOL
7305   fi
7306 else
7307   DLLTOOL="$ac_cv_prog_DLLTOOL"
7308 fi
7309
7310 test -z "$DLLTOOL" && DLLTOOL=dlltool
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7322 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7323 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   lt_cv_sharedlib_from_linklib_cmd='unknown'
7327
7328 case $host_os in
7329 cygwin* | mingw* | pw32* | cegcc*)
7330   # two different shell functions defined in ltmain.sh
7331   # decide which to use based on capabilities of $DLLTOOL
7332   case `$DLLTOOL --help 2>&1` in
7333   *--identify-strict*)
7334     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7335     ;;
7336   *)
7337     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7338     ;;
7339   esac
7340   ;;
7341 *)
7342   # fallback: assume linklib IS sharedlib
7343   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7344   ;;
7345 esac
7346
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7349 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7352
7353
7354
7355
7356
7357
7358
7359 if test -n "$ac_tool_prefix"; then
7360   for ac_prog in ar
7361   do
7362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_AR+set}" = set; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$AR"; then
7370   ac_cv_prog_AR="$AR" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377     for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384   done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 AR=$ac_cv_prog_AR
7390 if test -n "$AR"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7392 $as_echo "$AR" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398
7399     test -n "$AR" && break
7400   done
7401 fi
7402 if test -z "$AR"; then
7403   ac_ct_AR=$AR
7404   for ac_prog in ar
7405 do
7406   # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$ac_ct_AR"; then
7414   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_prog_ac_ct_AR="$ac_prog"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7434 if test -n "$ac_ct_AR"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7436 $as_echo "$ac_ct_AR" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443   test -n "$ac_ct_AR" && break
7444 done
7445
7446   if test "x$ac_ct_AR" = x; then
7447     AR="false"
7448   else
7449     case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455     AR=$ac_ct_AR
7456   fi
7457 fi
7458
7459 : ${AR=ar}
7460 : ${AR_FLAGS=cru}
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7473 $as_echo_n "checking for archiver @FILE support... " >&6; }
7474 if test "${lt_cv_ar_at_file+set}" = set; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   lt_cv_ar_at_file=no
7478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480
7481 int
7482 main ()
7483 {
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"; then :
7490   echo conftest.$ac_objext > conftest.lst
7491       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7492       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7493   (eval $lt_ar_try) 2>&5
7494   ac_status=$?
7495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496   test $ac_status = 0; }
7497       if test "$ac_status" -eq 0; then
7498         # Ensure the archiver fails upon bogus file names.
7499         rm -f conftest.$ac_objext libconftest.a
7500         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7501   (eval $lt_ar_try) 2>&5
7502   ac_status=$?
7503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504   test $ac_status = 0; }
7505         if test "$ac_status" -ne 0; then
7506           lt_cv_ar_at_file=@
7507         fi
7508       fi
7509       rm -f conftest.* libconftest.a
7510
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7516 $as_echo "$lt_cv_ar_at_file" >&6; }
7517
7518 if test "x$lt_cv_ar_at_file" = xno; then
7519   archiver_list_spec=
7520 else
7521   archiver_list_spec=$lt_cv_ar_at_file
7522 fi
7523
7524
7525
7526
7527
7528
7529
7530 if test -n "$ac_tool_prefix"; then
7531   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}strip; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_STRIP+set}" = set; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   if test -n "$STRIP"; then
7539   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 STRIP=$ac_cv_prog_STRIP
7559 if test -n "$STRIP"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7561 $as_echo "$STRIP" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_STRIP"; then
7570   ac_ct_STRIP=$STRIP
7571   # Extract the first word of "strip", so it can be a program name with args.
7572 set dummy strip; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test -n "$ac_ct_STRIP"; then
7579   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586     for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_prog_ac_ct_STRIP="strip"
7589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593   done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7599 if test -n "$ac_ct_STRIP"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7601 $as_echo "$ac_ct_STRIP" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607   if test "x$ac_ct_STRIP" = x; then
7608     STRIP=":"
7609   else
7610     case $cross_compiling:$ac_tool_warned in
7611 yes:)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7615 esac
7616     STRIP=$ac_ct_STRIP
7617   fi
7618 else
7619   STRIP="$ac_cv_prog_STRIP"
7620 fi
7621
7622 test -z "$STRIP" && STRIP=:
7623
7624
7625
7626
7627
7628
7629 if test -n "$ac_tool_prefix"; then
7630   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$RANLIB"; then
7638   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 RANLIB=$ac_cv_prog_RANLIB
7658 if test -n "$RANLIB"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7660 $as_echo "$RANLIB" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667 fi
7668 if test -z "$ac_cv_prog_RANLIB"; then
7669   ac_ct_RANLIB=$RANLIB
7670   # Extract the first word of "ranlib", so it can be a program name with args.
7671 set dummy ranlib; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$ac_ct_RANLIB"; then
7678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_prog_ac_ct_RANLIB="ranlib"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7698 if test -n "$ac_ct_RANLIB"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7700 $as_echo "$ac_ct_RANLIB" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706   if test "x$ac_ct_RANLIB" = x; then
7707     RANLIB=":"
7708   else
7709     case $cross_compiling:$ac_tool_warned in
7710 yes:)
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7714 esac
7715     RANLIB=$ac_ct_RANLIB
7716   fi
7717 else
7718   RANLIB="$ac_cv_prog_RANLIB"
7719 fi
7720
7721 test -z "$RANLIB" && RANLIB=:
7722
7723
7724
7725
7726
7727
7728 # Determine commands to create old-style static archives.
7729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7730 old_postinstall_cmds='chmod 644 $oldlib'
7731 old_postuninstall_cmds=
7732
7733 if test -n "$RANLIB"; then
7734   case $host_os in
7735   openbsd*)
7736     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7737     ;;
7738   *)
7739     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7740     ;;
7741   esac
7742   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7743 fi
7744
7745 case $host_os in
7746   darwin*)
7747     lock_old_archive_extraction=yes ;;
7748   *)
7749     lock_old_archive_extraction=no ;;
7750 esac
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 # If no C compiler was specified, use CC.
7791 LTCC=${LTCC-"$CC"}
7792
7793 # If no C compiler flags were specified, use CFLAGS.
7794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7795
7796 # Allow CC to be a program name with arguments.
7797 compiler=$CC
7798
7799
7800 # Check for command to grab the raw symbol name followed by C symbol from nm.
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7803 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806
7807 # These are sane defaults that work on at least a few old systems.
7808 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7809
7810 # Character class describing NM global symbol codes.
7811 symcode='[BCDEGRST]'
7812
7813 # Regexp to match symbols that can be accessed directly from C.
7814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7815
7816 # Define system-specific variables.
7817 case $host_os in
7818 aix*)
7819   symcode='[BCDT]'
7820   ;;
7821 cygwin* | mingw* | pw32* | cegcc*)
7822   symcode='[ABCDGISTW]'
7823   ;;
7824 hpux*)
7825   if test "$host_cpu" = ia64; then
7826     symcode='[ABCDEGRST]'
7827   fi
7828   ;;
7829 irix* | nonstopux*)
7830   symcode='[BCDEGRST]'
7831   ;;
7832 osf*)
7833   symcode='[BCDEGQRST]'
7834   ;;
7835 solaris*)
7836   symcode='[BDRT]'
7837   ;;
7838 sco3.2v5*)
7839   symcode='[DT]'
7840   ;;
7841 sysv4.2uw2*)
7842   symcode='[DT]'
7843   ;;
7844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7845   symcode='[ABDT]'
7846   ;;
7847 sysv4)
7848   symcode='[DFNSTU]'
7849   ;;
7850 esac
7851
7852 # If we're using GNU nm, then use its standard symbol codes.
7853 case `$NM -V 2>&1` in
7854 *GNU* | *'with BFD'*)
7855   symcode='[ABCDGIRSTW]' ;;
7856 esac
7857
7858 # Transform an extracted symbol line into a proper C declaration.
7859 # Some systems (esp. on ia64) link data and code symbols differently,
7860 # so use this general approach.
7861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7862
7863 # Transform an extracted symbol line into symbol name and symbol address
7864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7865 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'"
7866
7867 # Handle CRLF in mingw tool chain
7868 opt_cr=
7869 case $build_os in
7870 mingw*)
7871   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7872   ;;
7873 esac
7874
7875 # Try without a prefix underscore, then with it.
7876 for ac_symprfx in "" "_"; do
7877
7878   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7879   symxfrm="\\1 $ac_symprfx\\2 \\2"
7880
7881   # Write the raw and C identifiers.
7882   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7883     # Fake it for dumpbin and say T for any non-static function
7884     # and D for any global variable.
7885     # Also find C++ and __fastcall symbols from MSVC++,
7886     # which start with @ or ?.
7887     lt_cv_sys_global_symbol_pipe="$AWK '"\
7888 "     {last_section=section; section=\$ 3};"\
7889 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7890 "     \$ 0!~/External *\|/{next};"\
7891 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7892 "     {if(hide[section]) next};"\
7893 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7894 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7895 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7896 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7897 "     ' prfx=^$ac_symprfx"
7898   else
7899     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7900   fi
7901   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7902
7903   # Check to see that the pipe works correctly.
7904   pipe_works=no
7905
7906   rm -f conftest*
7907   cat > conftest.$ac_ext <<_LT_EOF
7908 #ifdef __cplusplus
7909 extern "C" {
7910 #endif
7911 char nm_test_var;
7912 void nm_test_func(void);
7913 void nm_test_func(void){}
7914 #ifdef __cplusplus
7915 }
7916 #endif
7917 int main(){nm_test_var='a';nm_test_func();return(0);}
7918 _LT_EOF
7919
7920   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7921   (eval $ac_compile) 2>&5
7922   ac_status=$?
7923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924   test $ac_status = 0; }; then
7925     # Now try to grab the symbols.
7926     nlist=conftest.nm
7927     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7928   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7929   ac_status=$?
7930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7931   test $ac_status = 0; } && test -s "$nlist"; then
7932       # Try sorting and uniquifying the output.
7933       if sort "$nlist" | uniq > "$nlist"T; then
7934         mv -f "$nlist"T "$nlist"
7935       else
7936         rm -f "$nlist"T
7937       fi
7938
7939       # Make sure that we snagged all the symbols we need.
7940       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7941         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7942           cat <<_LT_EOF > conftest.$ac_ext
7943 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7944 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7945 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7946    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7947 # define LT_DLSYM_CONST
7948 #elif defined(__osf__)
7949 /* This system does not cope well with relocations in const data.  */
7950 # define LT_DLSYM_CONST
7951 #else
7952 # define LT_DLSYM_CONST const
7953 #endif
7954
7955 #ifdef __cplusplus
7956 extern "C" {
7957 #endif
7958
7959 _LT_EOF
7960           # Now generate the symbol file.
7961           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7962
7963           cat <<_LT_EOF >> conftest.$ac_ext
7964
7965 /* The mapping between symbol names and symbols.  */
7966 LT_DLSYM_CONST struct {
7967   const char *name;
7968   void       *address;
7969 }
7970 lt__PROGRAM__LTX_preloaded_symbols[] =
7971 {
7972   { "@PROGRAM@", (void *) 0 },
7973 _LT_EOF
7974           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7975           cat <<\_LT_EOF >> conftest.$ac_ext
7976   {0, (void *) 0}
7977 };
7978
7979 /* This works around a problem in FreeBSD linker */
7980 #ifdef FREEBSD_WORKAROUND
7981 static const void *lt_preloaded_setup() {
7982   return lt__PROGRAM__LTX_preloaded_symbols;
7983 }
7984 #endif
7985
7986 #ifdef __cplusplus
7987 }
7988 #endif
7989 _LT_EOF
7990           # Now try linking the two files.
7991           mv conftest.$ac_objext conftstm.$ac_objext
7992           lt_globsym_save_LIBS=$LIBS
7993           lt_globsym_save_CFLAGS=$CFLAGS
7994           LIBS="conftstm.$ac_objext"
7995           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7996           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7997   (eval $ac_link) 2>&5
7998   ac_status=$?
7999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8001             pipe_works=yes
8002           fi
8003           LIBS=$lt_globsym_save_LIBS
8004           CFLAGS=$lt_globsym_save_CFLAGS
8005         else
8006           echo "cannot find nm_test_func in $nlist" >&5
8007         fi
8008       else
8009         echo "cannot find nm_test_var in $nlist" >&5
8010       fi
8011     else
8012       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8013     fi
8014   else
8015     echo "$progname: failed program was:" >&5
8016     cat conftest.$ac_ext >&5
8017   fi
8018   rm -rf conftest* conftst*
8019
8020   # Do not use the global_symbol_pipe unless it works.
8021   if test "$pipe_works" = yes; then
8022     break
8023   else
8024     lt_cv_sys_global_symbol_pipe=
8025   fi
8026 done
8027
8028 fi
8029
8030 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8031   lt_cv_sys_global_symbol_to_cdecl=
8032 fi
8033 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8035 $as_echo "failed" >&6; }
8036 else
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8038 $as_echo "ok" >&6; }
8039 fi
8040
8041 # Response file support.
8042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8043   nm_file_list_spec='@'
8044 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8045   nm_file_list_spec='@'
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8075 $as_echo_n "checking for sysroot... " >&6; }
8076
8077 # Check whether --with-sysroot was given.
8078 if test "${with_sysroot+set}" = set; then :
8079   withval=$with_sysroot;
8080 else
8081   with_sysroot=no
8082 fi
8083
8084
8085 lt_sysroot=
8086 case ${with_sysroot} in #(
8087  yes)
8088    if test "$GCC" = yes; then
8089      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8090    fi
8091    ;; #(
8092  /*)
8093    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8094    ;; #(
8095  no|'')
8096    ;; #(
8097  *)
8098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8099 $as_echo "${with_sysroot}" >&6; }
8100    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8101    ;;
8102 esac
8103
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8105 $as_echo "${lt_sysroot:-no}" >&6; }
8106
8107
8108
8109
8110
8111 # Check whether --enable-libtool-lock was given.
8112 if test "${enable_libtool_lock+set}" = set; then :
8113   enableval=$enable_libtool_lock;
8114 fi
8115
8116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8117
8118 # Some flags need to be propagated to the compiler or linker for good
8119 # libtool support.
8120 case $host in
8121 ia64-*-hpux*)
8122   # Find out which ABI we are using.
8123   echo 'int i;' > conftest.$ac_ext
8124   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8125   (eval $ac_compile) 2>&5
8126   ac_status=$?
8127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8128   test $ac_status = 0; }; then
8129     case `/usr/bin/file conftest.$ac_objext` in
8130       *ELF-32*)
8131         HPUX_IA64_MODE="32"
8132         ;;
8133       *ELF-64*)
8134         HPUX_IA64_MODE="64"
8135         ;;
8136     esac
8137   fi
8138   rm -rf conftest*
8139   ;;
8140 *-*-irix6*)
8141   # Find out which ABI we are using.
8142   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8143   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8144   (eval $ac_compile) 2>&5
8145   ac_status=$?
8146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147   test $ac_status = 0; }; then
8148     if test "$lt_cv_prog_gnu_ld" = yes; then
8149       case `/usr/bin/file conftest.$ac_objext` in
8150         *32-bit*)
8151           LD="${LD-ld} -melf32bsmip"
8152           ;;
8153         *N32*)
8154           LD="${LD-ld} -melf32bmipn32"
8155           ;;
8156         *64-bit*)
8157           LD="${LD-ld} -melf64bmip"
8158         ;;
8159       esac
8160     else
8161       case `/usr/bin/file conftest.$ac_objext` in
8162         *32-bit*)
8163           LD="${LD-ld} -32"
8164           ;;
8165         *N32*)
8166           LD="${LD-ld} -n32"
8167           ;;
8168         *64-bit*)
8169           LD="${LD-ld} -64"
8170           ;;
8171       esac
8172     fi
8173   fi
8174   rm -rf conftest*
8175   ;;
8176
8177 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8178 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8179   # Find out which ABI we are using.
8180   echo 'int i;' > conftest.$ac_ext
8181   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8182   (eval $ac_compile) 2>&5
8183   ac_status=$?
8184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185   test $ac_status = 0; }; then
8186     case `/usr/bin/file conftest.o` in
8187       *32-bit*)
8188         case $host in
8189           x86_64-*kfreebsd*-gnu)
8190             LD="${LD-ld} -m elf_i386_fbsd"
8191             ;;
8192           x86_64-*linux*)
8193             LD="${LD-ld} -m elf_i386"
8194             ;;
8195           ppc64-*linux*|powerpc64-*linux*)
8196             LD="${LD-ld} -m elf32ppclinux"
8197             ;;
8198           s390x-*linux*)
8199             LD="${LD-ld} -m elf_s390"
8200             ;;
8201           sparc64-*linux*)
8202             LD="${LD-ld} -m elf32_sparc"
8203             ;;
8204         esac
8205         ;;
8206       *64-bit*)
8207         case $host in
8208           x86_64-*kfreebsd*-gnu)
8209             LD="${LD-ld} -m elf_x86_64_fbsd"
8210             ;;
8211           x86_64-*linux*)
8212             LD="${LD-ld} -m elf_x86_64"
8213             ;;
8214           ppc*-*linux*|powerpc*-*linux*)
8215             LD="${LD-ld} -m elf64ppc"
8216             ;;
8217           s390*-*linux*|s390*-*tpf*)
8218             LD="${LD-ld} -m elf64_s390"
8219             ;;
8220           sparc*-*linux*)
8221             LD="${LD-ld} -m elf64_sparc"
8222             ;;
8223         esac
8224         ;;
8225     esac
8226   fi
8227   rm -rf conftest*
8228   ;;
8229
8230 *-*-sco3.2v5*)
8231   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8232   SAVE_CFLAGS="$CFLAGS"
8233   CFLAGS="$CFLAGS -belf"
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8235 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8236 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   ac_ext=c
8240 ac_cpp='$CPP $CPPFLAGS'
8241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244
8245      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h.  */
8247
8248 int
8249 main ()
8250 {
8251
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257   lt_cv_cc_needs_belf=yes
8258 else
8259   lt_cv_cc_needs_belf=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262     conftest$ac_exeext conftest.$ac_ext
8263      ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8271 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8272   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8273     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8274     CFLAGS="$SAVE_CFLAGS"
8275   fi
8276   ;;
8277 sparc*-*solaris*)
8278   # Find out which ABI we are using.
8279   echo 'int i;' > conftest.$ac_ext
8280   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8281   (eval $ac_compile) 2>&5
8282   ac_status=$?
8283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8284   test $ac_status = 0; }; then
8285     case `/usr/bin/file conftest.o` in
8286     *64-bit*)
8287       case $lt_cv_prog_gnu_ld in
8288       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8289       *)
8290         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8291           LD="${LD-ld} -64"
8292         fi
8293         ;;
8294       esac
8295       ;;
8296     esac
8297   fi
8298   rm -rf conftest*
8299   ;;
8300 esac
8301
8302 need_locks="$enable_libtool_lock"
8303
8304 if test -n "$ac_tool_prefix"; then
8305   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}mt; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$MANIFEST_TOOL"; then
8313   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8333 if test -n "$MANIFEST_TOOL"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8335 $as_echo "$MANIFEST_TOOL" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 fi
8343 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8344   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8345   # Extract the first word of "mt", so it can be a program name with args.
8346 set dummy mt; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   if test -n "$ac_ct_MANIFEST_TOOL"; then
8353   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360     for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367   done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8373 if test -n "$ac_ct_MANIFEST_TOOL"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8375 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8382     MANIFEST_TOOL=":"
8383   else
8384     case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8391   fi
8392 else
8393   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8394 fi
8395
8396 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8398 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8399 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   lt_cv_path_mainfest_tool=no
8403   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8404   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8405   cat conftest.err >&5
8406   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8407     lt_cv_path_mainfest_tool=yes
8408   fi
8409   rm -f conftest*
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8412 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8413 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8414   MANIFEST_TOOL=:
8415 fi
8416
8417
8418
8419
8420
8421
8422   case $host_os in
8423     rhapsody* | darwin*)
8424     if test -n "$ac_tool_prefix"; then
8425   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$DSYMUTIL"; then
8433   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8453 if test -n "$DSYMUTIL"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8455 $as_echo "$DSYMUTIL" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 fi
8463 if test -z "$ac_cv_prog_DSYMUTIL"; then
8464   ac_ct_DSYMUTIL=$DSYMUTIL
8465   # Extract the first word of "dsymutil", so it can be a program name with args.
8466 set dummy dsymutil; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8470   $as_echo_n "(cached) " >&6
8471 else
8472   if test -n "$ac_ct_DSYMUTIL"; then
8473   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480     for ac_exec_ext in '' $ac_executable_extensions; do
8481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487   done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8493 if test -n "$ac_ct_DSYMUTIL"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501   if test "x$ac_ct_DSYMUTIL" = x; then
8502     DSYMUTIL=":"
8503   else
8504     case $cross_compiling:$ac_tool_warned in
8505 yes:)
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8509 esac
8510     DSYMUTIL=$ac_ct_DSYMUTIL
8511   fi
8512 else
8513   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8514 fi
8515
8516     if test -n "$ac_tool_prefix"; then
8517   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   if test -n "$NMEDIT"; then
8525   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_exec_ext in '' $ac_executable_extensions; do
8533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539   done
8540 IFS=$as_save_IFS
8541
8542 fi
8543 fi
8544 NMEDIT=$ac_cv_prog_NMEDIT
8545 if test -n "$NMEDIT"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8547 $as_echo "$NMEDIT" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553
8554 fi
8555 if test -z "$ac_cv_prog_NMEDIT"; then
8556   ac_ct_NMEDIT=$NMEDIT
8557   # Extract the first word of "nmedit", so it can be a program name with args.
8558 set dummy nmedit; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8562   $as_echo_n "(cached) " >&6
8563 else
8564   if test -n "$ac_ct_NMEDIT"; then
8565   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572     for ac_exec_ext in '' $ac_executable_extensions; do
8573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579   done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8585 if test -n "$ac_ct_NMEDIT"; then
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8587 $as_echo "$ac_ct_NMEDIT" >&6; }
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593   if test "x$ac_ct_NMEDIT" = x; then
8594     NMEDIT=":"
8595   else
8596     case $cross_compiling:$ac_tool_warned in
8597 yes:)
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8601 esac
8602     NMEDIT=$ac_ct_NMEDIT
8603   fi
8604 else
8605   NMEDIT="$ac_cv_prog_NMEDIT"
8606 fi
8607
8608     if test -n "$ac_tool_prefix"; then
8609   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if test "${ac_cv_prog_LIPO+set}" = set; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   if test -n "$LIPO"; then
8617   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 LIPO=$ac_cv_prog_LIPO
8637 if test -n "$LIPO"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8639 $as_echo "$LIPO" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645
8646 fi
8647 if test -z "$ac_cv_prog_LIPO"; then
8648   ac_ct_LIPO=$LIPO
8649   # Extract the first word of "lipo", so it can be a program name with args.
8650 set dummy lipo; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   if test -n "$ac_ct_LIPO"; then
8657   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666     ac_cv_prog_ac_ct_LIPO="lipo"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8677 if test -n "$ac_ct_LIPO"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8679 $as_echo "$ac_ct_LIPO" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685   if test "x$ac_ct_LIPO" = x; then
8686     LIPO=":"
8687   else
8688     case $cross_compiling:$ac_tool_warned in
8689 yes:)
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8693 esac
8694     LIPO=$ac_ct_LIPO
8695   fi
8696 else
8697   LIPO="$ac_cv_prog_LIPO"
8698 fi
8699
8700     if test -n "$ac_tool_prefix"; then
8701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8702 set dummy ${ac_tool_prefix}otool; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   if test -n "$OTOOL"; then
8709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714   IFS=$as_save_IFS
8715   test -z "$as_dir" && as_dir=.
8716     for ac_exec_ext in '' $ac_executable_extensions; do
8717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720     break 2
8721   fi
8722 done
8723   done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 OTOOL=$ac_cv_prog_OTOOL
8729 if test -n "$OTOOL"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8731 $as_echo "$OTOOL" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 if test -z "$ac_cv_prog_OTOOL"; then
8740   ac_ct_OTOOL=$OTOOL
8741   # Extract the first word of "otool", so it can be a program name with args.
8742 set dummy otool; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   if test -n "$ac_ct_OTOOL"; then
8749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754   IFS=$as_save_IFS
8755   test -z "$as_dir" && as_dir=.
8756     for ac_exec_ext in '' $ac_executable_extensions; do
8757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758     ac_cv_prog_ac_ct_OTOOL="otool"
8759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760     break 2
8761   fi
8762 done
8763   done
8764 IFS=$as_save_IFS
8765
8766 fi
8767 fi
8768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8769 if test -n "$ac_ct_OTOOL"; then
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8771 $as_echo "$ac_ct_OTOOL" >&6; }
8772 else
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777   if test "x$ac_ct_OTOOL" = x; then
8778     OTOOL=":"
8779   else
8780     case $cross_compiling:$ac_tool_warned in
8781 yes:)
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8784 ac_tool_warned=yes ;;
8785 esac
8786     OTOOL=$ac_ct_OTOOL
8787   fi
8788 else
8789   OTOOL="$ac_cv_prog_OTOOL"
8790 fi
8791
8792     if test -n "$ac_tool_prefix"; then
8793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   if test -n "$OTOOL64"; then
8801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806   IFS=$as_save_IFS
8807   test -z "$as_dir" && as_dir=.
8808     for ac_exec_ext in '' $ac_executable_extensions; do
8809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812     break 2
8813   fi
8814 done
8815   done
8816 IFS=$as_save_IFS
8817
8818 fi
8819 fi
8820 OTOOL64=$ac_cv_prog_OTOOL64
8821 if test -n "$OTOOL64"; then
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8823 $as_echo "$OTOOL64" >&6; }
8824 else
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 fi
8828
8829
8830 fi
8831 if test -z "$ac_cv_prog_OTOOL64"; then
8832   ac_ct_OTOOL64=$OTOOL64
8833   # Extract the first word of "otool64", so it can be a program name with args.
8834 set dummy otool64; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8838   $as_echo_n "(cached) " >&6
8839 else
8840   if test -n "$ac_ct_OTOOL64"; then
8841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8845 do
8846   IFS=$as_save_IFS
8847   test -z "$as_dir" && as_dir=.
8848     for ac_exec_ext in '' $ac_executable_extensions; do
8849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850     ac_cv_prog_ac_ct_OTOOL64="otool64"
8851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852     break 2
8853   fi
8854 done
8855   done
8856 IFS=$as_save_IFS
8857
8858 fi
8859 fi
8860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8861 if test -n "$ac_ct_OTOOL64"; then
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8863 $as_echo "$ac_ct_OTOOL64" >&6; }
8864 else
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869   if test "x$ac_ct_OTOOL64" = x; then
8870     OTOOL64=":"
8871   else
8872     case $cross_compiling:$ac_tool_warned in
8873 yes:)
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8876 ac_tool_warned=yes ;;
8877 esac
8878     OTOOL64=$ac_ct_OTOOL64
8879   fi
8880 else
8881   OTOOL64="$ac_cv_prog_OTOOL64"
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8911 $as_echo_n "checking for -single_module linker flag... " >&6; }
8912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   lt_cv_apple_cc_single_mod=no
8916       if test -z "${LT_MULTI_MODULE}"; then
8917         # By default we will add the -single_module flag. You can override
8918         # by either setting the environment variable LT_MULTI_MODULE
8919         # non-empty at configure time, or by adding -multi_module to the
8920         # link flags.
8921         rm -rf libconftest.dylib*
8922         echo "int foo(void){return 1;}" > conftest.c
8923         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8924 -dynamiclib -Wl,-single_module conftest.c" >&5
8925         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8926           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8927         _lt_result=$?
8928         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8929           lt_cv_apple_cc_single_mod=yes
8930         else
8931           cat conftest.err >&5
8932         fi
8933         rm -rf libconftest.dylib*
8934         rm -f conftest.*
8935       fi
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   lt_cv_ld_exported_symbols_list=no
8945       save_LDFLAGS=$LDFLAGS
8946       echo "_main" > conftest.sym
8947       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h.  */
8950
8951 int
8952 main ()
8953 {
8954
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960   lt_cv_ld_exported_symbols_list=yes
8961 else
8962   lt_cv_ld_exported_symbols_list=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext \
8965     conftest$ac_exeext conftest.$ac_ext
8966         LDFLAGS="$save_LDFLAGS"
8967
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8972 $as_echo_n "checking for -force_load linker flag... " >&6; }
8973 if test "${lt_cv_ld_force_load+set}" = set; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   lt_cv_ld_force_load=no
8977       cat > conftest.c << _LT_EOF
8978 int forced_loaded() { return 2;}
8979 _LT_EOF
8980       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8981       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8982       echo "$AR cru libconftest.a conftest.o" >&5
8983       $AR cru libconftest.a conftest.o 2>&5
8984       echo "$RANLIB libconftest.a" >&5
8985       $RANLIB libconftest.a 2>&5
8986       cat > conftest.c << _LT_EOF
8987 int main() { return 0;}
8988 _LT_EOF
8989       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8990       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8991       _lt_result=$?
8992       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8993         lt_cv_ld_force_load=yes
8994       else
8995         cat conftest.err >&5
8996       fi
8997         rm -f conftest.err libconftest.a conftest conftest.c
8998         rm -rf conftest.dSYM
8999
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9002 $as_echo "$lt_cv_ld_force_load" >&6; }
9003     case $host_os in
9004     rhapsody* | darwin1.[012])
9005       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9006     darwin1.*)
9007       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9008     darwin*) # darwin 5.x on
9009       # if running on 10.5 or later, the deployment target defaults
9010       # to the OS version, if on x86, and 10.4, the deployment
9011       # target defaults to 10.4. Don't you love it?
9012       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9013         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9014           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9015         10.[012]*)
9016           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9017         10.*)
9018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9019       esac
9020     ;;
9021   esac
9022     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9023       _lt_dar_single_mod='$single_module'
9024     fi
9025     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9026       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9027     else
9028       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9029     fi
9030     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9031       _lt_dsymutil='~$DSYMUTIL $lib || :'
9032     else
9033       _lt_dsymutil=
9034     fi
9035     ;;
9036   esac
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9039 $as_echo_n "checking for ANSI C header files... " >&6; }
9040 if test "${ac_cv_header_stdc+set}" = set; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045 #include <stdlib.h>
9046 #include <stdarg.h>
9047 #include <string.h>
9048 #include <float.h>
9049
9050 int
9051 main ()
9052 {
9053
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059   ac_cv_header_stdc=yes
9060 else
9061   ac_cv_header_stdc=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064
9065 if test $ac_cv_header_stdc = yes; then
9066   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h.  */
9069 #include <string.h>
9070
9071 _ACEOF
9072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9073   $EGREP "memchr" >/dev/null 2>&1; then :
9074
9075 else
9076   ac_cv_header_stdc=no
9077 fi
9078 rm -f conftest*
9079
9080 fi
9081
9082 if test $ac_cv_header_stdc = yes; then
9083   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086 #include <stdlib.h>
9087
9088 _ACEOF
9089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9090   $EGREP "free" >/dev/null 2>&1; then :
9091
9092 else
9093   ac_cv_header_stdc=no
9094 fi
9095 rm -f conftest*
9096
9097 fi
9098
9099 if test $ac_cv_header_stdc = yes; then
9100   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9101   if test "$cross_compiling" = yes; then :
9102   :
9103 else
9104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h.  */
9106 #include <ctype.h>
9107 #include <stdlib.h>
9108 #if ((' ' & 0x0FF) == 0x020)
9109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9111 #else
9112 # define ISLOWER(c) \
9113                    (('a' <= (c) && (c) <= 'i') \
9114                      || ('j' <= (c) && (c) <= 'r') \
9115                      || ('s' <= (c) && (c) <= 'z'))
9116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9117 #endif
9118
9119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9120 int
9121 main ()
9122 {
9123   int i;
9124   for (i = 0; i < 256; i++)
9125     if (XOR (islower (i), ISLOWER (i))
9126         || toupper (i) != TOUPPER (i))
9127       return 2;
9128   return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_run "$LINENO"; then :
9132
9133 else
9134   ac_cv_header_stdc=no
9135 fi
9136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9137   conftest.$ac_objext conftest.beam conftest.$ac_ext
9138 fi
9139
9140 fi
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9143 $as_echo "$ac_cv_header_stdc" >&6; }
9144 if test $ac_cv_header_stdc = yes; then
9145
9146 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9147
9148 fi
9149
9150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9152                   inttypes.h stdint.h unistd.h
9153 do :
9154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9156 "
9157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9158   cat >>confdefs.h <<_ACEOF
9159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9160 _ACEOF
9161
9162 fi
9163
9164 done
9165
9166
9167 for ac_header in dlfcn.h
9168 do :
9169   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9170 "
9171 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9172   cat >>confdefs.h <<_ACEOF
9173 #define HAVE_DLFCN_H 1
9174 _ACEOF
9175
9176 fi
9177
9178 done
9179
9180
9181
9182
9183 func_stripname_cnf ()
9184 {
9185   case ${2} in
9186   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9187   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9188   esac
9189 } # func_stripname_cnf
9190
9191
9192
9193
9194
9195 # Set options
9196 # Check whether --enable-shared was given.
9197 if test "${enable_shared+set}" = set; then :
9198   enableval=$enable_shared; p=${PACKAGE-default}
9199     case $enableval in
9200     yes) enable_shared=yes ;;
9201     no) enable_shared=no ;;
9202     *)
9203       enable_shared=no
9204       # Look at the argument we got.  We use all the common list separators.
9205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9206       for pkg in $enableval; do
9207         IFS="$lt_save_ifs"
9208         if test "X$pkg" = "X$p"; then
9209           enable_shared=yes
9210         fi
9211       done
9212       IFS="$lt_save_ifs"
9213       ;;
9214     esac
9215 else
9216   enable_shared=yes
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225 # Check whether --enable-static was given.
9226 if test "${enable_static+set}" = set; then :
9227   enableval=$enable_static; p=${PACKAGE-default}
9228     case $enableval in
9229     yes) enable_static=yes ;;
9230     no) enable_static=no ;;
9231     *)
9232      enable_static=no
9233       # Look at the argument we got.  We use all the common list separators.
9234       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9235       for pkg in $enableval; do
9236         IFS="$lt_save_ifs"
9237         if test "X$pkg" = "X$p"; then
9238           enable_static=yes
9239         fi
9240       done
9241       IFS="$lt_save_ifs"
9242       ;;
9243     esac
9244 else
9245   enable_static=no
9246 fi
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257         enable_dlopen=no
9258
9259
9260   enable_win32_dll=no
9261
9262
9263
9264
9265
9266 # Check whether --with-pic was given.
9267 if test "${with_pic+set}" = set; then :
9268   withval=$with_pic; pic_mode="$withval"
9269 else
9270   pic_mode=default
9271 fi
9272
9273
9274 test -z "$pic_mode" && pic_mode=default
9275
9276
9277
9278
9279
9280
9281
9282   # Check whether --enable-fast-install was given.
9283 if test "${enable_fast_install+set}" = set; then :
9284   enableval=$enable_fast_install; p=${PACKAGE-default}
9285     case $enableval in
9286     yes) enable_fast_install=yes ;;
9287     no) enable_fast_install=no ;;
9288     *)
9289       enable_fast_install=no
9290       # Look at the argument we got.  We use all the common list separators.
9291       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9292       for pkg in $enableval; do
9293         IFS="$lt_save_ifs"
9294         if test "X$pkg" = "X$p"; then
9295           enable_fast_install=yes
9296         fi
9297       done
9298       IFS="$lt_save_ifs"
9299       ;;
9300     esac
9301 else
9302   enable_fast_install=yes
9303 fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 # This can be used to rebuild libtool when needed
9316 LIBTOOL_DEPS="$ltmain"
9317
9318 # Always use our own libtool.
9319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 test -z "$LN_S" && LN_S="ln -s"
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 if test -n "${ZSH_VERSION+set}" ; then
9362    setopt NO_GLOB_SUBST
9363 fi
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9366 $as_echo_n "checking for objdir... " >&6; }
9367 if test "${lt_cv_objdir+set}" = set; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   rm -f .libs 2>/dev/null
9371 mkdir .libs 2>/dev/null
9372 if test -d .libs; then
9373   lt_cv_objdir=.libs
9374 else
9375   # MS-DOS does not allow filenames that begin with a dot.
9376   lt_cv_objdir=_libs
9377 fi
9378 rmdir .libs 2>/dev/null
9379 fi
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9381 $as_echo "$lt_cv_objdir" >&6; }
9382 objdir=$lt_cv_objdir
9383
9384
9385
9386
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define LT_OBJDIR "$lt_cv_objdir/"
9390 _ACEOF
9391
9392
9393
9394
9395 case $host_os in
9396 aix3*)
9397   # AIX sometimes has problems with the GCC collect2 program.  For some
9398   # reason, if we set the COLLECT_NAMES environment variable, the problems
9399   # vanish in a puff of smoke.
9400   if test "X${COLLECT_NAMES+set}" != Xset; then
9401     COLLECT_NAMES=
9402     export COLLECT_NAMES
9403   fi
9404   ;;
9405 esac
9406
9407 # Global variables:
9408 ofile=libtool
9409 can_build_shared=yes
9410
9411 # All known linkers require a `.a' archive for static linking (except MSVC,
9412 # which needs '.lib').
9413 libext=a
9414
9415 with_gnu_ld="$lt_cv_prog_gnu_ld"
9416
9417 old_CC="$CC"
9418 old_CFLAGS="$CFLAGS"
9419
9420 # Set sane defaults for various variables
9421 test -z "$CC" && CC=cc
9422 test -z "$LTCC" && LTCC=$CC
9423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9424 test -z "$LD" && LD=ld
9425 test -z "$ac_objext" && ac_objext=o
9426
9427 for cc_temp in $compiler""; do
9428   case $cc_temp in
9429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9431     \-*) ;;
9432     *) break;;
9433   esac
9434 done
9435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9436
9437
9438 # Only perform the check for file, if the check method requires it
9439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9440 case $deplibs_check_method in
9441 file_magic*)
9442   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   case $MAGIC_CMD in
9449 [\\/*] |  ?:[\\/]*)
9450   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9451   ;;
9452 *)
9453   lt_save_MAGIC_CMD="$MAGIC_CMD"
9454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9455   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9456   for ac_dir in $ac_dummy; do
9457     IFS="$lt_save_ifs"
9458     test -z "$ac_dir" && ac_dir=.
9459     if test -f $ac_dir/${ac_tool_prefix}file; then
9460       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9461       if test -n "$file_magic_test_file"; then
9462         case $deplibs_check_method in
9463         "file_magic "*)
9464           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9465           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9466           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9467             $EGREP "$file_magic_regex" > /dev/null; then
9468             :
9469           else
9470             cat <<_LT_EOF 1>&2
9471
9472 *** Warning: the command libtool uses to detect shared libraries,
9473 *** $file_magic_cmd, produces output that libtool cannot recognize.
9474 *** The result is that libtool may fail to recognize shared libraries
9475 *** as such.  This will affect the creation of libtool libraries that
9476 *** depend on shared libraries, but programs linked with such libtool
9477 *** libraries will work regardless of this problem.  Nevertheless, you
9478 *** may want to report the problem to your system manager and/or to
9479 *** bug-libtool@gnu.org
9480
9481 _LT_EOF
9482           fi ;;
9483         esac
9484       fi
9485       break
9486     fi
9487   done
9488   IFS="$lt_save_ifs"
9489   MAGIC_CMD="$lt_save_MAGIC_CMD"
9490   ;;
9491 esac
9492 fi
9493
9494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9495 if test -n "$MAGIC_CMD"; then
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9497 $as_echo "$MAGIC_CMD" >&6; }
9498 else
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 fi
9502
9503
9504
9505
9506
9507 if test -z "$lt_cv_path_MAGIC_CMD"; then
9508   if test -n "$ac_tool_prefix"; then
9509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9510 $as_echo_n "checking for file... " >&6; }
9511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9512   $as_echo_n "(cached) " >&6
9513 else
9514   case $MAGIC_CMD in
9515 [\\/*] |  ?:[\\/]*)
9516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9517   ;;
9518 *)
9519   lt_save_MAGIC_CMD="$MAGIC_CMD"
9520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9521   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9522   for ac_dir in $ac_dummy; do
9523     IFS="$lt_save_ifs"
9524     test -z "$ac_dir" && ac_dir=.
9525     if test -f $ac_dir/file; then
9526       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9527       if test -n "$file_magic_test_file"; then
9528         case $deplibs_check_method in
9529         "file_magic "*)
9530           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9531           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9532           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9533             $EGREP "$file_magic_regex" > /dev/null; then
9534             :
9535           else
9536             cat <<_LT_EOF 1>&2
9537
9538 *** Warning: the command libtool uses to detect shared libraries,
9539 *** $file_magic_cmd, produces output that libtool cannot recognize.
9540 *** The result is that libtool may fail to recognize shared libraries
9541 *** as such.  This will affect the creation of libtool libraries that
9542 *** depend on shared libraries, but programs linked with such libtool
9543 *** libraries will work regardless of this problem.  Nevertheless, you
9544 *** may want to report the problem to your system manager and/or to
9545 *** bug-libtool@gnu.org
9546
9547 _LT_EOF
9548           fi ;;
9549         esac
9550       fi
9551       break
9552     fi
9553   done
9554   IFS="$lt_save_ifs"
9555   MAGIC_CMD="$lt_save_MAGIC_CMD"
9556   ;;
9557 esac
9558 fi
9559
9560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9561 if test -n "$MAGIC_CMD"; then
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9563 $as_echo "$MAGIC_CMD" >&6; }
9564 else
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9567 fi
9568
9569
9570   else
9571     MAGIC_CMD=:
9572   fi
9573 fi
9574
9575   fi
9576   ;;
9577 esac
9578
9579 # Use C for the default configuration in the libtool script
9580
9581 lt_save_CC="$CC"
9582 ac_ext=c
9583 ac_cpp='$CPP $CPPFLAGS'
9584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9587
9588
9589 # Source file extension for C test sources.
9590 ac_ext=c
9591
9592 # Object file extension for compiled C test sources.
9593 objext=o
9594 objext=$objext
9595
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;"
9598
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(){return(0);}'
9601
9602
9603
9604
9605
9606
9607
9608 # If no C compiler was specified, use CC.
9609 LTCC=${LTCC-"$CC"}
9610
9611 # If no C compiler flags were specified, use CFLAGS.
9612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9613
9614 # Allow CC to be a program name with arguments.
9615 compiler=$CC
9616
9617 # Save the default compiler, since it gets overwritten when the other
9618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9619 compiler_DEFAULT=$CC
9620
9621 # save warnings/boilerplate of simple test code
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_compiler_boilerplate=`cat conftest.err`
9626 $RM conftest*
9627
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9631 _lt_linker_boilerplate=`cat conftest.err`
9632 $RM -r conftest*
9633
9634
9635 ## CAVEAT EMPTOR:
9636 ## There is no encapsulation within the following macros, do not change
9637 ## the running order or otherwise move them around unless you know exactly
9638 ## what you are doing...
9639 if test -n "$compiler"; then
9640
9641 lt_prog_compiler_no_builtin_flag=
9642
9643 if test "$GCC" = yes; then
9644   case $cc_basename in
9645   nvcc*)
9646     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9647   *)
9648     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9649   esac
9650
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9652 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656   lt_cv_prog_compiler_rtti_exceptions=no
9657    ac_outfile=conftest.$ac_objext
9658    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9659    lt_compiler_flag="-fno-rtti -fno-exceptions"
9660    # Insert the option either (1) after the last *FLAGS variable, or
9661    # (2) before a word containing "conftest.", or (3) at the end.
9662    # Note that $ac_compile itself does not contain backslashes and begins
9663    # with a dollar sign (not a hyphen), so the echo should work correctly.
9664    # The option is referenced via a variable to avoid confusing sed.
9665    lt_compile=`echo "$ac_compile" | $SED \
9666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9668    -e 's:$: $lt_compiler_flag:'`
9669    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9670    (eval "$lt_compile" 2>conftest.err)
9671    ac_status=$?
9672    cat conftest.err >&5
9673    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674    if (exit $ac_status) && test -s "$ac_outfile"; then
9675      # The compiler can only warn and ignore the option if not recognized
9676      # So say no if there are warnings other than the usual output.
9677      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9678      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9679      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9680        lt_cv_prog_compiler_rtti_exceptions=yes
9681      fi
9682    fi
9683    $RM conftest*
9684
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9687 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9688
9689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9691 else
9692     :
9693 fi
9694
9695 fi
9696
9697
9698
9699
9700
9701
9702   lt_prog_compiler_wl=
9703 lt_prog_compiler_pic=
9704 lt_prog_compiler_static=
9705
9706
9707   if test "$GCC" = yes; then
9708     lt_prog_compiler_wl='-Wl,'
9709     lt_prog_compiler_static='-static'
9710
9711     case $host_os in
9712       aix*)
9713       # All AIX code is PIC.
9714       if test "$host_cpu" = ia64; then
9715         # AIX 5 now supports IA64 processor
9716         lt_prog_compiler_static='-Bstatic'
9717       fi
9718       ;;
9719
9720     amigaos*)
9721       case $host_cpu in
9722       powerpc)
9723             # see comment about AmigaOS4 .so support
9724             lt_prog_compiler_pic='-fPIC'
9725         ;;
9726       m68k)
9727             # FIXME: we need at least 68020 code to build shared libraries, but
9728             # adding the `-m68020' flag to GCC prevents building anything better,
9729             # like `-m68040'.
9730             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9731         ;;
9732       esac
9733       ;;
9734
9735     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736       # PIC is the default for these OSes.
9737       ;;
9738
9739     mingw* | cygwin* | pw32* | os2* | cegcc*)
9740       # This hack is so that the source file can tell whether it is being
9741       # built for inclusion in a dll (and should export symbols for example).
9742       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743       # (--disable-auto-import) libraries
9744       lt_prog_compiler_pic='-DDLL_EXPORT'
9745       ;;
9746
9747     darwin* | rhapsody*)
9748       # PIC is the default on this platform
9749       # Common symbols not allowed in MH_DYLIB files
9750       lt_prog_compiler_pic='-fno-common'
9751       ;;
9752
9753     haiku*)
9754       # PIC is the default for Haiku.
9755       # The "-static" flag exists, but is broken.
9756       lt_prog_compiler_static=
9757       ;;
9758
9759     hpux*)
9760       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9761       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9762       # sets the default TLS model and affects inlining.
9763       case $host_cpu in
9764       hppa*64*)
9765         # +Z the default
9766         ;;
9767       *)
9768         lt_prog_compiler_pic='-fPIC'
9769         ;;
9770       esac
9771       ;;
9772
9773     interix[3-9]*)
9774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9775       # Instead, we relocate shared libraries at runtime.
9776       ;;
9777
9778     msdosdjgpp*)
9779       # Just because we use GCC doesn't mean we suddenly get shared libraries
9780       # on systems that don't support them.
9781       lt_prog_compiler_can_build_shared=no
9782       enable_shared=no
9783       ;;
9784
9785     *nto* | *qnx*)
9786       # QNX uses GNU C++, but need to define -shared option too, otherwise
9787       # it will coredump.
9788       lt_prog_compiler_pic='-fPIC -shared'
9789       ;;
9790
9791     sysv4*MP*)
9792       if test -d /usr/nec; then
9793         lt_prog_compiler_pic=-Kconform_pic
9794       fi
9795       ;;
9796
9797     *)
9798       lt_prog_compiler_pic='-fPIC'
9799       ;;
9800     esac
9801
9802     case $cc_basename in
9803     nvcc*) # Cuda Compiler Driver 2.2
9804       lt_prog_compiler_wl='-Xlinker '
9805       lt_prog_compiler_pic='-Xcompiler -fPIC'
9806       ;;
9807     esac
9808   else
9809     # PORTME Check for flag to pass linker flags through the system compiler.
9810     case $host_os in
9811     aix*)
9812       lt_prog_compiler_wl='-Wl,'
9813       if test "$host_cpu" = ia64; then
9814         # AIX 5 now supports IA64 processor
9815         lt_prog_compiler_static='-Bstatic'
9816       else
9817         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9818       fi
9819       ;;
9820
9821     mingw* | cygwin* | pw32* | os2* | cegcc*)
9822       # This hack is so that the source file can tell whether it is being
9823       # built for inclusion in a dll (and should export symbols for example).
9824       lt_prog_compiler_pic='-DDLL_EXPORT'
9825       ;;
9826
9827     hpux9* | hpux10* | hpux11*)
9828       lt_prog_compiler_wl='-Wl,'
9829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9830       # not for PA HP-UX.
9831       case $host_cpu in
9832       hppa*64*|ia64*)
9833         # +Z the default
9834         ;;
9835       *)
9836         lt_prog_compiler_pic='+Z'
9837         ;;
9838       esac
9839       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9840       lt_prog_compiler_static='${wl}-a ${wl}archive'
9841       ;;
9842
9843     irix5* | irix6* | nonstopux*)
9844       lt_prog_compiler_wl='-Wl,'
9845       # PIC (with -KPIC) is the default.
9846       lt_prog_compiler_static='-non_shared'
9847       ;;
9848
9849     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9850       case $cc_basename in
9851       # old Intel for x86_64 which still supported -KPIC.
9852       ecc*)
9853         lt_prog_compiler_wl='-Wl,'
9854         lt_prog_compiler_pic='-KPIC'
9855         lt_prog_compiler_static='-static'
9856         ;;
9857       # icc used to be incompatible with GCC.
9858       # ICC 10 doesn't accept -KPIC any more.
9859       icc* | ifort*)
9860         lt_prog_compiler_wl='-Wl,'
9861         lt_prog_compiler_pic='-fPIC'
9862         lt_prog_compiler_static='-static'
9863         ;;
9864       # Lahey Fortran 8.1.
9865       lf95*)
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='--shared'
9868         lt_prog_compiler_static='--static'
9869         ;;
9870       nagfor*)
9871         # NAG Fortran compiler
9872         lt_prog_compiler_wl='-Wl,-Wl,,'
9873         lt_prog_compiler_pic='-PIC'
9874         lt_prog_compiler_static='-Bstatic'
9875         ;;
9876       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9877         # Portland Group compilers (*not* the Pentium gcc compiler,
9878         # which looks to be a dead project)
9879         lt_prog_compiler_wl='-Wl,'
9880         lt_prog_compiler_pic='-fpic'
9881         lt_prog_compiler_static='-Bstatic'
9882         ;;
9883       ccc*)
9884         lt_prog_compiler_wl='-Wl,'
9885         # All Alpha code is PIC.
9886         lt_prog_compiler_static='-non_shared'
9887         ;;
9888       xl* | bgxl* | bgf* | mpixl*)
9889         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9890         lt_prog_compiler_wl='-Wl,'
9891         lt_prog_compiler_pic='-qpic'
9892         lt_prog_compiler_static='-qstaticlink'
9893         ;;
9894       *)
9895         case `$CC -V 2>&1 | sed 5q` in
9896         *Sun\ F* | *Sun*Fortran*)
9897           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9898           lt_prog_compiler_pic='-KPIC'
9899           lt_prog_compiler_static='-Bstatic'
9900           lt_prog_compiler_wl=''
9901           ;;
9902         *Sun\ C*)
9903           # Sun C 5.9
9904           lt_prog_compiler_pic='-KPIC'
9905           lt_prog_compiler_static='-Bstatic'
9906           lt_prog_compiler_wl='-Wl,'
9907           ;;
9908         esac
9909         ;;
9910       esac
9911       ;;
9912
9913     newsos6)
9914       lt_prog_compiler_pic='-KPIC'
9915       lt_prog_compiler_static='-Bstatic'
9916       ;;
9917
9918     *nto* | *qnx*)
9919       # QNX uses GNU C++, but need to define -shared option too, otherwise
9920       # it will coredump.
9921       lt_prog_compiler_pic='-fPIC -shared'
9922       ;;
9923
9924     osf3* | osf4* | osf5*)
9925       lt_prog_compiler_wl='-Wl,'
9926       # All OSF/1 code is PIC.
9927       lt_prog_compiler_static='-non_shared'
9928       ;;
9929
9930     rdos*)
9931       lt_prog_compiler_static='-non_shared'
9932       ;;
9933
9934     solaris*)
9935       lt_prog_compiler_pic='-KPIC'
9936       lt_prog_compiler_static='-Bstatic'
9937       case $cc_basename in
9938       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9939         lt_prog_compiler_wl='-Qoption ld ';;
9940       *)
9941         lt_prog_compiler_wl='-Wl,';;
9942       esac
9943       ;;
9944
9945     sunos4*)
9946       lt_prog_compiler_wl='-Qoption ld '
9947       lt_prog_compiler_pic='-PIC'
9948       lt_prog_compiler_static='-Bstatic'
9949       ;;
9950
9951     sysv4 | sysv4.2uw2* | sysv4.3*)
9952       lt_prog_compiler_wl='-Wl,'
9953       lt_prog_compiler_pic='-KPIC'
9954       lt_prog_compiler_static='-Bstatic'
9955       ;;
9956
9957     sysv4*MP*)
9958       if test -d /usr/nec ;then
9959         lt_prog_compiler_pic='-Kconform_pic'
9960         lt_prog_compiler_static='-Bstatic'
9961       fi
9962       ;;
9963
9964     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9965       lt_prog_compiler_wl='-Wl,'
9966       lt_prog_compiler_pic='-KPIC'
9967       lt_prog_compiler_static='-Bstatic'
9968       ;;
9969
9970     unicos*)
9971       lt_prog_compiler_wl='-Wl,'
9972       lt_prog_compiler_can_build_shared=no
9973       ;;
9974
9975     uts4*)
9976       lt_prog_compiler_pic='-pic'
9977       lt_prog_compiler_static='-Bstatic'
9978       ;;
9979
9980     *)
9981       lt_prog_compiler_can_build_shared=no
9982       ;;
9983     esac
9984   fi
9985
9986 case $host_os in
9987   # For platforms which do not support PIC, -DPIC is meaningless:
9988   *djgpp*)
9989     lt_prog_compiler_pic=
9990     ;;
9991   *)
9992     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9993     ;;
9994 esac
9995
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9997 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9998 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10004 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10005 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10006
10007 #
10008 # Check to make sure the PIC flag actually works.
10009 #
10010 if test -n "$lt_prog_compiler_pic"; then
10011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10013 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   lt_cv_prog_compiler_pic_works=no
10017    ac_outfile=conftest.$ac_objext
10018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10020    # Insert the option either (1) after the last *FLAGS variable, or
10021    # (2) before a word containing "conftest.", or (3) at the end.
10022    # Note that $ac_compile itself does not contain backslashes and begins
10023    # with a dollar sign (not a hyphen), so the echo should work correctly.
10024    # The option is referenced via a variable to avoid confusing sed.
10025    lt_compile=`echo "$ac_compile" | $SED \
10026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028    -e 's:$: $lt_compiler_flag:'`
10029    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10030    (eval "$lt_compile" 2>conftest.err)
10031    ac_status=$?
10032    cat conftest.err >&5
10033    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034    if (exit $ac_status) && test -s "$ac_outfile"; then
10035      # The compiler can only warn and ignore the option if not recognized
10036      # So say no if there are warnings other than the usual output.
10037      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10038      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10040        lt_cv_prog_compiler_pic_works=yes
10041      fi
10042    fi
10043    $RM conftest*
10044
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10047 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10048
10049 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10050     case $lt_prog_compiler_pic in
10051      "" | " "*) ;;
10052      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10053      esac
10054 else
10055     lt_prog_compiler_pic=
10056      lt_prog_compiler_can_build_shared=no
10057 fi
10058
10059 fi
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071 #
10072 # Check to make sure the static flag actually works.
10073 #
10074 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10076 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10077 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   lt_cv_prog_compiler_static_works=no
10081    save_LDFLAGS="$LDFLAGS"
10082    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10083    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10084    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10085      # The linker can only warn and ignore the option if not recognized
10086      # So say no if there are warnings
10087      if test -s conftest.err; then
10088        # Append any errors to the config.log.
10089        cat conftest.err 1>&5
10090        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10091        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10092        if diff conftest.exp conftest.er2 >/dev/null; then
10093          lt_cv_prog_compiler_static_works=yes
10094        fi
10095      else
10096        lt_cv_prog_compiler_static_works=yes
10097      fi
10098    fi
10099    $RM -r conftest*
10100    LDFLAGS="$save_LDFLAGS"
10101
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10104 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10105
10106 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10107     :
10108 else
10109     lt_prog_compiler_static=
10110 fi
10111
10112
10113
10114
10115
10116
10117
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10120 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   lt_cv_prog_compiler_c_o=no
10124    $RM -r conftest 2>/dev/null
10125    mkdir conftest
10126    cd conftest
10127    mkdir out
10128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129
10130    lt_compiler_flag="-o out/conftest2.$ac_objext"
10131    # Insert the option either (1) after the last *FLAGS variable, or
10132    # (2) before a word containing "conftest.", or (3) at the end.
10133    # Note that $ac_compile itself does not contain backslashes and begins
10134    # with a dollar sign (not a hyphen), so the echo should work correctly.
10135    lt_compile=`echo "$ac_compile" | $SED \
10136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10138    -e 's:$: $lt_compiler_flag:'`
10139    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10140    (eval "$lt_compile" 2>out/conftest.err)
10141    ac_status=$?
10142    cat out/conftest.err >&5
10143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10145    then
10146      # The compiler can only warn and ignore the option if not recognized
10147      # So say no if there are warnings
10148      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10151        lt_cv_prog_compiler_c_o=yes
10152      fi
10153    fi
10154    chmod u+w . 2>&5
10155    $RM conftest*
10156    # SGI C++ compiler will create directory out/ii_files/ for
10157    # template instantiation
10158    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10159    $RM out/* && rmdir out
10160    cd ..
10161    $RM -r conftest
10162    $RM conftest*
10163
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10166 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10167
10168
10169
10170
10171
10172
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10175 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   lt_cv_prog_compiler_c_o=no
10179    $RM -r conftest 2>/dev/null
10180    mkdir conftest
10181    cd conftest
10182    mkdir out
10183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184
10185    lt_compiler_flag="-o out/conftest2.$ac_objext"
10186    # Insert the option either (1) after the last *FLAGS variable, or
10187    # (2) before a word containing "conftest.", or (3) at the end.
10188    # Note that $ac_compile itself does not contain backslashes and begins
10189    # with a dollar sign (not a hyphen), so the echo should work correctly.
10190    lt_compile=`echo "$ac_compile" | $SED \
10191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10193    -e 's:$: $lt_compiler_flag:'`
10194    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10195    (eval "$lt_compile" 2>out/conftest.err)
10196    ac_status=$?
10197    cat out/conftest.err >&5
10198    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10200    then
10201      # The compiler can only warn and ignore the option if not recognized
10202      # So say no if there are warnings
10203      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10204      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10205      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10206        lt_cv_prog_compiler_c_o=yes
10207      fi
10208    fi
10209    chmod u+w . 2>&5
10210    $RM conftest*
10211    # SGI C++ compiler will create directory out/ii_files/ for
10212    # template instantiation
10213    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10214    $RM out/* && rmdir out
10215    cd ..
10216    $RM -r conftest
10217    $RM conftest*
10218
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10221 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10222
10223
10224
10225
10226 hard_links="nottested"
10227 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10228   # do not overwrite the value of need_locks provided by the user
10229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10230 $as_echo_n "checking if we can lock with hard links... " >&6; }
10231   hard_links=yes
10232   $RM conftest*
10233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10234   touch conftest.a
10235   ln conftest.a conftest.b 2>&5 || hard_links=no
10236   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10238 $as_echo "$hard_links" >&6; }
10239   if test "$hard_links" = no; then
10240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10241 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10242     need_locks=warn
10243   fi
10244 else
10245   need_locks=no
10246 fi
10247
10248
10249
10250
10251
10252
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10254 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10255
10256   runpath_var=
10257   allow_undefined_flag=
10258   always_export_symbols=no
10259   archive_cmds=
10260   archive_expsym_cmds=
10261   compiler_needs_object=no
10262   enable_shared_with_static_runtimes=no
10263   export_dynamic_flag_spec=
10264   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10265   hardcode_automatic=no
10266   hardcode_direct=no
10267   hardcode_direct_absolute=no
10268   hardcode_libdir_flag_spec=
10269   hardcode_libdir_flag_spec_ld=
10270   hardcode_libdir_separator=
10271   hardcode_minus_L=no
10272   hardcode_shlibpath_var=unsupported
10273   inherit_rpath=no
10274   link_all_deplibs=unknown
10275   module_cmds=
10276   module_expsym_cmds=
10277   old_archive_from_new_cmds=
10278   old_archive_from_expsyms_cmds=
10279   thread_safe_flag_spec=
10280   whole_archive_flag_spec=
10281   # include_expsyms should be a list of space-separated symbols to be *always*
10282   # included in the symbol list
10283   include_expsyms=
10284   # exclude_expsyms can be an extended regexp of symbols to exclude
10285   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10286   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10287   # as well as any symbol that contains `d'.
10288   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10289   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10290   # platforms (ab)use it in PIC code, but their linkers get confused if
10291   # the symbol is explicitly referenced.  Since portable code cannot
10292   # rely on this symbol name, it's probably fine to never include it in
10293   # preloaded symbol tables.
10294   # Exclude shared library initialization/finalization symbols.
10295   extract_expsyms_cmds=
10296
10297   case $host_os in
10298   cygwin* | mingw* | pw32* | cegcc*)
10299     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10300     # When not using gcc, we currently assume that we are using
10301     # Microsoft Visual C++.
10302     if test "$GCC" != yes; then
10303       with_gnu_ld=no
10304     fi
10305     ;;
10306   interix*)
10307     # we just hope/assume this is gcc and not c89 (= MSVC++)
10308     with_gnu_ld=yes
10309     ;;
10310   openbsd*)
10311     with_gnu_ld=no
10312     ;;
10313   esac
10314
10315   ld_shlibs=yes
10316
10317   # On some targets, GNU ld is compatible enough with the native linker
10318   # that we're better off using the native interface for both.
10319   lt_use_gnu_ld_interface=no
10320   if test "$with_gnu_ld" = yes; then
10321     case $host_os in
10322       aix*)
10323         # The AIX port of GNU ld has always aspired to compatibility
10324         # with the native linker.  However, as the warning in the GNU ld
10325         # block says, versions before 2.19.5* couldn't really create working
10326         # shared libraries, regardless of the interface used.
10327         case `$LD -v 2>&1` in
10328           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10329           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10330           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10331           *)
10332             lt_use_gnu_ld_interface=yes
10333             ;;
10334         esac
10335         ;;
10336       *)
10337         lt_use_gnu_ld_interface=yes
10338         ;;
10339     esac
10340   fi
10341
10342   if test "$lt_use_gnu_ld_interface" = yes; then
10343     # If archive_cmds runs LD, not CC, wlarc should be empty
10344     wlarc='${wl}'
10345
10346     # Set some defaults for GNU ld with shared library support. These
10347     # are reset later if shared libraries are not supported. Putting them
10348     # here allows them to be overridden if necessary.
10349     runpath_var=LD_RUN_PATH
10350     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10351     export_dynamic_flag_spec='${wl}--export-dynamic'
10352     # ancient GNU ld didn't support --whole-archive et. al.
10353     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10354       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10355     else
10356       whole_archive_flag_spec=
10357     fi
10358     supports_anon_versioning=no
10359     case `$LD -v 2>&1` in
10360       *GNU\ gold*) supports_anon_versioning=yes ;;
10361       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10362       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10363       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10364       *\ 2.11.*) ;; # other 2.11 versions
10365       *) supports_anon_versioning=yes ;;
10366     esac
10367
10368     # See if GNU ld supports shared libraries.
10369     case $host_os in
10370     aix[3-9]*)
10371       # On AIX/PPC, the GNU linker is very broken
10372       if test "$host_cpu" != ia64; then
10373         ld_shlibs=no
10374         cat <<_LT_EOF 1>&2
10375
10376 *** Warning: the GNU linker, at least up to release 2.19, is reported
10377 *** to be unable to reliably create shared libraries on AIX.
10378 *** Therefore, libtool is disabling shared libraries support.  If you
10379 *** really care for shared libraries, you may want to install binutils
10380 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10381 *** You will then need to restart the configuration process.
10382
10383 _LT_EOF
10384       fi
10385       ;;
10386
10387     amigaos*)
10388       case $host_cpu in
10389       powerpc)
10390             # see comment about AmigaOS4 .so support
10391             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392             archive_expsym_cmds=''
10393         ;;
10394       m68k)
10395             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)'
10396             hardcode_libdir_flag_spec='-L$libdir'
10397             hardcode_minus_L=yes
10398         ;;
10399       esac
10400       ;;
10401
10402     beos*)
10403       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10404         allow_undefined_flag=unsupported
10405         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10406         # support --undefined.  This deserves some investigation.  FIXME
10407         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408       else
10409         ld_shlibs=no
10410       fi
10411       ;;
10412
10413     cygwin* | mingw* | pw32* | cegcc*)
10414       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10415       # as there is no search path for DLLs.
10416       hardcode_libdir_flag_spec='-L$libdir'
10417       export_dynamic_flag_spec='${wl}--export-all-symbols'
10418       allow_undefined_flag=unsupported
10419       always_export_symbols=no
10420       enable_shared_with_static_runtimes=yes
10421       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'
10422       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10423
10424       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10426         # If the export-symbols file already is a .def file (1st line
10427         # is EXPORTS), use it as is; otherwise, prepend...
10428         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10429           cp $export_symbols $output_objdir/$soname.def;
10430         else
10431           echo EXPORTS > $output_objdir/$soname.def;
10432           cat $export_symbols >> $output_objdir/$soname.def;
10433         fi~
10434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10435       else
10436         ld_shlibs=no
10437       fi
10438       ;;
10439
10440     haiku*)
10441       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10442       link_all_deplibs=yes
10443       ;;
10444
10445     interix[3-9]*)
10446       hardcode_direct=no
10447       hardcode_shlibpath_var=no
10448       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10449       export_dynamic_flag_spec='${wl}-E'
10450       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10451       # Instead, shared libraries are loaded at an image base (0x10000000 by
10452       # default) and relocated if they conflict, which is a slow very memory
10453       # consuming and fragmenting process.  To avoid this, we pick a random,
10454       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10455       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10456       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10457       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'
10458       ;;
10459
10460     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10461       tmp_diet=no
10462       if test "$host_os" = linux-dietlibc; then
10463         case $cc_basename in
10464           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10465         esac
10466       fi
10467       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10468          && test "$tmp_diet" = no
10469       then
10470         tmp_addflag=' $pic_flag'
10471         tmp_sharedflag='-shared'
10472         case $cc_basename,$host_cpu in
10473         pgcc*)                          # Portland Group C compiler
10474           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'
10475           tmp_addflag=' $pic_flag'
10476           ;;
10477         pgf77* | pgf90* | pgf95* | pgfortran*)
10478                                         # Portland Group f77 and f90 compilers
10479           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'
10480           tmp_addflag=' $pic_flag -Mnomain' ;;
10481         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10482           tmp_addflag=' -i_dynamic' ;;
10483         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10484           tmp_addflag=' -i_dynamic -nofor_main' ;;
10485         ifc* | ifort*)                  # Intel Fortran compiler
10486           tmp_addflag=' -nofor_main' ;;
10487         lf95*)                          # Lahey Fortran 8.1
10488           whole_archive_flag_spec=
10489           tmp_sharedflag='--shared' ;;
10490         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10491           tmp_sharedflag='-qmkshrobj'
10492           tmp_addflag= ;;
10493         nvcc*)  # Cuda Compiler Driver 2.2
10494           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'
10495           compiler_needs_object=yes
10496           ;;
10497         esac
10498         case `$CC -V 2>&1 | sed 5q` in
10499         *Sun\ C*)                       # Sun C 5.9
10500           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'
10501           compiler_needs_object=yes
10502           tmp_sharedflag='-G' ;;
10503         *Sun\ F*)                       # Sun Fortran 8.3
10504           tmp_sharedflag='-G' ;;
10505         esac
10506         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10507
10508         if test "x$supports_anon_versioning" = xyes; then
10509           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10510             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10511             echo "local: *; };" >> $output_objdir/$libname.ver~
10512             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10513         fi
10514
10515         case $cc_basename in
10516         xlf* | bgf* | bgxlf* | mpixlf*)
10517           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10518           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10519           hardcode_libdir_flag_spec=
10520           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10521           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10522           if test "x$supports_anon_versioning" = xyes; then
10523             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525               echo "local: *; };" >> $output_objdir/$libname.ver~
10526               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10527           fi
10528           ;;
10529         esac
10530       else
10531         ld_shlibs=no
10532       fi
10533       ;;
10534
10535     netbsd*)
10536       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10537         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10538         wlarc=
10539       else
10540         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10542       fi
10543       ;;
10544
10545     solaris*)
10546       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10547         ld_shlibs=no
10548         cat <<_LT_EOF 1>&2
10549
10550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10551 *** create shared libraries on Solaris systems.  Therefore, libtool
10552 *** is disabling shared libraries support.  We urge you to upgrade GNU
10553 *** binutils to release 2.9.1 or newer.  Another option is to modify
10554 *** your PATH or compiler configuration so that the native linker is
10555 *** used, and then restart.
10556
10557 _LT_EOF
10558       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10559         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10561       else
10562         ld_shlibs=no
10563       fi
10564       ;;
10565
10566     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10567       case `$LD -v 2>&1` in
10568         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10569         ld_shlibs=no
10570         cat <<_LT_EOF 1>&2
10571
10572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10573 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10574 *** is disabling shared libraries support.  We urge you to upgrade GNU
10575 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10576 *** your PATH or compiler configuration so that the native linker is
10577 *** used, and then restart.
10578
10579 _LT_EOF
10580         ;;
10581         *)
10582           # For security reasons, it is highly recommended that you always
10583           # use absolute paths for naming shared libraries, and exclude the
10584           # DT_RUNPATH tag from executables and libraries.  But doing so
10585           # requires that you compile everything twice, which is a pain.
10586           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10588             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10589             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10590           else
10591             ld_shlibs=no
10592           fi
10593         ;;
10594       esac
10595       ;;
10596
10597     sunos4*)
10598       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10599       wlarc=
10600       hardcode_direct=yes
10601       hardcode_shlibpath_var=no
10602       ;;
10603
10604     *)
10605       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10608       else
10609         ld_shlibs=no
10610       fi
10611       ;;
10612     esac
10613
10614     if test "$ld_shlibs" = no; then
10615       runpath_var=
10616       hardcode_libdir_flag_spec=
10617       export_dynamic_flag_spec=
10618       whole_archive_flag_spec=
10619     fi
10620   else
10621     # PORTME fill in a description of your system's linker (not GNU ld)
10622     case $host_os in
10623     aix3*)
10624       allow_undefined_flag=unsupported
10625       always_export_symbols=yes
10626       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'
10627       # Note: this linker hardcodes the directories in LIBPATH if there
10628       # are no directories specified by -L.
10629       hardcode_minus_L=yes
10630       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10631         # Neither direct hardcoding nor static linking is supported with a
10632         # broken collect2.
10633         hardcode_direct=unsupported
10634       fi
10635       ;;
10636
10637     aix[4-9]*)
10638       if test "$host_cpu" = ia64; then
10639         # On IA64, the linker does run time linking by default, so we don't
10640         # have to do anything special.
10641         aix_use_runtimelinking=no
10642         exp_sym_flag='-Bexport'
10643         no_entry_flag=""
10644       else
10645         # If we're using GNU nm, then we don't want the "-C" option.
10646         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10647         # Also, AIX nm treats weak defined symbols like other global
10648         # defined symbols, whereas GNU nm marks them as "W".
10649         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10650           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'
10651         else
10652           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'
10653         fi
10654         aix_use_runtimelinking=no
10655
10656         # Test if we are trying to use run time linking or normal
10657         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10658         # need to do runtime linking.
10659         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10660           for ld_flag in $LDFLAGS; do
10661           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10662             aix_use_runtimelinking=yes
10663             break
10664           fi
10665           done
10666           ;;
10667         esac
10668
10669         exp_sym_flag='-bexport'
10670         no_entry_flag='-bnoentry'
10671       fi
10672
10673       # When large executables or shared objects are built, AIX ld can
10674       # have problems creating the table of contents.  If linking a library
10675       # or program results in "error TOC overflow" add -mminimal-toc to
10676       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10677       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10678
10679       archive_cmds=''
10680       hardcode_direct=yes
10681       hardcode_direct_absolute=yes
10682       hardcode_libdir_separator=':'
10683       link_all_deplibs=yes
10684       file_list_spec='${wl}-f,'
10685
10686       if test "$GCC" = yes; then
10687         case $host_os in aix4.[012]|aix4.[012].*)
10688         # We only want to do this on AIX 4.2 and lower, the check
10689         # below for broken collect2 doesn't work under 4.3+
10690           collect2name=`${CC} -print-prog-name=collect2`
10691           if test -f "$collect2name" &&
10692            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10693           then
10694           # We have reworked collect2
10695           :
10696           else
10697           # We have old collect2
10698           hardcode_direct=unsupported
10699           # It fails to find uninstalled libraries when the uninstalled
10700           # path is not listed in the libpath.  Setting hardcode_minus_L
10701           # to unsupported forces relinking
10702           hardcode_minus_L=yes
10703           hardcode_libdir_flag_spec='-L$libdir'
10704           hardcode_libdir_separator=
10705           fi
10706           ;;
10707         esac
10708         shared_flag='-shared'
10709         if test "$aix_use_runtimelinking" = yes; then
10710           shared_flag="$shared_flag "'${wl}-G'
10711         fi
10712       else
10713         # not using gcc
10714         if test "$host_cpu" = ia64; then
10715         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10716         # chokes on -Wl,-G. The following line is correct:
10717           shared_flag='-G'
10718         else
10719           if test "$aix_use_runtimelinking" = yes; then
10720             shared_flag='${wl}-G'
10721           else
10722             shared_flag='${wl}-bM:SRE'
10723           fi
10724         fi
10725       fi
10726
10727       export_dynamic_flag_spec='${wl}-bexpall'
10728       # It seems that -bexpall does not export symbols beginning with
10729       # underscore (_), so it is better to generate a list of symbols to export.
10730       always_export_symbols=yes
10731       if test "$aix_use_runtimelinking" = yes; then
10732         # Warning - without using the other runtime loading flags (-brtl),
10733         # -berok will link without error, but may produce a broken library.
10734         allow_undefined_flag='-berok'
10735         # Determine the default libpath from the value encoded in an
10736         # empty executable.
10737         if test "${lt_cv_aix_libpath+set}" = set; then
10738   aix_libpath=$lt_cv_aix_libpath
10739 else
10740   if test "${lt_cv_aix_libpath_+set}" = set; then :
10741   $as_echo_n "(cached) " >&6
10742 else
10743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h.  */
10745
10746 int
10747 main ()
10748 {
10749
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755
10756   lt_aix_libpath_sed='
10757       /Import File Strings/,/^$/ {
10758           /^0/ {
10759               s/^0  *\([^ ]*\) *$/\1/
10760               p
10761           }
10762       }'
10763   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10764   # Check for a 64-bit object if we didn't find anything.
10765   if test -z "$lt_cv_aix_libpath_"; then
10766     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10767   fi
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext \
10770     conftest$ac_exeext conftest.$ac_ext
10771   if test -z "$lt_cv_aix_libpath_"; then
10772     lt_cv_aix_libpath_="/usr/lib:/lib"
10773   fi
10774
10775 fi
10776
10777   aix_libpath=$lt_cv_aix_libpath_
10778 fi
10779
10780         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10781         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"
10782       else
10783         if test "$host_cpu" = ia64; then
10784           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10785           allow_undefined_flag="-z nodefs"
10786           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"
10787         else
10788          # Determine the default libpath from the value encoded in an
10789          # empty executable.
10790          if test "${lt_cv_aix_libpath+set}" = set; then
10791   aix_libpath=$lt_cv_aix_libpath
10792 else
10793   if test "${lt_cv_aix_libpath_+set}" = set; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798
10799 int
10800 main ()
10801 {
10802
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808
10809   lt_aix_libpath_sed='
10810       /Import File Strings/,/^$/ {
10811           /^0/ {
10812               s/^0  *\([^ ]*\) *$/\1/
10813               p
10814           }
10815       }'
10816   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817   # Check for a 64-bit object if we didn't find anything.
10818   if test -z "$lt_cv_aix_libpath_"; then
10819     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10820   fi
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823     conftest$ac_exeext conftest.$ac_ext
10824   if test -z "$lt_cv_aix_libpath_"; then
10825     lt_cv_aix_libpath_="/usr/lib:/lib"
10826   fi
10827
10828 fi
10829
10830   aix_libpath=$lt_cv_aix_libpath_
10831 fi
10832
10833          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10834           # Warning - without using the other run time loading flags,
10835           # -berok will link without error, but may produce a broken library.
10836           no_undefined_flag=' ${wl}-bernotok'
10837           allow_undefined_flag=' ${wl}-berok'
10838           if test "$with_gnu_ld" = yes; then
10839             # We only use this code for GNU lds that support --whole-archive.
10840             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10841           else
10842             # Exported symbols can be pulled into shared objects from archives
10843             whole_archive_flag_spec='$convenience'
10844           fi
10845           archive_cmds_need_lc=yes
10846           # This is similar to how AIX traditionally builds its shared libraries.
10847           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'
10848         fi
10849       fi
10850       ;;
10851
10852     amigaos*)
10853       case $host_cpu in
10854       powerpc)
10855             # see comment about AmigaOS4 .so support
10856             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10857             archive_expsym_cmds=''
10858         ;;
10859       m68k)
10860             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)'
10861             hardcode_libdir_flag_spec='-L$libdir'
10862             hardcode_minus_L=yes
10863         ;;
10864       esac
10865       ;;
10866
10867     bsdi[45]*)
10868       export_dynamic_flag_spec=-rdynamic
10869       ;;
10870
10871     cygwin* | mingw* | pw32* | cegcc*)
10872       # When not using gcc, we currently assume that we are using
10873       # Microsoft Visual C++.
10874       # hardcode_libdir_flag_spec is actually meaningless, as there is
10875       # no search path for DLLs.
10876       case $cc_basename in
10877       cl*)
10878         # Native MSVC
10879         hardcode_libdir_flag_spec=' '
10880         allow_undefined_flag=unsupported
10881         always_export_symbols=yes
10882         file_list_spec='@'
10883         # Tell ltmain to make .lib files, not .a files.
10884         libext=lib
10885         # Tell ltmain to make .dll files, not .so files.
10886         shrext_cmds=".dll"
10887         # FIXME: Setting linknames here is a bad hack.
10888         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10889         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10890             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10891           else
10892             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10893           fi~
10894           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10895           linknames='
10896         # The linker will not automatically build a static lib if we build a DLL.
10897         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10898         enable_shared_with_static_runtimes=yes
10899         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10900         # Don't use ranlib
10901         old_postinstall_cmds='chmod 644 $oldlib'
10902         postlink_cmds='lt_outputfile="@OUTPUT@"~
10903           lt_tool_outputfile="@TOOL_OUTPUT@"~
10904           case $lt_outputfile in
10905             *.exe|*.EXE) ;;
10906             *)
10907               lt_outputfile="$lt_outputfile.exe"
10908               lt_tool_outputfile="$lt_tool_outputfile.exe"
10909               ;;
10910           esac~
10911           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10912             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10913             $RM "$lt_outputfile.manifest";
10914           fi'
10915         ;;
10916       *)
10917         # Assume MSVC wrapper
10918         hardcode_libdir_flag_spec=' '
10919         allow_undefined_flag=unsupported
10920         # Tell ltmain to make .lib files, not .a files.
10921         libext=lib
10922         # Tell ltmain to make .dll files, not .so files.
10923         shrext_cmds=".dll"
10924         # FIXME: Setting linknames here is a bad hack.
10925         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10926         # The linker will automatically build a .lib file if we build a DLL.
10927         old_archive_from_new_cmds='true'
10928         # FIXME: Should let the user specify the lib program.
10929         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10930         enable_shared_with_static_runtimes=yes
10931         ;;
10932       esac
10933       ;;
10934
10935     darwin* | rhapsody*)
10936
10937
10938   archive_cmds_need_lc=no
10939   hardcode_direct=no
10940   hardcode_automatic=yes
10941   hardcode_shlibpath_var=unsupported
10942   if test "$lt_cv_ld_force_load" = "yes"; then
10943     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\"`'
10944   else
10945     whole_archive_flag_spec=''
10946   fi
10947   link_all_deplibs=yes
10948   allow_undefined_flag="$_lt_dar_allow_undefined"
10949   case $cc_basename in
10950      ifort*) _lt_dar_can_shared=yes ;;
10951      *) _lt_dar_can_shared=$GCC ;;
10952   esac
10953   if test "$_lt_dar_can_shared" = "yes"; then
10954     output_verbose_link_cmd=func_echo_all
10955     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10956     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10957     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}"
10958     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}"
10959
10960   else
10961   ld_shlibs=no
10962   fi
10963
10964       ;;
10965
10966     dgux*)
10967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968       hardcode_libdir_flag_spec='-L$libdir'
10969       hardcode_shlibpath_var=no
10970       ;;
10971
10972     freebsd1*)
10973       ld_shlibs=no
10974       ;;
10975
10976     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10977     # support.  Future versions do this automatically, but an explicit c++rt0.o
10978     # does not break anything, and helps significantly (at the cost of a little
10979     # extra space).
10980     freebsd2.2*)
10981       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10982       hardcode_libdir_flag_spec='-R$libdir'
10983       hardcode_direct=yes
10984       hardcode_shlibpath_var=no
10985       ;;
10986
10987     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10988     freebsd2*)
10989       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10990       hardcode_direct=yes
10991       hardcode_minus_L=yes
10992       hardcode_shlibpath_var=no
10993       ;;
10994
10995     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10996     freebsd* | dragonfly*)
10997       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10998       hardcode_libdir_flag_spec='-R$libdir'
10999       hardcode_direct=yes
11000       hardcode_shlibpath_var=no
11001       ;;
11002
11003     hpux9*)
11004       if test "$GCC" = yes; then
11005         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'
11006       else
11007         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'
11008       fi
11009       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11010       hardcode_libdir_separator=:
11011       hardcode_direct=yes
11012
11013       # hardcode_minus_L: Not really in the search PATH,
11014       # but as the default location of the library.
11015       hardcode_minus_L=yes
11016       export_dynamic_flag_spec='${wl}-E'
11017       ;;
11018
11019     hpux10*)
11020       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11021         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11022       else
11023         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11024       fi
11025       if test "$with_gnu_ld" = no; then
11026         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11027         hardcode_libdir_flag_spec_ld='+b $libdir'
11028         hardcode_libdir_separator=:
11029         hardcode_direct=yes
11030         hardcode_direct_absolute=yes
11031         export_dynamic_flag_spec='${wl}-E'
11032         # hardcode_minus_L: Not really in the search PATH,
11033         # but as the default location of the library.
11034         hardcode_minus_L=yes
11035       fi
11036       ;;
11037
11038     hpux11*)
11039       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11040         case $host_cpu in
11041         hppa*64*)
11042           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11043           ;;
11044         ia64*)
11045           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11046           ;;
11047         *)
11048           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049           ;;
11050         esac
11051       else
11052         case $host_cpu in
11053         hppa*64*)
11054           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055           ;;
11056         ia64*)
11057           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11058           ;;
11059         *)
11060
11061           # Older versions of the 11.00 compiler do not understand -b yet
11062           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11063           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11064 $as_echo_n "checking if $CC understands -b... " >&6; }
11065 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068   lt_cv_prog_compiler__b=no
11069    save_LDFLAGS="$LDFLAGS"
11070    LDFLAGS="$LDFLAGS -b"
11071    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11072    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11073      # The linker can only warn and ignore the option if not recognized
11074      # So say no if there are warnings
11075      if test -s conftest.err; then
11076        # Append any errors to the config.log.
11077        cat conftest.err 1>&5
11078        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11079        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080        if diff conftest.exp conftest.er2 >/dev/null; then
11081          lt_cv_prog_compiler__b=yes
11082        fi
11083      else
11084        lt_cv_prog_compiler__b=yes
11085      fi
11086    fi
11087    $RM -r conftest*
11088    LDFLAGS="$save_LDFLAGS"
11089
11090 fi
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11092 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11093
11094 if test x"$lt_cv_prog_compiler__b" = xyes; then
11095     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11096 else
11097     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11098 fi
11099
11100           ;;
11101         esac
11102       fi
11103       if test "$with_gnu_ld" = no; then
11104         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11105         hardcode_libdir_separator=:
11106
11107         case $host_cpu in
11108         hppa*64*|ia64*)
11109           hardcode_direct=no
11110           hardcode_shlibpath_var=no
11111           ;;
11112         *)
11113           hardcode_direct=yes
11114           hardcode_direct_absolute=yes
11115           export_dynamic_flag_spec='${wl}-E'
11116
11117           # hardcode_minus_L: Not really in the search PATH,
11118           # but as the default location of the library.
11119           hardcode_minus_L=yes
11120           ;;
11121         esac
11122       fi
11123       ;;
11124
11125     irix5* | irix6* | nonstopux*)
11126       if test "$GCC" = yes; then
11127         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'
11128         # Try to use the -exported_symbol ld option, if it does not
11129         # work, assume that -exports_file does not work either and
11130         # implicitly export all symbols.
11131         # This should be the same for all languages, so no per-tag cache variable.
11132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11133 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11134 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   save_LDFLAGS="$LDFLAGS"
11138            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11139            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h.  */
11141 int foo (void) { return 0; }
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144   lt_cv_irix_exported_symbol=yes
11145 else
11146   lt_cv_irix_exported_symbol=no
11147 fi
11148 rm -f core conftest.err conftest.$ac_objext \
11149     conftest$ac_exeext conftest.$ac_ext
11150            LDFLAGS="$save_LDFLAGS"
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11153 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11154         if test "$lt_cv_irix_exported_symbol" = yes; then
11155           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'
11156         fi
11157       else
11158         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'
11159         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'
11160       fi
11161       archive_cmds_need_lc='no'
11162       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11163       hardcode_libdir_separator=:
11164       inherit_rpath=yes
11165       link_all_deplibs=yes
11166       ;;
11167
11168     netbsd*)
11169       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11170         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11171       else
11172         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11173       fi
11174       hardcode_libdir_flag_spec='-R$libdir'
11175       hardcode_direct=yes
11176       hardcode_shlibpath_var=no
11177       ;;
11178
11179     newsos6)
11180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11181       hardcode_direct=yes
11182       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11183       hardcode_libdir_separator=:
11184       hardcode_shlibpath_var=no
11185       ;;
11186
11187     *nto* | *qnx*)
11188       ;;
11189
11190     openbsd*)
11191       if test -f /usr/libexec/ld.so; then
11192         hardcode_direct=yes
11193         hardcode_shlibpath_var=no
11194         hardcode_direct_absolute=yes
11195         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11196           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11197           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11198           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11199           export_dynamic_flag_spec='${wl}-E'
11200         else
11201           case $host_os in
11202            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11203              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11204              hardcode_libdir_flag_spec='-R$libdir'
11205              ;;
11206            *)
11207              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11209              ;;
11210           esac
11211         fi
11212       else
11213         ld_shlibs=no
11214       fi
11215       ;;
11216
11217     os2*)
11218       hardcode_libdir_flag_spec='-L$libdir'
11219       hardcode_minus_L=yes
11220       allow_undefined_flag=unsupported
11221       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'
11222       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11223       ;;
11224
11225     osf3*)
11226       if test "$GCC" = yes; then
11227         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11228         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'
11229       else
11230         allow_undefined_flag=' -expect_unresolved \*'
11231         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'
11232       fi
11233       archive_cmds_need_lc='no'
11234       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11235       hardcode_libdir_separator=:
11236       ;;
11237
11238     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11239       if test "$GCC" = yes; then
11240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11241         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'
11242         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11243       else
11244         allow_undefined_flag=' -expect_unresolved \*'
11245         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'
11246         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~
11247         $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'
11248
11249         # Both c and cxx compiler support -rpath directly
11250         hardcode_libdir_flag_spec='-rpath $libdir'
11251       fi
11252       archive_cmds_need_lc='no'
11253       hardcode_libdir_separator=:
11254       ;;
11255
11256     solaris*)
11257       no_undefined_flag=' -z defs'
11258       if test "$GCC" = yes; then
11259         wlarc='${wl}'
11260         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11261         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11262           $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'
11263       else
11264         case `$CC -V 2>&1` in
11265         *"Compilers 5.0"*)
11266           wlarc=''
11267           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11269           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11270           ;;
11271         *)
11272           wlarc='${wl}'
11273           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11274           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11275           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11276           ;;
11277         esac
11278       fi
11279       hardcode_libdir_flag_spec='-R$libdir'
11280       hardcode_shlibpath_var=no
11281       case $host_os in
11282       solaris2.[0-5] | solaris2.[0-5].*) ;;
11283       *)
11284         # The compiler driver will combine and reorder linker options,
11285         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11286         # but is careful enough not to reorder.
11287         # Supported since Solaris 2.6 (maybe 2.5.1?)
11288         if test "$GCC" = yes; then
11289           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11290         else
11291           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11292         fi
11293         ;;
11294       esac
11295       link_all_deplibs=yes
11296       ;;
11297
11298     sunos4*)
11299       if test "x$host_vendor" = xsequent; then
11300         # Use $CC to link under sequent, because it throws in some extra .o
11301         # files that make .init and .fini sections work.
11302         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11303       else
11304         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11305       fi
11306       hardcode_libdir_flag_spec='-L$libdir'
11307       hardcode_direct=yes
11308       hardcode_minus_L=yes
11309       hardcode_shlibpath_var=no
11310       ;;
11311
11312     sysv4)
11313       case $host_vendor in
11314         sni)
11315           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11316           hardcode_direct=yes # is this really true???
11317         ;;
11318         siemens)
11319           ## LD is ld it makes a PLAMLIB
11320           ## CC just makes a GrossModule.
11321           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11322           reload_cmds='$CC -r -o $output$reload_objs'
11323           hardcode_direct=no
11324         ;;
11325         motorola)
11326           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11327           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11328         ;;
11329       esac
11330       runpath_var='LD_RUN_PATH'
11331       hardcode_shlibpath_var=no
11332       ;;
11333
11334     sysv4.3*)
11335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336       hardcode_shlibpath_var=no
11337       export_dynamic_flag_spec='-Bexport'
11338       ;;
11339
11340     sysv4*MP*)
11341       if test -d /usr/nec; then
11342         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343         hardcode_shlibpath_var=no
11344         runpath_var=LD_RUN_PATH
11345         hardcode_runpath_var=yes
11346         ld_shlibs=yes
11347       fi
11348       ;;
11349
11350     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11351       no_undefined_flag='${wl}-z,text'
11352       archive_cmds_need_lc=no
11353       hardcode_shlibpath_var=no
11354       runpath_var='LD_RUN_PATH'
11355
11356       if test "$GCC" = yes; then
11357         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11359       else
11360         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11361         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11362       fi
11363       ;;
11364
11365     sysv5* | sco3.2v5* | sco5v6*)
11366       # Note: We can NOT use -z defs as we might desire, because we do not
11367       # link with -lc, and that would cause any symbols used from libc to
11368       # always be unresolved, which means just about no library would
11369       # ever link correctly.  If we're not using GNU ld we use -z text
11370       # though, which does catch some bad symbols but isn't as heavy-handed
11371       # as -z defs.
11372       no_undefined_flag='${wl}-z,text'
11373       allow_undefined_flag='${wl}-z,nodefs'
11374       archive_cmds_need_lc=no
11375       hardcode_shlibpath_var=no
11376       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11377       hardcode_libdir_separator=':'
11378       link_all_deplibs=yes
11379       export_dynamic_flag_spec='${wl}-Bexport'
11380       runpath_var='LD_RUN_PATH'
11381
11382       if test "$GCC" = yes; then
11383         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11385       else
11386         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388       fi
11389       ;;
11390
11391     uts4*)
11392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11393       hardcode_libdir_flag_spec='-L$libdir'
11394       hardcode_shlibpath_var=no
11395       ;;
11396
11397     *)
11398       ld_shlibs=no
11399       ;;
11400     esac
11401
11402     if test x$host_vendor = xsni; then
11403       case $host in
11404       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11405         export_dynamic_flag_spec='${wl}-Blargedynsym'
11406         ;;
11407       esac
11408     fi
11409   fi
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11412 $as_echo "$ld_shlibs" >&6; }
11413 test "$ld_shlibs" = no && can_build_shared=no
11414
11415 with_gnu_ld=$with_gnu_ld
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431 #
11432 # Do we need to explicitly link libc?
11433 #
11434 case "x$archive_cmds_need_lc" in
11435 x|xyes)
11436   # Assume -lc should be added
11437   archive_cmds_need_lc=yes
11438
11439   if test "$enable_shared" = yes && test "$GCC" = yes; then
11440     case $archive_cmds in
11441     *'~'*)
11442       # FIXME: we may have to deal with multi-command sequences.
11443       ;;
11444     '$CC '*)
11445       # Test whether the compiler implicitly links with -lc since on some
11446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11447       # to ld, don't add -lc before -lgcc.
11448       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11450 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453   $RM conftest*
11454         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11455
11456         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11457   (eval $ac_compile) 2>&5
11458   ac_status=$?
11459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460   test $ac_status = 0; } 2>conftest.err; then
11461           soname=conftest
11462           lib=conftest
11463           libobjs=conftest.$ac_objext
11464           deplibs=
11465           wl=$lt_prog_compiler_wl
11466           pic_flag=$lt_prog_compiler_pic
11467           compiler_flags=-v
11468           linker_flags=-v
11469           verstring=
11470           output_objdir=.
11471           libname=conftest
11472           lt_save_allow_undefined_flag=$allow_undefined_flag
11473           allow_undefined_flag=
11474           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11475   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11476   ac_status=$?
11477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478   test $ac_status = 0; }
11479           then
11480             lt_cv_archive_cmds_need_lc=no
11481           else
11482             lt_cv_archive_cmds_need_lc=yes
11483           fi
11484           allow_undefined_flag=$lt_save_allow_undefined_flag
11485         else
11486           cat conftest.err 1>&5
11487         fi
11488         $RM conftest*
11489
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11492 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11493       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11494       ;;
11495     esac
11496   fi
11497   ;;
11498 esac
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11658
11659 if test "$GCC" = yes; then
11660   case $host_os in
11661     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11662     *) lt_awk_arg="/^libraries:/" ;;
11663   esac
11664   case $host_os in
11665     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11666     *) lt_sed_strip_eq="s,=/,/,g" ;;
11667   esac
11668   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11669   case $lt_search_path_spec in
11670   *\;*)
11671     # if the path contains ";" then we assume it to be the separator
11672     # otherwise default to the standard path separator (i.e. ":") - it is
11673     # assumed that no part of a normal pathname contains ";" but that should
11674     # okay in the real world where ";" in dirpaths is itself problematic.
11675     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11676     ;;
11677   *)
11678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11679     ;;
11680   esac
11681   # Ok, now we have the path, separated by spaces, we can step through it
11682   # and add multilib dir if necessary.
11683   lt_tmp_lt_search_path_spec=
11684   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11685   for lt_sys_path in $lt_search_path_spec; do
11686     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11687       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11688     else
11689       test -d "$lt_sys_path" && \
11690         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11691     fi
11692   done
11693   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11694 BEGIN {RS=" "; FS="/|\n";} {
11695   lt_foo="";
11696   lt_count=0;
11697   for (lt_i = NF; lt_i > 0; lt_i--) {
11698     if ($lt_i != "" && $lt_i != ".") {
11699       if ($lt_i == "..") {
11700         lt_count++;
11701       } else {
11702         if (lt_count == 0) {
11703           lt_foo="/" $lt_i lt_foo;
11704         } else {
11705           lt_count--;
11706         }
11707       }
11708     }
11709   }
11710   if (lt_foo != "") { lt_freq[lt_foo]++; }
11711   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11712 }'`
11713   # AWK program above erroneously prepends '/' to C:/dos/paths
11714   # for these hosts.
11715   case $host_os in
11716     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11717       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11718   esac
11719   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11720 else
11721   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11722 fi
11723 library_names_spec=
11724 libname_spec='lib$name'
11725 soname_spec=
11726 shrext_cmds=".so"
11727 postinstall_cmds=
11728 postuninstall_cmds=
11729 finish_cmds=
11730 finish_eval=
11731 shlibpath_var=
11732 shlibpath_overrides_runpath=unknown
11733 version_type=none
11734 dynamic_linker="$host_os ld.so"
11735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11736 need_lib_prefix=unknown
11737 hardcode_into_libs=no
11738
11739 # when you set need_version to no, make sure it does not cause -set_version
11740 # flags to be left without arguments
11741 need_version=unknown
11742
11743 case $host_os in
11744 aix3*)
11745   version_type=linux
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11747   shlibpath_var=LIBPATH
11748
11749   # AIX 3 has no versioning support, so we append a major version to the name.
11750   soname_spec='${libname}${release}${shared_ext}$major'
11751   ;;
11752
11753 aix[4-9]*)
11754   version_type=linux
11755   need_lib_prefix=no
11756   need_version=no
11757   hardcode_into_libs=yes
11758   if test "$host_cpu" = ia64; then
11759     # AIX 5 supports IA64
11760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11761     shlibpath_var=LD_LIBRARY_PATH
11762   else
11763     # With GCC up to 2.95.x, collect2 would create an import file
11764     # for dependence libraries.  The import file would start with
11765     # the line `#! .'.  This would cause the generated library to
11766     # depend on `.', always an invalid library.  This was fixed in
11767     # development snapshots of GCC prior to 3.0.
11768     case $host_os in
11769       aix4 | aix4.[01] | aix4.[01].*)
11770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11771            echo ' yes '
11772            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11773         :
11774       else
11775         can_build_shared=no
11776       fi
11777       ;;
11778     esac
11779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11780     # soname into executable. Probably we can add versioning support to
11781     # collect2, so additional links can be useful in future.
11782     if test "$aix_use_runtimelinking" = yes; then
11783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11784       # instead of lib<name>.a to let people know that these are not
11785       # typical AIX shared libraries.
11786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787     else
11788       # We preserve .a as extension for shared libraries through AIX4.2
11789       # and later when we are not doing run time linking.
11790       library_names_spec='${libname}${release}.a $libname.a'
11791       soname_spec='${libname}${release}${shared_ext}$major'
11792     fi
11793     shlibpath_var=LIBPATH
11794   fi
11795   ;;
11796
11797 amigaos*)
11798   case $host_cpu in
11799   powerpc)
11800     # Since July 2007 AmigaOS4 officially supports .so libraries.
11801     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803     ;;
11804   m68k)
11805     library_names_spec='$libname.ixlibrary $libname.a'
11806     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11807     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'
11808     ;;
11809   esac
11810   ;;
11811
11812 beos*)
11813   library_names_spec='${libname}${shared_ext}'
11814   dynamic_linker="$host_os ld.so"
11815   shlibpath_var=LIBRARY_PATH
11816   ;;
11817
11818 bsdi[45]*)
11819   version_type=linux
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11827   # the default ld.so.conf also contains /usr/contrib/lib and
11828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11829   # libtool to hard-code these into programs
11830   ;;
11831
11832 cygwin* | mingw* | pw32* | cegcc*)
11833   version_type=windows
11834   shrext_cmds=".dll"
11835   need_version=no
11836   need_lib_prefix=no
11837
11838   case $GCC,$cc_basename in
11839   yes,*)
11840     # gcc
11841     library_names_spec='$libname.dll.a'
11842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11843     postinstall_cmds='base_file=`basename \${file}`~
11844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11845       dldir=$destdir/`dirname \$dlpath`~
11846       test -d \$dldir || mkdir -p \$dldir~
11847       $install_prog $dir/$dlname \$dldir/$dlname~
11848       chmod a+x \$dldir/$dlname~
11849       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11850         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11851       fi'
11852     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11853       dlpath=$dir/\$dldll~
11854        $RM \$dlpath'
11855     shlibpath_overrides_runpath=yes
11856
11857     case $host_os in
11858     cygwin*)
11859       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11860       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11861
11862       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11863       ;;
11864     mingw* | cegcc*)
11865       # MinGW DLLs use traditional 'lib' prefix
11866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867       ;;
11868     pw32*)
11869       # pw32 DLLs use 'pw' prefix rather than 'lib'
11870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11871       ;;
11872     esac
11873     dynamic_linker='Win32 ld.exe'
11874     ;;
11875
11876   *,cl*)
11877     # Native MSVC
11878     libname_spec='$name'
11879     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11880     library_names_spec='${libname}.dll.lib'
11881
11882     case $build_os in
11883     mingw*)
11884       sys_lib_search_path_spec=
11885       lt_save_ifs=$IFS
11886       IFS=';'
11887       for lt_path in $LIB
11888       do
11889         IFS=$lt_save_ifs
11890         # Let DOS variable expansion print the short 8.3 style file name.
11891         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11892         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11893       done
11894       IFS=$lt_save_ifs
11895       # Convert to MSYS style.
11896       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11897       ;;
11898     cygwin*)
11899       # Convert to unix form, then to dos form, then back to unix form
11900       # but this time dos style (no spaces!) so that the unix form looks
11901       # like /cygdrive/c/PROGRA~1:/cygdr...
11902       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11903       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11904       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11905       ;;
11906     *)
11907       sys_lib_search_path_spec="$LIB"
11908       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11909         # It is most probably a Windows format PATH.
11910         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11911       else
11912         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913       fi
11914       # FIXME: find the short name or the path components, as spaces are
11915       # common. (e.g. "Program Files" -> "PROGRA~1")
11916       ;;
11917     esac
11918
11919     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11920     postinstall_cmds='base_file=`basename \${file}`~
11921       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11922       dldir=$destdir/`dirname \$dlpath`~
11923       test -d \$dldir || mkdir -p \$dldir~
11924       $install_prog $dir/$dlname \$dldir/$dlname'
11925     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11926       dlpath=$dir/\$dldll~
11927        $RM \$dlpath'
11928     shlibpath_overrides_runpath=yes
11929     dynamic_linker='Win32 link.exe'
11930     ;;
11931
11932   *)
11933     # Assume MSVC wrapper
11934     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11935     dynamic_linker='Win32 ld.exe'
11936     ;;
11937   esac
11938   # FIXME: first we should search . and the directory the executable is in
11939   shlibpath_var=PATH
11940   ;;
11941
11942 darwin* | rhapsody*)
11943   dynamic_linker="$host_os dyld"
11944   version_type=darwin
11945   need_lib_prefix=no
11946   need_version=no
11947   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11948   soname_spec='${libname}${release}${major}$shared_ext'
11949   shlibpath_overrides_runpath=yes
11950   shlibpath_var=DYLD_LIBRARY_PATH
11951   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11952
11953   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11954   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11955   ;;
11956
11957 dgux*)
11958   version_type=linux
11959   need_lib_prefix=no
11960   need_version=no
11961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11962   soname_spec='${libname}${release}${shared_ext}$major'
11963   shlibpath_var=LD_LIBRARY_PATH
11964   ;;
11965
11966 freebsd1*)
11967   dynamic_linker=no
11968   ;;
11969
11970 freebsd* | dragonfly*)
11971   # DragonFly does not have aout.  When/if they implement a new
11972   # versioning mechanism, adjust this.
11973   if test -x /usr/bin/objformat; then
11974     objformat=`/usr/bin/objformat`
11975   else
11976     case $host_os in
11977     freebsd[123]*) objformat=aout ;;
11978     *) objformat=elf ;;
11979     esac
11980   fi
11981   version_type=freebsd-$objformat
11982   case $version_type in
11983     freebsd-elf*)
11984       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11985       need_version=no
11986       need_lib_prefix=no
11987       ;;
11988     freebsd-*)
11989       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11990       need_version=yes
11991       ;;
11992   esac
11993   shlibpath_var=LD_LIBRARY_PATH
11994   case $host_os in
11995   freebsd2*)
11996     shlibpath_overrides_runpath=yes
11997     ;;
11998   freebsd3.[01]* | freebsdelf3.[01]*)
11999     shlibpath_overrides_runpath=yes
12000     hardcode_into_libs=yes
12001     ;;
12002   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12003   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12004     shlibpath_overrides_runpath=no
12005     hardcode_into_libs=yes
12006     ;;
12007   *) # from 4.6 on, and DragonFly
12008     shlibpath_overrides_runpath=yes
12009     hardcode_into_libs=yes
12010     ;;
12011   esac
12012   ;;
12013
12014 gnu*)
12015   version_type=linux
12016   need_lib_prefix=no
12017   need_version=no
12018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12019   soname_spec='${libname}${release}${shared_ext}$major'
12020   shlibpath_var=LD_LIBRARY_PATH
12021   hardcode_into_libs=yes
12022   ;;
12023
12024 haiku*)
12025   version_type=linux
12026   need_lib_prefix=no
12027   need_version=no
12028   dynamic_linker="$host_os runtime_loader"
12029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12030   soname_spec='${libname}${release}${shared_ext}$major'
12031   shlibpath_var=LIBRARY_PATH
12032   shlibpath_overrides_runpath=yes
12033   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12034   hardcode_into_libs=yes
12035   ;;
12036
12037 hpux9* | hpux10* | hpux11*)
12038   # Give a soname corresponding to the major version so that dld.sl refuses to
12039   # link against other versions.
12040   version_type=sunos
12041   need_lib_prefix=no
12042   need_version=no
12043   case $host_cpu in
12044   ia64*)
12045     shrext_cmds='.so'
12046     hardcode_into_libs=yes
12047     dynamic_linker="$host_os dld.so"
12048     shlibpath_var=LD_LIBRARY_PATH
12049     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051     soname_spec='${libname}${release}${shared_ext}$major'
12052     if test "X$HPUX_IA64_MODE" = X32; then
12053       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12054     else
12055       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12056     fi
12057     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12058     ;;
12059   hppa*64*)
12060     shrext_cmds='.sl'
12061     hardcode_into_libs=yes
12062     dynamic_linker="$host_os dld.sl"
12063     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066     soname_spec='${libname}${release}${shared_ext}$major'
12067     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12069     ;;
12070   *)
12071     shrext_cmds='.sl'
12072     dynamic_linker="$host_os dld.sl"
12073     shlibpath_var=SHLIB_PATH
12074     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076     soname_spec='${libname}${release}${shared_ext}$major'
12077     ;;
12078   esac
12079   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12080   postinstall_cmds='chmod 555 $lib'
12081   # or fails outright, so override atomically:
12082   install_override_mode=555
12083   ;;
12084
12085 interix[3-9]*)
12086   version_type=linux
12087   need_lib_prefix=no
12088   need_version=no
12089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12090   soname_spec='${libname}${release}${shared_ext}$major'
12091   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12092   shlibpath_var=LD_LIBRARY_PATH
12093   shlibpath_overrides_runpath=no
12094   hardcode_into_libs=yes
12095   ;;
12096
12097 irix5* | irix6* | nonstopux*)
12098   case $host_os in
12099     nonstopux*) version_type=nonstopux ;;
12100     *)
12101         if test "$lt_cv_prog_gnu_ld" = yes; then
12102                 version_type=linux
12103         else
12104                 version_type=irix
12105         fi ;;
12106   esac
12107   need_lib_prefix=no
12108   need_version=no
12109   soname_spec='${libname}${release}${shared_ext}$major'
12110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12111   case $host_os in
12112   irix5* | nonstopux*)
12113     libsuff= shlibsuff=
12114     ;;
12115   *)
12116     case $LD in # libtool.m4 will add one of these switches to LD
12117     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12118       libsuff= shlibsuff= libmagic=32-bit;;
12119     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12120       libsuff=32 shlibsuff=N32 libmagic=N32;;
12121     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12122       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12123     *) libsuff= shlibsuff= libmagic=never-match;;
12124     esac
12125     ;;
12126   esac
12127   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12128   shlibpath_overrides_runpath=no
12129   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12130   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12131   hardcode_into_libs=yes
12132   ;;
12133
12134 # No shared lib support for Linux oldld, aout, or coff.
12135 linux*oldld* | linux*aout* | linux*coff*)
12136   dynamic_linker=no
12137   ;;
12138
12139 # This must be Linux ELF.
12140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141   version_type=linux
12142   need_lib_prefix=no
12143   need_version=no
12144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145   soname_spec='${libname}${release}${shared_ext}$major'
12146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12147   shlibpath_var=LD_LIBRARY_PATH
12148   shlibpath_overrides_runpath=no
12149
12150   # Some binutils ld are patched to set DT_RUNPATH
12151   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   lt_cv_shlibpath_overrides_runpath=no
12155     save_LDFLAGS=$LDFLAGS
12156     save_libdir=$libdir
12157     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12158          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h.  */
12161
12162 int
12163 main ()
12164 {
12165
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12172   lt_cv_shlibpath_overrides_runpath=yes
12173 fi
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext \
12176     conftest$ac_exeext conftest.$ac_ext
12177     LDFLAGS=$save_LDFLAGS
12178     libdir=$save_libdir
12179
12180 fi
12181
12182   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12183
12184   # This implies no fast_install, which is unacceptable.
12185   # Some rework will be needed to allow for fast_install
12186   # before this can be enabled.
12187   hardcode_into_libs=yes
12188
12189   # Append ld.so.conf contents to the search path
12190   if test -f /etc/ld.so.conf; then
12191     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' ' '`
12192     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12193   fi
12194
12195   # We used to test for /lib/ld.so.1 and disable shared libraries on
12196   # powerpc, because MkLinux only supported shared libraries with the
12197   # GNU dynamic linker.  Since this was broken with cross compilers,
12198   # most powerpc-linux boxes support dynamic linking these days and
12199   # people can always --disable-shared, the test was removed, and we
12200   # assume the GNU/Linux dynamic linker is in use.
12201   dynamic_linker='GNU/Linux ld.so'
12202   ;;
12203
12204 netbsd*)
12205   version_type=sunos
12206   need_lib_prefix=no
12207   need_version=no
12208   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211     dynamic_linker='NetBSD (a.out) ld.so'
12212   else
12213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214     soname_spec='${libname}${release}${shared_ext}$major'
12215     dynamic_linker='NetBSD ld.elf_so'
12216   fi
12217   shlibpath_var=LD_LIBRARY_PATH
12218   shlibpath_overrides_runpath=yes
12219   hardcode_into_libs=yes
12220   ;;
12221
12222 newsos6)
12223   version_type=linux
12224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225   shlibpath_var=LD_LIBRARY_PATH
12226   shlibpath_overrides_runpath=yes
12227   ;;
12228
12229 *nto* | *qnx*)
12230   version_type=qnx
12231   need_lib_prefix=no
12232   need_version=no
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234   soname_spec='${libname}${release}${shared_ext}$major'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   shlibpath_overrides_runpath=no
12237   hardcode_into_libs=yes
12238   dynamic_linker='ldqnx.so'
12239   ;;
12240
12241 openbsd*)
12242   version_type=sunos
12243   sys_lib_dlsearch_path_spec="/usr/lib"
12244   need_lib_prefix=no
12245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12246   case $host_os in
12247     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12248     *)                          need_version=no  ;;
12249   esac
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12254     case $host_os in
12255       openbsd2.[89] | openbsd2.[89].*)
12256         shlibpath_overrides_runpath=no
12257         ;;
12258       *)
12259         shlibpath_overrides_runpath=yes
12260         ;;
12261       esac
12262   else
12263     shlibpath_overrides_runpath=yes
12264   fi
12265   ;;
12266
12267 os2*)
12268   libname_spec='$name'
12269   shrext_cmds=".dll"
12270   need_lib_prefix=no
12271   library_names_spec='$libname${shared_ext} $libname.a'
12272   dynamic_linker='OS/2 ld.exe'
12273   shlibpath_var=LIBPATH
12274   ;;
12275
12276 osf3* | osf4* | osf5*)
12277   version_type=osf
12278   need_lib_prefix=no
12279   need_version=no
12280   soname_spec='${libname}${release}${shared_ext}$major'
12281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282   shlibpath_var=LD_LIBRARY_PATH
12283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12285   ;;
12286
12287 rdos*)
12288   dynamic_linker=no
12289   ;;
12290
12291 solaris*)
12292   version_type=linux
12293   need_lib_prefix=no
12294   need_version=no
12295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296   soname_spec='${libname}${release}${shared_ext}$major'
12297   shlibpath_var=LD_LIBRARY_PATH
12298   shlibpath_overrides_runpath=yes
12299   hardcode_into_libs=yes
12300   # ldd complains unless libraries are executable
12301   postinstall_cmds='chmod +x $lib'
12302   ;;
12303
12304 sunos4*)
12305   version_type=sunos
12306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12308   shlibpath_var=LD_LIBRARY_PATH
12309   shlibpath_overrides_runpath=yes
12310   if test "$with_gnu_ld" = yes; then
12311     need_lib_prefix=no
12312   fi
12313   need_version=yes
12314   ;;
12315
12316 sysv4 | sysv4.3*)
12317   version_type=linux
12318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319   soname_spec='${libname}${release}${shared_ext}$major'
12320   shlibpath_var=LD_LIBRARY_PATH
12321   case $host_vendor in
12322     sni)
12323       shlibpath_overrides_runpath=no
12324       need_lib_prefix=no
12325       runpath_var=LD_RUN_PATH
12326       ;;
12327     siemens)
12328       need_lib_prefix=no
12329       ;;
12330     motorola)
12331       need_lib_prefix=no
12332       need_version=no
12333       shlibpath_overrides_runpath=no
12334       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12335       ;;
12336   esac
12337   ;;
12338
12339 sysv4*MP*)
12340   if test -d /usr/nec ;then
12341     version_type=linux
12342     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12343     soname_spec='$libname${shared_ext}.$major'
12344     shlibpath_var=LD_LIBRARY_PATH
12345   fi
12346   ;;
12347
12348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12349   version_type=freebsd-elf
12350   need_lib_prefix=no
12351   need_version=no
12352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12353   soname_spec='${libname}${release}${shared_ext}$major'
12354   shlibpath_var=LD_LIBRARY_PATH
12355   shlibpath_overrides_runpath=yes
12356   hardcode_into_libs=yes
12357   if test "$with_gnu_ld" = yes; then
12358     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12359   else
12360     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12361     case $host_os in
12362       sco3.2v5*)
12363         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12364         ;;
12365     esac
12366   fi
12367   sys_lib_dlsearch_path_spec='/usr/lib'
12368   ;;
12369
12370 tpf*)
12371   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12372   version_type=linux
12373   need_lib_prefix=no
12374   need_version=no
12375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376   shlibpath_var=LD_LIBRARY_PATH
12377   shlibpath_overrides_runpath=no
12378   hardcode_into_libs=yes
12379   ;;
12380
12381 uts4*)
12382   version_type=linux
12383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384   soname_spec='${libname}${release}${shared_ext}$major'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   ;;
12387
12388 *)
12389   dynamic_linker=no
12390   ;;
12391 esac
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12393 $as_echo "$dynamic_linker" >&6; }
12394 test "$dynamic_linker" = no && can_build_shared=no
12395
12396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12397 if test "$GCC" = yes; then
12398   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12399 fi
12400
12401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12402   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12403 fi
12404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12405   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12406 fi
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12501 hardcode_action=
12502 if test -n "$hardcode_libdir_flag_spec" ||
12503    test -n "$runpath_var" ||
12504    test "X$hardcode_automatic" = "Xyes" ; then
12505
12506   # We can hardcode non-existent directories.
12507   if test "$hardcode_direct" != no &&
12508      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12509      # have to relink, otherwise we might link with an installed library
12510      # when we should be linking with a yet-to-be-installed one
12511      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12512      test "$hardcode_minus_L" != no; then
12513     # Linking always hardcodes the temporary library directory.
12514     hardcode_action=relink
12515   else
12516     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12517     hardcode_action=immediate
12518   fi
12519 else
12520   # We cannot hardcode anything, or else we can only hardcode existing
12521   # directories.
12522   hardcode_action=unsupported
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12525 $as_echo "$hardcode_action" >&6; }
12526
12527 if test "$hardcode_action" = relink ||
12528    test "$inherit_rpath" = yes; then
12529   # Fast installation is not supported
12530   enable_fast_install=no
12531 elif test "$shlibpath_overrides_runpath" = yes ||
12532      test "$enable_shared" = no; then
12533   # Fast installation is not necessary
12534   enable_fast_install=needless
12535 fi
12536
12537
12538
12539
12540
12541
12542   if test "x$enable_dlopen" != xyes; then
12543   enable_dlopen=unknown
12544   enable_dlopen_self=unknown
12545   enable_dlopen_self_static=unknown
12546 else
12547   lt_cv_dlopen=no
12548   lt_cv_dlopen_libs=
12549
12550   case $host_os in
12551   beos*)
12552     lt_cv_dlopen="load_add_on"
12553     lt_cv_dlopen_libs=
12554     lt_cv_dlopen_self=yes
12555     ;;
12556
12557   mingw* | pw32* | cegcc*)
12558     lt_cv_dlopen="LoadLibrary"
12559     lt_cv_dlopen_libs=
12560     ;;
12561
12562   cygwin*)
12563     lt_cv_dlopen="dlopen"
12564     lt_cv_dlopen_libs=
12565     ;;
12566
12567   darwin*)
12568   # if libdl is installed we need to link against it
12569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-ldl  $LIBS"
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h.  */
12578
12579 /* Override any GCC internal prototype to avoid an error.
12580    Use char because int might match the return type of a GCC
12581    builtin and then its argument prototype would still apply.  */
12582 #ifdef __cplusplus
12583 extern "C"
12584 #endif
12585 char dlopen ();
12586 int
12587 main ()
12588 {
12589 return dlopen ();
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595   ac_cv_lib_dl_dlopen=yes
12596 else
12597   ac_cv_lib_dl_dlopen=no
12598 fi
12599 rm -f core conftest.err conftest.$ac_objext \
12600     conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12605 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12606   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12607 else
12608
12609     lt_cv_dlopen="dyld"
12610     lt_cv_dlopen_libs=
12611     lt_cv_dlopen_self=yes
12612
12613 fi
12614
12615     ;;
12616
12617   *)
12618     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12619 if test "x$ac_cv_func_shl_load" = x""yes; then :
12620   lt_cv_dlopen="shl_load"
12621 else
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12623 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12624 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-ldld  $LIBS"
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h.  */
12631
12632 /* Override any GCC internal prototype to avoid an error.
12633    Use char because int might match the return type of a GCC
12634    builtin and then its argument prototype would still apply.  */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char shl_load ();
12639 int
12640 main ()
12641 {
12642 return shl_load ();
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"; then :
12648   ac_cv_lib_dld_shl_load=yes
12649 else
12650   ac_cv_lib_dld_shl_load=no
12651 fi
12652 rm -f core conftest.err conftest.$ac_objext \
12653     conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12658 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12659   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12660 else
12661   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12662 if test "x$ac_cv_func_dlopen" = x""yes; then :
12663   lt_cv_dlopen="dlopen"
12664 else
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-ldl  $LIBS"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h.  */
12674
12675 /* Override any GCC internal prototype to avoid an error.
12676    Use char because int might match the return type of a GCC
12677    builtin and then its argument prototype would still apply.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 char dlopen ();
12682 int
12683 main ()
12684 {
12685 return dlopen ();
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"; then :
12691   ac_cv_lib_dl_dlopen=yes
12692 else
12693   ac_cv_lib_dl_dlopen=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext \
12696     conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12701 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12703 else
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12706 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-lsvld  $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h.  */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715    Use char because int might match the return type of a GCC
12716    builtin and then its argument prototype would still apply.  */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char dlopen ();
12721 int
12722 main ()
12723 {
12724 return dlopen ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_link "$LINENO"; then :
12730   ac_cv_lib_svld_dlopen=yes
12731 else
12732   ac_cv_lib_svld_dlopen=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735     conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12740 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12742 else
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748   ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-ldld  $LIBS"
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752
12753 /* Override any GCC internal prototype to avoid an error.
12754    Use char because int might match the return type of a GCC
12755    builtin and then its argument prototype would still apply.  */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 char dld_link ();
12760 int
12761 main ()
12762 {
12763 return dld_link ();
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_link "$LINENO"; then :
12769   ac_cv_lib_dld_dld_link=yes
12770 else
12771   ac_cv_lib_dld_dld_link=no
12772 fi
12773 rm -f core conftest.err conftest.$ac_objext \
12774     conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12779 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12780   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12781 fi
12782
12783
12784 fi
12785
12786
12787 fi
12788
12789
12790 fi
12791
12792
12793 fi
12794
12795
12796 fi
12797
12798     ;;
12799   esac
12800
12801   if test "x$lt_cv_dlopen" != xno; then
12802     enable_dlopen=yes
12803   else
12804     enable_dlopen=no
12805   fi
12806
12807   case $lt_cv_dlopen in
12808   dlopen)
12809     save_CPPFLAGS="$CPPFLAGS"
12810     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12811
12812     save_LDFLAGS="$LDFLAGS"
12813     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12814
12815     save_LIBS="$LIBS"
12816     LIBS="$lt_cv_dlopen_libs $LIBS"
12817
12818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12820 if test "${lt_cv_dlopen_self+set}" = set; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823           if test "$cross_compiling" = yes; then :
12824   lt_cv_dlopen_self=cross
12825 else
12826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827   lt_status=$lt_dlunknown
12828   cat > conftest.$ac_ext <<_LT_EOF
12829 #line $LINENO "configure"
12830 #include "confdefs.h"
12831
12832 #if HAVE_DLFCN_H
12833 #include <dlfcn.h>
12834 #endif
12835
12836 #include <stdio.h>
12837
12838 #ifdef RTLD_GLOBAL
12839 #  define LT_DLGLOBAL           RTLD_GLOBAL
12840 #else
12841 #  ifdef DL_GLOBAL
12842 #    define LT_DLGLOBAL         DL_GLOBAL
12843 #  else
12844 #    define LT_DLGLOBAL         0
12845 #  endif
12846 #endif
12847
12848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849    find out it does not work in some platform. */
12850 #ifndef LT_DLLAZY_OR_NOW
12851 #  ifdef RTLD_LAZY
12852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12853 #  else
12854 #    ifdef DL_LAZY
12855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12856 #    else
12857 #      ifdef RTLD_NOW
12858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12859 #      else
12860 #        ifdef DL_NOW
12861 #          define LT_DLLAZY_OR_NOW      DL_NOW
12862 #        else
12863 #          define LT_DLLAZY_OR_NOW      0
12864 #        endif
12865 #      endif
12866 #    endif
12867 #  endif
12868 #endif
12869
12870 /* When -fvisbility=hidden is used, assume the code has been annotated
12871    correspondingly for the symbols needed.  */
12872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12873 int fnord () __attribute__((visibility("default")));
12874 #endif
12875
12876 int fnord () { return 42; }
12877 int main ()
12878 {
12879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12880   int status = $lt_dlunknown;
12881
12882   if (self)
12883     {
12884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12885       else
12886         {
12887           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12888           else puts (dlerror ());
12889         }
12890       /* dlclose (self); */
12891     }
12892   else
12893     puts (dlerror ());
12894
12895   return status;
12896 }
12897 _LT_EOF
12898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12899   (eval $ac_link) 2>&5
12900   ac_status=$?
12901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12903     (./conftest; exit; ) >&5 2>/dev/null
12904     lt_status=$?
12905     case x$lt_status in
12906       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12907       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12908       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12909     esac
12910   else :
12911     # compilation failed
12912     lt_cv_dlopen_self=no
12913   fi
12914 fi
12915 rm -fr conftest*
12916
12917
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12920 $as_echo "$lt_cv_dlopen_self" >&6; }
12921
12922     if test "x$lt_cv_dlopen_self" = xyes; then
12923       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12926 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929           if test "$cross_compiling" = yes; then :
12930   lt_cv_dlopen_self_static=cross
12931 else
12932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12933   lt_status=$lt_dlunknown
12934   cat > conftest.$ac_ext <<_LT_EOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12937
12938 #if HAVE_DLFCN_H
12939 #include <dlfcn.h>
12940 #endif
12941
12942 #include <stdio.h>
12943
12944 #ifdef RTLD_GLOBAL
12945 #  define LT_DLGLOBAL           RTLD_GLOBAL
12946 #else
12947 #  ifdef DL_GLOBAL
12948 #    define LT_DLGLOBAL         DL_GLOBAL
12949 #  else
12950 #    define LT_DLGLOBAL         0
12951 #  endif
12952 #endif
12953
12954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12955    find out it does not work in some platform. */
12956 #ifndef LT_DLLAZY_OR_NOW
12957 #  ifdef RTLD_LAZY
12958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12959 #  else
12960 #    ifdef DL_LAZY
12961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12962 #    else
12963 #      ifdef RTLD_NOW
12964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12965 #      else
12966 #        ifdef DL_NOW
12967 #          define LT_DLLAZY_OR_NOW      DL_NOW
12968 #        else
12969 #          define LT_DLLAZY_OR_NOW      0
12970 #        endif
12971 #      endif
12972 #    endif
12973 #  endif
12974 #endif
12975
12976 /* When -fvisbility=hidden is used, assume the code has been annotated
12977    correspondingly for the symbols needed.  */
12978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12979 int fnord () __attribute__((visibility("default")));
12980 #endif
12981
12982 int fnord () { return 42; }
12983 int main ()
12984 {
12985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12986   int status = $lt_dlunknown;
12987
12988   if (self)
12989     {
12990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12991       else
12992         {
12993           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12994           else puts (dlerror ());
12995         }
12996       /* dlclose (self); */
12997     }
12998   else
12999     puts (dlerror ());
13000
13001   return status;
13002 }
13003 _LT_EOF
13004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13005   (eval $ac_link) 2>&5
13006   ac_status=$?
13007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13009     (./conftest; exit; ) >&5 2>/dev/null
13010     lt_status=$?
13011     case x$lt_status in
13012       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13013       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13014       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13015     esac
13016   else :
13017     # compilation failed
13018     lt_cv_dlopen_self_static=no
13019   fi
13020 fi
13021 rm -fr conftest*
13022
13023
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13027     fi
13028
13029     CPPFLAGS="$save_CPPFLAGS"
13030     LDFLAGS="$save_LDFLAGS"
13031     LIBS="$save_LIBS"
13032     ;;
13033   esac
13034
13035   case $lt_cv_dlopen_self in
13036   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13037   *) enable_dlopen_self=unknown ;;
13038   esac
13039
13040   case $lt_cv_dlopen_self_static in
13041   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13042   *) enable_dlopen_self_static=unknown ;;
13043   esac
13044 fi
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062 striplib=
13063 old_striplib=
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13067   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13068   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13070 $as_echo "yes" >&6; }
13071 else
13072 # FIXME - insert some real tests, host_os isn't really good enough
13073   case $host_os in
13074   darwin*)
13075     if test -n "$STRIP" ; then
13076       striplib="$STRIP -x"
13077       old_striplib="$STRIP -S"
13078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13080     else
13081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083     fi
13084     ;;
13085   *)
13086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088     ;;
13089   esac
13090 fi
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103   # Report which library types will actually be built
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13107 $as_echo "$can_build_shared" >&6; }
13108
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13110 $as_echo_n "checking whether to build shared libraries... " >&6; }
13111   test "$can_build_shared" = "no" && enable_shared=no
13112
13113   # On AIX, shared libraries and static libraries use the same namespace, and
13114   # are all built from PIC.
13115   case $host_os in
13116   aix3*)
13117     test "$enable_shared" = yes && enable_static=no
13118     if test -n "$RANLIB"; then
13119       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13120       postinstall_cmds='$RANLIB $lib'
13121     fi
13122     ;;
13123
13124   aix[4-9]*)
13125     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13126       test "$enable_shared" = yes && enable_static=no
13127     fi
13128     ;;
13129   esac
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13131 $as_echo "$enable_shared" >&6; }
13132
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13134 $as_echo_n "checking whether to build static libraries... " >&6; }
13135   # Make sure either enable_shared or enable_static is yes.
13136   test "$enable_shared" = yes || enable_static=yes
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13138 $as_echo "$enable_static" >&6; }
13139
13140
13141
13142
13143 fi
13144 ac_ext=c
13145 ac_cpp='$CPP $CPPFLAGS'
13146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13149
13150 CC="$lt_save_CC"
13151
13152       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13153     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13154     (test "X$CXX" != "Xg++"))) ; then
13155   ac_ext=cpp
13156 ac_cpp='$CXXCPP $CPPFLAGS'
13157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13161 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13162 if test -z "$CXXCPP"; then
13163   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166       # Double quotes because CXXCPP needs to be expanded
13167     for CXXCPP in "$CXX -E" "/lib/cpp"
13168     do
13169       ac_preproc_ok=false
13170 for ac_cxx_preproc_warn_flag in '' yes
13171 do
13172   # Use a header file that comes with gcc, so configuring glibc
13173   # with a fresh cross-compiler works.
13174   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175   # <limits.h> exists even on freestanding compilers.
13176   # On the NeXT, cc -E runs the code through the compiler's parser,
13177   # not just through cpp. "Syntax error" is here to catch this case.
13178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h.  */
13180 #ifdef __STDC__
13181 # include <limits.h>
13182 #else
13183 # include <assert.h>
13184 #endif
13185                      Syntax error
13186 _ACEOF
13187 if ac_fn_cxx_try_cpp "$LINENO"; then :
13188
13189 else
13190   # Broken: fails on valid input.
13191 continue
13192 fi
13193 rm -f conftest.err conftest.i conftest.$ac_ext
13194
13195   # OK, works on sane cases.  Now check whether nonexistent headers
13196   # can be detected and how.
13197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199 #include <ac_nonexistent.h>
13200 _ACEOF
13201 if ac_fn_cxx_try_cpp "$LINENO"; then :
13202   # Broken: success on invalid input.
13203 continue
13204 else
13205   # Passes both tests.
13206 ac_preproc_ok=:
13207 break
13208 fi
13209 rm -f conftest.err conftest.i conftest.$ac_ext
13210
13211 done
13212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13213 rm -f conftest.i conftest.err conftest.$ac_ext
13214 if $ac_preproc_ok; then :
13215   break
13216 fi
13217
13218     done
13219     ac_cv_prog_CXXCPP=$CXXCPP
13220
13221 fi
13222   CXXCPP=$ac_cv_prog_CXXCPP
13223 else
13224   ac_cv_prog_CXXCPP=$CXXCPP
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13227 $as_echo "$CXXCPP" >&6; }
13228 ac_preproc_ok=false
13229 for ac_cxx_preproc_warn_flag in '' yes
13230 do
13231   # Use a header file that comes with gcc, so configuring glibc
13232   # with a fresh cross-compiler works.
13233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234   # <limits.h> exists even on freestanding compilers.
13235   # On the NeXT, cc -E runs the code through the compiler's parser,
13236   # not just through cpp. "Syntax error" is here to catch this case.
13237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h.  */
13239 #ifdef __STDC__
13240 # include <limits.h>
13241 #else
13242 # include <assert.h>
13243 #endif
13244                      Syntax error
13245 _ACEOF
13246 if ac_fn_cxx_try_cpp "$LINENO"; then :
13247
13248 else
13249   # Broken: fails on valid input.
13250 continue
13251 fi
13252 rm -f conftest.err conftest.i conftest.$ac_ext
13253
13254   # OK, works on sane cases.  Now check whether nonexistent headers
13255   # can be detected and how.
13256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258 #include <ac_nonexistent.h>
13259 _ACEOF
13260 if ac_fn_cxx_try_cpp "$LINENO"; then :
13261   # Broken: success on invalid input.
13262 continue
13263 else
13264   # Passes both tests.
13265 ac_preproc_ok=:
13266 break
13267 fi
13268 rm -f conftest.err conftest.i conftest.$ac_ext
13269
13270 done
13271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13272 rm -f conftest.i conftest.err conftest.$ac_ext
13273 if $ac_preproc_ok; then :
13274
13275 else
13276   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13278 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13279 See \`config.log' for more details" "$LINENO" 5 ; }
13280 fi
13281
13282 ac_ext=c
13283 ac_cpp='$CPP $CPPFLAGS'
13284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13287
13288 else
13289   _lt_caught_CXX_error=yes
13290 fi
13291
13292 ac_ext=cpp
13293 ac_cpp='$CXXCPP $CPPFLAGS'
13294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13297
13298 archive_cmds_need_lc_CXX=no
13299 allow_undefined_flag_CXX=
13300 always_export_symbols_CXX=no
13301 archive_expsym_cmds_CXX=
13302 compiler_needs_object_CXX=no
13303 export_dynamic_flag_spec_CXX=
13304 hardcode_direct_CXX=no
13305 hardcode_direct_absolute_CXX=no
13306 hardcode_libdir_flag_spec_CXX=
13307 hardcode_libdir_flag_spec_ld_CXX=
13308 hardcode_libdir_separator_CXX=
13309 hardcode_minus_L_CXX=no
13310 hardcode_shlibpath_var_CXX=unsupported
13311 hardcode_automatic_CXX=no
13312 inherit_rpath_CXX=no
13313 module_cmds_CXX=
13314 module_expsym_cmds_CXX=
13315 link_all_deplibs_CXX=unknown
13316 old_archive_cmds_CXX=$old_archive_cmds
13317 reload_flag_CXX=$reload_flag
13318 reload_cmds_CXX=$reload_cmds
13319 no_undefined_flag_CXX=
13320 whole_archive_flag_spec_CXX=
13321 enable_shared_with_static_runtimes_CXX=no
13322
13323 # Source file extension for C++ test sources.
13324 ac_ext=cpp
13325
13326 # Object file extension for compiled C++ test sources.
13327 objext=o
13328 objext_CXX=$objext
13329
13330 # No sense in running all these tests if we already determined that
13331 # the CXX compiler isn't working.  Some variables (like enable_shared)
13332 # are currently assumed to apply to all compilers on this platform,
13333 # and will be corrupted by setting them based on a non-working compiler.
13334 if test "$_lt_caught_CXX_error" != yes; then
13335   # Code to be used in simple compile tests
13336   lt_simple_compile_test_code="int some_variable = 0;"
13337
13338   # Code to be used in simple link tests
13339   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13340
13341   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13342
13343
13344
13345
13346
13347
13348 # If no C compiler was specified, use CC.
13349 LTCC=${LTCC-"$CC"}
13350
13351 # If no C compiler flags were specified, use CFLAGS.
13352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13353
13354 # Allow CC to be a program name with arguments.
13355 compiler=$CC
13356
13357
13358   # save warnings/boilerplate of simple test code
13359   ac_outfile=conftest.$ac_objext
13360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13362 _lt_compiler_boilerplate=`cat conftest.err`
13363 $RM conftest*
13364
13365   ac_outfile=conftest.$ac_objext
13366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13368 _lt_linker_boilerplate=`cat conftest.err`
13369 $RM -r conftest*
13370
13371
13372   # Allow CC to be a program name with arguments.
13373   lt_save_CC=$CC
13374   lt_save_CFLAGS=$CFLAGS
13375   lt_save_LD=$LD
13376   lt_save_GCC=$GCC
13377   GCC=$GXX
13378   lt_save_with_gnu_ld=$with_gnu_ld
13379   lt_save_path_LD=$lt_cv_path_LD
13380   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13381     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13382   else
13383     $as_unset lt_cv_prog_gnu_ld
13384   fi
13385   if test -n "${lt_cv_path_LDCXX+set}"; then
13386     lt_cv_path_LD=$lt_cv_path_LDCXX
13387   else
13388     $as_unset lt_cv_path_LD
13389   fi
13390   test -z "${LDCXX+set}" || LD=$LDCXX
13391   CC=${CXX-"c++"}
13392   CFLAGS=$CXXFLAGS
13393   compiler=$CC
13394   compiler_CXX=$CC
13395   for cc_temp in $compiler""; do
13396   case $cc_temp in
13397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13399     \-*) ;;
13400     *) break;;
13401   esac
13402 done
13403 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13404
13405
13406   if test -n "$compiler"; then
13407     # We don't want -fno-exception when compiling C++ code, so set the
13408     # no_builtin_flag separately
13409     if test "$GXX" = yes; then
13410       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13411     else
13412       lt_prog_compiler_no_builtin_flag_CXX=
13413     fi
13414
13415     if test "$GXX" = yes; then
13416       # Set up default GNU C++ configuration
13417
13418
13419
13420 # Check whether --with-gnu-ld was given.
13421 if test "${with_gnu_ld+set}" = set; then :
13422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13423 else
13424   with_gnu_ld=no
13425 fi
13426
13427 ac_prog=ld
13428 if test "$GCC" = yes; then
13429   # Check if gcc -print-prog-name=ld gives a path.
13430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13431 $as_echo_n "checking for ld used by $CC... " >&6; }
13432   case $host in
13433   *-*-mingw*)
13434     # gcc leaves a trailing carriage return which upsets mingw
13435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13436   *)
13437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13438   esac
13439   case $ac_prog in
13440     # Accept absolute paths.
13441     [\\/]* | ?:[\\/]*)
13442       re_direlt='/[^/][^/]*/\.\./'
13443       # Canonicalize the pathname of ld
13444       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13445       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13446         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13447       done
13448       test -z "$LD" && LD="$ac_prog"
13449       ;;
13450   "")
13451     # If it fails, then pretend we aren't using GCC.
13452     ac_prog=ld
13453     ;;
13454   *)
13455     # If it is relative, then search for the first ld in PATH.
13456     with_gnu_ld=unknown
13457     ;;
13458   esac
13459 elif test "$with_gnu_ld" = yes; then
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13461 $as_echo_n "checking for GNU ld... " >&6; }
13462 else
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13464 $as_echo_n "checking for non-GNU ld... " >&6; }
13465 fi
13466 if test "${lt_cv_path_LD+set}" = set; then :
13467   $as_echo_n "(cached) " >&6
13468 else
13469   if test -z "$LD"; then
13470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13471   for ac_dir in $PATH; do
13472     IFS="$lt_save_ifs"
13473     test -z "$ac_dir" && ac_dir=.
13474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13475       lt_cv_path_LD="$ac_dir/$ac_prog"
13476       # Check to see if the program is GNU ld.  I'd rather use --version,
13477       # but apparently some variants of GNU ld only accept -v.
13478       # Break only if it was the GNU/non-GNU ld that we prefer.
13479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13480       *GNU* | *'with BFD'*)
13481         test "$with_gnu_ld" != no && break
13482         ;;
13483       *)
13484         test "$with_gnu_ld" != yes && break
13485         ;;
13486       esac
13487     fi
13488   done
13489   IFS="$lt_save_ifs"
13490 else
13491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13492 fi
13493 fi
13494
13495 LD="$lt_cv_path_LD"
13496 if test -n "$LD"; then
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13498 $as_echo "$LD" >&6; }
13499 else
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13502 fi
13503 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13507   $as_echo_n "(cached) " >&6
13508 else
13509   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13510 case `$LD -v 2>&1 </dev/null` in
13511 *GNU* | *'with BFD'*)
13512   lt_cv_prog_gnu_ld=yes
13513   ;;
13514 *)
13515   lt_cv_prog_gnu_ld=no
13516   ;;
13517 esac
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13521 with_gnu_ld=$lt_cv_prog_gnu_ld
13522
13523
13524
13525
13526
13527
13528
13529       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13530       # archiving commands below assume that GNU ld is being used.
13531       if test "$with_gnu_ld" = yes; then
13532         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534
13535         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13536         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13537
13538         # If archive_cmds runs LD, not CC, wlarc should be empty
13539         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13540         #     investigate it a little bit more. (MM)
13541         wlarc='${wl}'
13542
13543         # ancient GNU ld didn't support --whole-archive et. al.
13544         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13545           $GREP 'no-whole-archive' > /dev/null; then
13546           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13547         else
13548           whole_archive_flag_spec_CXX=
13549         fi
13550       else
13551         with_gnu_ld=no
13552         wlarc=
13553
13554         # A generic and very simple default shared library creation
13555         # command for GNU C++ for the case where it uses the native
13556         # linker, instead of GNU ld.  If possible, this setting should
13557         # overridden to take advantage of the native linker features on
13558         # the platform it is being used on.
13559         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13560       fi
13561
13562       # Commands to make compiler produce verbose output that lists
13563       # what "hidden" libraries, object files and flags are used when
13564       # linking a shared library.
13565       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13566
13567     else
13568       GXX=no
13569       with_gnu_ld=no
13570       wlarc=
13571     fi
13572
13573     # PORTME: fill in a description of your system's C++ link characteristics
13574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13576     ld_shlibs_CXX=yes
13577     case $host_os in
13578       aix3*)
13579         # FIXME: insert proper C++ library support
13580         ld_shlibs_CXX=no
13581         ;;
13582       aix[4-9]*)
13583         if test "$host_cpu" = ia64; then
13584           # On IA64, the linker does run time linking by default, so we don't
13585           # have to do anything special.
13586           aix_use_runtimelinking=no
13587           exp_sym_flag='-Bexport'
13588           no_entry_flag=""
13589         else
13590           aix_use_runtimelinking=no
13591
13592           # Test if we are trying to use run time linking or normal
13593           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13594           # need to do runtime linking.
13595           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13596             for ld_flag in $LDFLAGS; do
13597               case $ld_flag in
13598               *-brtl*)
13599                 aix_use_runtimelinking=yes
13600                 break
13601                 ;;
13602               esac
13603             done
13604             ;;
13605           esac
13606
13607           exp_sym_flag='-bexport'
13608           no_entry_flag='-bnoentry'
13609         fi
13610
13611         # When large executables or shared objects are built, AIX ld can
13612         # have problems creating the table of contents.  If linking a library
13613         # or program results in "error TOC overflow" add -mminimal-toc to
13614         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13615         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13616
13617         archive_cmds_CXX=''
13618         hardcode_direct_CXX=yes
13619         hardcode_direct_absolute_CXX=yes
13620         hardcode_libdir_separator_CXX=':'
13621         link_all_deplibs_CXX=yes
13622         file_list_spec_CXX='${wl}-f,'
13623
13624         if test "$GXX" = yes; then
13625           case $host_os in aix4.[012]|aix4.[012].*)
13626           # We only want to do this on AIX 4.2 and lower, the check
13627           # below for broken collect2 doesn't work under 4.3+
13628           collect2name=`${CC} -print-prog-name=collect2`
13629           if test -f "$collect2name" &&
13630              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13631           then
13632             # We have reworked collect2
13633             :
13634           else
13635             # We have old collect2
13636             hardcode_direct_CXX=unsupported
13637             # It fails to find uninstalled libraries when the uninstalled
13638             # path is not listed in the libpath.  Setting hardcode_minus_L
13639             # to unsupported forces relinking
13640             hardcode_minus_L_CXX=yes
13641             hardcode_libdir_flag_spec_CXX='-L$libdir'
13642             hardcode_libdir_separator_CXX=
13643           fi
13644           esac
13645           shared_flag='-shared'
13646           if test "$aix_use_runtimelinking" = yes; then
13647             shared_flag="$shared_flag "'${wl}-G'
13648           fi
13649         else
13650           # not using gcc
13651           if test "$host_cpu" = ia64; then
13652           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13653           # chokes on -Wl,-G. The following line is correct:
13654           shared_flag='-G'
13655           else
13656             if test "$aix_use_runtimelinking" = yes; then
13657               shared_flag='${wl}-G'
13658             else
13659               shared_flag='${wl}-bM:SRE'
13660             fi
13661           fi
13662         fi
13663
13664         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13665         # It seems that -bexpall does not export symbols beginning with
13666         # underscore (_), so it is better to generate a list of symbols to
13667         # export.
13668         always_export_symbols_CXX=yes
13669         if test "$aix_use_runtimelinking" = yes; then
13670           # Warning - without using the other runtime loading flags (-brtl),
13671           # -berok will link without error, but may produce a broken library.
13672           allow_undefined_flag_CXX='-berok'
13673           # Determine the default libpath from the value encoded in an empty
13674           # executable.
13675           if test "${lt_cv_aix_libpath+set}" = set; then
13676   aix_libpath=$lt_cv_aix_libpath
13677 else
13678   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13679   $as_echo_n "(cached) " >&6
13680 else
13681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h.  */
13683
13684 int
13685 main ()
13686 {
13687
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 if ac_fn_cxx_try_link "$LINENO"; then :
13693
13694   lt_aix_libpath_sed='
13695       /Import File Strings/,/^$/ {
13696           /^0/ {
13697               s/^0  *\([^ ]*\) *$/\1/
13698               p
13699           }
13700       }'
13701   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13702   # Check for a 64-bit object if we didn't find anything.
13703   if test -z "$lt_cv_aix_libpath__CXX"; then
13704     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705   fi
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708     conftest$ac_exeext conftest.$ac_ext
13709   if test -z "$lt_cv_aix_libpath__CXX"; then
13710     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13711   fi
13712
13713 fi
13714
13715   aix_libpath=$lt_cv_aix_libpath__CXX
13716 fi
13717
13718           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13719
13720           archive_expsym_cmds_CXX='$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"
13721         else
13722           if test "$host_cpu" = ia64; then
13723             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13724             allow_undefined_flag_CXX="-z nodefs"
13725             archive_expsym_cmds_CXX="\$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"
13726           else
13727             # Determine the default libpath from the value encoded in an
13728             # empty executable.
13729             if test "${lt_cv_aix_libpath+set}" = set; then
13730   aix_libpath=$lt_cv_aix_libpath
13731 else
13732   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13733   $as_echo_n "(cached) " >&6
13734 else
13735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h.  */
13737
13738 int
13739 main ()
13740 {
13741
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 if ac_fn_cxx_try_link "$LINENO"; then :
13747
13748   lt_aix_libpath_sed='
13749       /Import File Strings/,/^$/ {
13750           /^0/ {
13751               s/^0  *\([^ ]*\) *$/\1/
13752               p
13753           }
13754       }'
13755   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13756   # Check for a 64-bit object if we didn't find anything.
13757   if test -z "$lt_cv_aix_libpath__CXX"; then
13758     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13759   fi
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext \
13762     conftest$ac_exeext conftest.$ac_ext
13763   if test -z "$lt_cv_aix_libpath__CXX"; then
13764     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13765   fi
13766
13767 fi
13768
13769   aix_libpath=$lt_cv_aix_libpath__CXX
13770 fi
13771
13772             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13773             # Warning - without using the other run time loading flags,
13774             # -berok will link without error, but may produce a broken library.
13775             no_undefined_flag_CXX=' ${wl}-bernotok'
13776             allow_undefined_flag_CXX=' ${wl}-berok'
13777             if test "$with_gnu_ld" = yes; then
13778               # We only use this code for GNU lds that support --whole-archive.
13779               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13780             else
13781               # Exported symbols can be pulled into shared objects from archives
13782               whole_archive_flag_spec_CXX='$convenience'
13783             fi
13784             archive_cmds_need_lc_CXX=yes
13785             # This is similar to how AIX traditionally builds its shared
13786             # libraries.
13787             archive_expsym_cmds_CXX="\$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'
13788           fi
13789         fi
13790         ;;
13791
13792       beos*)
13793         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13794           allow_undefined_flag_CXX=unsupported
13795           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13796           # support --undefined.  This deserves some investigation.  FIXME
13797           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13798         else
13799           ld_shlibs_CXX=no
13800         fi
13801         ;;
13802
13803       chorus*)
13804         case $cc_basename in
13805           *)
13806           # FIXME: insert proper C++ library support
13807           ld_shlibs_CXX=no
13808           ;;
13809         esac
13810         ;;
13811
13812       cygwin* | mingw* | pw32* | cegcc*)
13813         case $GXX,$cc_basename in
13814         ,cl* | no,cl*)
13815           # Native MSVC
13816           # hardcode_libdir_flag_spec is actually meaningless, as there is
13817           # no search path for DLLs.
13818           hardcode_libdir_flag_spec_CXX=' '
13819           allow_undefined_flag_CXX=unsupported
13820           always_export_symbols_CXX=yes
13821           file_list_spec_CXX='@'
13822           # Tell ltmain to make .lib files, not .a files.
13823           libext=lib
13824           # Tell ltmain to make .dll files, not .so files.
13825           shrext_cmds=".dll"
13826           # FIXME: Setting linknames here is a bad hack.
13827           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13828           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13829               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13830             else
13831               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13832             fi~
13833             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13834             linknames='
13835           # The linker will not automatically build a static lib if we build a DLL.
13836           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13837           enable_shared_with_static_runtimes_CXX=yes
13838           # Don't use ranlib
13839           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13840           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13841             lt_tool_outputfile="@TOOL_OUTPUT@"~
13842             case $lt_outputfile in
13843               *.exe|*.EXE) ;;
13844               *)
13845                 lt_outputfile="$lt_outputfile.exe"
13846                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13847                 ;;
13848             esac~
13849             func_to_tool_file "$lt_outputfile"~
13850             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13851               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13852               $RM "$lt_outputfile.manifest";
13853             fi'
13854           ;;
13855         *)
13856           # g++
13857           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13858           # as there is no search path for DLLs.
13859           hardcode_libdir_flag_spec_CXX='-L$libdir'
13860           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13861           allow_undefined_flag_CXX=unsupported
13862           always_export_symbols_CXX=no
13863           enable_shared_with_static_runtimes_CXX=yes
13864
13865           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13866             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13867             # If the export-symbols file already is a .def file (1st line
13868             # is EXPORTS), use it as is; otherwise, prepend...
13869             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13870               cp $export_symbols $output_objdir/$soname.def;
13871             else
13872               echo EXPORTS > $output_objdir/$soname.def;
13873               cat $export_symbols >> $output_objdir/$soname.def;
13874             fi~
13875             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13876           else
13877             ld_shlibs_CXX=no
13878           fi
13879           ;;
13880         esac
13881         ;;
13882       darwin* | rhapsody*)
13883
13884
13885   archive_cmds_need_lc_CXX=no
13886   hardcode_direct_CXX=no
13887   hardcode_automatic_CXX=yes
13888   hardcode_shlibpath_var_CXX=unsupported
13889   if test "$lt_cv_ld_force_load" = "yes"; then
13890     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13891   else
13892     whole_archive_flag_spec_CXX=''
13893   fi
13894   link_all_deplibs_CXX=yes
13895   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13896   case $cc_basename in
13897      ifort*) _lt_dar_can_shared=yes ;;
13898      *) _lt_dar_can_shared=$GCC ;;
13899   esac
13900   if test "$_lt_dar_can_shared" = "yes"; then
13901     output_verbose_link_cmd=func_echo_all
13902     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13903     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13904     archive_expsym_cmds_CXX="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}"
13905     module_expsym_cmds_CXX="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}"
13906        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13907       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13908       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13909     fi
13910
13911   else
13912   ld_shlibs_CXX=no
13913   fi
13914
13915         ;;
13916
13917       dgux*)
13918         case $cc_basename in
13919           ec++*)
13920             # FIXME: insert proper C++ library support
13921             ld_shlibs_CXX=no
13922             ;;
13923           ghcx*)
13924             # Green Hills C++ Compiler
13925             # FIXME: insert proper C++ library support
13926             ld_shlibs_CXX=no
13927             ;;
13928           *)
13929             # FIXME: insert proper C++ library support
13930             ld_shlibs_CXX=no
13931             ;;
13932         esac
13933         ;;
13934
13935       freebsd[12]*)
13936         # C++ shared libraries reported to be fairly broken before
13937         # switch to ELF
13938         ld_shlibs_CXX=no
13939         ;;
13940
13941       freebsd-elf*)
13942         archive_cmds_need_lc_CXX=no
13943         ;;
13944
13945       freebsd* | dragonfly*)
13946         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13947         # conventions
13948         ld_shlibs_CXX=yes
13949         ;;
13950
13951       gnu*)
13952         ;;
13953
13954       haiku*)
13955         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956         link_all_deplibs_CXX=yes
13957         ;;
13958
13959       hpux9*)
13960         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13961         hardcode_libdir_separator_CXX=:
13962         export_dynamic_flag_spec_CXX='${wl}-E'
13963         hardcode_direct_CXX=yes
13964         hardcode_minus_L_CXX=yes # Not in the search PATH,
13965                                              # but as the default
13966                                              # location of the library.
13967
13968         case $cc_basename in
13969           CC*)
13970             # FIXME: insert proper C++ library support
13971             ld_shlibs_CXX=no
13972             ;;
13973           aCC*)
13974             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13975             # Commands to make compiler produce verbose output that lists
13976             # what "hidden" libraries, object files and flags are used when
13977             # linking a shared library.
13978             #
13979             # There doesn't appear to be a way to prevent this compiler from
13980             # explicitly linking system object files so we need to strip them
13981             # from the output so that they don't get included in the library
13982             # dependencies.
13983             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13984             ;;
13985           *)
13986             if test "$GXX" = yes; then
13987               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13988             else
13989               # FIXME: insert proper C++ library support
13990               ld_shlibs_CXX=no
13991             fi
13992             ;;
13993         esac
13994         ;;
13995
13996       hpux10*|hpux11*)
13997         if test $with_gnu_ld = no; then
13998           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13999           hardcode_libdir_separator_CXX=:
14000
14001           case $host_cpu in
14002             hppa*64*|ia64*)
14003               ;;
14004             *)
14005               export_dynamic_flag_spec_CXX='${wl}-E'
14006               ;;
14007           esac
14008         fi
14009         case $host_cpu in
14010           hppa*64*|ia64*)
14011             hardcode_direct_CXX=no
14012             hardcode_shlibpath_var_CXX=no
14013             ;;
14014           *)
14015             hardcode_direct_CXX=yes
14016             hardcode_direct_absolute_CXX=yes
14017             hardcode_minus_L_CXX=yes # Not in the search PATH,
14018                                                  # but as the default
14019                                                  # location of the library.
14020             ;;
14021         esac
14022
14023         case $cc_basename in
14024           CC*)
14025             # FIXME: insert proper C++ library support
14026             ld_shlibs_CXX=no
14027             ;;
14028           aCC*)
14029             case $host_cpu in
14030               hppa*64*)
14031                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032                 ;;
14033               ia64*)
14034                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14035                 ;;
14036               *)
14037                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038                 ;;
14039             esac
14040             # Commands to make compiler produce verbose output that lists
14041             # what "hidden" libraries, object files and flags are used when
14042             # linking a shared library.
14043             #
14044             # There doesn't appear to be a way to prevent this compiler from
14045             # explicitly linking system object files so we need to strip them
14046             # from the output so that they don't get included in the library
14047             # dependencies.
14048             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14049             ;;
14050           *)
14051             if test "$GXX" = yes; then
14052               if test $with_gnu_ld = no; then
14053                 case $host_cpu in
14054                   hppa*64*)
14055                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056                     ;;
14057                   ia64*)
14058                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059                     ;;
14060                   *)
14061                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                     ;;
14063                 esac
14064               fi
14065             else
14066               # FIXME: insert proper C++ library support
14067               ld_shlibs_CXX=no
14068             fi
14069             ;;
14070         esac
14071         ;;
14072
14073       interix[3-9]*)
14074         hardcode_direct_CXX=no
14075         hardcode_shlibpath_var_CXX=no
14076         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14077         export_dynamic_flag_spec_CXX='${wl}-E'
14078         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14079         # Instead, shared libraries are loaded at an image base (0x10000000 by
14080         # default) and relocated if they conflict, which is a slow very memory
14081         # consuming and fragmenting process.  To avoid this, we pick a random,
14082         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14083         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14084         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14085         archive_expsym_cmds_CXX='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'
14086         ;;
14087       irix5* | irix6*)
14088         case $cc_basename in
14089           CC*)
14090             # SGI C++
14091             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14092
14093             # Archives containing C++ object files must be created using
14094             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14095             # necessary to make sure instantiated templates are included
14096             # in the archive.
14097             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14098             ;;
14099           *)
14100             if test "$GXX" = yes; then
14101               if test "$with_gnu_ld" = no; then
14102                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14103               else
14104                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14105               fi
14106             fi
14107             link_all_deplibs_CXX=yes
14108             ;;
14109         esac
14110         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14111         hardcode_libdir_separator_CXX=:
14112         inherit_rpath_CXX=yes
14113         ;;
14114
14115       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14116         case $cc_basename in
14117           KCC*)
14118             # Kuck and Associates, Inc. (KAI) C++ Compiler
14119
14120             # KCC will only create a shared library if the output file
14121             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14122             # to its proper name (with version) after linking.
14123             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14124             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14125             # Commands to make compiler produce verbose output that lists
14126             # what "hidden" libraries, object files and flags are used when
14127             # linking a shared library.
14128             #
14129             # There doesn't appear to be a way to prevent this compiler from
14130             # explicitly linking system object files so we need to strip them
14131             # from the output so that they don't get included in the library
14132             # dependencies.
14133             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14134
14135             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14136             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14137
14138             # Archives containing C++ object files must be created using
14139             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14140             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14141             ;;
14142           icpc* | ecpc* )
14143             # Intel C++
14144             with_gnu_ld=yes
14145             # version 8.0 and above of icpc choke on multiply defined symbols
14146             # if we add $predep_objects and $postdep_objects, however 7.1 and
14147             # earlier do not add the objects themselves.
14148             case `$CC -V 2>&1` in
14149               *"Version 7."*)
14150                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14152                 ;;
14153               *)  # Version 8.0 or newer
14154                 tmp_idyn=
14155                 case $host_cpu in
14156                   ia64*) tmp_idyn=' -i_dynamic';;
14157                 esac
14158                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14160                 ;;
14161             esac
14162             archive_cmds_need_lc_CXX=no
14163             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14165             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14166             ;;
14167           pgCC* | pgcpp*)
14168             # Portland Group C++ compiler
14169             case `$CC -V` in
14170             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14171               prelink_cmds_CXX='tpldir=Template.dir~
14172                 rm -rf $tpldir~
14173                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14174                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14175               old_archive_cmds_CXX='tpldir=Template.dir~
14176                 rm -rf $tpldir~
14177                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14178                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14179                 $RANLIB $oldlib'
14180               archive_cmds_CXX='tpldir=Template.dir~
14181                 rm -rf $tpldir~
14182                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14183                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14184               archive_expsym_cmds_CXX='tpldir=Template.dir~
14185                 rm -rf $tpldir~
14186                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14187                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14188               ;;
14189             *) # Version 6 and above use weak symbols
14190               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14192               ;;
14193             esac
14194
14195             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14196             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14197             whole_archive_flag_spec_CXX='${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'
14198             ;;
14199           cxx*)
14200             # Compaq C++
14201             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14203
14204             runpath_var=LD_RUN_PATH
14205             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14206             hardcode_libdir_separator_CXX=:
14207
14208             # Commands to make compiler produce verbose output that lists
14209             # what "hidden" libraries, object files and flags are used when
14210             # linking a shared library.
14211             #
14212             # There doesn't appear to be a way to prevent this compiler from
14213             # explicitly linking system object files so we need to strip them
14214             # from the output so that they don't get included in the library
14215             # dependencies.
14216             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14217             ;;
14218           xl* | mpixl* | bgxl*)
14219             # IBM XL 8.0 on PPC, with GNU ld
14220             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14221             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14222             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223             if test "x$supports_anon_versioning" = xyes; then
14224               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14225                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14226                 echo "local: *; };" >> $output_objdir/$libname.ver~
14227                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14228             fi
14229             ;;
14230           *)
14231             case `$CC -V 2>&1 | sed 5q` in
14232             *Sun\ C*)
14233               # Sun C++ 5.9
14234               no_undefined_flag_CXX=' -zdefs'
14235               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14236               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14237               hardcode_libdir_flag_spec_CXX='-R$libdir'
14238               whole_archive_flag_spec_CXX='${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'
14239               compiler_needs_object_CXX=yes
14240
14241               # Not sure whether something based on
14242               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14243               # would be better.
14244               output_verbose_link_cmd='func_echo_all'
14245
14246               # Archives containing C++ object files must be created using
14247               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14248               # necessary to make sure instantiated templates are included
14249               # in the archive.
14250               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14251               ;;
14252             esac
14253             ;;
14254         esac
14255         ;;
14256
14257       lynxos*)
14258         # FIXME: insert proper C++ library support
14259         ld_shlibs_CXX=no
14260         ;;
14261
14262       m88k*)
14263         # FIXME: insert proper C++ library support
14264         ld_shlibs_CXX=no
14265         ;;
14266
14267       mvs*)
14268         case $cc_basename in
14269           cxx*)
14270             # FIXME: insert proper C++ library support
14271             ld_shlibs_CXX=no
14272             ;;
14273           *)
14274             # FIXME: insert proper C++ library support
14275             ld_shlibs_CXX=no
14276             ;;
14277         esac
14278         ;;
14279
14280       netbsd*)
14281         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14282           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14283           wlarc=
14284           hardcode_libdir_flag_spec_CXX='-R$libdir'
14285           hardcode_direct_CXX=yes
14286           hardcode_shlibpath_var_CXX=no
14287         fi
14288         # Workaround some broken pre-1.5 toolchains
14289         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14290         ;;
14291
14292       *nto* | *qnx*)
14293         ld_shlibs_CXX=yes
14294         ;;
14295
14296       openbsd2*)
14297         # C++ shared libraries are fairly broken
14298         ld_shlibs_CXX=no
14299         ;;
14300
14301       openbsd*)
14302         if test -f /usr/libexec/ld.so; then
14303           hardcode_direct_CXX=yes
14304           hardcode_shlibpath_var_CXX=no
14305           hardcode_direct_absolute_CXX=yes
14306           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14307           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14308           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14309             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14310             export_dynamic_flag_spec_CXX='${wl}-E'
14311             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14312           fi
14313           output_verbose_link_cmd=func_echo_all
14314         else
14315           ld_shlibs_CXX=no
14316         fi
14317         ;;
14318
14319       osf3* | osf4* | osf5*)
14320         case $cc_basename in
14321           KCC*)
14322             # Kuck and Associates, Inc. (KAI) C++ Compiler
14323
14324             # KCC will only create a shared library if the output file
14325             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14326             # to its proper name (with version) after linking.
14327             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14328
14329             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14330             hardcode_libdir_separator_CXX=:
14331
14332             # Archives containing C++ object files must be created using
14333             # the KAI C++ compiler.
14334             case $host in
14335               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14336               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14337             esac
14338             ;;
14339           RCC*)
14340             # Rational C++ 2.4.1
14341             # FIXME: insert proper C++ library support
14342             ld_shlibs_CXX=no
14343             ;;
14344           cxx*)
14345             case $host in
14346               osf3*)
14347                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14348                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14349                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14350                 ;;
14351               *)
14352                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14353                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14354                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14355                   echo "-hidden">> $lib.exp~
14356                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14357                   $RM $lib.exp'
14358                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14359                 ;;
14360             esac
14361
14362             hardcode_libdir_separator_CXX=:
14363
14364             # Commands to make compiler produce verbose output that lists
14365             # what "hidden" libraries, object files and flags are used when
14366             # linking a shared library.
14367             #
14368             # There doesn't appear to be a way to prevent this compiler from
14369             # explicitly linking system object files so we need to strip them
14370             # from the output so that they don't get included in the library
14371             # dependencies.
14372             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14373             ;;
14374           *)
14375             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14377               case $host in
14378                 osf3*)
14379                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14380                   ;;
14381                 *)
14382                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14383                   ;;
14384               esac
14385
14386               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14387               hardcode_libdir_separator_CXX=:
14388
14389               # Commands to make compiler produce verbose output that lists
14390               # what "hidden" libraries, object files and flags are used when
14391               # linking a shared library.
14392               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14393
14394             else
14395               # FIXME: insert proper C++ library support
14396               ld_shlibs_CXX=no
14397             fi
14398             ;;
14399         esac
14400         ;;
14401
14402       psos*)
14403         # FIXME: insert proper C++ library support
14404         ld_shlibs_CXX=no
14405         ;;
14406
14407       sunos4*)
14408         case $cc_basename in
14409           CC*)
14410             # Sun C++ 4.x
14411             # FIXME: insert proper C++ library support
14412             ld_shlibs_CXX=no
14413             ;;
14414           lcc*)
14415             # Lucid
14416             # FIXME: insert proper C++ library support
14417             ld_shlibs_CXX=no
14418             ;;
14419           *)
14420             # FIXME: insert proper C++ library support
14421             ld_shlibs_CXX=no
14422             ;;
14423         esac
14424         ;;
14425
14426       solaris*)
14427         case $cc_basename in
14428           CC* | sunCC*)
14429             # Sun C++ 4.2, 5.x and Centerline C++
14430             archive_cmds_need_lc_CXX=yes
14431             no_undefined_flag_CXX=' -zdefs'
14432             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14433             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14434               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14435
14436             hardcode_libdir_flag_spec_CXX='-R$libdir'
14437             hardcode_shlibpath_var_CXX=no
14438             case $host_os in
14439               solaris2.[0-5] | solaris2.[0-5].*) ;;
14440               *)
14441                 # The compiler driver will combine and reorder linker options,
14442                 # but understands `-z linker_flag'.
14443                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14444                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14445                 ;;
14446             esac
14447             link_all_deplibs_CXX=yes
14448
14449             output_verbose_link_cmd='func_echo_all'
14450
14451             # Archives containing C++ object files must be created using
14452             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14453             # necessary to make sure instantiated templates are included
14454             # in the archive.
14455             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14456             ;;
14457           gcx*)
14458             # Green Hills C++ Compiler
14459             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14460
14461             # The C++ compiler must be used to create the archive.
14462             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14463             ;;
14464           *)
14465             # GNU C++ compiler with Solaris linker
14466             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14467               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14468               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14469                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14470                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14471                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14472
14473                 # Commands to make compiler produce verbose output that lists
14474                 # what "hidden" libraries, object files and flags are used when
14475                 # linking a shared library.
14476                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14477               else
14478                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14479                 # platform.
14480                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14481                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14483
14484                 # Commands to make compiler produce verbose output that lists
14485                 # what "hidden" libraries, object files and flags are used when
14486                 # linking a shared library.
14487                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14488               fi
14489
14490               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14491               case $host_os in
14492                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14493                 *)
14494                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14495                   ;;
14496               esac
14497             fi
14498             ;;
14499         esac
14500         ;;
14501
14502     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14503       no_undefined_flag_CXX='${wl}-z,text'
14504       archive_cmds_need_lc_CXX=no
14505       hardcode_shlibpath_var_CXX=no
14506       runpath_var='LD_RUN_PATH'
14507
14508       case $cc_basename in
14509         CC*)
14510           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512           ;;
14513         *)
14514           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516           ;;
14517       esac
14518       ;;
14519
14520       sysv5* | sco3.2v5* | sco5v6*)
14521         # Note: We can NOT use -z defs as we might desire, because we do not
14522         # link with -lc, and that would cause any symbols used from libc to
14523         # always be unresolved, which means just about no library would
14524         # ever link correctly.  If we're not using GNU ld we use -z text
14525         # though, which does catch some bad symbols but isn't as heavy-handed
14526         # as -z defs.
14527         no_undefined_flag_CXX='${wl}-z,text'
14528         allow_undefined_flag_CXX='${wl}-z,nodefs'
14529         archive_cmds_need_lc_CXX=no
14530         hardcode_shlibpath_var_CXX=no
14531         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14532         hardcode_libdir_separator_CXX=':'
14533         link_all_deplibs_CXX=yes
14534         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14535         runpath_var='LD_RUN_PATH'
14536
14537         case $cc_basename in
14538           CC*)
14539             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14542               '"$old_archive_cmds_CXX"
14543             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14544               '"$reload_cmds_CXX"
14545             ;;
14546           *)
14547             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549             ;;
14550         esac
14551       ;;
14552
14553       tandem*)
14554         case $cc_basename in
14555           NCC*)
14556             # NonStop-UX NCC 3.20
14557             # FIXME: insert proper C++ library support
14558             ld_shlibs_CXX=no
14559             ;;
14560           *)
14561             # FIXME: insert proper C++ library support
14562             ld_shlibs_CXX=no
14563             ;;
14564         esac
14565         ;;
14566
14567       vxworks*)
14568         # FIXME: insert proper C++ library support
14569         ld_shlibs_CXX=no
14570         ;;
14571
14572       *)
14573         # FIXME: insert proper C++ library support
14574         ld_shlibs_CXX=no
14575         ;;
14576     esac
14577
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14579 $as_echo "$ld_shlibs_CXX" >&6; }
14580     test "$ld_shlibs_CXX" = no && can_build_shared=no
14581
14582     GCC_CXX="$GXX"
14583     LD_CXX="$LD"
14584
14585     ## CAVEAT EMPTOR:
14586     ## There is no encapsulation within the following macros, do not change
14587     ## the running order or otherwise move them around unless you know exactly
14588     ## what you are doing...
14589     # Dependencies to place before and after the object being linked:
14590 predep_objects_CXX=
14591 postdep_objects_CXX=
14592 predeps_CXX=
14593 postdeps_CXX=
14594 compiler_lib_search_path_CXX=
14595
14596 cat > conftest.$ac_ext <<_LT_EOF
14597 class Foo
14598 {
14599 public:
14600   Foo (void) { a = 0; }
14601 private:
14602   int a;
14603 };
14604 _LT_EOF
14605
14606
14607 _lt_libdeps_save_CFLAGS=$CFLAGS
14608 case "$CC $CFLAGS " in #(
14609 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14610 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14611 esac
14612
14613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14614   (eval $ac_compile) 2>&5
14615   ac_status=$?
14616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617   test $ac_status = 0; }; then
14618   # Parse the compiler output and extract the necessary
14619   # objects, libraries and library flags.
14620
14621   # Sentinel used to keep track of whether or not we are before
14622   # the conftest object file.
14623   pre_test_object_deps_done=no
14624
14625   for p in `eval "$output_verbose_link_cmd"`; do
14626     case ${prev}${p} in
14627
14628     -L* | -R* | -l*)
14629        # Some compilers place space between "-{L,R}" and the path.
14630        # Remove the space.
14631        if test $p = "-L" ||
14632           test $p = "-R"; then
14633          prev=$p
14634          continue
14635        fi
14636
14637        # Expand the sysroot to ease extracting the directories later.
14638        if test -z "$prev"; then
14639          case $p in
14640          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14641          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14642          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14643          esac
14644        fi
14645        case $p in
14646        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14647        esac
14648        if test "$pre_test_object_deps_done" = no; then
14649          case ${prev} in
14650          -L | -R)
14651            # Internal compiler library paths should come after those
14652            # provided the user.  The postdeps already come after the
14653            # user supplied libs so there is no need to process them.
14654            if test -z "$compiler_lib_search_path_CXX"; then
14655              compiler_lib_search_path_CXX="${prev}${p}"
14656            else
14657              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14658            fi
14659            ;;
14660          # The "-l" case would never come before the object being
14661          # linked, so don't bother handling this case.
14662          esac
14663        else
14664          if test -z "$postdeps_CXX"; then
14665            postdeps_CXX="${prev}${p}"
14666          else
14667            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14668          fi
14669        fi
14670        prev=
14671        ;;
14672
14673     *.lto.$objext) ;; # Ignore GCC LTO objects
14674     *.$objext)
14675        # This assumes that the test object file only shows up
14676        # once in the compiler output.
14677        if test "$p" = "conftest.$objext"; then
14678          pre_test_object_deps_done=yes
14679          continue
14680        fi
14681
14682        if test "$pre_test_object_deps_done" = no; then
14683          if test -z "$predep_objects_CXX"; then
14684            predep_objects_CXX="$p"
14685          else
14686            predep_objects_CXX="$predep_objects_CXX $p"
14687          fi
14688        else
14689          if test -z "$postdep_objects_CXX"; then
14690            postdep_objects_CXX="$p"
14691          else
14692            postdep_objects_CXX="$postdep_objects_CXX $p"
14693          fi
14694        fi
14695        ;;
14696
14697     *) ;; # Ignore the rest.
14698
14699     esac
14700   done
14701
14702   # Clean up.
14703   rm -f a.out a.exe
14704 else
14705   echo "libtool.m4: error: problem compiling CXX test program"
14706 fi
14707
14708 $RM -f confest.$objext
14709 CFLAGS=$_lt_libdeps_save_CFLAGS
14710
14711 # PORTME: override above test on systems where it is broken
14712 case $host_os in
14713 interix[3-9]*)
14714   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14715   # hack all around it, let's just trust "g++" to DTRT.
14716   predep_objects_CXX=
14717   postdep_objects_CXX=
14718   postdeps_CXX=
14719   ;;
14720
14721 linux*)
14722   case `$CC -V 2>&1 | sed 5q` in
14723   *Sun\ C*)
14724     # Sun C++ 5.9
14725
14726     # The more standards-conforming stlport4 library is
14727     # incompatible with the Cstd library. Avoid specifying
14728     # it if it's in CXXFLAGS. Ignore libCrun as
14729     # -library=stlport4 depends on it.
14730     case " $CXX $CXXFLAGS " in
14731     *" -library=stlport4 "*)
14732       solaris_use_stlport4=yes
14733       ;;
14734     esac
14735
14736     if test "$solaris_use_stlport4" != yes; then
14737       postdeps_CXX='-library=Cstd -library=Crun'
14738     fi
14739     ;;
14740   esac
14741   ;;
14742
14743 solaris*)
14744   case $cc_basename in
14745   CC* | sunCC*)
14746     # The more standards-conforming stlport4 library is
14747     # incompatible with the Cstd library. Avoid specifying
14748     # it if it's in CXXFLAGS. Ignore libCrun as
14749     # -library=stlport4 depends on it.
14750     case " $CXX $CXXFLAGS " in
14751     *" -library=stlport4 "*)
14752       solaris_use_stlport4=yes
14753       ;;
14754     esac
14755
14756     # Adding this requires a known-good setup of shared libraries for
14757     # Sun compiler versions before 5.6, else PIC objects from an old
14758     # archive will be linked into the output, leading to subtle bugs.
14759     if test "$solaris_use_stlport4" != yes; then
14760       postdeps_CXX='-library=Cstd -library=Crun'
14761     fi
14762     ;;
14763   esac
14764   ;;
14765 esac
14766
14767
14768 case " $postdeps_CXX " in
14769 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14770 esac
14771  compiler_lib_search_dirs_CXX=
14772 if test -n "${compiler_lib_search_path_CXX}"; then
14773  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14774 fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806     lt_prog_compiler_wl_CXX=
14807 lt_prog_compiler_pic_CXX=
14808 lt_prog_compiler_static_CXX=
14809
14810
14811   # C++ specific cases for pic, static, wl, etc.
14812   if test "$GXX" = yes; then
14813     lt_prog_compiler_wl_CXX='-Wl,'
14814     lt_prog_compiler_static_CXX='-static'
14815
14816     case $host_os in
14817     aix*)
14818       # All AIX code is PIC.
14819       if test "$host_cpu" = ia64; then
14820         # AIX 5 now supports IA64 processor
14821         lt_prog_compiler_static_CXX='-Bstatic'
14822       fi
14823       ;;
14824
14825     amigaos*)
14826       case $host_cpu in
14827       powerpc)
14828             # see comment about AmigaOS4 .so support
14829             lt_prog_compiler_pic_CXX='-fPIC'
14830         ;;
14831       m68k)
14832             # FIXME: we need at least 68020 code to build shared libraries, but
14833             # adding the `-m68020' flag to GCC prevents building anything better,
14834             # like `-m68040'.
14835             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14836         ;;
14837       esac
14838       ;;
14839
14840     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14841       # PIC is the default for these OSes.
14842       ;;
14843     mingw* | cygwin* | os2* | pw32* | cegcc*)
14844       # This hack is so that the source file can tell whether it is being
14845       # built for inclusion in a dll (and should export symbols for example).
14846       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14847       # (--disable-auto-import) libraries
14848       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14849       ;;
14850     darwin* | rhapsody*)
14851       # PIC is the default on this platform
14852       # Common symbols not allowed in MH_DYLIB files
14853       lt_prog_compiler_pic_CXX='-fno-common'
14854       ;;
14855     *djgpp*)
14856       # DJGPP does not support shared libraries at all
14857       lt_prog_compiler_pic_CXX=
14858       ;;
14859     haiku*)
14860       # PIC is the default for Haiku.
14861       # The "-static" flag exists, but is broken.
14862       lt_prog_compiler_static_CXX=
14863       ;;
14864     interix[3-9]*)
14865       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14866       # Instead, we relocate shared libraries at runtime.
14867       ;;
14868     sysv4*MP*)
14869       if test -d /usr/nec; then
14870         lt_prog_compiler_pic_CXX=-Kconform_pic
14871       fi
14872       ;;
14873     hpux*)
14874       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14875       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14876       # sets the default TLS model and affects inlining.
14877       case $host_cpu in
14878       hppa*64*)
14879         ;;
14880       *)
14881         lt_prog_compiler_pic_CXX='-fPIC'
14882         ;;
14883       esac
14884       ;;
14885     *qnx* | *nto*)
14886       # QNX uses GNU C++, but need to define -shared option too, otherwise
14887       # it will coredump.
14888       lt_prog_compiler_pic_CXX='-fPIC -shared'
14889       ;;
14890     *)
14891       lt_prog_compiler_pic_CXX='-fPIC'
14892       ;;
14893     esac
14894   else
14895     case $host_os in
14896       aix[4-9]*)
14897         # All AIX code is PIC.
14898         if test "$host_cpu" = ia64; then
14899           # AIX 5 now supports IA64 processor
14900           lt_prog_compiler_static_CXX='-Bstatic'
14901         else
14902           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14903         fi
14904         ;;
14905       chorus*)
14906         case $cc_basename in
14907         cxch68*)
14908           # Green Hills C++ Compiler
14909           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14910           ;;
14911         esac
14912         ;;
14913       mingw* | cygwin* | os2* | pw32* | cegcc*)
14914         # This hack is so that the source file can tell whether it is being
14915         # built for inclusion in a dll (and should export symbols for example).
14916         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14917         ;;
14918       dgux*)
14919         case $cc_basename in
14920           ec++*)
14921             lt_prog_compiler_pic_CXX='-KPIC'
14922             ;;
14923           ghcx*)
14924             # Green Hills C++ Compiler
14925             lt_prog_compiler_pic_CXX='-pic'
14926             ;;
14927           *)
14928             ;;
14929         esac
14930         ;;
14931       freebsd* | dragonfly*)
14932         # FreeBSD uses GNU C++
14933         ;;
14934       hpux9* | hpux10* | hpux11*)
14935         case $cc_basename in
14936           CC*)
14937             lt_prog_compiler_wl_CXX='-Wl,'
14938             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14939             if test "$host_cpu" != ia64; then
14940               lt_prog_compiler_pic_CXX='+Z'
14941             fi
14942             ;;
14943           aCC*)
14944             lt_prog_compiler_wl_CXX='-Wl,'
14945             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14946             case $host_cpu in
14947             hppa*64*|ia64*)
14948               # +Z the default
14949               ;;
14950             *)
14951               lt_prog_compiler_pic_CXX='+Z'
14952               ;;
14953             esac
14954             ;;
14955           *)
14956             ;;
14957         esac
14958         ;;
14959       interix*)
14960         # This is c89, which is MS Visual C++ (no shared libs)
14961         # Anyone wants to do a port?
14962         ;;
14963       irix5* | irix6* | nonstopux*)
14964         case $cc_basename in
14965           CC*)
14966             lt_prog_compiler_wl_CXX='-Wl,'
14967             lt_prog_compiler_static_CXX='-non_shared'
14968             # CC pic flag -KPIC is the default.
14969             ;;
14970           *)
14971             ;;
14972         esac
14973         ;;
14974       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14975         case $cc_basename in
14976           KCC*)
14977             # KAI C++ Compiler
14978             lt_prog_compiler_wl_CXX='--backend -Wl,'
14979             lt_prog_compiler_pic_CXX='-fPIC'
14980             ;;
14981           ecpc* )
14982             # old Intel C++ for x86_64 which still supported -KPIC.
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_pic_CXX='-KPIC'
14985             lt_prog_compiler_static_CXX='-static'
14986             ;;
14987           icpc* )
14988             # Intel C++, used to be incompatible with GCC.
14989             # ICC 10 doesn't accept -KPIC any more.
14990             lt_prog_compiler_wl_CXX='-Wl,'
14991             lt_prog_compiler_pic_CXX='-fPIC'
14992             lt_prog_compiler_static_CXX='-static'
14993             ;;
14994           pgCC* | pgcpp*)
14995             # Portland Group C++ compiler
14996             lt_prog_compiler_wl_CXX='-Wl,'
14997             lt_prog_compiler_pic_CXX='-fpic'
14998             lt_prog_compiler_static_CXX='-Bstatic'
14999             ;;
15000           cxx*)
15001             # Compaq C++
15002             # Make sure the PIC flag is empty.  It appears that all Alpha
15003             # Linux and Compaq Tru64 Unix objects are PIC.
15004             lt_prog_compiler_pic_CXX=
15005             lt_prog_compiler_static_CXX='-non_shared'
15006             ;;
15007           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15008             # IBM XL 8.0, 9.0 on PPC and BlueGene
15009             lt_prog_compiler_wl_CXX='-Wl,'
15010             lt_prog_compiler_pic_CXX='-qpic'
15011             lt_prog_compiler_static_CXX='-qstaticlink'
15012             ;;
15013           *)
15014             case `$CC -V 2>&1 | sed 5q` in
15015             *Sun\ C*)
15016               # Sun C++ 5.9
15017               lt_prog_compiler_pic_CXX='-KPIC'
15018               lt_prog_compiler_static_CXX='-Bstatic'
15019               lt_prog_compiler_wl_CXX='-Qoption ld '
15020               ;;
15021             esac
15022             ;;
15023         esac
15024         ;;
15025       lynxos*)
15026         ;;
15027       m88k*)
15028         ;;
15029       mvs*)
15030         case $cc_basename in
15031           cxx*)
15032             lt_prog_compiler_pic_CXX='-W c,exportall'
15033             ;;
15034           *)
15035             ;;
15036         esac
15037         ;;
15038       netbsd*)
15039         ;;
15040       *qnx* | *nto*)
15041         # QNX uses GNU C++, but need to define -shared option too, otherwise
15042         # it will coredump.
15043         lt_prog_compiler_pic_CXX='-fPIC -shared'
15044         ;;
15045       osf3* | osf4* | osf5*)
15046         case $cc_basename in
15047           KCC*)
15048             lt_prog_compiler_wl_CXX='--backend -Wl,'
15049             ;;
15050           RCC*)
15051             # Rational C++ 2.4.1
15052             lt_prog_compiler_pic_CXX='-pic'
15053             ;;
15054           cxx*)
15055             # Digital/Compaq C++
15056             lt_prog_compiler_wl_CXX='-Wl,'
15057             # Make sure the PIC flag is empty.  It appears that all Alpha
15058             # Linux and Compaq Tru64 Unix objects are PIC.
15059             lt_prog_compiler_pic_CXX=
15060             lt_prog_compiler_static_CXX='-non_shared'
15061             ;;
15062           *)
15063             ;;
15064         esac
15065         ;;
15066       psos*)
15067         ;;
15068       solaris*)
15069         case $cc_basename in
15070           CC* | sunCC*)
15071             # Sun C++ 4.2, 5.x and Centerline C++
15072             lt_prog_compiler_pic_CXX='-KPIC'
15073             lt_prog_compiler_static_CXX='-Bstatic'
15074             lt_prog_compiler_wl_CXX='-Qoption ld '
15075             ;;
15076           gcx*)
15077             # Green Hills C++ Compiler
15078             lt_prog_compiler_pic_CXX='-PIC'
15079             ;;
15080           *)
15081             ;;
15082         esac
15083         ;;
15084       sunos4*)
15085         case $cc_basename in
15086           CC*)
15087             # Sun C++ 4.x
15088             lt_prog_compiler_pic_CXX='-pic'
15089             lt_prog_compiler_static_CXX='-Bstatic'
15090             ;;
15091           lcc*)
15092             # Lucid
15093             lt_prog_compiler_pic_CXX='-pic'
15094             ;;
15095           *)
15096             ;;
15097         esac
15098         ;;
15099       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15100         case $cc_basename in
15101           CC*)
15102             lt_prog_compiler_wl_CXX='-Wl,'
15103             lt_prog_compiler_pic_CXX='-KPIC'
15104             lt_prog_compiler_static_CXX='-Bstatic'
15105             ;;
15106         esac
15107         ;;
15108       tandem*)
15109         case $cc_basename in
15110           NCC*)
15111             # NonStop-UX NCC 3.20
15112             lt_prog_compiler_pic_CXX='-KPIC'
15113             ;;
15114           *)
15115             ;;
15116         esac
15117         ;;
15118       vxworks*)
15119         ;;
15120       *)
15121         lt_prog_compiler_can_build_shared_CXX=no
15122         ;;
15123     esac
15124   fi
15125
15126 case $host_os in
15127   # For platforms which do not support PIC, -DPIC is meaningless:
15128   *djgpp*)
15129     lt_prog_compiler_pic_CXX=
15130     ;;
15131   *)
15132     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15133     ;;
15134 esac
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15137 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
15139   $as_echo_n "(cached) " >&6
15140 else
15141   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15144 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15145 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15146
15147 #
15148 # Check to make sure the PIC flag actually works.
15149 #
15150 if test -n "$lt_prog_compiler_pic_CXX"; then
15151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15153 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15154   $as_echo_n "(cached) " >&6
15155 else
15156   lt_cv_prog_compiler_pic_works_CXX=no
15157    ac_outfile=conftest.$ac_objext
15158    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15159    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15160    # Insert the option either (1) after the last *FLAGS variable, or
15161    # (2) before a word containing "conftest.", or (3) at the end.
15162    # Note that $ac_compile itself does not contain backslashes and begins
15163    # with a dollar sign (not a hyphen), so the echo should work correctly.
15164    # The option is referenced via a variable to avoid confusing sed.
15165    lt_compile=`echo "$ac_compile" | $SED \
15166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168    -e 's:$: $lt_compiler_flag:'`
15169    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15170    (eval "$lt_compile" 2>conftest.err)
15171    ac_status=$?
15172    cat conftest.err >&5
15173    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174    if (exit $ac_status) && test -s "$ac_outfile"; then
15175      # The compiler can only warn and ignore the option if not recognized
15176      # So say no if there are warnings other than the usual output.
15177      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15180        lt_cv_prog_compiler_pic_works_CXX=yes
15181      fi
15182    fi
15183    $RM conftest*
15184
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15187 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15188
15189 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15190     case $lt_prog_compiler_pic_CXX in
15191      "" | " "*) ;;
15192      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15193      esac
15194 else
15195     lt_prog_compiler_pic_CXX=
15196      lt_prog_compiler_can_build_shared_CXX=no
15197 fi
15198
15199 fi
15200
15201
15202
15203
15204
15205 #
15206 # Check to make sure the static flag actually works.
15207 #
15208 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15211 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15212   $as_echo_n "(cached) " >&6
15213 else
15214   lt_cv_prog_compiler_static_works_CXX=no
15215    save_LDFLAGS="$LDFLAGS"
15216    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15217    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15218    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15219      # The linker can only warn and ignore the option if not recognized
15220      # So say no if there are warnings
15221      if test -s conftest.err; then
15222        # Append any errors to the config.log.
15223        cat conftest.err 1>&5
15224        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15225        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226        if diff conftest.exp conftest.er2 >/dev/null; then
15227          lt_cv_prog_compiler_static_works_CXX=yes
15228        fi
15229      else
15230        lt_cv_prog_compiler_static_works_CXX=yes
15231      fi
15232    fi
15233    $RM -r conftest*
15234    LDFLAGS="$save_LDFLAGS"
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15238 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15239
15240 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15241     :
15242 else
15243     lt_prog_compiler_static_CXX=
15244 fi
15245
15246
15247
15248
15249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15251 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15252   $as_echo_n "(cached) " >&6
15253 else
15254   lt_cv_prog_compiler_c_o_CXX=no
15255    $RM -r conftest 2>/dev/null
15256    mkdir conftest
15257    cd conftest
15258    mkdir out
15259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260
15261    lt_compiler_flag="-o out/conftest2.$ac_objext"
15262    # Insert the option either (1) after the last *FLAGS variable, or
15263    # (2) before a word containing "conftest.", or (3) at the end.
15264    # Note that $ac_compile itself does not contain backslashes and begins
15265    # with a dollar sign (not a hyphen), so the echo should work correctly.
15266    lt_compile=`echo "$ac_compile" | $SED \
15267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269    -e 's:$: $lt_compiler_flag:'`
15270    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271    (eval "$lt_compile" 2>out/conftest.err)
15272    ac_status=$?
15273    cat out/conftest.err >&5
15274    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15276    then
15277      # The compiler can only warn and ignore the option if not recognized
15278      # So say no if there are warnings
15279      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15280      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15281      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15282        lt_cv_prog_compiler_c_o_CXX=yes
15283      fi
15284    fi
15285    chmod u+w . 2>&5
15286    $RM conftest*
15287    # SGI C++ compiler will create directory out/ii_files/ for
15288    # template instantiation
15289    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15290    $RM out/* && rmdir out
15291    cd ..
15292    $RM -r conftest
15293    $RM conftest*
15294
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15297 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15298
15299
15300
15301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15302 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15303 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15304   $as_echo_n "(cached) " >&6
15305 else
15306   lt_cv_prog_compiler_c_o_CXX=no
15307    $RM -r conftest 2>/dev/null
15308    mkdir conftest
15309    cd conftest
15310    mkdir out
15311    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313    lt_compiler_flag="-o out/conftest2.$ac_objext"
15314    # Insert the option either (1) after the last *FLAGS variable, or
15315    # (2) before a word containing "conftest.", or (3) at the end.
15316    # Note that $ac_compile itself does not contain backslashes and begins
15317    # with a dollar sign (not a hyphen), so the echo should work correctly.
15318    lt_compile=`echo "$ac_compile" | $SED \
15319    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15320    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321    -e 's:$: $lt_compiler_flag:'`
15322    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15323    (eval "$lt_compile" 2>out/conftest.err)
15324    ac_status=$?
15325    cat out/conftest.err >&5
15326    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15328    then
15329      # The compiler can only warn and ignore the option if not recognized
15330      # So say no if there are warnings
15331      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15332      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15333      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15334        lt_cv_prog_compiler_c_o_CXX=yes
15335      fi
15336    fi
15337    chmod u+w . 2>&5
15338    $RM conftest*
15339    # SGI C++ compiler will create directory out/ii_files/ for
15340    # template instantiation
15341    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15342    $RM out/* && rmdir out
15343    cd ..
15344    $RM -r conftest
15345    $RM conftest*
15346
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15349 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15350
15351
15352
15353
15354 hard_links="nottested"
15355 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15356   # do not overwrite the value of need_locks provided by the user
15357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15358 $as_echo_n "checking if we can lock with hard links... " >&6; }
15359   hard_links=yes
15360   $RM conftest*
15361   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15362   touch conftest.a
15363   ln conftest.a conftest.b 2>&5 || hard_links=no
15364   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15366 $as_echo "$hard_links" >&6; }
15367   if test "$hard_links" = no; then
15368     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15369 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15370     need_locks=warn
15371   fi
15372 else
15373   need_locks=no
15374 fi
15375
15376
15377
15378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15380
15381   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15382   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15383   case $host_os in
15384   aix[4-9]*)
15385     # If we're using GNU nm, then we don't want the "-C" option.
15386     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15387     # Also, AIX nm treats weak defined symbols like other global defined
15388     # symbols, whereas GNU nm marks them as "W".
15389     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15390       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15391     else
15392       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15393     fi
15394     ;;
15395   pw32*)
15396     export_symbols_cmds_CXX="$ltdll_cmds"
15397     ;;
15398   cygwin* | mingw* | cegcc*)
15399     case $cc_basename in
15400     cl*) ;;
15401     *)
15402       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15403       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15404       ;;
15405     esac
15406     ;;
15407   *)
15408     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15409     ;;
15410   esac
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15413 $as_echo "$ld_shlibs_CXX" >&6; }
15414 test "$ld_shlibs_CXX" = no && can_build_shared=no
15415
15416 with_gnu_ld_CXX=$with_gnu_ld
15417
15418
15419
15420
15421
15422
15423 #
15424 # Do we need to explicitly link libc?
15425 #
15426 case "x$archive_cmds_need_lc_CXX" in
15427 x|xyes)
15428   # Assume -lc should be added
15429   archive_cmds_need_lc_CXX=yes
15430
15431   if test "$enable_shared" = yes && test "$GCC" = yes; then
15432     case $archive_cmds_CXX in
15433     *'~'*)
15434       # FIXME: we may have to deal with multi-command sequences.
15435       ;;
15436     '$CC '*)
15437       # Test whether the compiler implicitly links with -lc since on some
15438       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15439       # to ld, don't add -lc before -lgcc.
15440       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15442 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15443   $as_echo_n "(cached) " >&6
15444 else
15445   $RM conftest*
15446         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15447
15448         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15449   (eval $ac_compile) 2>&5
15450   ac_status=$?
15451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15452   test $ac_status = 0; } 2>conftest.err; then
15453           soname=conftest
15454           lib=conftest
15455           libobjs=conftest.$ac_objext
15456           deplibs=
15457           wl=$lt_prog_compiler_wl_CXX
15458           pic_flag=$lt_prog_compiler_pic_CXX
15459           compiler_flags=-v
15460           linker_flags=-v
15461           verstring=
15462           output_objdir=.
15463           libname=conftest
15464           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15465           allow_undefined_flag_CXX=
15466           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15467   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15468   ac_status=$?
15469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470   test $ac_status = 0; }
15471           then
15472             lt_cv_archive_cmds_need_lc_CXX=no
15473           else
15474             lt_cv_archive_cmds_need_lc_CXX=yes
15475           fi
15476           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15477         else
15478           cat conftest.err 1>&5
15479         fi
15480         $RM conftest*
15481
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15484 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15485       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15486       ;;
15487     esac
15488   fi
15489   ;;
15490 esac
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15557
15558 library_names_spec=
15559 libname_spec='lib$name'
15560 soname_spec=
15561 shrext_cmds=".so"
15562 postinstall_cmds=
15563 postuninstall_cmds=
15564 finish_cmds=
15565 finish_eval=
15566 shlibpath_var=
15567 shlibpath_overrides_runpath=unknown
15568 version_type=none
15569 dynamic_linker="$host_os ld.so"
15570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15571 need_lib_prefix=unknown
15572 hardcode_into_libs=no
15573
15574 # when you set need_version to no, make sure it does not cause -set_version
15575 # flags to be left without arguments
15576 need_version=unknown
15577
15578 case $host_os in
15579 aix3*)
15580   version_type=linux
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15582   shlibpath_var=LIBPATH
15583
15584   # AIX 3 has no versioning support, so we append a major version to the name.
15585   soname_spec='${libname}${release}${shared_ext}$major'
15586   ;;
15587
15588 aix[4-9]*)
15589   version_type=linux
15590   need_lib_prefix=no
15591   need_version=no
15592   hardcode_into_libs=yes
15593   if test "$host_cpu" = ia64; then
15594     # AIX 5 supports IA64
15595     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15596     shlibpath_var=LD_LIBRARY_PATH
15597   else
15598     # With GCC up to 2.95.x, collect2 would create an import file
15599     # for dependence libraries.  The import file would start with
15600     # the line `#! .'.  This would cause the generated library to
15601     # depend on `.', always an invalid library.  This was fixed in
15602     # development snapshots of GCC prior to 3.0.
15603     case $host_os in
15604       aix4 | aix4.[01] | aix4.[01].*)
15605       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15606            echo ' yes '
15607            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15608         :
15609       else
15610         can_build_shared=no
15611       fi
15612       ;;
15613     esac
15614     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15615     # soname into executable. Probably we can add versioning support to
15616     # collect2, so additional links can be useful in future.
15617     if test "$aix_use_runtimelinking" = yes; then
15618       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15619       # instead of lib<name>.a to let people know that these are not
15620       # typical AIX shared libraries.
15621       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622     else
15623       # We preserve .a as extension for shared libraries through AIX4.2
15624       # and later when we are not doing run time linking.
15625       library_names_spec='${libname}${release}.a $libname.a'
15626       soname_spec='${libname}${release}${shared_ext}$major'
15627     fi
15628     shlibpath_var=LIBPATH
15629   fi
15630   ;;
15631
15632 amigaos*)
15633   case $host_cpu in
15634   powerpc)
15635     # Since July 2007 AmigaOS4 officially supports .so libraries.
15636     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638     ;;
15639   m68k)
15640     library_names_spec='$libname.ixlibrary $libname.a'
15641     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15642     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'
15643     ;;
15644   esac
15645   ;;
15646
15647 beos*)
15648   library_names_spec='${libname}${shared_ext}'
15649   dynamic_linker="$host_os ld.so"
15650   shlibpath_var=LIBRARY_PATH
15651   ;;
15652
15653 bsdi[45]*)
15654   version_type=linux
15655   need_version=no
15656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657   soname_spec='${libname}${release}${shared_ext}$major'
15658   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15661   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15662   # the default ld.so.conf also contains /usr/contrib/lib and
15663   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15664   # libtool to hard-code these into programs
15665   ;;
15666
15667 cygwin* | mingw* | pw32* | cegcc*)
15668   version_type=windows
15669   shrext_cmds=".dll"
15670   need_version=no
15671   need_lib_prefix=no
15672
15673   case $GCC,$cc_basename in
15674   yes,*)
15675     # gcc
15676     library_names_spec='$libname.dll.a'
15677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15678     postinstall_cmds='base_file=`basename \${file}`~
15679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15680       dldir=$destdir/`dirname \$dlpath`~
15681       test -d \$dldir || mkdir -p \$dldir~
15682       $install_prog $dir/$dlname \$dldir/$dlname~
15683       chmod a+x \$dldir/$dlname~
15684       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15685         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15686       fi'
15687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15688       dlpath=$dir/\$dldll~
15689        $RM \$dlpath'
15690     shlibpath_overrides_runpath=yes
15691
15692     case $host_os in
15693     cygwin*)
15694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15696
15697       ;;
15698     mingw* | cegcc*)
15699       # MinGW DLLs use traditional 'lib' prefix
15700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701       ;;
15702     pw32*)
15703       # pw32 DLLs use 'pw' prefix rather than 'lib'
15704       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15705       ;;
15706     esac
15707     dynamic_linker='Win32 ld.exe'
15708     ;;
15709
15710   *,cl*)
15711     # Native MSVC
15712     libname_spec='$name'
15713     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714     library_names_spec='${libname}.dll.lib'
15715
15716     case $build_os in
15717     mingw*)
15718       sys_lib_search_path_spec=
15719       lt_save_ifs=$IFS
15720       IFS=';'
15721       for lt_path in $LIB
15722       do
15723         IFS=$lt_save_ifs
15724         # Let DOS variable expansion print the short 8.3 style file name.
15725         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15726         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15727       done
15728       IFS=$lt_save_ifs
15729       # Convert to MSYS style.
15730       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15731       ;;
15732     cygwin*)
15733       # Convert to unix form, then to dos form, then back to unix form
15734       # but this time dos style (no spaces!) so that the unix form looks
15735       # like /cygdrive/c/PROGRA~1:/cygdr...
15736       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15737       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15738       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15739       ;;
15740     *)
15741       sys_lib_search_path_spec="$LIB"
15742       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15743         # It is most probably a Windows format PATH.
15744         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15745       else
15746         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15747       fi
15748       # FIXME: find the short name or the path components, as spaces are
15749       # common. (e.g. "Program Files" -> "PROGRA~1")
15750       ;;
15751     esac
15752
15753     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15754     postinstall_cmds='base_file=`basename \${file}`~
15755       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15756       dldir=$destdir/`dirname \$dlpath`~
15757       test -d \$dldir || mkdir -p \$dldir~
15758       $install_prog $dir/$dlname \$dldir/$dlname'
15759     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15760       dlpath=$dir/\$dldll~
15761        $RM \$dlpath'
15762     shlibpath_overrides_runpath=yes
15763     dynamic_linker='Win32 link.exe'
15764     ;;
15765
15766   *)
15767     # Assume MSVC wrapper
15768     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15769     dynamic_linker='Win32 ld.exe'
15770     ;;
15771   esac
15772   # FIXME: first we should search . and the directory the executable is in
15773   shlibpath_var=PATH
15774   ;;
15775
15776 darwin* | rhapsody*)
15777   dynamic_linker="$host_os dyld"
15778   version_type=darwin
15779   need_lib_prefix=no
15780   need_version=no
15781   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15782   soname_spec='${libname}${release}${major}$shared_ext'
15783   shlibpath_overrides_runpath=yes
15784   shlibpath_var=DYLD_LIBRARY_PATH
15785   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15786
15787   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15788   ;;
15789
15790 dgux*)
15791   version_type=linux
15792   need_lib_prefix=no
15793   need_version=no
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   shlibpath_var=LD_LIBRARY_PATH
15797   ;;
15798
15799 freebsd1*)
15800   dynamic_linker=no
15801   ;;
15802
15803 freebsd* | dragonfly*)
15804   # DragonFly does not have aout.  When/if they implement a new
15805   # versioning mechanism, adjust this.
15806   if test -x /usr/bin/objformat; then
15807     objformat=`/usr/bin/objformat`
15808   else
15809     case $host_os in
15810     freebsd[123]*) objformat=aout ;;
15811     *) objformat=elf ;;
15812     esac
15813   fi
15814   version_type=freebsd-$objformat
15815   case $version_type in
15816     freebsd-elf*)
15817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15818       need_version=no
15819       need_lib_prefix=no
15820       ;;
15821     freebsd-*)
15822       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15823       need_version=yes
15824       ;;
15825   esac
15826   shlibpath_var=LD_LIBRARY_PATH
15827   case $host_os in
15828   freebsd2*)
15829     shlibpath_overrides_runpath=yes
15830     ;;
15831   freebsd3.[01]* | freebsdelf3.[01]*)
15832     shlibpath_overrides_runpath=yes
15833     hardcode_into_libs=yes
15834     ;;
15835   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15836   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15837     shlibpath_overrides_runpath=no
15838     hardcode_into_libs=yes
15839     ;;
15840   *) # from 4.6 on, and DragonFly
15841     shlibpath_overrides_runpath=yes
15842     hardcode_into_libs=yes
15843     ;;
15844   esac
15845   ;;
15846
15847 gnu*)
15848   version_type=linux
15849   need_lib_prefix=no
15850   need_version=no
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   hardcode_into_libs=yes
15855   ;;
15856
15857 haiku*)
15858   version_type=linux
15859   need_lib_prefix=no
15860   need_version=no
15861   dynamic_linker="$host_os runtime_loader"
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15863   soname_spec='${libname}${release}${shared_ext}$major'
15864   shlibpath_var=LIBRARY_PATH
15865   shlibpath_overrides_runpath=yes
15866   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15867   hardcode_into_libs=yes
15868   ;;
15869
15870 hpux9* | hpux10* | hpux11*)
15871   # Give a soname corresponding to the major version so that dld.sl refuses to
15872   # link against other versions.
15873   version_type=sunos
15874   need_lib_prefix=no
15875   need_version=no
15876   case $host_cpu in
15877   ia64*)
15878     shrext_cmds='.so'
15879     hardcode_into_libs=yes
15880     dynamic_linker="$host_os dld.so"
15881     shlibpath_var=LD_LIBRARY_PATH
15882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884     soname_spec='${libname}${release}${shared_ext}$major'
15885     if test "X$HPUX_IA64_MODE" = X32; then
15886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15887     else
15888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15889     fi
15890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15891     ;;
15892   hppa*64*)
15893     shrext_cmds='.sl'
15894     hardcode_into_libs=yes
15895     dynamic_linker="$host_os dld.sl"
15896     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899     soname_spec='${libname}${release}${shared_ext}$major'
15900     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15902     ;;
15903   *)
15904     shrext_cmds='.sl'
15905     dynamic_linker="$host_os dld.sl"
15906     shlibpath_var=SHLIB_PATH
15907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909     soname_spec='${libname}${release}${shared_ext}$major'
15910     ;;
15911   esac
15912   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15913   postinstall_cmds='chmod 555 $lib'
15914   # or fails outright, so override atomically:
15915   install_override_mode=555
15916   ;;
15917
15918 interix[3-9]*)
15919   version_type=linux
15920   need_lib_prefix=no
15921   need_version=no
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15925   shlibpath_var=LD_LIBRARY_PATH
15926   shlibpath_overrides_runpath=no
15927   hardcode_into_libs=yes
15928   ;;
15929
15930 irix5* | irix6* | nonstopux*)
15931   case $host_os in
15932     nonstopux*) version_type=nonstopux ;;
15933     *)
15934         if test "$lt_cv_prog_gnu_ld" = yes; then
15935                 version_type=linux
15936         else
15937                 version_type=irix
15938         fi ;;
15939   esac
15940   need_lib_prefix=no
15941   need_version=no
15942   soname_spec='${libname}${release}${shared_ext}$major'
15943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15944   case $host_os in
15945   irix5* | nonstopux*)
15946     libsuff= shlibsuff=
15947     ;;
15948   *)
15949     case $LD in # libtool.m4 will add one of these switches to LD
15950     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15951       libsuff= shlibsuff= libmagic=32-bit;;
15952     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15953       libsuff=32 shlibsuff=N32 libmagic=N32;;
15954     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15955       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15956     *) libsuff= shlibsuff= libmagic=never-match;;
15957     esac
15958     ;;
15959   esac
15960   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15961   shlibpath_overrides_runpath=no
15962   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15963   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15964   hardcode_into_libs=yes
15965   ;;
15966
15967 # No shared lib support for Linux oldld, aout, or coff.
15968 linux*oldld* | linux*aout* | linux*coff*)
15969   dynamic_linker=no
15970   ;;
15971
15972 # This must be Linux ELF.
15973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15974   version_type=linux
15975   need_lib_prefix=no
15976   need_version=no
15977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978   soname_spec='${libname}${release}${shared_ext}$major'
15979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15980   shlibpath_var=LD_LIBRARY_PATH
15981   shlibpath_overrides_runpath=no
15982
15983   # Some binutils ld are patched to set DT_RUNPATH
15984   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15985   $as_echo_n "(cached) " >&6
15986 else
15987   lt_cv_shlibpath_overrides_runpath=no
15988     save_LDFLAGS=$LDFLAGS
15989     save_libdir=$libdir
15990     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15991          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h.  */
15994
15995 int
15996 main ()
15997 {
15998
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 if ac_fn_cxx_try_link "$LINENO"; then :
16004   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16005   lt_cv_shlibpath_overrides_runpath=yes
16006 fi
16007 fi
16008 rm -f core conftest.err conftest.$ac_objext \
16009     conftest$ac_exeext conftest.$ac_ext
16010     LDFLAGS=$save_LDFLAGS
16011     libdir=$save_libdir
16012
16013 fi
16014
16015   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16016
16017   # This implies no fast_install, which is unacceptable.
16018   # Some rework will be needed to allow for fast_install
16019   # before this can be enabled.
16020   hardcode_into_libs=yes
16021
16022   # Append ld.so.conf contents to the search path
16023   if test -f /etc/ld.so.conf; then
16024     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' ' '`
16025     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16026   fi
16027
16028   # We used to test for /lib/ld.so.1 and disable shared libraries on
16029   # powerpc, because MkLinux only supported shared libraries with the
16030   # GNU dynamic linker.  Since this was broken with cross compilers,
16031   # most powerpc-linux boxes support dynamic linking these days and
16032   # people can always --disable-shared, the test was removed, and we
16033   # assume the GNU/Linux dynamic linker is in use.
16034   dynamic_linker='GNU/Linux ld.so'
16035   ;;
16036
16037 netbsd*)
16038   version_type=sunos
16039   need_lib_prefix=no
16040   need_version=no
16041   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16043     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16044     dynamic_linker='NetBSD (a.out) ld.so'
16045   else
16046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16047     soname_spec='${libname}${release}${shared_ext}$major'
16048     dynamic_linker='NetBSD ld.elf_so'
16049   fi
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=yes
16052   hardcode_into_libs=yes
16053   ;;
16054
16055 newsos6)
16056   version_type=linux
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=yes
16060   ;;
16061
16062 *nto* | *qnx*)
16063   version_type=qnx
16064   need_lib_prefix=no
16065   need_version=no
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   soname_spec='${libname}${release}${shared_ext}$major'
16068   shlibpath_var=LD_LIBRARY_PATH
16069   shlibpath_overrides_runpath=no
16070   hardcode_into_libs=yes
16071   dynamic_linker='ldqnx.so'
16072   ;;
16073
16074 openbsd*)
16075   version_type=sunos
16076   sys_lib_dlsearch_path_spec="/usr/lib"
16077   need_lib_prefix=no
16078   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16079   case $host_os in
16080     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16081     *)                          need_version=no  ;;
16082   esac
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16085   shlibpath_var=LD_LIBRARY_PATH
16086   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16087     case $host_os in
16088       openbsd2.[89] | openbsd2.[89].*)
16089         shlibpath_overrides_runpath=no
16090         ;;
16091       *)
16092         shlibpath_overrides_runpath=yes
16093         ;;
16094       esac
16095   else
16096     shlibpath_overrides_runpath=yes
16097   fi
16098   ;;
16099
16100 os2*)
16101   libname_spec='$name'
16102   shrext_cmds=".dll"
16103   need_lib_prefix=no
16104   library_names_spec='$libname${shared_ext} $libname.a'
16105   dynamic_linker='OS/2 ld.exe'
16106   shlibpath_var=LIBPATH
16107   ;;
16108
16109 osf3* | osf4* | osf5*)
16110   version_type=osf
16111   need_lib_prefix=no
16112   need_version=no
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115   shlibpath_var=LD_LIBRARY_PATH
16116   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16117   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16118   ;;
16119
16120 rdos*)
16121   dynamic_linker=no
16122   ;;
16123
16124 solaris*)
16125   version_type=linux
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   shlibpath_overrides_runpath=yes
16132   hardcode_into_libs=yes
16133   # ldd complains unless libraries are executable
16134   postinstall_cmds='chmod +x $lib'
16135   ;;
16136
16137 sunos4*)
16138   version_type=sunos
16139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16140   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16141   shlibpath_var=LD_LIBRARY_PATH
16142   shlibpath_overrides_runpath=yes
16143   if test "$with_gnu_ld" = yes; then
16144     need_lib_prefix=no
16145   fi
16146   need_version=yes
16147   ;;
16148
16149 sysv4 | sysv4.3*)
16150   version_type=linux
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   shlibpath_var=LD_LIBRARY_PATH
16154   case $host_vendor in
16155     sni)
16156       shlibpath_overrides_runpath=no
16157       need_lib_prefix=no
16158       runpath_var=LD_RUN_PATH
16159       ;;
16160     siemens)
16161       need_lib_prefix=no
16162       ;;
16163     motorola)
16164       need_lib_prefix=no
16165       need_version=no
16166       shlibpath_overrides_runpath=no
16167       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16168       ;;
16169   esac
16170   ;;
16171
16172 sysv4*MP*)
16173   if test -d /usr/nec ;then
16174     version_type=linux
16175     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16176     soname_spec='$libname${shared_ext}.$major'
16177     shlibpath_var=LD_LIBRARY_PATH
16178   fi
16179   ;;
16180
16181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16182   version_type=freebsd-elf
16183   need_lib_prefix=no
16184   need_version=no
16185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186   soname_spec='${libname}${release}${shared_ext}$major'
16187   shlibpath_var=LD_LIBRARY_PATH
16188   shlibpath_overrides_runpath=yes
16189   hardcode_into_libs=yes
16190   if test "$with_gnu_ld" = yes; then
16191     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16192   else
16193     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16194     case $host_os in
16195       sco3.2v5*)
16196         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16197         ;;
16198     esac
16199   fi
16200   sys_lib_dlsearch_path_spec='/usr/lib'
16201   ;;
16202
16203 tpf*)
16204   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16205   version_type=linux
16206   need_lib_prefix=no
16207   need_version=no
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209   shlibpath_var=LD_LIBRARY_PATH
16210   shlibpath_overrides_runpath=no
16211   hardcode_into_libs=yes
16212   ;;
16213
16214 uts4*)
16215   version_type=linux
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   ;;
16220
16221 *)
16222   dynamic_linker=no
16223   ;;
16224 esac
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16226 $as_echo "$dynamic_linker" >&6; }
16227 test "$dynamic_linker" = no && can_build_shared=no
16228
16229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16230 if test "$GCC" = yes; then
16231   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16232 fi
16233
16234 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16235   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16236 fi
16237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16238   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16239 fi
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16279 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16280 hardcode_action_CXX=
16281 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16282    test -n "$runpath_var_CXX" ||
16283    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16284
16285   # We can hardcode non-existent directories.
16286   if test "$hardcode_direct_CXX" != no &&
16287      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16288      # have to relink, otherwise we might link with an installed library
16289      # when we should be linking with a yet-to-be-installed one
16290      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16291      test "$hardcode_minus_L_CXX" != no; then
16292     # Linking always hardcodes the temporary library directory.
16293     hardcode_action_CXX=relink
16294   else
16295     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16296     hardcode_action_CXX=immediate
16297   fi
16298 else
16299   # We cannot hardcode anything, or else we can only hardcode existing
16300   # directories.
16301   hardcode_action_CXX=unsupported
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16304 $as_echo "$hardcode_action_CXX" >&6; }
16305
16306 if test "$hardcode_action_CXX" = relink ||
16307    test "$inherit_rpath_CXX" = yes; then
16308   # Fast installation is not supported
16309   enable_fast_install=no
16310 elif test "$shlibpath_overrides_runpath" = yes ||
16311      test "$enable_shared" = no; then
16312   # Fast installation is not necessary
16313   enable_fast_install=needless
16314 fi
16315
16316
16317
16318
16319
16320
16321
16322   fi # test -n "$compiler"
16323
16324   CC=$lt_save_CC
16325   CFLAGS=$lt_save_CFLAGS
16326   LDCXX=$LD
16327   LD=$lt_save_LD
16328   GCC=$lt_save_GCC
16329   with_gnu_ld=$lt_save_with_gnu_ld
16330   lt_cv_path_LDCXX=$lt_cv_path_LD
16331   lt_cv_path_LD=$lt_save_path_LD
16332   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16333   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16334 fi # test "$_lt_caught_CXX_error" != yes
16335
16336 ac_ext=c
16337 ac_cpp='$CPP $CPPFLAGS'
16338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354         ac_config_commands="$ac_config_commands libtool"
16355
16356
16357
16358
16359 # Only expand once:
16360
16361
16362
16363
16364 if test x$use_libtool != xno; then
16365    DEFAULT_OBJECT_TYPE=".lo"
16366    DEFAULT_ARCHIVE_TYPE=".la"
16367    DEFAULT_SHARED_OBJECT_TYPE=".la"
16368    LIBTOOL="\$(LIBTOOL)"
16369    LIBTOOL_INSTALL_TARGET="libtool-install"
16370    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16371    LIBTOOL_CLEAN_TARGET="libtool-clean"
16372    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16373    FD_PLUGIN_DIR="src/plugins/fd"
16374    have_plugins=yes
16375 else
16376    DEFAULT_OBJECT_TYPE=".o"
16377    DEFAULT_ARCHIVE_TYPE=".a"
16378    DEFAULT_SHARED_OBJECT_TYPE=".so"
16379    LIBTOOL="# \$(LIBTOOL)"
16380    LIBTOOL_INSTALL_TARGET=""
16381    LIBTOOL_UNINSTALL_TARGET=""
16382    LIBTOOL_CLEAN_TARGET=""
16383    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16384    FD_PLUGIN_DIR=""
16385    have_plugins=no
16386 fi
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398 # Check whether --enable-includes was given.
16399 if test "${enable_includes+set}" = set; then :
16400   enableval=$enable_includes;
16401        if test x$enableval = xyes; then
16402           install_includes=yes
16403        fi
16404
16405
16406 fi
16407
16408
16409
16410 if test x$use_libtool != xno -a x$install_includes = xyes; then
16411    INCLUDE_INSTALL_TARGET="install-includes"
16412    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16413 else
16414    INCLUDE_INSTALL_TARGET=""
16415    INCLUDE_UNINSTALL_TARGET=""
16416 fi
16417
16418
16419
16420
16421
16422 case $host_os in
16423   *cygwin* ) CYGWIN=yes;;
16424          * ) CYGWIN=no;;
16425 esac
16426
16427 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16428 then
16429
16430
16431 if $TRUEPRG; then
16432   HAVE_SUN_OS_TRUE=
16433   HAVE_SUN_OS_FALSE='#'
16434 else
16435   HAVE_SUN_OS_TRUE='#'
16436   HAVE_SUN_OS_FALSE=
16437 fi
16438         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16439
16440 else
16441
16442
16443 if $FALSEPRG; then
16444   HAVE_SUN_OS_TRUE=
16445   HAVE_SUN_OS_FALSE='#'
16446 else
16447   HAVE_SUN_OS_TRUE='#'
16448   HAVE_SUN_OS_FALSE=
16449 fi
16450 fi
16451
16452 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16453 then
16454
16455
16456 if $TRUEPRG; then
16457   HAVE_OSF1_OS_TRUE=
16458   HAVE_OSF1_OS_FALSE='#'
16459 else
16460   HAVE_OSF1_OS_TRUE='#'
16461   HAVE_OSF1_OS_FALSE=
16462 fi
16463         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16464
16465 else
16466
16467
16468 if $FALSEPRG; then
16469   HAVE_OSF1_OS_TRUE=
16470   HAVE_OSF1_OS_FALSE='#'
16471 else
16472   HAVE_OSF1_OS_TRUE='#'
16473   HAVE_OSF1_OS_FALSE=
16474 fi
16475 fi
16476
16477 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16478 then
16479
16480
16481 if $TRUEPRG; then
16482   HAVE_AIX_OS_TRUE=
16483   HAVE_AIX_OS_FALSE='#'
16484 else
16485   HAVE_AIX_OS_TRUE='#'
16486   HAVE_AIX_OS_FALSE=
16487 fi
16488         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16489
16490 else
16491
16492
16493 if $FALSEPRG; then
16494   HAVE_AIX_OS_TRUE=
16495   HAVE_AIX_OS_FALSE='#'
16496 else
16497   HAVE_AIX_OS_TRUE='#'
16498   HAVE_AIX_OS_FALSE=
16499 fi
16500 fi
16501
16502 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16503 then
16504
16505
16506 if $TRUEPRG; then
16507   HAVE_HPUX_OS_TRUE=
16508   HAVE_HPUX_OS_FALSE='#'
16509 else
16510   HAVE_HPUX_OS_TRUE='#'
16511   HAVE_HPUX_OS_FALSE=
16512 fi
16513         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16514
16515 else
16516
16517
16518 if $FALSEPRG; then
16519   HAVE_HPUX_OS_TRUE=
16520   HAVE_HPUX_OS_FALSE='#'
16521 else
16522   HAVE_HPUX_OS_TRUE='#'
16523   HAVE_HPUX_OS_FALSE=
16524 fi
16525 fi
16526
16527 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16528 then
16529
16530
16531 if $TRUEPRG; then
16532   HAVE_LINUX_OS_TRUE=
16533   HAVE_LINUX_OS_FALSE='#'
16534 else
16535   HAVE_LINUX_OS_TRUE='#'
16536   HAVE_LINUX_OS_FALSE=
16537 fi
16538         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16539
16540 else
16541
16542
16543 if $FALSEPRG; then
16544   HAVE_LINUX_OS_TRUE=
16545   HAVE_LINUX_OS_FALSE='#'
16546 else
16547   HAVE_LINUX_OS_TRUE='#'
16548   HAVE_LINUX_OS_FALSE=
16549 fi
16550 fi
16551
16552 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16553 then
16554
16555
16556 if $TRUEPRG; then
16557   HAVE_FREEBSD_OS_TRUE=
16558   HAVE_FREEBSD_OS_FALSE='#'
16559 else
16560   HAVE_FREEBSD_OS_TRUE='#'
16561   HAVE_FREEBSD_OS_FALSE=
16562 fi
16563         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16564
16565 else
16566
16567
16568 if $FALSEPRG; then
16569   HAVE_FREEBSD_OS_TRUE=
16570   HAVE_FREEBSD_OS_FALSE='#'
16571 else
16572   HAVE_FREEBSD_OS_TRUE='#'
16573   HAVE_FREEBSD_OS_FALSE=
16574 fi
16575 fi
16576
16577 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16578 then
16579
16580
16581 if $TRUEPRG; then
16582   HAVE_NETBSD_OS_TRUE=
16583   HAVE_NETBSD_OS_FALSE='#'
16584 else
16585   HAVE_NETBSD_OS_TRUE='#'
16586   HAVE_NETBSD_OS_FALSE=
16587 fi
16588         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16589
16590 else
16591
16592
16593 if $FALSEPRG; then
16594   HAVE_NETBSD_OS_TRUE=
16595   HAVE_NETBSD_OS_FALSE='#'
16596 else
16597   HAVE_NETBSD_OS_TRUE='#'
16598   HAVE_NETBSD_OS_FALSE=
16599 fi
16600 fi
16601
16602 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16603 then
16604
16605
16606 if $TRUEPRG; then
16607   HAVE_OPENBSD_OS_TRUE=
16608   HAVE_OPENBSD_OS_FALSE='#'
16609 else
16610   HAVE_OPENBSD_OS_TRUE='#'
16611   HAVE_OPENBSD_OS_FALSE=
16612 fi
16613         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16614
16615 else
16616
16617
16618 if $FALSEPRG; then
16619   HAVE_OPENBSD_OS_TRUE=
16620   HAVE_OPENBSD_OS_FALSE='#'
16621 else
16622   HAVE_OPENBSD_OS_TRUE='#'
16623   HAVE_OPENBSD_OS_FALSE=
16624 fi
16625 fi
16626
16627 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16628 then
16629
16630
16631 if $TRUEPRG; then
16632   HAVE_BSDI_OS_TRUE=
16633   HAVE_BSDI_OS_FALSE='#'
16634 else
16635   HAVE_BSDI_OS_TRUE='#'
16636   HAVE_BSDI_OS_FALSE=
16637 fi
16638         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16639
16640 else
16641
16642
16643 if $FALSEPRG; then
16644   HAVE_BSDI_OS_TRUE=
16645   HAVE_BSDI_OS_FALSE='#'
16646 else
16647   HAVE_BSDI_OS_TRUE='#'
16648   HAVE_BSDI_OS_FALSE=
16649 fi
16650 fi
16651
16652 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16653 then
16654
16655
16656 if $TRUEPRG; then
16657   HAVE_SGI_OS_TRUE=
16658   HAVE_SGI_OS_FALSE='#'
16659 else
16660   HAVE_SGI_OS_TRUE='#'
16661   HAVE_SGI_OS_FALSE=
16662 fi
16663         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16664
16665 else
16666
16667
16668 if $FALSEPRG; then
16669   HAVE_SGI_OS_TRUE=
16670   HAVE_SGI_OS_FALSE='#'
16671 else
16672   HAVE_SGI_OS_TRUE='#'
16673   HAVE_SGI_OS_FALSE=
16674 fi
16675 fi
16676
16677 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16678 then
16679
16680
16681 if $TRUEPRG; then
16682   HAVE_IRIX_OS_TRUE=
16683   HAVE_IRIX_OS_FALSE='#'
16684 else
16685   HAVE_IRIX_OS_TRUE='#'
16686   HAVE_IRIX_OS_FALSE=
16687 fi
16688         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16689
16690 else
16691
16692
16693 if $FALSEPRG; then
16694   HAVE_IRIX_OS_TRUE=
16695   HAVE_IRIX_OS_FALSE='#'
16696 else
16697   HAVE_IRIX_OS_TRUE='#'
16698   HAVE_IRIX_OS_FALSE=
16699 fi
16700 fi
16701
16702 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16703 then
16704
16705
16706 if $TRUEPRG; then
16707   HAVE_DARWIN_OS_TRUE=
16708   HAVE_DARWIN_OS_FALSE='#'
16709 else
16710   HAVE_DARWIN_OS_TRUE='#'
16711   HAVE_DARWIN_OS_FALSE=
16712 fi
16713     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16714
16715 else
16716
16717
16718 if $FALSEPRG; then
16719   HAVE_DARWIN_OS_TRUE=
16720   HAVE_DARWIN_OS_FALSE='#'
16721 else
16722   HAVE_DARWIN_OS_TRUE='#'
16723   HAVE_DARWIN_OS_FALSE=
16724 fi
16725 fi
16726
16727
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16729 $as_echo_n "checking for Operating System Distribution... " >&6; }
16730 if test "x$DISTNAME" != "x"
16731 then
16732         echo "distname set to $DISTNAME"
16733 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16734 then
16735         DISTNAME=alpha
16736 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16737 then
16738         DISTNAME=aix
16739 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16740 then
16741         DISTNAME=hpux
16742 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16743 then
16744         DISTNAME=solaris
16745 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16746 then
16747         DISTNAME=freebsd
16748 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16749 then
16750         DISTNAME=netbsd
16751 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16752 then
16753         DISTNAME=openbsd
16754 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16755 then
16756         DISTNAME=irix
16757 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16758 then
16759         DISTNAME=bsdi
16760 elif test -f /etc/SuSE-release
16761 then
16762         DISTNAME=suse
16763 elif test -d /etc/SuSEconfig
16764 then
16765         DISTNAME=suse5
16766 elif test -f /etc/mandrake-release
16767 then
16768         DISTNAME=mandrake
16769 elif test -f /etc/whitebox-release
16770 then
16771        DISTNAME=redhat
16772 elif test -f /etc/redhat-release
16773 then
16774         DISTNAME=redhat
16775 elif test -f /etc/gentoo-release
16776 then
16777         DISTNAME=gentoo
16778 elif test -f /etc/debian_version
16779 then
16780         DISTNAME=debian
16781 elif test -f /etc/slackware-version
16782 then
16783         DISTNAME=slackware
16784 elif test x$host_vendor = xapple
16785 then
16786     DISTNAME=osx
16787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16788 then
16789     DISTNAME=darwin
16790 elif test -f /etc/engarde-version
16791 then
16792         DISTNAME=engarde
16793 elif test -f /etc/arch-release
16794 then
16795         DISTNAME=archlinux
16796 elif test "$CYGWIN" = yes
16797 then
16798         DISTNAME=cygwin
16799         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16800
16801 else
16802         DISTNAME=unknown
16803 fi
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16805 $as_echo "done" >&6; }
16806
16807
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16810 set x ${MAKE-make}
16811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16812 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
16813   $as_echo_n "(cached) " >&6
16814 else
16815   cat >conftest.make <<\_ACEOF
16816 SHELL = /bin/sh
16817 all:
16818         @echo '@@@%%%=$(MAKE)=@@@%%%'
16819 _ACEOF
16820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16822   *@@@%%%=?*=@@@%%%*)
16823     eval ac_cv_prog_make_${ac_make}_set=yes;;
16824   *)
16825     eval ac_cv_prog_make_${ac_make}_set=no;;
16826 esac
16827 rm -f conftest.make
16828 fi
16829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16832   SET_MAKE=
16833 else
16834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835 $as_echo "no" >&6; }
16836   SET_MAKE="MAKE=${MAKE-make}"
16837 fi
16838
16839
16840
16841         MKINSTALLDIRS=
16842   if test -n "$ac_aux_dir"; then
16843     case "$ac_aux_dir" in
16844       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16845       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16846     esac
16847   fi
16848   if test -z "$MKINSTALLDIRS"; then
16849     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16850   fi
16851
16852
16853
16854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16855 $as_echo_n "checking whether NLS is requested... " >&6; }
16856     # Check whether --enable-nls was given.
16857 if test "${enable_nls+set}" = set; then :
16858   enableval=$enable_nls; USE_NLS=$enableval
16859 else
16860   USE_NLS=yes
16861 fi
16862
16863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16864 $as_echo "$USE_NLS" >&6; }
16865
16866
16867
16868
16869
16870
16871 # Prepare PATH_SEPARATOR.
16872 # The user is always right.
16873 if test "${PATH_SEPARATOR+set}" != set; then
16874   echo "#! /bin/sh" >conf$$.sh
16875   echo  "exit 0"   >>conf$$.sh
16876   chmod +x conf$$.sh
16877   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16878     PATH_SEPARATOR=';'
16879   else
16880     PATH_SEPARATOR=:
16881   fi
16882   rm -f conf$$.sh
16883 fi
16884
16885 # Find out how to test for executable files. Don't use a zero-byte file,
16886 # as systems may use methods other than mode bits to determine executability.
16887 cat >conf$$.file <<_ASEOF
16888 #! /bin/sh
16889 exit 0
16890 _ASEOF
16891 chmod +x conf$$.file
16892 if test -x conf$$.file >/dev/null 2>&1; then
16893   ac_executable_p="test -x"
16894 else
16895   ac_executable_p="test -f"
16896 fi
16897 rm -f conf$$.file
16898
16899 # Extract the first word of "msgfmt", so it can be a program name with args.
16900 set dummy msgfmt; ac_word=$2
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16902 $as_echo_n "checking for $ac_word... " >&6; }
16903 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16904   $as_echo_n "(cached) " >&6
16905 else
16906   case "$MSGFMT" in
16907   [\\/]* | ?:[\\/]*)
16908     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16909     ;;
16910   *)
16911     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16912     for ac_dir in $PATH; do
16913       IFS="$ac_save_IFS"
16914       test -z "$ac_dir" && ac_dir=.
16915       for ac_exec_ext in '' $ac_executable_extensions; do
16916         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16917           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16918           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16919      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16920             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16921             break 2
16922           fi
16923         fi
16924       done
16925     done
16926     IFS="$ac_save_IFS"
16927   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16928     ;;
16929 esac
16930 fi
16931 MSGFMT="$ac_cv_path_MSGFMT"
16932 if test "$MSGFMT" != ":"; then
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16934 $as_echo "$MSGFMT" >&6; }
16935 else
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16938 fi
16939
16940   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16941 set dummy gmsgfmt; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   case $GMSGFMT in
16948   [\\/]* | ?:[\\/]*)
16949   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16950   ;;
16951   *)
16952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16954 do
16955   IFS=$as_save_IFS
16956   test -z "$as_dir" && as_dir=.
16957     for ac_exec_ext in '' $ac_executable_extensions; do
16958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16959     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16961     break 2
16962   fi
16963 done
16964   done
16965 IFS=$as_save_IFS
16966
16967   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16968   ;;
16969 esac
16970 fi
16971 GMSGFMT=$ac_cv_path_GMSGFMT
16972 if test -n "$GMSGFMT"; then
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16974 $as_echo "$GMSGFMT" >&6; }
16975 else
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16977 $as_echo "no" >&6; }
16978 fi
16979
16980
16981
16982
16983 # Prepare PATH_SEPARATOR.
16984 # The user is always right.
16985 if test "${PATH_SEPARATOR+set}" != set; then
16986   echo "#! /bin/sh" >conf$$.sh
16987   echo  "exit 0"   >>conf$$.sh
16988   chmod +x conf$$.sh
16989   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16990     PATH_SEPARATOR=';'
16991   else
16992     PATH_SEPARATOR=:
16993   fi
16994   rm -f conf$$.sh
16995 fi
16996
16997 # Find out how to test for executable files. Don't use a zero-byte file,
16998 # as systems may use methods other than mode bits to determine executability.
16999 cat >conf$$.file <<_ASEOF
17000 #! /bin/sh
17001 exit 0
17002 _ASEOF
17003 chmod +x conf$$.file
17004 if test -x conf$$.file >/dev/null 2>&1; then
17005   ac_executable_p="test -x"
17006 else
17007   ac_executable_p="test -f"
17008 fi
17009 rm -f conf$$.file
17010
17011 # Extract the first word of "xgettext", so it can be a program name with args.
17012 set dummy xgettext; ac_word=$2
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17014 $as_echo_n "checking for $ac_word... " >&6; }
17015 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17016   $as_echo_n "(cached) " >&6
17017 else
17018   case "$XGETTEXT" in
17019   [\\/]* | ?:[\\/]*)
17020     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17021     ;;
17022   *)
17023     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17024     for ac_dir in $PATH; do
17025       IFS="$ac_save_IFS"
17026       test -z "$ac_dir" && ac_dir=.
17027       for ac_exec_ext in '' $ac_executable_extensions; do
17028         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17029           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17030           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17031      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17032             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17033             break 2
17034           fi
17035         fi
17036       done
17037     done
17038     IFS="$ac_save_IFS"
17039   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17040     ;;
17041 esac
17042 fi
17043 XGETTEXT="$ac_cv_path_XGETTEXT"
17044 if test "$XGETTEXT" != ":"; then
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17046 $as_echo "$XGETTEXT" >&6; }
17047 else
17048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17050 fi
17051
17052     rm -f messages.po
17053
17054
17055 # Prepare PATH_SEPARATOR.
17056 # The user is always right.
17057 if test "${PATH_SEPARATOR+set}" != set; then
17058   echo "#! /bin/sh" >conf$$.sh
17059   echo  "exit 0"   >>conf$$.sh
17060   chmod +x conf$$.sh
17061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17062     PATH_SEPARATOR=';'
17063   else
17064     PATH_SEPARATOR=:
17065   fi
17066   rm -f conf$$.sh
17067 fi
17068
17069 # Find out how to test for executable files. Don't use a zero-byte file,
17070 # as systems may use methods other than mode bits to determine executability.
17071 cat >conf$$.file <<_ASEOF
17072 #! /bin/sh
17073 exit 0
17074 _ASEOF
17075 chmod +x conf$$.file
17076 if test -x conf$$.file >/dev/null 2>&1; then
17077   ac_executable_p="test -x"
17078 else
17079   ac_executable_p="test -f"
17080 fi
17081 rm -f conf$$.file
17082
17083 # Extract the first word of "msgmerge", so it can be a program name with args.
17084 set dummy msgmerge; ac_word=$2
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17086 $as_echo_n "checking for $ac_word... " >&6; }
17087 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17088   $as_echo_n "(cached) " >&6
17089 else
17090   case "$MSGMERGE" in
17091   [\\/]* | ?:[\\/]*)
17092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17093     ;;
17094   *)
17095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17096     for ac_dir in $PATH; do
17097       IFS="$ac_save_IFS"
17098       test -z "$ac_dir" && ac_dir=.
17099       for ac_exec_ext in '' $ac_executable_extensions; do
17100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17104             break 2
17105           fi
17106         fi
17107       done
17108     done
17109     IFS="$ac_save_IFS"
17110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17111     ;;
17112 esac
17113 fi
17114 MSGMERGE="$ac_cv_path_MSGMERGE"
17115 if test "$MSGMERGE" != ":"; then
17116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17117 $as_echo "$MSGMERGE" >&6; }
17118 else
17119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17121 fi
17122
17123
17124       if test "$GMSGFMT" != ":"; then
17125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17127       : ;
17128     else
17129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17131 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17132       GMSGFMT=":"
17133     fi
17134   fi
17135
17136       if test "$XGETTEXT" != ":"; then
17137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17138        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17139       : ;
17140     else
17141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17142 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17143       XGETTEXT=":"
17144     fi
17145         rm -f messages.po
17146   fi
17147
17148   ac_config_commands="$ac_config_commands default-1"
17149
17150
17151
17152       if test "X$prefix" = "XNONE"; then
17153     acl_final_prefix="$ac_default_prefix"
17154   else
17155     acl_final_prefix="$prefix"
17156   fi
17157   if test "X$exec_prefix" = "XNONE"; then
17158     acl_final_exec_prefix='${prefix}'
17159   else
17160     acl_final_exec_prefix="$exec_prefix"
17161   fi
17162   acl_save_prefix="$prefix"
17163   prefix="$acl_final_prefix"
17164   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17165   prefix="$acl_save_prefix"
17166
17167
17168 # Check whether --with-gnu-ld was given.
17169 if test "${with_gnu_ld+set}" = set; then :
17170   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17171 else
17172   with_gnu_ld=no
17173 fi
17174
17175 # Prepare PATH_SEPARATOR.
17176 # The user is always right.
17177 if test "${PATH_SEPARATOR+set}" != set; then
17178   echo "#! /bin/sh" >conf$$.sh
17179   echo  "exit 0"   >>conf$$.sh
17180   chmod +x conf$$.sh
17181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17182     PATH_SEPARATOR=';'
17183   else
17184     PATH_SEPARATOR=:
17185   fi
17186   rm -f conf$$.sh
17187 fi
17188 ac_prog=ld
17189 if test "$GCC" = yes; then
17190   # Check if gcc -print-prog-name=ld gives a path.
17191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17192 $as_echo_n "checking for ld used by GCC... " >&6; }
17193   case $host in
17194   *-*-mingw*)
17195     # gcc leaves a trailing carriage return which upsets mingw
17196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17197   *)
17198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17199   esac
17200   case $ac_prog in
17201     # Accept absolute paths.
17202     [\\/]* | [A-Za-z]:[\\/]*)
17203       re_direlt='/[^/][^/]*/\.\./'
17204       # Canonicalize the path of ld
17205       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17206       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17207         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17208       done
17209       test -z "$LD" && LD="$ac_prog"
17210       ;;
17211   "")
17212     # If it fails, then pretend we aren't using GCC.
17213     ac_prog=ld
17214     ;;
17215   *)
17216     # If it is relative, then search for the first ld in PATH.
17217     with_gnu_ld=unknown
17218     ;;
17219   esac
17220 elif test "$with_gnu_ld" = yes; then
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17222 $as_echo_n "checking for GNU ld... " >&6; }
17223 else
17224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17225 $as_echo_n "checking for non-GNU ld... " >&6; }
17226 fi
17227 if test "${acl_cv_path_LD+set}" = set; then :
17228   $as_echo_n "(cached) " >&6
17229 else
17230   if test -z "$LD"; then
17231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17232   for ac_dir in $PATH; do
17233     test -z "$ac_dir" && ac_dir=.
17234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17235       acl_cv_path_LD="$ac_dir/$ac_prog"
17236       # Check to see if the program is GNU ld.  I'd rather use --version,
17237       # but apparently some GNU ld's only accept -v.
17238       # Break only if it was the GNU/non-GNU ld that we prefer.
17239       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17240       *GNU* | *'with BFD'*)
17241         test "$with_gnu_ld" != no && break ;;
17242       *)
17243         test "$with_gnu_ld" != yes && break ;;
17244       esac
17245     fi
17246   done
17247   IFS="$ac_save_ifs"
17248 else
17249   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17250 fi
17251 fi
17252
17253 LD="$acl_cv_path_LD"
17254 if test -n "$LD"; then
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17256 $as_echo "$LD" >&6; }
17257 else
17258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17260 fi
17261 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17264 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17265   $as_echo_n "(cached) " >&6
17266 else
17267   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17268 case `$LD -v 2>&1 </dev/null` in
17269 *GNU* | *'with BFD'*)
17270   acl_cv_prog_gnu_ld=yes ;;
17271 *)
17272   acl_cv_prog_gnu_ld=no ;;
17273 esac
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17276 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17277 with_gnu_ld=$acl_cv_prog_gnu_ld
17278
17279
17280
17281
17282                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17283 $as_echo_n "checking for shared library run path origin... " >&6; }
17284 if test "${acl_cv_rpath+set}" = set; then :
17285   $as_echo_n "(cached) " >&6
17286 else
17287
17288     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17289     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17290     . ./conftest.sh
17291     rm -f ./conftest.sh
17292     acl_cv_rpath=done
17293
17294 fi
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17296 $as_echo "$acl_cv_rpath" >&6; }
17297   wl="$acl_cv_wl"
17298   libext="$acl_cv_libext"
17299   shlibext="$acl_cv_shlibext"
17300   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17301   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17302   hardcode_direct="$acl_cv_hardcode_direct"
17303   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17304     # Check whether --enable-rpath was given.
17305 if test "${enable_rpath+set}" = set; then :
17306   enableval=$enable_rpath; :
17307 else
17308   enable_rpath=yes
17309 fi
17310
17311
17312
17313
17314
17315
17316
17317
17318     use_additional=yes
17319
17320   acl_save_prefix="$prefix"
17321   prefix="$acl_final_prefix"
17322   acl_save_exec_prefix="$exec_prefix"
17323   exec_prefix="$acl_final_exec_prefix"
17324
17325     eval additional_includedir=\"$includedir\"
17326     eval additional_libdir=\"$libdir\"
17327
17328   exec_prefix="$acl_save_exec_prefix"
17329   prefix="$acl_save_prefix"
17330
17331
17332 # Check whether --with-libiconv-prefix was given.
17333 if test "${with_libiconv_prefix+set}" = set; then :
17334   withval=$with_libiconv_prefix;
17335     if test "X$withval" = "Xno"; then
17336       use_additional=no
17337     else
17338       if test "X$withval" = "X"; then
17339
17340   acl_save_prefix="$prefix"
17341   prefix="$acl_final_prefix"
17342   acl_save_exec_prefix="$exec_prefix"
17343   exec_prefix="$acl_final_exec_prefix"
17344
17345           eval additional_includedir=\"$includedir\"
17346           eval additional_libdir=\"$libdir\"
17347
17348   exec_prefix="$acl_save_exec_prefix"
17349   prefix="$acl_save_prefix"
17350
17351       else
17352         additional_includedir="$withval/include"
17353         additional_libdir="$withval/lib"
17354       fi
17355     fi
17356
17357 fi
17358
17359       LIBICONV=
17360   LTLIBICONV=
17361   INCICONV=
17362   rpathdirs=
17363   ltrpathdirs=
17364   names_already_handled=
17365   names_next_round='iconv '
17366   while test -n "$names_next_round"; do
17367     names_this_round="$names_next_round"
17368     names_next_round=
17369     for name in $names_this_round; do
17370       already_handled=
17371       for n in $names_already_handled; do
17372         if test "$n" = "$name"; then
17373           already_handled=yes
17374           break
17375         fi
17376       done
17377       if test -z "$already_handled"; then
17378         names_already_handled="$names_already_handled $name"
17379                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17380         eval value=\"\$HAVE_LIB$uppername\"
17381         if test -n "$value"; then
17382           if test "$value" = yes; then
17383             eval value=\"\$LIB$uppername\"
17384             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17385             eval value=\"\$LTLIB$uppername\"
17386             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17387           else
17388                                     :
17389           fi
17390         else
17391                               found_dir=
17392           found_la=
17393           found_so=
17394           found_a=
17395           if test $use_additional = yes; then
17396             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17397               found_dir="$additional_libdir"
17398               found_so="$additional_libdir/lib$name.$shlibext"
17399               if test -f "$additional_libdir/lib$name.la"; then
17400                 found_la="$additional_libdir/lib$name.la"
17401               fi
17402             else
17403               if test -f "$additional_libdir/lib$name.$libext"; then
17404                 found_dir="$additional_libdir"
17405                 found_a="$additional_libdir/lib$name.$libext"
17406                 if test -f "$additional_libdir/lib$name.la"; then
17407                   found_la="$additional_libdir/lib$name.la"
17408                 fi
17409               fi
17410             fi
17411           fi
17412           if test "X$found_dir" = "X"; then
17413             for x in $LDFLAGS $LTLIBICONV; do
17414
17415   acl_save_prefix="$prefix"
17416   prefix="$acl_final_prefix"
17417   acl_save_exec_prefix="$exec_prefix"
17418   exec_prefix="$acl_final_exec_prefix"
17419   eval x=\"$x\"
17420   exec_prefix="$acl_save_exec_prefix"
17421   prefix="$acl_save_prefix"
17422
17423               case "$x" in
17424                 -L*)
17425                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17426                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17427                     found_dir="$dir"
17428                     found_so="$dir/lib$name.$shlibext"
17429                     if test -f "$dir/lib$name.la"; then
17430                       found_la="$dir/lib$name.la"
17431                     fi
17432                   else
17433                     if test -f "$dir/lib$name.$libext"; then
17434                       found_dir="$dir"
17435                       found_a="$dir/lib$name.$libext"
17436                       if test -f "$dir/lib$name.la"; then
17437                         found_la="$dir/lib$name.la"
17438                       fi
17439                     fi
17440                   fi
17441                   ;;
17442               esac
17443               if test "X$found_dir" != "X"; then
17444                 break
17445               fi
17446             done
17447           fi
17448           if test "X$found_dir" != "X"; then
17449                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17450             if test "X$found_so" != "X"; then
17451                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17452                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17453               else
17454                                                                                 haveit=
17455                 for x in $ltrpathdirs; do
17456                   if test "X$x" = "X$found_dir"; then
17457                     haveit=yes
17458                     break
17459                   fi
17460                 done
17461                 if test -z "$haveit"; then
17462                   ltrpathdirs="$ltrpathdirs $found_dir"
17463                 fi
17464                                 if test "$hardcode_direct" = yes; then
17465                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17466                 else
17467                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17468                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17469                                                             haveit=
17470                     for x in $rpathdirs; do
17471                       if test "X$x" = "X$found_dir"; then
17472                         haveit=yes
17473                         break
17474                       fi
17475                     done
17476                     if test -z "$haveit"; then
17477                       rpathdirs="$rpathdirs $found_dir"
17478                     fi
17479                   else
17480                                                                                 haveit=
17481                     for x in $LDFLAGS $LIBICONV; do
17482
17483   acl_save_prefix="$prefix"
17484   prefix="$acl_final_prefix"
17485   acl_save_exec_prefix="$exec_prefix"
17486   exec_prefix="$acl_final_exec_prefix"
17487   eval x=\"$x\"
17488   exec_prefix="$acl_save_exec_prefix"
17489   prefix="$acl_save_prefix"
17490
17491                       if test "X$x" = "X-L$found_dir"; then
17492                         haveit=yes
17493                         break
17494                       fi
17495                     done
17496                     if test -z "$haveit"; then
17497                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17498                     fi
17499                     if test "$hardcode_minus_L" != no; then
17500                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17501                     else
17502                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17503                     fi
17504                   fi
17505                 fi
17506               fi
17507             else
17508               if test "X$found_a" != "X"; then
17509                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17510               else
17511                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17512               fi
17513             fi
17514                         additional_includedir=
17515             case "$found_dir" in
17516               */lib | */lib/)
17517                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17518                 additional_includedir="$basedir/include"
17519                 ;;
17520             esac
17521             if test "X$additional_includedir" != "X"; then
17522                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17523                 haveit=
17524                 if test "X$additional_includedir" = "X/usr/local/include"; then
17525                   if test -n "$GCC"; then
17526                     case $host_os in
17527                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17528                     esac
17529                   fi
17530                 fi
17531                 if test -z "$haveit"; then
17532                   for x in $CPPFLAGS $INCICONV; do
17533
17534   acl_save_prefix="$prefix"
17535   prefix="$acl_final_prefix"
17536   acl_save_exec_prefix="$exec_prefix"
17537   exec_prefix="$acl_final_exec_prefix"
17538   eval x=\"$x\"
17539   exec_prefix="$acl_save_exec_prefix"
17540   prefix="$acl_save_prefix"
17541
17542                     if test "X$x" = "X-I$additional_includedir"; then
17543                       haveit=yes
17544                       break
17545                     fi
17546                   done
17547                   if test -z "$haveit"; then
17548                     if test -d "$additional_includedir"; then
17549                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17550                     fi
17551                   fi
17552                 fi
17553               fi
17554             fi
17555                         if test -n "$found_la"; then
17556                                                         save_libdir="$libdir"
17557               case "$found_la" in
17558                 */* | *\\*) . "$found_la" ;;
17559                 *) . "./$found_la" ;;
17560               esac
17561               libdir="$save_libdir"
17562                             for dep in $dependency_libs; do
17563                 case "$dep" in
17564                   -L*)
17565                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17566                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17567                       haveit=
17568                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17569                         if test -n "$GCC"; then
17570                           case $host_os in
17571                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17572                           esac
17573                         fi
17574                       fi
17575                       if test -z "$haveit"; then
17576                         haveit=
17577                         for x in $LDFLAGS $LIBICONV; do
17578
17579   acl_save_prefix="$prefix"
17580   prefix="$acl_final_prefix"
17581   acl_save_exec_prefix="$exec_prefix"
17582   exec_prefix="$acl_final_exec_prefix"
17583   eval x=\"$x\"
17584   exec_prefix="$acl_save_exec_prefix"
17585   prefix="$acl_save_prefix"
17586
17587                           if test "X$x" = "X-L$additional_libdir"; then
17588                             haveit=yes
17589                             break
17590                           fi
17591                         done
17592                         if test -z "$haveit"; then
17593                           if test -d "$additional_libdir"; then
17594                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17595                           fi
17596                         fi
17597                         haveit=
17598                         for x in $LDFLAGS $LTLIBICONV; do
17599
17600   acl_save_prefix="$prefix"
17601   prefix="$acl_final_prefix"
17602   acl_save_exec_prefix="$exec_prefix"
17603   exec_prefix="$acl_final_exec_prefix"
17604   eval x=\"$x\"
17605   exec_prefix="$acl_save_exec_prefix"
17606   prefix="$acl_save_prefix"
17607
17608                           if test "X$x" = "X-L$additional_libdir"; then
17609                             haveit=yes
17610                             break
17611                           fi
17612                         done
17613                         if test -z "$haveit"; then
17614                           if test -d "$additional_libdir"; then
17615                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17616                           fi
17617                         fi
17618                       fi
17619                     fi
17620                     ;;
17621                   -R*)
17622                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17623                     if test "$enable_rpath" != no; then
17624                                                                   haveit=
17625                       for x in $rpathdirs; do
17626                         if test "X$x" = "X$dir"; then
17627                           haveit=yes
17628                           break
17629                         fi
17630                       done
17631                       if test -z "$haveit"; then
17632                         rpathdirs="$rpathdirs $dir"
17633                       fi
17634                                                                   haveit=
17635                       for x in $ltrpathdirs; do
17636                         if test "X$x" = "X$dir"; then
17637                           haveit=yes
17638                           break
17639                         fi
17640                       done
17641                       if test -z "$haveit"; then
17642                         ltrpathdirs="$ltrpathdirs $dir"
17643                       fi
17644                     fi
17645                     ;;
17646                   -l*)
17647                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17648                     ;;
17649                   *.la)
17650                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17651                     ;;
17652                   *)
17653                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17654                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17655                     ;;
17656                 esac
17657               done
17658             fi
17659           else
17660                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17661             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17662           fi
17663         fi
17664       fi
17665     done
17666   done
17667   if test "X$rpathdirs" != "X"; then
17668     if test -n "$hardcode_libdir_separator"; then
17669                         alldirs=
17670       for found_dir in $rpathdirs; do
17671         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17672       done
17673             acl_save_libdir="$libdir"
17674       libdir="$alldirs"
17675       eval flag=\"$hardcode_libdir_flag_spec\"
17676       libdir="$acl_save_libdir"
17677       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17678     else
17679             for found_dir in $rpathdirs; do
17680         acl_save_libdir="$libdir"
17681         libdir="$found_dir"
17682         eval flag=\"$hardcode_libdir_flag_spec\"
17683         libdir="$acl_save_libdir"
17684         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17685       done
17686     fi
17687   fi
17688   if test "X$ltrpathdirs" != "X"; then
17689             for found_dir in $ltrpathdirs; do
17690       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17691     done
17692   fi
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17712 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17713 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17714   $as_echo_n "(cached) " >&6
17715 else
17716   gt_save_CPPFLAGS="$CPPFLAGS"
17717      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17718      gt_save_LIBS="$LIBS"
17719      LIBS="$LIBS -framework CoreFoundation"
17720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h.  */
17722 #include <CFPreferences.h>
17723 int
17724 main ()
17725 {
17726 CFPreferencesCopyAppValue(NULL, NULL)
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"; then :
17732   gt_cv_func_CFPreferencesCopyAppValue=yes
17733 else
17734   gt_cv_func_CFPreferencesCopyAppValue=no
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext \
17737     conftest$ac_exeext conftest.$ac_ext
17738      CPPFLAGS="$gt_save_CPPFLAGS"
17739      LIBS="$gt_save_LIBS"
17740 fi
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17742 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17743   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17744
17745 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17746
17747   fi
17748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17749 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17750 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   gt_save_CPPFLAGS="$CPPFLAGS"
17754      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17755      gt_save_LIBS="$LIBS"
17756      LIBS="$LIBS -framework CoreFoundation"
17757      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h.  */
17759 #include <CFLocale.h>
17760 int
17761 main ()
17762 {
17763 CFLocaleCopyCurrent();
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 if ac_fn_c_try_link "$LINENO"; then :
17769   gt_cv_func_CFLocaleCopyCurrent=yes
17770 else
17771   gt_cv_func_CFLocaleCopyCurrent=no
17772 fi
17773 rm -f core conftest.err conftest.$ac_objext \
17774     conftest$ac_exeext conftest.$ac_ext
17775      CPPFLAGS="$gt_save_CPPFLAGS"
17776      LIBS="$gt_save_LIBS"
17777 fi
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17779 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17780   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17781
17782 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17783
17784   fi
17785   INTL_MACOSX_LIBS=
17786   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17787     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17788   fi
17789
17790
17791
17792
17793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17794 $as_echo_n "checking whether NLS is requested... " >&6; }
17795     # Check whether --enable-nls was given.
17796 if test "${enable_nls+set}" = set; then :
17797   enableval=$enable_nls; USE_NLS=$enableval
17798 else
17799   USE_NLS=yes
17800 fi
17801
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17803 $as_echo "$USE_NLS" >&6; }
17804
17805
17806
17807
17808   LIBINTL=
17809   LTLIBINTL=
17810   POSUB=
17811
17812     if test "$USE_NLS" = "yes"; then
17813     gt_use_preinstalled_gnugettext=no
17814
17815
17816
17817
17818
17819
17820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17821 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17822 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17823   $as_echo_n "(cached) " >&6
17824 else
17825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h.  */
17827 #include <libintl.h>
17828 extern int _nl_msg_cat_cntr;
17829 extern int *_nl_domain_bindings;
17830 int
17831 main ()
17832 {
17833 bindtextdomain ("", "");
17834 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 if ac_fn_c_try_link "$LINENO"; then :
17840   gt_cv_func_gnugettext1_libc=yes
17841 else
17842   gt_cv_func_gnugettext1_libc=no
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext \
17845     conftest$ac_exeext conftest.$ac_ext
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17848 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17849
17850         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17851
17852
17853
17854
17855
17856           am_save_CPPFLAGS="$CPPFLAGS"
17857
17858   for element in $INCICONV; do
17859     haveit=
17860     for x in $CPPFLAGS; do
17861
17862   acl_save_prefix="$prefix"
17863   prefix="$acl_final_prefix"
17864   acl_save_exec_prefix="$exec_prefix"
17865   exec_prefix="$acl_final_exec_prefix"
17866   eval x=\"$x\"
17867   exec_prefix="$acl_save_exec_prefix"
17868   prefix="$acl_save_prefix"
17869
17870       if test "X$x" = "X$element"; then
17871         haveit=yes
17872         break
17873       fi
17874     done
17875     if test -z "$haveit"; then
17876       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17877     fi
17878   done
17879
17880
17881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17882 $as_echo_n "checking for iconv... " >&6; }
17883 if test "${am_cv_func_iconv+set}" = set; then :
17884   $as_echo_n "(cached) " >&6
17885 else
17886
17887     am_cv_func_iconv="no, consider installing GNU libiconv"
17888     am_cv_lib_iconv=no
17889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h.  */
17891 #include <stdlib.h>
17892 #include <iconv.h>
17893 int
17894 main ()
17895 {
17896 iconv_t cd = iconv_open("","");
17897        iconv(cd,NULL,NULL,NULL,NULL);
17898        iconv_close(cd);
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 if ac_fn_c_try_link "$LINENO"; then :
17904   am_cv_func_iconv=yes
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext \
17907     conftest$ac_exeext conftest.$ac_ext
17908     if test "$am_cv_func_iconv" != yes; then
17909       am_save_LIBS="$LIBS"
17910       LIBS="$LIBS $LIBICONV"
17911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h.  */
17913 #include <stdlib.h>
17914 #include <iconv.h>
17915 int
17916 main ()
17917 {
17918 iconv_t cd = iconv_open("","");
17919          iconv(cd,NULL,NULL,NULL,NULL);
17920          iconv_close(cd);
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 if ac_fn_c_try_link "$LINENO"; then :
17926   am_cv_lib_iconv=yes
17927         am_cv_func_iconv=yes
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext \
17930     conftest$ac_exeext conftest.$ac_ext
17931       LIBS="$am_save_LIBS"
17932     fi
17933
17934 fi
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17936 $as_echo "$am_cv_func_iconv" >&6; }
17937   if test "$am_cv_func_iconv" = yes; then
17938
17939 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17940
17941   fi
17942   if test "$am_cv_lib_iconv" = yes; then
17943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17944 $as_echo_n "checking how to link with libiconv... " >&6; }
17945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17946 $as_echo "$LIBICONV" >&6; }
17947   else
17948             CPPFLAGS="$am_save_CPPFLAGS"
17949     LIBICONV=
17950     LTLIBICONV=
17951   fi
17952
17953
17954
17955
17956
17957
17958     use_additional=yes
17959
17960   acl_save_prefix="$prefix"
17961   prefix="$acl_final_prefix"
17962   acl_save_exec_prefix="$exec_prefix"
17963   exec_prefix="$acl_final_exec_prefix"
17964
17965     eval additional_includedir=\"$includedir\"
17966     eval additional_libdir=\"$libdir\"
17967
17968   exec_prefix="$acl_save_exec_prefix"
17969   prefix="$acl_save_prefix"
17970
17971
17972 # Check whether --with-libintl-prefix was given.
17973 if test "${with_libintl_prefix+set}" = set; then :
17974   withval=$with_libintl_prefix;
17975     if test "X$withval" = "Xno"; then
17976       use_additional=no
17977     else
17978       if test "X$withval" = "X"; then
17979
17980   acl_save_prefix="$prefix"
17981   prefix="$acl_final_prefix"
17982   acl_save_exec_prefix="$exec_prefix"
17983   exec_prefix="$acl_final_exec_prefix"
17984
17985           eval additional_includedir=\"$includedir\"
17986           eval additional_libdir=\"$libdir\"
17987
17988   exec_prefix="$acl_save_exec_prefix"
17989   prefix="$acl_save_prefix"
17990
17991       else
17992         additional_includedir="$withval/include"
17993         additional_libdir="$withval/lib"
17994       fi
17995     fi
17996
17997 fi
17998
17999       LIBINTL=
18000   LTLIBINTL=
18001   INCINTL=
18002   rpathdirs=
18003   ltrpathdirs=
18004   names_already_handled=
18005   names_next_round='intl '
18006   while test -n "$names_next_round"; do
18007     names_this_round="$names_next_round"
18008     names_next_round=
18009     for name in $names_this_round; do
18010       already_handled=
18011       for n in $names_already_handled; do
18012         if test "$n" = "$name"; then
18013           already_handled=yes
18014           break
18015         fi
18016       done
18017       if test -z "$already_handled"; then
18018         names_already_handled="$names_already_handled $name"
18019                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18020         eval value=\"\$HAVE_LIB$uppername\"
18021         if test -n "$value"; then
18022           if test "$value" = yes; then
18023             eval value=\"\$LIB$uppername\"
18024             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18025             eval value=\"\$LTLIB$uppername\"
18026             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18027           else
18028                                     :
18029           fi
18030         else
18031                               found_dir=
18032           found_la=
18033           found_so=
18034           found_a=
18035           if test $use_additional = yes; then
18036             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18037               found_dir="$additional_libdir"
18038               found_so="$additional_libdir/lib$name.$shlibext"
18039               if test -f "$additional_libdir/lib$name.la"; then
18040                 found_la="$additional_libdir/lib$name.la"
18041               fi
18042             else
18043               if test -f "$additional_libdir/lib$name.$libext"; then
18044                 found_dir="$additional_libdir"
18045                 found_a="$additional_libdir/lib$name.$libext"
18046                 if test -f "$additional_libdir/lib$name.la"; then
18047                   found_la="$additional_libdir/lib$name.la"
18048                 fi
18049               fi
18050             fi
18051           fi
18052           if test "X$found_dir" = "X"; then
18053             for x in $LDFLAGS $LTLIBINTL; do
18054
18055   acl_save_prefix="$prefix"
18056   prefix="$acl_final_prefix"
18057   acl_save_exec_prefix="$exec_prefix"
18058   exec_prefix="$acl_final_exec_prefix"
18059   eval x=\"$x\"
18060   exec_prefix="$acl_save_exec_prefix"
18061   prefix="$acl_save_prefix"
18062
18063               case "$x" in
18064                 -L*)
18065                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18066                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18067                     found_dir="$dir"
18068                     found_so="$dir/lib$name.$shlibext"
18069                     if test -f "$dir/lib$name.la"; then
18070                       found_la="$dir/lib$name.la"
18071                     fi
18072                   else
18073                     if test -f "$dir/lib$name.$libext"; then
18074                       found_dir="$dir"
18075                       found_a="$dir/lib$name.$libext"
18076                       if test -f "$dir/lib$name.la"; then
18077                         found_la="$dir/lib$name.la"
18078                       fi
18079                     fi
18080                   fi
18081                   ;;
18082               esac
18083               if test "X$found_dir" != "X"; then
18084                 break
18085               fi
18086             done
18087           fi
18088           if test "X$found_dir" != "X"; then
18089                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18090             if test "X$found_so" != "X"; then
18091                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18092                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18093               else
18094                                                                                 haveit=
18095                 for x in $ltrpathdirs; do
18096                   if test "X$x" = "X$found_dir"; then
18097                     haveit=yes
18098                     break
18099                   fi
18100                 done
18101                 if test -z "$haveit"; then
18102                   ltrpathdirs="$ltrpathdirs $found_dir"
18103                 fi
18104                                 if test "$hardcode_direct" = yes; then
18105                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18106                 else
18107                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18108                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18109                                                             haveit=
18110                     for x in $rpathdirs; do
18111                       if test "X$x" = "X$found_dir"; then
18112                         haveit=yes
18113                         break
18114                       fi
18115                     done
18116                     if test -z "$haveit"; then
18117                       rpathdirs="$rpathdirs $found_dir"
18118                     fi
18119                   else
18120                                                                                 haveit=
18121                     for x in $LDFLAGS $LIBINTL; do
18122
18123   acl_save_prefix="$prefix"
18124   prefix="$acl_final_prefix"
18125   acl_save_exec_prefix="$exec_prefix"
18126   exec_prefix="$acl_final_exec_prefix"
18127   eval x=\"$x\"
18128   exec_prefix="$acl_save_exec_prefix"
18129   prefix="$acl_save_prefix"
18130
18131                       if test "X$x" = "X-L$found_dir"; then
18132                         haveit=yes
18133                         break
18134                       fi
18135                     done
18136                     if test -z "$haveit"; then
18137                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18138                     fi
18139                     if test "$hardcode_minus_L" != no; then
18140                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18141                     else
18142                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18143                     fi
18144                   fi
18145                 fi
18146               fi
18147             else
18148               if test "X$found_a" != "X"; then
18149                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18150               else
18151                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18152               fi
18153             fi
18154                         additional_includedir=
18155             case "$found_dir" in
18156               */lib | */lib/)
18157                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18158                 additional_includedir="$basedir/include"
18159                 ;;
18160             esac
18161             if test "X$additional_includedir" != "X"; then
18162                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18163                 haveit=
18164                 if test "X$additional_includedir" = "X/usr/local/include"; then
18165                   if test -n "$GCC"; then
18166                     case $host_os in
18167                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18168                     esac
18169                   fi
18170                 fi
18171                 if test -z "$haveit"; then
18172                   for x in $CPPFLAGS $INCINTL; do
18173
18174   acl_save_prefix="$prefix"
18175   prefix="$acl_final_prefix"
18176   acl_save_exec_prefix="$exec_prefix"
18177   exec_prefix="$acl_final_exec_prefix"
18178   eval x=\"$x\"
18179   exec_prefix="$acl_save_exec_prefix"
18180   prefix="$acl_save_prefix"
18181
18182                     if test "X$x" = "X-I$additional_includedir"; then
18183                       haveit=yes
18184                       break
18185                     fi
18186                   done
18187                   if test -z "$haveit"; then
18188                     if test -d "$additional_includedir"; then
18189                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18190                     fi
18191                   fi
18192                 fi
18193               fi
18194             fi
18195                         if test -n "$found_la"; then
18196                                                         save_libdir="$libdir"
18197               case "$found_la" in
18198                 */* | *\\*) . "$found_la" ;;
18199                 *) . "./$found_la" ;;
18200               esac
18201               libdir="$save_libdir"
18202                             for dep in $dependency_libs; do
18203                 case "$dep" in
18204                   -L*)
18205                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18206                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18207                       haveit=
18208                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18209                         if test -n "$GCC"; then
18210                           case $host_os in
18211                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18212                           esac
18213                         fi
18214                       fi
18215                       if test -z "$haveit"; then
18216                         haveit=
18217                         for x in $LDFLAGS $LIBINTL; do
18218
18219   acl_save_prefix="$prefix"
18220   prefix="$acl_final_prefix"
18221   acl_save_exec_prefix="$exec_prefix"
18222   exec_prefix="$acl_final_exec_prefix"
18223   eval x=\"$x\"
18224   exec_prefix="$acl_save_exec_prefix"
18225   prefix="$acl_save_prefix"
18226
18227                           if test "X$x" = "X-L$additional_libdir"; then
18228                             haveit=yes
18229                             break
18230                           fi
18231                         done
18232                         if test -z "$haveit"; then
18233                           if test -d "$additional_libdir"; then
18234                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18235                           fi
18236                         fi
18237                         haveit=
18238                         for x in $LDFLAGS $LTLIBINTL; do
18239
18240   acl_save_prefix="$prefix"
18241   prefix="$acl_final_prefix"
18242   acl_save_exec_prefix="$exec_prefix"
18243   exec_prefix="$acl_final_exec_prefix"
18244   eval x=\"$x\"
18245   exec_prefix="$acl_save_exec_prefix"
18246   prefix="$acl_save_prefix"
18247
18248                           if test "X$x" = "X-L$additional_libdir"; then
18249                             haveit=yes
18250                             break
18251                           fi
18252                         done
18253                         if test -z "$haveit"; then
18254                           if test -d "$additional_libdir"; then
18255                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18256                           fi
18257                         fi
18258                       fi
18259                     fi
18260                     ;;
18261                   -R*)
18262                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18263                     if test "$enable_rpath" != no; then
18264                                                                   haveit=
18265                       for x in $rpathdirs; do
18266                         if test "X$x" = "X$dir"; then
18267                           haveit=yes
18268                           break
18269                         fi
18270                       done
18271                       if test -z "$haveit"; then
18272                         rpathdirs="$rpathdirs $dir"
18273                       fi
18274                                                                   haveit=
18275                       for x in $ltrpathdirs; do
18276                         if test "X$x" = "X$dir"; then
18277                           haveit=yes
18278                           break
18279                         fi
18280                       done
18281                       if test -z "$haveit"; then
18282                         ltrpathdirs="$ltrpathdirs $dir"
18283                       fi
18284                     fi
18285                     ;;
18286                   -l*)
18287                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18288                     ;;
18289                   *.la)
18290                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18291                     ;;
18292                   *)
18293                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18294                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18295                     ;;
18296                 esac
18297               done
18298             fi
18299           else
18300                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18301             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18302           fi
18303         fi
18304       fi
18305     done
18306   done
18307   if test "X$rpathdirs" != "X"; then
18308     if test -n "$hardcode_libdir_separator"; then
18309                         alldirs=
18310       for found_dir in $rpathdirs; do
18311         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18312       done
18313             acl_save_libdir="$libdir"
18314       libdir="$alldirs"
18315       eval flag=\"$hardcode_libdir_flag_spec\"
18316       libdir="$acl_save_libdir"
18317       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18318     else
18319             for found_dir in $rpathdirs; do
18320         acl_save_libdir="$libdir"
18321         libdir="$found_dir"
18322         eval flag=\"$hardcode_libdir_flag_spec\"
18323         libdir="$acl_save_libdir"
18324         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18325       done
18326     fi
18327   fi
18328   if test "X$ltrpathdirs" != "X"; then
18329             for found_dir in $ltrpathdirs; do
18330       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18331     done
18332   fi
18333
18334           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18335 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18336 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
18337   $as_echo_n "(cached) " >&6
18338 else
18339   gt_save_CPPFLAGS="$CPPFLAGS"
18340             CPPFLAGS="$CPPFLAGS $INCINTL"
18341             gt_save_LIBS="$LIBS"
18342             LIBS="$LIBS $LIBINTL"
18343                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h.  */
18345 #include <libintl.h>
18346 extern int _nl_msg_cat_cntr;
18347 extern
18348 #ifdef __cplusplus
18349 "C"
18350 #endif
18351 const char *_nl_expand_alias (const char *);
18352 int
18353 main ()
18354 {
18355 bindtextdomain ("", "");
18356 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362   gt_cv_func_gnugettext1_libintl=yes
18363 else
18364   gt_cv_func_gnugettext1_libintl=no
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext \
18367     conftest$ac_exeext conftest.$ac_ext
18368                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18369               LIBS="$LIBS $LIBICONV"
18370               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372 #include <libintl.h>
18373 extern int _nl_msg_cat_cntr;
18374 extern
18375 #ifdef __cplusplus
18376 "C"
18377 #endif
18378 const char *_nl_expand_alias (const char *);
18379 int
18380 main ()
18381 {
18382 bindtextdomain ("", "");
18383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 if ac_fn_c_try_link "$LINENO"; then :
18389   LIBINTL="$LIBINTL $LIBICONV"
18390                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18391                 gt_cv_func_gnugettext1_libintl=yes
18392
18393 fi
18394 rm -f core conftest.err conftest.$ac_objext \
18395     conftest$ac_exeext conftest.$ac_ext
18396             fi
18397             CPPFLAGS="$gt_save_CPPFLAGS"
18398             LIBS="$gt_save_LIBS"
18399 fi
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18401 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18402         fi
18403
18404                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18405            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18406                 && test "$PACKAGE" != gettext-runtime \
18407                 && test "$PACKAGE" != gettext-tools; }; then
18408           gt_use_preinstalled_gnugettext=yes
18409         else
18410                     LIBINTL=
18411           LTLIBINTL=
18412           INCINTL=
18413         fi
18414
18415
18416
18417     if test -n "$INTL_MACOSX_LIBS"; then
18418       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18419          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18420                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18421         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18422       fi
18423     fi
18424
18425     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18426        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18427
18428 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18429
18430     else
18431       USE_NLS=no
18432     fi
18433   fi
18434
18435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18436 $as_echo_n "checking whether to use NLS... " >&6; }
18437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18438 $as_echo "$USE_NLS" >&6; }
18439   if test "$USE_NLS" = "yes"; then
18440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18441 $as_echo_n "checking where the gettext function comes from... " >&6; }
18442     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18443       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18444         gt_source="external libintl"
18445       else
18446         gt_source="libc"
18447       fi
18448     else
18449       gt_source="included intl directory"
18450     fi
18451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18452 $as_echo "$gt_source" >&6; }
18453   fi
18454
18455   if test "$USE_NLS" = "yes"; then
18456
18457     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18458       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18460 $as_echo_n "checking how to link with libintl... " >&6; }
18461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18462 $as_echo "$LIBINTL" >&6; }
18463
18464   for element in $INCINTL; do
18465     haveit=
18466     for x in $CPPFLAGS; do
18467
18468   acl_save_prefix="$prefix"
18469   prefix="$acl_final_prefix"
18470   acl_save_exec_prefix="$exec_prefix"
18471   exec_prefix="$acl_final_exec_prefix"
18472   eval x=\"$x\"
18473   exec_prefix="$acl_save_exec_prefix"
18474   prefix="$acl_save_prefix"
18475
18476       if test "X$x" = "X$element"; then
18477         haveit=yes
18478         break
18479       fi
18480     done
18481     if test -z "$haveit"; then
18482       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18483     fi
18484   done
18485
18486       fi
18487
18488
18489 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18490
18491
18492 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18493
18494     fi
18495
18496         POSUB=po
18497   fi
18498
18499
18500
18501     INTLLIBS="$LIBINTL"
18502
18503
18504
18505
18506
18507
18508
18509 os_name=`uname -s 2>/dev/null`
18510 if test x${prefix} = xNONE ; then
18511    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18512       sysconfdir=/etc/bacula
18513    fi
18514
18515    if test `eval echo ${libdir}` = NONE/lib ; then
18516       case ${os_name} in
18517       Linux)
18518          os_processor=`uname -p 2>/dev/null`
18519          case ${os_processor} in
18520          x86_64)
18521             libdir=/usr/lib64
18522             ;;
18523          *)
18524             libdir=/usr/lib
18525             ;;
18526          esac
18527          ;;
18528       *)
18529          libdir=/usr/lib
18530          ;;
18531       esac
18532    fi
18533
18534    if test `eval echo ${includedir}` = NONE/include ; then
18535       includedir=/usr/include
18536    fi
18537
18538    if test `eval echo ${datarootdir}` = NONE/share ; then
18539       datarootdir=/usr/share
18540    fi
18541    prefix=
18542 fi
18543
18544 if test x${exec_prefix} = xNONE ; then
18545    exec_prefix=${prefix}
18546 fi
18547
18548 sysconfdir=`eval echo ${sysconfdir}`
18549 datarootdir=`eval echo ${datarootdir}`
18550 docdir=`eval echo ${docdir}`
18551 htmldir=`eval echo ${htmldir}`
18552 libdir=`eval echo ${libdir}`
18553 includedir=`eval echo ${includedir}`
18554 localedir=`eval echo ${datarootdir}/locale`
18555 cat >>confdefs.h <<_ACEOF
18556 #define SYSCONFDIR "$sysconfdir"
18557 _ACEOF
18558
18559 cat >>confdefs.h <<_ACEOF
18560 #define LOCALEDIR "$localedir"
18561 _ACEOF
18562
18563
18564 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18565    sbindir=${exec_prefix}/sbin
18566 fi
18567 sbindir=`eval echo ${sbindir}`
18568
18569 if test x$mandir = x'${prefix}/man' ; then
18570    mandir=/usr/share/man
18571 fi
18572
18573 if test x$htmldir = x${docdir} ; then
18574    htmldir=`eval echo ${docdir}/html`
18575 fi
18576
18577 if test x$docdir = x'/usr/share/doc/' ; then
18578    docdir=`eval echo ${docdir}bacula`
18579 fi
18580
18581
18582 for ac_prog in msgfmt
18583 do
18584   # Extract the first word of "$ac_prog", so it can be a program name with args.
18585 set dummy $ac_prog; ac_word=$2
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18587 $as_echo_n "checking for $ac_word... " >&6; }
18588 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18589   $as_echo_n "(cached) " >&6
18590 else
18591   case $MSGFMT in
18592   [\\/]* | ?:[\\/]*)
18593   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18594   ;;
18595   *)
18596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18598 do
18599   IFS=$as_save_IFS
18600   test -z "$as_dir" && as_dir=.
18601     for ac_exec_ext in '' $ac_executable_extensions; do
18602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18603     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18605     break 2
18606   fi
18607 done
18608   done
18609 IFS=$as_save_IFS
18610
18611   ;;
18612 esac
18613 fi
18614 MSGFMT=$ac_cv_path_MSGFMT
18615 if test -n "$MSGFMT"; then
18616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18617 $as_echo "$MSGFMT" >&6; }
18618 else
18619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620 $as_echo "no" >&6; }
18621 fi
18622
18623
18624   test -n "$MSGFMT" && break
18625 done
18626 test -n "$MSGFMT" || MSGFMT="no"
18627
18628 if test "$MSGFMT" = "no"
18629 then
18630    echo 'msgfmt program not found, disabling NLS !'
18631    USE_NLS=no
18632    USE_INCLUDED_LIBINTL=no
18633 #else
18634
18635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18636 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18637 if test "${ac_cv_gnu_library_2+set}" = set; then :
18638   $as_echo_n "(cached) " >&6
18639 else
18640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h.  */
18642
18643 #include <features.h>
18644 #ifdef __GNU_LIBRARY__
18645  #if (__GLIBC__ >= 2)
18646   Lucky GNU user
18647  #endif
18648 #endif
18649
18650 _ACEOF
18651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18652   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18653   ac_cv_gnu_library_2=yes
18654 else
18655   ac_cv_gnu_library_2=no
18656 fi
18657 rm -f conftest*
18658
18659
18660
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18663 $as_echo "$ac_cv_gnu_library_2" >&6; }
18664
18665     GLIBC2="$ac_cv_gnu_library_2"
18666
18667
18668 if test -n "$ac_tool_prefix"; then
18669   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18670 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18672 $as_echo_n "checking for $ac_word... " >&6; }
18673 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18674   $as_echo_n "(cached) " >&6
18675 else
18676   if test -n "$RANLIB"; then
18677   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18678 else
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH
18681 do
18682   IFS=$as_save_IFS
18683   test -z "$as_dir" && as_dir=.
18684     for ac_exec_ext in '' $ac_executable_extensions; do
18685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18686     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18688     break 2
18689   fi
18690 done
18691   done
18692 IFS=$as_save_IFS
18693
18694 fi
18695 fi
18696 RANLIB=$ac_cv_prog_RANLIB
18697 if test -n "$RANLIB"; then
18698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18699 $as_echo "$RANLIB" >&6; }
18700 else
18701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703 fi
18704
18705
18706 fi
18707 if test -z "$ac_cv_prog_RANLIB"; then
18708   ac_ct_RANLIB=$RANLIB
18709   # Extract the first word of "ranlib", so it can be a program name with args.
18710 set dummy ranlib; ac_word=$2
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18712 $as_echo_n "checking for $ac_word... " >&6; }
18713 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18714   $as_echo_n "(cached) " >&6
18715 else
18716   if test -n "$ac_ct_RANLIB"; then
18717   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18718 else
18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18720 for as_dir in $PATH
18721 do
18722   IFS=$as_save_IFS
18723   test -z "$as_dir" && as_dir=.
18724     for ac_exec_ext in '' $ac_executable_extensions; do
18725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18726     ac_cv_prog_ac_ct_RANLIB="ranlib"
18727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18728     break 2
18729   fi
18730 done
18731   done
18732 IFS=$as_save_IFS
18733
18734 fi
18735 fi
18736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18737 if test -n "$ac_ct_RANLIB"; then
18738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18739 $as_echo "$ac_ct_RANLIB" >&6; }
18740 else
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18743 fi
18744
18745   if test "x$ac_ct_RANLIB" = x; then
18746     RANLIB=":"
18747   else
18748     case $cross_compiling:$ac_tool_warned in
18749 yes:)
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18752 ac_tool_warned=yes ;;
18753 esac
18754     RANLIB=$ac_ct_RANLIB
18755   fi
18756 else
18757   RANLIB="$ac_cv_prog_RANLIB"
18758 fi
18759
18760
18761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18762 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18763 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18764   $as_echo_n "(cached) " >&6
18765 else
18766   ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lcposix  $LIBS"
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h.  */
18770
18771 /* Override any GCC internal prototype to avoid an error.
18772    Use char because int might match the return type of a GCC
18773    builtin and then its argument prototype would still apply.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 char strerror ();
18778 int
18779 main ()
18780 {
18781 return strerror ();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 if ac_fn_c_try_link "$LINENO"; then :
18787   ac_cv_lib_cposix_strerror=yes
18788 else
18789   ac_cv_lib_cposix_strerror=no
18790 fi
18791 rm -f core conftest.err conftest.$ac_objext \
18792     conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18796 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18797 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18798   LIBS="$LIBS -lcposix"
18799 fi
18800
18801
18802
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18804 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18805 if test "${ac_cv_c_const+set}" = set; then :
18806   $as_echo_n "(cached) " >&6
18807 else
18808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h.  */
18810
18811 int
18812 main ()
18813 {
18814 /* FIXME: Include the comments suggested by Paul. */
18815 #ifndef __cplusplus
18816   /* Ultrix mips cc rejects this.  */
18817   typedef int charset[2];
18818   const charset cs;
18819   /* SunOS 4.1.1 cc rejects this.  */
18820   char const *const *pcpcc;
18821   char **ppc;
18822   /* NEC SVR4.0.2 mips cc rejects this.  */
18823   struct point {int x, y;};
18824   static struct point const zero = {0,0};
18825   /* AIX XL C 1.02.0.0 rejects this.
18826      It does not let you subtract one const X* pointer from another in
18827      an arm of an if-expression whose if-part is not a constant
18828      expression */
18829   const char *g = "string";
18830   pcpcc = &g + (g ? g-g : 0);
18831   /* HPUX 7.0 cc rejects these. */
18832   ++pcpcc;
18833   ppc = (char**) pcpcc;
18834   pcpcc = (char const *const *) ppc;
18835   { /* SCO 3.2v4 cc rejects this.  */
18836     char *t;
18837     char const *s = 0 ? (char *) 0 : (char const *) 0;
18838
18839     *t++ = 0;
18840     if (s) return 0;
18841   }
18842   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18843     int x[] = {25, 17};
18844     const int *foo = &x[0];
18845     ++foo;
18846   }
18847   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18848     typedef const int *iptr;
18849     iptr p = 0;
18850     ++p;
18851   }
18852   { /* AIX XL C 1.02.0.0 rejects this saying
18853        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18854     struct s { int j; const int *ap[3]; };
18855     struct s *b; b->j = 5;
18856   }
18857   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18858     const int foo = 10;
18859     if (!foo) return 0;
18860   }
18861   return !cs[0] && !zero.x;
18862 #endif
18863
18864   ;
18865   return 0;
18866 }
18867 _ACEOF
18868 if ac_fn_c_try_compile "$LINENO"; then :
18869   ac_cv_c_const=yes
18870 else
18871   ac_cv_c_const=no
18872 fi
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874 fi
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18876 $as_echo "$ac_cv_c_const" >&6; }
18877 if test $ac_cv_c_const = no; then
18878
18879 $as_echo "#define const /**/" >>confdefs.h
18880
18881 fi
18882
18883
18884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18885 $as_echo_n "checking for signed... " >&6; }
18886 if test "${bh_cv_c_signed+set}" = set; then :
18887   $as_echo_n "(cached) " >&6
18888 else
18889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h.  */
18891
18892 int
18893 main ()
18894 {
18895 signed char x;
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 if ac_fn_c_try_compile "$LINENO"; then :
18901   bh_cv_c_signed=yes
18902 else
18903   bh_cv_c_signed=no
18904 fi
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906 fi
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18908 $as_echo "$bh_cv_c_signed" >&6; }
18909   if test $bh_cv_c_signed = no; then
18910
18911 $as_echo "#define signed /**/" >>confdefs.h
18912
18913   fi
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18916 $as_echo_n "checking for inline... " >&6; }
18917 if test "${ac_cv_c_inline+set}" = set; then :
18918   $as_echo_n "(cached) " >&6
18919 else
18920   ac_cv_c_inline=no
18921 for ac_kw in inline __inline__ __inline; do
18922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h.  */
18924 #ifndef __cplusplus
18925 typedef int foo_t;
18926 static $ac_kw foo_t static_foo () {return 0; }
18927 $ac_kw foo_t foo () {return 0; }
18928 #endif
18929
18930 _ACEOF
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932   ac_cv_c_inline=$ac_kw
18933 fi
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935   test "$ac_cv_c_inline" != no && break
18936 done
18937
18938 fi
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18940 $as_echo "$ac_cv_c_inline" >&6; }
18941
18942 case $ac_cv_c_inline in
18943   inline | yes) ;;
18944   *)
18945     case $ac_cv_c_inline in
18946       no) ac_val=;;
18947       *) ac_val=$ac_cv_c_inline;;
18948     esac
18949     cat >>confdefs.h <<_ACEOF
18950 #ifndef __cplusplus
18951 #define inline $ac_val
18952 #endif
18953 _ACEOF
18954     ;;
18955 esac
18956
18957 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18958 if test "x$ac_cv_type_off_t" = x""yes; then :
18959
18960 else
18961
18962 cat >>confdefs.h <<_ACEOF
18963 #define off_t long int
18964 _ACEOF
18965
18966 fi
18967
18968 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18969 if test "x$ac_cv_type_size_t" = x""yes; then :
18970
18971 else
18972
18973 cat >>confdefs.h <<_ACEOF
18974 #define size_t unsigned int
18975 _ACEOF
18976
18977 fi
18978
18979
18980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18981 $as_echo_n "checking for long long... " >&6; }
18982 if test "${ac_cv_type_long_long+set}" = set; then :
18983   $as_echo_n "(cached) " >&6
18984 else
18985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h.  */
18987 long long ll = 1LL; int i = 63;
18988 int
18989 main ()
18990 {
18991 long long llmax = (long long) -1;
18992      return ll << i | ll >> i | llmax / ll | llmax % ll;
18993   ;
18994   return 0;
18995 }
18996 _ACEOF
18997 if ac_fn_c_try_link "$LINENO"; then :
18998   ac_cv_type_long_long=yes
18999 else
19000   ac_cv_type_long_long=no
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext \
19003     conftest$ac_exeext conftest.$ac_ext
19004 fi
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19006 $as_echo "$ac_cv_type_long_long" >&6; }
19007   if test $ac_cv_type_long_long = yes; then
19008
19009 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19010
19011   fi
19012
19013
19014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19015 $as_echo_n "checking for long double... " >&6; }
19016 if test "${gt_cv_c_long_double+set}" = set; then :
19017   $as_echo_n "(cached) " >&6
19018 else
19019   if test "$GCC" = yes; then
19020        gt_cv_c_long_double=yes
19021      else
19022        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h.  */
19024
19025          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19026          long double foo = 0.0;
19027          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19028          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19029
19030 int
19031 main ()
19032 {
19033
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039   gt_cv_c_long_double=yes
19040 else
19041   gt_cv_c_long_double=no
19042 fi
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044      fi
19045 fi
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19047 $as_echo "$gt_cv_c_long_double" >&6; }
19048   if test $gt_cv_c_long_double = yes; then
19049
19050 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19051
19052   fi
19053
19054
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19056 $as_echo_n "checking for wchar_t... " >&6; }
19057 if test "${gt_cv_c_wchar_t+set}" = set; then :
19058   $as_echo_n "(cached) " >&6
19059 else
19060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h.  */
19062 #include <stddef.h>
19063        wchar_t foo = (wchar_t)'\0';
19064 int
19065 main ()
19066 {
19067
19068   ;
19069   return 0;
19070 }
19071 _ACEOF
19072 if ac_fn_c_try_compile "$LINENO"; then :
19073   gt_cv_c_wchar_t=yes
19074 else
19075   gt_cv_c_wchar_t=no
19076 fi
19077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19078 fi
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19080 $as_echo "$gt_cv_c_wchar_t" >&6; }
19081   if test $gt_cv_c_wchar_t = yes; then
19082
19083 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19084
19085   fi
19086
19087
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19089 $as_echo_n "checking for wint_t... " >&6; }
19090 if test "${gt_cv_c_wint_t+set}" = set; then :
19091   $as_echo_n "(cached) " >&6
19092 else
19093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h.  */
19095 #include <wchar.h>
19096        wint_t foo = (wchar_t)'\0';
19097 int
19098 main ()
19099 {
19100
19101   ;
19102   return 0;
19103 }
19104 _ACEOF
19105 if ac_fn_c_try_compile "$LINENO"; then :
19106   gt_cv_c_wint_t=yes
19107 else
19108   gt_cv_c_wint_t=no
19109 fi
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 fi
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19113 $as_echo "$gt_cv_c_wint_t" >&6; }
19114   if test $gt_cv_c_wint_t = yes; then
19115
19116 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19117
19118   fi
19119
19120
19121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19122 $as_echo_n "checking for inttypes.h... " >&6; }
19123 if test "${gl_cv_header_inttypes_h+set}" = set; then :
19124   $as_echo_n "(cached) " >&6
19125 else
19126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h.  */
19128 #include <sys/types.h>
19129 #include <inttypes.h>
19130 int
19131 main ()
19132 {
19133 uintmax_t i = (uintmax_t) -1;
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 if ac_fn_c_try_compile "$LINENO"; then :
19139   gl_cv_header_inttypes_h=yes
19140 else
19141   gl_cv_header_inttypes_h=no
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19144 fi
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19146 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19147   if test $gl_cv_header_inttypes_h = yes; then
19148
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19151 _ACEOF
19152
19153   fi
19154
19155
19156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19157 $as_echo_n "checking for stdint.h... " >&6; }
19158 if test "${gl_cv_header_stdint_h+set}" = set; then :
19159   $as_echo_n "(cached) " >&6
19160 else
19161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h.  */
19163 #include <sys/types.h>
19164 #include <stdint.h>
19165 int
19166 main ()
19167 {
19168 uintmax_t i = (uintmax_t) -1;
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 if ac_fn_c_try_compile "$LINENO"; then :
19174   gl_cv_header_stdint_h=yes
19175 else
19176   gl_cv_header_stdint_h=no
19177 fi
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 fi
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19181 $as_echo "$gl_cv_header_stdint_h" >&6; }
19182   if test $gl_cv_header_stdint_h = yes; then
19183
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_STDINT_H_WITH_UINTMAX 1
19186 _ACEOF
19187
19188   fi
19189
19190
19191
19192
19193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19194 $as_echo_n "checking for intmax_t... " >&6; }
19195 if test "${gt_cv_c_intmax_t+set}" = set; then :
19196   $as_echo_n "(cached) " >&6
19197 else
19198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h.  */
19200
19201 #include <stddef.h>
19202 #include <stdlib.h>
19203 #if HAVE_STDINT_H_WITH_UINTMAX
19204 #include <stdint.h>
19205 #endif
19206 #if HAVE_INTTYPES_H_WITH_UINTMAX
19207 #include <inttypes.h>
19208 #endif
19209
19210 int
19211 main ()
19212 {
19213 intmax_t x = -1;
19214   ;
19215   return 0;
19216 }
19217 _ACEOF
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219   gt_cv_c_intmax_t=yes
19220 else
19221   gt_cv_c_intmax_t=no
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 fi
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19226 $as_echo "$gt_cv_c_intmax_t" >&6; }
19227   if test $gt_cv_c_intmax_t = yes; then
19228
19229 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19230
19231   fi
19232
19233
19234
19235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19236 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19237 if test "${gt_cv_func_printf_posix+set}" = set; then :
19238   $as_echo_n "(cached) " >&6
19239 else
19240
19241       if test "$cross_compiling" = yes; then :
19242
19243         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h.  */
19245
19246 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19247   notposix
19248 #endif
19249
19250 _ACEOF
19251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19252   $EGREP "notposix" >/dev/null 2>&1; then :
19253   gt_cv_func_printf_posix="guessing no"
19254 else
19255   gt_cv_func_printf_posix="guessing yes"
19256 fi
19257 rm -f conftest*
19258
19259
19260 else
19261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h.  */
19263
19264 #include <stdio.h>
19265 #include <string.h>
19266 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19267    dollar expansion (possibly an autoconf bug).  */
19268 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19269 static char buf[100];
19270 int main ()
19271 {
19272   sprintf (buf, format, 33, 55);
19273   return (strcmp (buf, "55 33") != 0);
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_run "$LINENO"; then :
19277   gt_cv_func_printf_posix=yes
19278 else
19279   gt_cv_func_printf_posix=no
19280 fi
19281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19282   conftest.$ac_objext conftest.beam conftest.$ac_ext
19283 fi
19284
19285
19286 fi
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19288 $as_echo "$gt_cv_func_printf_posix" >&6; }
19289   case $gt_cv_func_printf_posix in
19290     *yes)
19291
19292 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19293
19294       ;;
19295   esac
19296
19297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19298 # for constant arguments.  Useless!
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19300 $as_echo_n "checking for working alloca.h... " >&6; }
19301 if test "${ac_cv_working_alloca_h+set}" = set; then :
19302   $as_echo_n "(cached) " >&6
19303 else
19304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h.  */
19306 #include <alloca.h>
19307 int
19308 main ()
19309 {
19310 char *p = (char *) alloca (2 * sizeof (int));
19311                           if (p) return 0;
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 if ac_fn_c_try_link "$LINENO"; then :
19317   ac_cv_working_alloca_h=yes
19318 else
19319   ac_cv_working_alloca_h=no
19320 fi
19321 rm -f core conftest.err conftest.$ac_objext \
19322     conftest$ac_exeext conftest.$ac_ext
19323 fi
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19325 $as_echo "$ac_cv_working_alloca_h" >&6; }
19326 if test $ac_cv_working_alloca_h = yes; then
19327
19328 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19329
19330 fi
19331
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19333 $as_echo_n "checking for alloca... " >&6; }
19334 if test "${ac_cv_func_alloca_works+set}" = set; then :
19335   $as_echo_n "(cached) " >&6
19336 else
19337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h.  */
19339 #ifdef __GNUC__
19340 # define alloca __builtin_alloca
19341 #else
19342 # ifdef _MSC_VER
19343 #  include <malloc.h>
19344 #  define alloca _alloca
19345 # else
19346 #  ifdef HAVE_ALLOCA_H
19347 #   include <alloca.h>
19348 #  else
19349 #   ifdef _AIX
19350  #pragma alloca
19351 #   else
19352 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19353 char *alloca ();
19354 #    endif
19355 #   endif
19356 #  endif
19357 # endif
19358 #endif
19359
19360 int
19361 main ()
19362 {
19363 char *p = (char *) alloca (1);
19364                                     if (p) return 0;
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 if ac_fn_c_try_link "$LINENO"; then :
19370   ac_cv_func_alloca_works=yes
19371 else
19372   ac_cv_func_alloca_works=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext \
19375     conftest$ac_exeext conftest.$ac_ext
19376 fi
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19378 $as_echo "$ac_cv_func_alloca_works" >&6; }
19379
19380 if test $ac_cv_func_alloca_works = yes; then
19381
19382 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19383
19384 else
19385   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19386 # that cause trouble.  Some versions do not even contain alloca or
19387 # contain a buggy version.  If you still want to use their alloca,
19388 # use ar to extract alloca.o from them instead of compiling alloca.c.
19389
19390 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19391
19392 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19393
19394
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19396 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19397 if test "${ac_cv_os_cray+set}" = set; then :
19398   $as_echo_n "(cached) " >&6
19399 else
19400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h.  */
19402 #if defined CRAY && ! defined CRAY2
19403 webecray
19404 #else
19405 wenotbecray
19406 #endif
19407
19408 _ACEOF
19409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19410   $EGREP "webecray" >/dev/null 2>&1; then :
19411   ac_cv_os_cray=yes
19412 else
19413   ac_cv_os_cray=no
19414 fi
19415 rm -f conftest*
19416
19417 fi
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19419 $as_echo "$ac_cv_os_cray" >&6; }
19420 if test $ac_cv_os_cray = yes; then
19421   for ac_func in _getb67 GETB67 getb67; do
19422     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19425
19426 cat >>confdefs.h <<_ACEOF
19427 #define CRAY_STACKSEG_END $ac_func
19428 _ACEOF
19429
19430     break
19431 fi
19432
19433   done
19434 fi
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19437 $as_echo_n "checking stack direction for C alloca... " >&6; }
19438 if test "${ac_cv_c_stack_direction+set}" = set; then :
19439   $as_echo_n "(cached) " >&6
19440 else
19441   if test "$cross_compiling" = yes; then :
19442   ac_cv_c_stack_direction=0
19443 else
19444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h.  */
19446 $ac_includes_default
19447 int
19448 find_stack_direction ()
19449 {
19450   static char *addr = 0;
19451   auto char dummy;
19452   if (addr == 0)
19453     {
19454       addr = &dummy;
19455       return find_stack_direction ();
19456     }
19457   else
19458     return (&dummy > addr) ? 1 : -1;
19459 }
19460
19461 int
19462 main ()
19463 {
19464   return find_stack_direction () < 0;
19465 }
19466 _ACEOF
19467 if ac_fn_c_try_run "$LINENO"; then :
19468   ac_cv_c_stack_direction=1
19469 else
19470   ac_cv_c_stack_direction=-1
19471 fi
19472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473   conftest.$ac_objext conftest.beam conftest.$ac_ext
19474 fi
19475
19476 fi
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19478 $as_echo "$ac_cv_c_stack_direction" >&6; }
19479 cat >>confdefs.h <<_ACEOF
19480 #define STACK_DIRECTION $ac_cv_c_stack_direction
19481 _ACEOF
19482
19483
19484 fi
19485
19486
19487
19488
19489   for ac_header in $ac_header_list
19490 do :
19491   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19492 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19493 "
19494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19495   cat >>confdefs.h <<_ACEOF
19496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19497 _ACEOF
19498
19499 fi
19500
19501 done
19502
19503
19504
19505
19506
19507
19508
19509
19510 for ac_func in getpagesize
19511 do :
19512   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19513 if test "x$ac_cv_func_getpagesize" = x""yes; then :
19514   cat >>confdefs.h <<_ACEOF
19515 #define HAVE_GETPAGESIZE 1
19516 _ACEOF
19517
19518 fi
19519 done
19520
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19522 $as_echo_n "checking for working mmap... " >&6; }
19523 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
19524   $as_echo_n "(cached) " >&6
19525 else
19526   if test "$cross_compiling" = yes; then :
19527   ac_cv_func_mmap_fixed_mapped=no
19528 else
19529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h.  */
19531 $ac_includes_default
19532 /* malloc might have been renamed as rpl_malloc. */
19533 #undef malloc
19534
19535 /* Thanks to Mike Haertel and Jim Avera for this test.
19536    Here is a matrix of mmap possibilities:
19537         mmap private not fixed
19538         mmap private fixed at somewhere currently unmapped
19539         mmap private fixed at somewhere already mapped
19540         mmap shared not fixed
19541         mmap shared fixed at somewhere currently unmapped
19542         mmap shared fixed at somewhere already mapped
19543    For private mappings, we should verify that changes cannot be read()
19544    back from the file, nor mmap's back from the file at a different
19545    address.  (There have been systems where private was not correctly
19546    implemented like the infamous i386 svr4.0, and systems where the
19547    VM page cache was not coherent with the file system buffer cache
19548    like early versions of FreeBSD and possibly contemporary NetBSD.)
19549    For shared mappings, we should conversely verify that changes get
19550    propagated back to all the places they're supposed to be.
19551
19552    Grep wants private fixed already mapped.
19553    The main things grep needs to know about mmap are:
19554    * does it exist and is it safe to write into the mmap'd area
19555    * how to use it (BSD variants)  */
19556
19557 #include <fcntl.h>
19558 #include <sys/mman.h>
19559
19560 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19561 char *malloc ();
19562 #endif
19563
19564 /* This mess was copied from the GNU getpagesize.h.  */
19565 #ifndef HAVE_GETPAGESIZE
19566 # ifdef _SC_PAGESIZE
19567 #  define getpagesize() sysconf(_SC_PAGESIZE)
19568 # else /* no _SC_PAGESIZE */
19569 #  ifdef HAVE_SYS_PARAM_H
19570 #   include <sys/param.h>
19571 #   ifdef EXEC_PAGESIZE
19572 #    define getpagesize() EXEC_PAGESIZE
19573 #   else /* no EXEC_PAGESIZE */
19574 #    ifdef NBPG
19575 #     define getpagesize() NBPG * CLSIZE
19576 #     ifndef CLSIZE
19577 #      define CLSIZE 1
19578 #     endif /* no CLSIZE */
19579 #    else /* no NBPG */
19580 #     ifdef NBPC
19581 #      define getpagesize() NBPC
19582 #     else /* no NBPC */
19583 #      ifdef PAGESIZE
19584 #       define getpagesize() PAGESIZE
19585 #      endif /* PAGESIZE */
19586 #     endif /* no NBPC */
19587 #    endif /* no NBPG */
19588 #   endif /* no EXEC_PAGESIZE */
19589 #  else /* no HAVE_SYS_PARAM_H */
19590 #   define getpagesize() 8192   /* punt totally */
19591 #  endif /* no HAVE_SYS_PARAM_H */
19592 # endif /* no _SC_PAGESIZE */
19593
19594 #endif /* no HAVE_GETPAGESIZE */
19595
19596 int
19597 main ()
19598 {
19599   char *data, *data2, *data3;
19600   const char *cdata2;
19601   int i, pagesize;
19602   int fd, fd2;
19603
19604   pagesize = getpagesize ();
19605
19606   /* First, make a file with some known garbage in it. */
19607   data = (char *) malloc (pagesize);
19608   if (!data)
19609     return 1;
19610   for (i = 0; i < pagesize; ++i)
19611     *(data + i) = rand ();
19612   umask (0);
19613   fd = creat ("conftest.mmap", 0600);
19614   if (fd < 0)
19615     return 2;
19616   if (write (fd, data, pagesize) != pagesize)
19617     return 3;
19618   close (fd);
19619
19620   /* Next, check that the tail of a page is zero-filled.  File must have
19621      non-zero length, otherwise we risk SIGBUS for entire page.  */
19622   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19623   if (fd2 < 0)
19624     return 4;
19625   cdata2 = "";
19626   if (write (fd2, cdata2, 1) != 1)
19627     return 5;
19628   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19629   if (data2 == MAP_FAILED)
19630     return 6;
19631   for (i = 0; i < pagesize; ++i)
19632     if (*(data2 + i))
19633       return 7;
19634   close (fd2);
19635   if (munmap (data2, pagesize))
19636     return 8;
19637
19638   /* Next, try to mmap the file at a fixed address which already has
19639      something else allocated at it.  If we can, also make sure that
19640      we see the same garbage.  */
19641   fd = open ("conftest.mmap", O_RDWR);
19642   if (fd < 0)
19643     return 9;
19644   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19645                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19646     return 10;
19647   for (i = 0; i < pagesize; ++i)
19648     if (*(data + i) != *(data2 + i))
19649       return 11;
19650
19651   /* Finally, make sure that changes to the mapped area do not
19652      percolate back to the file as seen by read().  (This is a bug on
19653      some variants of i386 svr4.0.)  */
19654   for (i = 0; i < pagesize; ++i)
19655     *(data2 + i) = *(data2 + i) + 1;
19656   data3 = (char *) malloc (pagesize);
19657   if (!data3)
19658     return 12;
19659   if (read (fd, data3, pagesize) != pagesize)
19660     return 13;
19661   for (i = 0; i < pagesize; ++i)
19662     if (*(data + i) != *(data3 + i))
19663       return 14;
19664   close (fd);
19665   return 0;
19666 }
19667 _ACEOF
19668 if ac_fn_c_try_run "$LINENO"; then :
19669   ac_cv_func_mmap_fixed_mapped=yes
19670 else
19671   ac_cv_func_mmap_fixed_mapped=no
19672 fi
19673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19674   conftest.$ac_objext conftest.beam conftest.$ac_ext
19675 fi
19676
19677 fi
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19681
19682 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19683
19684 fi
19685 rm -f conftest.mmap conftest.txt
19686
19687
19688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19689 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19690 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
19691   $as_echo_n "(cached) " >&6
19692 else
19693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h.  */
19695
19696 #include <features.h>
19697 #ifdef __GNU_LIBRARY__
19698  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19699   Lucky GNU user
19700  #endif
19701 #endif
19702
19703 _ACEOF
19704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19705   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19706   ac_cv_gnu_library_2_1=yes
19707 else
19708   ac_cv_gnu_library_2_1=no
19709 fi
19710 rm -f conftest*
19711
19712
19713
19714 fi
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19716 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19717
19718     GLIBC21="$ac_cv_gnu_library_2_1"
19719
19720
19721
19722
19723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19724 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19725 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
19726   $as_echo_n "(cached) " >&6
19727 else
19728
19729       if test "$cross_compiling" = yes; then :
19730
19731           # Guess based on the CPU.
19732           case "$host_cpu" in
19733             alpha* | i3456786 | m68k | s390*)
19734               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19735             *)
19736               gt_cv_int_divbyzero_sigfpe="guessing no";;
19737           esac
19738
19739 else
19740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h.  */
19742
19743 #include <stdlib.h>
19744 #include <signal.h>
19745
19746 static void
19747 #ifdef __cplusplus
19748 sigfpe_handler (int sig)
19749 #else
19750 sigfpe_handler (sig) int sig;
19751 #endif
19752 {
19753   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19754   exit (sig != SIGFPE);
19755 }
19756
19757 int x = 1;
19758 int y = 0;
19759 int z;
19760 int nan;
19761
19762 int main ()
19763 {
19764   signal (SIGFPE, sigfpe_handler);
19765 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19766 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19767   signal (SIGTRAP, sigfpe_handler);
19768 #endif
19769 /* Linux/SPARC yields signal SIGILL.  */
19770 #if defined (__sparc__) && defined (__linux__)
19771   signal (SIGILL, sigfpe_handler);
19772 #endif
19773
19774   z = x / y;
19775   nan = y / y;
19776   exit (1);
19777 }
19778
19779 _ACEOF
19780 if ac_fn_c_try_run "$LINENO"; then :
19781   gt_cv_int_divbyzero_sigfpe=yes
19782 else
19783   gt_cv_int_divbyzero_sigfpe=no
19784 fi
19785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19786   conftest.$ac_objext conftest.beam conftest.$ac_ext
19787 fi
19788
19789
19790 fi
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19792 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19793   case "$gt_cv_int_divbyzero_sigfpe" in
19794     *yes) value=1;;
19795     *) value=0;;
19796   esac
19797
19798 cat >>confdefs.h <<_ACEOF
19799 #define INTDIV0_RAISES_SIGFPE $value
19800 _ACEOF
19801
19802
19803
19804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19805 $as_echo_n "checking for unsigned long long... " >&6; }
19806 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h.  */
19811 unsigned long long ull = 1ULL; int i = 63;
19812 int
19813 main ()
19814 {
19815 unsigned long long ullmax = (unsigned long long) -1;
19816      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_link "$LINENO"; then :
19822   ac_cv_type_unsigned_long_long=yes
19823 else
19824   ac_cv_type_unsigned_long_long=no
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext \
19827     conftest$ac_exeext conftest.$ac_ext
19828 fi
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19830 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19831   if test $ac_cv_type_unsigned_long_long = yes; then
19832
19833 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19834
19835   fi
19836
19837
19838
19839
19840   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19841
19842     test $ac_cv_type_unsigned_long_long = yes \
19843       && ac_type='unsigned long long' \
19844       || ac_type='unsigned long'
19845
19846 cat >>confdefs.h <<_ACEOF
19847 #define uintmax_t $ac_type
19848 _ACEOF
19849
19850   else
19851
19852 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19853
19854   fi
19855
19856
19857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19858 $as_echo_n "checking for inttypes.h... " >&6; }
19859 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19860   $as_echo_n "(cached) " >&6
19861 else
19862
19863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19864 /* end confdefs.h.  */
19865 #include <sys/types.h>
19866 #include <inttypes.h>
19867 int
19868 main ()
19869 {
19870
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 if ac_fn_c_try_compile "$LINENO"; then :
19876   gt_cv_header_inttypes_h=yes
19877 else
19878   gt_cv_header_inttypes_h=no
19879 fi
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881
19882 fi
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19884 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19885   if test $gt_cv_header_inttypes_h = yes; then
19886
19887 cat >>confdefs.h <<_ACEOF
19888 #define HAVE_INTTYPES_H 1
19889 _ACEOF
19890
19891   fi
19892
19893
19894
19895   if test $gt_cv_header_inttypes_h = yes; then
19896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19897 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19898 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19899   $as_echo_n "(cached) " >&6
19900 else
19901
19902         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h.  */
19904 #include <inttypes.h>
19905 #ifdef PRId32
19906 char *p = PRId32;
19907 #endif
19908
19909 int
19910 main ()
19911 {
19912
19913   ;
19914   return 0;
19915 }
19916 _ACEOF
19917 if ac_fn_c_try_compile "$LINENO"; then :
19918   gt_cv_inttypes_pri_broken=no
19919 else
19920   gt_cv_inttypes_pri_broken=yes
19921 fi
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923
19924 fi
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19926 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19927   fi
19928   if test "$gt_cv_inttypes_pri_broken" = yes; then
19929
19930 cat >>confdefs.h <<_ACEOF
19931 #define PRI_MACROS_BROKEN 1
19932 _ACEOF
19933
19934   fi
19935
19936
19937   for ac_header in stdint.h
19938 do :
19939   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19941   cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STDINT_H 1
19943 _ACEOF
19944
19945 fi
19946
19947 done
19948
19949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19950 $as_echo_n "checking for SIZE_MAX... " >&6; }
19951   result=
19952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h.  */
19954
19955 #include <limits.h>
19956 #if HAVE_STDINT_H
19957 #include <stdint.h>
19958 #endif
19959 #ifdef SIZE_MAX
19960 Found it
19961 #endif
19962
19963 _ACEOF
19964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965   $EGREP "Found it" >/dev/null 2>&1; then :
19966   result=yes
19967 fi
19968 rm -f conftest*
19969
19970   if test -z "$result"; then
19971                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19972
19973 else
19974   result=?
19975 fi
19976
19977
19978     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19979
19980 else
19981   result=?
19982 fi
19983
19984
19985     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19986
19987 else
19988   result=?
19989 fi
19990
19991
19992     if test "$fits_in_uint" = 1; then
19993                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h.  */
19995 #include <stddef.h>
19996         extern size_t foo;
19997         extern unsigned long foo;
19998
19999 int
20000 main ()
20001 {
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 if ac_fn_c_try_compile "$LINENO"; then :
20008   fits_in_uint=0
20009 fi
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011     fi
20012     if test -z "$result"; then
20013       if test "$fits_in_uint" = 1; then
20014         result="$res_hi$res_lo"U
20015       else
20016         result="$res_hi$res_lo"UL
20017       fi
20018     else
20019             result='~(size_t)0'
20020     fi
20021   fi
20022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20023 $as_echo "$result" >&6; }
20024   if test "$result" != yes; then
20025
20026 cat >>confdefs.h <<_ACEOF
20027 #define SIZE_MAX $result
20028 _ACEOF
20029
20030   fi
20031
20032
20033
20034
20035   for ac_header in stdint.h
20036 do :
20037   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20038 if test "x$ac_cv_header_stdint_h" = x""yes; then :
20039   cat >>confdefs.h <<_ACEOF
20040 #define HAVE_STDINT_H 1
20041 _ACEOF
20042
20043 fi
20044
20045 done
20046
20047
20048
20049
20050
20051
20052
20053
20054   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20055 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20056
20057 else
20058
20059 $as_echo "#define ptrdiff_t long" >>confdefs.h
20060
20061
20062 fi
20063
20064   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20065 stdlib.h string.h unistd.h sys/param.h
20066 do :
20067   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20070   cat >>confdefs.h <<_ACEOF
20071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20072 _ACEOF
20073
20074 fi
20075
20076 done
20077
20078   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20079 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20080 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20081 __fsetlocking
20082 do :
20083   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20086   cat >>confdefs.h <<_ACEOF
20087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20088 _ACEOF
20089
20090 fi
20091 done
20092
20093
20094
20095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20096 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20097 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
20098   $as_echo_n "(cached) " >&6
20099 else
20100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h.  */
20102 #include <stdio.h>
20103 int
20104 main ()
20105 {
20106
20107 #ifndef _snprintf
20108   char *p = (char *) _snprintf;
20109 #endif
20110
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 if ac_fn_c_try_compile "$LINENO"; then :
20116   ac_cv_have_decl__snprintf=yes
20117 else
20118   ac_cv_have_decl__snprintf=no
20119 fi
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20121 fi
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20123 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20124   if test $ac_cv_have_decl__snprintf = yes; then
20125     gt_value=1
20126   else
20127     gt_value=0
20128   fi
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_DECL__SNPRINTF $gt_value
20132 _ACEOF
20133
20134
20135
20136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20137 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20138 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
20139   $as_echo_n "(cached) " >&6
20140 else
20141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h.  */
20143 #include <stdio.h>
20144 int
20145 main ()
20146 {
20147
20148 #ifndef _snwprintf
20149   char *p = (char *) _snwprintf;
20150 #endif
20151
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 if ac_fn_c_try_compile "$LINENO"; then :
20157   ac_cv_have_decl__snwprintf=yes
20158 else
20159   ac_cv_have_decl__snwprintf=no
20160 fi
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20162 fi
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20164 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20165   if test $ac_cv_have_decl__snwprintf = yes; then
20166     gt_value=1
20167   else
20168     gt_value=0
20169   fi
20170
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_DECL__SNWPRINTF $gt_value
20173 _ACEOF
20174
20175
20176
20177
20178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20179 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20180 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
20181   $as_echo_n "(cached) " >&6
20182 else
20183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h.  */
20185 #include <stdio.h>
20186 int
20187 main ()
20188 {
20189
20190 #ifndef feof_unlocked
20191   char *p = (char *) feof_unlocked;
20192 #endif
20193
20194   ;
20195   return 0;
20196 }
20197 _ACEOF
20198 if ac_fn_c_try_compile "$LINENO"; then :
20199   ac_cv_have_decl_feof_unlocked=yes
20200 else
20201   ac_cv_have_decl_feof_unlocked=no
20202 fi
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20206 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20207   if test $ac_cv_have_decl_feof_unlocked = yes; then
20208     gt_value=1
20209   else
20210     gt_value=0
20211   fi
20212
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20215 _ACEOF
20216
20217
20218
20219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20220 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20221 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
20222   $as_echo_n "(cached) " >&6
20223 else
20224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h.  */
20226 #include <stdio.h>
20227 int
20228 main ()
20229 {
20230
20231 #ifndef fgets_unlocked
20232   char *p = (char *) fgets_unlocked;
20233 #endif
20234
20235   ;
20236   return 0;
20237 }
20238 _ACEOF
20239 if ac_fn_c_try_compile "$LINENO"; then :
20240   ac_cv_have_decl_fgets_unlocked=yes
20241 else
20242   ac_cv_have_decl_fgets_unlocked=no
20243 fi
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 fi
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20247 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20248   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20249     gt_value=1
20250   else
20251     gt_value=0
20252   fi
20253
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20256 _ACEOF
20257
20258
20259
20260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20261 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20262 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
20263   $as_echo_n "(cached) " >&6
20264 else
20265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h.  */
20267 #include <stdio.h>
20268 int
20269 main ()
20270 {
20271
20272 #ifndef getc_unlocked
20273   char *p = (char *) getc_unlocked;
20274 #endif
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281   ac_cv_have_decl_getc_unlocked=yes
20282 else
20283   ac_cv_have_decl_getc_unlocked=no
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20288 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20289   if test $ac_cv_have_decl_getc_unlocked = yes; then
20290     gt_value=1
20291   else
20292     gt_value=0
20293   fi
20294
20295 cat >>confdefs.h <<_ACEOF
20296 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20297 _ACEOF
20298
20299
20300
20301   case $gt_cv_func_printf_posix in
20302     *yes) HAVE_POSIX_PRINTF=1 ;;
20303     *) HAVE_POSIX_PRINTF=0 ;;
20304   esac
20305
20306   if test "$ac_cv_func_asprintf" = yes; then
20307     HAVE_ASPRINTF=1
20308   else
20309     HAVE_ASPRINTF=0
20310   fi
20311
20312   if test "$ac_cv_func_snprintf" = yes; then
20313     HAVE_SNPRINTF=1
20314   else
20315     HAVE_SNPRINTF=0
20316   fi
20317
20318   if test "$ac_cv_func_wprintf" = yes; then
20319     HAVE_WPRINTF=1
20320   else
20321     HAVE_WPRINTF=0
20322   fi
20323
20324
20325
20326
20327
20328
20329
20330           am_save_CPPFLAGS="$CPPFLAGS"
20331
20332   for element in $INCICONV; do
20333     haveit=
20334     for x in $CPPFLAGS; do
20335
20336   acl_save_prefix="$prefix"
20337   prefix="$acl_final_prefix"
20338   acl_save_exec_prefix="$exec_prefix"
20339   exec_prefix="$acl_final_exec_prefix"
20340   eval x=\"$x\"
20341   exec_prefix="$acl_save_exec_prefix"
20342   prefix="$acl_save_prefix"
20343
20344       if test "X$x" = "X$element"; then
20345         haveit=yes
20346         break
20347       fi
20348     done
20349     if test -z "$haveit"; then
20350       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20351     fi
20352   done
20353
20354
20355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20356 $as_echo_n "checking for iconv... " >&6; }
20357 if test "${am_cv_func_iconv+set}" = set; then :
20358   $as_echo_n "(cached) " >&6
20359 else
20360
20361     am_cv_func_iconv="no, consider installing GNU libiconv"
20362     am_cv_lib_iconv=no
20363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h.  */
20365 #include <stdlib.h>
20366 #include <iconv.h>
20367 int
20368 main ()
20369 {
20370 iconv_t cd = iconv_open("","");
20371        iconv(cd,NULL,NULL,NULL,NULL);
20372        iconv_close(cd);
20373   ;
20374   return 0;
20375 }
20376 _ACEOF
20377 if ac_fn_c_try_link "$LINENO"; then :
20378   am_cv_func_iconv=yes
20379 fi
20380 rm -f core conftest.err conftest.$ac_objext \
20381     conftest$ac_exeext conftest.$ac_ext
20382     if test "$am_cv_func_iconv" != yes; then
20383       am_save_LIBS="$LIBS"
20384       LIBS="$LIBS $LIBICONV"
20385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h.  */
20387 #include <stdlib.h>
20388 #include <iconv.h>
20389 int
20390 main ()
20391 {
20392 iconv_t cd = iconv_open("","");
20393          iconv(cd,NULL,NULL,NULL,NULL);
20394          iconv_close(cd);
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 if ac_fn_c_try_link "$LINENO"; then :
20400   am_cv_lib_iconv=yes
20401         am_cv_func_iconv=yes
20402 fi
20403 rm -f core conftest.err conftest.$ac_objext \
20404     conftest$ac_exeext conftest.$ac_ext
20405       LIBS="$am_save_LIBS"
20406     fi
20407
20408 fi
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20410 $as_echo "$am_cv_func_iconv" >&6; }
20411   if test "$am_cv_func_iconv" = yes; then
20412
20413 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20414
20415   fi
20416   if test "$am_cv_lib_iconv" = yes; then
20417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20418 $as_echo_n "checking how to link with libiconv... " >&6; }
20419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20420 $as_echo "$LIBICONV" >&6; }
20421   else
20422             CPPFLAGS="$am_save_CPPFLAGS"
20423     LIBICONV=
20424     LTLIBICONV=
20425   fi
20426
20427
20428
20429   if test "$am_cv_func_iconv" = yes; then
20430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20431 $as_echo_n "checking for iconv declaration... " >&6; }
20432     if test "${am_cv_proto_iconv+set}" = set; then :
20433   $as_echo_n "(cached) " >&6
20434 else
20435
20436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h.  */
20438
20439 #include <stdlib.h>
20440 #include <iconv.h>
20441 extern
20442 #ifdef __cplusplus
20443 "C"
20444 #endif
20445 #if defined(__STDC__) || defined(__cplusplus)
20446 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20447 #else
20448 size_t iconv();
20449 #endif
20450
20451 int
20452 main ()
20453 {
20454
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 if ac_fn_c_try_compile "$LINENO"; then :
20460   am_cv_proto_iconv_arg1=""
20461 else
20462   am_cv_proto_iconv_arg1="const"
20463 fi
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20466 fi
20467
20468     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20470          }$am_cv_proto_iconv" >&5
20471 $as_echo "${ac_t:-
20472          }$am_cv_proto_iconv" >&6; }
20473
20474 cat >>confdefs.h <<_ACEOF
20475 #define ICONV_CONST $am_cv_proto_iconv_arg1
20476 _ACEOF
20477
20478   fi
20479
20480
20481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20482 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20483 if test "${am_cv_langinfo_codeset+set}" = set; then :
20484   $as_echo_n "(cached) " >&6
20485 else
20486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h.  */
20488 #include <langinfo.h>
20489 int
20490 main ()
20491 {
20492 char* cs = nl_langinfo(CODESET);
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 if ac_fn_c_try_link "$LINENO"; then :
20498   am_cv_langinfo_codeset=yes
20499 else
20500   am_cv_langinfo_codeset=no
20501 fi
20502 rm -f core conftest.err conftest.$ac_objext \
20503     conftest$ac_exeext conftest.$ac_ext
20504
20505 fi
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20507 $as_echo "$am_cv_langinfo_codeset" >&6; }
20508   if test $am_cv_langinfo_codeset = yes; then
20509
20510 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20511
20512   fi
20513
20514   if test $ac_cv_header_locale_h = yes; then
20515
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20517 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20518 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
20519   $as_echo_n "(cached) " >&6
20520 else
20521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523 #include <locale.h>
20524 int
20525 main ()
20526 {
20527 return LC_MESSAGES
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 if ac_fn_c_try_link "$LINENO"; then :
20533   gt_cv_val_LC_MESSAGES=yes
20534 else
20535   gt_cv_val_LC_MESSAGES=no
20536 fi
20537 rm -f core conftest.err conftest.$ac_objext \
20538     conftest$ac_exeext conftest.$ac_ext
20539 fi
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20541 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20542   if test $gt_cv_val_LC_MESSAGES = yes; then
20543
20544 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20545
20546   fi
20547
20548   fi
20549
20550   if test -n "$INTL_MACOSX_LIBS"; then
20551     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20552   fi
20553
20554                       for ac_prog in bison
20555 do
20556   # Extract the first word of "$ac_prog", so it can be a program name with args.
20557 set dummy $ac_prog; ac_word=$2
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20559 $as_echo_n "checking for $ac_word... " >&6; }
20560 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
20561   $as_echo_n "(cached) " >&6
20562 else
20563   if test -n "$INTLBISON"; then
20564   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20565 else
20566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567 for as_dir in $PATH
20568 do
20569   IFS=$as_save_IFS
20570   test -z "$as_dir" && as_dir=.
20571     for ac_exec_ext in '' $ac_executable_extensions; do
20572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20573     ac_cv_prog_INTLBISON="$ac_prog"
20574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20575     break 2
20576   fi
20577 done
20578   done
20579 IFS=$as_save_IFS
20580
20581 fi
20582 fi
20583 INTLBISON=$ac_cv_prog_INTLBISON
20584 if test -n "$INTLBISON"; then
20585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20586 $as_echo "$INTLBISON" >&6; }
20587 else
20588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589 $as_echo "no" >&6; }
20590 fi
20591
20592
20593   test -n "$INTLBISON" && break
20594 done
20595
20596   if test -z "$INTLBISON"; then
20597     ac_verc_fail=yes
20598   else
20599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20600 $as_echo_n "checking version of bison... " >&6; }
20601     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20602     case $ac_prog_version in
20603       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20604       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20605          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20606       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20607     esac
20608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20609 $as_echo "$ac_prog_version" >&6; }
20610   fi
20611   if test $ac_verc_fail = yes; then
20612     INTLBISON=:
20613   fi
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20631 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20632 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
20633   $as_echo_n "(cached) " >&6
20634 else
20635   gt_save_CPPFLAGS="$CPPFLAGS"
20636      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20637      gt_save_LIBS="$LIBS"
20638      LIBS="$LIBS -framework CoreFoundation"
20639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h.  */
20641 #include <CFPreferences.h>
20642 int
20643 main ()
20644 {
20645 CFPreferencesCopyAppValue(NULL, NULL)
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 if ac_fn_c_try_link "$LINENO"; then :
20651   gt_cv_func_CFPreferencesCopyAppValue=yes
20652 else
20653   gt_cv_func_CFPreferencesCopyAppValue=no
20654 fi
20655 rm -f core conftest.err conftest.$ac_objext \
20656     conftest$ac_exeext conftest.$ac_ext
20657      CPPFLAGS="$gt_save_CPPFLAGS"
20658      LIBS="$gt_save_LIBS"
20659 fi
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20661 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20662   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20663
20664 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20665
20666   fi
20667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20668 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20669 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
20670   $as_echo_n "(cached) " >&6
20671 else
20672   gt_save_CPPFLAGS="$CPPFLAGS"
20673      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20674      gt_save_LIBS="$LIBS"
20675      LIBS="$LIBS -framework CoreFoundation"
20676      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h.  */
20678 #include <CFLocale.h>
20679 int
20680 main ()
20681 {
20682 CFLocaleCopyCurrent();
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 if ac_fn_c_try_link "$LINENO"; then :
20688   gt_cv_func_CFLocaleCopyCurrent=yes
20689 else
20690   gt_cv_func_CFLocaleCopyCurrent=no
20691 fi
20692 rm -f core conftest.err conftest.$ac_objext \
20693     conftest$ac_exeext conftest.$ac_ext
20694      CPPFLAGS="$gt_save_CPPFLAGS"
20695      LIBS="$gt_save_LIBS"
20696 fi
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20698 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20699   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20700
20701 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20702
20703   fi
20704   INTL_MACOSX_LIBS=
20705   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20706     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20707   fi
20708
20709
20710
20711
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20713 $as_echo_n "checking whether NLS is requested... " >&6; }
20714     # Check whether --enable-nls was given.
20715 if test "${enable_nls+set}" = set; then :
20716   enableval=$enable_nls; USE_NLS=$enableval
20717 else
20718   USE_NLS=yes
20719 fi
20720
20721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20722 $as_echo "$USE_NLS" >&6; }
20723
20724
20725
20726
20727     BUILD_INCLUDED_LIBINTL=no
20728     USE_INCLUDED_LIBINTL=no
20729
20730   LIBINTL=
20731   LTLIBINTL=
20732   POSUB=
20733
20734     if test "$USE_NLS" = "yes"; then
20735     gt_use_preinstalled_gnugettext=no
20736
20737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20738 $as_echo_n "checking whether included gettext is requested... " >&6; }
20739
20740 # Check whether --with-included-gettext was given.
20741 if test "${with_included_gettext+set}" = set; then :
20742   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20743 else
20744   nls_cv_force_use_gnu_gettext=no
20745 fi
20746
20747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20748 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20749
20750       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20751       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20752
20753
20754
20755
20756
20757
20758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20759 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20760 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20761   $as_echo_n "(cached) " >&6
20762 else
20763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h.  */
20765 #include <libintl.h>
20766 extern int _nl_msg_cat_cntr;
20767 extern int *_nl_domain_bindings;
20768 int
20769 main ()
20770 {
20771 bindtextdomain ("", "");
20772 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 if ac_fn_c_try_link "$LINENO"; then :
20778   gt_cv_func_gnugettext1_libc=yes
20779 else
20780   gt_cv_func_gnugettext1_libc=no
20781 fi
20782 rm -f core conftest.err conftest.$ac_objext \
20783     conftest$ac_exeext conftest.$ac_ext
20784 fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20786 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20787
20788         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20789
20790
20791
20792     use_additional=yes
20793
20794   acl_save_prefix="$prefix"
20795   prefix="$acl_final_prefix"
20796   acl_save_exec_prefix="$exec_prefix"
20797   exec_prefix="$acl_final_exec_prefix"
20798
20799     eval additional_includedir=\"$includedir\"
20800     eval additional_libdir=\"$libdir\"
20801
20802   exec_prefix="$acl_save_exec_prefix"
20803   prefix="$acl_save_prefix"
20804
20805
20806 # Check whether --with-libintl-prefix was given.
20807 if test "${with_libintl_prefix+set}" = set; then :
20808   withval=$with_libintl_prefix;
20809     if test "X$withval" = "Xno"; then
20810       use_additional=no
20811     else
20812       if test "X$withval" = "X"; then
20813
20814   acl_save_prefix="$prefix"
20815   prefix="$acl_final_prefix"
20816   acl_save_exec_prefix="$exec_prefix"
20817   exec_prefix="$acl_final_exec_prefix"
20818
20819           eval additional_includedir=\"$includedir\"
20820           eval additional_libdir=\"$libdir\"
20821
20822   exec_prefix="$acl_save_exec_prefix"
20823   prefix="$acl_save_prefix"
20824
20825       else
20826         additional_includedir="$withval/include"
20827         additional_libdir="$withval/lib"
20828       fi
20829     fi
20830
20831 fi
20832
20833       LIBINTL=
20834   LTLIBINTL=
20835   INCINTL=
20836   rpathdirs=
20837   ltrpathdirs=
20838   names_already_handled=
20839   names_next_round='intl '
20840   while test -n "$names_next_round"; do
20841     names_this_round="$names_next_round"
20842     names_next_round=
20843     for name in $names_this_round; do
20844       already_handled=
20845       for n in $names_already_handled; do
20846         if test "$n" = "$name"; then
20847           already_handled=yes
20848           break
20849         fi
20850       done
20851       if test -z "$already_handled"; then
20852         names_already_handled="$names_already_handled $name"
20853                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20854         eval value=\"\$HAVE_LIB$uppername\"
20855         if test -n "$value"; then
20856           if test "$value" = yes; then
20857             eval value=\"\$LIB$uppername\"
20858             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20859             eval value=\"\$LTLIB$uppername\"
20860             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20861           else
20862                                     :
20863           fi
20864         else
20865                               found_dir=
20866           found_la=
20867           found_so=
20868           found_a=
20869           if test $use_additional = yes; then
20870             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20871               found_dir="$additional_libdir"
20872               found_so="$additional_libdir/lib$name.$shlibext"
20873               if test -f "$additional_libdir/lib$name.la"; then
20874                 found_la="$additional_libdir/lib$name.la"
20875               fi
20876             else
20877               if test -f "$additional_libdir/lib$name.$libext"; then
20878                 found_dir="$additional_libdir"
20879                 found_a="$additional_libdir/lib$name.$libext"
20880                 if test -f "$additional_libdir/lib$name.la"; then
20881                   found_la="$additional_libdir/lib$name.la"
20882                 fi
20883               fi
20884             fi
20885           fi
20886           if test "X$found_dir" = "X"; then
20887             for x in $LDFLAGS $LTLIBINTL; do
20888
20889   acl_save_prefix="$prefix"
20890   prefix="$acl_final_prefix"
20891   acl_save_exec_prefix="$exec_prefix"
20892   exec_prefix="$acl_final_exec_prefix"
20893   eval x=\"$x\"
20894   exec_prefix="$acl_save_exec_prefix"
20895   prefix="$acl_save_prefix"
20896
20897               case "$x" in
20898                 -L*)
20899                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20900                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20901                     found_dir="$dir"
20902                     found_so="$dir/lib$name.$shlibext"
20903                     if test -f "$dir/lib$name.la"; then
20904                       found_la="$dir/lib$name.la"
20905                     fi
20906                   else
20907                     if test -f "$dir/lib$name.$libext"; then
20908                       found_dir="$dir"
20909                       found_a="$dir/lib$name.$libext"
20910                       if test -f "$dir/lib$name.la"; then
20911                         found_la="$dir/lib$name.la"
20912                       fi
20913                     fi
20914                   fi
20915                   ;;
20916               esac
20917               if test "X$found_dir" != "X"; then
20918                 break
20919               fi
20920             done
20921           fi
20922           if test "X$found_dir" != "X"; then
20923                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20924             if test "X$found_so" != "X"; then
20925                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20926                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20927               else
20928                                                                                 haveit=
20929                 for x in $ltrpathdirs; do
20930                   if test "X$x" = "X$found_dir"; then
20931                     haveit=yes
20932                     break
20933                   fi
20934                 done
20935                 if test -z "$haveit"; then
20936                   ltrpathdirs="$ltrpathdirs $found_dir"
20937                 fi
20938                                 if test "$hardcode_direct" = yes; then
20939                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20940                 else
20941                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20942                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20943                                                             haveit=
20944                     for x in $rpathdirs; do
20945                       if test "X$x" = "X$found_dir"; then
20946                         haveit=yes
20947                         break
20948                       fi
20949                     done
20950                     if test -z "$haveit"; then
20951                       rpathdirs="$rpathdirs $found_dir"
20952                     fi
20953                   else
20954                                                                                 haveit=
20955                     for x in $LDFLAGS $LIBINTL; do
20956
20957   acl_save_prefix="$prefix"
20958   prefix="$acl_final_prefix"
20959   acl_save_exec_prefix="$exec_prefix"
20960   exec_prefix="$acl_final_exec_prefix"
20961   eval x=\"$x\"
20962   exec_prefix="$acl_save_exec_prefix"
20963   prefix="$acl_save_prefix"
20964
20965                       if test "X$x" = "X-L$found_dir"; then
20966                         haveit=yes
20967                         break
20968                       fi
20969                     done
20970                     if test -z "$haveit"; then
20971                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20972                     fi
20973                     if test "$hardcode_minus_L" != no; then
20974                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20975                     else
20976                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20977                     fi
20978                   fi
20979                 fi
20980               fi
20981             else
20982               if test "X$found_a" != "X"; then
20983                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20984               else
20985                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20986               fi
20987             fi
20988                         additional_includedir=
20989             case "$found_dir" in
20990               */lib | */lib/)
20991                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20992                 additional_includedir="$basedir/include"
20993                 ;;
20994             esac
20995             if test "X$additional_includedir" != "X"; then
20996                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20997                 haveit=
20998                 if test "X$additional_includedir" = "X/usr/local/include"; then
20999                   if test -n "$GCC"; then
21000                     case $host_os in
21001                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21002                     esac
21003                   fi
21004                 fi
21005                 if test -z "$haveit"; then
21006                   for x in $CPPFLAGS $INCINTL; do
21007
21008   acl_save_prefix="$prefix"
21009   prefix="$acl_final_prefix"
21010   acl_save_exec_prefix="$exec_prefix"
21011   exec_prefix="$acl_final_exec_prefix"
21012   eval x=\"$x\"
21013   exec_prefix="$acl_save_exec_prefix"
21014   prefix="$acl_save_prefix"
21015
21016                     if test "X$x" = "X-I$additional_includedir"; then
21017                       haveit=yes
21018                       break
21019                     fi
21020                   done
21021                   if test -z "$haveit"; then
21022                     if test -d "$additional_includedir"; then
21023                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21024                     fi
21025                   fi
21026                 fi
21027               fi
21028             fi
21029                         if test -n "$found_la"; then
21030                                                         save_libdir="$libdir"
21031               case "$found_la" in
21032                 */* | *\\*) . "$found_la" ;;
21033                 *) . "./$found_la" ;;
21034               esac
21035               libdir="$save_libdir"
21036                             for dep in $dependency_libs; do
21037                 case "$dep" in
21038                   -L*)
21039                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21040                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21041                       haveit=
21042                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21043                         if test -n "$GCC"; then
21044                           case $host_os in
21045                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21046                           esac
21047                         fi
21048                       fi
21049                       if test -z "$haveit"; then
21050                         haveit=
21051                         for x in $LDFLAGS $LIBINTL; do
21052
21053   acl_save_prefix="$prefix"
21054   prefix="$acl_final_prefix"
21055   acl_save_exec_prefix="$exec_prefix"
21056   exec_prefix="$acl_final_exec_prefix"
21057   eval x=\"$x\"
21058   exec_prefix="$acl_save_exec_prefix"
21059   prefix="$acl_save_prefix"
21060
21061                           if test "X$x" = "X-L$additional_libdir"; then
21062                             haveit=yes
21063                             break
21064                           fi
21065                         done
21066                         if test -z "$haveit"; then
21067                           if test -d "$additional_libdir"; then
21068                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21069                           fi
21070                         fi
21071                         haveit=
21072                         for x in $LDFLAGS $LTLIBINTL; do
21073
21074   acl_save_prefix="$prefix"
21075   prefix="$acl_final_prefix"
21076   acl_save_exec_prefix="$exec_prefix"
21077   exec_prefix="$acl_final_exec_prefix"
21078   eval x=\"$x\"
21079   exec_prefix="$acl_save_exec_prefix"
21080   prefix="$acl_save_prefix"
21081
21082                           if test "X$x" = "X-L$additional_libdir"; then
21083                             haveit=yes
21084                             break
21085                           fi
21086                         done
21087                         if test -z "$haveit"; then
21088                           if test -d "$additional_libdir"; then
21089                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21090                           fi
21091                         fi
21092                       fi
21093                     fi
21094                     ;;
21095                   -R*)
21096                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21097                     if test "$enable_rpath" != no; then
21098                                                                   haveit=
21099                       for x in $rpathdirs; do
21100                         if test "X$x" = "X$dir"; then
21101                           haveit=yes
21102                           break
21103                         fi
21104                       done
21105                       if test -z "$haveit"; then
21106                         rpathdirs="$rpathdirs $dir"
21107                       fi
21108                                                                   haveit=
21109                       for x in $ltrpathdirs; do
21110                         if test "X$x" = "X$dir"; then
21111                           haveit=yes
21112                           break
21113                         fi
21114                       done
21115                       if test -z "$haveit"; then
21116                         ltrpathdirs="$ltrpathdirs $dir"
21117                       fi
21118                     fi
21119                     ;;
21120                   -l*)
21121                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21122                     ;;
21123                   *.la)
21124                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21125                     ;;
21126                   *)
21127                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21128                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21129                     ;;
21130                 esac
21131               done
21132             fi
21133           else
21134                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21135             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21136           fi
21137         fi
21138       fi
21139     done
21140   done
21141   if test "X$rpathdirs" != "X"; then
21142     if test -n "$hardcode_libdir_separator"; then
21143                         alldirs=
21144       for found_dir in $rpathdirs; do
21145         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21146       done
21147             acl_save_libdir="$libdir"
21148       libdir="$alldirs"
21149       eval flag=\"$hardcode_libdir_flag_spec\"
21150       libdir="$acl_save_libdir"
21151       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21152     else
21153             for found_dir in $rpathdirs; do
21154         acl_save_libdir="$libdir"
21155         libdir="$found_dir"
21156         eval flag=\"$hardcode_libdir_flag_spec\"
21157         libdir="$acl_save_libdir"
21158         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21159       done
21160     fi
21161   fi
21162   if test "X$ltrpathdirs" != "X"; then
21163             for found_dir in $ltrpathdirs; do
21164       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21165     done
21166   fi
21167
21168           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21169 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21170 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
21171   $as_echo_n "(cached) " >&6
21172 else
21173   gt_save_CPPFLAGS="$CPPFLAGS"
21174             CPPFLAGS="$CPPFLAGS $INCINTL"
21175             gt_save_LIBS="$LIBS"
21176             LIBS="$LIBS $LIBINTL"
21177                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h.  */
21179 #include <libintl.h>
21180 extern int _nl_msg_cat_cntr;
21181 extern
21182 #ifdef __cplusplus
21183 "C"
21184 #endif
21185 const char *_nl_expand_alias (const char *);
21186 int
21187 main ()
21188 {
21189 bindtextdomain ("", "");
21190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 if ac_fn_c_try_link "$LINENO"; then :
21196   gt_cv_func_gnugettext1_libintl=yes
21197 else
21198   gt_cv_func_gnugettext1_libintl=no
21199 fi
21200 rm -f core conftest.err conftest.$ac_objext \
21201     conftest$ac_exeext conftest.$ac_ext
21202                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21203               LIBS="$LIBS $LIBICONV"
21204               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h.  */
21206 #include <libintl.h>
21207 extern int _nl_msg_cat_cntr;
21208 extern
21209 #ifdef __cplusplus
21210 "C"
21211 #endif
21212 const char *_nl_expand_alias (const char *);
21213 int
21214 main ()
21215 {
21216 bindtextdomain ("", "");
21217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21218   ;
21219   return 0;
21220 }
21221 _ACEOF
21222 if ac_fn_c_try_link "$LINENO"; then :
21223   LIBINTL="$LIBINTL $LIBICONV"
21224                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21225                 gt_cv_func_gnugettext1_libintl=yes
21226
21227 fi
21228 rm -f core conftest.err conftest.$ac_objext \
21229     conftest$ac_exeext conftest.$ac_ext
21230             fi
21231             CPPFLAGS="$gt_save_CPPFLAGS"
21232             LIBS="$gt_save_LIBS"
21233 fi
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21235 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21236         fi
21237
21238                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21239            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21240                 && test "$PACKAGE" != gettext-runtime \
21241                 && test "$PACKAGE" != gettext-tools; }; then
21242           gt_use_preinstalled_gnugettext=yes
21243         else
21244                     LIBINTL=
21245           LTLIBINTL=
21246           INCINTL=
21247         fi
21248
21249
21250         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21251                               nls_cv_use_gnu_gettext=yes
21252         fi
21253       fi
21254
21255       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21256                 BUILD_INCLUDED_LIBINTL=yes
21257         USE_INCLUDED_LIBINTL=yes
21258         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21259         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21260         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21261       fi
21262
21263       CATOBJEXT=
21264       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21265          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21266                 CATOBJEXT=.gmo
21267       fi
21268
21269
21270     if test -n "$INTL_MACOSX_LIBS"; then
21271       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21272          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21273                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21274         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21275       fi
21276     fi
21277
21278     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21279        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21280
21281 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21282
21283     else
21284       USE_NLS=no
21285     fi
21286   fi
21287
21288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21289 $as_echo_n "checking whether to use NLS... " >&6; }
21290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21291 $as_echo "$USE_NLS" >&6; }
21292   if test "$USE_NLS" = "yes"; then
21293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21294 $as_echo_n "checking where the gettext function comes from... " >&6; }
21295     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21296       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21297         gt_source="external libintl"
21298       else
21299         gt_source="libc"
21300       fi
21301     else
21302       gt_source="included intl directory"
21303     fi
21304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21305 $as_echo "$gt_source" >&6; }
21306   fi
21307
21308   if test "$USE_NLS" = "yes"; then
21309
21310     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21311       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21313 $as_echo_n "checking how to link with libintl... " >&6; }
21314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21315 $as_echo "$LIBINTL" >&6; }
21316
21317   for element in $INCINTL; do
21318     haveit=
21319     for x in $CPPFLAGS; do
21320
21321   acl_save_prefix="$prefix"
21322   prefix="$acl_final_prefix"
21323   acl_save_exec_prefix="$exec_prefix"
21324   exec_prefix="$acl_final_exec_prefix"
21325   eval x=\"$x\"
21326   exec_prefix="$acl_save_exec_prefix"
21327   prefix="$acl_save_prefix"
21328
21329       if test "X$x" = "X$element"; then
21330         haveit=yes
21331         break
21332       fi
21333     done
21334     if test -z "$haveit"; then
21335       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21336     fi
21337   done
21338
21339       fi
21340
21341
21342 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21343
21344
21345 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21346
21347     fi
21348
21349         POSUB=po
21350   fi
21351
21352
21353             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21354       BUILD_INCLUDED_LIBINTL=yes
21355     fi
21356
21357
21358
21359
21360
21361         nls_cv_header_intl=
21362     nls_cv_header_libgt=
21363
21364         DATADIRNAME=share
21365
21366
21367         INSTOBJEXT=.mo
21368
21369
21370         GENCAT=gencat
21371
21372
21373         INTLOBJS=
21374     if test "$USE_INCLUDED_LIBINTL" = yes; then
21375       INTLOBJS="\$(GETTOBJS)"
21376     fi
21377
21378
21379         INTL_LIBTOOL_SUFFIX_PREFIX=
21380
21381
21382
21383     INTLLIBS="$LIBINTL"
21384
21385
21386
21387
21388
21389
21390 fi
21391
21392 support_smartalloc=yes
21393 support_readline=yes
21394 support_conio=yes
21395 support_gnome=no
21396 support_bat=no
21397 support_wx_console=no
21398 support_tray_monitor=no
21399 support_tls=no
21400 support_crypto=no
21401 gnome_version=
21402 wx_version=
21403 support_static_tools=no
21404 support_static_fd=no
21405 support_static_sd=no
21406 support_static_dir=no
21407 support_static_cons=no
21408 support_python=no
21409 build_client_only=no
21410 build_dird=yes
21411 build_stored=yes
21412 db_backends=""
21413 support_lockmgr=no
21414
21415
21416 # Check whether --enable-gnome was given.
21417 if test "${enable_gnome+set}" = set; then :
21418   enableval=$enable_gnome;
21419        if test x$enableval = xyes; then
21420           support_gnome=yes
21421        fi
21422
21423
21424 fi
21425
21426
21427 GNOME_DIR=
21428 if test x$support_gnome = xyes; then
21429    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21430    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21431 fi
21432 # AC_SUBST(GNOME_DIR)
21433
21434 # Check whether --enable-bat was given.
21435 if test "${enable_bat+set}" = set; then :
21436   enableval=$enable_bat;
21437        if test x$enableval = xyes; then
21438
21439 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21440
21441           support_bat=yes
21442        fi
21443
21444
21445 fi
21446
21447
21448 BAT_DIR=
21449 if test x$support_bat = xyes; then
21450    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21451    pkg=$?
21452    if test $pkg = 0; then
21453       BAT_DIR=src/qt-console
21454    else
21455       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21456    fi
21457 fi
21458
21459 got_qwt=no
21460 QWT_INC=
21461 QWT_LDFLAGS=
21462 QWT_LIB=
21463 QWT=
21464 no_qwt=no
21465
21466
21467
21468
21469
21470
21471
21472
21473 # Check whether --enable-bwx-console was given.
21474 if test "${enable_bwx_console+set}" = set; then :
21475   enableval=$enable_bwx_console;
21476        if test x$enableval = xyes; then
21477           support_wx_console=yes
21478        fi
21479
21480
21481 fi
21482
21483
21484 WX_DIR=
21485 if test x$support_wx_console = xyes; then
21486    abc=`$WXCONFIG $WXFLAGS --cppflags`
21487    pkg=$?
21488    if test $pkg = 0; then
21489       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21490       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21491       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21492
21493
21494
21495       WX_DIR="src/wx-console"
21496    else
21497       echo " "
21498       echo "wx-config program not found. bwx-console disabled."
21499       echo " "
21500       support_wx_console=no
21501    fi
21502 fi
21503
21504
21505 # Check whether --enable-tray-monitor was given.
21506 if test "${enable_tray_monitor+set}" = set; then :
21507   enableval=$enable_tray_monitor;
21508        if test x$enableval = xyes; then
21509           support_tray_monitor=yes
21510        fi
21511
21512
21513 fi
21514
21515
21516 TRAY_MONITOR_DIR=
21517 if test x$support_tray_monitor = xyes; then
21518    abc=`$PKGCONFIG --exists gtk+-2.0`
21519    pkg=$?
21520    if test $pkg = 0; then
21521       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21522       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21523
21524
21525       TRAY_MONITOR_DIR=src/tray-monitor
21526       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21527       pkg=$?
21528       if test $pkg = 0; then
21529
21530 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21531
21532       fi
21533    fi
21534 fi
21535
21536
21537 # Check whether --enable-smartalloc was given.
21538 if test "${enable_smartalloc+set}" = set; then :
21539   enableval=$enable_smartalloc;
21540        if test x$enableval = xno; then
21541           support_smartalloc=no
21542        fi
21543
21544
21545 fi
21546
21547
21548 if test x$support_smartalloc = xyes; then
21549
21550 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21551
21552 fi
21553
21554 # Check whether --enable-lockmgr was given.
21555 if test "${enable_lockmgr+set}" = set; then :
21556   enableval=$enable_lockmgr;
21557        if test x$enableval = xyes; then
21558           support_lockmgr=yes
21559        fi
21560
21561
21562 fi
21563
21564
21565 if test x$support_lockmgr = xyes; then
21566
21567 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21568
21569 fi
21570
21571
21572 # Check whether --enable-static-tools was given.
21573 if test "${enable_static_tools+set}" = set; then :
21574   enableval=$enable_static_tools;
21575        if test x$enableval = xyes; then
21576           if test x$use_libtool = xyes; then
21577              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21578   please rerun configure with --disable-libtool" "$LINENO" 5
21579           fi
21580           support_static_tools=yes
21581        fi
21582
21583
21584 fi
21585
21586
21587 TTOOL_LDFLAGS=
21588 if test x$support_static_tools = xyes; then
21589    TTOOL_LDFLAGS="-static"
21590 fi
21591
21592
21593 # Check whether --enable-static-fd was given.
21594 if test "${enable_static_fd+set}" = set; then :
21595   enableval=$enable_static_fd;
21596        if test x$enableval = xyes; then
21597           if test x$use_libtool = xyes; then
21598              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21599   please rerun configure with --disable-libtool" "$LINENO" 5
21600           fi
21601           support_static_fd=yes
21602        fi
21603
21604
21605 fi
21606
21607
21608 STATIC_FD=
21609 if test x$support_static_fd = xyes; then
21610    STATIC_FD="static-bacula-fd"
21611 fi
21612
21613
21614 # Check whether --enable-static-sd was given.
21615 if test "${enable_static_sd+set}" = set; then :
21616   enableval=$enable_static_sd;
21617        if test x$enableval = xyes; then
21618           if test x$use_libtool = xyes; then
21619              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21620   please rerun configure with --disable-libtool" "$LINENO" 5
21621           fi
21622           support_static_sd=yes
21623        fi
21624
21625
21626 fi
21627
21628
21629 STATIC_SD=
21630 if test x$support_static_sd = xyes; then
21631    STATIC_SD="static-bacula-sd"
21632 fi
21633
21634
21635 # Check whether --enable-static-dir was given.
21636 if test "${enable_static_dir+set}" = set; then :
21637   enableval=$enable_static_dir;
21638        if test x$enableval = xyes; then
21639           if test x$use_libtool = xyes; then
21640              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21641   please rerun configure with --disable-libtool" "$LINENO" 5
21642           fi
21643           support_static_dir=yes
21644        fi
21645
21646
21647 fi
21648
21649
21650 STATIC_DIR=
21651 if test x$support_static_dir = xyes; then
21652    STATIC_DIR="static-bacula-dir"
21653 fi
21654
21655
21656 # Check whether --enable-static-cons was given.
21657 if test "${enable_static_cons+set}" = set; then :
21658   enableval=$enable_static_cons;
21659        if test x$enableval = xyes; then
21660           if test x$use_libtool = xyes; then
21661              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21662   please rerun configure with --disable-libtool" "$LINENO" 5
21663           fi
21664           support_static_cons=yes
21665        fi
21666
21667
21668 fi
21669
21670
21671 STATIC_CONS=
21672 STATIC_GNOME_CONS=
21673 STATIC_WX_CONS=
21674 if test x$support_static_cons = xyes; then
21675    STATIC_CONS="static-bconsole"
21676    STATIC_GNOME_CONS="static-bgnome-console"
21677    STATIC_WX_CONS="static-bwx-console"
21678 fi
21679
21680
21681
21682
21683 # Check whether --enable-client-only was given.
21684 if test "${enable_client_only+set}" = set; then :
21685   enableval=$enable_client_only;
21686        if test x$enableval = xyes; then
21687           build_client_only=yes
21688           db_backends="None"
21689           DB_BACKENDS="none"
21690        fi
21691
21692
21693 fi
21694
21695 if test x$build_client_only = xno; then
21696    ALL_DIRS="subdirs"
21697 else
21698    ALL_DIRS=""
21699 fi
21700
21701
21702 # Check whether --enable-build-dird was given.
21703 if test "${enable_build_dird+set}" = set; then :
21704   enableval=$enable_build_dird;
21705        if test x$enableval = xno; then
21706           build_dird=no
21707        fi
21708
21709
21710 fi
21711
21712 if test x$build_dird = xyes; then
21713    DIRD_DIR="src/dird"
21714    DIR_TOOLS="DIRTOOLS"
21715 else
21716    DIRD_DIR=""
21717    DIR_TOOLS="NODIRTOOLS"
21718 fi
21719
21720
21721
21722 # Check whether --enable-build-stored was given.
21723 if test "${enable_build_stored+set}" = set; then :
21724   enableval=$enable_build_stored;
21725       if test x$enableval = xno; then
21726          build_stored=no
21727       fi
21728
21729
21730 fi
21731
21732 if test x$build_stored = xyes; then
21733    STORED_DIR="src/stored"
21734 else
21735    STORED_DIR=""
21736 fi
21737
21738
21739 # Check whether --enable-conio was given.
21740 if test "${enable_conio+set}" = set; then :
21741   enableval=$enable_conio;
21742        if test x$enableval = xno; then
21743           support_conio=no
21744        fi
21745
21746
21747 fi
21748
21749
21750
21751 support_ipv6=yes
21752 # Check whether --enable-ipv6 was given.
21753 if test "${enable_ipv6+set}" = set; then :
21754   enableval=$enable_ipv6;
21755        if test x$enableval = xno; then
21756           support_ipv6=no
21757        fi
21758
21759
21760 fi
21761
21762
21763 if test x$support_ipv6 = xyes; then
21764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h.  */
21766  #include <sys/types.h>
21767 #include <sys/socket.h>
21768 #include <netinet/in.h>
21769 int
21770 main ()
21771 {
21772 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 if ac_fn_c_try_link "$LINENO"; then :
21778   support_ipv6=yes
21779 else
21780   support_ipv6=no
21781 fi
21782 rm -f core conftest.err conftest.$ac_objext \
21783     conftest$ac_exeext conftest.$ac_ext
21784 fi
21785
21786 if test x$support_ipv6 = xyes; then
21787
21788 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21789
21790 fi
21791
21792 TERM_LIB=""
21793 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21794 if test "x$ac_cv_header_curses_h" = x""yes; then :
21795
21796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21797 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21798 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21799   $as_echo_n "(cached) " >&6
21800 else
21801   ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-ltinfo  $LIBS"
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h.  */
21805
21806 /* Override any GCC internal prototype to avoid an error.
21807    Use char because int might match the return type of a GCC
21808    builtin and then its argument prototype would still apply.  */
21809 #ifdef __cplusplus
21810 extern "C"
21811 #endif
21812 char tgetent ();
21813 int
21814 main ()
21815 {
21816 return tgetent ();
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 if ac_fn_c_try_link "$LINENO"; then :
21822   ac_cv_lib_tinfo_tgetent=yes
21823 else
21824   ac_cv_lib_tinfo_tgetent=no
21825 fi
21826 rm -f core conftest.err conftest.$ac_objext \
21827     conftest$ac_exeext conftest.$ac_ext
21828 LIBS=$ac_check_lib_save_LIBS
21829 fi
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21831 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21832 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21833    TERM_LIB="-ltinfo"
21834 else
21835
21836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21837 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21838 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lncurses  $LIBS"
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h.  */
21845
21846 /* Override any GCC internal prototype to avoid an error.
21847    Use char because int might match the return type of a GCC
21848    builtin and then its argument prototype would still apply.  */
21849 #ifdef __cplusplus
21850 extern "C"
21851 #endif
21852 char tgetent ();
21853 int
21854 main ()
21855 {
21856 return tgetent ();
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 if ac_fn_c_try_link "$LINENO"; then :
21862   ac_cv_lib_ncurses_tgetent=yes
21863 else
21864   ac_cv_lib_ncurses_tgetent=no
21865 fi
21866 rm -f core conftest.err conftest.$ac_objext \
21867     conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21869 fi
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21871 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21872 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21873    TERM_LIB="-lncurses"
21874 else
21875
21876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21877 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21878 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21879   $as_echo_n "(cached) " >&6
21880 else
21881   ac_check_lib_save_LIBS=$LIBS
21882 LIBS="-ltermcap  $LIBS"
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h.  */
21885
21886 /* Override any GCC internal prototype to avoid an error.
21887    Use char because int might match the return type of a GCC
21888    builtin and then its argument prototype would still apply.  */
21889 #ifdef __cplusplus
21890 extern "C"
21891 #endif
21892 char tgetent ();
21893 int
21894 main ()
21895 {
21896 return tgetent ();
21897   ;
21898   return 0;
21899 }
21900 _ACEOF
21901 if ac_fn_c_try_link "$LINENO"; then :
21902   ac_cv_lib_termcap_tgetent=yes
21903 else
21904   ac_cv_lib_termcap_tgetent=no
21905 fi
21906 rm -f core conftest.err conftest.$ac_objext \
21907     conftest$ac_exeext conftest.$ac_ext
21908 LIBS=$ac_check_lib_save_LIBS
21909 fi
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21911 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21912 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21913    TERM_LIB="-ltermcap"
21914 fi
21915
21916
21917 fi
21918
21919
21920 fi
21921
21922
21923 else
21924     for ac_header in curses.h
21925 do :
21926   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21927 if test "x$ac_cv_header_curses_h" = x""yes; then :
21928   cat >>confdefs.h <<_ACEOF
21929 #define HAVE_CURSES_H 1
21930 _ACEOF
21931
21932 fi
21933
21934 done
21935
21936      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21937 if test "x$ac_cv_header_term_h" = x""yes; then :
21938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21939 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21940 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21941   $as_echo_n "(cached) " >&6
21942 else
21943   ac_check_lib_save_LIBS=$LIBS
21944 LIBS="-lcurses  $LIBS"
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h.  */
21947
21948 /* Override any GCC internal prototype to avoid an error.
21949    Use char because int might match the return type of a GCC
21950    builtin and then its argument prototype would still apply.  */
21951 #ifdef __cplusplus
21952 extern "C"
21953 #endif
21954 char tgetent ();
21955 int
21956 main ()
21957 {
21958 return tgetent ();
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 if ac_fn_c_try_link "$LINENO"; then :
21964   ac_cv_lib_curses_tgetent=yes
21965 else
21966   ac_cv_lib_curses_tgetent=no
21967 fi
21968 rm -f core conftest.err conftest.$ac_objext \
21969     conftest$ac_exeext conftest.$ac_ext
21970 LIBS=$ac_check_lib_save_LIBS
21971 fi
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21973 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21974 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21975    TERM_LIB="-lcurses"
21976 fi
21977
21978
21979 fi
21980
21981
21982
21983 fi
21984
21985
21986
21987
21988 got_conio="no"
21989 if test x$support_conio = xyes; then
21990    if test x$TERM_LIB != x; then
21991       CONS_LIBS=$TERM_LIB
21992       CONS_OBJ="conio.o"
21993       CONS_SRC="conio.c"
21994       got_conio="yes"
21995       support_readline=no
21996
21997 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21998
21999    else
22000       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
22001    fi
22002 fi
22003
22004
22005 # Check whether --enable-readline was given.
22006 if test "${enable_readline+set}" = set; then :
22007   enableval=$enable_readline;
22008        if test x$enableval = xno; then
22009           support_readline=no
22010        fi
22011
22012
22013 fi
22014
22015 if test x$TERM_LIB = x ; then
22016    support_readline=no
22017 fi
22018
22019 got_readline="no"
22020 READLINE_SRC=
22021 if test x$support_readline = xyes; then
22022
22023 # Check whether --with-readline was given.
22024 if test "${with_readline+set}" = set; then :
22025   withval=$with_readline;
22026           case "$with_readline" in
22027           no)
22028              :
22029              ;;
22030           yes|*)
22031              if test -f ${with_readline}/readline.h; then
22032                 CONS_INC="-I${with_readline}"
22033                 CONS_LDFLAGS="-L$with_readline"
22034              elif test -f ${with_readline}/include/readline/readline.h; then
22035                 CONS_INC="-I${with_readline}/include/readline"
22036                 CONS_LDFLAGS="-L${with_readline}/lib"
22037                 with_readline="${with_readline}/include/readline"
22038              else
22039                 with_readline="/usr/include/readline"
22040              fi
22041
22042              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22043 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22045
22046
22047 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22048
22049                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22050                     got_readline="yes"
22051
22052 else
22053
22054                     echo " "
22055                     echo "readline.h not found. readline turned off ..."
22056                     echo " "
22057
22058
22059 fi
22060
22061
22062              ;;
22063           esac
22064
22065 else
22066
22067                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22068 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22069
22070
22071 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22072
22073                 got_readline="yes"
22074                 CONS_INC="-I/usr/include/readline"
22075                 CONS_LIBS="-lreadline $TERM_LIB"
22076
22077 else
22078
22079                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22080 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22082
22083
22084 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22085
22086                         got_readline="yes"
22087                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22088                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22089                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22090                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22091
22092 else
22093
22094                         echo " "
22095                         echo "readline.h not found. readline turned off ..."
22096                         echo " "
22097
22098
22099 fi
22100
22101
22102
22103
22104 fi
22105
22106
22107
22108
22109 fi
22110
22111 fi
22112
22113
22114
22115
22116
22117
22118
22119
22120 MAKE_SHELL=/bin/sh
22121
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22123 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22124 if test "${ac_cv_header_stat_broken+set}" = set; then :
22125   $as_echo_n "(cached) " >&6
22126 else
22127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h.  */
22129 #include <sys/types.h>
22130 #include <sys/stat.h>
22131
22132 #if defined S_ISBLK && defined S_IFDIR
22133 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22134 #endif
22135
22136 #if defined S_ISBLK && defined S_IFCHR
22137 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22138 #endif
22139
22140 #if defined S_ISLNK && defined S_IFREG
22141 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22142 #endif
22143
22144 #if defined S_ISSOCK && defined S_IFREG
22145 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22146 #endif
22147
22148 _ACEOF
22149 if ac_fn_c_try_compile "$LINENO"; then :
22150   ac_cv_header_stat_broken=no
22151 else
22152   ac_cv_header_stat_broken=yes
22153 fi
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155 fi
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22157 $as_echo "$ac_cv_header_stat_broken" >&6; }
22158 if test $ac_cv_header_stat_broken = yes; then
22159
22160 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22161
22162 fi
22163
22164 ac_header_dirent=no
22165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22166   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22168 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22169 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
22170   $as_echo_n "(cached) " >&6
22171 else
22172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h.  */
22174 #include <sys/types.h>
22175 #include <$ac_hdr>
22176
22177 int
22178 main ()
22179 {
22180 if ((DIR *) 0)
22181 return 0;
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 if ac_fn_c_try_compile "$LINENO"; then :
22187   eval "$as_ac_Header=yes"
22188 else
22189   eval "$as_ac_Header=no"
22190 fi
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 fi
22193 eval ac_res=\$$as_ac_Header
22194                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22195 $as_echo "$ac_res" >&6; }
22196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22197   cat >>confdefs.h <<_ACEOF
22198 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22199 _ACEOF
22200
22201 ac_header_dirent=$ac_hdr; break
22202 fi
22203
22204 done
22205 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22206 if test $ac_header_dirent = dirent.h; then
22207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22208 $as_echo_n "checking for library containing opendir... " >&6; }
22209 if test "${ac_cv_search_opendir+set}" = set; then :
22210   $as_echo_n "(cached) " >&6
22211 else
22212   ac_func_search_save_LIBS=$LIBS
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h.  */
22215
22216 /* Override any GCC internal prototype to avoid an error.
22217    Use char because int might match the return type of a GCC
22218    builtin and then its argument prototype would still apply.  */
22219 #ifdef __cplusplus
22220 extern "C"
22221 #endif
22222 char opendir ();
22223 int
22224 main ()
22225 {
22226 return opendir ();
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 for ac_lib in '' dir; do
22232   if test -z "$ac_lib"; then
22233     ac_res="none required"
22234   else
22235     ac_res=-l$ac_lib
22236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22237   fi
22238   if ac_fn_c_try_link "$LINENO"; then :
22239   ac_cv_search_opendir=$ac_res
22240 fi
22241 rm -f core conftest.err conftest.$ac_objext \
22242     conftest$ac_exeext
22243   if test "${ac_cv_search_opendir+set}" = set; then :
22244   break
22245 fi
22246 done
22247 if test "${ac_cv_search_opendir+set}" = set; then :
22248
22249 else
22250   ac_cv_search_opendir=no
22251 fi
22252 rm conftest.$ac_ext
22253 LIBS=$ac_func_search_save_LIBS
22254 fi
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22256 $as_echo "$ac_cv_search_opendir" >&6; }
22257 ac_res=$ac_cv_search_opendir
22258 if test "$ac_res" != no; then :
22259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22260
22261 fi
22262
22263 else
22264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22265 $as_echo_n "checking for library containing opendir... " >&6; }
22266 if test "${ac_cv_search_opendir+set}" = set; then :
22267   $as_echo_n "(cached) " >&6
22268 else
22269   ac_func_search_save_LIBS=$LIBS
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h.  */
22272
22273 /* Override any GCC internal prototype to avoid an error.
22274    Use char because int might match the return type of a GCC
22275    builtin and then its argument prototype would still apply.  */
22276 #ifdef __cplusplus
22277 extern "C"
22278 #endif
22279 char opendir ();
22280 int
22281 main ()
22282 {
22283 return opendir ();
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 for ac_lib in '' x; do
22289   if test -z "$ac_lib"; then
22290     ac_res="none required"
22291   else
22292     ac_res=-l$ac_lib
22293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22294   fi
22295   if ac_fn_c_try_link "$LINENO"; then :
22296   ac_cv_search_opendir=$ac_res
22297 fi
22298 rm -f core conftest.err conftest.$ac_objext \
22299     conftest$ac_exeext
22300   if test "${ac_cv_search_opendir+set}" = set; then :
22301   break
22302 fi
22303 done
22304 if test "${ac_cv_search_opendir+set}" = set; then :
22305
22306 else
22307   ac_cv_search_opendir=no
22308 fi
22309 rm conftest.$ac_ext
22310 LIBS=$ac_func_search_save_LIBS
22311 fi
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22313 $as_echo "$ac_cv_search_opendir" >&6; }
22314 ac_res=$ac_cv_search_opendir
22315 if test "$ac_res" != no; then :
22316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22317
22318 fi
22319
22320 fi
22321
22322 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22323 do :
22324   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22327   cat >>confdefs.h <<_ACEOF
22328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329 _ACEOF
22330
22331 fi
22332 done
22333
22334 for ac_func in nanosleep nl_langinfo
22335 do :
22336   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22339   cat >>confdefs.h <<_ACEOF
22340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22341 _ACEOF
22342
22343 fi
22344 done
22345
22346 for ac_header in varargs.h
22347 do :
22348   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22349 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22350   cat >>confdefs.h <<_ACEOF
22351 #define HAVE_VARARGS_H 1
22352 _ACEOF
22353
22354 fi
22355
22356 done
22357
22358
22359
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22361 $as_echo_n "checking for Python support... " >&6; }
22362
22363 # Check whether --with-python was given.
22364 if test "${with_python+set}" = set; then :
22365   withval=$with_python;
22366        PYTHON_INCDIR=
22367        PYTHON_LIBS=
22368        if test "$withval" != "no"; then
22369           if test "$withval" = "yes"; then
22370              if test -e /usr/bin/python-config ; then
22371                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22372                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22373              else
22374                 for python_root in /usr /usr/local /usr/sfw; do
22375                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22376                       if test -f $python_root/include/${ver}/Python.h; then
22377                          PYTHON_INCDIR=-I$python_root/include/${ver}
22378                          if test -d $python_root/lib64/${ver}/config; then
22379                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22380                          else
22381                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22382                          fi
22383                          break
22384                       fi
22385                    done
22386                 done
22387
22388                 if test x$PYTHON_INCDIR = x; then
22389                    if test -f $prefix/include/Python.h; then
22390                       PYTHON_INCDIR=-I$prefix/include
22391                       if test -d $prefix/lib64/config; then
22392                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22393                       else
22394                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22395                       fi
22396                    else
22397                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22400                    fi
22401                 fi
22402              fi
22403           else
22404              if test -e $withval/bin/python-config ; then
22405                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22406                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22407              elif test -f $withval/Python.h; then
22408                 PYTHON_INCDIR=-I$withval
22409                 PYTHON_LIBS="-L$withval/config -lpython"
22410              elif test -f $withval/include/Python.h; then
22411                 PYTHON_INCDIR=-I$withval/include
22412                 if test -d $withval/lib64/config; then
22413                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22414                 else
22415                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22416                 fi
22417              elif test -f $withval/include/python/Python.h; then
22418                 PYTHON_INCDIR=-I$withval/include/python
22419                 if test -d $withval/lib64/python/config; then
22420                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22421                 else
22422                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22423                 fi
22424              else
22425                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22428              fi
22429           fi
22430
22431           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22432
22433           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22434 $as_echo "yes" >&6; }
22435           support_python=yes
22436           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22437 $as_echo "$as_me: checking for more Python libs" >&6;}
22438           saved_LIBS="$LIBS"; LIBS=
22439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22440 $as_echo_n "checking for library containing shm_open... " >&6; }
22441 if test "${ac_cv_search_shm_open+set}" = set; then :
22442   $as_echo_n "(cached) " >&6
22443 else
22444   ac_func_search_save_LIBS=$LIBS
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h.  */
22447
22448 /* Override any GCC internal prototype to avoid an error.
22449    Use char because int might match the return type of a GCC
22450    builtin and then its argument prototype would still apply.  */
22451 #ifdef __cplusplus
22452 extern "C"
22453 #endif
22454 char shm_open ();
22455 int
22456 main ()
22457 {
22458 return shm_open ();
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 for ac_lib in '' rt; do
22464   if test -z "$ac_lib"; then
22465     ac_res="none required"
22466   else
22467     ac_res=-l$ac_lib
22468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22469   fi
22470   if ac_fn_c_try_link "$LINENO"; then :
22471   ac_cv_search_shm_open=$ac_res
22472 fi
22473 rm -f core conftest.err conftest.$ac_objext \
22474     conftest$ac_exeext
22475   if test "${ac_cv_search_shm_open+set}" = set; then :
22476   break
22477 fi
22478 done
22479 if test "${ac_cv_search_shm_open+set}" = set; then :
22480
22481 else
22482   ac_cv_search_shm_open=no
22483 fi
22484 rm conftest.$ac_ext
22485 LIBS=$ac_func_search_save_LIBS
22486 fi
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22488 $as_echo "$ac_cv_search_shm_open" >&6; }
22489 ac_res=$ac_cv_search_shm_open
22490 if test "$ac_res" != no; then :
22491   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22492
22493 fi
22494
22495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22496 $as_echo_n "checking for openpty in -lutil... " >&6; }
22497 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22498   $as_echo_n "(cached) " >&6
22499 else
22500   ac_check_lib_save_LIBS=$LIBS
22501 LIBS="-lutil  $LIBS"
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h.  */
22504
22505 /* Override any GCC internal prototype to avoid an error.
22506    Use char because int might match the return type of a GCC
22507    builtin and then its argument prototype would still apply.  */
22508 #ifdef __cplusplus
22509 extern "C"
22510 #endif
22511 char openpty ();
22512 int
22513 main ()
22514 {
22515 return openpty ();
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 if ac_fn_c_try_link "$LINENO"; then :
22521   ac_cv_lib_util_openpty=yes
22522 else
22523   ac_cv_lib_util_openpty=no
22524 fi
22525 rm -f core conftest.err conftest.$ac_objext \
22526     conftest$ac_exeext conftest.$ac_ext
22527 LIBS=$ac_check_lib_save_LIBS
22528 fi
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22530 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22531 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22532   cat >>confdefs.h <<_ACEOF
22533 #define HAVE_LIBUTIL 1
22534 _ACEOF
22535
22536   LIBS="-lutil $LIBS"
22537
22538 fi
22539
22540           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22541           LIBS="$saved_LIBS"
22542        else
22543           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22544 $as_echo "no" >&6; }
22545        fi
22546
22547 else
22548
22549        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22550 $as_echo "no" >&6; }
22551
22552
22553 fi
22554
22555
22556
22557
22558 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22559 if test "x$ac_cv_func_socket" = x""yes; then :
22560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22561 $as_echo "using libc's socket" >&6; }
22562 else
22563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22564 $as_echo_n "checking for socket in -lxnet... " >&6; }
22565 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22566   $as_echo_n "(cached) " >&6
22567 else
22568   ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lxnet  $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h.  */
22572
22573 /* Override any GCC internal prototype to avoid an error.
22574    Use char because int might match the return type of a GCC
22575    builtin and then its argument prototype would still apply.  */
22576 #ifdef __cplusplus
22577 extern "C"
22578 #endif
22579 char socket ();
22580 int
22581 main ()
22582 {
22583 return socket ();
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 if ac_fn_c_try_link "$LINENO"; then :
22589   ac_cv_lib_xnet_socket=yes
22590 else
22591   ac_cv_lib_xnet_socket=no
22592 fi
22593 rm -f core conftest.err conftest.$ac_objext \
22594     conftest$ac_exeext conftest.$ac_ext
22595 LIBS=$ac_check_lib_save_LIBS
22596 fi
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22598 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22599 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22600   cat >>confdefs.h <<_ACEOF
22601 #define HAVE_LIBXNET 1
22602 _ACEOF
22603
22604   LIBS="-lxnet $LIBS"
22605
22606 fi
22607
22608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22609 $as_echo_n "checking for socket in -lsocket... " >&6; }
22610 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22611   $as_echo_n "(cached) " >&6
22612 else
22613   ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lsocket  $LIBS"
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h.  */
22617
22618 /* Override any GCC internal prototype to avoid an error.
22619    Use char because int might match the return type of a GCC
22620    builtin and then its argument prototype would still apply.  */
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 char socket ();
22625 int
22626 main ()
22627 {
22628 return socket ();
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 if ac_fn_c_try_link "$LINENO"; then :
22634   ac_cv_lib_socket_socket=yes
22635 else
22636   ac_cv_lib_socket_socket=no
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext \
22639     conftest$ac_exeext conftest.$ac_ext
22640 LIBS=$ac_check_lib_save_LIBS
22641 fi
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22643 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22644 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22645   cat >>confdefs.h <<_ACEOF
22646 #define HAVE_LIBSOCKET 1
22647 _ACEOF
22648
22649   LIBS="-lsocket $LIBS"
22650
22651 fi
22652
22653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22654 $as_echo_n "checking for socket in -linet... " >&6; }
22655 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22656   $as_echo_n "(cached) " >&6
22657 else
22658   ac_check_lib_save_LIBS=$LIBS
22659 LIBS="-linet  $LIBS"
22660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661 /* end confdefs.h.  */
22662
22663 /* Override any GCC internal prototype to avoid an error.
22664    Use char because int might match the return type of a GCC
22665    builtin and then its argument prototype would still apply.  */
22666 #ifdef __cplusplus
22667 extern "C"
22668 #endif
22669 char socket ();
22670 int
22671 main ()
22672 {
22673 return socket ();
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 if ac_fn_c_try_link "$LINENO"; then :
22679   ac_cv_lib_inet_socket=yes
22680 else
22681   ac_cv_lib_inet_socket=no
22682 fi
22683 rm -f core conftest.err conftest.$ac_objext \
22684     conftest$ac_exeext conftest.$ac_ext
22685 LIBS=$ac_check_lib_save_LIBS
22686 fi
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22688 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22689 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22690   cat >>confdefs.h <<_ACEOF
22691 #define HAVE_LIBINET 1
22692 _ACEOF
22693
22694   LIBS="-linet $LIBS"
22695
22696 fi
22697
22698 fi
22699
22700
22701 TCPW_MSG="no"
22702 WRAPLIBS=""
22703
22704 # Check whether --with-tcp-wrappers was given.
22705 if test "${with_tcp_wrappers+set}" = set; then :
22706   withval=$with_tcp_wrappers;
22707        if test "x$withval" != "xno" ; then
22708           saved_LIBS="$LIBS"
22709           LIBS="$saved_LIBS -lwrap"
22710           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22711 $as_echo_n "checking for library containing nanosleep... " >&6; }
22712 if test "${ac_cv_search_nanosleep+set}" = set; then :
22713   $as_echo_n "(cached) " >&6
22714 else
22715   ac_func_search_save_LIBS=$LIBS
22716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717 /* end confdefs.h.  */
22718
22719 /* Override any GCC internal prototype to avoid an error.
22720    Use char because int might match the return type of a GCC
22721    builtin and then its argument prototype would still apply.  */
22722 #ifdef __cplusplus
22723 extern "C"
22724 #endif
22725 char nanosleep ();
22726 int
22727 main ()
22728 {
22729 return nanosleep ();
22730   ;
22731   return 0;
22732 }
22733 _ACEOF
22734 for ac_lib in '' rt; do
22735   if test -z "$ac_lib"; then
22736     ac_res="none required"
22737   else
22738     ac_res=-l$ac_lib
22739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22740   fi
22741   if ac_fn_c_try_link "$LINENO"; then :
22742   ac_cv_search_nanosleep=$ac_res
22743 fi
22744 rm -f core conftest.err conftest.$ac_objext \
22745     conftest$ac_exeext
22746   if test "${ac_cv_search_nanosleep+set}" = set; then :
22747   break
22748 fi
22749 done
22750 if test "${ac_cv_search_nanosleep+set}" = set; then :
22751
22752 else
22753   ac_cv_search_nanosleep=no
22754 fi
22755 rm conftest.$ac_ext
22756 LIBS=$ac_func_search_save_LIBS
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22759 $as_echo "$ac_cv_search_nanosleep" >&6; }
22760 ac_res=$ac_cv_search_nanosleep
22761 if test "$ac_res" != no; then :
22762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22763
22764 fi
22765
22766           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22767 $as_echo_n "checking for libwrap... " >&6; }
22768           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h.  */
22770
22771                #include <sys/types.h>
22772                #include <tcpd.h>
22773                int deny_severity = 0;
22774                int allow_severity = 0;
22775                struct request_info *req;
22776
22777 int
22778 main ()
22779 {
22780
22781                 hosts_access(req);
22782
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 if ac_fn_c_try_link "$LINENO"; then :
22788
22789                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790 $as_echo "yes" >&6; }
22791
22792 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22793
22794                  TCPW_MSG="yes"
22795                  LIBS="$saved_LIBS"
22796                  WRAPLIBS="-lwrap"
22797
22798 else
22799
22800                  LIBS="$saved_LIBS -lwrap -lnsl"
22801                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22802                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h.  */
22804
22805                        #include <sys/types.h>
22806                        #include <tcpd.h>
22807                        int deny_severity = 0;
22808                        int allow_severity = 0;
22809                        struct request_info *req;
22810
22811 int
22812 main ()
22813 {
22814
22815                        hosts_access(req);
22816
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 if ac_fn_c_try_link "$LINENO"; then :
22822
22823                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22824 $as_echo "yes" >&6; }
22825
22826 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22827
22828                       TCPW_MSG="yes"
22829                       LIBS="$saved_LIBS"
22830                       WRAPLIBS="-lwrap"
22831
22832 else
22833
22834                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22835
22836
22837 fi
22838 rm -f core conftest.err conftest.$ac_objext \
22839     conftest$ac_exeext conftest.$ac_ext
22840
22841
22842 fi
22843 rm -f core conftest.err conftest.$ac_objext \
22844     conftest$ac_exeext conftest.$ac_ext
22845        fi
22846
22847
22848 fi
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22852 $as_echo_n "checking for OpenSSL... " >&6; }
22853
22854 # Check whether --with-openssl was given.
22855 if test "${with_openssl+set}" = set; then :
22856   withval=$with_openssl;
22857         with_openssl_directory=${withval}
22858
22859
22860 fi
22861
22862
22863 if test "x$with_openssl_directory" != "xno"; then
22864    OPENSSL_LIBS="-lssl -lcrypto"
22865    OPENSSL_INC=""
22866
22867    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22868       #
22869       # Make sure the $with_openssl_directory also makes sense
22870       #
22871       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22872          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22873          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22874       fi
22875    fi
22876
22877    saved_LIBS="${LIBS}"
22878    saved_CFLAGS="${CFLAGS}"
22879    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22880    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22881
22882    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h.  */
22884
22885           #include <openssl/ssl.h>
22886
22887 int
22888 main ()
22889 {
22890
22891            CRYPTO_set_id_callback(NULL);
22892
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 if ac_fn_c_try_link "$LINENO"; then :
22898
22899           support_tls="yes"
22900           support_crypto="yes"
22901
22902 else
22903
22904           support_tls="no"
22905           support_crypto="no"
22906
22907
22908 fi
22909 rm -f core conftest.err conftest.$ac_objext \
22910     conftest$ac_exeext conftest.$ac_ext
22911
22912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h.  */
22914
22915           #include <openssl/evp.h>
22916
22917 int
22918 main ()
22919 {
22920
22921           EVP_sha512();
22922
22923   ;
22924   return 0;
22925 }
22926 _ACEOF
22927 if ac_fn_c_try_link "$LINENO"; then :
22928
22929           ac_cv_openssl_sha2="yes"
22930
22931 else
22932
22933           ac_cv_openssl_sha2="no"
22934
22935
22936 fi
22937 rm -f core conftest.err conftest.$ac_objext \
22938     conftest$ac_exeext conftest.$ac_ext
22939
22940                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h.  */
22942
22943           #include <openssl/evp.h>
22944
22945 int
22946 main ()
22947 {
22948
22949           EVP_aes_192_cbc();
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956
22957           ac_cv_openssl_export="no"
22958
22959 else
22960
22961           ac_cv_openssl_export="yes"
22962
22963
22964 fi
22965 rm -f core conftest.err conftest.$ac_objext \
22966     conftest$ac_exeext conftest.$ac_ext
22967
22968    if test "$support_tls" = "yes"; then
22969
22970 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22971
22972
22973 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22974
22975
22976 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22977
22978    fi
22979
22980    if test "$ac_cv_openssl_sha2" = "yes"; then
22981
22982 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22983
22984    fi
22985
22986    if test "$ac_cv_openssl_export" = "yes"; then
22987
22988 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22989
22990    fi
22991
22992    if test "$support_crypto" = "yes"; then
22993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22994 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22995 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22996   $as_echo_n "(cached) " >&6
22997 else
22998   ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-lcrypto  $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h.  */
23002
23003 /* Override any GCC internal prototype to avoid an error.
23004    Use char because int might match the return type of a GCC
23005    builtin and then its argument prototype would still apply.  */
23006 #ifdef __cplusplus
23007 extern "C"
23008 #endif
23009 char EVP_PKEY_encrypt_old ();
23010 int
23011 main ()
23012 {
23013 return EVP_PKEY_encrypt_old ();
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 if ac_fn_c_try_link "$LINENO"; then :
23019   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23020 else
23021   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23022 fi
23023 rm -f core conftest.err conftest.$ac_objext \
23024     conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23026 fi
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23028 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23029 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23030
23031 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23032
23033 fi
23034
23035    fi
23036
23037    LIBS="${saved_LIBS}"
23038    CFLAGS="${saved_CFLAGS}"
23039 else
23040    support_tls="no"
23041    support_crypto="no"
23042    OPENSSL_LIBS=""
23043    OPENSSL_INC=""
23044 fi
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23046 $as_echo "$support_tls" >&6; }
23047
23048 if test "$support_tls" = "no"; then
23049    OPENSSL_LIBS=""
23050    OPENSSL_INC=""
23051 fi
23052 if test "$support_crypto" = "no"; then
23053    OPENSSL_LIBS=""
23054    OPENSSL_INC=""
23055 fi
23056
23057
23058
23059
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23061 $as_echo_n "checking for library containing dlopen... " >&6; }
23062 if test "${ac_cv_search_dlopen+set}" = set; then :
23063   $as_echo_n "(cached) " >&6
23064 else
23065   ac_func_search_save_LIBS=$LIBS
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h.  */
23068
23069 /* Override any GCC internal prototype to avoid an error.
23070    Use char because int might match the return type of a GCC
23071    builtin and then its argument prototype would still apply.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 char dlopen ();
23076 int
23077 main ()
23078 {
23079 return dlopen ();
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 for ac_lib in '' dl; do
23085   if test -z "$ac_lib"; then
23086     ac_res="none required"
23087   else
23088     ac_res=-l$ac_lib
23089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23090   fi
23091   if ac_fn_c_try_link "$LINENO"; then :
23092   ac_cv_search_dlopen=$ac_res
23093 fi
23094 rm -f core conftest.err conftest.$ac_objext \
23095     conftest$ac_exeext
23096   if test "${ac_cv_search_dlopen+set}" = set; then :
23097   break
23098 fi
23099 done
23100 if test "${ac_cv_search_dlopen+set}" = set; then :
23101
23102 else
23103   ac_cv_search_dlopen=no
23104 fi
23105 rm conftest.$ac_ext
23106 LIBS=$ac_func_search_save_LIBS
23107 fi
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23109 $as_echo "$ac_cv_search_dlopen" >&6; }
23110 ac_res=$ac_cv_search_dlopen
23111 if test "$ac_res" != no; then :
23112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23113
23114 fi
23115
23116
23117 working_dir=`eval echo ${prefix}/var/bacula/working`
23118
23119 # Check whether --with-working-dir was given.
23120 if test "${with_working_dir+set}" = set; then :
23121   withval=$with_working_dir;
23122        if test "x$withval" != "xno" ; then
23123          working_dir=$withval
23124        fi
23125
23126
23127 fi
23128
23129
23130
23131
23132 archivedir=/tmp
23133
23134 # Check whether --with-archivedir was given.
23135 if test "${with_archivedir+set}" = set; then :
23136   withval=$with_archivedir;
23137        if test "x$withval" != "xno" ; then
23138           archivedir=$withval
23139        fi
23140
23141
23142 fi
23143
23144
23145
23146
23147 basename=`hostname`
23148
23149 # Check whether --with-basename was given.
23150 if test "${with_basename+set}" = set; then :
23151   withval=$with_basename;
23152        if test "x$withval" != "xno" ; then
23153           basename=$withval
23154        fi
23155
23156
23157 fi
23158
23159
23160
23161
23162 hostname=`uname -n | cut -d '.' -f 1`
23163 if test x${hostname} = x ; then
23164   hostname="localhost"
23165 fi
23166
23167 # Check whether --with-hostname was given.
23168 if test "${with_hostname+set}" = set; then :
23169   withval=$with_hostname;
23170        if test "x$withval" != "xno" ; then
23171          hostname=$withval
23172        fi
23173
23174
23175 fi
23176
23177
23178
23179
23180
23181 scriptdir=`eval echo ${sysconfdir}`
23182
23183 # Check whether --with-scriptdir was given.
23184 if test "${with_scriptdir+set}" = set; then :
23185   withval=$with_scriptdir;
23186        if test "x$withval" != "xno" ; then
23187           scriptdir=$withval
23188        fi
23189
23190
23191 fi
23192
23193
23194
23195
23196
23197 bsrdir=/tmp
23198
23199 # Check whether --with-bsrdir was given.
23200 if test "${with_bsrdir+set}" = set; then :
23201   withval=$with_bsrdir;
23202        if test "x$withval" != "xno" ; then
23203           bsrdir=$withval
23204        fi
23205
23206
23207 fi
23208
23209
23210
23211
23212 logdir=/tmp
23213
23214 # Check whether --with-logdir was given.
23215 if test "${with_logdir+set}" = set; then :
23216   withval=$with_logdir;
23217        if test "x$withval" != "xno" ; then
23218           logdir=$withval
23219        fi
23220
23221
23222 fi
23223
23224
23225
23226
23227
23228 # ------------------------------------------
23229 # Where to place plugindir (plugin files)
23230 # ------------------------------------------
23231 plugindir=`eval echo ${libdir}`
23232
23233 # Check whether --with-plugindir was given.
23234 if test "${with_plugindir+set}" = set; then :
23235   withval=$with_plugindir;
23236        if test "x$withval" != "xno" ; then
23237           plugindir=$withval
23238        fi
23239
23240
23241 fi
23242
23243
23244
23245
23246 dump_email=root@localhost
23247
23248 # Check whether --with-dump-email was given.
23249 if test "${with_dump_email+set}" = set; then :
23250   withval=$with_dump_email;
23251        if test "x$withval" != "xno" ; then
23252           dump_email=$withval
23253        fi
23254
23255
23256 fi
23257
23258
23259
23260
23261 job_email=root@localhost
23262
23263 # Check whether --with-job-email was given.
23264 if test "${with_job_email+set}" = set; then :
23265   withval=$with_job_email;
23266        if test "x$withval" != "xno" ; then
23267           job_email=$withval
23268        fi
23269
23270
23271 fi
23272
23273
23274
23275
23276 smtp_host=localhost
23277
23278 # Check whether --with-smtp_host was given.
23279 if test "${with_smtp_host+set}" = set; then :
23280   withval=$with_smtp_host;
23281        if test "x$withval" != "xno" ; then
23282           smtp_host=$withval
23283        fi
23284
23285
23286 fi
23287
23288
23289
23290
23291 piddir=/var/run
23292
23293 # Check whether --with-pid-dir was given.
23294 if test "${with_pid_dir+set}" = set; then :
23295   withval=$with_pid_dir;
23296        if test "x$withval" != "xno" ; then
23297           piddir=$withval
23298        fi
23299
23300
23301 fi
23302
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define _PATH_BACULA_PIDDIR "$piddir"
23306 _ACEOF
23307
23308
23309
23310 subsysdir=/var/run/subsys
23311 if test -d /var/run/subsys; then
23312    subsysdir=/var/run/subsys
23313 elif test -d /var/lock/subsys; then
23314    subsysdir=/var/lock/subsys
23315 else
23316    subsysdir=/var/run/subsys
23317 fi
23318
23319 # Check whether --with-subsys-dir was given.
23320 if test "${with_subsys_dir+set}" = set; then :
23321   withval=$with_subsys_dir;
23322        if test "x$withval" != "xno" ; then
23323           subsysdir=$withval
23324        fi
23325
23326
23327 fi
23328
23329
23330
23331
23332 baseport=9101
23333
23334 # Check whether --with-baseport was given.
23335 if test "${with_baseport+set}" = set; then :
23336   withval=$with_baseport;
23337        if test "x$withval" != "xno" ; then
23338           baseport=$withval
23339        fi
23340
23341
23342 fi
23343
23344
23345
23346 dir_port=`expr $baseport`
23347 fd_port=`expr $baseport + 1`
23348 sd_port=`expr $fd_port + 1`
23349
23350
23351
23352
23353
23354 dir_password=
23355
23356 # Check whether --with-dir-password was given.
23357 if test "${with_dir_password+set}" = set; then :
23358   withval=$with_dir_password;
23359        if test "x$withval" != "xno" ; then
23360           dir_password=$withval
23361        fi
23362
23363
23364 fi
23365
23366
23367 if test "x$dir_password" = "x" ; then
23368    if test "x$OPENSSL" = "xnone" ; then
23369       key=`autoconf/randpass 33`
23370    else
23371       key=`openssl rand -base64 33`
23372    fi
23373    dir_password=$key
23374 fi
23375
23376 fd_password=
23377
23378 # Check whether --with-fd-password was given.
23379 if test "${with_fd_password+set}" = set; then :
23380   withval=$with_fd_password;
23381        if test "x$withval" != "xno" ; then
23382           fd_password=$withval
23383        fi
23384
23385
23386 fi
23387
23388
23389 if test "x$fd_password" = "x" ; then
23390    if test "x$OPENSSL" = "xnone" ; then
23391       key=`autoconf/randpass 37`
23392    else
23393       key=`openssl rand -base64 33`
23394    fi
23395    fd_password=$key
23396 fi
23397
23398 sd_password=
23399
23400 # Check whether --with-sd-password was given.
23401 if test "${with_sd_password+set}" = set; then :
23402   withval=$with_sd_password;
23403        if test "x$withval" != "xno" ; then
23404           sd_password=$withval
23405        fi
23406
23407
23408 fi
23409
23410
23411 if test "x$sd_password" = "x" ; then
23412    if test "x$OPENSSL" = "xnone" ; then
23413       key=`autoconf/randpass 41`
23414    else
23415       key=`openssl rand -base64 33`
23416    fi
23417    sd_password=$key
23418 fi
23419
23420 mon_dir_password=
23421
23422 # Check whether --with-mon-dir-password was given.
23423 if test "${with_mon_dir_password+set}" = set; then :
23424   withval=$with_mon_dir_password;
23425        if test "x$withval" != "xno" ; then
23426           mon_dir_password=$withval
23427        fi
23428
23429
23430 fi
23431
23432
23433 if test "x$mon_dir_password" = "x" ; then
23434    if test "x$OPENSSL" = "xnone" ; then
23435       key=`autoconf/randpass 33`
23436    else
23437       key=`openssl rand -base64 33`
23438    fi
23439    mon_dir_password=$key
23440 fi
23441
23442 mon_fd_password=
23443
23444 # Check whether --with-mon-fd-password was given.
23445 if test "${with_mon_fd_password+set}" = set; then :
23446   withval=$with_mon_fd_password;
23447        if test "x$withval" != "xno" ; then
23448           mon_fd_password=$withval
23449        fi
23450
23451
23452 fi
23453
23454
23455 if test "x$mon_fd_password" = "x" ; then
23456    if test "x$OPENSSL" = "xnone" ; then
23457       key=`autoconf/randpass 37`
23458    else
23459       key=`openssl rand -base64 33`
23460    fi
23461    mon_fd_password=$key
23462 fi
23463
23464 mon_sd_password=
23465
23466 # Check whether --with-mon-sd-password was given.
23467 if test "${with_mon_sd_password+set}" = set; then :
23468   withval=$with_mon_sd_password;
23469        if test "x$withval" != "xno" ; then
23470           mon_sd_password=$withval
23471        fi
23472
23473
23474 fi
23475
23476
23477 if test "x$mon_sd_password" = "x" ; then
23478    if test "x$OPENSSL" = "xnone" ; then
23479       key=`autoconf/randpass 41`
23480    else
23481       key=`openssl rand -base64 33`
23482    fi
23483    mon_sd_password=$key
23484 fi
23485
23486
23487
23488
23489
23490
23491
23492
23493 db_name=bacula
23494
23495 # Check whether --with-db_name was given.
23496 if test "${with_db_name+set}" = set; then :
23497   withval=$with_db_name;
23498        if test "x$withval" != "x" ; then
23499           db_name=$withval
23500        fi
23501
23502
23503 fi
23504
23505
23506
23507 db_user=bacula
23508
23509 # Check whether --with-db_user was given.
23510 if test "${with_db_user+set}" = set; then :
23511   withval=$with_db_user;
23512        if test "x$withval" != "x" ; then
23513           db_user=$withval
23514        fi
23515
23516
23517 fi
23518
23519
23520
23521 db_password=
23522
23523 # Check whether --with-db_password was given.
23524 if test "${with_db_password+set}" = set; then :
23525   withval=$with_db_password;
23526        if test "x$withval" != "x" ; then
23527           db_password=$withval
23528        fi
23529
23530
23531 fi
23532
23533
23534
23535 db_port=" "
23536
23537 # Check whether --with-db_port was given.
23538 if test "${with_db_port+set}" = set; then :
23539   withval=$with_db_port;
23540        if test "x$withval" != "x" ; then
23541           db_port=$withval
23542        fi
23543
23544
23545 fi
23546
23547
23548
23549 #
23550 # Handle users and groups for each daemon
23551 #
23552 dir_user=
23553
23554 # Check whether --with-dir_user was given.
23555 if test "${with_dir_user+set}" = set; then :
23556   withval=$with_dir_user;
23557        if test "x$withval" != "x" ; then
23558            dir_user=$withval
23559        fi
23560
23561
23562 fi
23563
23564
23565 dir_group=
23566
23567 # Check whether --with-dir_group was given.
23568 if test "${with_dir_group+set}" = set; then :
23569   withval=$with_dir_group;
23570        if test "x$withval" != "x" ; then
23571           dir_group=$withval
23572        fi
23573
23574
23575 fi
23576
23577
23578 sd_user=
23579
23580 # Check whether --with-sd_user was given.
23581 if test "${with_sd_user+set}" = set; then :
23582   withval=$with_sd_user;
23583        if test "x$withval" != "x" ; then
23584           sd_user=$withval
23585        fi
23586
23587
23588 fi
23589
23590
23591 sd_group=
23592
23593 # Check whether --with-sd_group was given.
23594 if test "${with_sd_group+set}" = set; then :
23595   withval=$with_sd_group;
23596        if test "x$withval" != "x" ; then
23597           sd_group=$withval
23598        fi
23599
23600
23601 fi
23602
23603
23604 fd_user=
23605
23606 # Check whether --with-fd_user was given.
23607 if test "${with_fd_user+set}" = set; then :
23608   withval=$with_fd_user;
23609        if test "x$withval" != "x" ; then
23610           fd_user=$withval
23611        fi
23612
23613
23614 fi
23615
23616
23617 fd_group=
23618
23619 # Check whether --with-fd_group was given.
23620 if test "${with_fd_group+set}" = set; then :
23621   withval=$with_fd_group;
23622        if test "x$withval" != "x" ; then
23623           fd_group=$withval
23624        fi
23625
23626
23627 fi
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637 SBINPERM=0750
23638
23639 # Check whether --with-sbin-perm was given.
23640 if test "${with_sbin_perm+set}" = set; then :
23641   withval=$with_sbin_perm;
23642        if test "x$withval" != "x" ; then
23643           SBINPERM=$withval
23644        fi
23645
23646
23647 fi
23648
23649
23650
23651
23652
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23654 $as_echo_n "checking for PostgreSQL support... " >&6; }
23655
23656 # Check whether --with-postgresql was given.
23657 if test "${with_postgresql+set}" = set; then :
23658   withval=$with_postgresql;
23659   if test "$withval" != "no"; then
23660       if test "$withval" = "yes"; then
23661           PG_CONFIG=`which pg_config`
23662           if test -n "$PG_CONFIG"; then
23663               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23664               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23665               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23666           elif test -f /usr/local/include/libpq-fe.h; then
23667               POSTGRESQL_INCDIR=/usr/local/include
23668               if test -d /usr/local/lib64; then
23669                  POSTGRESQL_LIBDIR=/usr/local/lib64
23670               else
23671                  POSTGRESQL_LIBDIR=/usr/local/lib
23672               fi
23673               POSTGRESQL_BINDIR=/usr/local/bin
23674           elif test -f /usr/include/libpq-fe.h; then
23675               POSTGRESQL_INCDIR=/usr/include
23676               if test -d /usr/lib64; then
23677                  POSTGRESQL_LIBDIR=/usr/lib64
23678               else
23679                  POSTGRESQL_LIBDIR=/usr/lib
23680               fi
23681               POSTGRESQL_BINDIR=/usr/bin
23682           elif test -f /usr/include/pgsql/libpq-fe.h; then
23683               POSTGRESQL_INCDIR=/usr/include/pgsql
23684               if test -d /usr/lib64/pgsql; then
23685                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23686               else
23687                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23688               fi
23689               POSTGRESQL_BINDIR=/usr/bin
23690           elif test -f /usr/include/postgresql/libpq-fe.h; then
23691               POSTGRESQL_INCDIR=/usr/include/postgresql
23692               if test -d /usr/lib64/postgresql; then
23693                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23694               else
23695                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23696               fi
23697               POSTGRESQL_BINDIR=/usr/bin
23698           else
23699               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23700 $as_echo "no" >&6; }
23701               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23702           fi
23703       elif test -f $withval/include/libpq-fe.h; then
23704           POSTGRESQL_INCDIR=$withval/include
23705           POSTGRESQL_LIBDIR=$withval/lib
23706           POSTGRESQL_BINDIR=$withval/bin
23707       elif test -f $withval/include/postgresql/libpq-fe.h; then
23708           POSTGRESQL_INCDIR=$withval/include/postgresql
23709           if test -d $withval/lib64; then
23710               POSTGRESQL_LIBDIR=$withval/lib64
23711           else
23712               POSTGRESQL_LIBDIR=$withval/lib
23713           fi
23714           POSTGRESQL_BINDIR=$withval/bin
23715       else
23716           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23717 $as_echo "no" >&6; }
23718           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23719       fi
23720
23721 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23722
23723      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23725
23726      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23727      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23728      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23729 if test "x$ac_cv_func_crypt" = x""yes; then :
23730
23731 else
23732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23733 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23734 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23735   $as_echo_n "(cached) " >&6
23736 else
23737   ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lcrypt  $LIBS"
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h.  */
23741
23742 /* Override any GCC internal prototype to avoid an error.
23743    Use char because int might match the return type of a GCC
23744    builtin and then its argument prototype would still apply.  */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char crypt ();
23749 int
23750 main ()
23751 {
23752 return crypt ();
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 if ac_fn_c_try_link "$LINENO"; then :
23758   ac_cv_lib_crypt_crypt=yes
23759 else
23760   ac_cv_lib_crypt_crypt=no
23761 fi
23762 rm -f core conftest.err conftest.$ac_objext \
23763     conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23765 fi
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23767 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23768 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23769   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23770 fi
23771
23772 fi
23773
23774      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23775      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23776
23777      if test -z "${db_backends}"; then
23778          db_backends="PostgreSQL"
23779      else
23780          db_backends="${db_backends} PostgreSQL"
23781      fi
23782      if test -z "${DB_BACKENDS}"; then
23783          DB_BACKENDS="postgresql"
23784      else
23785          DB_BACKENDS="${DB_BACKENDS} postgresql"
23786      fi
23787   else
23788      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23790   fi
23791
23792 else
23793
23794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23796
23797 fi
23798
23799
23800
23801
23802
23803
23804
23805
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23807 $as_echo_n "checking for MySQL support... " >&6; }
23808
23809 # Check whether --with-mysql was given.
23810 if test "${with_mysql+set}" = set; then :
23811   withval=$with_mysql;
23812   if test "$withval" != "no"; then
23813         if test "$withval" = "yes"; then
23814            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23815                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23816                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23817                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23818                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23819                    else
23820                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23821                    fi
23822                    MYSQL_BINDIR=/usr/local/mysql/bin
23823            elif test -f /usr/include/mysql/mysql.h; then
23824                    MYSQL_INCDIR=/usr/include/mysql
23825                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23826                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23827                            MYSQL_LIBDIR=/usr/lib64/mysql
23828                    elif test -f /usr/lib64/libmysqlclient_r.a \
23829                         -o -f /usr/lib64/libmysqlclient_r.so; then
23830                            MYSQL_LIBDIR=/usr/lib64
23831                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23832                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23833                            MYSQL_LIBDIR=/usr/lib/mysql
23834                    else
23835                            MYSQL_LIBDIR=/usr/lib
23836                    fi
23837                    MYSQL_BINDIR=/usr/bin
23838            elif test -f /usr/include/mysql.h; then
23839                    MYSQL_INCDIR=/usr/include
23840                    if test -f /usr/lib64/libmysqlclient_r.a \
23841                         -o -f /usr/lib64/libmysqlclient_r.so; then
23842                            MYSQL_LIBDIR=/usr/lib64
23843                    else
23844                            MYSQL_LIBDIR=/usr/lib
23845                    fi
23846                    MYSQL_BINDIR=/usr/bin
23847            elif test -f /usr/local/include/mysql/mysql.h; then
23848                    MYSQL_INCDIR=/usr/local/include/mysql
23849                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23850                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23851                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23852                    else
23853                            MYSQL_LIBDIR=/usr/local/lib/mysql
23854                    fi
23855                    MYSQL_BINDIR=/usr/local/bin
23856            elif test -f /usr/local/include/mysql.h; then
23857                    MYSQL_INCDIR=/usr/local/include
23858                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23859                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23860                            MYSQL_LIBDIR=/usr/local/lib64
23861                    else
23862                            MYSQL_LIBDIR=/usr/local/lib
23863                    fi
23864                    MYSQL_BINDIR=/usr/local/bin
23865            else
23866               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23867 $as_echo "no" >&6; }
23868               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23869            fi
23870         else
23871            if test -f $withval/include/mysql/mysql.h; then
23872               MYSQL_INCDIR=$withval/include/mysql
23873               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23874                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23875                  MYSQL_LIBDIR=$withval/lib64/mysql
23876               elif test -f $withval/lib64/libmysqlclient_r.a \
23877                    -o -f $withval/lib64/libmysqlclient_r.so; then
23878                  MYSQL_LIBDIR=$withval/lib64
23879               elif test -f $withval/lib/libmysqlclient_r.a \
23880                    -o -f $withval/lib/libmysqlclient_r.so; then
23881                  MYSQL_LIBDIR=$withval/lib
23882               else
23883                  MYSQL_LIBDIR=$withval/lib/mysql
23884               fi
23885               MYSQL_BINDIR=$withval/bin
23886            elif test -f $withval/include/mysql.h; then
23887               MYSQL_INCDIR=$withval/include
23888               if test -f $withval/lib64/libmysqlclient_r.a \
23889                    -o -f $withval/lib64/libmysqlclient_r.so; then
23890                  MYSQL_LIBDIR=$withval/lib64
23891               else
23892                  MYSQL_LIBDIR=$withval/lib
23893               fi
23894               MYSQL_BINDIR=$withval/bin
23895            else
23896               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23898               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23899            fi
23900         fi
23901      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23902      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23903           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23904         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23905
23906 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23907
23908         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23909      fi
23910      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23911
23912
23913 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23914
23915      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23916 $as_echo "yes" >&6; }
23917
23918      if test -z "${db_backends}" ; then
23919          db_backends="MySQL"
23920      else
23921          db_backends="${db_backends} MySQL"
23922      fi
23923      if test -z "${DB_BACKENDS}" ; then
23924          DB_BACKENDS="mysql"
23925      else
23926          DB_BACKENDS="${DB_BACKENDS} mysql"
23927      fi
23928   else
23929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23931   fi
23932
23933
23934 fi
23935
23936
23937
23938 # Check whether --with-embedded-mysql was given.
23939 if test "${with_embedded_mysql+set}" = set; then :
23940   withval=$with_embedded_mysql;
23941   if test "$withval" != "no"; then
23942         if test "$withval" = "yes"; then
23943                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23944                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23945                         if test -d /usr/local/mysql/lib64/mysql; then
23946                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23947                         else
23948                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23949                         fi
23950                         MYSQL_BINDIR=/usr/local/mysql/bin
23951                 elif test -f /usr/include/mysql/mysql.h; then
23952                         MYSQL_INCDIR=/usr/include/mysql
23953                         if test -d /usr/lib64/mysql; then
23954                                 MYSQL_LIBDIR=/usr/lib64/mysql
23955                         else
23956                                 MYSQL_LIBDIR=/usr/lib/mysql
23957                         fi
23958                         MYSQL_BINDIR=/usr/bin
23959                 elif test -f /usr/include/mysql.h; then
23960                         MYSQL_INCDIR=/usr/include
23961                         if test -d /usr/lib64; then
23962                                 MYSQL_LIBDIR=/usr/lib64
23963                         else
23964                                 MYSQL_LIBDIR=/usr/lib
23965                         fi
23966                         MYSQL_BINDIR=/usr/bin
23967                 elif test -f /usr/local/include/mysql/mysql.h; then
23968                         MYSQL_INCDIR=/usr/local/include/mysql
23969                         if test -d /usr/local/lib64/mysql; then
23970                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23971                         else
23972                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23973                         fi
23974                         MYSQL_BINDIR=/usr/local/bin
23975                 elif test -f /usr/local/include/mysql.h; then
23976                         MYSQL_INCDIR=/usr/local/include
23977                         if test -d /usr/local/lib64; then
23978                                 MYSQL_LIBDIR=/usr/local/lib64
23979                         else
23980                                 MYSQL_LIBDIR=/usr/local/lib
23981                         fi
23982                         MYSQL_BINDIR=/usr/local/bin
23983                 else
23984                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23985 $as_echo "no" >&6; }
23986                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23987                 fi
23988         else
23989                 if test -f $withval/include/mysql/mysql.h; then
23990                         MYSQL_INCDIR=$withval/include/mysql
23991                         if test -d $withval/lib64/mysql; then
23992                                 MYSQL_LIBDIR=$withval/lib64/mysql
23993                         else
23994                                 MYSQL_LIBDIR=$withval/lib/mysql
23995                         fi
23996                         MYSQL_BINDIR=$withval/bin
23997                 elif test -f $withval/include/mysql.h; then
23998                         MYSQL_INCDIR=$withval/include
23999                         if test -d $withval/lib64; then
24000                                 MYSQL_LIBDIR=$withval/lib64
24001                         else
24002                                 MYSQL_LIBDIR=$withval/lib
24003                         fi
24004                         MYSQL_BINDIR=$withval/bin
24005                 else
24006                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24009                 fi
24010         fi
24011      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24012      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24013      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24014      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24015
24016
24017 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24018
24019
24020 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24021
24022      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24023 $as_echo "yes" >&6; }
24024
24025      if test -z "${db_backends}"; then
24026          db_backends="MySQL"
24027      else
24028          db_backends="${db_backends} MySQL"
24029      fi
24030      if test -z "${DB_BACKENDS}"; then
24031          DB_BACKENDS="mysql"
24032      else
24033          DB_BACKENDS="${DB_BACKENDS} mysql"
24034      fi
24035   else
24036      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24037 $as_echo "no" >&6; }
24038   fi
24039
24040
24041 fi
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24052 $as_echo_n "checking for SQLite3 support... " >&6; }
24053
24054 # Check whether --with-sqlite3 was given.
24055 if test "${with_sqlite3+set}" = set; then :
24056   withval=$with_sqlite3;
24057   if test "$withval" != "no"; then
24058      if test "$withval" = "yes"; then
24059         if test -f /usr/local/include/sqlite3.h; then
24060            SQLITE_INCDIR=/usr/local/include
24061            if test -d /usr/local/lib64; then
24062               SQLITE_LIBDIR=/usr/local/lib64
24063            else
24064               SQLITE_LIBDIR=/usr/local/lib
24065            fi
24066            SQLITE_BINDIR=/usr/local/bin
24067         elif test -f /usr/include/sqlite3.h; then
24068            SQLITE_INCDIR=/usr/include
24069            if test -d /usr/lib64; then
24070               SQLITE_LIBDIR=/usr/lib64
24071            else
24072               SQLITE_LIBDIR=/usr/lib
24073            fi
24074            SQLITE_BINDIR=/usr/bin
24075         elif test -f $prefix/include/sqlite3.h; then
24076            SQLITE_INCDIR=$prefix/include
24077            if test -d $prefix/lib64; then
24078               SQLITE_LIBDIR=$prefix/lib64
24079            else
24080               SQLITE_LIBDIR=$prefix/lib
24081            fi
24082            SQLITE_BINDIR=$prefix/bin
24083         else
24084            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24085 $as_echo "no" >&6; }
24086            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24087         fi
24088      else
24089         if test -f $withval/sqlite3.h; then
24090            SQLITE_INCDIR=$withval
24091            SQLITE_LIBDIR=$withval
24092            SQLITE_BINDIR=$withval
24093         elif test -f $withval/include/sqlite3.h; then
24094            SQLITE_INCDIR=$withval/include
24095            if test -d $withval/lib64; then
24096               SQLITE_LIBDIR=$withval/lib64
24097            else
24098               SQLITE_LIBDIR=$withval/lib
24099            fi
24100            SQLITE_BINDIR=$withval/bin
24101         else
24102            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24104            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24105         fi
24106      fi
24107      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24108      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24109      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24110      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24111
24112
24113 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24114
24115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24116 $as_echo "yes" >&6; }
24117
24118      if test -z "${db_backends}"; then
24119          db_backends="SQLite3"
24120      else
24121          db_backends="${db_backends} SQLite3"
24122      fi
24123      if test -z "${DB_BACKENDS}"; then
24124          DB_BACKENDS="sqlite3"
24125      else
24126          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24127      fi
24128   else
24129      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24131   fi
24132
24133 else
24134
24135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24136 $as_echo "no" >&6; }
24137
24138 fi
24139
24140
24141
24142
24143
24144
24145
24146 #BA_CHECK_INGRES_DB
24147
24148 #BA_CHECK_DBI_DB
24149
24150 #BA_CHECK_DBI_DRIVER
24151
24152 if test "x${db_backends}" = "x" ; then
24153    echo " "
24154    echo " "
24155    echo "You have not specified either --enable-client-only or one of the"
24156    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24157    echo "This is not permitted. Please reconfigure."
24158    echo " "
24159    echo "Aborting the configuration ..."
24160    echo " "
24161    echo " "
24162    exit 1
24163 fi
24164
24165 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24166    1)
24167       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24168       if test x$use_libtool = xno; then
24169          SHARED_CATALOG_TARGETS=""
24170       else
24171          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24172       fi
24173       ;;
24174    *)
24175                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24176
24177                         if test x$use_libtool = xno; then
24178          echo " "
24179          echo " "
24180          echo "You have specified two or more of the"
24181          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24182          echo "This is not permitted when not using libtool Please reconfigure."
24183          echo " "
24184          echo "Aborting the configuration ..."
24185          echo " "
24186          echo " "
24187          exit 1
24188       fi
24189
24190       SHARED_CATALOG_TARGETS=""
24191       for db_type in ${DB_BACKENDS}
24192       do
24193          if test -z "${SHARED_CATALOG_TARGETS}"; then
24194             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24195          else
24196             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24197          fi
24198       done
24199       ;;
24200 esac
24201
24202 if test x$use_libtool = xyes; then
24203    DB_LIBS=""
24204 fi
24205
24206
24207
24208
24209
24210
24211 support_batch_insert=yes
24212 # Check whether --enable-batch-insert was given.
24213 if test "${enable_batch_insert+set}" = set; then :
24214   enableval=$enable_batch_insert;
24215        if test x$enableval = xno; then
24216           support_batch_insert=no
24217        fi
24218
24219
24220 fi
24221
24222
24223 if test x$support_batch_insert = xyes; then
24224
24225 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24226
24227 fi
24228
24229 if test ! -z "$MYSQL_LIB"; then
24230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24231 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24232 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
24233   $as_echo_n "(cached) " >&6
24234 else
24235   ac_check_lib_save_LIBS=$LIBS
24236 LIBS="-lmysql_r  $LIBS"
24237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24238 /* end confdefs.h.  */
24239
24240 /* Override any GCC internal prototype to avoid an error.
24241    Use char because int might match the return type of a GCC
24242    builtin and then its argument prototype would still apply.  */
24243 #ifdef __cplusplus
24244 extern "C"
24245 #endif
24246 char mysql_thread_safe ();
24247 int
24248 main ()
24249 {
24250 return mysql_thread_safe ();
24251   ;
24252   return 0;
24253 }
24254 _ACEOF
24255 if ac_fn_c_try_link "$LINENO"; then :
24256   ac_cv_lib_mysql_r_mysql_thread_safe=yes
24257 else
24258   ac_cv_lib_mysql_r_mysql_thread_safe=no
24259 fi
24260 rm -f core conftest.err conftest.$ac_objext \
24261     conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24265 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24266 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
24267
24268 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24269
24270 fi
24271
24272 fi
24273
24274 if test ! -z "SQLITE_LIB"; then
24275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24276 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24277 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24278   $as_echo_n "(cached) " >&6
24279 else
24280   ac_check_lib_save_LIBS=$LIBS
24281 LIBS="-lsqlite3  $LIBS"
24282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24283 /* end confdefs.h.  */
24284
24285 /* Override any GCC internal prototype to avoid an error.
24286    Use char because int might match the return type of a GCC
24287    builtin and then its argument prototype would still apply.  */
24288 #ifdef __cplusplus
24289 extern "C"
24290 #endif
24291 char sqlite3_threadsafe ();
24292 int
24293 main ()
24294 {
24295 return sqlite3_threadsafe ();
24296   ;
24297   return 0;
24298 }
24299 _ACEOF
24300 if ac_fn_c_try_link "$LINENO"; then :
24301   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24302 else
24303   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24304 fi
24305 rm -f core conftest.err conftest.$ac_objext \
24306     conftest$ac_exeext conftest.$ac_ext
24307 LIBS=$ac_check_lib_save_LIBS
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24310 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24311 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24312
24313 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24314
24315 fi
24316
24317 fi
24318
24319 if test ! -z "$POSTGRESQL_LIB"; then
24320       saved_LIBS="${LIBS}"
24321    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24322
24323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24324 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24325 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24326   $as_echo_n "(cached) " >&6
24327 else
24328   ac_check_lib_save_LIBS=$LIBS
24329 LIBS="-lpq  $LIBS"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h.  */
24332
24333 /* Override any GCC internal prototype to avoid an error.
24334    Use char because int might match the return type of a GCC
24335    builtin and then its argument prototype would still apply.  */
24336 #ifdef __cplusplus
24337 extern "C"
24338 #endif
24339 char PQisthreadsafe ();
24340 int
24341 main ()
24342 {
24343 return PQisthreadsafe ();
24344   ;
24345   return 0;
24346 }
24347 _ACEOF
24348 if ac_fn_c_try_link "$LINENO"; then :
24349   ac_cv_lib_pq_PQisthreadsafe=yes
24350 else
24351   ac_cv_lib_pq_PQisthreadsafe=no
24352 fi
24353 rm -f core conftest.err conftest.$ac_objext \
24354     conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24356 fi
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24358 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24359 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24360
24361 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24362
24363 fi
24364
24365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24366 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24367 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24368   $as_echo_n "(cached) " >&6
24369 else
24370   ac_check_lib_save_LIBS=$LIBS
24371 LIBS="-lpq  $LIBS"
24372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h.  */
24374
24375 /* Override any GCC internal prototype to avoid an error.
24376    Use char because int might match the return type of a GCC
24377    builtin and then its argument prototype would still apply.  */
24378 #ifdef __cplusplus
24379 extern "C"
24380 #endif
24381 char PQputCopyData ();
24382 int
24383 main ()
24384 {
24385 return PQputCopyData ();
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 if ac_fn_c_try_link "$LINENO"; then :
24391   ac_cv_lib_pq_PQputCopyData=yes
24392 else
24393   ac_cv_lib_pq_PQputCopyData=no
24394 fi
24395 rm -f core conftest.err conftest.$ac_objext \
24396     conftest$ac_exeext conftest.$ac_ext
24397 LIBS=$ac_check_lib_save_LIBS
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24400 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24401 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24402
24403 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24404
24405 fi
24406
24407    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24408       if test $support_batch_insert = yes ; then
24409
24410 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24411
24412       fi
24413    fi
24414
24415    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24416    then
24417       echo "WARNING: Your PostgreSQL client library is too old to detect "
24418       echo "if it was compiled with --enable-thread-safety, consider to "
24419       echo "upgrade it in order to avoid problems with Batch insert mode"
24420       echo
24421    fi
24422
24423       LIBS="${saved_LIBS}"
24424 fi
24425
24426 if test ! -z "$DBI_LIBS"; then
24427             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24428
24429             if test $DB_PROG = postgresql; then
24430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24431 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24432 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24433   $as_echo_n "(cached) " >&6
24434 else
24435   ac_check_lib_save_LIBS=$LIBS
24436 LIBS="-lpq  $LIBS"
24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438 /* end confdefs.h.  */
24439
24440 /* Override any GCC internal prototype to avoid an error.
24441    Use char because int might match the return type of a GCC
24442    builtin and then its argument prototype would still apply.  */
24443 #ifdef __cplusplus
24444 extern "C"
24445 #endif
24446 char PQisthreadsafe ();
24447 int
24448 main ()
24449 {
24450 return PQisthreadsafe ();
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 if ac_fn_c_try_link "$LINENO"; then :
24456   ac_cv_lib_pq_PQisthreadsafe=yes
24457 else
24458   ac_cv_lib_pq_PQisthreadsafe=no
24459 fi
24460 rm -f core conftest.err conftest.$ac_objext \
24461     conftest$ac_exeext conftest.$ac_ext
24462 LIBS=$ac_check_lib_save_LIBS
24463 fi
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24465 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24466 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24467   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24468
24469 fi
24470
24471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24472 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24473 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24474   $as_echo_n "(cached) " >&6
24475 else
24476   ac_check_lib_save_LIBS=$LIBS
24477 LIBS="-lpq  $LIBS"
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h.  */
24480
24481 /* Override any GCC internal prototype to avoid an error.
24482    Use char because int might match the return type of a GCC
24483    builtin and then its argument prototype would still apply.  */
24484 #ifdef __cplusplus
24485 extern "C"
24486 #endif
24487 char PQputCopyData ();
24488 int
24489 main ()
24490 {
24491 return PQputCopyData ();
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 if ac_fn_c_try_link "$LINENO"; then :
24497   ac_cv_lib_pq_PQputCopyData=yes
24498 else
24499   ac_cv_lib_pq_PQputCopyData=no
24500 fi
24501 rm -f core conftest.err conftest.$ac_objext \
24502     conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24504 fi
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24506 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24507 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24508   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24509
24510 fi
24511
24512       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24513       pkg=$?
24514       if test $pkg = 0; then
24515          if test $support_batch_insert = yes ; then
24516
24517 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24518
24519          fi
24520       fi
24521    fi
24522 else
24523             uncomment_dbi="#"
24524 fi
24525
24526
24527
24528 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24529
24530
24531 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24532    if test -z "$CCOPTS"; then
24533       CCOPTS='-g -O2 -Wall'
24534    fi
24535    CFLAGS="$CCOPTS"
24536 fi
24537
24538
24539
24540 largefile_support="no"
24541
24542    # Check whether --enable-largefile was given.
24543 if test "${enable_largefile+set}" = set; then :
24544   enableval=$enable_largefile;
24545 fi
24546
24547    if test "$enable_largefile" != no; then
24548      if test -n "$ac_tool_prefix"; then
24549   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24550 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24552 $as_echo_n "checking for $ac_word... " >&6; }
24553 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24554   $as_echo_n "(cached) " >&6
24555 else
24556   if test -n "$GETCONF"; then
24557   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24558 else
24559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24560 for as_dir in $PATH
24561 do
24562   IFS=$as_save_IFS
24563   test -z "$as_dir" && as_dir=.
24564     for ac_exec_ext in '' $ac_executable_extensions; do
24565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24566     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24568     break 2
24569   fi
24570 done
24571   done
24572 IFS=$as_save_IFS
24573
24574 fi
24575 fi
24576 GETCONF=$ac_cv_prog_GETCONF
24577 if test -n "$GETCONF"; then
24578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24579 $as_echo "$GETCONF" >&6; }
24580 else
24581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24582 $as_echo "no" >&6; }
24583 fi
24584
24585
24586 fi
24587 if test -z "$ac_cv_prog_GETCONF"; then
24588   ac_ct_GETCONF=$GETCONF
24589   # Extract the first word of "getconf", so it can be a program name with args.
24590 set dummy getconf; ac_word=$2
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24592 $as_echo_n "checking for $ac_word... " >&6; }
24593 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24594   $as_echo_n "(cached) " >&6
24595 else
24596   if test -n "$ac_ct_GETCONF"; then
24597   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24598 else
24599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24600 for as_dir in $PATH
24601 do
24602   IFS=$as_save_IFS
24603   test -z "$as_dir" && as_dir=.
24604     for ac_exec_ext in '' $ac_executable_extensions; do
24605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24606     ac_cv_prog_ac_ct_GETCONF="getconf"
24607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24608     break 2
24609   fi
24610 done
24611   done
24612 IFS=$as_save_IFS
24613
24614 fi
24615 fi
24616 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24617 if test -n "$ac_ct_GETCONF"; then
24618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24619 $as_echo "$ac_ct_GETCONF" >&6; }
24620 else
24621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24622 $as_echo "no" >&6; }
24623 fi
24624
24625   if test "x$ac_ct_GETCONF" = x; then
24626     GETCONF=""
24627   else
24628     case $cross_compiling:$ac_tool_warned in
24629 yes:)
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24632 ac_tool_warned=yes ;;
24633 esac
24634     GETCONF=$ac_ct_GETCONF
24635   fi
24636 else
24637   GETCONF="$ac_cv_prog_GETCONF"
24638 fi
24639
24640      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24641 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24642 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24643   $as_echo_n "(cached) " >&6
24644 else
24645   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24646         ac_cv_sys_largefile_CFLAGS=no
24647         case "$host_os" in
24648            # IRIX 6.2 and later require cc -n32.
24649            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24650              if test "$GCC" != yes; then
24651                ac_cv_sys_largefile_CFLAGS=-n32
24652              fi
24653              ac_save_CC="$CC"
24654              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24655              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h.  */
24657
24658 int
24659 main ()
24660 {
24661
24662   ;
24663   return 0;
24664 }
24665 _ACEOF
24666 if ac_fn_c_try_link "$LINENO"; then :
24667
24668 else
24669   ac_cv_sys_largefile_CFLAGS=no
24670 fi
24671 rm -f core conftest.err conftest.$ac_objext \
24672     conftest$ac_exeext conftest.$ac_ext
24673              CC="$ac_save_CC"
24674            esac
24675       }
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24678 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24679      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24680 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24681 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24682   $as_echo_n "(cached) " >&6
24683 else
24684   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24685         ac_cv_sys_largefile_LDFLAGS=no
24686
24687       }
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24690 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24691      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24692 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24693 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24697         ac_cv_sys_largefile_LIBS=no
24698
24699       }
24700 fi
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24702 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24703
24704      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24705        case "$ac_flag" in
24706        no) ;;
24707        -D_FILE_OFFSET_BITS=*) ;;
24708        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24709        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24710        -D?* | -I?*)
24711          case "$ac_flag" in
24712    no) ;;
24713    ?*)
24714      case "$CPPFLAGS" in
24715      '') CPPFLAGS="$ac_flag" ;;
24716      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24717      esac ;;
24718    esac ;;
24719        *)
24720          case "$ac_flag" in
24721    no) ;;
24722    ?*)
24723      case "$CFLAGS" in
24724      '') CFLAGS="$ac_flag" ;;
24725      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24726      esac ;;
24727    esac ;;
24728        esac
24729      done
24730      case "$ac_cv_sys_largefile_LDFLAGS" in
24731    no) ;;
24732    ?*)
24733      case "$LDFLAGS" in
24734      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24735      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24736      esac ;;
24737    esac
24738      case "$ac_cv_sys_largefile_LIBS" in
24739    no) ;;
24740    ?*)
24741      case "$LIBS" in
24742      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24743      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24744      esac ;;
24745    esac
24746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24747 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24748 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24749   $as_echo_n "(cached) " >&6
24750 else
24751   ac_cv_sys_file_offset_bits=no
24752       ac_cv_sys_file_offset_bits=64
24753       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24754         case "$ac_flag" in
24755         -D_FILE_OFFSET_BITS)
24756           ac_cv_sys_file_offset_bits=1 ;;
24757         -D_FILE_OFFSET_BITS=*)
24758           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24759         esac
24760       done
24761
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24765    if test "$ac_cv_sys_file_offset_bits" != no; then
24766
24767 cat >>confdefs.h <<_ACEOF
24768 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24769 _ACEOF
24770
24771    fi
24772      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24773 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24774 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24775   $as_echo_n "(cached) " >&6
24776 else
24777   ac_cv_sys_largefile_source=no
24778       ac_cv_sys_largefile_source=1
24779       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24780         case "$ac_flag" in
24781         -D_LARGEFILE_SOURCE)
24782           ac_cv_sys_largefile_source=1 ;;
24783         -D_LARGEFILE_SOURCE=*)
24784           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24785         esac
24786       done
24787
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24790 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24791    if test "$ac_cv_sys_largefile_source" != no; then
24792
24793 cat >>confdefs.h <<_ACEOF
24794 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24795 _ACEOF
24796
24797    fi
24798      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24799 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24800 if test "${ac_cv_sys_large_files+set}" = set; then :
24801   $as_echo_n "(cached) " >&6
24802 else
24803   ac_cv_sys_large_files=no
24804       ac_cv_sys_large_files=1
24805       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24806         case "$ac_flag" in
24807         -D_LARGE_FILES)
24808           ac_cv_sys_large_files=1 ;;
24809         -D_LARGE_FILES=*)
24810           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24811         esac
24812       done
24813
24814 fi
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24816 $as_echo "$ac_cv_sys_large_files" >&6; }
24817    if test "$ac_cv_sys_large_files" != no; then
24818
24819 cat >>confdefs.h <<_ACEOF
24820 #define _LARGE_FILES $ac_cv_sys_large_files
24821 _ACEOF
24822
24823    fi
24824    fi
24825
24826
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24828 $as_echo_n "checking for X... " >&6; }
24829
24830
24831 # Check whether --with-x was given.
24832 if test "${with_x+set}" = set; then :
24833   withval=$with_x;
24834 fi
24835
24836 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24837 if test "x$with_x" = xno; then
24838   # The user explicitly disabled X.
24839   have_x=disabled
24840 else
24841   case $x_includes,$x_libraries in #(
24842     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
24843     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24844   $as_echo_n "(cached) " >&6
24845 else
24846   # One or both of the vars are not set, and there is no cached value.
24847 ac_x_includes=no ac_x_libraries=no
24848 rm -f -r conftest.dir
24849 if mkdir conftest.dir; then
24850   cd conftest.dir
24851   cat >Imakefile <<'_ACEOF'
24852 incroot:
24853         @echo incroot='${INCROOT}'
24854 usrlibdir:
24855         @echo usrlibdir='${USRLIBDIR}'
24856 libdir:
24857         @echo libdir='${LIBDIR}'
24858 _ACEOF
24859   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24860     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24861     for ac_var in incroot usrlibdir libdir; do
24862       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24863     done
24864     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24865     for ac_extension in a so sl dylib la dll; do
24866       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24867          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24868         ac_im_usrlibdir=$ac_im_libdir; break
24869       fi
24870     done
24871     # Screen out bogus values from the imake configuration.  They are
24872     # bogus both because they are the default anyway, and because
24873     # using them would break gcc on systems where it needs fixed includes.
24874     case $ac_im_incroot in
24875         /usr/include) ac_x_includes= ;;
24876         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24877     esac
24878     case $ac_im_usrlibdir in
24879         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24880         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24881     esac
24882   fi
24883   cd ..
24884   rm -f -r conftest.dir
24885 fi
24886
24887 # Standard set of common directories for X headers.
24888 # Check X11 before X11Rn because it is often a symlink to the current release.
24889 ac_x_header_dirs='
24890 /usr/X11/include
24891 /usr/X11R7/include
24892 /usr/X11R6/include
24893 /usr/X11R5/include
24894 /usr/X11R4/include
24895
24896 /usr/include/X11
24897 /usr/include/X11R7
24898 /usr/include/X11R6
24899 /usr/include/X11R5
24900 /usr/include/X11R4
24901
24902 /usr/local/X11/include
24903 /usr/local/X11R7/include
24904 /usr/local/X11R6/include
24905 /usr/local/X11R5/include
24906 /usr/local/X11R4/include
24907
24908 /usr/local/include/X11
24909 /usr/local/include/X11R7
24910 /usr/local/include/X11R6
24911 /usr/local/include/X11R5
24912 /usr/local/include/X11R4
24913
24914 /usr/X386/include
24915 /usr/x386/include
24916 /usr/XFree86/include/X11
24917
24918 /usr/include
24919 /usr/local/include
24920 /usr/unsupported/include
24921 /usr/athena/include
24922 /usr/local/x11r5/include
24923 /usr/lpp/Xamples/include
24924
24925 /usr/openwin/include
24926 /usr/openwin/share/include'
24927
24928 if test "$ac_x_includes" = no; then
24929   # Guess where to find include files, by looking for Xlib.h.
24930   # First, try using that file with no special directory specified.
24931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932 /* end confdefs.h.  */
24933 #include <X11/Xlib.h>
24934 _ACEOF
24935 if ac_fn_c_try_cpp "$LINENO"; then :
24936   # We can compile using X headers with no special include directory.
24937 ac_x_includes=
24938 else
24939   for ac_dir in $ac_x_header_dirs; do
24940   if test -r "$ac_dir/X11/Xlib.h"; then
24941     ac_x_includes=$ac_dir
24942     break
24943   fi
24944 done
24945 fi
24946 rm -f conftest.err conftest.i conftest.$ac_ext
24947 fi # $ac_x_includes = no
24948
24949 if test "$ac_x_libraries" = no; then
24950   # Check for the libraries.
24951   # See if we find them without any special options.
24952   # Don't add to $LIBS permanently.
24953   ac_save_LIBS=$LIBS
24954   LIBS="-lX11 $LIBS"
24955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h.  */
24957 #include <X11/Xlib.h>
24958 int
24959 main ()
24960 {
24961 XrmInitialize ()
24962   ;
24963   return 0;
24964 }
24965 _ACEOF
24966 if ac_fn_c_try_link "$LINENO"; then :
24967   LIBS=$ac_save_LIBS
24968 # We can link X programs with no special library path.
24969 ac_x_libraries=
24970 else
24971   LIBS=$ac_save_LIBS
24972 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24973 do
24974   # Don't even attempt the hair of trying to link an X program!
24975   for ac_extension in a so sl dylib la dll; do
24976     if test -r "$ac_dir/libX11.$ac_extension"; then
24977       ac_x_libraries=$ac_dir
24978       break 2
24979     fi
24980   done
24981 done
24982 fi
24983 rm -f core conftest.err conftest.$ac_objext \
24984     conftest$ac_exeext conftest.$ac_ext
24985 fi # $ac_x_libraries = no
24986
24987 case $ac_x_includes,$ac_x_libraries in #(
24988   no,* | *,no | *\'*)
24989     # Didn't find X, or a directory has "'" in its name.
24990     ac_cv_have_x="have_x=no";; #(
24991   *)
24992     # Record where we found X for the cache.
24993     ac_cv_have_x="have_x=yes\
24994         ac_x_includes='$ac_x_includes'\
24995         ac_x_libraries='$ac_x_libraries'"
24996 esac
24997 fi
24998 ;; #(
24999     *) have_x=yes;;
25000   esac
25001   eval "$ac_cv_have_x"
25002 fi # $with_x != no
25003
25004 if test "$have_x" != yes; then
25005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25006 $as_echo "$have_x" >&6; }
25007   no_x=yes
25008 else
25009   # If each of the values was on the command line, it overrides each guess.
25010   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25011   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25012   # Update the cache value to reflect the command line values.
25013   ac_cv_have_x="have_x=yes\
25014         ac_x_includes='$x_includes'\
25015         ac_x_libraries='$x_libraries'"
25016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25017 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25018 fi
25019
25020 if test "$no_x" = yes; then
25021   # Not all programs may use this symbol, but it does not hurt to define it.
25022
25023 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25024
25025   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25026 else
25027   if test -n "$x_includes"; then
25028     X_CFLAGS="$X_CFLAGS -I$x_includes"
25029   fi
25030
25031   # It would also be nice to do this for all -L options, not just this one.
25032   if test -n "$x_libraries"; then
25033     X_LIBS="$X_LIBS -L$x_libraries"
25034     # For Solaris; some versions of Sun CC require a space after -R and
25035     # others require no space.  Words are not sufficient . . . .
25036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25037 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25038     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25039     ac_xsave_c_werror_flag=$ac_c_werror_flag
25040     ac_c_werror_flag=yes
25041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25042 /* end confdefs.h.  */
25043
25044 int
25045 main ()
25046 {
25047
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 if ac_fn_c_try_link "$LINENO"; then :
25053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25054 $as_echo "no" >&6; }
25055        X_LIBS="$X_LIBS -R$x_libraries"
25056 else
25057   LIBS="$ac_xsave_LIBS -R $x_libraries"
25058        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h.  */
25060
25061 int
25062 main ()
25063 {
25064
25065   ;
25066   return 0;
25067 }
25068 _ACEOF
25069 if ac_fn_c_try_link "$LINENO"; then :
25070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25071 $as_echo "yes" >&6; }
25072           X_LIBS="$X_LIBS -R $x_libraries"
25073 else
25074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25075 $as_echo "neither works" >&6; }
25076 fi
25077 rm -f core conftest.err conftest.$ac_objext \
25078     conftest$ac_exeext conftest.$ac_ext
25079 fi
25080 rm -f core conftest.err conftest.$ac_objext \
25081     conftest$ac_exeext conftest.$ac_ext
25082     ac_c_werror_flag=$ac_xsave_c_werror_flag
25083     LIBS=$ac_xsave_LIBS
25084   fi
25085
25086   # Check for system-dependent libraries X programs must link with.
25087   # Do this before checking for the system-independent R6 libraries
25088   # (-lICE), since we may need -lsocket or whatever for X linking.
25089
25090   if test "$ISC" = yes; then
25091     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25092   else
25093     # Martyn Johnson says this is needed for Ultrix, if the X
25094     # libraries were built with DECnet support.  And Karl Berry says
25095     # the Alpha needs dnet_stub (dnet does not exist).
25096     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h.  */
25099
25100 /* Override any GCC internal prototype to avoid an error.
25101    Use char because int might match the return type of a GCC
25102    builtin and then its argument prototype would still apply.  */
25103 #ifdef __cplusplus
25104 extern "C"
25105 #endif
25106 char XOpenDisplay ();
25107 int
25108 main ()
25109 {
25110 return XOpenDisplay ();
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 if ac_fn_c_try_link "$LINENO"; then :
25116
25117 else
25118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25119 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25120 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25121   $as_echo_n "(cached) " >&6
25122 else
25123   ac_check_lib_save_LIBS=$LIBS
25124 LIBS="-ldnet  $LIBS"
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h.  */
25127
25128 /* Override any GCC internal prototype to avoid an error.
25129    Use char because int might match the return type of a GCC
25130    builtin and then its argument prototype would still apply.  */
25131 #ifdef __cplusplus
25132 extern "C"
25133 #endif
25134 char dnet_ntoa ();
25135 int
25136 main ()
25137 {
25138 return dnet_ntoa ();
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 if ac_fn_c_try_link "$LINENO"; then :
25144   ac_cv_lib_dnet_dnet_ntoa=yes
25145 else
25146   ac_cv_lib_dnet_dnet_ntoa=no
25147 fi
25148 rm -f core conftest.err conftest.$ac_objext \
25149     conftest$ac_exeext conftest.$ac_ext
25150 LIBS=$ac_check_lib_save_LIBS
25151 fi
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25153 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25154 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25155   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25156 fi
25157
25158     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25160 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25161 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25162   $as_echo_n "(cached) " >&6
25163 else
25164   ac_check_lib_save_LIBS=$LIBS
25165 LIBS="-ldnet_stub  $LIBS"
25166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h.  */
25168
25169 /* Override any GCC internal prototype to avoid an error.
25170    Use char because int might match the return type of a GCC
25171    builtin and then its argument prototype would still apply.  */
25172 #ifdef __cplusplus
25173 extern "C"
25174 #endif
25175 char dnet_ntoa ();
25176 int
25177 main ()
25178 {
25179 return dnet_ntoa ();
25180   ;
25181   return 0;
25182 }
25183 _ACEOF
25184 if ac_fn_c_try_link "$LINENO"; then :
25185   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25186 else
25187   ac_cv_lib_dnet_stub_dnet_ntoa=no
25188 fi
25189 rm -f core conftest.err conftest.$ac_objext \
25190     conftest$ac_exeext conftest.$ac_ext
25191 LIBS=$ac_check_lib_save_LIBS
25192 fi
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25194 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25195 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25196   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25197 fi
25198
25199     fi
25200 fi
25201 rm -f core conftest.err conftest.$ac_objext \
25202     conftest$ac_exeext conftest.$ac_ext
25203     LIBS="$ac_xsave_LIBS"
25204
25205     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25206     # to get the SysV transport functions.
25207     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25208     # needs -lnsl.
25209     # The nsl library prevents programs from opening the X display
25210     # on Irix 5.2, according to T.E. Dickey.
25211     # The functions gethostbyname, getservbyname, and inet_addr are
25212     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25213     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25214 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25215
25216 fi
25217
25218     if test $ac_cv_func_gethostbyname = no; then
25219       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25220 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25221 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25222   $as_echo_n "(cached) " >&6
25223 else
25224   ac_check_lib_save_LIBS=$LIBS
25225 LIBS="-lnsl  $LIBS"
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h.  */
25228
25229 /* Override any GCC internal prototype to avoid an error.
25230    Use char because int might match the return type of a GCC
25231    builtin and then its argument prototype would still apply.  */
25232 #ifdef __cplusplus
25233 extern "C"
25234 #endif
25235 char gethostbyname ();
25236 int
25237 main ()
25238 {
25239 return gethostbyname ();
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 if ac_fn_c_try_link "$LINENO"; then :
25245   ac_cv_lib_nsl_gethostbyname=yes
25246 else
25247   ac_cv_lib_nsl_gethostbyname=no
25248 fi
25249 rm -f core conftest.err conftest.$ac_objext \
25250     conftest$ac_exeext conftest.$ac_ext
25251 LIBS=$ac_check_lib_save_LIBS
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25254 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25255 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25256   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25257 fi
25258
25259       if test $ac_cv_lib_nsl_gethostbyname = no; then
25260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25261 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25262 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25263   $as_echo_n "(cached) " >&6
25264 else
25265   ac_check_lib_save_LIBS=$LIBS
25266 LIBS="-lbsd  $LIBS"
25267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25268 /* end confdefs.h.  */
25269
25270 /* Override any GCC internal prototype to avoid an error.
25271    Use char because int might match the return type of a GCC
25272    builtin and then its argument prototype would still apply.  */
25273 #ifdef __cplusplus
25274 extern "C"
25275 #endif
25276 char gethostbyname ();
25277 int
25278 main ()
25279 {
25280 return gethostbyname ();
25281   ;
25282   return 0;
25283 }
25284 _ACEOF
25285 if ac_fn_c_try_link "$LINENO"; then :
25286   ac_cv_lib_bsd_gethostbyname=yes
25287 else
25288   ac_cv_lib_bsd_gethostbyname=no
25289 fi
25290 rm -f core conftest.err conftest.$ac_objext \
25291     conftest$ac_exeext conftest.$ac_ext
25292 LIBS=$ac_check_lib_save_LIBS
25293 fi
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25295 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25296 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25297   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25298 fi
25299
25300       fi
25301     fi
25302
25303     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25304     # socket/setsockopt and other routines are undefined under SCO ODT
25305     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25306     # on later versions), says Simon Leinen: it contains gethostby*
25307     # variants that don't use the name server (or something).  -lsocket
25308     # must be given before -lnsl if both are needed.  We assume that
25309     # if connect needs -lnsl, so does gethostbyname.
25310     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25311 if test "x$ac_cv_func_connect" = x""yes; then :
25312
25313 fi
25314
25315     if test $ac_cv_func_connect = no; then
25316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25317 $as_echo_n "checking for connect in -lsocket... " >&6; }
25318 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321   ac_check_lib_save_LIBS=$LIBS
25322 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h.  */
25325
25326 /* Override any GCC internal prototype to avoid an error.
25327    Use char because int might match the return type of a GCC
25328    builtin and then its argument prototype would still apply.  */
25329 #ifdef __cplusplus
25330 extern "C"
25331 #endif
25332 char connect ();
25333 int
25334 main ()
25335 {
25336 return connect ();
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 if ac_fn_c_try_link "$LINENO"; then :
25342   ac_cv_lib_socket_connect=yes
25343 else
25344   ac_cv_lib_socket_connect=no
25345 fi
25346 rm -f core conftest.err conftest.$ac_objext \
25347     conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25349 fi
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25351 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25352 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25353   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25354 fi
25355
25356     fi
25357
25358     # Guillermo Gomez says -lposix is necessary on A/UX.
25359     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25360 if test "x$ac_cv_func_remove" = x""yes; then :
25361
25362 fi
25363
25364     if test $ac_cv_func_remove = no; then
25365       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25366 $as_echo_n "checking for remove in -lposix... " >&6; }
25367 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370   ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-lposix  $LIBS"
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h.  */
25374
25375 /* Override any GCC internal prototype to avoid an error.
25376    Use char because int might match the return type of a GCC
25377    builtin and then its argument prototype would still apply.  */
25378 #ifdef __cplusplus
25379 extern "C"
25380 #endif
25381 char remove ();
25382 int
25383 main ()
25384 {
25385 return remove ();
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 if ac_fn_c_try_link "$LINENO"; then :
25391   ac_cv_lib_posix_remove=yes
25392 else
25393   ac_cv_lib_posix_remove=no
25394 fi
25395 rm -f core conftest.err conftest.$ac_objext \
25396     conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25398 fi
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25400 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25401 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25402   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25403 fi
25404
25405     fi
25406
25407     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25408     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25409 if test "x$ac_cv_func_shmat" = x""yes; then :
25410
25411 fi
25412
25413     if test $ac_cv_func_shmat = no; then
25414       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25415 $as_echo_n "checking for shmat in -lipc... " >&6; }
25416 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25417   $as_echo_n "(cached) " >&6
25418 else
25419   ac_check_lib_save_LIBS=$LIBS
25420 LIBS="-lipc  $LIBS"
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422 /* end confdefs.h.  */
25423
25424 /* Override any GCC internal prototype to avoid an error.
25425    Use char because int might match the return type of a GCC
25426    builtin and then its argument prototype would still apply.  */
25427 #ifdef __cplusplus
25428 extern "C"
25429 #endif
25430 char shmat ();
25431 int
25432 main ()
25433 {
25434 return shmat ();
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 if ac_fn_c_try_link "$LINENO"; then :
25440   ac_cv_lib_ipc_shmat=yes
25441 else
25442   ac_cv_lib_ipc_shmat=no
25443 fi
25444 rm -f core conftest.err conftest.$ac_objext \
25445     conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25447 fi
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25449 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25450 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25451   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25452 fi
25453
25454     fi
25455   fi
25456
25457   # Check for libraries that X11R6 Xt/Xaw programs need.
25458   ac_save_LDFLAGS=$LDFLAGS
25459   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25460   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25461   # check for ICE first), but we must link in the order -lSM -lICE or
25462   # we get undefined symbols.  So assume we have SM if we have ICE.
25463   # These have to be linked with before -lX11, unlike the other
25464   # libraries we check for below, so use a different variable.
25465   # John Interrante, Karl Berry
25466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25467 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25469   $as_echo_n "(cached) " >&6
25470 else
25471   ac_check_lib_save_LIBS=$LIBS
25472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h.  */
25475
25476 /* Override any GCC internal prototype to avoid an error.
25477    Use char because int might match the return type of a GCC
25478    builtin and then its argument prototype would still apply.  */
25479 #ifdef __cplusplus
25480 extern "C"
25481 #endif
25482 char IceConnectionNumber ();
25483 int
25484 main ()
25485 {
25486 return IceConnectionNumber ();
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 if ac_fn_c_try_link "$LINENO"; then :
25492   ac_cv_lib_ICE_IceConnectionNumber=yes
25493 else
25494   ac_cv_lib_ICE_IceConnectionNumber=no
25495 fi
25496 rm -f core conftest.err conftest.$ac_objext \
25497     conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25501 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25502 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25503   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25504 fi
25505
25506   LDFLAGS=$ac_save_LDFLAGS
25507
25508 fi
25509
25510
25511 for ac_header in \
25512    assert.h \
25513    fcntl.h \
25514    grp.h \
25515    pwd.h \
25516    libc.h \
25517    limits.h \
25518    stdarg.h \
25519    stdlib.h \
25520    stdint.h \
25521    string.h \
25522    strings.h \
25523    termios.h \
25524    termcap.h \
25525    term.h \
25526    unistd.h \
25527    sys/bitypes.h \
25528    sys/byteorder.h \
25529    sys/ioctl.h \
25530    sys/select.h \
25531    sys/socket.h \
25532    sys/sockio.h \
25533    sys/stat.h \
25534    sys/time.h \
25535    sys/types.h \
25536    arpa/nameser.h \
25537    mtio.h \
25538    sys/mtio.h \
25539    sys/tape.h \
25540    regex.h \
25541
25542 do :
25543   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25546   cat >>confdefs.h <<_ACEOF
25547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25548 _ACEOF
25549
25550 fi
25551
25552 done
25553
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25555 $as_echo_n "checking for ANSI C header files... " >&6; }
25556 if test "${ac_cv_header_stdc+set}" = set; then :
25557   $as_echo_n "(cached) " >&6
25558 else
25559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560 /* end confdefs.h.  */
25561 #include <stdlib.h>
25562 #include <stdarg.h>
25563 #include <string.h>
25564 #include <float.h>
25565
25566 int
25567 main ()
25568 {
25569
25570   ;
25571   return 0;
25572 }
25573 _ACEOF
25574 if ac_fn_c_try_compile "$LINENO"; then :
25575   ac_cv_header_stdc=yes
25576 else
25577   ac_cv_header_stdc=no
25578 fi
25579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25580
25581 if test $ac_cv_header_stdc = yes; then
25582   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584 /* end confdefs.h.  */
25585 #include <string.h>
25586
25587 _ACEOF
25588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25589   $EGREP "memchr" >/dev/null 2>&1; then :
25590
25591 else
25592   ac_cv_header_stdc=no
25593 fi
25594 rm -f conftest*
25595
25596 fi
25597
25598 if test $ac_cv_header_stdc = yes; then
25599   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h.  */
25602 #include <stdlib.h>
25603
25604 _ACEOF
25605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25606   $EGREP "free" >/dev/null 2>&1; then :
25607
25608 else
25609   ac_cv_header_stdc=no
25610 fi
25611 rm -f conftest*
25612
25613 fi
25614
25615 if test $ac_cv_header_stdc = yes; then
25616   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25617   if test "$cross_compiling" = yes; then :
25618   :
25619 else
25620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h.  */
25622 #include <ctype.h>
25623 #include <stdlib.h>
25624 #if ((' ' & 0x0FF) == 0x020)
25625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25627 #else
25628 # define ISLOWER(c) \
25629                    (('a' <= (c) && (c) <= 'i') \
25630                      || ('j' <= (c) && (c) <= 'r') \
25631                      || ('s' <= (c) && (c) <= 'z'))
25632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25633 #endif
25634
25635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25636 int
25637 main ()
25638 {
25639   int i;
25640   for (i = 0; i < 256; i++)
25641     if (XOR (islower (i), ISLOWER (i))
25642         || toupper (i) != TOUPPER (i))
25643       return 2;
25644   return 0;
25645 }
25646 _ACEOF
25647 if ac_fn_c_try_run "$LINENO"; then :
25648
25649 else
25650   ac_cv_header_stdc=no
25651 fi
25652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25653   conftest.$ac_objext conftest.beam conftest.$ac_ext
25654 fi
25655
25656 fi
25657 fi
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25659 $as_echo "$ac_cv_header_stdc" >&6; }
25660 if test $ac_cv_header_stdc = yes; then
25661
25662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25663
25664 fi
25665
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25667 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25668 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25669   $as_echo_n "(cached) " >&6
25670 else
25671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h.  */
25673 #include <sys/types.h>
25674 int
25675 main ()
25676 {
25677 return makedev(0, 0);
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 if ac_fn_c_try_link "$LINENO"; then :
25683   ac_cv_header_sys_types_h_makedev=yes
25684 else
25685   ac_cv_header_sys_types_h_makedev=no
25686 fi
25687 rm -f core conftest.err conftest.$ac_objext \
25688     conftest$ac_exeext conftest.$ac_ext
25689
25690 fi
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25692 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25693
25694 if test $ac_cv_header_sys_types_h_makedev = no; then
25695 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25696 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25697
25698 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25699
25700 fi
25701
25702
25703
25704   if test $ac_cv_header_sys_mkdev_h = no; then
25705     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25706 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25707
25708 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25709
25710 fi
25711
25712
25713   fi
25714 fi
25715
25716 ac_header_dirent=no
25717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25718   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25720 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25721 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
25722   $as_echo_n "(cached) " >&6
25723 else
25724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h.  */
25726 #include <sys/types.h>
25727 #include <$ac_hdr>
25728
25729 int
25730 main ()
25731 {
25732 if ((DIR *) 0)
25733 return 0;
25734   ;
25735   return 0;
25736 }
25737 _ACEOF
25738 if ac_fn_c_try_compile "$LINENO"; then :
25739   eval "$as_ac_Header=yes"
25740 else
25741   eval "$as_ac_Header=no"
25742 fi
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 fi
25745 eval ac_res=\$$as_ac_Header
25746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25747 $as_echo "$ac_res" >&6; }
25748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25749   cat >>confdefs.h <<_ACEOF
25750 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25751 _ACEOF
25752
25753 ac_header_dirent=$ac_hdr; break
25754 fi
25755
25756 done
25757 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25758 if test $ac_header_dirent = dirent.h; then
25759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25760 $as_echo_n "checking for library containing opendir... " >&6; }
25761 if test "${ac_cv_search_opendir+set}" = set; then :
25762   $as_echo_n "(cached) " >&6
25763 else
25764   ac_func_search_save_LIBS=$LIBS
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h.  */
25767
25768 /* Override any GCC internal prototype to avoid an error.
25769    Use char because int might match the return type of a GCC
25770    builtin and then its argument prototype would still apply.  */
25771 #ifdef __cplusplus
25772 extern "C"
25773 #endif
25774 char opendir ();
25775 int
25776 main ()
25777 {
25778 return opendir ();
25779   ;
25780   return 0;
25781 }
25782 _ACEOF
25783 for ac_lib in '' dir; do
25784   if test -z "$ac_lib"; then
25785     ac_res="none required"
25786   else
25787     ac_res=-l$ac_lib
25788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25789   fi
25790   if ac_fn_c_try_link "$LINENO"; then :
25791   ac_cv_search_opendir=$ac_res
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext \
25794     conftest$ac_exeext
25795   if test "${ac_cv_search_opendir+set}" = set; then :
25796   break
25797 fi
25798 done
25799 if test "${ac_cv_search_opendir+set}" = set; then :
25800
25801 else
25802   ac_cv_search_opendir=no
25803 fi
25804 rm conftest.$ac_ext
25805 LIBS=$ac_func_search_save_LIBS
25806 fi
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25808 $as_echo "$ac_cv_search_opendir" >&6; }
25809 ac_res=$ac_cv_search_opendir
25810 if test "$ac_res" != no; then :
25811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25812
25813 fi
25814
25815 else
25816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25817 $as_echo_n "checking for library containing opendir... " >&6; }
25818 if test "${ac_cv_search_opendir+set}" = set; then :
25819   $as_echo_n "(cached) " >&6
25820 else
25821   ac_func_search_save_LIBS=$LIBS
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h.  */
25824
25825 /* Override any GCC internal prototype to avoid an error.
25826    Use char because int might match the return type of a GCC
25827    builtin and then its argument prototype would still apply.  */
25828 #ifdef __cplusplus
25829 extern "C"
25830 #endif
25831 char opendir ();
25832 int
25833 main ()
25834 {
25835 return opendir ();
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 for ac_lib in '' x; do
25841   if test -z "$ac_lib"; then
25842     ac_res="none required"
25843   else
25844     ac_res=-l$ac_lib
25845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25846   fi
25847   if ac_fn_c_try_link "$LINENO"; then :
25848   ac_cv_search_opendir=$ac_res
25849 fi
25850 rm -f core conftest.err conftest.$ac_objext \
25851     conftest$ac_exeext
25852   if test "${ac_cv_search_opendir+set}" = set; then :
25853   break
25854 fi
25855 done
25856 if test "${ac_cv_search_opendir+set}" = set; then :
25857
25858 else
25859   ac_cv_search_opendir=no
25860 fi
25861 rm conftest.$ac_ext
25862 LIBS=$ac_func_search_save_LIBS
25863 fi
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25865 $as_echo "$ac_cv_search_opendir" >&6; }
25866 ac_res=$ac_cv_search_opendir
25867 if test "$ac_res" != no; then :
25868   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25869
25870 fi
25871
25872 fi
25873
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25875 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25876 if test "${ac_cv_header_stat_broken+set}" = set; then :
25877   $as_echo_n "(cached) " >&6
25878 else
25879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25880 /* end confdefs.h.  */
25881 #include <sys/types.h>
25882 #include <sys/stat.h>
25883
25884 #if defined S_ISBLK && defined S_IFDIR
25885 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25886 #endif
25887
25888 #if defined S_ISBLK && defined S_IFCHR
25889 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25890 #endif
25891
25892 #if defined S_ISLNK && defined S_IFREG
25893 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25894 #endif
25895
25896 #if defined S_ISSOCK && defined S_IFREG
25897 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25898 #endif
25899
25900 _ACEOF
25901 if ac_fn_c_try_compile "$LINENO"; then :
25902   ac_cv_header_stat_broken=no
25903 else
25904   ac_cv_header_stat_broken=yes
25905 fi
25906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25907 fi
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25909 $as_echo "$ac_cv_header_stat_broken" >&6; }
25910 if test $ac_cv_header_stat_broken = yes; then
25911
25912 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25913
25914 fi
25915
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25917 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25918 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25919   $as_echo_n "(cached) " >&6
25920 else
25921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h.  */
25923 #include <sys/types.h>
25924 #include <sys/wait.h>
25925 #ifndef WEXITSTATUS
25926 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25927 #endif
25928 #ifndef WIFEXITED
25929 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25930 #endif
25931
25932 int
25933 main ()
25934 {
25935   int s;
25936   wait (&s);
25937   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 if ac_fn_c_try_compile "$LINENO"; then :
25943   ac_cv_header_sys_wait_h=yes
25944 else
25945   ac_cv_header_sys_wait_h=no
25946 fi
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 fi
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25950 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25951 if test $ac_cv_header_sys_wait_h = yes; then
25952
25953 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25954
25955 fi
25956
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25958 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25959 if test "${ac_cv_header_time+set}" = set; then :
25960   $as_echo_n "(cached) " >&6
25961 else
25962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25963 /* end confdefs.h.  */
25964 #include <sys/types.h>
25965 #include <sys/time.h>
25966 #include <time.h>
25967
25968 int
25969 main ()
25970 {
25971 if ((struct tm *) 0)
25972 return 0;
25973   ;
25974   return 0;
25975 }
25976 _ACEOF
25977 if ac_fn_c_try_compile "$LINENO"; then :
25978   ac_cv_header_time=yes
25979 else
25980   ac_cv_header_time=no
25981 fi
25982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983 fi
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25985 $as_echo "$ac_cv_header_time" >&6; }
25986 if test $ac_cv_header_time = yes; then
25987
25988 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25989
25990 fi
25991
25992 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25993 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25994
25995 cat >>confdefs.h <<_ACEOF
25996 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25997 _ACEOF
25998
25999
26000 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26001
26002 fi
26003
26004
26005 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26006 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26007
26008 cat >>confdefs.h <<_ACEOF
26009 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26010 _ACEOF
26011
26012
26013 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26014
26015 else
26016   case " $LIBOBJS " in
26017   *" fileblocks.$ac_objext "* ) ;;
26018   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26019  ;;
26020 esac
26021
26022 fi
26023
26024
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26026 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26027 if test "${ac_cv_struct_tm+set}" = set; then :
26028   $as_echo_n "(cached) " >&6
26029 else
26030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h.  */
26032 #include <sys/types.h>
26033 #include <time.h>
26034
26035 int
26036 main ()
26037 {
26038 struct tm tm;
26039                                      int *p = &tm.tm_sec;
26040                                      return !p;
26041   ;
26042   return 0;
26043 }
26044 _ACEOF
26045 if ac_fn_c_try_compile "$LINENO"; then :
26046   ac_cv_struct_tm=time.h
26047 else
26048   ac_cv_struct_tm=sys/time.h
26049 fi
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 fi
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26053 $as_echo "$ac_cv_struct_tm" >&6; }
26054 if test $ac_cv_struct_tm = sys/time.h; then
26055
26056 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26057
26058 fi
26059
26060 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26061 #include <$ac_cv_struct_tm>
26062
26063 "
26064 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26065
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_STRUCT_TM_TM_ZONE 1
26068 _ACEOF
26069
26070
26071 fi
26072
26073 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26074
26075 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26076
26077 else
26078   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26079 "
26080 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26081   ac_have_decl=1
26082 else
26083   ac_have_decl=0
26084 fi
26085
26086 cat >>confdefs.h <<_ACEOF
26087 #define HAVE_DECL_TZNAME $ac_have_decl
26088 _ACEOF
26089
26090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26091 $as_echo_n "checking for tzname... " >&6; }
26092 if test "${ac_cv_var_tzname+set}" = set; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h.  */
26097 #include <time.h>
26098 #if !HAVE_DECL_TZNAME
26099 extern char *tzname[];
26100 #endif
26101
26102 int
26103 main ()
26104 {
26105 return tzname[0][0];
26106   ;
26107   return 0;
26108 }
26109 _ACEOF
26110 if ac_fn_c_try_link "$LINENO"; then :
26111   ac_cv_var_tzname=yes
26112 else
26113   ac_cv_var_tzname=no
26114 fi
26115 rm -f core conftest.err conftest.$ac_objext \
26116     conftest$ac_exeext conftest.$ac_ext
26117 fi
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26119 $as_echo "$ac_cv_var_tzname" >&6; }
26120   if test $ac_cv_var_tzname = yes; then
26121
26122 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26123
26124   fi
26125 fi
26126
26127
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26129 $as_echo_n "checking for utime.h... " >&6; }
26130 if test "${ba_cv_header_utime_h+set}" = set; then :
26131   $as_echo_n "(cached) " >&6
26132 else
26133
26134        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h.  */
26136
26137               #include <sys/types.h>
26138               #include <utime.h>
26139
26140 int
26141 main ()
26142 {
26143
26144               struct utimbuf foo
26145
26146   ;
26147   return 0;
26148 }
26149 _ACEOF
26150 if ac_fn_c_try_compile "$LINENO"; then :
26151
26152               ba_cv_header_utime_h=yes
26153
26154 else
26155
26156               ba_cv_header_utime_h=no
26157
26158
26159 fi
26160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26161
26162
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26165 $as_echo "$ba_cv_header_utime_h" >&6; }
26166 test $ba_cv_header_utime_h = yes &&
26167 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26168
26169
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26171 $as_echo_n "checking for socklen_t... " >&6; }
26172 if test "${ba_cv_header_socklen_t+set}" = set; then :
26173   $as_echo_n "(cached) " >&6
26174 else
26175
26176        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h.  */
26178
26179               #include <sys/types.h>
26180               #include <sys/socket.h>
26181
26182 int
26183 main ()
26184 {
26185
26186               socklen_t x
26187
26188   ;
26189   return 0;
26190 }
26191 _ACEOF
26192 if ac_fn_c_try_compile "$LINENO"; then :
26193
26194              ba_cv_header_socklen_t=yes
26195
26196 else
26197
26198              ba_cv_header_socklen_t=no
26199
26200
26201 fi
26202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203
26204
26205 fi
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26207 $as_echo "$ba_cv_header_socklen_t" >&6; }
26208 test $ba_cv_header_socklen_t = yes &&
26209 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26210
26211
26212 ac_ext=cpp
26213 ac_cpp='$CXXCPP $CPPFLAGS'
26214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26217
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26219 $as_echo_n "checking for ioctl_req_t... " >&6; }
26220 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26221   $as_echo_n "(cached) " >&6
26222 else
26223
26224        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h.  */
26226
26227               #include <unistd.h>
26228               #include <sys/types.h>
26229               #include <sys/ioctl.h>
26230
26231 int
26232 main ()
26233 {
26234
26235               int (*d_ioctl)(int fd, unsigned long int request, ...);
26236               d_ioctl = ::ioctl;
26237
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 if ac_fn_cxx_try_compile "$LINENO"; then :
26243
26244              ba_cv_header_ioctl_req_t=yes
26245
26246 else
26247
26248              ba_cv_header_ioctl_req_t=no
26249
26250
26251 fi
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253
26254
26255 fi
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26257 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26258 test $ba_cv_header_ioctl_req_t = yes &&
26259 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26260
26261
26262 ac_ext=c
26263 ac_cpp='$CPP $CPPFLAGS'
26264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26267
26268
26269 ac_ext=cpp
26270 ac_cpp='$CXXCPP $CPPFLAGS'
26271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26274
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26276 $as_echo_n "checking for typeof... " >&6; }
26277 if test "${ba_cv_have_typeof+set}" = set; then :
26278   $as_echo_n "(cached) " >&6
26279 else
26280
26281        if test "$cross_compiling" = yes; then :
26282
26283               ba_cv_have_typeof=no
26284
26285
26286 else
26287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26288 /* end confdefs.h.  */
26289
26290               main(){char *a = 0; a = (typeof a)a;}
26291
26292 _ACEOF
26293 if ac_fn_cxx_try_run "$LINENO"; then :
26294
26295               ba_cv_have_typeof=yes
26296
26297 else
26298
26299               ba_cv_have_typeof=no
26300
26301 fi
26302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26303   conftest.$ac_objext conftest.beam conftest.$ac_ext
26304 fi
26305
26306
26307
26308 fi
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26310 $as_echo "$ba_cv_have_typeof" >&6; }
26311 test $ba_cv_have_typeof = yes &&
26312 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26313
26314 ac_ext=c
26315 ac_cpp='$CPP $CPPFLAGS'
26316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26319
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26322 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26323 if test "${ac_cv_c_const+set}" = set; then :
26324   $as_echo_n "(cached) " >&6
26325 else
26326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h.  */
26328
26329 int
26330 main ()
26331 {
26332 /* FIXME: Include the comments suggested by Paul. */
26333 #ifndef __cplusplus
26334   /* Ultrix mips cc rejects this.  */
26335   typedef int charset[2];
26336   const charset cs;
26337   /* SunOS 4.1.1 cc rejects this.  */
26338   char const *const *pcpcc;
26339   char **ppc;
26340   /* NEC SVR4.0.2 mips cc rejects this.  */
26341   struct point {int x, y;};
26342   static struct point const zero = {0,0};
26343   /* AIX XL C 1.02.0.0 rejects this.
26344      It does not let you subtract one const X* pointer from another in
26345      an arm of an if-expression whose if-part is not a constant
26346      expression */
26347   const char *g = "string";
26348   pcpcc = &g + (g ? g-g : 0);
26349   /* HPUX 7.0 cc rejects these. */
26350   ++pcpcc;
26351   ppc = (char**) pcpcc;
26352   pcpcc = (char const *const *) ppc;
26353   { /* SCO 3.2v4 cc rejects this.  */
26354     char *t;
26355     char const *s = 0 ? (char *) 0 : (char const *) 0;
26356
26357     *t++ = 0;
26358     if (s) return 0;
26359   }
26360   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26361     int x[] = {25, 17};
26362     const int *foo = &x[0];
26363     ++foo;
26364   }
26365   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26366     typedef const int *iptr;
26367     iptr p = 0;
26368     ++p;
26369   }
26370   { /* AIX XL C 1.02.0.0 rejects this saying
26371        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26372     struct s { int j; const int *ap[3]; };
26373     struct s *b; b->j = 5;
26374   }
26375   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26376     const int foo = 10;
26377     if (!foo) return 0;
26378   }
26379   return !cs[0] && !zero.x;
26380 #endif
26381
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 if ac_fn_c_try_compile "$LINENO"; then :
26387   ac_cv_c_const=yes
26388 else
26389   ac_cv_c_const=no
26390 fi
26391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26392 fi
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26394 $as_echo "$ac_cv_c_const" >&6; }
26395 if test $ac_cv_c_const = no; then
26396
26397 $as_echo "#define const /**/" >>confdefs.h
26398
26399 fi
26400
26401
26402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26404 if test "${ac_cv_c_bigendian+set}" = set; then :
26405   $as_echo_n "(cached) " >&6
26406 else
26407   ac_cv_c_bigendian=unknown
26408     # See if we're dealing with a universal compiler.
26409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h.  */
26411 #ifndef __APPLE_CC__
26412                not a universal capable compiler
26413              #endif
26414              typedef int dummy;
26415
26416 _ACEOF
26417 if ac_fn_c_try_compile "$LINENO"; then :
26418
26419         # Check for potential -arch flags.  It is not universal unless
26420         # there are at least two -arch flags with different values.
26421         ac_arch=
26422         ac_prev=
26423         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26424          if test -n "$ac_prev"; then
26425            case $ac_word in
26426              i?86 | x86_64 | ppc | ppc64)
26427                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26428                  ac_arch=$ac_word
26429                else
26430                  ac_cv_c_bigendian=universal
26431                  break
26432                fi
26433                ;;
26434            esac
26435            ac_prev=
26436          elif test "x$ac_word" = "x-arch"; then
26437            ac_prev=arch
26438          fi
26439        done
26440 fi
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442     if test $ac_cv_c_bigendian = unknown; then
26443       # See if sys/param.h defines the BYTE_ORDER macro.
26444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h.  */
26446 #include <sys/types.h>
26447              #include <sys/param.h>
26448
26449 int
26450 main ()
26451 {
26452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26453                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26454                      && LITTLE_ENDIAN)
26455               bogus endian macros
26456              #endif
26457
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 if ac_fn_c_try_compile "$LINENO"; then :
26463   # It does; now see whether it defined to BIG_ENDIAN or not.
26464          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26465 /* end confdefs.h.  */
26466 #include <sys/types.h>
26467                 #include <sys/param.h>
26468
26469 int
26470 main ()
26471 {
26472 #if BYTE_ORDER != BIG_ENDIAN
26473                  not big endian
26474                 #endif
26475
26476   ;
26477   return 0;
26478 }
26479 _ACEOF
26480 if ac_fn_c_try_compile "$LINENO"; then :
26481   ac_cv_c_bigendian=yes
26482 else
26483   ac_cv_c_bigendian=no
26484 fi
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486 fi
26487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26488     fi
26489     if test $ac_cv_c_bigendian = unknown; then
26490       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h.  */
26493 #include <limits.h>
26494
26495 int
26496 main ()
26497 {
26498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26499               bogus endian macros
26500              #endif
26501
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 if ac_fn_c_try_compile "$LINENO"; then :
26507   # It does; now see whether it defined to _BIG_ENDIAN or not.
26508          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26509 /* end confdefs.h.  */
26510 #include <limits.h>
26511
26512 int
26513 main ()
26514 {
26515 #ifndef _BIG_ENDIAN
26516                  not big endian
26517                 #endif
26518
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 if ac_fn_c_try_compile "$LINENO"; then :
26524   ac_cv_c_bigendian=yes
26525 else
26526   ac_cv_c_bigendian=no
26527 fi
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 fi
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531     fi
26532     if test $ac_cv_c_bigendian = unknown; then
26533       # Compile a test program.
26534       if test "$cross_compiling" = yes; then :
26535   # Try to guess by grepping values from an object file.
26536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26537 /* end confdefs.h.  */
26538 short int ascii_mm[] =
26539                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26540                 short int ascii_ii[] =
26541                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26542                 int use_ascii (int i) {
26543                   return ascii_mm[i] + ascii_ii[i];
26544                 }
26545                 short int ebcdic_ii[] =
26546                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26547                 short int ebcdic_mm[] =
26548                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26549                 int use_ebcdic (int i) {
26550                   return ebcdic_mm[i] + ebcdic_ii[i];
26551                 }
26552                 extern int foo;
26553
26554 int
26555 main ()
26556 {
26557 return use_ascii (foo) == use_ebcdic (foo);
26558   ;
26559   return 0;
26560 }
26561 _ACEOF
26562 if ac_fn_c_try_compile "$LINENO"; then :
26563   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26564               ac_cv_c_bigendian=yes
26565             fi
26566             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26567               if test "$ac_cv_c_bigendian" = unknown; then
26568                 ac_cv_c_bigendian=no
26569               else
26570                 # finding both strings is unlikely to happen, but who knows?
26571                 ac_cv_c_bigendian=unknown
26572               fi
26573             fi
26574 fi
26575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26576 else
26577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h.  */
26579 $ac_includes_default
26580 int
26581 main ()
26582 {
26583
26584              /* Are we little or big endian?  From Harbison&Steele.  */
26585              union
26586              {
26587                long int l;
26588                char c[sizeof (long int)];
26589              } u;
26590              u.l = 1;
26591              return u.c[sizeof (long int) - 1] == 1;
26592
26593   ;
26594   return 0;
26595 }
26596 _ACEOF
26597 if ac_fn_c_try_run "$LINENO"; then :
26598   ac_cv_c_bigendian=no
26599 else
26600   ac_cv_c_bigendian=yes
26601 fi
26602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26603   conftest.$ac_objext conftest.beam conftest.$ac_ext
26604 fi
26605
26606     fi
26607 fi
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26609 $as_echo "$ac_cv_c_bigendian" >&6; }
26610  case $ac_cv_c_bigendian in #(
26611    yes)
26612
26613 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26614 ;; #(
26615    no)
26616
26617 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26618  ;; #(
26619    universal)
26620
26621 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26622
26623      ;; #(
26624    *)
26625      as_fn_error $? "unknown endianness
26626  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
26627  esac
26628
26629
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26631 $as_echo_n "checking how to get filesystem type... " >&6; }
26632 fstype=no
26633 # The order of these tests is important.
26634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h.  */
26636
26637        #include <sys/statvfs.h>
26638        #include <sys/fstyp.h>
26639
26640 _ACEOF
26641 if ac_fn_c_try_cpp "$LINENO"; then :
26642   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26643  fstype=SVR4
26644
26645 fi
26646 rm -f conftest.err conftest.i conftest.$ac_ext
26647 if test $fstype = no; then
26648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649 /* end confdefs.h.  */
26650
26651           #include <sys/statfs.h>
26652           #include <sys/fstyp.h>
26653
26654 _ACEOF
26655 if ac_fn_c_try_cpp "$LINENO"; then :
26656   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26657  fstype=SVR3
26658
26659 fi
26660 rm -f conftest.err conftest.i conftest.$ac_ext
26661 fi
26662 if test $fstype = no; then
26663    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h.  */
26665
26666           #include <sys/statfs.h>
26667           #include <sys/vmount.h>
26668
26669 _ACEOF
26670 if ac_fn_c_try_cpp "$LINENO"; then :
26671   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26672  fstype=AIX
26673
26674 fi
26675 rm -f conftest.err conftest.i conftest.$ac_ext
26676 fi
26677 if test $fstype = no; then
26678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26679 /* end confdefs.h.  */
26680
26681           #include <mntent.h>
26682
26683 _ACEOF
26684 if ac_fn_c_try_cpp "$LINENO"; then :
26685   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26686  fstype=4.3BSD
26687
26688 fi
26689 rm -f conftest.err conftest.i conftest.$ac_ext
26690 fi
26691 if test $fstype = no; then
26692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h.  */
26694 #include <sys/mount.h>
26695
26696 _ACEOF
26697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26698   $EGREP "f_type;" >/dev/null 2>&1; then :
26699   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26700  fstype=4.4BSD/OSF1
26701 fi
26702 rm -f conftest*
26703
26704 fi
26705 if test $fstype = no; then
26706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h.  */
26708
26709           #include <sys/mount.h>
26710           #include <sys/fs_types.h>
26711
26712 _ACEOF
26713 if ac_fn_c_try_cpp "$LINENO"; then :
26714   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26715  fstype=Ultrix
26716
26717 fi
26718 rm -f conftest.err conftest.i conftest.$ac_ext
26719 fi
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26721 $as_echo "$fstype" >&6; }
26722
26723 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26724 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26725
26726 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26727
26728 fi
26729
26730
26731
26732 ac_ext=cpp
26733 ac_cpp='$CXXCPP $CPPFLAGS'
26734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26737
26738 for ac_func in backtrace
26739 do :
26740   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26741 if test "x$ac_cv_func_backtrace" = x""yes; then :
26742   cat >>confdefs.h <<_ACEOF
26743 #define HAVE_BACKTRACE 1
26744 _ACEOF
26745
26746 fi
26747 done
26748
26749 ac_ext=c
26750 ac_cpp='$CPP $CPPFLAGS'
26751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26754
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26757 $as_echo_n "checking return type of signal handlers... " >&6; }
26758 if test "${ac_cv_type_signal+set}" = set; then :
26759   $as_echo_n "(cached) " >&6
26760 else
26761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26762 /* end confdefs.h.  */
26763 #include <sys/types.h>
26764 #include <signal.h>
26765
26766 int
26767 main ()
26768 {
26769 return *(signal (0, 0)) (0) == 1;
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 if ac_fn_c_try_compile "$LINENO"; then :
26775   ac_cv_type_signal=int
26776 else
26777   ac_cv_type_signal=void
26778 fi
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26782 $as_echo "$ac_cv_type_signal" >&6; }
26783
26784 cat >>confdefs.h <<_ACEOF
26785 #define RETSIGTYPE $ac_cv_type_signal
26786 _ACEOF
26787
26788
26789
26790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26791 $as_echo_n "checking for type of signal functions... " >&6; }
26792   if test "${bash_cv_signal_vintage+set}" = set; then :
26793   $as_echo_n "(cached) " >&6
26794 else
26795
26796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797 /* end confdefs.h.  */
26798 #include <signal.h>
26799 int
26800 main ()
26801 {
26802
26803       sigset_t ss;
26804       struct sigaction sa;
26805       sigemptyset(&ss); sigsuspend(&ss);
26806       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26807       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26808
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 if ac_fn_c_try_link "$LINENO"; then :
26814   bash_cv_signal_vintage="posix"
26815 else
26816
26817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26818 /* end confdefs.h.  */
26819 #include <signal.h>
26820 int
26821 main ()
26822 {
26823
26824           int mask = sigmask(SIGINT);
26825           sigsetmask(mask); sigblock(mask); sigpause(mask);
26826
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 if ac_fn_c_try_link "$LINENO"; then :
26832   bash_cv_signal_vintage="4.2bsd"
26833 else
26834
26835         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h.  */
26837
26838           #include <signal.h>
26839           RETSIGTYPE foo() { }
26840 int
26841 main ()
26842 {
26843
26844                   int mask = sigmask(SIGINT);
26845                   sigset(SIGINT, foo); sigrelse(SIGINT);
26846                   sighold(SIGINT); sigpause(SIGINT);
26847
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 if ac_fn_c_try_link "$LINENO"; then :
26853   bash_cv_signal_vintage="svr3"
26854 else
26855   bash_cv_signal_vintage="v7"
26856
26857 fi
26858 rm -f core conftest.err conftest.$ac_objext \
26859     conftest$ac_exeext conftest.$ac_ext
26860
26861 fi
26862 rm -f core conftest.err conftest.$ac_objext \
26863     conftest$ac_exeext conftest.$ac_ext
26864
26865 fi
26866 rm -f core conftest.err conftest.$ac_objext \
26867     conftest$ac_exeext conftest.$ac_ext
26868
26869 fi
26870
26871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26872 $as_echo "$bash_cv_signal_vintage" >&6; }
26873   if test "$bash_cv_signal_vintage" = "posix"; then
26874     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26875
26876   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26877     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26878
26879   elif test "$bash_cv_signal_vintage" = "svr3"; then
26880     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26881
26882   fi
26883
26884 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26885 if test "x$ac_cv_type_mode_t" = x""yes; then :
26886
26887 else
26888
26889 cat >>confdefs.h <<_ACEOF
26890 #define mode_t int
26891 _ACEOF
26892
26893 fi
26894
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26896 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26897 if test "${ac_cv_type_uid_t+set}" = set; then :
26898   $as_echo_n "(cached) " >&6
26899 else
26900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h.  */
26902 #include <sys/types.h>
26903
26904 _ACEOF
26905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26906   $EGREP "uid_t" >/dev/null 2>&1; then :
26907   ac_cv_type_uid_t=yes
26908 else
26909   ac_cv_type_uid_t=no
26910 fi
26911 rm -f conftest*
26912
26913 fi
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26915 $as_echo "$ac_cv_type_uid_t" >&6; }
26916 if test $ac_cv_type_uid_t = no; then
26917
26918 $as_echo "#define uid_t int" >>confdefs.h
26919
26920
26921 $as_echo "#define gid_t int" >>confdefs.h
26922
26923 fi
26924
26925 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26926 if test "x$ac_cv_type_size_t" = x""yes; then :
26927
26928 else
26929
26930 cat >>confdefs.h <<_ACEOF
26931 #define size_t unsigned int
26932 _ACEOF
26933
26934 fi
26935
26936 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26937 if test "x$ac_cv_type_pid_t" = x""yes; then :
26938
26939 else
26940
26941 cat >>confdefs.h <<_ACEOF
26942 #define pid_t int
26943 _ACEOF
26944
26945 fi
26946
26947 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26948 if test "x$ac_cv_type_off_t" = x""yes; then :
26949
26950 else
26951
26952 cat >>confdefs.h <<_ACEOF
26953 #define off_t long int
26954 _ACEOF
26955
26956 fi
26957
26958
26959   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26960 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26961
26962 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26963
26964 else
26965   for ac_type in 'int' 'long int' 'long long int'; do
26966        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26967 /* end confdefs.h.  */
26968 $ac_includes_default
26969 int
26970 main ()
26971 {
26972 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26973 test_array [0] = 0
26974
26975   ;
26976   return 0;
26977 }
26978 _ACEOF
26979 if ac_fn_c_try_compile "$LINENO"; then :
26980
26981 cat >>confdefs.h <<_ACEOF
26982 #define intptr_t $ac_type
26983 _ACEOF
26984
26985           ac_type=
26986 fi
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988        test -z "$ac_type" && break
26989      done
26990 fi
26991
26992
26993
26994   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26995 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26996
26997 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26998
26999 else
27000   for ac_type in 'unsigned int' 'unsigned long int' \
27001         'unsigned long long int'; do
27002        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h.  */
27004 $ac_includes_default
27005 int
27006 main ()
27007 {
27008 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27009 test_array [0] = 0
27010
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 if ac_fn_c_try_compile "$LINENO"; then :
27016
27017 cat >>confdefs.h <<_ACEOF
27018 #define uintptr_t $ac_type
27019 _ACEOF
27020
27021           ac_type=
27022 fi
27023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27024        test -z "$ac_type" && break
27025      done
27026 fi
27027
27028
27029 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27030 if test "x$ac_cv_type_ino_t" = x""yes; then :
27031
27032 else
27033
27034 cat >>confdefs.h <<_ACEOF
27035 #define ino_t unsigned long
27036 _ACEOF
27037
27038 fi
27039
27040 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27041 if test "x$ac_cv_type_dev_t" = x""yes; then :
27042
27043 else
27044
27045 cat >>confdefs.h <<_ACEOF
27046 #define dev_t unsigned long
27047 _ACEOF
27048
27049 fi
27050
27051 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27052 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27053
27054 else
27055
27056 cat >>confdefs.h <<_ACEOF
27057 #define daddr_t long
27058 _ACEOF
27059
27060 fi
27061
27062 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_major_t" = x""yes; then :
27064
27065 else
27066
27067 cat >>confdefs.h <<_ACEOF
27068 #define major_t int
27069 _ACEOF
27070
27071 fi
27072
27073 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_minor_t" = x""yes; then :
27075
27076 else
27077
27078 cat >>confdefs.h <<_ACEOF
27079 #define minor_t int
27080 _ACEOF
27081
27082 fi
27083
27084 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27086
27087 else
27088
27089 cat >>confdefs.h <<_ACEOF
27090 #define ssize_t int
27091 _ACEOF
27092
27093 fi
27094
27095 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27096 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27097
27098 cat >>confdefs.h <<_ACEOF
27099 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27100 _ACEOF
27101
27102
27103 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27104
27105 else
27106   case " $LIBOBJS " in
27107   *" fileblocks.$ac_objext "* ) ;;
27108   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27109  ;;
27110 esac
27111
27112 fi
27113
27114
27115 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27116 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27117
27118 cat >>confdefs.h <<_ACEOF
27119 #define HAVE_STRUCT_STAT_ST_RDEV 1
27120 _ACEOF
27121
27122
27123 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27124
27125 fi
27126
27127
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27129 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27130 if test "${ac_cv_struct_tm+set}" = set; then :
27131   $as_echo_n "(cached) " >&6
27132 else
27133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27134 /* end confdefs.h.  */
27135 #include <sys/types.h>
27136 #include <time.h>
27137
27138 int
27139 main ()
27140 {
27141 struct tm tm;
27142                                      int *p = &tm.tm_sec;
27143                                      return !p;
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 if ac_fn_c_try_compile "$LINENO"; then :
27149   ac_cv_struct_tm=time.h
27150 else
27151   ac_cv_struct_tm=sys/time.h
27152 fi
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27154 fi
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27156 $as_echo "$ac_cv_struct_tm" >&6; }
27157 if test $ac_cv_struct_tm = sys/time.h; then
27158
27159 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27160
27161 fi
27162
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27164 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27165 if test "${ac_cv_c_const+set}" = set; then :
27166   $as_echo_n "(cached) " >&6
27167 else
27168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27169 /* end confdefs.h.  */
27170
27171 int
27172 main ()
27173 {
27174 /* FIXME: Include the comments suggested by Paul. */
27175 #ifndef __cplusplus
27176   /* Ultrix mips cc rejects this.  */
27177   typedef int charset[2];
27178   const charset cs;
27179   /* SunOS 4.1.1 cc rejects this.  */
27180   char const *const *pcpcc;
27181   char **ppc;
27182   /* NEC SVR4.0.2 mips cc rejects this.  */
27183   struct point {int x, y;};
27184   static struct point const zero = {0,0};
27185   /* AIX XL C 1.02.0.0 rejects this.
27186      It does not let you subtract one const X* pointer from another in
27187      an arm of an if-expression whose if-part is not a constant
27188      expression */
27189   const char *g = "string";
27190   pcpcc = &g + (g ? g-g : 0);
27191   /* HPUX 7.0 cc rejects these. */
27192   ++pcpcc;
27193   ppc = (char**) pcpcc;
27194   pcpcc = (char const *const *) ppc;
27195   { /* SCO 3.2v4 cc rejects this.  */
27196     char *t;
27197     char const *s = 0 ? (char *) 0 : (char const *) 0;
27198
27199     *t++ = 0;
27200     if (s) return 0;
27201   }
27202   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27203     int x[] = {25, 17};
27204     const int *foo = &x[0];
27205     ++foo;
27206   }
27207   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27208     typedef const int *iptr;
27209     iptr p = 0;
27210     ++p;
27211   }
27212   { /* AIX XL C 1.02.0.0 rejects this saying
27213        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27214     struct s { int j; const int *ap[3]; };
27215     struct s *b; b->j = 5;
27216   }
27217   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27218     const int foo = 10;
27219     if (!foo) return 0;
27220   }
27221   return !cs[0] && !zero.x;
27222 #endif
27223
27224   ;
27225   return 0;
27226 }
27227 _ACEOF
27228 if ac_fn_c_try_compile "$LINENO"; then :
27229   ac_cv_c_const=yes
27230 else
27231   ac_cv_c_const=no
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 fi
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27236 $as_echo "$ac_cv_c_const" >&6; }
27237 if test $ac_cv_c_const = no; then
27238
27239 $as_echo "#define const /**/" >>confdefs.h
27240
27241 fi
27242
27243
27244 # The cast to long int works around a bug in the HP C Compiler
27245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27247 # This bug is HP SR number 8606223364.
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27249 $as_echo_n "checking size of char... " >&6; }
27250 if test "${ac_cv_sizeof_char+set}" = set; then :
27251   $as_echo_n "(cached) " >&6
27252 else
27253   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27254
27255 else
27256   if test "$ac_cv_type_char" = yes; then
27257      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27259 as_fn_error 77 "cannot compute sizeof (char)
27260 See \`config.log' for more details" "$LINENO" 5 ; }
27261    else
27262      ac_cv_sizeof_char=0
27263    fi
27264 fi
27265
27266 fi
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27268 $as_echo "$ac_cv_sizeof_char" >&6; }
27269
27270
27271
27272 cat >>confdefs.h <<_ACEOF
27273 #define SIZEOF_CHAR $ac_cv_sizeof_char
27274 _ACEOF
27275
27276
27277 # The cast to long int works around a bug in the HP C Compiler
27278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27280 # This bug is HP SR number 8606223364.
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27282 $as_echo_n "checking size of short int... " >&6; }
27283 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27284   $as_echo_n "(cached) " >&6
27285 else
27286   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27287
27288 else
27289   if test "$ac_cv_type_short_int" = yes; then
27290      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27292 as_fn_error 77 "cannot compute sizeof (short int)
27293 See \`config.log' for more details" "$LINENO" 5 ; }
27294    else
27295      ac_cv_sizeof_short_int=0
27296    fi
27297 fi
27298
27299 fi
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27301 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27302
27303
27304
27305 cat >>confdefs.h <<_ACEOF
27306 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27307 _ACEOF
27308
27309
27310 # The cast to long int works around a bug in the HP C Compiler
27311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27313 # This bug is HP SR number 8606223364.
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27315 $as_echo_n "checking size of int... " >&6; }
27316 if test "${ac_cv_sizeof_int+set}" = set; then :
27317   $as_echo_n "(cached) " >&6
27318 else
27319   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27320
27321 else
27322   if test "$ac_cv_type_int" = yes; then
27323      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27325 as_fn_error 77 "cannot compute sizeof (int)
27326 See \`config.log' for more details" "$LINENO" 5 ; }
27327    else
27328      ac_cv_sizeof_int=0
27329    fi
27330 fi
27331
27332 fi
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27334 $as_echo "$ac_cv_sizeof_int" >&6; }
27335
27336
27337
27338 cat >>confdefs.h <<_ACEOF
27339 #define SIZEOF_INT $ac_cv_sizeof_int
27340 _ACEOF
27341
27342
27343 # The cast to long int works around a bug in the HP C Compiler
27344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27346 # This bug is HP SR number 8606223364.
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27348 $as_echo_n "checking size of long int... " >&6; }
27349 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27350   $as_echo_n "(cached) " >&6
27351 else
27352   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27353
27354 else
27355   if test "$ac_cv_type_long_int" = yes; then
27356      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 as_fn_error 77 "cannot compute sizeof (long int)
27359 See \`config.log' for more details" "$LINENO" 5 ; }
27360    else
27361      ac_cv_sizeof_long_int=0
27362    fi
27363 fi
27364
27365 fi
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27367 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27368
27369
27370
27371 cat >>confdefs.h <<_ACEOF
27372 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27373 _ACEOF
27374
27375
27376 # The cast to long int works around a bug in the HP C Compiler
27377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27379 # This bug is HP SR number 8606223364.
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27381 $as_echo_n "checking size of long long int... " >&6; }
27382 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27383   $as_echo_n "(cached) " >&6
27384 else
27385   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27386
27387 else
27388   if test "$ac_cv_type_long_long_int" = yes; then
27389      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27391 as_fn_error 77 "cannot compute sizeof (long long int)
27392 See \`config.log' for more details" "$LINENO" 5 ; }
27393    else
27394      ac_cv_sizeof_long_long_int=0
27395    fi
27396 fi
27397
27398 fi
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27400 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27401
27402
27403
27404 cat >>confdefs.h <<_ACEOF
27405 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27406 _ACEOF
27407
27408
27409 # The cast to long int works around a bug in the HP C Compiler
27410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27412 # This bug is HP SR number 8606223364.
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27414 $as_echo_n "checking size of int *... " >&6; }
27415 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27416   $as_echo_n "(cached) " >&6
27417 else
27418   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27419
27420 else
27421   if test "$ac_cv_type_int_p" = yes; then
27422      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 as_fn_error 77 "cannot compute sizeof (int *)
27425 See \`config.log' for more details" "$LINENO" 5 ; }
27426    else
27427      ac_cv_sizeof_int_p=0
27428    fi
27429 fi
27430
27431 fi
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27433 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27434
27435
27436
27437 cat >>confdefs.h <<_ACEOF
27438 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27439 _ACEOF
27440
27441
27442
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27444 $as_echo_n "checking for u_int type... " >&6; }
27445 if test "${ac_cv_have_u_int+set}" = set; then :
27446   $as_echo_n "(cached) " >&6
27447 else
27448
27449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h.  */
27451
27452               #include <sys/types.h>
27453
27454 int
27455 main ()
27456 {
27457
27458               u_int a; a = 1;
27459
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 if ac_fn_c_try_compile "$LINENO"; then :
27465
27466               ac_cv_have_u_int="yes"
27467
27468 else
27469
27470               ac_cv_have_u_int="no"
27471
27472
27473 fi
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27475
27476
27477 fi
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27479 $as_echo "$ac_cv_have_u_int" >&6; }
27480 if test "x$ac_cv_have_u_int" = "xyes" ; then
27481    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27482
27483    have_u_int=1
27484 fi
27485
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27487 $as_echo_n "checking for intmax_t type... " >&6; }
27488 if test "${ac_cv_have_intmax_t+set}" = set; then :
27489   $as_echo_n "(cached) " >&6
27490 else
27491
27492        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27493 /* end confdefs.h.  */
27494
27495               #include <sys/types.h>
27496
27497 int
27498 main ()
27499 {
27500
27501               intmax_t a; a = 1;
27502
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 if ac_fn_c_try_compile "$LINENO"; then :
27508
27509               ac_cv_have_intmax_t="yes"
27510
27511 else
27512
27513               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h.  */
27515
27516                      #include <stdint.h>
27517
27518 int
27519 main ()
27520 {
27521
27522                      intmax_t a; a = 1;
27523
27524   ;
27525   return 0;
27526 }
27527 _ACEOF
27528 if ac_fn_c_try_compile "$LINENO"; then :
27529
27530                      ac_cv_have_intmax_t="yes"
27531
27532 else
27533
27534                      ac_cv_have_intmax_t="no"
27535
27536
27537 fi
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539
27540
27541 fi
27542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27543
27544
27545 fi
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27547 $as_echo "$ac_cv_have_intmax_t" >&6; }
27548 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27549    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27550
27551    have_intmax_t=1
27552 fi
27553
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27555 $as_echo_n "checking for u_intmax_t type... " >&6; }
27556 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27557   $as_echo_n "(cached) " >&6
27558 else
27559
27560        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561 /* end confdefs.h.  */
27562
27563               #include <sys/types.h>
27564
27565 int
27566 main ()
27567 {
27568
27569               u_intmax_t a; a = 1;
27570
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 if ac_fn_c_try_compile "$LINENO"; then :
27576
27577               ac_cv_have_u_intmax_t="yes"
27578
27579 else
27580
27581               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h.  */
27583
27584                      #include <stdint.h>
27585
27586 int
27587 main ()
27588 {
27589
27590                     u_intmax_t a; a = 1;
27591
27592   ;
27593   return 0;
27594 }
27595 _ACEOF
27596 if ac_fn_c_try_compile "$LINENO"; then :
27597
27598                     ac_cv_have_u_intmax_t="yes"
27599
27600 else
27601
27602                     ac_cv_have_u_intmax_t="no"
27603
27604
27605 fi
27606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607
27608
27609 fi
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27611
27612
27613 fi
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27615 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27616 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27617    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27618
27619    have_u_intmax_t=1
27620 fi
27621
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27623 $as_echo_n "checking for intXX_t types... " >&6; }
27624 if test "${ac_cv_have_intxx_t+set}" = set; then :
27625   $as_echo_n "(cached) " >&6
27626 else
27627
27628        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h.  */
27630
27631               #include <sys/types.h>
27632
27633 int
27634 main ()
27635 {
27636
27637               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27638
27639   ;
27640   return 0;
27641 }
27642 _ACEOF
27643 if ac_fn_c_try_compile "$LINENO"; then :
27644
27645               ac_cv_have_intxx_t="yes"
27646
27647 else
27648
27649               ac_cv_have_intxx_t="no"
27650
27651
27652 fi
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654
27655
27656 fi
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27658 $as_echo "$ac_cv_have_intxx_t" >&6; }
27659 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27660    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27661
27662    have_intxx_t=1
27663 fi
27664
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27666 $as_echo_n "checking for int64_t type... " >&6; }
27667 if test "${ac_cv_have_int64_t+set}" = set; then :
27668   $as_echo_n "(cached) " >&6
27669 else
27670
27671        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h.  */
27673
27674               #include <sys/types.h>
27675
27676 int
27677 main ()
27678 {
27679
27680               int64_t a; a = 1;
27681
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 if ac_fn_c_try_compile "$LINENO"; then :
27687
27688               ac_cv_have_int64_t="yes"
27689
27690 else
27691
27692               ac_cv_have_int64_t="no"
27693
27694
27695 fi
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697
27698
27699 fi
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27701 $as_echo "$ac_cv_have_int64_t" >&6; }
27702 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27703    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27704
27705    have_int64_t=1
27706 fi
27707
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27709 $as_echo_n "checking for u_intXX_t types... " >&6; }
27710 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27711   $as_echo_n "(cached) " >&6
27712 else
27713
27714        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27715 /* end confdefs.h.  */
27716
27717               #include <sys/types.h>
27718
27719 int
27720 main ()
27721 {
27722
27723               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27724
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 if ac_fn_c_try_compile "$LINENO"; then :
27730
27731              ac_cv_have_u_intxx_t="yes"
27732
27733 else
27734
27735              ac_cv_have_u_intxx_t="no"
27736
27737
27738 fi
27739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27740
27741
27742 fi
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27744 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27745 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27746    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27747
27748    have_u_intxx_t=1
27749 fi
27750
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27752 $as_echo_n "checking for u_int64_t types... " >&6; }
27753 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27754   $as_echo_n "(cached) " >&6
27755 else
27756
27757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27758 /* end confdefs.h.  */
27759
27760               #include <sys/types.h>
27761
27762 int
27763 main ()
27764 {
27765
27766               u_int64_t a; a = 1;
27767
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 if ac_fn_c_try_compile "$LINENO"; then :
27773
27774              ac_cv_have_u_int64_t="yes"
27775
27776 else
27777
27778              ac_cv_have_u_int64_t="no"
27779
27780
27781 fi
27782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783
27784
27785 fi
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27787 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27788 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27789    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27790
27791    have_u_int64_t=1
27792 fi
27793
27794 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27795     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27796 then
27797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27798 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h.  */
27801
27802           #include <sys/bitypes.h>
27803
27804 int
27805 main ()
27806 {
27807
27808           int8_t a; int16_t b; int32_t c;
27809           u_int8_t e; u_int16_t f; u_int32_t g;
27810           a = b = c = e = f = g = 1;
27811
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 if ac_fn_c_try_compile "$LINENO"; then :
27817
27818           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27819
27820           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27821
27822           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27823
27824           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27825 $as_echo "yes" >&6; }
27826
27827 else
27828
27829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27830 $as_echo "no" >&6; }
27831
27832
27833 fi
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835 fi
27836
27837 if test -z "$have_u_intxx_t" ; then
27838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27839 $as_echo_n "checking for uintXX_t types... " >&6; }
27840 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27841   $as_echo_n "(cached) " >&6
27842 else
27843
27844           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h.  */
27846
27847                  #include <sys/types.h>
27848
27849 int
27850 main ()
27851 {
27852
27853                  uint8_t a; uint16_t b;
27854                  uint32_t c; a = b = c = 1;
27855
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 if ac_fn_c_try_compile "$LINENO"; then :
27861
27862                 ac_cv_have_uintxx_t="yes"
27863
27864 else
27865
27866                 ac_cv_have_uintxx_t="no"
27867
27868
27869 fi
27870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27871
27872
27873 fi
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27875 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27876    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27877       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27878
27879    fi
27880 fi
27881
27882 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27883     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27884 then
27885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27886 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h.  */
27889
27890           #include <sys/bitypes.h>
27891
27892 int
27893 main ()
27894 {
27895
27896           int64_t a; u_int64_t b;
27897           a = b = 1;
27898
27899   ;
27900   return 0;
27901 }
27902 _ACEOF
27903 if ac_fn_c_try_compile "$LINENO"; then :
27904
27905           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27906
27907           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27908
27909           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27910 $as_echo "yes" >&6; }
27911
27912 else
27913
27914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915 $as_echo "no" >&6; }
27916
27917
27918 fi
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27920 fi
27921
27922 if (test -z "$have_uintxx_t" && \
27923     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27924 then
27925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27926 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27928 /* end confdefs.h.  */
27929
27930           #include <sys/bitypes.h>
27931
27932 int
27933 main ()
27934 {
27935
27936           uint8_t a; uint16_t b;
27937           uint32_t c; a = b = c = 1;
27938
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 if ac_fn_c_try_compile "$LINENO"; then :
27944
27945           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27946
27947           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27948 $as_echo "yes" >&6; }
27949
27950 else
27951
27952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27954
27955
27956 fi
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 fi
27959
27960 for ac_func in \
27961    fork \
27962    getcwd \
27963    gethostname \
27964    getpid \
27965    gettimeofday \
27966    setpgid \
27967    setpgrp \
27968    setsid \
27969    signal \
27970    strerror \
27971    strncmp \
27972    strncpy \
27973    vfprintf \
27974
27975 do :
27976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27979   cat >>confdefs.h <<_ACEOF
27980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27981 _ACEOF
27982
27983 else
27984   echo 'configure: cannot find needed function.'; exit 1
27985
27986 fi
27987 done
27988
27989
27990 for ac_func in getpagesize
27991 do :
27992   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27993 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27994   cat >>confdefs.h <<_ACEOF
27995 #define HAVE_GETPAGESIZE 1
27996 _ACEOF
27997
27998 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27999
28000 fi
28001 done
28002
28003 for ac_func in malloc_trim
28004 do :
28005   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28006 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28007   cat >>confdefs.h <<_ACEOF
28008 #define HAVE_MALLOC_TRIM 1
28009 _ACEOF
28010
28011 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28012
28013 fi
28014 done
28015
28016
28017 for ac_func in fchdir
28018 do :
28019   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28020 if test "x$ac_cv_func_fchdir" = x""yes; then :
28021   cat >>confdefs.h <<_ACEOF
28022 #define HAVE_FCHDIR 1
28023 _ACEOF
28024  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28025
28026 fi
28027 done
28028
28029 for ac_func in strtoll
28030 do :
28031   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28032 if test "x$ac_cv_func_strtoll" = x""yes; then :
28033   cat >>confdefs.h <<_ACEOF
28034 #define HAVE_STRTOLL 1
28035 _ACEOF
28036  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28037
28038 fi
28039 done
28040
28041 for ac_func in posix_fadvise
28042 do :
28043   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28044 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28045   cat >>confdefs.h <<_ACEOF
28046 #define HAVE_POSIX_FADVISE 1
28047 _ACEOF
28048
28049 fi
28050 done
28051
28052 for ac_func in fdatasync
28053 do :
28054   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28055 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28056   cat >>confdefs.h <<_ACEOF
28057 #define HAVE_FDATASYNC 1
28058 _ACEOF
28059
28060 fi
28061 done
28062
28063
28064 for ac_func in chflags
28065 do :
28066   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28067 if test "x$ac_cv_func_chflags" = x""yes; then :
28068   cat >>confdefs.h <<_ACEOF
28069 #define HAVE_CHFLAGS 1
28070 _ACEOF
28071
28072 fi
28073 done
28074
28075
28076 for ac_func in snprintf vsnprintf gethostid fseeko
28077 do :
28078   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28081   cat >>confdefs.h <<_ACEOF
28082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28083 _ACEOF
28084
28085 fi
28086 done
28087
28088
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28090 $as_echo_n "checking for va_copy... " >&6; }
28091 if test "${ba_cv_va_copy+set}" = set; then :
28092   $as_echo_n "(cached) " >&6
28093 else
28094
28095        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28096 /* end confdefs.h.  */
28097
28098               #include <stdarg.h>
28099               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28100               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28101
28102 int
28103 main ()
28104 {
28105
28106               call_use_va_copy(1,2,3)
28107
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 if ac_fn_c_try_link "$LINENO"; then :
28113
28114               ba_cv_va_copy=yes,
28115
28116 else
28117
28118               ba_cv_va_copy=no
28119
28120
28121 fi
28122 rm -f core conftest.err conftest.$ac_objext \
28123     conftest$ac_exeext conftest.$ac_ext
28124
28125
28126 fi
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28128 $as_echo "$ba_cv_va_copy" >&6; }
28129 test $ba_cv_va_copy = yes &&
28130 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28131
28132
28133 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28134 do :
28135   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28138   cat >>confdefs.h <<_ACEOF
28139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28140 _ACEOF
28141
28142 fi
28143 done
28144
28145
28146 # If resolver functions are not in libc check for -lnsl or -lresolv.
28147 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28148 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28150 $as_echo "using libc's resolver" >&6; }
28151 else
28152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28153 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28154 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28155   $as_echo_n "(cached) " >&6
28156 else
28157   ac_check_lib_save_LIBS=$LIBS
28158 LIBS="-lnsl  $LIBS"
28159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28160 /* end confdefs.h.  */
28161
28162 /* Override any GCC internal prototype to avoid an error.
28163    Use char because int might match the return type of a GCC
28164    builtin and then its argument prototype would still apply.  */
28165 #ifdef __cplusplus
28166 extern "C"
28167 #endif
28168 char gethostbyname_r ();
28169 int
28170 main ()
28171 {
28172 return gethostbyname_r ();
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 if ac_fn_c_try_link "$LINENO"; then :
28178   ac_cv_lib_nsl_gethostbyname_r=yes
28179 else
28180   ac_cv_lib_nsl_gethostbyname_r=no
28181 fi
28182 rm -f core conftest.err conftest.$ac_objext \
28183     conftest$ac_exeext conftest.$ac_ext
28184 LIBS=$ac_check_lib_save_LIBS
28185 fi
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28187 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28188 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28189   cat >>confdefs.h <<_ACEOF
28190 #define HAVE_LIBNSL 1
28191 _ACEOF
28192
28193   LIBS="-lnsl $LIBS"
28194
28195 fi
28196
28197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28198 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28199 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28200   $as_echo_n "(cached) " >&6
28201 else
28202   ac_check_lib_save_LIBS=$LIBS
28203 LIBS="-lresolv  $LIBS"
28204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205 /* end confdefs.h.  */
28206
28207 /* Override any GCC internal prototype to avoid an error.
28208    Use char because int might match the return type of a GCC
28209    builtin and then its argument prototype would still apply.  */
28210 #ifdef __cplusplus
28211 extern "C"
28212 #endif
28213 char gethostbyname_r ();
28214 int
28215 main ()
28216 {
28217 return gethostbyname_r ();
28218   ;
28219   return 0;
28220 }
28221 _ACEOF
28222 if ac_fn_c_try_link "$LINENO"; then :
28223   ac_cv_lib_resolv_gethostbyname_r=yes
28224 else
28225   ac_cv_lib_resolv_gethostbyname_r=no
28226 fi
28227 rm -f core conftest.err conftest.$ac_objext \
28228     conftest$ac_exeext conftest.$ac_ext
28229 LIBS=$ac_check_lib_save_LIBS
28230 fi
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28232 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28233 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28234   cat >>confdefs.h <<_ACEOF
28235 #define HAVE_LIBRESOLV 1
28236 _ACEOF
28237
28238   LIBS="-lresolv $LIBS"
28239
28240 fi
28241
28242 fi
28243
28244
28245 for ac_func in inet_pton
28246 do :
28247   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28248 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28249   cat >>confdefs.h <<_ACEOF
28250 #define HAVE_INET_PTON 1
28251 _ACEOF
28252  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28253
28254 fi
28255 done
28256
28257 for ac_func in inet_ntop
28258 do :
28259   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28260 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28261   cat >>confdefs.h <<_ACEOF
28262 #define HAVE_INET_NTOP 1
28263 _ACEOF
28264  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28265
28266 fi
28267 done
28268
28269 for ac_func in gethostbyname2
28270 do :
28271   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28272 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28273   cat >>confdefs.h <<_ACEOF
28274 #define HAVE_GETHOSTBYNAME2 1
28275 _ACEOF
28276  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28277
28278 fi
28279 done
28280
28281
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28283 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28284 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28285   $as_echo_n "(cached) " >&6
28286 else
28287
28288        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h.  */
28290
28291               #include <sys/socket.h>
28292
28293 int
28294 main ()
28295 {
28296
28297               struct sockaddr s; s.sa_len;
28298
28299   ;
28300   return 0;
28301 }
28302 _ACEOF
28303 if ac_fn_c_try_compile "$LINENO"; then :
28304
28305              ac_cv_struct_sockaddr_sa_len=yes
28306
28307 else
28308   ac_cv_struct_sockaddr_sa_len=no
28309
28310
28311 fi
28312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28313
28314
28315 fi
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28317 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28318
28319 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28320
28321 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28322
28323 fi
28324
28325 for ac_func in strftime
28326 do :
28327   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28328 if test "x$ac_cv_func_strftime" = x""yes; then :
28329   cat >>confdefs.h <<_ACEOF
28330 #define HAVE_STRFTIME 1
28331 _ACEOF
28332
28333 else
28334   # strftime is in -lintl on SCO UNIX.
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28336 $as_echo_n "checking for strftime in -lintl... " >&6; }
28337 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28338   $as_echo_n "(cached) " >&6
28339 else
28340   ac_check_lib_save_LIBS=$LIBS
28341 LIBS="-lintl  $LIBS"
28342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343 /* end confdefs.h.  */
28344
28345 /* Override any GCC internal prototype to avoid an error.
28346    Use char because int might match the return type of a GCC
28347    builtin and then its argument prototype would still apply.  */
28348 #ifdef __cplusplus
28349 extern "C"
28350 #endif
28351 char strftime ();
28352 int
28353 main ()
28354 {
28355 return strftime ();
28356   ;
28357   return 0;
28358 }
28359 _ACEOF
28360 if ac_fn_c_try_link "$LINENO"; then :
28361   ac_cv_lib_intl_strftime=yes
28362 else
28363   ac_cv_lib_intl_strftime=no
28364 fi
28365 rm -f core conftest.err conftest.$ac_objext \
28366     conftest$ac_exeext conftest.$ac_ext
28367 LIBS=$ac_check_lib_save_LIBS
28368 fi
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28370 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28371 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28372   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28373
28374 LIBS="-lintl $LIBS"
28375 fi
28376
28377 fi
28378 done
28379
28380 for ac_func in vprintf
28381 do :
28382   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28383 if test "x$ac_cv_func_vprintf" = x""yes; then :
28384   cat >>confdefs.h <<_ACEOF
28385 #define HAVE_VPRINTF 1
28386 _ACEOF
28387
28388 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28389 if test "x$ac_cv_func__doprnt" = x""yes; then :
28390
28391 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28392
28393 fi
28394
28395 fi
28396 done
28397
28398
28399 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28400 # for constant arguments.  Useless!
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28402 $as_echo_n "checking for working alloca.h... " >&6; }
28403 if test "${ac_cv_working_alloca_h+set}" = set; then :
28404   $as_echo_n "(cached) " >&6
28405 else
28406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28407 /* end confdefs.h.  */
28408 #include <alloca.h>
28409 int
28410 main ()
28411 {
28412 char *p = (char *) alloca (2 * sizeof (int));
28413                           if (p) return 0;
28414   ;
28415   return 0;
28416 }
28417 _ACEOF
28418 if ac_fn_c_try_link "$LINENO"; then :
28419   ac_cv_working_alloca_h=yes
28420 else
28421   ac_cv_working_alloca_h=no
28422 fi
28423 rm -f core conftest.err conftest.$ac_objext \
28424     conftest$ac_exeext conftest.$ac_ext
28425 fi
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28427 $as_echo "$ac_cv_working_alloca_h" >&6; }
28428 if test $ac_cv_working_alloca_h = yes; then
28429
28430 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28431
28432 fi
28433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28435 $as_echo_n "checking for alloca... " >&6; }
28436 if test "${ac_cv_func_alloca_works+set}" = set; then :
28437   $as_echo_n "(cached) " >&6
28438 else
28439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h.  */
28441 #ifdef __GNUC__
28442 # define alloca __builtin_alloca
28443 #else
28444 # ifdef _MSC_VER
28445 #  include <malloc.h>
28446 #  define alloca _alloca
28447 # else
28448 #  ifdef HAVE_ALLOCA_H
28449 #   include <alloca.h>
28450 #  else
28451 #   ifdef _AIX
28452  #pragma alloca
28453 #   else
28454 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28455 char *alloca ();
28456 #    endif
28457 #   endif
28458 #  endif
28459 # endif
28460 #endif
28461
28462 int
28463 main ()
28464 {
28465 char *p = (char *) alloca (1);
28466                                     if (p) return 0;
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 if ac_fn_c_try_link "$LINENO"; then :
28472   ac_cv_func_alloca_works=yes
28473 else
28474   ac_cv_func_alloca_works=no
28475 fi
28476 rm -f core conftest.err conftest.$ac_objext \
28477     conftest$ac_exeext conftest.$ac_ext
28478 fi
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28480 $as_echo "$ac_cv_func_alloca_works" >&6; }
28481
28482 if test $ac_cv_func_alloca_works = yes; then
28483
28484 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28485
28486 else
28487   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28488 # that cause trouble.  Some versions do not even contain alloca or
28489 # contain a buggy version.  If you still want to use their alloca,
28490 # use ar to extract alloca.o from them instead of compiling alloca.c.
28491
28492 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28493
28494 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28495
28496
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28498 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28499 if test "${ac_cv_os_cray+set}" = set; then :
28500   $as_echo_n "(cached) " >&6
28501 else
28502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28503 /* end confdefs.h.  */
28504 #if defined CRAY && ! defined CRAY2
28505 webecray
28506 #else
28507 wenotbecray
28508 #endif
28509
28510 _ACEOF
28511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28512   $EGREP "webecray" >/dev/null 2>&1; then :
28513   ac_cv_os_cray=yes
28514 else
28515   ac_cv_os_cray=no
28516 fi
28517 rm -f conftest*
28518
28519 fi
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28521 $as_echo "$ac_cv_os_cray" >&6; }
28522 if test $ac_cv_os_cray = yes; then
28523   for ac_func in _getb67 GETB67 getb67; do
28524     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28527
28528 cat >>confdefs.h <<_ACEOF
28529 #define CRAY_STACKSEG_END $ac_func
28530 _ACEOF
28531
28532     break
28533 fi
28534
28535   done
28536 fi
28537
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28539 $as_echo_n "checking stack direction for C alloca... " >&6; }
28540 if test "${ac_cv_c_stack_direction+set}" = set; then :
28541   $as_echo_n "(cached) " >&6
28542 else
28543   if test "$cross_compiling" = yes; then :
28544   ac_cv_c_stack_direction=0
28545 else
28546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28547 /* end confdefs.h.  */
28548 $ac_includes_default
28549 int
28550 find_stack_direction ()
28551 {
28552   static char *addr = 0;
28553   auto char dummy;
28554   if (addr == 0)
28555     {
28556       addr = &dummy;
28557       return find_stack_direction ();
28558     }
28559   else
28560     return (&dummy > addr) ? 1 : -1;
28561 }
28562
28563 int
28564 main ()
28565 {
28566   return find_stack_direction () < 0;
28567 }
28568 _ACEOF
28569 if ac_fn_c_try_run "$LINENO"; then :
28570   ac_cv_c_stack_direction=1
28571 else
28572   ac_cv_c_stack_direction=-1
28573 fi
28574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28575   conftest.$ac_objext conftest.beam conftest.$ac_ext
28576 fi
28577
28578 fi
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28580 $as_echo "$ac_cv_c_stack_direction" >&6; }
28581 cat >>confdefs.h <<_ACEOF
28582 #define STACK_DIRECTION $ac_cv_c_stack_direction
28583 _ACEOF
28584
28585
28586 fi
28587
28588 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28589 # -lseq on Dynix/PTX, -lgen on Unixware.
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28591 $as_echo_n "checking for library containing getmntent... " >&6; }
28592 if test "${ac_cv_search_getmntent+set}" = set; then :
28593   $as_echo_n "(cached) " >&6
28594 else
28595   ac_func_search_save_LIBS=$LIBS
28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28597 /* end confdefs.h.  */
28598
28599 /* Override any GCC internal prototype to avoid an error.
28600    Use char because int might match the return type of a GCC
28601    builtin and then its argument prototype would still apply.  */
28602 #ifdef __cplusplus
28603 extern "C"
28604 #endif
28605 char getmntent ();
28606 int
28607 main ()
28608 {
28609 return getmntent ();
28610   ;
28611   return 0;
28612 }
28613 _ACEOF
28614 for ac_lib in '' sun seq gen; do
28615   if test -z "$ac_lib"; then
28616     ac_res="none required"
28617   else
28618     ac_res=-l$ac_lib
28619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28620   fi
28621   if ac_fn_c_try_link "$LINENO"; then :
28622   ac_cv_search_getmntent=$ac_res
28623 fi
28624 rm -f core conftest.err conftest.$ac_objext \
28625     conftest$ac_exeext
28626   if test "${ac_cv_search_getmntent+set}" = set; then :
28627   break
28628 fi
28629 done
28630 if test "${ac_cv_search_getmntent+set}" = set; then :
28631
28632 else
28633   ac_cv_search_getmntent=no
28634 fi
28635 rm conftest.$ac_ext
28636 LIBS=$ac_func_search_save_LIBS
28637 fi
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28639 $as_echo "$ac_cv_search_getmntent" >&6; }
28640 ac_res=$ac_cv_search_getmntent
28641 if test "$ac_res" != no; then :
28642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28643   ac_cv_func_getmntent=yes
28644
28645 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28646
28647 else
28648   ac_cv_func_getmntent=no
28649 fi
28650
28651
28652 for ac_func in getmntinfo
28653 do :
28654   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28655 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28656   cat >>confdefs.h <<_ACEOF
28657 #define HAVE_GETMNTINFO 1
28658 _ACEOF
28659  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28660
28661 fi
28662 done
28663
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28665 $as_echo_n "checking whether closedir returns void... " >&6; }
28666 if test "${ac_cv_func_closedir_void+set}" = set; then :
28667   $as_echo_n "(cached) " >&6
28668 else
28669   if test "$cross_compiling" = yes; then :
28670   ac_cv_func_closedir_void=yes
28671 else
28672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28673 /* end confdefs.h.  */
28674 $ac_includes_default
28675 #include <$ac_header_dirent>
28676 #ifndef __cplusplus
28677 int closedir ();
28678 #endif
28679
28680 int
28681 main ()
28682 {
28683 return closedir (opendir (".")) != 0;
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 if ac_fn_c_try_run "$LINENO"; then :
28689   ac_cv_func_closedir_void=no
28690 else
28691   ac_cv_func_closedir_void=yes
28692 fi
28693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28694   conftest.$ac_objext conftest.beam conftest.$ac_ext
28695 fi
28696
28697 fi
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28699 $as_echo "$ac_cv_func_closedir_void" >&6; }
28700 if test $ac_cv_func_closedir_void = yes; then
28701
28702 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28703
28704 fi
28705
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28707 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28708 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28709   $as_echo_n "(cached) " >&6
28710 else
28711   if test "$cross_compiling" = yes; then :
28712   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28713 else
28714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28715 /* end confdefs.h.  */
28716 $ac_includes_default
28717 int
28718 main ()
28719 {
28720 /* If this system has a BSD-style setpgrp which takes arguments,
28721   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28722   exit successfully. */
28723   return setpgrp (1,1) != -1;
28724   ;
28725   return 0;
28726 }
28727 _ACEOF
28728 if ac_fn_c_try_run "$LINENO"; then :
28729   ac_cv_func_setpgrp_void=no
28730 else
28731   ac_cv_func_setpgrp_void=yes
28732 fi
28733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28734   conftest.$ac_objext conftest.beam conftest.$ac_ext
28735 fi
28736
28737 fi
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28739 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28740 if test $ac_cv_func_setpgrp_void = yes; then
28741
28742 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28743
28744 fi
28745             # AC_FUNC_FNMATCH    dnl use local version
28746
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28748 $as_echo_n "checking for gettext in -lintl... " >&6; }
28749 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28750   $as_echo_n "(cached) " >&6
28751 else
28752   ac_check_lib_save_LIBS=$LIBS
28753 LIBS="-lintl  $LIBS"
28754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28755 /* end confdefs.h.  */
28756
28757 /* Override any GCC internal prototype to avoid an error.
28758    Use char because int might match the return type of a GCC
28759    builtin and then its argument prototype would still apply.  */
28760 #ifdef __cplusplus
28761 extern "C"
28762 #endif
28763 char gettext ();
28764 int
28765 main ()
28766 {
28767 return gettext ();
28768   ;
28769   return 0;
28770 }
28771 _ACEOF
28772 if ac_fn_c_try_link "$LINENO"; then :
28773   ac_cv_lib_intl_gettext=yes
28774 else
28775   ac_cv_lib_intl_gettext=no
28776 fi
28777 rm -f core conftest.err conftest.$ac_objext \
28778     conftest$ac_exeext conftest.$ac_ext
28779 LIBS=$ac_check_lib_save_LIBS
28780 fi
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28782 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28783 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28784   LIBS="$LIBS -lintl"
28785 fi
28786
28787
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28789 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28790 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28791   $as_echo_n "(cached) " >&6
28792 else
28793   ac_check_lib_save_LIBS=$LIBS
28794 LIBS="-lsun  $LIBS"
28795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28796 /* end confdefs.h.  */
28797
28798 /* Override any GCC internal prototype to avoid an error.
28799    Use char because int might match the return type of a GCC
28800    builtin and then its argument prototype would still apply.  */
28801 #ifdef __cplusplus
28802 extern "C"
28803 #endif
28804 char getpwnam ();
28805 int
28806 main ()
28807 {
28808 return getpwnam ();
28809   ;
28810   return 0;
28811 }
28812 _ACEOF
28813 if ac_fn_c_try_link "$LINENO"; then :
28814   ac_cv_lib_sun_getpwnam=yes
28815 else
28816   ac_cv_lib_sun_getpwnam=no
28817 fi
28818 rm -f core conftest.err conftest.$ac_objext \
28819     conftest$ac_exeext conftest.$ac_ext
28820 LIBS=$ac_check_lib_save_LIBS
28821 fi
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28823 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28824 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28825   cat >>confdefs.h <<_ACEOF
28826 #define HAVE_LIBSUN 1
28827 _ACEOF
28828
28829   LIBS="-lsun $LIBS"
28830
28831 fi
28832
28833
28834 for ac_header in zlib.h
28835 do :
28836   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28837 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28838   cat >>confdefs.h <<_ACEOF
28839 #define HAVE_ZLIB_H 1
28840 _ACEOF
28841
28842 fi
28843
28844 done
28845
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28847 $as_echo_n "checking for deflate in -lz... " >&6; }
28848 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28849   $as_echo_n "(cached) " >&6
28850 else
28851   ac_check_lib_save_LIBS=$LIBS
28852 LIBS="-lz  $LIBS"
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h.  */
28855
28856 /* Override any GCC internal prototype to avoid an error.
28857    Use char because int might match the return type of a GCC
28858    builtin and then its argument prototype would still apply.  */
28859 #ifdef __cplusplus
28860 extern "C"
28861 #endif
28862 char deflate ();
28863 int
28864 main ()
28865 {
28866 return deflate ();
28867   ;
28868   return 0;
28869 }
28870 _ACEOF
28871 if ac_fn_c_try_link "$LINENO"; then :
28872   ac_cv_lib_z_deflate=yes
28873 else
28874   ac_cv_lib_z_deflate=no
28875 fi
28876 rm -f core conftest.err conftest.$ac_objext \
28877     conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28879 fi
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28881 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28882 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28883   ZLIBS="-lz"
28884 fi
28885
28886 have_zlib=no
28887 if test x$ZLIBS = x-lz; then
28888    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28889
28890    have_zlib=yes
28891 fi
28892
28893
28894 for ac_header in lzo/lzoconf.h
28895 do :
28896   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28897 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28898   cat >>confdefs.h <<_ACEOF
28899 #define HAVE_LZO_LZOCONF_H 1
28900 _ACEOF
28901
28902 fi
28903
28904 done
28905
28906 for ac_header in lzo/lzo1x.h
28907 do :
28908   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28909 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28910   cat >>confdefs.h <<_ACEOF
28911 #define HAVE_LZO_LZO1X_H 1
28912 _ACEOF
28913
28914 fi
28915
28916 done
28917
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28919 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28920 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28921   $as_echo_n "(cached) " >&6
28922 else
28923   ac_check_lib_save_LIBS=$LIBS
28924 LIBS="-llzo2  $LIBS"
28925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926 /* end confdefs.h.  */
28927
28928 /* Override any GCC internal prototype to avoid an error.
28929    Use char because int might match the return type of a GCC
28930    builtin and then its argument prototype would still apply.  */
28931 #ifdef __cplusplus
28932 extern "C"
28933 #endif
28934 char lzo1x_1_compress ();
28935 int
28936 main ()
28937 {
28938 return lzo1x_1_compress ();
28939   ;
28940   return 0;
28941 }
28942 _ACEOF
28943 if ac_fn_c_try_link "$LINENO"; then :
28944   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28945 else
28946   ac_cv_lib_lzo2_lzo1x_1_compress=no
28947 fi
28948 rm -f core conftest.err conftest.$ac_objext \
28949     conftest$ac_exeext conftest.$ac_ext
28950 LIBS=$ac_check_lib_save_LIBS
28951 fi
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28953 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28954 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
28955   LZOLIBS="-llzo2"
28956 fi
28957
28958 have_lzo=no
28959 if test x$LZOLIBS = x-llzo2; then
28960    $as_echo "#define HAVE_LZO 1" >>confdefs.h
28961
28962    have_lzo=yes
28963 fi
28964
28965
28966 support_acl=auto
28967 # Check whether --enable-acl was given.
28968 if test "${enable_acl+set}" = set; then :
28969   enableval=$enable_acl;
28970        if test x$enableval = xyes; then
28971           support_acl=yes
28972        elif test x$enableval = xno; then
28973           support_acl=no
28974        fi
28975
28976
28977 fi
28978
28979
28980 have_acl=no
28981 have_extended_acl=no
28982 if test x$support_acl = xyes -o x$support_acl = xauto; then
28983    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28984 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28985
28986 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28987
28988 fi
28989
28990
28991
28992             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28993 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28994
28995           have_acl=yes
28996
28997
28998 fi
28999
29000
29001             if test $have_acl = no; then
29002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29003 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29004 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29005   $as_echo_n "(cached) " >&6
29006 else
29007   ac_check_lib_save_LIBS=$LIBS
29008 LIBS="-lacl  $LIBS"
29009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29010 /* end confdefs.h.  */
29011
29012 /* Override any GCC internal prototype to avoid an error.
29013    Use char because int might match the return type of a GCC
29014    builtin and then its argument prototype would still apply.  */
29015 #ifdef __cplusplus
29016 extern "C"
29017 #endif
29018 char acl_get_file ();
29019 int
29020 main ()
29021 {
29022 return acl_get_file ();
29023   ;
29024   return 0;
29025 }
29026 _ACEOF
29027 if ac_fn_c_try_link "$LINENO"; then :
29028   ac_cv_lib_acl_acl_get_file=yes
29029 else
29030   ac_cv_lib_acl_acl_get_file=no
29031 fi
29032 rm -f core conftest.err conftest.$ac_objext \
29033     conftest$ac_exeext conftest.$ac_ext
29034 LIBS=$ac_check_lib_save_LIBS
29035 fi
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29037 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29038 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29039
29040              have_acl=yes
29041              FDLIBS="-lacl $FDLIBS"
29042
29043
29044 fi
29045
29046    fi
29047
29048                if test $have_acl = no -a \
29049            x${HAVE_OSF1_OS_TRUE} = x; then
29050       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29051 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29052 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29053   $as_echo_n "(cached) " >&6
29054 else
29055   ac_check_lib_save_LIBS=$LIBS
29056 LIBS="-lpacl  $LIBS"
29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h.  */
29059
29060 /* Override any GCC internal prototype to avoid an error.
29061    Use char because int might match the return type of a GCC
29062    builtin and then its argument prototype would still apply.  */
29063 #ifdef __cplusplus
29064 extern "C"
29065 #endif
29066 char acl_get_file ();
29067 int
29068 main ()
29069 {
29070 return acl_get_file ();
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 if ac_fn_c_try_link "$LINENO"; then :
29076   ac_cv_lib_pacl_acl_get_file=yes
29077 else
29078   ac_cv_lib_pacl_acl_get_file=no
29079 fi
29080 rm -f core conftest.err conftest.$ac_objext \
29081     conftest$ac_exeext conftest.$ac_ext
29082 LIBS=$ac_check_lib_save_LIBS
29083 fi
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29085 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29086 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29087
29088              have_acl=yes
29089              FDLIBS="-lpacl $FDLIBS"
29090
29091
29092 fi
29093
29094
29095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29096 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29097       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29098       if test $? = 0; then
29099
29100 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29101
29102          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29103 $as_echo "yes" >&6; }
29104       else
29105          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106 $as_echo "no" >&6; }
29107       fi
29108    fi
29109
29110             if test $have_acl = yes -a \
29111            x${HAVE_DARWIN_OS_TRUE} = x; then
29112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29113 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29114       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29115       if test $? = 0; then
29116
29117 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29118
29119          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121       else
29122          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29123 $as_echo "no" >&6; }
29124       fi
29125    fi
29126
29127             if test $have_acl = yes -a \
29128            x${HAVE_FREEBSD_OS_TRUE} = x; then
29129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29130 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29131       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29132       if test $? = 0; then
29133
29134 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29135
29136          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29137 $as_echo "yes" >&6; }
29138       else
29139          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29140 $as_echo "no" >&6; }
29141       fi
29142    fi
29143
29144             if test $have_acl = no -a \
29145            x${HAVE_SUN_OS_TRUE} = x; then
29146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29147 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29148 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29149   $as_echo_n "(cached) " >&6
29150 else
29151   ac_check_lib_save_LIBS=$LIBS
29152 LIBS="-lsec  $LIBS"
29153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h.  */
29155
29156 /* Override any GCC internal prototype to avoid an error.
29157    Use char because int might match the return type of a GCC
29158    builtin and then its argument prototype would still apply.  */
29159 #ifdef __cplusplus
29160 extern "C"
29161 #endif
29162 char acltotext ();
29163 int
29164 main ()
29165 {
29166 return acltotext ();
29167   ;
29168   return 0;
29169 }
29170 _ACEOF
29171 if ac_fn_c_try_link "$LINENO"; then :
29172   ac_cv_lib_sec_acltotext=yes
29173 else
29174   ac_cv_lib_sec_acltotext=no
29175 fi
29176 rm -f core conftest.err conftest.$ac_objext \
29177     conftest$ac_exeext conftest.$ac_ext
29178 LIBS=$ac_check_lib_save_LIBS
29179 fi
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29181 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29182 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29183
29184              have_acl=yes
29185              FDLIBS="-lsec $FDLIBS"
29186
29187              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29188 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29189 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29190   $as_echo_n "(cached) " >&6
29191 else
29192   ac_check_lib_save_LIBS=$LIBS
29193 LIBS="-lsec  $LIBS"
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h.  */
29196
29197 /* Override any GCC internal prototype to avoid an error.
29198    Use char because int might match the return type of a GCC
29199    builtin and then its argument prototype would still apply.  */
29200 #ifdef __cplusplus
29201 extern "C"
29202 #endif
29203 char acl_totext ();
29204 int
29205 main ()
29206 {
29207 return acl_totext ();
29208   ;
29209   return 0;
29210 }
29211 _ACEOF
29212 if ac_fn_c_try_link "$LINENO"; then :
29213   ac_cv_lib_sec_acl_totext=yes
29214 else
29215   ac_cv_lib_sec_acl_totext=no
29216 fi
29217 rm -f core conftest.err conftest.$ac_objext \
29218     conftest$ac_exeext conftest.$ac_ext
29219 LIBS=$ac_check_lib_save_LIBS
29220 fi
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29222 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29223 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29224
29225                     have_extended_acl=yes
29226
29227
29228 fi
29229
29230
29231
29232 fi
29233
29234    fi
29235
29236             if test $have_acl = no -a \
29237            x${HAVE_AIX_OS_TRUE} = x; then
29238       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29239 if test "x$ac_cv_func_acl_get" = x""yes; then :
29240
29241              have_acl=yes
29242
29243              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29244 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29245
29246                     have_extended_acl=yes
29247
29248
29249 fi
29250
29251
29252
29253 fi
29254
29255    fi
29256
29257    if test x$support_acl = xyes -a $have_acl != yes; then
29258       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29259   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29260    else
29261       if test $have_acl = yes; then
29262
29263 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29264
29265       fi
29266
29267       if test $have_extended_acl = yes; then
29268
29269 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29270
29271       fi
29272    fi
29273 fi
29274
29275 support_xattr=auto
29276 # Check whether --enable-xattr was given.
29277 if test "${enable_xattr+set}" = set; then :
29278   enableval=$enable_xattr;
29279        if test x$enableval = xyes; then
29280           support_xattr=yes
29281        elif test x$enableval = xno; then
29282           support_xattr=no
29283        fi
29284
29285
29286 fi
29287
29288
29289 have_xattr=no
29290 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29291                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29292            x${HAVE_NETBSD_OS_TRUE} = x -o \
29293            x${HAVE_OPENBSD_OS_TRUE} = x; then
29294       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29295 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29296
29297 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29298
29299 fi
29300
29301
29302       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29303 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29304
29305 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29306
29307 fi
29308
29309
29310       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29311 do :
29312   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29313 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29314 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29315   cat >>confdefs.h <<_ACEOF
29316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29317 _ACEOF
29318
29319              have_xattr=yes
29320
29321 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29322
29323
29324 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29325
29326
29327 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29328
29329
29330
29331 fi
29332 done
29333
29334
29335       if test $have_xattr = no; then
29336          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29337 do :
29338   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29340 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29341   cat >>confdefs.h <<_ACEOF
29342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29343 _ACEOF
29344
29345                 have_xattr=yes
29346
29347 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29348
29349
29350 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29351
29352
29353 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29354
29355
29356
29357 fi
29358 done
29359
29360       fi
29361
29362       if test $have_xattr = yes; then
29363          have_extattr_string_in_libc=no
29364          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29365 do :
29366   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29369   cat >>confdefs.h <<_ACEOF
29370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29371 _ACEOF
29372
29373                 have_extattr_string_in_libc=yes
29374
29375 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29376
29377
29378 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29379
29380
29381
29382 fi
29383 done
29384
29385
29386                                  if test $have_extattr_string_in_libc = no; then
29387             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29388 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29389 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29390   $as_echo_n "(cached) " >&6
29391 else
29392   ac_check_lib_save_LIBS=$LIBS
29393 LIBS="-lutil  $LIBS"
29394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29395 /* end confdefs.h.  */
29396
29397 /* Override any GCC internal prototype to avoid an error.
29398    Use char because int might match the return type of a GCC
29399    builtin and then its argument prototype would still apply.  */
29400 #ifdef __cplusplus
29401 extern "C"
29402 #endif
29403 char extattr_namespace_to_string extattr_string_to_namespace ();
29404 int
29405 main ()
29406 {
29407 return extattr_namespace_to_string extattr_string_to_namespace ();
29408   ;
29409   return 0;
29410 }
29411 _ACEOF
29412 if ac_fn_c_try_link "$LINENO"; then :
29413   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29414 else
29415   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29416 fi
29417 rm -f core conftest.err conftest.$ac_objext \
29418     conftest$ac_exeext conftest.$ac_ext
29419 LIBS=$ac_check_lib_save_LIBS
29420 fi
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29422 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29423 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29424
29425
29426 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29427
29428
29429 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29430
29431                    FDLIBS="-lutil $FDLIBS"
29432
29433
29434 fi
29435
29436          fi
29437       fi
29438    fi
29439
29440                if test $have_xattr = no -a \
29441            x${HAVE_AIX_OS_TRUE} = x; then
29442       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29443 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29444
29445 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29446
29447 fi
29448
29449
29450       for ac_func in llistea lgetea lsetea
29451 do :
29452   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29455   cat >>confdefs.h <<_ACEOF
29456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29457 _ACEOF
29458
29459              have_xattr=yes
29460
29461 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29462
29463
29464 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29465
29466
29467 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29468
29469
29470
29471 fi
29472 done
29473
29474
29475       if test $have_xattr = no; then
29476          for ac_func in listea getea setea
29477 do :
29478   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29481   cat >>confdefs.h <<_ACEOF
29482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29483 _ACEOF
29484
29485                 have_xattr=yes
29486
29487 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29488
29489
29490 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29491
29492
29493 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29494
29495
29496
29497 fi
29498 done
29499
29500       fi
29501    fi
29502
29503                if test $have_xattr = no -a \
29504            x${HAVE_OSF1_OS_TRUE} = x; then
29505       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29506 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29507
29508 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29509
29510 fi
29511
29512
29513       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29514 do :
29515   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29518   cat >>confdefs.h <<_ACEOF
29519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29520 _ACEOF
29521
29522              have_xattr=yes
29523
29524 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29525
29526
29527 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29528
29529
29530 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29531
29532
29533 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29534
29535
29536 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29537
29538
29539
29540 fi
29541 done
29542
29543    fi
29544
29545                if test $have_xattr = no -a \
29546            x${HAVE_SUN_OS_TRUE} = x; then
29547       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29548 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29549
29550 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29551
29552 fi
29553
29554
29555       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29556 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29557
29558 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29559
29560 fi
29561
29562
29563       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29564 if test "x$ac_cv_header_attr_h" = x""yes; then :
29565
29566 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29567
29568 fi
29569
29570
29571
29572       for ac_func in openat fstatat unlinkat fchownat futimesat
29573 do :
29574   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29577   cat >>confdefs.h <<_ACEOF
29578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29579 _ACEOF
29580
29581              have_xattr=yes
29582
29583 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29584
29585
29586 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29587
29588
29589 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29590
29591
29592 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29593
29594
29595 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29596
29597
29598
29599 fi
29600 done
29601
29602
29603       if test $have_xattr = yes; then
29604          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29605 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29606 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29607   $as_echo_n "(cached) " >&6
29608 else
29609   ac_check_lib_save_LIBS=$LIBS
29610 LIBS="-lnvpair  $LIBS"
29611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612 /* end confdefs.h.  */
29613
29614 /* Override any GCC internal prototype to avoid an error.
29615    Use char because int might match the return type of a GCC
29616    builtin and then its argument prototype would still apply.  */
29617 #ifdef __cplusplus
29618 extern "C"
29619 #endif
29620 char nvlist_next_nvpair ();
29621 int
29622 main ()
29623 {
29624 return nvlist_next_nvpair ();
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 if ac_fn_c_try_link "$LINENO"; then :
29630   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29631 else
29632   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29633 fi
29634 rm -f core conftest.err conftest.$ac_objext \
29635     conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29637 fi
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29639 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29640 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29641
29642
29643 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29644
29645                 FDLIBS="-lnvpair $FDLIBS"
29646
29647
29648 fi
29649
29650       fi
29651    fi
29652
29653             if test $have_xattr = no; then
29654       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29655 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29656
29657 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29658
29659 fi
29660
29661
29662       for ac_func in llistxattr lgetxattr lsetxattr
29663 do :
29664   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29667   cat >>confdefs.h <<_ACEOF
29668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29669 _ACEOF
29670
29671              have_xattr=yes
29672
29673 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29674
29675
29676 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29677
29678
29679 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29680
29681
29682
29683 fi
29684 done
29685
29686
29687       if test $have_xattr = no; then
29688          for ac_func in listxattr getxattr setxattr
29689 do :
29690   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29692 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29693   cat >>confdefs.h <<_ACEOF
29694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29695 _ACEOF
29696
29697                 have_xattr=yes
29698
29699 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29700
29701
29702 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29703
29704
29705 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29706
29707
29708
29709 fi
29710 done
29711
29712       fi
29713    fi
29714
29715    if test x$support_xattr = xyes -a $have_xattr != yes; then
29716       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29717   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29718    else
29719       if test $have_xattr = yes; then
29720
29721 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29722
29723       fi
29724    fi
29725 fi
29726
29727 PTHREAD_LIB=""
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29729 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29730 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29731   $as_echo_n "(cached) " >&6
29732 else
29733   ac_check_lib_save_LIBS=$LIBS
29734 LIBS="-lpthread  $LIBS"
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h.  */
29737
29738 /* Override any GCC internal prototype to avoid an error.
29739    Use char because int might match the return type of a GCC
29740    builtin and then its argument prototype would still apply.  */
29741 #ifdef __cplusplus
29742 extern "C"
29743 #endif
29744 char pthread_create ();
29745 int
29746 main ()
29747 {
29748 return pthread_create ();
29749   ;
29750   return 0;
29751 }
29752 _ACEOF
29753 if ac_fn_c_try_link "$LINENO"; then :
29754   ac_cv_lib_pthread_pthread_create=yes
29755 else
29756   ac_cv_lib_pthread_pthread_create=no
29757 fi
29758 rm -f core conftest.err conftest.$ac_objext \
29759     conftest$ac_exeext conftest.$ac_ext
29760 LIBS=$ac_check_lib_save_LIBS
29761 fi
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29763 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29764 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29765   PTHREAD_LIB="-lpthread"
29766 else
29767
29768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29769 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29770 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29771   $as_echo_n "(cached) " >&6
29772 else
29773   ac_check_lib_save_LIBS=$LIBS
29774 LIBS="-lpthreads  $LIBS"
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h.  */
29777
29778 /* Override any GCC internal prototype to avoid an error.
29779    Use char because int might match the return type of a GCC
29780    builtin and then its argument prototype would still apply.  */
29781 #ifdef __cplusplus
29782 extern "C"
29783 #endif
29784 char pthread_create ();
29785 int
29786 main ()
29787 {
29788 return pthread_create ();
29789   ;
29790   return 0;
29791 }
29792 _ACEOF
29793 if ac_fn_c_try_link "$LINENO"; then :
29794   ac_cv_lib_pthreads_pthread_create=yes
29795 else
29796   ac_cv_lib_pthreads_pthread_create=no
29797 fi
29798 rm -f core conftest.err conftest.$ac_objext \
29799     conftest$ac_exeext conftest.$ac_ext
29800 LIBS=$ac_check_lib_save_LIBS
29801 fi
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29803 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29804 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29805   PTHREAD_LIB="-lpthreads"
29806 else
29807
29808               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29809 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29810 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29811   $as_echo_n "(cached) " >&6
29812 else
29813   ac_check_lib_save_LIBS=$LIBS
29814 LIBS="-lc_r  $LIBS"
29815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29816 /* end confdefs.h.  */
29817
29818 /* Override any GCC internal prototype to avoid an error.
29819    Use char because int might match the return type of a GCC
29820    builtin and then its argument prototype would still apply.  */
29821 #ifdef __cplusplus
29822 extern "C"
29823 #endif
29824 char pthread_create ();
29825 int
29826 main ()
29827 {
29828 return pthread_create ();
29829   ;
29830   return 0;
29831 }
29832 _ACEOF
29833 if ac_fn_c_try_link "$LINENO"; then :
29834   ac_cv_lib_c_r_pthread_create=yes
29835 else
29836   ac_cv_lib_c_r_pthread_create=no
29837 fi
29838 rm -f core conftest.err conftest.$ac_objext \
29839     conftest$ac_exeext conftest.$ac_ext
29840 LIBS=$ac_check_lib_save_LIBS
29841 fi
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29843 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29844 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29845   PTHREAD_LIB="-lc_r"
29846 else
29847
29848                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29849 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29850
29851 fi
29852
29853
29854
29855 fi
29856
29857
29858
29859 fi
29860
29861
29862
29863 fi
29864
29865
29866 for ac_header in sys/prctl.h sys/capability.h
29867 do :
29868   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29871   cat >>confdefs.h <<_ACEOF
29872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29873 _ACEOF
29874
29875 fi
29876
29877 done
29878
29879 for ac_func in prctl setreuid
29880 do :
29881   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29883 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29884   cat >>confdefs.h <<_ACEOF
29885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29886 _ACEOF
29887
29888 fi
29889 done
29890
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29892 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29893 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29894   $as_echo_n "(cached) " >&6
29895 else
29896   ac_check_lib_save_LIBS=$LIBS
29897 LIBS="-lcap  $LIBS"
29898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29899 /* end confdefs.h.  */
29900
29901 /* Override any GCC internal prototype to avoid an error.
29902    Use char because int might match the return type of a GCC
29903    builtin and then its argument prototype would still apply.  */
29904 #ifdef __cplusplus
29905 extern "C"
29906 #endif
29907 char cap_set_proc ();
29908 int
29909 main ()
29910 {
29911 return cap_set_proc ();
29912   ;
29913   return 0;
29914 }
29915 _ACEOF
29916 if ac_fn_c_try_link "$LINENO"; then :
29917   ac_cv_lib_cap_cap_set_proc=yes
29918 else
29919   ac_cv_lib_cap_cap_set_proc=no
29920 fi
29921 rm -f core conftest.err conftest.$ac_objext \
29922     conftest$ac_exeext conftest.$ac_ext
29923 LIBS=$ac_check_lib_save_LIBS
29924 fi
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29926 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29927 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29928   CAP_LIBS="-lcap"
29929 else
29930   CAP_LIBS=
29931 fi
29932
29933 if test x$CAP_LIBS = x-lcap; then
29934
29935 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29936
29937 fi
29938
29939
29940
29941 $as_echo "#define FDLIBS 1" >>confdefs.h
29942
29943
29944 CFLAGS=${CFLAGS--O}
29945
29946 if test x$have_gcc = xyes ; then
29947    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29948    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29949 fi
29950 LDFLAGS=${LDFLAGS--O}
29951 CPPFLAGS="$CPPFLAGS"
29952 CFLAGS="$CFLAGS"
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968 OBJLIST=
29969
29970
29971 lld="lld"
29972 llu="llu"
29973
29974 WCFLAGS=
29975 WLDFLAGS=
29976
29977 PFILES="platforms/Makefile"
29978 PSCMD="ps -e"
29979 WIN32=
29980 MACOSX=
29981 COMPRESS_MANPAGES=yes
29982
29983 hostname=`uname -n | cut -d '.' -f 1`
29984 if test x${hostname} = x ; then
29985    hostname="localhost"
29986 fi
29987 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29988 if test ! $? = 0; then
29989   hostname="localhost"
29990 fi
29991
29992 case "$DISTNAME" in
29993 aix)
29994    DISTVER=`uname -r`
29995    PSCMD="ps -e -o pid,comm"
29996    PFILES="${PFILES} \
29997       platforms/aix/Makefile"
29998    TAPEDRIVE="/dev/rmt0.1"
29999   ;;
30000 alpha)
30001    DISTVER=`uname -r`
30002    PTHREAD_LIB="-lpthread -lexc"
30003    if test "${CC}" = "gcc" ; then
30004       lld="lld"
30005       llu="llu"
30006    else
30007       lld="ld"
30008       llu="lu"
30009    fi
30010    TAPEDRIVE="/dev/nrmt0"
30011   ;;
30012 bsdi)
30013    DISTVER=`uname -a |awk '{print $3}'`
30014    TAPEDRIVE="/dev/nrmt0"
30015    PTHREAD_LIB="-pthread"
30016    CFLAGS="${CFLAGS} -pthread"
30017    PSCMD="ps -ax -o pid,command"
30018    lld="qd"
30019    llu="qu"
30020    PFILES="${PFILES} \
30021        platforms/bsdi/Makefile \
30022        platforms/bsdi/bacula-fd \
30023        platforms/bsdi/bacula-sd \
30024        platforms/bsdi/bacula-dir"
30025    largefile_support="yes"
30026   ;;
30027 cygwin)
30028    DISTVER=`uname -a |awk '{print $3}'`
30029    TAPEDRIVE="/dev/nrst0"
30030    WIN32=win32
30031    WCFLAGS="-mwindows"
30032    WLDFLAGS="-mwindows"
30033   ;;
30034 darwin)
30035    DISTVER=`uname -r`
30036    TAPEDRIVE="/dev/nst0"
30037    PSCMD="ps -e -o pid,command"
30038    MACOSX=macosx
30039    PFILES="${PFILES} \
30040       platforms/darwin/Makefile"
30041   ;;
30042 osx)
30043    DISTVER=`uname -r`
30044    TAPEDRIVE="/dev/nst0"
30045    PSCMD="ps -e -o pid,command"
30046    MACOSX=macosx
30047    PFILES="${PFILES} \
30048       platforms/osx/Makefile"
30049   ;;
30050 debian)
30051    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30052       DISTNAME="ubuntu"
30053    fi
30054    DISTVER=`cat /etc/debian_version`
30055    if test -f /etc/lsb-release ; then
30056       . /etc/lsb-release
30057       if test "x$DISTRIB_ID" != "x" ; then
30058          DISTNAME=$DISTRIB_ID
30059       fi
30060       if test "x$DISTRIB_RELEASE" != "x" ; then
30061          DISTVER=$DISTRIB_RELEASE
30062       fi
30063    fi
30064    if test "$DISTNAME" = "Ubuntu" ; then
30065       DISTNAME="ubuntu"
30066    fi
30067    TAPEDRIVE="/dev/nst0"
30068    PSCMD="ps -e -o pid,command"
30069    if test "$DISTNAME" = "ubuntu" ; then
30070       PFILES="${PFILES} \
30071          platforms/ubuntu/Makefile \
30072          platforms/ubuntu/bacula-fd \
30073          platforms/ubuntu/bacula-sd \
30074          platforms/ubuntu/bacula-dir"
30075    else
30076       PFILES="${PFILES} \
30077          platforms/debian/Makefile \
30078          platforms/debian/bacula-fd \
30079          platforms/debian/bacula-sd \
30080          platforms/debian/bacula-dir"
30081    fi
30082   ;;
30083 freebsd)
30084    DISTVER=`uname -a |awk '{print $3}'`
30085    VER=`echo $DISTVER | cut -c 1`
30086    if test x$VER = x4 ; then
30087       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30088       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30089    fi
30090    lld="qd"
30091    llu="qu"
30092    TAPEDRIVE="/dev/nrsa0"
30093    PSCMD="ps -ax -o pid,command"
30094    PFILES="${PFILES} \
30095        platforms/freebsd/Makefile \
30096        platforms/freebsd/bacula-fd \
30097        platforms/freebsd/bacula-sd \
30098        platforms/freebsd/bacula-dir"
30099    largefile_support="yes"
30100   ;;
30101 hpux)
30102    PSCMD="UNIX95=1; ps -e -o pid,comm"
30103    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30104    DISTVER=`uname -r`
30105    TAPEDRIVE="/dev/rmt/0hnb"
30106    PTHREAD_LIB="-lpthread"
30107    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30108
30109   ;;
30110 irix)
30111    DISTVER=`uname -r`
30112    TAPEDRIVE="/dev/rmt/0cbn"
30113    PSCMD="ps -e -o pid,comm"
30114    PFILES="${PFILES} \
30115        platforms/irix/Makefile \
30116        platforms/irix/bacula-fd \
30117        platforms/irix/bacula-sd \
30118        platforms/irix/bacula-dir"
30119   ;;
30120 netbsd)
30121    DISTVER=`uname -a |awk '{print $3}'`
30122    lld="qd"
30123    llu="qu"
30124    TAPEDRIVE="/dev/nrst0"
30125    PSCMD="ps -ax -o pid,command"
30126    PTHREAD_LIB="-pthread"
30127    CFLAGS="${CFLAGS} -pthread"
30128   ;;
30129 openbsd)
30130    DISTVER=`uname -a |awk '{print $3}'`
30131    lld="qd"
30132    llu="qu"
30133    TAPEDRIVE="/dev/nrst0"
30134    PSCMD="ps -ax -o pid,command"
30135    PTHREAD_LIB="-pthread"
30136    CFLAGS="${CFLAGS} -pthread"
30137    PFILES="${PFILES} \
30138        platforms/openbsd/Makefile \
30139        platforms/openbsd/bacula-fd \
30140        platforms/openbsd/bacula-sd \
30141        platforms/openbsd/bacula-dir"
30142   ;;
30143 redhat)
30144    if test -f /etc/whitebox-release ; then
30145       f=/etc/whitebox-release
30146    else
30147       f=/etc/redhat-release
30148    fi
30149    if test `cat $f | grep release |\
30150          cut -f 3 -d ' '`x = "Enterprise"x ; then
30151       DISTVER="Enterprise "`cat $f | grep release |\
30152           cut -f 6 -d ' '`
30153    else
30154        DISTVER=`cat /etc/redhat-release | grep release |\
30155            cut -f 5 -d ' '`
30156    fi
30157    TAPEDRIVE="/dev/nst0"
30158    PSCMD="ps -e -o pid,command"
30159    PFILES="${PFILES} \
30160        platforms/redhat/Makefile \
30161        platforms/redhat/bacula-fd \
30162        platforms/redhat/bacula-sd \
30163        platforms/redhat/bacula-dir
30164        "
30165   ;;
30166 mandrake)
30167    DISTVER=`cat /etc/mandrake-release | grep release |\
30168       cut -f 5 -d ' '`
30169    TAPEDRIVE="/dev/nst0"
30170    PSCMD="ps -e -o pid,command"
30171    PFILES="${PFILES} \
30172        platforms/mandrake/Makefile \
30173        platforms/mandrake/bacula-fd \
30174        platforms/mandrake/bacula-sd \
30175        platforms/mandrake/bacula-dir \
30176        "
30177   ;;
30178 gentoo)
30179    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30180    TAPEDRIVE="/dev/nst0"
30181    PSCMD="ps -e -o pid,command"
30182    PFILES="${PFILES} \
30183        platforms/gentoo/Makefile \
30184     platforms/gentoo/bacula-init \
30185        platforms/gentoo/bacula-fd \
30186        platforms/gentoo/bacula-sd \
30187        platforms/gentoo/bacula-dir"
30188   ;;
30189 slackware)
30190    DISTVER=`cat /etc/slackware-version`
30191    TAPEDRIVE="/dev/nst0"
30192    PSCMD="ps -e -o pid,command"
30193    PFILES="${PFILES} \
30194        platforms/slackware/Makefile \
30195        platforms/slackware/rc.bacula-fd \
30196        platforms/slackware/rc.bacula-sd \
30197        platforms/slackware/rc.bacula-dir\
30198        platforms/slackware/functions.bacula"
30199   ;;
30200 solaris)
30201    DISTVER=`uname -r`
30202    TAPEDRIVE="/dev/rmt/0cbn"
30203    PSCMD="ps -e -o pid,comm"
30204    PFILES="${PFILES} \
30205        platforms/solaris/Makefile \
30206        platforms/solaris/bacula-fd \
30207        platforms/solaris/bacula-sd \
30208        platforms/solaris/bacula-dir"
30209    COMPRESS_MANPAGES=
30210    case ${DISTVER} in
30211    5.5|5.6)
30212       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30213
30214       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30215
30216       ;;
30217    5.7|5.8)
30218       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30219
30220       ;;
30221    *)
30222       ;;
30223    esac
30224    LIBS="$LIBS -lresolv -lrt"
30225   ;;
30226 suse)
30227    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30228        cut -f 3 -d ' '`
30229    TAPEDRIVE="/dev/nst0"
30230    PSCMD="ps -e -o pid,command"
30231    PFILES="${PFILES} \
30232        platforms/suse/Makefile \
30233        platforms/suse/bacula-fd \
30234        platforms/suse/bacula-sd \
30235        platforms/suse/bacula-dir \
30236        platforms/suse/bacula"
30237   ;;
30238 suse5)
30239    DISTNAME=suse
30240    DISTVER=5.x
30241    TAPEDRIVE="/dev/nst0"
30242    PSCMD="ps -e -o pid,command"
30243    PFILES="${PFILES} \
30244        platforms/suse/Makefile \
30245        platforms/suse/bacula-fd \
30246        platforms/suse/bacula-sd \
30247        platforms/suse/bacula-dir"
30248   ;;
30249 unknown)
30250    DISTVER=unknown
30251    TAPEDRIVE="/dev/nst0"
30252   ;;
30253 *)
30254   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30255   ;;
30256 esac
30257
30258
30259
30260 LIBS="$PTHREAD_LIB $LIBS"
30261
30262 cat >>confdefs.h <<_ACEOF
30263 #define lld "$lld"
30264 _ACEOF
30265
30266 cat >>confdefs.h <<_ACEOF
30267 #define llu "$llu"
30268 _ACEOF
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278 MCOMMON=./autoconf/Make.common
30279
30280
30281 if test "x${subsysdir}" = "x${sbindir}" ; then
30282    echo " "
30283    echo " "
30284    echo "You have set both --sbindir and --with-subsys-dir"
30285    echo "  equal to: ${subsysdir} "
30286    echo "This is not permitted. Please reconfigure."
30287    echo " "
30288    echo "Aborting configuration ..."
30289    echo " "
30290    echo " "
30291    exit 1
30292 fi
30293
30294 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
30295
30296 ac_config_commands="$ac_config_commands default"
30297
30298 cat >confcache <<\_ACEOF
30299 # This file is a shell script that caches the results of configure
30300 # tests run on this system so they can be shared between configure
30301 # scripts and configure runs, see configure's option --config-cache.
30302 # It is not useful on other systems.  If it contains results you don't
30303 # want to keep, you may remove or edit it.
30304 #
30305 # config.status only pays attention to the cache file if you give it
30306 # the --recheck option to rerun configure.
30307 #
30308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30310 # following values.
30311
30312 _ACEOF
30313
30314 # The following way of writing the cache mishandles newlines in values,
30315 # but we know of no workaround that is simple, portable, and efficient.
30316 # So, we kill variables containing newlines.
30317 # Ultrix sh set writes to stderr and can't be redirected directly,
30318 # and sets the high bit in the cache file unless we assign to the vars.
30319 (
30320   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30321     eval ac_val=\$$ac_var
30322     case $ac_val in #(
30323     *${as_nl}*)
30324       case $ac_var in #(
30325       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30327       esac
30328       case $ac_var in #(
30329       _ | IFS | as_nl) ;; #(
30330       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30331       *) { eval $ac_var=; unset $ac_var;} ;;
30332       esac ;;
30333     esac
30334   done
30335
30336   (set) 2>&1 |
30337     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30338     *${as_nl}ac_space=\ *)
30339       # `set' does not quote correctly, so add quotes: double-quote
30340       # substitution turns \\\\ into \\, and sed turns \\ into \.
30341       sed -n \
30342         "s/'/'\\\\''/g;
30343           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30344       ;; #(
30345     *)
30346       # `set' quotes correctly as required by POSIX, so do not add quotes.
30347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30348       ;;
30349     esac |
30350     sort
30351 ) |
30352   sed '
30353      /^ac_cv_env_/b end
30354      t clear
30355      :clear
30356      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30357      t end
30358      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30359      :end' >>confcache
30360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30361   if test -w "$cache_file"; then
30362     test "x$cache_file" != "x/dev/null" &&
30363       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30364 $as_echo "$as_me: updating cache $cache_file" >&6;}
30365     cat confcache >$cache_file
30366   else
30367     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30369   fi
30370 fi
30371 rm -f confcache
30372
30373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30374 # Let make expand exec_prefix.
30375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30376
30377 DEFS=-DHAVE_CONFIG_H
30378
30379 ac_libobjs=
30380 ac_ltlibobjs=
30381 U=
30382 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30383   # 1. Remove the extension, and $U if already installed.
30384   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30385   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30386   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30387   #    will be set to the directory where LIBOBJS objects are built.
30388   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30389   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30390 done
30391 LIBOBJS=$ac_libobjs
30392
30393 LTLIBOBJS=$ac_ltlibobjs
30394
30395
30396
30397
30398 : ${CONFIG_STATUS=./config.status}
30399 ac_write_fail=0
30400 ac_clean_files_save=$ac_clean_files
30401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30403 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30404 as_write_fail=0
30405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30406 #! $SHELL
30407 # Generated by $as_me.
30408 # Run this file to recreate the current configuration.
30409 # Compiler output produced by configure, useful for debugging
30410 # configure, is in config.log if it exists.
30411
30412 debug=false
30413 ac_cs_recheck=false
30414 ac_cs_silent=false
30415
30416 SHELL=\${CONFIG_SHELL-$SHELL}
30417 export SHELL
30418 _ASEOF
30419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30420 ## -------------------- ##
30421 ## M4sh Initialization. ##
30422 ## -------------------- ##
30423
30424 # Be more Bourne compatible
30425 DUALCASE=1; export DUALCASE # for MKS sh
30426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30427   emulate sh
30428   NULLCMD=:
30429   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30430   # is contrary to our usage.  Disable this feature.
30431   alias -g '${1+"$@"}'='"$@"'
30432   setopt NO_GLOB_SUBST
30433 else
30434   case `(set -o) 2>/dev/null` in #(
30435   *posix*) :
30436     set -o posix ;; #(
30437   *) :
30438      ;;
30439 esac
30440 fi
30441
30442
30443 as_nl='
30444 '
30445 export as_nl
30446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30450 # Prefer a ksh shell builtin over an external printf program on Solaris,
30451 # but without wasting forks for bash or zsh.
30452 if test -z "$BASH_VERSION$ZSH_VERSION" \
30453     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30454   as_echo='print -r --'
30455   as_echo_n='print -rn --'
30456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30457   as_echo='printf %s\n'
30458   as_echo_n='printf %s'
30459 else
30460   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30461     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30462     as_echo_n='/usr/ucb/echo -n'
30463   else
30464     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30465     as_echo_n_body='eval
30466       arg=$1;
30467       case $arg in #(
30468       *"$as_nl"*)
30469         expr "X$arg" : "X\\(.*\\)$as_nl";
30470         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30471       esac;
30472       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30473     '
30474     export as_echo_n_body
30475     as_echo_n='sh -c $as_echo_n_body as_echo'
30476   fi
30477   export as_echo_body
30478   as_echo='sh -c $as_echo_body as_echo'
30479 fi
30480
30481 # The user is always right.
30482 if test "${PATH_SEPARATOR+set}" != set; then
30483   PATH_SEPARATOR=:
30484   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30485     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30486       PATH_SEPARATOR=';'
30487   }
30488 fi
30489
30490
30491 # IFS
30492 # We need space, tab and new line, in precisely that order.  Quoting is
30493 # there to prevent editors from complaining about space-tab.
30494 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30495 # splitting by setting IFS to empty value.)
30496 IFS=" ""        $as_nl"
30497
30498 # Find who we are.  Look in the path if we contain no directory separator.
30499 case $0 in #((
30500   *[\\/]* ) as_myself=$0 ;;
30501   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30502 for as_dir in $PATH
30503 do
30504   IFS=$as_save_IFS
30505   test -z "$as_dir" && as_dir=.
30506     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30507   done
30508 IFS=$as_save_IFS
30509
30510      ;;
30511 esac
30512 # We did not find ourselves, most probably we were run as `sh COMMAND'
30513 # in which case we are not to be found in the path.
30514 if test "x$as_myself" = x; then
30515   as_myself=$0
30516 fi
30517 if test ! -f "$as_myself"; then
30518   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30519   exit 1
30520 fi
30521
30522 # Unset variables that we do not need and which cause bugs (e.g. in
30523 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30524 # suppresses any "Segmentation fault" message there.  '((' could
30525 # trigger a bug in pdksh 5.2.14.
30526 for as_var in BASH_ENV ENV MAIL MAILPATH
30527 do eval test x\${$as_var+set} = xset \
30528   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30529 done
30530 PS1='$ '
30531 PS2='> '
30532 PS4='+ '
30533
30534 # NLS nuisances.
30535 LC_ALL=C
30536 export LC_ALL
30537 LANGUAGE=C
30538 export LANGUAGE
30539
30540 # CDPATH.
30541 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30542
30543
30544 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30545 # ----------------------------------------
30546 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30547 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30548 # script with STATUS, using 1 if that was 0.
30549 as_fn_error ()
30550 {
30551   as_status=$1; test $as_status -eq 0 && as_status=1
30552   if test "$4"; then
30553     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30554     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30555   fi
30556   $as_echo "$as_me: error: $2" >&2
30557   as_fn_exit $as_status
30558 } # as_fn_error
30559
30560
30561 # as_fn_set_status STATUS
30562 # -----------------------
30563 # Set $? to STATUS, without forking.
30564 as_fn_set_status ()
30565 {
30566   return $1
30567 } # as_fn_set_status
30568
30569 # as_fn_exit STATUS
30570 # -----------------
30571 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30572 as_fn_exit ()
30573 {
30574   set +e
30575   as_fn_set_status $1
30576   exit $1
30577 } # as_fn_exit
30578
30579 # as_fn_unset VAR
30580 # ---------------
30581 # Portably unset VAR.
30582 as_fn_unset ()
30583 {
30584   { eval $1=; unset $1;}
30585 }
30586 as_unset=as_fn_unset
30587 # as_fn_append VAR VALUE
30588 # ----------------------
30589 # Append the text in VALUE to the end of the definition contained in VAR. Take
30590 # advantage of any shell optimizations that allow amortized linear growth over
30591 # repeated appends, instead of the typical quadratic growth present in naive
30592 # implementations.
30593 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30594   eval 'as_fn_append ()
30595   {
30596     eval $1+=\$2
30597   }'
30598 else
30599   as_fn_append ()
30600   {
30601     eval $1=\$$1\$2
30602   }
30603 fi # as_fn_append
30604
30605 # as_fn_arith ARG...
30606 # ------------------
30607 # Perform arithmetic evaluation on the ARGs, and store the result in the
30608 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30609 # must be portable across $(()) and expr.
30610 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30611   eval 'as_fn_arith ()
30612   {
30613     as_val=$(( $* ))
30614   }'
30615 else
30616   as_fn_arith ()
30617   {
30618     as_val=`expr "$@" || test $? -eq 1`
30619   }
30620 fi # as_fn_arith
30621
30622
30623 if expr a : '\(a\)' >/dev/null 2>&1 &&
30624    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30625   as_expr=expr
30626 else
30627   as_expr=false
30628 fi
30629
30630 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30631   as_basename=basename
30632 else
30633   as_basename=false
30634 fi
30635
30636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30637   as_dirname=dirname
30638 else
30639   as_dirname=false
30640 fi
30641
30642 as_me=`$as_basename -- "$0" ||
30643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30644          X"$0" : 'X\(//\)$' \| \
30645          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30646 $as_echo X/"$0" |
30647     sed '/^.*\/\([^/][^/]*\)\/*$/{
30648             s//\1/
30649             q
30650           }
30651           /^X\/\(\/\/\)$/{
30652             s//\1/
30653             q
30654           }
30655           /^X\/\(\/\).*/{
30656             s//\1/
30657             q
30658           }
30659           s/.*/./; q'`
30660
30661 # Avoid depending upon Character Ranges.
30662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30665 as_cr_digits='0123456789'
30666 as_cr_alnum=$as_cr_Letters$as_cr_digits
30667
30668 ECHO_C= ECHO_N= ECHO_T=
30669 case `echo -n x` in #(((((
30670 -n*)
30671   case `echo 'xy\c'` in
30672   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30673   xy)  ECHO_C='\c';;
30674   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30675        ECHO_T=' ';;
30676   esac;;
30677 *)
30678   ECHO_N='-n';;
30679 esac
30680
30681 rm -f conf$$ conf$$.exe conf$$.file
30682 if test -d conf$$.dir; then
30683   rm -f conf$$.dir/conf$$.file
30684 else
30685   rm -f conf$$.dir
30686   mkdir conf$$.dir 2>/dev/null
30687 fi
30688 if (echo >conf$$.file) 2>/dev/null; then
30689   if ln -s conf$$.file conf$$ 2>/dev/null; then
30690     as_ln_s='ln -s'
30691     # ... but there are two gotchas:
30692     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30693     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30694     # In both cases, we have to default to `cp -p'.
30695     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30696       as_ln_s='cp -p'
30697   elif ln conf$$.file conf$$ 2>/dev/null; then
30698     as_ln_s=ln
30699   else
30700     as_ln_s='cp -p'
30701   fi
30702 else
30703   as_ln_s='cp -p'
30704 fi
30705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30706 rmdir conf$$.dir 2>/dev/null
30707
30708
30709 # as_fn_mkdir_p
30710 # -------------
30711 # Create "$as_dir" as a directory, including parents if necessary.
30712 as_fn_mkdir_p ()
30713 {
30714
30715   case $as_dir in #(
30716   -*) as_dir=./$as_dir;;
30717   esac
30718   test -d "$as_dir" || eval $as_mkdir_p || {
30719     as_dirs=
30720     while :; do
30721       case $as_dir in #(
30722       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30723       *) as_qdir=$as_dir;;
30724       esac
30725       as_dirs="'$as_qdir' $as_dirs"
30726       as_dir=`$as_dirname -- "$as_dir" ||
30727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30728          X"$as_dir" : 'X\(//\)[^/]' \| \
30729          X"$as_dir" : 'X\(//\)$' \| \
30730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30731 $as_echo X"$as_dir" |
30732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30733             s//\1/
30734             q
30735           }
30736           /^X\(\/\/\)[^/].*/{
30737             s//\1/
30738             q
30739           }
30740           /^X\(\/\/\)$/{
30741             s//\1/
30742             q
30743           }
30744           /^X\(\/\).*/{
30745             s//\1/
30746             q
30747           }
30748           s/.*/./; q'`
30749       test -d "$as_dir" && break
30750     done
30751     test -z "$as_dirs" || eval "mkdir $as_dirs"
30752   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30753
30754
30755 } # as_fn_mkdir_p
30756 if mkdir -p . 2>/dev/null; then
30757   as_mkdir_p='mkdir -p "$as_dir"'
30758 else
30759   test -d ./-p && rmdir ./-p
30760   as_mkdir_p=false
30761 fi
30762
30763 if test -x / >/dev/null 2>&1; then
30764   as_test_x='test -x'
30765 else
30766   if ls -dL / >/dev/null 2>&1; then
30767     as_ls_L_option=L
30768   else
30769     as_ls_L_option=
30770   fi
30771   as_test_x='
30772     eval sh -c '\''
30773       if test -d "$1"; then
30774         test -d "$1/.";
30775       else
30776         case $1 in #(
30777         -*)set "./$1";;
30778         esac;
30779         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30780         ???[sx]*):;;*)false;;esac;fi
30781     '\'' sh
30782   '
30783 fi
30784 as_executable_p=$as_test_x
30785
30786 # Sed expression to map a string onto a valid CPP name.
30787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30788
30789 # Sed expression to map a string onto a valid variable name.
30790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30791
30792
30793 exec 6>&1
30794 ## ----------------------------------- ##
30795 ## Main body of $CONFIG_STATUS script. ##
30796 ## ----------------------------------- ##
30797 _ASEOF
30798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30799
30800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30801 # Save the log message, to keep $0 and so on meaningful, and to
30802 # report actual input values of CONFIG_FILES etc. instead of their
30803 # values after options handling.
30804 ac_log="
30805 This file was extended by bacula $as_me 5.2.0rc1, which was
30806 generated by GNU Autoconf 2.67.  Invocation command line was
30807
30808   CONFIG_FILES    = $CONFIG_FILES
30809   CONFIG_HEADERS  = $CONFIG_HEADERS
30810   CONFIG_LINKS    = $CONFIG_LINKS
30811   CONFIG_COMMANDS = $CONFIG_COMMANDS
30812   $ $0 $@
30813
30814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30815 "
30816
30817 _ACEOF
30818
30819 case $ac_config_files in *"
30820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30821 esac
30822
30823 case $ac_config_headers in *"
30824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30825 esac
30826
30827
30828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30829 # Files that config.status was made for.
30830 config_files="$ac_config_files"
30831 config_headers="$ac_config_headers"
30832 config_commands="$ac_config_commands"
30833
30834 _ACEOF
30835
30836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30837 ac_cs_usage="\
30838 \`$as_me' instantiates files and other configuration actions
30839 from templates according to the current configuration.  Unless the files
30840 and actions are specified as TAGs, all are instantiated by default.
30841
30842 Usage: $0 [OPTION]... [TAG]...
30843
30844   -h, --help       print this help, then exit
30845   -V, --version    print version number and configuration settings, then exit
30846       --config     print configuration, then exit
30847   -q, --quiet, --silent
30848                    do not print progress messages
30849   -d, --debug      don't remove temporary files
30850       --recheck    update $as_me by reconfiguring in the same conditions
30851       --file=FILE[:TEMPLATE]
30852                    instantiate the configuration file FILE
30853       --header=FILE[:TEMPLATE]
30854                    instantiate the configuration header FILE
30855
30856 Configuration files:
30857 $config_files
30858
30859 Configuration headers:
30860 $config_headers
30861
30862 Configuration commands:
30863 $config_commands
30864
30865 Report bugs to the package provider."
30866
30867 _ACEOF
30868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30870 ac_cs_version="\\
30871 bacula config.status 5.2.0rc1
30872 configured by $0, generated by GNU Autoconf 2.67,
30873   with options \\"\$ac_cs_config\\"
30874
30875 Copyright (C) 2010 Free Software Foundation, Inc.
30876 This config.status script is free software; the Free Software Foundation
30877 gives unlimited permission to copy, distribute and modify it."
30878
30879 ac_pwd='$ac_pwd'
30880 srcdir='$srcdir'
30881 INSTALL='$INSTALL'
30882 AWK='$AWK'
30883 test -n "\$AWK" || AWK=awk
30884 _ACEOF
30885
30886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30887 # The default lists apply if the user does not specify any file.
30888 ac_need_defaults=:
30889 while test $# != 0
30890 do
30891   case $1 in
30892   --*=?*)
30893     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30894     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30895     ac_shift=:
30896     ;;
30897   --*=)
30898     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30899     ac_optarg=
30900     ac_shift=:
30901     ;;
30902   *)
30903     ac_option=$1
30904     ac_optarg=$2
30905     ac_shift=shift
30906     ;;
30907   esac
30908
30909   case $ac_option in
30910   # Handling of the options.
30911   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30912     ac_cs_recheck=: ;;
30913   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30914     $as_echo "$ac_cs_version"; exit ;;
30915   --config | --confi | --conf | --con | --co | --c )
30916     $as_echo "$ac_cs_config"; exit ;;
30917   --debug | --debu | --deb | --de | --d | -d )
30918     debug=: ;;
30919   --file | --fil | --fi | --f )
30920     $ac_shift
30921     case $ac_optarg in
30922     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30923     '') as_fn_error $? "missing file argument" ;;
30924     esac
30925     as_fn_append CONFIG_FILES " '$ac_optarg'"
30926     ac_need_defaults=false;;
30927   --header | --heade | --head | --hea )
30928     $ac_shift
30929     case $ac_optarg in
30930     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30931     esac
30932     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30933     ac_need_defaults=false;;
30934   --he | --h)
30935     # Conflict between --help and --header
30936     as_fn_error $? "ambiguous option: \`$1'
30937 Try \`$0 --help' for more information.";;
30938   --help | --hel | -h )
30939     $as_echo "$ac_cs_usage"; exit ;;
30940   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30941   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30942     ac_cs_silent=: ;;
30943
30944   # This is an error.
30945   -*) as_fn_error $? "unrecognized option: \`$1'
30946 Try \`$0 --help' for more information." ;;
30947
30948   *) as_fn_append ac_config_targets " $1"
30949      ac_need_defaults=false ;;
30950
30951   esac
30952   shift
30953 done
30954
30955 ac_configure_extra_args=
30956
30957 if $ac_cs_silent; then
30958   exec 6>/dev/null
30959   ac_configure_extra_args="$ac_configure_extra_args --silent"
30960 fi
30961
30962 _ACEOF
30963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30964 if \$ac_cs_recheck; then
30965   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30966   shift
30967   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30968   CONFIG_SHELL='$SHELL'
30969   export CONFIG_SHELL
30970   exec "\$@"
30971 fi
30972
30973 _ACEOF
30974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30975 exec 5>>config.log
30976 {
30977   echo
30978   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30979 ## Running $as_me. ##
30980 _ASBOX
30981   $as_echo "$ac_log"
30982 } >&5
30983
30984 _ACEOF
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30986 #
30987 # INIT-COMMANDS
30988 #
30989
30990
30991 # The HP-UX ksh and POSIX shell print the target directory to stdout
30992 # if CDPATH is set.
30993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30994
30995 sed_quote_subst='$sed_quote_subst'
30996 double_quote_subst='$double_quote_subst'
30997 delay_variable_subst='$delay_variable_subst'
30998 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30999 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31000 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31001 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31002 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31003 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31004 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31005 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31006 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31007 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31008 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31009 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31010 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31011 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31012 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31013 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31014 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31015 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31016 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31017 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31018 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31019 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31020 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31021 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31022 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31023 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31024 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31025 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31026 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31027 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31028 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31029 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31030 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31031 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31032 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31033 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31034 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31035 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31036 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31037 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31038 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31039 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31040 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31041 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31042 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31043 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31044 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31045 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31046 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31047 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31048 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31049 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31050 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31051 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31052 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31053 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"`'
31054 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31055 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31056 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31057 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31058 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31059 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31060 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31061 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31062 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31063 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31064 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31065 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31066 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31067 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31068 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31069 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31070 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31071 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31072 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31073 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31074 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31075 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31076 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31077 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31078 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31079 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31080 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31081 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31082 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31083 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31084 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31085 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31086 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31087 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31088 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31089 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31090 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31091 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31092 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31093 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31094 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31095 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31096 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31097 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31098 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31099 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31100 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31101 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31102 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31103 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31104 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31105 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31106 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31107 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31108 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31109 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31110 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31111 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31112 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31113 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31114 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31115 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31116 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31117 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31118 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31119 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31120 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31121 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31122 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31123 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31124 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31125 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31126 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31127 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31128 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31129 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31130 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31131 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31132 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31133 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31134 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31135 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31136 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31137 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31138 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31139 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31140 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31141 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31142 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31143 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31144 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31145 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31146 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31147 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31148 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31149 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31150 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31151 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31152 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31153 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31154 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31155 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31156 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31157 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31158 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31159 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31160 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31161 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31162 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31163 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31164 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31165 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31166 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31167 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31168 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31169 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31170 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31171 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31172 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31173 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31174 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31175 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31176 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31177 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31178 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31179 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31180 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31181 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31182 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31183
31184 LTCC='$LTCC'
31185 LTCFLAGS='$LTCFLAGS'
31186 compiler='$compiler_DEFAULT'
31187
31188 # A function that is used when there is no print builtin or printf.
31189 func_fallback_echo ()
31190 {
31191   eval 'cat <<_LTECHO_EOF
31192 \$1
31193 _LTECHO_EOF'
31194 }
31195
31196 # Quote evaled strings.
31197 for var in SHELL \
31198 ECHO \
31199 SED \
31200 GREP \
31201 EGREP \
31202 FGREP \
31203 LD \
31204 NM \
31205 LN_S \
31206 lt_SP2NL \
31207 lt_NL2SP \
31208 reload_flag \
31209 OBJDUMP \
31210 deplibs_check_method \
31211 file_magic_cmd \
31212 file_magic_glob \
31213 want_nocaseglob \
31214 DLLTOOL \
31215 sharedlib_from_linklib_cmd \
31216 AR \
31217 AR_FLAGS \
31218 archiver_list_spec \
31219 STRIP \
31220 RANLIB \
31221 CC \
31222 CFLAGS \
31223 compiler \
31224 lt_cv_sys_global_symbol_pipe \
31225 lt_cv_sys_global_symbol_to_cdecl \
31226 lt_cv_sys_global_symbol_to_c_name_address \
31227 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31228 nm_file_list_spec \
31229 lt_prog_compiler_no_builtin_flag \
31230 lt_prog_compiler_pic \
31231 lt_prog_compiler_wl \
31232 lt_prog_compiler_static \
31233 lt_cv_prog_compiler_c_o \
31234 need_locks \
31235 MANIFEST_TOOL \
31236 DSYMUTIL \
31237 NMEDIT \
31238 LIPO \
31239 OTOOL \
31240 OTOOL64 \
31241 shrext_cmds \
31242 export_dynamic_flag_spec \
31243 whole_archive_flag_spec \
31244 compiler_needs_object \
31245 with_gnu_ld \
31246 allow_undefined_flag \
31247 no_undefined_flag \
31248 hardcode_libdir_flag_spec \
31249 hardcode_libdir_flag_spec_ld \
31250 hardcode_libdir_separator \
31251 exclude_expsyms \
31252 include_expsyms \
31253 file_list_spec \
31254 variables_saved_for_relink \
31255 libname_spec \
31256 library_names_spec \
31257 soname_spec \
31258 install_override_mode \
31259 finish_eval \
31260 old_striplib \
31261 striplib \
31262 compiler_lib_search_dirs \
31263 predep_objects \
31264 postdep_objects \
31265 predeps \
31266 postdeps \
31267 compiler_lib_search_path \
31268 LD_CXX \
31269 reload_flag_CXX \
31270 compiler_CXX \
31271 lt_prog_compiler_no_builtin_flag_CXX \
31272 lt_prog_compiler_pic_CXX \
31273 lt_prog_compiler_wl_CXX \
31274 lt_prog_compiler_static_CXX \
31275 lt_cv_prog_compiler_c_o_CXX \
31276 export_dynamic_flag_spec_CXX \
31277 whole_archive_flag_spec_CXX \
31278 compiler_needs_object_CXX \
31279 with_gnu_ld_CXX \
31280 allow_undefined_flag_CXX \
31281 no_undefined_flag_CXX \
31282 hardcode_libdir_flag_spec_CXX \
31283 hardcode_libdir_flag_spec_ld_CXX \
31284 hardcode_libdir_separator_CXX \
31285 exclude_expsyms_CXX \
31286 include_expsyms_CXX \
31287 file_list_spec_CXX \
31288 compiler_lib_search_dirs_CXX \
31289 predep_objects_CXX \
31290 postdep_objects_CXX \
31291 predeps_CXX \
31292 postdeps_CXX \
31293 compiler_lib_search_path_CXX; do
31294     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31295     *[\\\\\\\`\\"\\\$]*)
31296       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31297       ;;
31298     *)
31299       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31300       ;;
31301     esac
31302 done
31303
31304 # Double-quote double-evaled strings.
31305 for var in reload_cmds \
31306 old_postinstall_cmds \
31307 old_postuninstall_cmds \
31308 old_archive_cmds \
31309 extract_expsyms_cmds \
31310 old_archive_from_new_cmds \
31311 old_archive_from_expsyms_cmds \
31312 archive_cmds \
31313 archive_expsym_cmds \
31314 module_cmds \
31315 module_expsym_cmds \
31316 export_symbols_cmds \
31317 prelink_cmds \
31318 postlink_cmds \
31319 postinstall_cmds \
31320 postuninstall_cmds \
31321 finish_cmds \
31322 sys_lib_search_path_spec \
31323 sys_lib_dlsearch_path_spec \
31324 reload_cmds_CXX \
31325 old_archive_cmds_CXX \
31326 old_archive_from_new_cmds_CXX \
31327 old_archive_from_expsyms_cmds_CXX \
31328 archive_cmds_CXX \
31329 archive_expsym_cmds_CXX \
31330 module_cmds_CXX \
31331 module_expsym_cmds_CXX \
31332 export_symbols_cmds_CXX \
31333 prelink_cmds_CXX \
31334 postlink_cmds_CXX; do
31335     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31336     *[\\\\\\\`\\"\\\$]*)
31337       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31338       ;;
31339     *)
31340       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31341       ;;
31342     esac
31343 done
31344
31345 ac_aux_dir='$ac_aux_dir'
31346 xsi_shell='$xsi_shell'
31347 lt_shell_append='$lt_shell_append'
31348
31349 # See if we are running on zsh, and set the options which allow our
31350 # commands through without removal of \ escapes INIT.
31351 if test -n "\${ZSH_VERSION+set}" ; then
31352    setopt NO_GLOB_SUBST
31353 fi
31354
31355
31356     PACKAGE='$PACKAGE'
31357     VERSION='$VERSION'
31358     TIMESTAMP='$TIMESTAMP'
31359     RM='$RM'
31360     ofile='$ofile'
31361
31362
31363
31364
31365
31366 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31367     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31368     # from automake.
31369     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31370     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31371     LINGUAS="${LINGUAS-%UNSET%}"
31372
31373
31374 _ACEOF
31375
31376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31377
31378 # Handling of arguments.
31379 for ac_config_target in $ac_config_targets
31380 do
31381   case $ac_config_target in
31382     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31383     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31384     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31385     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31386     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31387     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31388     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31389     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31390     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31391     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31392     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31393     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31394     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31395     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31396     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31397     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31398     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31399     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31400     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31401     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31402     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31403     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31404     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31405     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31406     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31407     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31408     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31409     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31410     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31411     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31412     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31413     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31414     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31415     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31416     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31417     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31418     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31419     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31420     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31421     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31422     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31423     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31424     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31425     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31426     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31427     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31428     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31429     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31430     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31431     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31432     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31433     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31434     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31435     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31436     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31437     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31438     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31439     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31440     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31441     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31442     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31443     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31444     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31445     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31446     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31447     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31448     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31449     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31450     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31451     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31452     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31453     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31454     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31455     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31456     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31457     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31458     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31459     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31460     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31461     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31462     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31463     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31464     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31465     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31466     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31467     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31468     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31469     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31470     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31471     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31472     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31473     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31474     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31475     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31476     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31477     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31478     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31479     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31480     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31481     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31482     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31483     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31484     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31485     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31486     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31487     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31488     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31489
31490   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
31491   esac
31492 done
31493
31494
31495 # If the user did not use the arguments to specify the items to instantiate,
31496 # then the envvar interface is used.  Set only those that are not.
31497 # We use the long form for the default assignment because of an extremely
31498 # bizarre bug on SunOS 4.1.3.
31499 if $ac_need_defaults; then
31500   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31501   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31502   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31503 fi
31504
31505 # Have a temporary directory for convenience.  Make it in the build tree
31506 # simply because there is no reason against having it here, and in addition,
31507 # creating and moving files from /tmp can sometimes cause problems.
31508 # Hook for its removal unless debugging.
31509 # Note that there is a small window in which the directory will not be cleaned:
31510 # after its creation but before its name has been assigned to `$tmp'.
31511 $debug ||
31512 {
31513   tmp=
31514   trap 'exit_status=$?
31515   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31516 ' 0
31517   trap 'as_fn_exit 1' 1 2 13 15
31518 }
31519 # Create a (secure) tmp directory for tmp files.
31520
31521 {
31522   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31523   test -n "$tmp" && test -d "$tmp"
31524 }  ||
31525 {
31526   tmp=./conf$$-$RANDOM
31527   (umask 077 && mkdir "$tmp")
31528 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31529
31530 # Set up the scripts for CONFIG_FILES section.
31531 # No need to generate them if there are no CONFIG_FILES.
31532 # This happens for instance with `./config.status config.h'.
31533 if test -n "$CONFIG_FILES"; then
31534
31535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31536   ac_cs_awk_getline=:
31537   ac_cs_awk_pipe_init=
31538   ac_cs_awk_read_file='
31539       while ((getline aline < (F[key])) > 0)
31540         print(aline)
31541       close(F[key])'
31542   ac_cs_awk_pipe_fini=
31543 else
31544   ac_cs_awk_getline=false
31545   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31546   ac_cs_awk_read_file='
31547       print "|#_!!_#|"
31548       print "cat " F[key] " &&"
31549       '$ac_cs_awk_pipe_init
31550   # The final `:' finishes the AND list.
31551   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31552 fi
31553 ac_cr=`echo X | tr X '\015'`
31554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31555 # But we know of no other shell where ac_cr would be empty at this
31556 # point, so we can use a bashism as a fallback.
31557 if test "x$ac_cr" = x; then
31558   eval ac_cr=\$\'\\r\'
31559 fi
31560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31562   ac_cs_awk_cr='\\r'
31563 else
31564   ac_cs_awk_cr=$ac_cr
31565 fi
31566
31567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31568 _ACEOF
31569
31570 # Create commands to substitute file output variables.
31571 {
31572   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31573   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31574   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31575   echo "_ACAWK" &&
31576   echo "_ACEOF"
31577 } >conf$$files.sh &&
31578 . ./conf$$files.sh ||
31579   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31580 rm -f conf$$files.sh
31581
31582 {
31583   echo "cat >conf$$subs.awk <<_ACEOF" &&
31584   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31585   echo "_ACEOF"
31586 } >conf$$subs.sh ||
31587   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31589 ac_delim='%!_!# '
31590 for ac_last_try in false false false false false :; do
31591   . ./conf$$subs.sh ||
31592     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31593
31594   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31595   if test $ac_delim_n = $ac_delim_num; then
31596     break
31597   elif $ac_last_try; then
31598     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31599   else
31600     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31601   fi
31602 done
31603 rm -f conf$$subs.sh
31604
31605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31607 _ACEOF
31608 sed -n '
31609 h
31610 s/^/S["/; s/!.*/"]=/
31611 p
31612 g
31613 s/^[^!]*!//
31614 :repl
31615 t repl
31616 s/'"$ac_delim"'$//
31617 t delim
31618 :nl
31619 h
31620 s/\(.\{148\}\)..*/\1/
31621 t more1
31622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31623 p
31624 n
31625 b repl
31626 :more1
31627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31628 p
31629 g
31630 s/.\{148\}//
31631 t nl
31632 :delim
31633 h
31634 s/\(.\{148\}\)..*/\1/
31635 t more2
31636 s/["\\]/\\&/g; s/^/"/; s/$/"/
31637 p
31638 b
31639 :more2
31640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31641 p
31642 g
31643 s/.\{148\}//
31644 t delim
31645 ' <conf$$subs.awk | sed '
31646 /^[^""]/{
31647   N
31648   s/\n//
31649 }
31650 ' >>$CONFIG_STATUS || ac_write_fail=1
31651 rm -f conf$$subs.awk
31652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31653 _ACAWK
31654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31655   for (key in S) S_is_set[key] = 1
31656   FS = "\a"
31657   \$ac_cs_awk_pipe_init
31658 }
31659 {
31660   line = $ 0
31661   nfields = split(line, field, "@")
31662   substed = 0
31663   len = length(field[1])
31664   for (i = 2; i < nfields; i++) {
31665     key = field[i]
31666     keylen = length(key)
31667     if (S_is_set[key]) {
31668       value = S[key]
31669       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31670       len += length(value) + length(field[++i])
31671       substed = 1
31672     } else
31673       len += 1 + keylen
31674   }
31675   if (nfields == 3 && !substed) {
31676     key = field[2]
31677     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31678       \$ac_cs_awk_read_file
31679       next
31680     }
31681   }
31682   print line
31683 }
31684 \$ac_cs_awk_pipe_fini
31685 _ACAWK
31686 _ACEOF
31687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31689   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31690 else
31691   cat
31692 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31693   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31694 _ACEOF
31695
31696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31698 # trailing colons and then remove the whole line if VPATH becomes empty
31699 # (actually we leave an empty line to preserve line numbers).
31700 if test "x$srcdir" = x.; then
31701   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31702 h
31703 s///
31704 s/^/:/
31705 s/[      ]*$/:/
31706 s/:\$(srcdir):/:/g
31707 s/:\${srcdir}:/:/g
31708 s/:@srcdir@:/:/g
31709 s/^:*//
31710 s/:*$//
31711 x
31712 s/\(=[   ]*\).*/\1/
31713 G
31714 s/\n//
31715 s/^[^=]*=[       ]*$//
31716 }'
31717 fi
31718
31719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31720 fi # test -n "$CONFIG_FILES"
31721
31722 # Set up the scripts for CONFIG_HEADERS section.
31723 # No need to generate them if there are no CONFIG_HEADERS.
31724 # This happens for instance with `./config.status Makefile'.
31725 if test -n "$CONFIG_HEADERS"; then
31726 cat >"$tmp/defines.awk" <<\_ACAWK ||
31727 BEGIN {
31728 _ACEOF
31729
31730 # Transform confdefs.h into an awk script `defines.awk', embedded as
31731 # here-document in config.status, that substitutes the proper values into
31732 # config.h.in to produce config.h.
31733
31734 # Create a delimiter string that does not exist in confdefs.h, to ease
31735 # handling of long lines.
31736 ac_delim='%!_!# '
31737 for ac_last_try in false false :; do
31738   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31739   if test -z "$ac_t"; then
31740     break
31741   elif $ac_last_try; then
31742     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31743   else
31744     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31745   fi
31746 done
31747
31748 # For the awk script, D is an array of macro values keyed by name,
31749 # likewise P contains macro parameters if any.  Preserve backslash
31750 # newline sequences.
31751
31752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31753 sed -n '
31754 s/.\{148\}/&'"$ac_delim"'/g
31755 t rset
31756 :rset
31757 s/^[     ]*#[    ]*define[       ][      ]*/ /
31758 t def
31759 d
31760 :def
31761 s/\\$//
31762 t bsnl
31763 s/["\\]/\\&/g
31764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31765 D["\1"]=" \3"/p
31766 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31767 d
31768 :bsnl
31769 s/["\\]/\\&/g
31770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31771 D["\1"]=" \3\\\\\\n"\\/p
31772 t cont
31773 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31774 t cont
31775 d
31776 :cont
31777 n
31778 s/.\{148\}/&'"$ac_delim"'/g
31779 t clear
31780 :clear
31781 s/\\$//
31782 t bsnlc
31783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31784 d
31785 :bsnlc
31786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31787 b cont
31788 ' <confdefs.h | sed '
31789 s/'"$ac_delim"'/"\\\
31790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31791
31792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31793   for (key in D) D_is_set[key] = 1
31794   FS = "\a"
31795 }
31796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31797   line = \$ 0
31798   split(line, arg, " ")
31799   if (arg[1] == "#") {
31800     defundef = arg[2]
31801     mac1 = arg[3]
31802   } else {
31803     defundef = substr(arg[1], 2)
31804     mac1 = arg[2]
31805   }
31806   split(mac1, mac2, "(") #)
31807   macro = mac2[1]
31808   prefix = substr(line, 1, index(line, defundef) - 1)
31809   if (D_is_set[macro]) {
31810     # Preserve the white space surrounding the "#".
31811     print prefix "define", macro P[macro] D[macro]
31812     next
31813   } else {
31814     # Replace #undef with comments.  This is necessary, for example,
31815     # in the case of _POSIX_SOURCE, which is predefined and required
31816     # on some systems where configure will not decide to define it.
31817     if (defundef == "undef") {
31818       print "/*", prefix defundef, macro, "*/"
31819       next
31820     }
31821   }
31822 }
31823 { print }
31824 _ACAWK
31825 _ACEOF
31826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31827   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31828 fi # test -n "$CONFIG_HEADERS"
31829
31830
31831 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31832 shift
31833 for ac_tag
31834 do
31835   case $ac_tag in
31836   :[FHLC]) ac_mode=$ac_tag; continue;;
31837   esac
31838   case $ac_mode$ac_tag in
31839   :[FHL]*:*);;
31840   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
31841   :[FH]-) ac_tag=-:-;;
31842   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31843   esac
31844   ac_save_IFS=$IFS
31845   IFS=:
31846   set x $ac_tag
31847   IFS=$ac_save_IFS
31848   shift
31849   ac_file=$1
31850   shift
31851
31852   case $ac_mode in
31853   :L) ac_source=$1;;
31854   :[FH])
31855     ac_file_inputs=
31856     for ac_f
31857     do
31858       case $ac_f in
31859       -) ac_f="$tmp/stdin";;
31860       *) # Look for the file first in the build tree, then in the source tree
31861          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31862          # because $ac_f cannot contain `:'.
31863          test -f "$ac_f" ||
31864            case $ac_f in
31865            [\\/$]*) false;;
31866            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31867            esac ||
31868            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
31869       esac
31870       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31871       as_fn_append ac_file_inputs " '$ac_f'"
31872     done
31873
31874     # Let's still pretend it is `configure' which instantiates (i.e., don't
31875     # use $as_me), people would be surprised to read:
31876     #    /* config.h.  Generated by config.status.  */
31877     configure_input='Generated from '`
31878           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31879         `' by configure.'
31880     if test x"$ac_file" != x-; then
31881       configure_input="$ac_file.  $configure_input"
31882       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31883 $as_echo "$as_me: creating $ac_file" >&6;}
31884     fi
31885     # Neutralize special characters interpreted by sed in replacement strings.
31886     case $configure_input in #(
31887     *\&* | *\|* | *\\* )
31888        ac_sed_conf_input=`$as_echo "$configure_input" |
31889        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31890     *) ac_sed_conf_input=$configure_input;;
31891     esac
31892
31893     case $ac_tag in
31894     *:-:* | *:-) cat >"$tmp/stdin" \
31895       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
31896     esac
31897     ;;
31898   esac
31899
31900   ac_dir=`$as_dirname -- "$ac_file" ||
31901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902          X"$ac_file" : 'X\(//\)[^/]' \| \
31903          X"$ac_file" : 'X\(//\)$' \| \
31904          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31905 $as_echo X"$ac_file" |
31906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31907             s//\1/
31908             q
31909           }
31910           /^X\(\/\/\)[^/].*/{
31911             s//\1/
31912             q
31913           }
31914           /^X\(\/\/\)$/{
31915             s//\1/
31916             q
31917           }
31918           /^X\(\/\).*/{
31919             s//\1/
31920             q
31921           }
31922           s/.*/./; q'`
31923   as_dir="$ac_dir"; as_fn_mkdir_p
31924   ac_builddir=.
31925
31926 case "$ac_dir" in
31927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31928 *)
31929   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31930   # A ".." for each directory in $ac_dir_suffix.
31931   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31932   case $ac_top_builddir_sub in
31933   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31934   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31935   esac ;;
31936 esac
31937 ac_abs_top_builddir=$ac_pwd
31938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31939 # for backward compatibility:
31940 ac_top_builddir=$ac_top_build_prefix
31941
31942 case $srcdir in
31943   .)  # We are building in place.
31944     ac_srcdir=.
31945     ac_top_srcdir=$ac_top_builddir_sub
31946     ac_abs_top_srcdir=$ac_pwd ;;
31947   [\\/]* | ?:[\\/]* )  # Absolute name.
31948     ac_srcdir=$srcdir$ac_dir_suffix;
31949     ac_top_srcdir=$srcdir
31950     ac_abs_top_srcdir=$srcdir ;;
31951   *) # Relative name.
31952     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31953     ac_top_srcdir=$ac_top_build_prefix$srcdir
31954     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31955 esac
31956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31957
31958
31959   case $ac_mode in
31960   :F)
31961   #
31962   # CONFIG_FILE
31963   #
31964
31965   case $INSTALL in
31966   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31967   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31968   esac
31969 _ACEOF
31970
31971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31972 # If the template does not know about datarootdir, expand it.
31973 # FIXME: This hack should be removed a few years after 2.60.
31974 ac_datarootdir_hack=; ac_datarootdir_seen=
31975 ac_sed_dataroot='
31976 /datarootdir/ {
31977   p
31978   q
31979 }
31980 /@datadir@/p
31981 /@docdir@/p
31982 /@infodir@/p
31983 /@localedir@/p
31984 /@mandir@/p'
31985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31986 *datarootdir*) ac_datarootdir_seen=yes;;
31987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31988   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31990 _ACEOF
31991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31992   ac_datarootdir_hack='
31993   s&@datadir@&$datadir&g
31994   s&@docdir@&$docdir&g
31995   s&@infodir@&$infodir&g
31996   s&@localedir@&$localedir&g
31997   s&@mandir@&$mandir&g
31998   s&\\\${datarootdir}&$datarootdir&g' ;;
31999 esac
32000 _ACEOF
32001
32002 # Neutralize VPATH when `$srcdir' = `.'.
32003 # Shell code in configure.ac might set extrasub.
32004 # FIXME: do we really want to maintain this feature?
32005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32006 ac_sed_extra="$ac_vpsub
32007 $extrasub
32008 _ACEOF
32009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32010 :t
32011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32012 s|@configure_input@|$ac_sed_conf_input|;t t
32013 s&@top_builddir@&$ac_top_builddir_sub&;t t
32014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32015 s&@srcdir@&$ac_srcdir&;t t
32016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32017 s&@top_srcdir@&$ac_top_srcdir&;t t
32018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32019 s&@builddir@&$ac_builddir&;t t
32020 s&@abs_builddir@&$ac_abs_builddir&;t t
32021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32022 s&@INSTALL@&$ac_INSTALL&;t t
32023 $ac_datarootdir_hack
32024 "
32025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32026 if $ac_cs_awk_getline; then
32027   $AWK -f "$tmp/subs.awk"
32028 else
32029   $AWK -f "$tmp/subs.awk" | $SHELL
32030 fi >$tmp/out \
32031   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32032
32033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32034   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32035   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32037 which seems to be undefined.  Please make sure it is defined" >&5
32038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32039 which seems to be undefined.  Please make sure it is defined" >&2;}
32040
32041   rm -f "$tmp/stdin"
32042   case $ac_file in
32043   -) cat "$tmp/out" && rm -f "$tmp/out";;
32044   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32045   esac \
32046   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32047  ;;
32048   :H)
32049   #
32050   # CONFIG_HEADER
32051   #
32052   if test x"$ac_file" != x-; then
32053     {
32054       $as_echo "/* $configure_input  */" \
32055       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32056     } >"$tmp/config.h" \
32057       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32058     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32059       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32061     else
32062       rm -f "$ac_file"
32063       mv "$tmp/config.h" "$ac_file" \
32064         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32065     fi
32066   else
32067     $as_echo "/* $configure_input  */" \
32068       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32069       || as_fn_error $? "could not create -" "$LINENO" 5
32070   fi
32071  ;;
32072
32073   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32074 $as_echo "$as_me: executing $ac_file commands" >&6;}
32075  ;;
32076   esac
32077
32078
32079   case $ac_file$ac_mode in
32080     "libtool":C)
32081
32082     # See if we are running on zsh, and set the options which allow our
32083     # commands through without removal of \ escapes.
32084     if test -n "${ZSH_VERSION+set}" ; then
32085       setopt NO_GLOB_SUBST
32086     fi
32087
32088     cfgfile="${ofile}T"
32089     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32090     $RM "$cfgfile"
32091
32092     cat <<_LT_EOF >> "$cfgfile"
32093 #! $SHELL
32094
32095 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32096 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32098 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32099 #
32100 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32101 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32102 #                 Inc.
32103 #   Written by Gordon Matzigkeit, 1996
32104 #
32105 #   This file is part of GNU Libtool.
32106 #
32107 # GNU Libtool is free software; you can redistribute it and/or
32108 # modify it under the terms of the GNU General Public License as
32109 # published by the Free Software Foundation; either version 2 of
32110 # the License, or (at your option) any later version.
32111 #
32112 # As a special exception to the GNU General Public License,
32113 # if you distribute this file as part of a program or library that
32114 # is built using GNU Libtool, you may include this file under the
32115 # same distribution terms that you use for the rest of that program.
32116 #
32117 # GNU Libtool is distributed in the hope that it will be useful,
32118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32120 # GNU General Public License for more details.
32121 #
32122 # You should have received a copy of the GNU General Public License
32123 # along with GNU Libtool; see the file COPYING.  If not, a copy
32124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32125 # obtained by writing to the Free Software Foundation, Inc.,
32126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32127
32128
32129 # The names of the tagged configurations supported by this script.
32130 available_tags="CXX "
32131
32132 # ### BEGIN LIBTOOL CONFIG
32133
32134 # Which release of libtool.m4 was used?
32135 macro_version=$macro_version
32136 macro_revision=$macro_revision
32137
32138 # Whether or not to build shared libraries.
32139 build_libtool_libs=$enable_shared
32140
32141 # Whether or not to build static libraries.
32142 build_old_libs=$enable_static
32143
32144 # What type of objects to build.
32145 pic_mode=$pic_mode
32146
32147 # Whether or not to optimize for fast installation.
32148 fast_install=$enable_fast_install
32149
32150 # Shell to use when invoking shell scripts.
32151 SHELL=$lt_SHELL
32152
32153 # An echo program that protects backslashes.
32154 ECHO=$lt_ECHO
32155
32156 # The host system.
32157 host_alias=$host_alias
32158 host=$host
32159 host_os=$host_os
32160
32161 # The build system.
32162 build_alias=$build_alias
32163 build=$build
32164 build_os=$build_os
32165
32166 # A sed program that does not truncate output.
32167 SED=$lt_SED
32168
32169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32170 Xsed="\$SED -e 1s/^X//"
32171
32172 # A grep program that handles long lines.
32173 GREP=$lt_GREP
32174
32175 # An ERE matcher.
32176 EGREP=$lt_EGREP
32177
32178 # A literal string matcher.
32179 FGREP=$lt_FGREP
32180
32181 # A BSD- or MS-compatible name lister.
32182 NM=$lt_NM
32183
32184 # Whether we need soft or hard links.
32185 LN_S=$lt_LN_S
32186
32187 # What is the maximum length of a command?
32188 max_cmd_len=$max_cmd_len
32189
32190 # Object file suffix (normally "o").
32191 objext=$ac_objext
32192
32193 # Executable file suffix (normally "").
32194 exeext=$exeext
32195
32196 # whether the shell understands "unset".
32197 lt_unset=$lt_unset
32198
32199 # turn spaces into newlines.
32200 SP2NL=$lt_lt_SP2NL
32201
32202 # turn newlines into spaces.
32203 NL2SP=$lt_lt_NL2SP
32204
32205 # convert \$build file names to \$host format.
32206 to_host_file_cmd=$lt_cv_to_host_file_cmd
32207
32208 # convert \$build files to toolchain format.
32209 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32210
32211 # An object symbol dumper.
32212 OBJDUMP=$lt_OBJDUMP
32213
32214 # Method to check whether dependent libraries are shared objects.
32215 deplibs_check_method=$lt_deplibs_check_method
32216
32217 # Command to use when deplibs_check_method = "file_magic".
32218 file_magic_cmd=$lt_file_magic_cmd
32219
32220 # How to find potential files when deplibs_check_method = "file_magic".
32221 file_magic_glob=$lt_file_magic_glob
32222
32223 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32224 want_nocaseglob=$lt_want_nocaseglob
32225
32226 # DLL creation program.
32227 DLLTOOL=$lt_DLLTOOL
32228
32229 # Command to associate shared and link libraries.
32230 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32231
32232 # The archiver.
32233 AR=$lt_AR
32234
32235 # Flags to create an archive.
32236 AR_FLAGS=$lt_AR_FLAGS
32237
32238 # How to feed a file listing to the archiver.
32239 archiver_list_spec=$lt_archiver_list_spec
32240
32241 # A symbol stripping program.
32242 STRIP=$lt_STRIP
32243
32244 # Commands used to install an old-style archive.
32245 RANLIB=$lt_RANLIB
32246 old_postinstall_cmds=$lt_old_postinstall_cmds
32247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32248
32249 # Whether to use a lock for old archive extraction.
32250 lock_old_archive_extraction=$lock_old_archive_extraction
32251
32252 # A C compiler.
32253 LTCC=$lt_CC
32254
32255 # LTCC compiler flags.
32256 LTCFLAGS=$lt_CFLAGS
32257
32258 # Take the output of nm and produce a listing of raw symbols and C names.
32259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32260
32261 # Transform the output of nm in a proper C declaration.
32262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32263
32264 # Transform the output of nm in a C name address pair.
32265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32266
32267 # Transform the output of nm in a C name address pair when lib prefix is needed.
32268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32269
32270 # Specify filename containing input files for \$NM.
32271 nm_file_list_spec=$lt_nm_file_list_spec
32272
32273 # The root where to search for dependent libraries,and in which our libraries should be installed.
32274 lt_sysroot=$lt_sysroot
32275
32276 # The name of the directory that contains temporary libtool files.
32277 objdir=$objdir
32278
32279 # Used to examine libraries when file_magic_cmd begins with "file".
32280 MAGIC_CMD=$MAGIC_CMD
32281
32282 # Must we lock files when doing compilation?
32283 need_locks=$lt_need_locks
32284
32285 # Manifest tool.
32286 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32287
32288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32289 DSYMUTIL=$lt_DSYMUTIL
32290
32291 # Tool to change global to local symbols on Mac OS X.
32292 NMEDIT=$lt_NMEDIT
32293
32294 # Tool to manipulate fat objects and archives on Mac OS X.
32295 LIPO=$lt_LIPO
32296
32297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32298 OTOOL=$lt_OTOOL
32299
32300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32301 OTOOL64=$lt_OTOOL64
32302
32303 # Old archive suffix (normally "a").
32304 libext=$libext
32305
32306 # Shared library suffix (normally ".so").
32307 shrext_cmds=$lt_shrext_cmds
32308
32309 # The commands to extract the exported symbol list from a shared archive.
32310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32311
32312 # Variables whose values should be saved in libtool wrapper scripts and
32313 # restored at link time.
32314 variables_saved_for_relink=$lt_variables_saved_for_relink
32315
32316 # Do we need the "lib" prefix for modules?
32317 need_lib_prefix=$need_lib_prefix
32318
32319 # Do we need a version for libraries?
32320 need_version=$need_version
32321
32322 # Library versioning type.
32323 version_type=$version_type
32324
32325 # Shared library runtime path variable.
32326 runpath_var=$runpath_var
32327
32328 # Shared library path variable.
32329 shlibpath_var=$shlibpath_var
32330
32331 # Is shlibpath searched before the hard-coded library search path?
32332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32333
32334 # Format of library name prefix.
32335 libname_spec=$lt_libname_spec
32336
32337 # List of archive names.  First name is the real one, the rest are links.
32338 # The last name is the one that the linker finds with -lNAME
32339 library_names_spec=$lt_library_names_spec
32340
32341 # The coded name of the library, if different from the real name.
32342 soname_spec=$lt_soname_spec
32343
32344 # Permission mode override for installation of shared libraries.
32345 install_override_mode=$lt_install_override_mode
32346
32347 # Command to use after installation of a shared archive.
32348 postinstall_cmds=$lt_postinstall_cmds
32349
32350 # Command to use after uninstallation of a shared archive.
32351 postuninstall_cmds=$lt_postuninstall_cmds
32352
32353 # Commands used to finish a libtool library installation in a directory.
32354 finish_cmds=$lt_finish_cmds
32355
32356 # As "finish_cmds", except a single script fragment to be evaled but
32357 # not shown.
32358 finish_eval=$lt_finish_eval
32359
32360 # Whether we should hardcode library paths into libraries.
32361 hardcode_into_libs=$hardcode_into_libs
32362
32363 # Compile-time system search path for libraries.
32364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32365
32366 # Run-time system search path for libraries.
32367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32368
32369 # Whether dlopen is supported.
32370 dlopen_support=$enable_dlopen
32371
32372 # Whether dlopen of programs is supported.
32373 dlopen_self=$enable_dlopen_self
32374
32375 # Whether dlopen of statically linked programs is supported.
32376 dlopen_self_static=$enable_dlopen_self_static
32377
32378 # Commands to strip libraries.
32379 old_striplib=$lt_old_striplib
32380 striplib=$lt_striplib
32381
32382
32383 # The linker used to build libraries.
32384 LD=$lt_LD
32385
32386 # How to create reloadable object files.
32387 reload_flag=$lt_reload_flag
32388 reload_cmds=$lt_reload_cmds
32389
32390 # Commands used to build an old-style archive.
32391 old_archive_cmds=$lt_old_archive_cmds
32392
32393 # A language specific compiler.
32394 CC=$lt_compiler
32395
32396 # Is the compiler the GNU compiler?
32397 with_gcc=$GCC
32398
32399 # Compiler flag to turn off builtin functions.
32400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32401
32402 # Additional compiler flags for building library objects.
32403 pic_flag=$lt_lt_prog_compiler_pic
32404
32405 # How to pass a linker flag through the compiler.
32406 wl=$lt_lt_prog_compiler_wl
32407
32408 # Compiler flag to prevent dynamic linking.
32409 link_static_flag=$lt_lt_prog_compiler_static
32410
32411 # Does compiler simultaneously support -c and -o options?
32412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32413
32414 # Whether or not to add -lc for building shared libraries.
32415 build_libtool_need_lc=$archive_cmds_need_lc
32416
32417 # Whether or not to disallow shared libs when runtime libs are static.
32418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32419
32420 # Compiler flag to allow reflexive dlopens.
32421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32422
32423 # Compiler flag to generate shared objects directly from archives.
32424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32425
32426 # Whether the compiler copes with passing no objects directly.
32427 compiler_needs_object=$lt_compiler_needs_object
32428
32429 # Create an old-style archive from a shared archive.
32430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32431
32432 # Create a temporary old-style archive to link instead of a shared archive.
32433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32434
32435 # Commands used to build a shared archive.
32436 archive_cmds=$lt_archive_cmds
32437 archive_expsym_cmds=$lt_archive_expsym_cmds
32438
32439 # Commands used to build a loadable module if different from building
32440 # a shared archive.
32441 module_cmds=$lt_module_cmds
32442 module_expsym_cmds=$lt_module_expsym_cmds
32443
32444 # Whether we are building with GNU ld or not.
32445 with_gnu_ld=$lt_with_gnu_ld
32446
32447 # Flag that allows shared libraries with undefined symbols to be built.
32448 allow_undefined_flag=$lt_allow_undefined_flag
32449
32450 # Flag that enforces no undefined symbols.
32451 no_undefined_flag=$lt_no_undefined_flag
32452
32453 # Flag to hardcode \$libdir into a binary during linking.
32454 # This must work even if \$libdir does not exist
32455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32456
32457 # If ld is used when linking, flag to hardcode \$libdir into a binary
32458 # during linking.  This must work even if \$libdir does not exist.
32459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32460
32461 # Whether we need a single "-rpath" flag with a separated argument.
32462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32463
32464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32465 # DIR into the resulting binary.
32466 hardcode_direct=$hardcode_direct
32467
32468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32469 # DIR into the resulting binary and the resulting library dependency is
32470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32471 # library is relocated.
32472 hardcode_direct_absolute=$hardcode_direct_absolute
32473
32474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32475 # into the resulting binary.
32476 hardcode_minus_L=$hardcode_minus_L
32477
32478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32479 # into the resulting binary.
32480 hardcode_shlibpath_var=$hardcode_shlibpath_var
32481
32482 # Set to "yes" if building a shared library automatically hardcodes DIR
32483 # into the library and all subsequent libraries and executables linked
32484 # against it.
32485 hardcode_automatic=$hardcode_automatic
32486
32487 # Set to yes if linker adds runtime paths of dependent libraries
32488 # to runtime path list.
32489 inherit_rpath=$inherit_rpath
32490
32491 # Whether libtool must link a program against all its dependency libraries.
32492 link_all_deplibs=$link_all_deplibs
32493
32494 # Set to "yes" if exported symbols are required.
32495 always_export_symbols=$always_export_symbols
32496
32497 # The commands to list exported symbols.
32498 export_symbols_cmds=$lt_export_symbols_cmds
32499
32500 # Symbols that should not be listed in the preloaded symbols.
32501 exclude_expsyms=$lt_exclude_expsyms
32502
32503 # Symbols that must always be exported.
32504 include_expsyms=$lt_include_expsyms
32505
32506 # Commands necessary for linking programs (against libraries) with templates.
32507 prelink_cmds=$lt_prelink_cmds
32508
32509 # Commands necessary for finishing linking programs.
32510 postlink_cmds=$lt_postlink_cmds
32511
32512 # Specify filename containing input files.
32513 file_list_spec=$lt_file_list_spec
32514
32515 # How to hardcode a shared library path into an executable.
32516 hardcode_action=$hardcode_action
32517
32518 # The directories searched by this compiler when creating a shared library.
32519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32520
32521 # Dependencies to place before and after the objects being linked to
32522 # create a shared library.
32523 predep_objects=$lt_predep_objects
32524 postdep_objects=$lt_postdep_objects
32525 predeps=$lt_predeps
32526 postdeps=$lt_postdeps
32527
32528 # The library search path used internally by the compiler when linking
32529 # a shared library.
32530 compiler_lib_search_path=$lt_compiler_lib_search_path
32531
32532 # ### END LIBTOOL CONFIG
32533
32534 _LT_EOF
32535
32536   case $host_os in
32537   aix3*)
32538     cat <<\_LT_EOF >> "$cfgfile"
32539 # AIX sometimes has problems with the GCC collect2 program.  For some
32540 # reason, if we set the COLLECT_NAMES environment variable, the problems
32541 # vanish in a puff of smoke.
32542 if test "X${COLLECT_NAMES+set}" != Xset; then
32543   COLLECT_NAMES=
32544   export COLLECT_NAMES
32545 fi
32546 _LT_EOF
32547     ;;
32548   esac
32549
32550
32551 ltmain="$ac_aux_dir/ltmain.sh"
32552
32553
32554   # We use sed instead of cat because bash on DJGPP gets confused if
32555   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32556   # text mode, it properly converts lines to CR/LF.  This bash problem
32557   # is reportedly fixed, but why not run on old versions too?
32558   sed '$q' "$ltmain" >> "$cfgfile" \
32559      || (rm -f "$cfgfile"; exit 1)
32560
32561   if test x"$xsi_shell" = xyes; then
32562   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32563 func_dirname ()\
32564 {\
32565 \    case ${1} in\
32566 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32567 \      *  ) func_dirname_result="${3}" ;;\
32568 \    esac\
32569 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32570   && mv -f "$cfgfile.tmp" "$cfgfile" \
32571     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32572 test 0 -eq $? || _lt_function_replace_fail=:
32573
32574
32575   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32576 func_basename ()\
32577 {\
32578 \    func_basename_result="${1##*/}"\
32579 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32580   && mv -f "$cfgfile.tmp" "$cfgfile" \
32581     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32582 test 0 -eq $? || _lt_function_replace_fail=:
32583
32584
32585   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32586 func_dirname_and_basename ()\
32587 {\
32588 \    case ${1} in\
32589 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32590 \      *  ) func_dirname_result="${3}" ;;\
32591 \    esac\
32592 \    func_basename_result="${1##*/}"\
32593 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32594   && mv -f "$cfgfile.tmp" "$cfgfile" \
32595     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32596 test 0 -eq $? || _lt_function_replace_fail=:
32597
32598
32599   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32600 func_stripname ()\
32601 {\
32602 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32603 \    # positional parameters, so assign one to ordinary parameter first.\
32604 \    func_stripname_result=${3}\
32605 \    func_stripname_result=${func_stripname_result#"${1}"}\
32606 \    func_stripname_result=${func_stripname_result%"${2}"}\
32607 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32608   && mv -f "$cfgfile.tmp" "$cfgfile" \
32609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32610 test 0 -eq $? || _lt_function_replace_fail=:
32611
32612
32613   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32614 func_split_long_opt ()\
32615 {\
32616 \    func_split_long_opt_name=${1%%=*}\
32617 \    func_split_long_opt_arg=${1#*=}\
32618 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32619   && mv -f "$cfgfile.tmp" "$cfgfile" \
32620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32621 test 0 -eq $? || _lt_function_replace_fail=:
32622
32623
32624   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32625 func_split_short_opt ()\
32626 {\
32627 \    func_split_short_opt_arg=${1#??}\
32628 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32629 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32630   && mv -f "$cfgfile.tmp" "$cfgfile" \
32631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32632 test 0 -eq $? || _lt_function_replace_fail=:
32633
32634
32635   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32636 func_lo2o ()\
32637 {\
32638 \    case ${1} in\
32639 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32640 \      *)    func_lo2o_result=${1} ;;\
32641 \    esac\
32642 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32643   && mv -f "$cfgfile.tmp" "$cfgfile" \
32644     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32645 test 0 -eq $? || _lt_function_replace_fail=:
32646
32647
32648   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32649 func_xform ()\
32650 {\
32651     func_xform_result=${1%.*}.lo\
32652 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32653   && mv -f "$cfgfile.tmp" "$cfgfile" \
32654     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32655 test 0 -eq $? || _lt_function_replace_fail=:
32656
32657
32658   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32659 func_arith ()\
32660 {\
32661     func_arith_result=$(( $* ))\
32662 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32663   && mv -f "$cfgfile.tmp" "$cfgfile" \
32664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32665 test 0 -eq $? || _lt_function_replace_fail=:
32666
32667
32668   sed -e '/^func_len ()$/,/^} # func_len /c\
32669 func_len ()\
32670 {\
32671     func_len_result=${#1}\
32672 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32673   && mv -f "$cfgfile.tmp" "$cfgfile" \
32674     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32675 test 0 -eq $? || _lt_function_replace_fail=:
32676
32677 fi
32678
32679 if test x"$lt_shell_append" = xyes; then
32680   sed -e '/^func_append ()$/,/^} # func_append /c\
32681 func_append ()\
32682 {\
32683     eval "${1}+=\\${2}"\
32684 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32685   && mv -f "$cfgfile.tmp" "$cfgfile" \
32686     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32687 test 0 -eq $? || _lt_function_replace_fail=:
32688
32689
32690   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32691 func_append_quoted ()\
32692 {\
32693 \    func_quote_for_eval "${2}"\
32694 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32695 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32696   && mv -f "$cfgfile.tmp" "$cfgfile" \
32697     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32698 test 0 -eq $? || _lt_function_replace_fail=:
32699
32700
32701   # Save a `func_append' function call where possible by direct use of '+='
32702   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32703     && mv -f "$cfgfile.tmp" "$cfgfile" \
32704       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32705   test 0 -eq $? || _lt_function_replace_fail=:
32706 else
32707   # Save a `func_append' function call even when '+=' is not available
32708   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32709     && mv -f "$cfgfile.tmp" "$cfgfile" \
32710       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32711   test 0 -eq $? || _lt_function_replace_fail=:
32712 fi
32713
32714 if test x"$_lt_function_replace_fail" = x":"; then
32715   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32716 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32717 fi
32718
32719
32720    mv -f "$cfgfile" "$ofile" ||
32721     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32722   chmod +x "$ofile"
32723
32724
32725     cat <<_LT_EOF >> "$ofile"
32726
32727 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32728
32729 # The linker used to build libraries.
32730 LD=$lt_LD_CXX
32731
32732 # How to create reloadable object files.
32733 reload_flag=$lt_reload_flag_CXX
32734 reload_cmds=$lt_reload_cmds_CXX
32735
32736 # Commands used to build an old-style archive.
32737 old_archive_cmds=$lt_old_archive_cmds_CXX
32738
32739 # A language specific compiler.
32740 CC=$lt_compiler_CXX
32741
32742 # Is the compiler the GNU compiler?
32743 with_gcc=$GCC_CXX
32744
32745 # Compiler flag to turn off builtin functions.
32746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32747
32748 # Additional compiler flags for building library objects.
32749 pic_flag=$lt_lt_prog_compiler_pic_CXX
32750
32751 # How to pass a linker flag through the compiler.
32752 wl=$lt_lt_prog_compiler_wl_CXX
32753
32754 # Compiler flag to prevent dynamic linking.
32755 link_static_flag=$lt_lt_prog_compiler_static_CXX
32756
32757 # Does compiler simultaneously support -c and -o options?
32758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32759
32760 # Whether or not to add -lc for building shared libraries.
32761 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32762
32763 # Whether or not to disallow shared libs when runtime libs are static.
32764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32765
32766 # Compiler flag to allow reflexive dlopens.
32767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32768
32769 # Compiler flag to generate shared objects directly from archives.
32770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32771
32772 # Whether the compiler copes with passing no objects directly.
32773 compiler_needs_object=$lt_compiler_needs_object_CXX
32774
32775 # Create an old-style archive from a shared archive.
32776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32777
32778 # Create a temporary old-style archive to link instead of a shared archive.
32779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32780
32781 # Commands used to build a shared archive.
32782 archive_cmds=$lt_archive_cmds_CXX
32783 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32784
32785 # Commands used to build a loadable module if different from building
32786 # a shared archive.
32787 module_cmds=$lt_module_cmds_CXX
32788 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32789
32790 # Whether we are building with GNU ld or not.
32791 with_gnu_ld=$lt_with_gnu_ld_CXX
32792
32793 # Flag that allows shared libraries with undefined symbols to be built.
32794 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32795
32796 # Flag that enforces no undefined symbols.
32797 no_undefined_flag=$lt_no_undefined_flag_CXX
32798
32799 # Flag to hardcode \$libdir into a binary during linking.
32800 # This must work even if \$libdir does not exist
32801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32802
32803 # If ld is used when linking, flag to hardcode \$libdir into a binary
32804 # during linking.  This must work even if \$libdir does not exist.
32805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32806
32807 # Whether we need a single "-rpath" flag with a separated argument.
32808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32809
32810 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32811 # DIR into the resulting binary.
32812 hardcode_direct=$hardcode_direct_CXX
32813
32814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32815 # DIR into the resulting binary and the resulting library dependency is
32816 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32817 # library is relocated.
32818 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32819
32820 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32821 # into the resulting binary.
32822 hardcode_minus_L=$hardcode_minus_L_CXX
32823
32824 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32825 # into the resulting binary.
32826 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32827
32828 # Set to "yes" if building a shared library automatically hardcodes DIR
32829 # into the library and all subsequent libraries and executables linked
32830 # against it.
32831 hardcode_automatic=$hardcode_automatic_CXX
32832
32833 # Set to yes if linker adds runtime paths of dependent libraries
32834 # to runtime path list.
32835 inherit_rpath=$inherit_rpath_CXX
32836
32837 # Whether libtool must link a program against all its dependency libraries.
32838 link_all_deplibs=$link_all_deplibs_CXX
32839
32840 # Set to "yes" if exported symbols are required.
32841 always_export_symbols=$always_export_symbols_CXX
32842
32843 # The commands to list exported symbols.
32844 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32845
32846 # Symbols that should not be listed in the preloaded symbols.
32847 exclude_expsyms=$lt_exclude_expsyms_CXX
32848
32849 # Symbols that must always be exported.
32850 include_expsyms=$lt_include_expsyms_CXX
32851
32852 # Commands necessary for linking programs (against libraries) with templates.
32853 prelink_cmds=$lt_prelink_cmds_CXX
32854
32855 # Commands necessary for finishing linking programs.
32856 postlink_cmds=$lt_postlink_cmds_CXX
32857
32858 # Specify filename containing input files.
32859 file_list_spec=$lt_file_list_spec_CXX
32860
32861 # How to hardcode a shared library path into an executable.
32862 hardcode_action=$hardcode_action_CXX
32863
32864 # The directories searched by this compiler when creating a shared library.
32865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32866
32867 # Dependencies to place before and after the objects being linked to
32868 # create a shared library.
32869 predep_objects=$lt_predep_objects_CXX
32870 postdep_objects=$lt_postdep_objects_CXX
32871 predeps=$lt_predeps_CXX
32872 postdeps=$lt_postdeps_CXX
32873
32874 # The library search path used internally by the compiler when linking
32875 # a shared library.
32876 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32877
32878 # ### END LIBTOOL TAG CONFIG: CXX
32879 _LT_EOF
32880
32881  ;;
32882     "default-1":C)
32883     for ac_file in $CONFIG_FILES; do
32884       # Support "outfile[:infile[:infile...]]"
32885       case "$ac_file" in
32886         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32887       esac
32888       # PO directories have a Makefile.in generated from Makefile.in.in.
32889       case "$ac_file" in */Makefile.in)
32890         # Adjust a relative srcdir.
32891         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32892         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32893         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32894         # In autoconf-2.13 it is called $ac_given_srcdir.
32895         # In autoconf-2.50 it is called $srcdir.
32896         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32897         case "$ac_given_srcdir" in
32898           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32899           /*) top_srcdir="$ac_given_srcdir" ;;
32900           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32901         esac
32902         # Treat a directory as a PO directory if and only if it has a
32903         # POTFILES.in file. This allows packages to have multiple PO
32904         # directories under different names or in different locations.
32905         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32906           rm -f "$ac_dir/POTFILES"
32907           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32908           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32909           POMAKEFILEDEPS="POTFILES.in"
32910           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32911           # on $ac_dir but don't depend on user-specified configuration
32912           # parameters.
32913           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32914             # The LINGUAS file contains the set of available languages.
32915             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32916               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32917             fi
32918             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32919             # Hide the ALL_LINGUAS assigment from automake.
32920             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32921             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32922           else
32923             # The set of available languages was given in configure.in.
32924             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32925           fi
32926           # Compute POFILES
32927           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32928           # Compute UPDATEPOFILES
32929           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32930           # Compute DUMMYPOFILES
32931           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32932           # Compute GMOFILES
32933           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32934           case "$ac_given_srcdir" in
32935             .) srcdirpre= ;;
32936             *) srcdirpre='$(srcdir)/' ;;
32937           esac
32938           POFILES=
32939           UPDATEPOFILES=
32940           DUMMYPOFILES=
32941           GMOFILES=
32942           for lang in $ALL_LINGUAS; do
32943             POFILES="$POFILES $srcdirpre$lang.po"
32944             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32945             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32946             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32947           done
32948           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32949           # environment variable.
32950           INST_LINGUAS=
32951           if test -n "$ALL_LINGUAS"; then
32952             for presentlang in $ALL_LINGUAS; do
32953               useit=no
32954               if test "%UNSET%" != "$LINGUAS"; then
32955                 desiredlanguages="$LINGUAS"
32956               else
32957                 desiredlanguages="$ALL_LINGUAS"
32958               fi
32959               for desiredlang in $desiredlanguages; do
32960                 # Use the presentlang catalog if desiredlang is
32961                 #   a. equal to presentlang, or
32962                 #   b. a variant of presentlang (because in this case,
32963                 #      presentlang can be used as a fallback for messages
32964                 #      which are not translated in the desiredlang catalog).
32965                 case "$desiredlang" in
32966                   "$presentlang"*) useit=yes;;
32967                 esac
32968               done
32969               if test $useit = yes; then
32970                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32971               fi
32972             done
32973           fi
32974           CATALOGS=
32975           if test -n "$INST_LINGUAS"; then
32976             for lang in $INST_LINGUAS; do
32977               CATALOGS="$CATALOGS $lang.gmo"
32978             done
32979           fi
32980           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32981           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32982           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32983             if test -f "$f"; then
32984               case "$f" in
32985                 *.orig | *.bak | *~) ;;
32986                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32987               esac
32988             fi
32989           done
32990         fi
32991         ;;
32992       esac
32993     done ;;
32994     "default":C)
32995  ;;
32996
32997   esac
32998 done # for ac_tag
32999
33000
33001 as_fn_exit 0
33002 _ACEOF
33003 ac_clean_files=$ac_clean_files_save
33004
33005 test $ac_write_fail = 0 ||
33006   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33007
33008
33009 # configure is writing to config.log, and then calls config.status.
33010 # config.status does its own redirection, appending to config.log.
33011 # Unfortunately, on DOS this fails, as config.log is still kept open
33012 # by configure, so config.status won't be able to write to it; its
33013 # output is simply discarded.  So we exec the FD to /dev/null,
33014 # effectively closing config.log, so it can be properly (re)opened and
33015 # appended to by config.status.  When coming back to configure, we
33016 # need to make the FD available again.
33017 if test "$no_create" != yes; then
33018   ac_cs_success=:
33019   ac_config_status_args=
33020   test "$silent" = yes &&
33021     ac_config_status_args="$ac_config_status_args --quiet"
33022   exec 5>/dev/null
33023   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33024   exec 5>>config.log
33025   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33026   # would make configure fail if this is the last instruction.
33027   $ac_cs_success || as_fn_exit 1
33028 fi
33029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33030   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33032 fi
33033
33034
33035 if test "${support_bat}" = "yes" ; then
33036    if test "x$QMAKE" = "xnone"; then
33037       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33038    fi
33039
33040    cd src/qt-console
33041    echo "Creating bat Makefile"
33042    touch bat
33043    chmod 755 bat
33044    rm -f Makefile
33045    $QMAKE
33046    ${MAKE:-make} clean
33047    cd ${BUILD_DIR}
33048 fi
33049
33050 if test X"$GCC" = "Xyes" ; then
33051   echo "Doing make of dependencies"
33052   ${MAKE:-make} depend
33053 fi
33054
33055 cd src/qt-console
33056 chmod 755 install_conf_file build-depkgs-qt-console
33057 cd ${BUILD_DIR}
33058
33059 cd scripts
33060 chmod 755 bacula btraceback mtx-changer
33061 chmod 755 dvd-handler dvd-simulator
33062 chmod 755 bconsole mtx-changer devel_bacula logrotate
33063 cd ..
33064
33065 c=updatedb
33066 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33067 chmod 755 $c/update_postgresql_tables_10_to_11
33068 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33069 chmod 755 $c/update_postgresql_tables_11_to_12
33070
33071
33072 c=src/cats
33073
33074 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33075 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33076
33077 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33078 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33079
33080 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33081 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33082
33083 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33084 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33085
33086 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33087 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33088
33089
33090 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33091 chmod 755 $c/sqlite
33092 chmod 755 $c/mysql
33093
33094 chmod 755 $c/install-default-backend
33095
33096 chmod 755 src/win32/build-depkgs-mingw32
33097
33098 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33099    largefile_support="yes"
33100 fi
33101
33102 if test X"$GCC" = "Xyes" ; then
33103                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33104    if test "x${CCVERSION}" = "x" ; then
33105       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33106    fi
33107    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33108    if test x"${CXXVERSION}" = x ; then
33109       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33110    fi
33111 fi
33112
33113 # clean up any old junk
33114 echo " "
33115 echo "Cleaning up"
33116 echo " "
33117 ${MAKE:-make} clean
33118
33119 echo "
33120 Configuration on `date`:
33121
33122    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33123    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33124    Source code location:     ${srcdir}
33125    Install binaries:         ${sbindir}
33126    Install libraries:        ${libdir}
33127    Install config files:     ${sysconfdir}
33128    Scripts directory:        ${scriptdir}
33129    Archive directory:        ${archivedir}
33130    Working directory:        ${working_dir}
33131    PID directory:            ${piddir}
33132    Subsys directory:         ${subsysdir}
33133    Man directory:            ${mandir}
33134    Data directory:           ${datarootdir}
33135    Plugin directory:         ${plugindir}
33136    C Compiler:               ${CC} ${CCVERSION}
33137    C++ Compiler:             ${CXX} ${CXXVERSION}
33138    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33139    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33140    Libraries:                ${LIBS}
33141    Statically Linked Tools:  ${support_static_tools}
33142    Statically Linked FD:     ${support_static_fd}
33143    Statically Linked SD:     ${support_static_sd}
33144    Statically Linked DIR:    ${support_static_dir}
33145    Statically Linked CONS:   ${support_static_cons}
33146    Database backends:        ${db_backends}
33147    Database port:            ${db_port}
33148    Database name:            ${db_name}
33149    Database user:            ${db_user}
33150
33151    Job Output Email:         ${job_email}
33152    Traceback Email:          ${dump_email}
33153    SMTP Host Address:        ${smtp_host}
33154
33155    Director Port:            ${dir_port}
33156    File daemon Port:         ${fd_port}
33157    Storage daemon Port:      ${sd_port}
33158
33159    Director User:            ${dir_user}
33160    Director Group:           ${dir_group}
33161    Storage Daemon User:      ${sd_user}
33162    Storage DaemonGroup:      ${sd_group}
33163    File Daemon User:         ${fd_user}
33164    File Daemon Group:        ${fd_group}
33165
33166    Large file support:      $largefile_support
33167    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33168    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33169    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33170    TLS support:             ${support_tls}
33171    Encryption support:      ${support_crypto}
33172    ZLIB support:            ${have_zlib}
33173    LZO support:             ${have_lzo}
33174    enable-smartalloc:       ${support_smartalloc}
33175    enable-lockmgr:          ${support_lockmgr}
33176    bat support:             ${support_bat}
33177    enable-gnome:            ${support_gnome} ${gnome_version}
33178    enable-bwx-console:      ${support_wx_console} ${wx_version}
33179    enable-tray-monitor:     ${support_tray_monitor}
33180    client-only:             ${build_client_only}
33181    build-dird:              ${build_dird}
33182    build-stored:            ${build_stored}
33183    Plugin support:          ${have_plugins}
33184    ACL support:             ${have_acl}
33185    XATTR support:           ${have_xattr}
33186    Python support:          ${support_python} ${PYTHON_LIBS}
33187    Batch insert enabled:    ${support_batch_insert}
33188
33189   " > config.out
33190
33191 # create a small shell script useful for support with
33192 # configure options and config.out info
33193 cat > scripts/bacula_config << EOF
33194 #!/bin/sh
33195 cat << __EOC__
33196 $ $0 $ac_configure_args
33197 EOF
33198 cat config.out >> scripts/bacula_config
33199 echo __EOC__ >> scripts/bacula_config
33200 chmod 755 scripts/bacula_config
33201
33202 cat config.out