]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for bacula 5.2.1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 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=$?; test $as_status -eq 0 && as_status=1
375   if test "$3"; then
376     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378   fi
379   $as_echo "$as_me: error: $1" >&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, 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.1'
563 PACKAGE_STRING='bacula 5.2.1'
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 SHARED_CATALOG_TARGETS
632 DEFAULT_DB_TYPE
633 DB_LIBS
634 DB_BACKENDS
635 uncomment_dbi
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 enable_batch_insert
975 with_postgresql
976 with_mysql
977 with_embedded_mysql
978 with_sqlite3
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=yes ;;
1064   esac
1065
1066   # Accept the important Cygnus configure options, so we can diagnose typos.
1067
1068   case $ac_dashdash$ac_option in
1069   --)
1070     ac_dashdash=yes ;;
1071
1072   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073     ac_prev=bindir ;;
1074   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075     bindir=$ac_optarg ;;
1076
1077   -build | --build | --buil | --bui | --bu)
1078     ac_prev=build_alias ;;
1079   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080     build_alias=$ac_optarg ;;
1081
1082   -cache-file | --cache-file | --cache-fil | --cache-fi \
1083   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084     ac_prev=cache_file ;;
1085   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087     cache_file=$ac_optarg ;;
1088
1089   --config-cache | -C)
1090     cache_file=config.cache ;;
1091
1092   -datadir | --datadir | --datadi | --datad)
1093     ac_prev=datadir ;;
1094   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095     datadir=$ac_optarg ;;
1096
1097   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098   | --dataroo | --dataro | --datar)
1099     ac_prev=datarootdir ;;
1100   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102     datarootdir=$ac_optarg ;;
1103
1104   -disable-* | --disable-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error "invalid feature name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval enable_$ac_useropt=no ;;
1119
1120   -docdir | --docdir | --docdi | --doc | --do)
1121     ac_prev=docdir ;;
1122   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123     docdir=$ac_optarg ;;
1124
1125   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126     ac_prev=dvidir ;;
1127   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128     dvidir=$ac_optarg ;;
1129
1130   -enable-* | --enable-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error "invalid feature name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval enable_$ac_useropt=\$ac_optarg ;;
1145
1146   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148   | --exec | --exe | --ex)
1149     ac_prev=exec_prefix ;;
1150   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152   | --exec=* | --exe=* | --ex=*)
1153     exec_prefix=$ac_optarg ;;
1154
1155   -gas | --gas | --ga | --g)
1156     # Obsolete; use --with-gas.
1157     with_gas=yes ;;
1158
1159   -help | --help | --hel | --he | -h)
1160     ac_init_help=long ;;
1161   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162     ac_init_help=recursive ;;
1163   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164     ac_init_help=short ;;
1165
1166   -host | --host | --hos | --ho)
1167     ac_prev=host_alias ;;
1168   -host=* | --host=* | --hos=* | --ho=*)
1169     host_alias=$ac_optarg ;;
1170
1171   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172     ac_prev=htmldir ;;
1173   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174   | --ht=*)
1175     htmldir=$ac_optarg ;;
1176
1177   -includedir | --includedir | --includedi | --included | --include \
1178   | --includ | --inclu | --incl | --inc)
1179     ac_prev=includedir ;;
1180   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181   | --includ=* | --inclu=* | --incl=* | --inc=*)
1182     includedir=$ac_optarg ;;
1183
1184   -infodir | --infodir | --infodi | --infod | --info | --inf)
1185     ac_prev=infodir ;;
1186   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187     infodir=$ac_optarg ;;
1188
1189   -libdir | --libdir | --libdi | --libd)
1190     ac_prev=libdir ;;
1191   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192     libdir=$ac_optarg ;;
1193
1194   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195   | --libexe | --libex | --libe)
1196     ac_prev=libexecdir ;;
1197   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198   | --libexe=* | --libex=* | --libe=*)
1199     libexecdir=$ac_optarg ;;
1200
1201   -localedir | --localedir | --localedi | --localed | --locale)
1202     ac_prev=localedir ;;
1203   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204     localedir=$ac_optarg ;;
1205
1206   -localstatedir | --localstatedir | --localstatedi | --localstated \
1207   | --localstate | --localstat | --localsta | --localst | --locals)
1208     ac_prev=localstatedir ;;
1209   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211     localstatedir=$ac_optarg ;;
1212
1213   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214     ac_prev=mandir ;;
1215   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216     mandir=$ac_optarg ;;
1217
1218   -nfp | --nfp | --nf)
1219     # Obsolete; use --without-fp.
1220     with_fp=no ;;
1221
1222   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223   | --no-cr | --no-c | -n)
1224     no_create=yes ;;
1225
1226   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228     no_recursion=yes ;;
1229
1230   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232   | --oldin | --oldi | --old | --ol | --o)
1233     ac_prev=oldincludedir ;;
1234   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237     oldincludedir=$ac_optarg ;;
1238
1239   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240     ac_prev=prefix ;;
1241   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242     prefix=$ac_optarg ;;
1243
1244   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245   | --program-pre | --program-pr | --program-p)
1246     ac_prev=program_prefix ;;
1247   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249     program_prefix=$ac_optarg ;;
1250
1251   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252   | --program-suf | --program-su | --program-s)
1253     ac_prev=program_suffix ;;
1254   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256     program_suffix=$ac_optarg ;;
1257
1258   -program-transform-name | --program-transform-name \
1259   | --program-transform-nam | --program-transform-na \
1260   | --program-transform-n | --program-transform- \
1261   | --program-transform | --program-transfor \
1262   | --program-transfo | --program-transf \
1263   | --program-trans | --program-tran \
1264   | --progr-tra | --program-tr | --program-t)
1265     ac_prev=program_transform_name ;;
1266   -program-transform-name=* | --program-transform-name=* \
1267   | --program-transform-nam=* | --program-transform-na=* \
1268   | --program-transform-n=* | --program-transform-=* \
1269   | --program-transform=* | --program-transfor=* \
1270   | --program-transfo=* | --program-transf=* \
1271   | --program-trans=* | --program-tran=* \
1272   | --progr-tra=* | --program-tr=* | --program-t=*)
1273     program_transform_name=$ac_optarg ;;
1274
1275   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276     ac_prev=pdfdir ;;
1277   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278     pdfdir=$ac_optarg ;;
1279
1280   -psdir | --psdir | --psdi | --psd | --ps)
1281     ac_prev=psdir ;;
1282   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283     psdir=$ac_optarg ;;
1284
1285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286   | -silent | --silent | --silen | --sile | --sil)
1287     silent=yes ;;
1288
1289   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290     ac_prev=sbindir ;;
1291   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292   | --sbi=* | --sb=*)
1293     sbindir=$ac_optarg ;;
1294
1295   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297   | --sharedst | --shareds | --shared | --share | --shar \
1298   | --sha | --sh)
1299     ac_prev=sharedstatedir ;;
1300   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303   | --sha=* | --sh=*)
1304     sharedstatedir=$ac_optarg ;;
1305
1306   -site | --site | --sit)
1307     ac_prev=site ;;
1308   -site=* | --site=* | --sit=*)
1309     site=$ac_optarg ;;
1310
1311   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312     ac_prev=srcdir ;;
1313   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314     srcdir=$ac_optarg ;;
1315
1316   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317   | --syscon | --sysco | --sysc | --sys | --sy)
1318     ac_prev=sysconfdir ;;
1319   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321     sysconfdir=$ac_optarg ;;
1322
1323   -target | --target | --targe | --targ | --tar | --ta | --t)
1324     ac_prev=target_alias ;;
1325   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326     target_alias=$ac_optarg ;;
1327
1328   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329     verbose=yes ;;
1330
1331   -version | --version | --versio | --versi | --vers | -V)
1332     ac_init_version=: ;;
1333
1334   -with-* | --with-*)
1335     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338       as_fn_error "invalid package name: $ac_useropt"
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       as_fn_error "invalid package name: $ac_useropt"
1355     ac_useropt_orig=$ac_useropt
1356     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357     case $ac_user_opts in
1358       *"
1359 "with_$ac_useropt"
1360 "*) ;;
1361       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362          ac_unrecognized_sep=', ';;
1363     esac
1364     eval with_$ac_useropt=no ;;
1365
1366   --x)
1367     # Obsolete; use --with-x.
1368     with_x=yes ;;
1369
1370   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371   | --x-incl | --x-inc | --x-in | --x-i)
1372     ac_prev=x_includes ;;
1373   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375     x_includes=$ac_optarg ;;
1376
1377   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379     ac_prev=x_libraries ;;
1380   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382     x_libraries=$ac_optarg ;;
1383
1384   -*) as_fn_error "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information."
1386     ;;
1387
1388   *=*)
1389     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390     # Reject names that are not valid shell variable names.
1391     case $ac_envvar in #(
1392       '' | [0-9]* | *[!_$as_cr_alnum]* )
1393       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1394     esac
1395     eval $ac_envvar=\$ac_optarg
1396     export $ac_envvar ;;
1397
1398   *)
1399     # FIXME: should be removed in autoconf 3.0.
1400     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404     ;;
1405
1406   esac
1407 done
1408
1409 if test -n "$ac_prev"; then
1410   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411   as_fn_error "missing argument to $ac_option"
1412 fi
1413
1414 if test -n "$ac_unrecognized_opts"; then
1415   case $enable_option_checking in
1416     no) ;;
1417     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1418     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419   esac
1420 fi
1421
1422 # Check all directory arguments for consistency.
1423 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424                 datadir sysconfdir sharedstatedir localstatedir includedir \
1425                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426                 libdir localedir mandir
1427 do
1428   eval ac_val=\$$ac_var
1429   # Remove trailing slashes.
1430   case $ac_val in
1431     */ )
1432       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433       eval $ac_var=\$ac_val;;
1434   esac
1435   # Be sure to have absolute directory names.
1436   case $ac_val in
1437     [\\/$]* | ?:[\\/]* )  continue;;
1438     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439   esac
1440   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1441 done
1442
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1449
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452   if test "x$build_alias" = x; then
1453     cross_compiling=maybe
1454     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455     If a cross compiler is detected then cross compile mode will be used." >&2
1456   elif test "x$build_alias" != "x$host_alias"; then
1457     cross_compiling=yes
1458   fi
1459 fi
1460
1461 ac_tool_prefix=
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463
1464 test "$silent" = yes && exec 6>/dev/null
1465
1466
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470   as_fn_error "working directory cannot be determined"
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472   as_fn_error "pwd does not report name of working directory"
1473
1474
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477   ac_srcdir_defaulted=yes
1478   # Try the directory containing this script, then the parent directory.
1479   ac_confdir=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481          X"$as_myself" : 'X\(//\)[^/]' \| \
1482          X"$as_myself" : 'X\(//\)$' \| \
1483          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486             s//\1/
1487             q
1488           }
1489           /^X\(\/\/\)[^/].*/{
1490             s//\1/
1491             q
1492           }
1493           /^X\(\/\/\)$/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\).*/{
1498             s//\1/
1499             q
1500           }
1501           s/.*/./; q'`
1502   srcdir=$ac_confdir
1503   if test ! -r "$srcdir/$ac_unique_file"; then
1504     srcdir=..
1505   fi
1506 else
1507   ac_srcdir_defaulted=no
1508 fi
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1511   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1512 fi
1513 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 ac_abs_confdir=`(
1515         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1516         pwd)`
1517 # When building in place, set srcdir=.
1518 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519   srcdir=.
1520 fi
1521 # Remove unnecessary trailing slashes from srcdir.
1522 # Double slashes in file names in object file debugging info
1523 # mess up M-x gdb in Emacs.
1524 case $srcdir in
1525 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 esac
1527 for ac_var in $ac_precious_vars; do
1528   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1529   eval ac_env_${ac_var}_value=\$${ac_var}
1530   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1531   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532 done
1533
1534 #
1535 # Report the --help message.
1536 #
1537 if test "$ac_init_help" = "long"; then
1538   # Omit some internal or obsolete options to make the list less imposing.
1539   # This message is too long to be a string in the A/UX 3.1 sh.
1540   cat <<_ACEOF
1541 \`configure' configures bacula 5.2.1 to adapt to many kinds of systems.
1542
1543 Usage: $0 [OPTION]... [VAR=VALUE]...
1544
1545 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546 VAR=VALUE.  See below for descriptions of some of the useful variables.
1547
1548 Defaults for the options are specified in brackets.
1549
1550 Configuration:
1551   -h, --help              display this help and exit
1552       --help=short        display options specific to this package
1553       --help=recursive    display the short help of all the included packages
1554   -V, --version           display version information and exit
1555   -q, --quiet, --silent   do not print \`checking...' messages
1556       --cache-file=FILE   cache test results in FILE [disabled]
1557   -C, --config-cache      alias for \`--cache-file=config.cache'
1558   -n, --no-create         do not create output files
1559       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1560
1561 Installation directories:
1562   --prefix=PREFIX         install architecture-independent files in PREFIX
1563                           [$ac_default_prefix]
1564   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1565                           [PREFIX]
1566
1567 By default, \`make install' will install all the files in
1568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570 for instance \`--prefix=\$HOME'.
1571
1572 For better control, use the options below.
1573
1574 Fine tuning of the installation directories:
1575   --bindir=DIR            user executables [EPREFIX/bin]
1576   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1577   --libexecdir=DIR        program executables [EPREFIX/libexec]
1578   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1579   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1580   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1581   --libdir=DIR            object code libraries [EPREFIX/lib]
1582   --includedir=DIR        C header files [PREFIX/include]
1583   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1584   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1585   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1586   --infodir=DIR           info documentation [DATAROOTDIR/info]
1587   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1588   --mandir=DIR            man documentation [DATAROOTDIR/man]
1589   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1590   --htmldir=DIR           html documentation [DOCDIR]
1591   --dvidir=DIR            dvi documentation [DOCDIR]
1592   --pdfdir=DIR            pdf documentation [DOCDIR]
1593   --psdir=DIR             ps documentation [DOCDIR]
1594 _ACEOF
1595
1596   cat <<\_ACEOF
1597
1598 X features:
1599   --x-includes=DIR    X include files are in DIR
1600   --x-libraries=DIR   X library files are in DIR
1601
1602 System types:
1603   --build=BUILD     configure for building on BUILD [guessed]
1604   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609   case $ac_init_help in
1610      short | recursive ) echo "Configuration of bacula 5.2.1:";;
1611    esac
1612   cat <<\_ACEOF
1613
1614 Optional Features:
1615   --disable-option-checking  ignore unrecognized --enable/--with options
1616   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1617   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1618   --enable-libtool        enable building using GNU libtool [default=yes]
1619   --enable-shared[=PKGS]  build shared libraries [default=yes]
1620   --enable-static[=PKGS]  build static libraries [default=no]
1621   --enable-fast-install[=PKGS]
1622                           optimize for fast installation [default=yes]
1623   --disable-libtool-lock  avoid locking (might break parallel builds)
1624   --enable-includes       enable installing of include files [default=no]
1625   --disable-nls           do not use Native Language Support
1626   --disable-rpath         do not hardcode runtime library paths
1627   --enable-gnome          enable build of bgnome-console GUI [default=no]
1628   --enable-bat            enable build of bat Qt4 GUI [default=no]
1629   --enable-bwx-console    enable build of wxWidgets console [default=no]
1630   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1631                           KDE [default=no]
1632   --enable-smartalloc     enable smartalloc debugging support [default=no]
1633   --enable-lockmgr        enable lock manager support [default=no]
1634   --enable-static-tools   enable static tape tools [default=no]
1635   --enable-static-fd      enable static File daemon [default=no]
1636   --enable-static-sd      enable static Storage daemon [default=no]
1637   --enable-static-dir     enable static Director [default=no]
1638   --enable-static-cons    enable static Console [default=no]
1639   --enable-client-only    build client (File daemon) only [default=no]
1640   --enable-build-dird     enable building of dird (Director) [default=yes]
1641   --enable-build-stored   enable building of stored (Storage daemon)
1642                           [default=yes]
1643   --disable-conio         disable conio support [default=no]
1644   --enable-ipv6           enable ipv6 support [default=yes]
1645   --disable-readline      disable readline support [default=yes]
1646   --enable-batch-insert   enable the DB batch insert code [default=yes]
1647   --disable-largefile     omit support for large files
1648   --disable-acl           disable acl support [default=auto]
1649   --disable-xattr         disable xattr support [default=auto]
1650
1651 Optional Packages:
1652   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1653   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1654   --with-pic              try to use only PIC/non-PIC objects [default=use
1655                           both]
1656   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1657   --with-sysroot=DIR Search for dependent libraries within DIR
1658                         (or the compiler's sysroot if not specified).
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1661   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1662   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1663   --without-libintl-prefix     don't search for libintl in includedir and libdir
1664   --with-included-gettext use the GNU gettext library included here
1665   --with-readline[=DIR]   specify readline library directory
1666   --with-python[=DIR]     Include Python support. DIR is the Python base
1667                           install directory, default is to search through a
1668                           number of common places for the Python files.
1669   --with-tcp-wrappers[=DIR]
1670                           enable tcpwrappers support
1671   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1672   --with-working-dir=PATH specify path of Bacula working directory
1673   --with-archivedir=PATH  specify path of SD archive directory
1674   --with-basename=RESNAME specify base resource name for daemons
1675   --with-hostname=RESNAME specify host name for daemons
1676   --with-scriptdir=PATH   specify path of Bacula scripts directory
1677   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1678   --with-logdir=PATH      specify path of Bacula logs directory
1679   --with-plugindir=PATH   specify path of Bacula plugins directory
1680   --with-dump-email=EMAIL dump email address
1681   --with-job-email=EMAIL  job output email address
1682   --with-smtp-host=HOST   SMTP mail host address
1683   --with-pid-dir=PATH     specify location of Bacula pid files
1684   --with-subsys-dir=PATH  specify location of Bacula subsys file
1685   --with-baseport=PORT    specify base port address for daemons
1686   --with-dir-password=PASSWORD
1687                           specify Director's password
1688   --with-fd-password=PASSWORD
1689                           specify Client's password
1690   --with-sd-password=PASSWORD
1691                           specify Storage daemon's password
1692   --with-mon-dir-password=PASSWORD
1693                           specify Director's password used by the monitor
1694   --with-mon-fd-password=PASSWORD
1695                           specify Client's password used by the monitor
1696   --with-mon-sd-password=PASSWORD
1697                           specify Storage daemon's password used by the
1698                           monitor
1699   --with-db-name=DBNAME   specify database name [default=bacula]
1700   --with-db-user=UNAME    specify database user [default=bacula]
1701   --with-db-password=PWD  specify database password [default=*none*]
1702   --with-db-port=DBPORT   specify a database port [default=null]
1703   --with-dir-user=USER    specify user for Director daemon
1704   --with-dir-group=GROUP  specify group for Director daemon
1705   --with-sd-user=USER     specify user for Storage daemon
1706   --with-sd-group=GROUP   specify group for Storage daemon
1707   --with-fd-user=USER     specify user for File daemon
1708   --with-fd-group=GROUP   specify group for File daemon
1709   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1710   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1711                           base install directory, [default=/usr/local/pgsql]
1712   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1713                           directory, default is to search through a number of
1714                           common places for the MySQL files.
1715   --with-embedded-mysql[=DIR]
1716                           Include MySQL support. DIR is the MySQL base install
1717                           directory, default is to search through a number of
1718                           common places for the MySQL files.
1719   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1720                           install directory, default is to search through a
1721                           number of common places for the SQLite3 files.
1722   --with-x                use the X Window System
1723
1724 Some influential environment variables:
1725   CC          C compiler command
1726   CFLAGS      C compiler flags
1727   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1728               nonstandard directory <lib dir>
1729   LIBS        libraries to pass to the linker, e.g. -l<library>
1730   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731               you have headers in a nonstandard directory <include dir>
1732   CXX         C++ compiler command
1733   CXXFLAGS    C++ compiler flags
1734   CPP         C preprocessor
1735   WXCONFIG    wx-config command. On some systems, you must set it to
1736               wx-config-2.6 to use wxWidgets 2.6.
1737   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1738   CXXCPP      C++ preprocessor
1739   XMKMF       Path to xmkmf, Makefile generator for X Window System
1740
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1743
1744 Report bugs to the package provider.
1745 _ACEOF
1746 ac_status=$?
1747 fi
1748
1749 if test "$ac_init_help" = "recursive"; then
1750   # If there are subdirs, report their specific --help.
1751   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752     test -d "$ac_dir" ||
1753       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754       continue
1755     ac_builddir=.
1756
1757 case "$ac_dir" in
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *)
1760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761   # A ".." for each directory in $ac_dir_suffix.
1762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763   case $ac_top_builddir_sub in
1764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766   esac ;;
1767 esac
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1772
1773 case $srcdir in
1774   .)  # We are building in place.
1775     ac_srcdir=.
1776     ac_top_srcdir=$ac_top_builddir_sub
1777     ac_abs_top_srcdir=$ac_pwd ;;
1778   [\\/]* | ?:[\\/]* )  # Absolute name.
1779     ac_srcdir=$srcdir$ac_dir_suffix;
1780     ac_top_srcdir=$srcdir
1781     ac_abs_top_srcdir=$srcdir ;;
1782   *) # Relative name.
1783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784     ac_top_srcdir=$ac_top_build_prefix$srcdir
1785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786 esac
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788
1789     cd "$ac_dir" || { ac_status=$?; continue; }
1790     # Check for guested configure.
1791     if test -f "$ac_srcdir/configure.gnu"; then
1792       echo &&
1793       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794     elif test -f "$ac_srcdir/configure"; then
1795       echo &&
1796       $SHELL "$ac_srcdir/configure" --help=recursive
1797     else
1798       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799     fi || ac_status=$?
1800     cd "$ac_pwd" || { ac_status=$?; break; }
1801   done
1802 fi
1803
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1806   cat <<\_ACEOF
1807 bacula configure 5.2.1
1808 generated by GNU Autoconf 2.65
1809
1810 Copyright (C) 2009 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1813 _ACEOF
1814   exit
1815 fi
1816
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1820
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   rm -f conftest.$ac_objext
1828   if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_compile") 2>conftest.err
1836   ac_status=$?
1837   if test -s conftest.err; then
1838     grep -v '^ *+' conftest.err >conftest.er1
1839     cat conftest.er1 >&5
1840     mv -f conftest.er1 conftest.err
1841   fi
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; } && {
1844          test -z "$ac_c_werror_flag" ||
1845          test ! -s conftest.err
1846        } && test -s conftest.$ac_objext; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855   as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_compile
1858
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext
1866   if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_compile") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_cxx_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest.$ac_objext; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890         ac_retval=1
1891 fi
1892   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_compile
1896
1897 # ac_fn_c_try_cpp LINENO
1898 # ----------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_cpp ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911   ac_status=$?
1912   if test -s conftest.err; then
1913     grep -v '^ *+' conftest.err >conftest.er1
1914     cat conftest.er1 >&5
1915     mv -f conftest.er1 conftest.err
1916   fi
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; } >/dev/null && {
1919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920          test ! -s conftest.err
1921        }; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927     ac_retval=1
1928 fi
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930   as_fn_set_status $ac_retval
1931
1932 } # ac_fn_c_try_cpp
1933
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_link ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   rm -f conftest.$ac_objext conftest$ac_exeext
1941   if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_link") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && {
1957          test -z "$ac_c_werror_flag" ||
1958          test ! -s conftest.err
1959        } && test -s conftest$ac_exeext && {
1960          test "$cross_compiling" = yes ||
1961          $as_test_x conftest$ac_exeext
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968         ac_retval=1
1969 fi
1970   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972   # interfere with the next link command; also delete a directory that is
1973   # left behind by Apple's compiler.  We do this before executing the actions.
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_link
1979
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990   $as_echo_n "(cached) " >&6
1991 else
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   eval "$3=yes"
1999 else
2000   eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$3
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009 } # ac_fn_c_check_header_compile
2010
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2015 ac_fn_c_try_run ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_link") 2>&5
2026   ac_status=$?
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029   { { case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_try") 2>&5
2036   ac_status=$?
2037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038   test $ac_status = 0; }; }; then :
2039   ac_retval=0
2040 else
2041   $as_echo "$as_me: program exited with status $ac_status" >&5
2042        $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045        ac_retval=$ac_status
2046 fi
2047   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049   as_fn_set_status $ac_retval
2050
2051 } # ac_fn_c_try_run
2052
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062   $as_echo_n "(cached) " >&6
2063 else
2064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2068 #define $2 innocuous_$2
2069
2070 /* System header to define __stub macros and hopefully few prototypes,
2071     which can conflict with char $2 (); below.
2072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073     <limits.h> exists even on freestanding compilers.  */
2074
2075 #ifdef __STDC__
2076 # include <limits.h>
2077 #else
2078 # include <assert.h>
2079 #endif
2080
2081 #undef $2
2082
2083 /* Override any GCC internal prototype to avoid an error.
2084    Use char because int might match the return type of a GCC
2085    builtin and then its argument prototype would still apply.  */
2086 #ifdef __cplusplus
2087 extern "C"
2088 #endif
2089 char $2 ();
2090 /* The GNU C library defines this for functions which it implements
2091     to always fail with ENOSYS.  Some functions are actually named
2092     something starting with __ and the normal name is an alias.  */
2093 #if defined __stub_$2 || defined __stub___$2
2094 choke me
2095 #endif
2096
2097 int
2098 main ()
2099 {
2100 return $2 ();
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_link "$LINENO"; then :
2106   eval "$3=yes"
2107 else
2108   eval "$3=no"
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext \
2111     conftest$ac_exeext conftest.$ac_ext
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117
2118 } # ac_fn_c_check_func
2119
2120 # ac_fn_cxx_try_cpp LINENO
2121 # ------------------------
2122 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_cpp ()
2124 {
2125   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126   if { { ac_try="$ac_cpp conftest.$ac_ext"
2127 case "(($ac_try" in
2128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129   *) ac_try_echo=$ac_try;;
2130 esac
2131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132 $as_echo "$ac_try_echo"; } >&5
2133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2134   ac_status=$?
2135   if test -s conftest.err; then
2136     grep -v '^ *+' conftest.err >conftest.er1
2137     cat conftest.er1 >&5
2138     mv -f conftest.er1 conftest.err
2139   fi
2140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141   test $ac_status = 0; } >/dev/null && {
2142          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2143          test ! -s conftest.err
2144        }; then :
2145   ac_retval=0
2146 else
2147   $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150     ac_retval=1
2151 fi
2152   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153   as_fn_set_status $ac_retval
2154
2155 } # ac_fn_cxx_try_cpp
2156
2157 # ac_fn_cxx_try_link LINENO
2158 # -------------------------
2159 # Try to link conftest.$ac_ext, and return whether this succeeded.
2160 ac_fn_cxx_try_link ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   rm -f conftest.$ac_objext conftest$ac_exeext
2164   if { { ac_try="$ac_link"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171   (eval "$ac_link") 2>conftest.err
2172   ac_status=$?
2173   if test -s conftest.err; then
2174     grep -v '^ *+' conftest.err >conftest.er1
2175     cat conftest.er1 >&5
2176     mv -f conftest.er1 conftest.err
2177   fi
2178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179   test $ac_status = 0; } && {
2180          test -z "$ac_cxx_werror_flag" ||
2181          test ! -s conftest.err
2182        } && test -s conftest$ac_exeext && {
2183          test "$cross_compiling" = yes ||
2184          $as_test_x conftest$ac_exeext
2185        }; then :
2186   ac_retval=0
2187 else
2188   $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191         ac_retval=1
2192 fi
2193   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195   # interfere with the next link command; also delete a directory that is
2196   # left behind by Apple's compiler.  We do this before executing the actions.
2197   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199   as_fn_set_status $ac_retval
2200
2201 } # ac_fn_cxx_try_link
2202
2203 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2204 # -------------------------------------------
2205 # Tests whether TYPE exists after having included INCLUDES, setting cache
2206 # variable VAR accordingly.
2207 ac_fn_c_check_type ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2213   $as_echo_n "(cached) " >&6
2214 else
2215   eval "$3=no"
2216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 int
2220 main ()
2221 {
2222 if (sizeof ($2))
2223          return 0;
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 if (sizeof (($2)))
2236             return 0;
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242
2243 else
2244   eval "$3=yes"
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 eval ac_res=\$$3
2251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254
2255 } # ac_fn_c_check_type
2256
2257 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2258 # -------------------------------------------------------
2259 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2260 # the include files in INCLUDES and setting the cache variable VAR
2261 # accordingly.
2262 ac_fn_c_check_header_mongrel ()
2263 {
2264   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267 $as_echo_n "checking for $2... " >&6; }
2268 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269   $as_echo_n "(cached) " >&6
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 else
2275   # Is the header compilable?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2277 $as_echo_n "checking $2 usability... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 #include <$2>
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   ac_header_compiler=yes
2285 else
2286   ac_header_compiler=no
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2290 $as_echo "$ac_header_compiler" >&6; }
2291
2292 # Is the header present?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2294 $as_echo_n "checking $2 presence... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 #include <$2>
2298 _ACEOF
2299 if ac_fn_c_try_cpp "$LINENO"; then :
2300   ac_header_preproc=yes
2301 else
2302   ac_header_preproc=no
2303 fi
2304 rm -f conftest.err conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2306 $as_echo "$ac_header_preproc" >&6; }
2307
2308 # So?  What about this header?
2309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2310   yes:no: )
2311     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2312 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2315     ;;
2316   no:yes:* )
2317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2318 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2320 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2322 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2324 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327     ;;
2328 esac
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   eval "$3=\$ac_header_compiler"
2335 fi
2336 eval ac_res=\$$3
2337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 fi
2340   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341
2342 } # ac_fn_c_check_header_mongrel
2343
2344 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2345 # --------------------------------------------
2346 # Tries to find the compile-time value of EXPR in a program that includes
2347 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2348 # computed
2349 ac_fn_c_compute_int ()
2350 {
2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352   if test "$cross_compiling" = yes; then
2353     # Depending upon the size, compute the lo and hi bounds.
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 int
2358 main ()
2359 {
2360 static int test_array [1 - 2 * !(($2) >= 0)];
2361 test_array [0] = 0
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368   ac_lo=0 ac_mid=0
2369   while :; do
2370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $4
2373 int
2374 main ()
2375 {
2376 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2377 test_array [0] = 0
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384   ac_hi=$ac_mid; break
2385 else
2386   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2387                         if test $ac_lo -le $ac_mid; then
2388                           ac_lo= ac_hi=
2389                           break
2390                         fi
2391                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394   done
2395 else
2396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 $4
2399 int
2400 main ()
2401 {
2402 static int test_array [1 - 2 * !(($2) < 0)];
2403 test_array [0] = 0
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"; then :
2410   ac_hi=-1 ac_mid=-1
2411   while :; do
2412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h.  */
2414 $4
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2419 test_array [0] = 0
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426   ac_lo=$ac_mid; break
2427 else
2428   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2429                         if test $ac_mid -le $ac_hi; then
2430                           ac_lo= ac_hi=
2431                           break
2432                         fi
2433                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436   done
2437 else
2438   ac_lo= ac_hi=
2439 fi
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 # Binary search between lo and hi bounds.
2444 while test "x$ac_lo" != "x$ac_hi"; do
2445   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2453 test_array [0] = 0
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460   ac_hi=$ac_mid
2461 else
2462   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 done
2466 case $ac_lo in #((
2467 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2468 '') ac_retval=1 ;;
2469 esac
2470   else
2471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h.  */
2473 $4
2474 static long int longval () { return $2; }
2475 static unsigned long int ulongval () { return $2; }
2476 #include <stdio.h>
2477 #include <stdlib.h>
2478 int
2479 main ()
2480 {
2481
2482   FILE *f = fopen ("conftest.val", "w");
2483   if (! f)
2484     return 1;
2485   if (($2) < 0)
2486     {
2487       long int i = longval ();
2488       if (i != ($2))
2489         return 1;
2490       fprintf (f, "%ld", i);
2491     }
2492   else
2493     {
2494       unsigned long int i = ulongval ();
2495       if (i != ($2))
2496         return 1;
2497       fprintf (f, "%lu", i);
2498     }
2499   /* Do not output a trailing newline, as this causes \r\n confusion
2500      on some platforms.  */
2501   return ferror (f) || fclose (f) != 0;
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_run "$LINENO"; then :
2508   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2509 else
2510   ac_retval=1
2511 fi
2512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2513   conftest.$ac_objext conftest.beam conftest.$ac_ext
2514 rm -f conftest.val
2515
2516   fi
2517   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518   as_fn_set_status $ac_retval
2519
2520 } # ac_fn_c_compute_int
2521
2522 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2523 # ----------------------------------------------------
2524 # Tries to find if the field MEMBER exists in type AGGR, after including
2525 # INCLUDES, setting cache variable VAR accordingly.
2526 ac_fn_c_check_member ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2530 $as_echo_n "checking for $2.$3... " >&6; }
2531 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h.  */
2536 $5
2537 int
2538 main ()
2539 {
2540 static $2 ac_aggr;
2541 if (ac_aggr.$3)
2542 return 0;
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_c_try_compile "$LINENO"; then :
2548   eval "$4=yes"
2549 else
2550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $5
2553 int
2554 main ()
2555 {
2556 static $2 ac_aggr;
2557 if (sizeof ac_aggr.$3)
2558 return 0;
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564   eval "$4=yes"
2565 else
2566   eval "$4=no"
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 fi
2572 eval ac_res=\$$4
2573                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576
2577 } # ac_fn_c_check_member
2578
2579 # ac_fn_c_check_decl LINENO SYMBOL VAR
2580 # ------------------------------------
2581 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2582 ac_fn_c_check_decl ()
2583 {
2584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2586 $as_echo_n "checking whether $2 is declared... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h.  */
2592 $4
2593 int
2594 main ()
2595 {
2596 #ifndef $2
2597   (void) $2;
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605   eval "$3=yes"
2606 else
2607   eval "$3=no"
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 eval ac_res=\$$3
2612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615
2616 } # ac_fn_c_check_decl
2617
2618 # ac_fn_cxx_try_run LINENO
2619 # ------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2621 # that executables *can* be run.
2622 ac_fn_cxx_try_run ()
2623 {
2624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625   if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632   (eval "$ac_link") 2>&5
2633   ac_status=$?
2634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2636   { { case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642   (eval "$ac_try") 2>&5
2643   ac_status=$?
2644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645   test $ac_status = 0; }; }; then :
2646   ac_retval=0
2647 else
2648   $as_echo "$as_me: program exited with status $ac_status" >&5
2649        $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652        ac_retval=$ac_status
2653 fi
2654   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656   as_fn_set_status $ac_retval
2657
2658 } # ac_fn_cxx_try_run
2659
2660 # ac_fn_cxx_check_func LINENO FUNC VAR
2661 # ------------------------------------
2662 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2663 ac_fn_cxx_check_func ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h.  */
2673 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2675 #define $2 innocuous_$2
2676
2677 /* System header to define __stub macros and hopefully few prototypes,
2678     which can conflict with char $2 (); below.
2679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2680     <limits.h> exists even on freestanding compilers.  */
2681
2682 #ifdef __STDC__
2683 # include <limits.h>
2684 #else
2685 # include <assert.h>
2686 #endif
2687
2688 #undef $2
2689
2690 /* Override any GCC internal prototype to avoid an error.
2691    Use char because int might match the return type of a GCC
2692    builtin and then its argument prototype would still apply.  */
2693 #ifdef __cplusplus
2694 extern "C"
2695 #endif
2696 char $2 ();
2697 /* The GNU C library defines this for functions which it implements
2698     to always fail with ENOSYS.  Some functions are actually named
2699     something starting with __ and the normal name is an alias.  */
2700 #if defined __stub_$2 || defined __stub___$2
2701 choke me
2702 #endif
2703
2704 int
2705 main ()
2706 {
2707 return $2 ();
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_cxx_try_link "$LINENO"; then :
2713   eval "$3=yes"
2714 else
2715   eval "$3=no"
2716 fi
2717 rm -f core conftest.err conftest.$ac_objext \
2718     conftest$ac_exeext conftest.$ac_ext
2719 fi
2720 eval ac_res=\$$3
2721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2724
2725 } # ac_fn_cxx_check_func
2726 cat >config.log <<_ACEOF
2727 This file contains any messages produced by compilers while
2728 running configure, to aid debugging if configure makes a mistake.
2729
2730 It was created by bacula $as_me 5.2.1, which was
2731 generated by GNU Autoconf 2.65.  Invocation command line was
2732
2733   $ $0 $@
2734
2735 _ACEOF
2736 exec 5>>config.log
2737 {
2738 cat <<_ASUNAME
2739 ## --------- ##
2740 ## Platform. ##
2741 ## --------- ##
2742
2743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2748
2749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2750 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2751
2752 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2753 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2755 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2756 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2757 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2758 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2759
2760 _ASUNAME
2761
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     $as_echo "PATH: $as_dir"
2768   done
2769 IFS=$as_save_IFS
2770
2771 } >&5
2772
2773 cat >&5 <<_ACEOF
2774
2775
2776 ## ----------- ##
2777 ## Core tests. ##
2778 ## ----------- ##
2779
2780 _ACEOF
2781
2782
2783 # Keep a trace of the command line.
2784 # Strip out --no-create and --no-recursion so they do not pile up.
2785 # Strip out --silent because we don't want to record it for future runs.
2786 # Also quote any args containing shell meta-characters.
2787 # Make two passes to allow for proper duplicate-argument suppression.
2788 ac_configure_args=
2789 ac_configure_args0=
2790 ac_configure_args1=
2791 ac_must_keep_next=false
2792 for ac_pass in 1 2
2793 do
2794   for ac_arg
2795   do
2796     case $ac_arg in
2797     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2798     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2799     | -silent | --silent | --silen | --sile | --sil)
2800       continue ;;
2801     *\'*)
2802       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2803     esac
2804     case $ac_pass in
2805     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2806     2)
2807       as_fn_append ac_configure_args1 " '$ac_arg'"
2808       if test $ac_must_keep_next = true; then
2809         ac_must_keep_next=false # Got value, back to normal.
2810       else
2811         case $ac_arg in
2812           *=* | --config-cache | -C | -disable-* | --disable-* \
2813           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2814           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2815           | -with-* | --with-* | -without-* | --without-* | --x)
2816             case "$ac_configure_args0 " in
2817               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2818             esac
2819             ;;
2820           -* ) ac_must_keep_next=true ;;
2821         esac
2822       fi
2823       as_fn_append ac_configure_args " '$ac_arg'"
2824       ;;
2825     esac
2826   done
2827 done
2828 { ac_configure_args0=; unset ac_configure_args0;}
2829 { ac_configure_args1=; unset ac_configure_args1;}
2830
2831 # When interrupted or exit'd, cleanup temporary files, and complete
2832 # config.log.  We remove comments because anyway the quotes in there
2833 # would cause problems or look ugly.
2834 # WARNING: Use '\'' to represent an apostrophe within the trap.
2835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2836 trap 'exit_status=$?
2837   # Save into config.log some information that might help in debugging.
2838   {
2839     echo
2840
2841     cat <<\_ASBOX
2842 ## ---------------- ##
2843 ## Cache variables. ##
2844 ## ---------------- ##
2845 _ASBOX
2846     echo
2847     # The following way of writing the cache mishandles newlines in values,
2848 (
2849   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2850     eval ac_val=\$$ac_var
2851     case $ac_val in #(
2852     *${as_nl}*)
2853       case $ac_var in #(
2854       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2856       esac
2857       case $ac_var in #(
2858       _ | IFS | as_nl) ;; #(
2859       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2860       *) { eval $ac_var=; unset $ac_var;} ;;
2861       esac ;;
2862     esac
2863   done
2864   (set) 2>&1 |
2865     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2866     *${as_nl}ac_space=\ *)
2867       sed -n \
2868         "s/'\''/'\''\\\\'\'''\''/g;
2869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2870       ;; #(
2871     *)
2872       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2873       ;;
2874     esac |
2875     sort
2876 )
2877     echo
2878
2879     cat <<\_ASBOX
2880 ## ----------------- ##
2881 ## Output variables. ##
2882 ## ----------------- ##
2883 _ASBOX
2884     echo
2885     for ac_var in $ac_subst_vars
2886     do
2887       eval ac_val=\$$ac_var
2888       case $ac_val in
2889       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2890       esac
2891       $as_echo "$ac_var='\''$ac_val'\''"
2892     done | sort
2893     echo
2894
2895     if test -n "$ac_subst_files"; then
2896       cat <<\_ASBOX
2897 ## ------------------- ##
2898 ## File substitutions. ##
2899 ## ------------------- ##
2900 _ASBOX
2901       echo
2902       for ac_var in $ac_subst_files
2903       do
2904         eval ac_val=\$$ac_var
2905         case $ac_val in
2906         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907         esac
2908         $as_echo "$ac_var='\''$ac_val'\''"
2909       done | sort
2910       echo
2911     fi
2912
2913     if test -s confdefs.h; then
2914       cat <<\_ASBOX
2915 ## ----------- ##
2916 ## confdefs.h. ##
2917 ## ----------- ##
2918 _ASBOX
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   ac_site_file1=$CONFIG_SITE
2974 elif test "x$prefix" != xNONE; then
2975   ac_site_file1=$prefix/share/config.site
2976   ac_site_file2=$prefix/etc/config.site
2977 else
2978   ac_site_file1=$ac_default_prefix/share/config.site
2979   ac_site_file2=$ac_default_prefix/etc/config.site
2980 fi
2981 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2982 do
2983   test "x$ac_site_file" = xNONE && continue
2984   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2985     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987     sed 's/^/| /' "$ac_site_file" >&5
2988     . "$ac_site_file"
2989   fi
2990 done
2991
2992 if test -r "$cache_file"; then
2993   # Some versions of bash will fail to source /dev/null (special files
2994   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2995   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2996     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2997 $as_echo "$as_me: loading cache $cache_file" >&6;}
2998     case $cache_file in
2999       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3000       *)                      . "./$cache_file";;
3001     esac
3002   fi
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3005 $as_echo "$as_me: creating cache $cache_file" >&6;}
3006   >$cache_file
3007 fi
3008
3009 as_fn_append ac_header_list " stdlib.h"
3010 as_fn_append ac_header_list " unistd.h"
3011 as_fn_append ac_header_list " sys/param.h"
3012 # Check that the precious variables saved in the cache have kept the same
3013 # value.
3014 ac_cache_corrupted=false
3015 for ac_var in $ac_precious_vars; do
3016   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3017   eval ac_new_set=\$ac_env_${ac_var}_set
3018   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3019   eval ac_new_val=\$ac_env_${ac_var}_value
3020   case $ac_old_set,$ac_new_set in
3021     set,)
3022       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3023 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3024       ac_cache_corrupted=: ;;
3025     ,set)
3026       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3028       ac_cache_corrupted=: ;;
3029     ,);;
3030     *)
3031       if test "x$ac_old_val" != "x$ac_new_val"; then
3032         # differences in whitespace do not lead to failure.
3033         ac_old_val_w=`echo x $ac_old_val`
3034         ac_new_val_w=`echo x $ac_new_val`
3035         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3036           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3037 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3038           ac_cache_corrupted=:
3039         else
3040           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3041 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3042           eval $ac_var=\$ac_old_val
3043         fi
3044         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3045 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3046         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3047 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3048       fi;;
3049   esac
3050   # Pass precious variables to config.status.
3051   if test "$ac_new_set" = set; then
3052     case $ac_new_val in
3053     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3054     *) ac_arg=$ac_var=$ac_new_val ;;
3055     esac
3056     case " $ac_configure_args " in
3057       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3058       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3059     esac
3060   fi
3061 done
3062 if $ac_cache_corrupted; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3066 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3067   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3068 fi
3069 ## -------------------- ##
3070 ## Main body of script. ##
3071 ## -------------------- ##
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080
3081
3082 BUILD_DIR=`pwd`
3083 cd ..
3084 TOP_DIR=`pwd`
3085 cd ${BUILD_DIR}
3086
3087
3088 ac_aux_dir=
3089 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3090   for ac_t in install-sh install.sh shtool; do
3091     if test -f "$ac_dir/$ac_t"; then
3092       ac_aux_dir=$ac_dir
3093       ac_install_sh="$ac_aux_dir/$ac_t -c"
3094       break 2
3095     fi
3096   done
3097 done
3098 if test -z "$ac_aux_dir"; then
3099   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3100 fi
3101
3102 # These three variables are undocumented and unsupported,
3103 # and are intended to be withdrawn in a future Autoconf release.
3104 # They can cause serious problems if a builder's source tree is in a directory
3105 # whose full name contains unusual characters.
3106 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3107 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3108 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3109
3110
3111 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3112
3113
3114 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3115 WIN32MAINDIR=${BUILD_DIR}
3116 WIN32TOPDIR=${TOP_DIR}
3117
3118
3119
3120
3121 for ac_prog in true
3122 do
3123   # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   case $TRUEPRG in
3131   [\\/]* | ?:[\\/]*)
3132   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3133   ;;
3134   *)
3135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150   ;;
3151 esac
3152 fi
3153 TRUEPRG=$ac_cv_path_TRUEPRG
3154 if test -n "$TRUEPRG"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3156 $as_echo "$TRUEPRG" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163   test -n "$TRUEPRG" && break
3164 done
3165 test -n "$TRUEPRG" || TRUEPRG=":"
3166
3167 for ac_prog in false
3168 do
3169   # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   case $FALSEPRG in
3177   [\\/]* | ?:[\\/]*)
3178   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3179   ;;
3180   *)
3181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196   ;;
3197 esac
3198 fi
3199 FALSEPRG=$ac_cv_path_FALSEPRG
3200 if test -n "$FALSEPRG"; then
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3202 $as_echo "$FALSEPRG" >&6; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209   test -n "$FALSEPRG" && break
3210 done
3211 test -n "$FALSEPRG" || FALSEPRG=":"
3212
3213
3214
3215 post_host=
3216 if test "x$BACULA" != x; then
3217    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3218 fi
3219 BACULA=${BACULA:-Bacula}
3220 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3221 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3222 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3223 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3224
3225 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3226 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3227 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3228
3229 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3230 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3231 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3232
3233
3234 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236
3237 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3238 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3239
3240
3241 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242
3243 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3244
3245
3246 echo "configuring for ${BACULA} $VERSION ($DATE)"
3247
3248
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CC"; then
3264   ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$ac_cv_prog_CC"; then
3295   ac_ct_CC=$CC
3296   # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$ac_ct_CC"; then
3304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313     ac_cv_prog_ac_ct_CC="gcc"
3314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318   done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3327 else
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332   if test "x$ac_ct_CC" = x; then
3333     CC=""
3334   else
3335     case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341     CC=$ac_ct_CC
3342   fi
3343 else
3344   CC="$ac_cv_prog_CC"
3345 fi
3346
3347 if test -z "$CC"; then
3348           if test -n "$ac_tool_prefix"; then
3349     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_CC="${ac_tool_prefix}cc"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386   fi
3387 fi
3388 if test -z "$CC"; then
3389   # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if test -n "$CC"; then
3397   ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399   ac_prog_rejected=no
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405     for ac_exec_ext in '' $ac_executable_extensions; do
3406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3408        ac_prog_rejected=yes
3409        continue
3410      fi
3411     ac_cv_prog_CC="cc"
3412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416   done
3417 IFS=$as_save_IFS
3418
3419 if test $ac_prog_rejected = yes; then
3420   # We found a bogon in the path, so make sure we never use it.
3421   set dummy $ac_cv_prog_CC
3422   shift
3423   if test $# != 0; then
3424     # We chose a different compiler from the bogus one.
3425     # However, it has the same basename, so the bogon will be chosen
3426     # first if we set CC to just the basename; use the full file name.
3427     shift
3428     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3429   fi
3430 fi
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$CC"; then
3445   if test -n "$ac_tool_prefix"; then
3446   for ac_prog in cl.exe
3447   do
3448     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463     for ac_exec_ext in '' $ac_executable_extensions; do
3464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470   done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485     test -n "$CC" && break
3486   done
3487 fi
3488 if test -z "$CC"; then
3489   ac_ct_CC=$CC
3490   for ac_prog in cl.exe
3491 do
3492   # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   if test -n "$ac_ct_CC"; then
3500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507     for ac_exec_ext in '' $ac_executable_extensions; do
3508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509     ac_cv_prog_ac_ct_CC="$ac_prog"
3510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511     break 2
3512   fi
3513 done
3514   done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529   test -n "$ac_ct_CC" && break
3530 done
3531
3532   if test "x$ac_ct_CC" = x; then
3533     CC=""
3534   else
3535     case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541     CC=$ac_ct_CC
3542   fi
3543 fi
3544
3545 fi
3546
3547
3548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." "$LINENO" 5; }
3552
3553 # Provide some information about the compiler.
3554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 set X $ac_compile
3556 ac_compiler=$2
3557 for ac_option in --version -v -V -qversion; do
3558   { { ac_try="$ac_compiler $ac_option >&5"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3566   ac_status=$?
3567   if test -s conftest.err; then
3568     sed '10a\
3569 ... rest of stderr output deleted ...
3570          10q' conftest.err >conftest.er1
3571     cat conftest.er1 >&5
3572   fi
3573   rm -f conftest.er1 conftest.err
3574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575   test $ac_status = 0; }
3576 done
3577
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 ac_clean_files_save=$ac_clean_files
3590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3591 # Try to create an executable without -o first, disregard a.out.
3592 # It will help us diagnose broken compilers, and finding out an intuition
3593 # of exeext.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3595 $as_echo_n "checking whether the C compiler works... " >&6; }
3596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3597
3598 # The possible output files:
3599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600
3601 ac_rmfiles=
3602 for ac_file in $ac_files
3603 do
3604   case $ac_file in
3605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3607   esac
3608 done
3609 rm -f $ac_rmfiles
3610
3611 if { { ac_try="$ac_link_default"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618   (eval "$ac_link_default") 2>&5
3619   ac_status=$?
3620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621   test $ac_status = 0; }; then :
3622   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3624 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3625 # so that the user can short-circuit this test for compilers unknown to
3626 # Autoconf.
3627 for ac_file in $ac_files ''
3628 do
3629   test -f "$ac_file" || continue
3630   case $ac_file in
3631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3632         ;;
3633     [ab].out )
3634         # We found the default executable, but exeext='' is most
3635         # certainly right.
3636         break;;
3637     *.* )
3638         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3639         then :; else
3640            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641         fi
3642         # We set ac_cv_exeext here because the later test for it is not
3643         # safe: cross compilers may not add the suffix if given an `-o'
3644         # argument, so we may need to know it at that point already.
3645         # Even if this section looks crufty: it has the advantage of
3646         # actually working.
3647         break;;
3648     * )
3649         break;;
3650   esac
3651 done
3652 test "$ac_cv_exeext" = no && ac_cv_exeext=
3653
3654 else
3655   ac_file=''
3656 fi
3657 if test -z "$ac_file"; then :
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { as_fn_set_status 77
3666 as_fn_error "C compiler cannot create executables
3667 See \`config.log' for more details." "$LINENO" 5; }; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698   test -f "$ac_file" || continue
3699   case $ac_file in
3700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702           break;;
3703     * ) break;;
3704   esac
3705 done
3706 else
3707   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details." "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726  return ferror (f) || fclose (f) != 0;
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run.  If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738   { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745   (eval "$ac_link") 2>&5
3746   ac_status=$?
3747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748   test $ac_status = 0; }
3749   if { ac_try='./conftest$ac_cv_exeext'
3750   { { case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_try") 2>&5
3757   ac_status=$?
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }; }; then
3760     cross_compiling=no
3761   else
3762     if test "$cross_compiling" = maybe; then
3763         cross_compiling=yes
3764     else
3765         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details." "$LINENO" 5; }
3770     fi
3771   fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if test "${ac_cv_objext+set}" = set; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_compile") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; then :
3806   for ac_file in conftest.o conftest.obj conftest.*; do
3807   test -f "$ac_file" || continue;
3808   case $ac_file in
3809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811        break;;
3812   esac
3813 done
3814 else
3815   $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details." "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849   ac_compiler_gnu=yes
3850 else
3851   ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860   GCC=yes
3861 else
3862   GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if test "${ac_cv_prog_cc_g+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   ac_save_c_werror_flag=$ac_c_werror_flag
3872    ac_c_werror_flag=yes
3873    ac_cv_prog_cc_g=no
3874    CFLAGS="-g"
3875    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887   ac_cv_prog_cc_g=yes
3888 else
3889   CFLAGS=""
3890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904   ac_c_werror_flag=$ac_save_c_werror_flag
3905          CFLAGS="-g"
3906          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918   ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925    ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930   CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932   if test "$GCC" = yes; then
3933     CFLAGS="-g -O2"
3934   else
3935     CFLAGS="-g"
3936   fi
3937 else
3938   if test "$GCC" = yes; then
3939     CFLAGS="-O2"
3940   else
3941     CFLAGS=
3942   fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961      char **p;
3962      int i;
3963 {
3964   return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968   char *s;
3969   va_list v;
3970   va_start (v,p);
3971   s = g (p, va_arg (v,int));
3972   va_end (v);
3973   return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3977    function prototypes and stuff, but not '\xHH' hex character constants.
3978    These don't provoke an error unfortunately, instead are silently treated
3979    as 'x'.  The following induces an error, until -std is added to get
3980    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3981    array size at least.  It's necessary to write '\x00'==0 to get something
3982    that's true only with -std.  */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986    inside strings and character constants.  */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007   CC="$ac_save_CC $ac_arg"
4008   if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_prog_cc_c89=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext
4012   test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020   x)
4021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023   xno)
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026   *)
4027     CC="$CC $ac_cv_prog_cc_c89"
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 ac_ext=cpp
4042 ac_cpp='$CXXCPP $CPPFLAGS'
4043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4046 if test -z "$CXX"; then
4047   if test -n "$CCC"; then
4048     CXX=$CCC
4049   else
4050     if test -n "$ac_tool_prefix"; then
4051   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4052   do
4053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CXX+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -n "$CXX"; then
4061   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CXX=$ac_cv_prog_CXX
4081 if test -n "$CXX"; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4083 $as_echo "$CXX" >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090     test -n "$CXX" && break
4091   done
4092 fi
4093 if test -z "$CXX"; then
4094   ac_ct_CXX=$CXX
4095   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$ac_ct_CXX"; then
4105   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114     ac_cv_prog_ac_ct_CXX="$ac_prog"
4115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119   done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4125 if test -n "$ac_ct_CXX"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4127 $as_echo "$ac_ct_CXX" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134   test -n "$ac_ct_CXX" && break
4135 done
4136
4137   if test "x$ac_ct_CXX" = x; then
4138     CXX="g++"
4139   else
4140     case $cross_compiling:$ac_tool_warned in
4141 yes:)
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144 ac_tool_warned=yes ;;
4145 esac
4146     CXX=$ac_ct_CXX
4147   fi
4148 fi
4149
4150   fi
4151 fi
4152 # Provide some information about the compiler.
4153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4154 set X $ac_compile
4155 ac_compiler=$2
4156 for ac_option in --version -v -V -qversion; do
4157   { { ac_try="$ac_compiler $ac_option >&5"
4158 case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4165   ac_status=$?
4166   if test -s conftest.err; then
4167     sed '10a\
4168 ... rest of stderr output deleted ...
4169          10q' conftest.err >conftest.er1
4170     cat conftest.er1 >&5
4171   fi
4172   rm -f conftest.er1 conftest.err
4173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174   test $ac_status = 0; }
4175 done
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184
4185 int
4186 main ()
4187 {
4188 #ifndef __GNUC__
4189        choke me
4190 #endif
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_cxx_try_compile "$LINENO"; then :
4197   ac_compiler_gnu=yes
4198 else
4199   ac_compiler_gnu=no
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4206 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4207 if test $ac_compiler_gnu = yes; then
4208   GXX=yes
4209 else
4210   GXX=
4211 fi
4212 ac_test_CXXFLAGS=${CXXFLAGS+set}
4213 ac_save_CXXFLAGS=$CXXFLAGS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4215 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4216 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4220    ac_cxx_werror_flag=yes
4221    ac_cv_prog_cxx_g=no
4222    CXXFLAGS="-g"
4223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_cxx_try_compile "$LINENO"; then :
4235   ac_cv_prog_cxx_g=yes
4236 else
4237   CXXFLAGS=""
4238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250
4251 else
4252   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4253          CXXFLAGS="-g"
4254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_cxx_try_compile "$LINENO"; then :
4266   ac_cv_prog_cxx_g=yes
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4276 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4277 if test "$ac_test_CXXFLAGS" = set; then
4278   CXXFLAGS=$ac_save_CXXFLAGS
4279 elif test $ac_cv_prog_cxx_g = yes; then
4280   if test "$GXX" = yes; then
4281     CXXFLAGS="-g -O2"
4282   else
4283     CXXFLAGS="-g"
4284   fi
4285 else
4286   if test "$GXX" = yes; then
4287     CXXFLAGS="-O2"
4288   else
4289     CXXFLAGS=
4290   fi
4291 fi
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298 if test "x$CC" != xcc; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4300 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4303 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4304 fi
4305 set dummy $CC; ac_cc=`$as_echo "$2" |
4306                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4307 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 # Make sure it works both with $CC and with simple cc.
4322 # We do the test twice because some compilers refuse to overwrite an
4323 # existing .o file with -o, though they will create one.
4324 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4325 rm -f conftest2.*
4326 if { { case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332   (eval "$ac_try") 2>&5
4333   ac_status=$?
4334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335   test $ac_status = 0; } &&
4336    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342   (eval "$ac_try") 2>&5
4343   ac_status=$?
4344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345   test $ac_status = 0; };
4346 then
4347   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4348   if test "x$CC" != xcc; then
4349     # Test first that cc exists at all.
4350     if { ac_try='cc -c conftest.$ac_ext >&5'
4351   { { case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360   test $ac_status = 0; }; }; then
4361       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4362       rm -f conftest2.*
4363       if { { case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; } &&
4373          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382   test $ac_status = 0; };
4383       then
4384         # cc works too.
4385         :
4386       else
4387         # cc exists but doesn't like -o.
4388         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4389       fi
4390     fi
4391   fi
4392 else
4393   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4394 fi
4395 rm -f core conftest*
4396
4397 fi
4398 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400 $as_echo "yes" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404
4405 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4406
4407 fi
4408
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4416 # On Suns, sometimes $CPP names a directory.
4417 if test -n "$CPP" && test -d "$CPP"; then
4418   CPP=
4419 fi
4420 if test -z "$CPP"; then
4421   if test "${ac_cv_prog_CPP+set}" = set; then :
4422   $as_echo_n "(cached) " >&6
4423 else
4424       # Double quotes because CPP needs to be expanded
4425     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4426     do
4427       ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #ifdef __STDC__
4439 # include <limits.h>
4440 #else
4441 # include <assert.h>
4442 #endif
4443                      Syntax error
4444 _ACEOF
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4446
4447 else
4448   # Broken: fails on valid input.
4449 continue
4450 fi
4451 rm -f conftest.err conftest.$ac_ext
4452
4453   # OK, works on sane cases.  Now check whether nonexistent headers
4454   # can be detected and how.
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457 #include <ac_nonexistent.h>
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460   # Broken: success on invalid input.
4461 continue
4462 else
4463   # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4466 fi
4467 rm -f conftest.err conftest.$ac_ext
4468
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4473   break
4474 fi
4475
4476     done
4477     ac_cv_prog_CPP=$CPP
4478
4479 fi
4480   CPP=$ac_cv_prog_CPP
4481 else
4482   ac_cv_prog_CPP=$CPP
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4485 $as_echo "$CPP" >&6; }
4486 ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4488 do
4489   # Use a header file that comes with gcc, so configuring glibc
4490   # with a fresh cross-compiler works.
4491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492   # <limits.h> exists even on freestanding compilers.
4493   # On the NeXT, cc -E runs the code through the compiler's parser,
4494   # not just through cpp. "Syntax error" is here to catch this case.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502                      Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505
4506 else
4507   # Broken: fails on valid input.
4508 continue
4509 fi
4510 rm -f conftest.err conftest.$ac_ext
4511
4512   # OK, works on sane cases.  Now check whether nonexistent headers
4513   # can be detected and how.
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519   # Broken: success on invalid input.
4520 continue
4521 else
4522   # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4525 fi
4526 rm -f conftest.err conftest.$ac_ext
4527
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532
4533 else
4534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4537 See \`config.log' for more details." "$LINENO" 5; }
4538 fi
4539
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4549 if test "${ac_cv_path_GREP+set}" = set; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -z "$GREP"; then
4553   ac_path_GREP_found=false
4554   # Loop through the user's path and test for each of PROGNAME-LIST
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_prog in grep ggrep; do
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4563       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4564 # Check for GNU ac_path_GREP and select it if it is found.
4565   # Check for GNU $ac_path_GREP
4566 case `"$ac_path_GREP" --version 2>&1` in
4567 *GNU*)
4568   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4569 *)
4570   ac_count=0
4571   $as_echo_n 0123456789 >"conftest.in"
4572   while :
4573   do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo 'GREP' >> "conftest.nl"
4578     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580     as_fn_arith $ac_count + 1 && ac_count=$as_val
4581     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4582       # Best one so far, save it but keep looking for a better one
4583       ac_cv_path_GREP="$ac_path_GREP"
4584       ac_path_GREP_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588   done
4589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592       $ac_path_GREP_found && break 3
4593     done
4594   done
4595   done
4596 IFS=$as_save_IFS
4597   if test -z "$ac_cv_path_GREP"; then
4598     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599   fi
4600 else
4601   ac_cv_path_GREP=$GREP
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4606 $as_echo "$ac_cv_path_GREP" >&6; }
4607  GREP="$ac_cv_path_GREP"
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4611 $as_echo_n "checking for egrep... " >&6; }
4612 if test "${ac_cv_path_EGREP+set}" = set; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616    then ac_cv_path_EGREP="$GREP -E"
4617    else
4618      if test -z "$EGREP"; then
4619   ac_path_EGREP_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in egrep; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631   # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo 'EGREP' >> "conftest.nl"
4644     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_EGREP="$ac_path_EGREP"
4650       ac_path_EGREP_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_EGREP_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_EGREP"; then
4664     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_EGREP=$EGREP
4668 fi
4669
4670    fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4673 $as_echo "$ac_cv_path_EGREP" >&6; }
4674  EGREP="$ac_cv_path_EGREP"
4675
4676
4677 if test $ac_cv_c_compiler_gnu = yes; then
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4679 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4680 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683     ac_pattern="Autoconf.*'x'"
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <sgtty.h>
4687 Autoconf TIOCGETP
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4691   ac_cv_prog_gcc_traditional=yes
4692 else
4693   ac_cv_prog_gcc_traditional=no
4694 fi
4695 rm -f conftest*
4696
4697
4698   if test $ac_cv_prog_gcc_traditional = no; then
4699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <termio.h>
4702 Autoconf TCGETA
4703 _ACEOF
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4706   ac_cv_prog_gcc_traditional=yes
4707 fi
4708 rm -f conftest*
4709
4710   fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4713 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4714   if test $ac_cv_prog_gcc_traditional = yes; then
4715     CC="$CC -traditional"
4716   fi
4717 fi
4718
4719 BASECC=`basename $CC`
4720 have_gcc=no
4721 if test "x$BASECC" = xgcc; then
4722    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4723
4724    have_gcc=yes
4725 fi
4726 # Extract the first word of "$CXX", so it can be a program name with args.
4727 set dummy $CXX; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_path_CXX+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   case $CXX in
4734   [\\/]* | ?:[\\/]*)
4735   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4736   ;;
4737   *)
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4754   ;;
4755 esac
4756 fi
4757 CXX=$ac_cv_path_CXX
4758 if test -n "$CXX"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4760 $as_echo "$CXX" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 if test ! -e $CXX; then
4768    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4769 fi
4770
4771 # Find a good install program.  We prefer a C program (faster),
4772 # so one script is as good as another.  But avoid the broken or
4773 # incompatible versions:
4774 # SysV /etc/install, /usr/sbin/install
4775 # SunOS /usr/etc/install
4776 # IRIX /sbin/install
4777 # AIX /bin/install
4778 # AmigaOS /C/install, which installs bootblocks on floppy discs
4779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4782 # OS/2's system install, which has a completely different semantic
4783 # ./install, which can be erroneously created by make from ./install.sh.
4784 # Reject install programs that cannot install multiple files.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4786 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4787 if test -z "$INSTALL"; then
4788 if test "${ac_cv_path_install+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     # Account for people who put trailing slashes in PATH elements.
4797 case $as_dir/ in #((
4798   ./ | .// | /[cC]/* | \
4799   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4800   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4801   /usr/ucb/* ) ;;
4802   *)
4803     # OSF1 and SCO ODT 3.0 have their own names for install.
4804     # Don't use installbsd from OSF since it installs stuff as root
4805     # by default.
4806     for ac_prog in ginstall scoinst install; do
4807       for ac_exec_ext in '' $ac_executable_extensions; do
4808         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4809           if test $ac_prog = install &&
4810             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811             # AIX install.  It has an incompatible calling convention.
4812             :
4813           elif test $ac_prog = install &&
4814             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4815             # program-specific install script used by HP pwplus--don't use.
4816             :
4817           else
4818             rm -rf conftest.one conftest.two conftest.dir
4819             echo one > conftest.one
4820             echo two > conftest.two
4821             mkdir conftest.dir
4822             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4823               test -s conftest.one && test -s conftest.two &&
4824               test -s conftest.dir/conftest.one &&
4825               test -s conftest.dir/conftest.two
4826             then
4827               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4828               break 3
4829             fi
4830           fi
4831         fi
4832       done
4833     done
4834     ;;
4835 esac
4836
4837   done
4838 IFS=$as_save_IFS
4839
4840 rm -rf conftest.one conftest.two conftest.dir
4841
4842 fi
4843   if test "${ac_cv_path_install+set}" = set; then
4844     INSTALL=$ac_cv_path_install
4845   else
4846     # As a last resort, use the slow shell script.  Don't cache a
4847     # value for INSTALL within a source directory, because that will
4848     # break other packages using the cache if that directory is
4849     # removed, or if the value is a relative name.
4850     INSTALL=$ac_install_sh
4851   fi
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4854 $as_echo "$INSTALL" >&6; }
4855
4856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4857 # It thinks the first close brace ends the variable substitution.
4858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859
4860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4861
4862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4863
4864 # Extract the first word of "mv", so it can be a program name with args.
4865 set dummy mv; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_path_MV+set}" = set; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   case $MV in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4892   ;;
4893 esac
4894 fi
4895 MV=$ac_cv_path_MV
4896 if test -n "$MV"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4898 $as_echo "$MV" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905 # Extract the first word of "rm", so it can be a program name with args.
4906 set dummy rm; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_path_REMOVE+set}" = set; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   case $REMOVE in
4913   [\\/]* | ?:[\\/]*)
4914   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4915   ;;
4916   *)
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4933   ;;
4934 esac
4935 fi
4936 REMOVE=$ac_cv_path_REMOVE
4937 if test -n "$REMOVE"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4939 $as_echo "$REMOVE" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946 # Extract the first word of "cp", so it can be a program name with args.
4947 set dummy cp; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_path_CP+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   case $CP in
4954   [\\/]* | ?:[\\/]*)
4955   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4956   ;;
4957   *)
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4974   ;;
4975 esac
4976 fi
4977 CP=$ac_cv_path_CP
4978 if test -n "$CP"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4980 $as_echo "$CP" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987 # Extract the first word of "sed", so it can be a program name with args.
4988 set dummy sed; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_path_SED+set}" = set; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   case $SED in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013
5014   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5015   ;;
5016 esac
5017 fi
5018 SED=$ac_cv_path_SED
5019 if test -n "$SED"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5021 $as_echo "$SED" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 # Extract the first word of "echo", so it can be a program name with args.
5029 set dummy echo; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_path_ECHO+set}" = set; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   case $ECHO in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054
5055   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5056   ;;
5057 esac
5058 fi
5059 ECHO=$ac_cv_path_ECHO
5060 if test -n "$ECHO"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5062 $as_echo "$ECHO" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 # Extract the first word of "cmp", so it can be a program name with args.
5070 set dummy cmp; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_path_CMP+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   case $CMP in
5077   [\\/]* | ?:[\\/]*)
5078   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5079   ;;
5080   *)
5081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5097   ;;
5098 esac
5099 fi
5100 CMP=$ac_cv_path_CMP
5101 if test -n "$CMP"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5103 $as_echo "$CMP" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110 # Extract the first word of "tbl", so it can be a program name with args.
5111 set dummy tbl; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_path_TBL+set}" = set; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   case $TBL in
5118   [\\/]* | ?:[\\/]*)
5119   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5120   ;;
5121   *)
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5138   ;;
5139 esac
5140 fi
5141 TBL=$ac_cv_path_TBL
5142 if test -n "$TBL"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5144 $as_echo "$TBL" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 # Extract the first word of "ar", so it can be a program name with args.
5152 set dummy ar; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_AR+set}" = set; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   case $AR in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175   done
5176 IFS=$as_save_IFS
5177
5178   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5179   ;;
5180 esac
5181 fi
5182 AR=$ac_cv_path_AR
5183 if test -n "$AR"; then
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5185 $as_echo "$AR" >&6; }
5186 else
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 # Extract the first word of "openssl", so it can be a program name with args.
5193 set dummy openssl; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   case $OPENSSL in
5200   [\\/]* | ?:[\\/]*)
5201   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5202   ;;
5203   *)
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5220   ;;
5221 esac
5222 fi
5223 OPENSSL=$ac_cv_path_OPENSSL
5224 if test -n "$OPENSSL"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5226 $as_echo "$OPENSSL" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232
5233 # Extract the first word of "mtx", so it can be a program name with args.
5234 set dummy mtx; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_path_MTX+set}" = set; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   case $MTX in
5241   [\\/]* | ?:[\\/]*)
5242   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5243   ;;
5244   *)
5245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5261   ;;
5262 esac
5263 fi
5264 MTX=$ac_cv_path_MTX
5265 if test -n "$MTX"; then
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5267 $as_echo "$MTX" >&6; }
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273
5274 # Extract the first word of "dd", so it can be a program name with args.
5275 set dummy dd; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_DD+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   case $DD in
5282   [\\/]* | ?:[\\/]*)
5283   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5284   ;;
5285   *)
5286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298   done
5299 IFS=$as_save_IFS
5300
5301   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5302   ;;
5303 esac
5304 fi
5305 DD=$ac_cv_path_DD
5306 if test -n "$DD"; then
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5308 $as_echo "$DD" >&6; }
5309 else
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 # Extract the first word of "mkisofs", so it can be a program name with args.
5316 set dummy mkisofs; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   case $MKISOFS in
5323   [\\/]* | ?:[\\/]*)
5324   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5325   ;;
5326   *)
5327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done
5340 IFS=$as_save_IFS
5341
5342   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5343   ;;
5344 esac
5345 fi
5346 MKISOFS=$ac_cv_path_MKISOFS
5347 if test -n "$MKISOFS"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5349 $as_echo "$MKISOFS" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 # Extract the first word of "python", so it can be a program name with args.
5357 set dummy python; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_path_PYTHON+set}" = set; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   case $PYTHON in
5364   [\\/]* | ?:[\\/]*)
5365   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5366   ;;
5367   *)
5368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382
5383   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5384   ;;
5385 esac
5386 fi
5387 PYTHON=$ac_cv_path_PYTHON
5388 if test -n "$PYTHON"; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5390 $as_echo "$PYTHON" >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 # Extract the first word of "growisofs", so it can be a program name with args.
5398 set dummy growisofs; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   case $GROWISOFS in
5405   [\\/]* | ?:[\\/]*)
5406   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5407   ;;
5408   *)
5409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414     for ac_exec_ext in '' $ac_executable_extensions; do
5415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421   done
5422 IFS=$as_save_IFS
5423
5424   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5425   ;;
5426 esac
5427 fi
5428 GROWISOFS=$ac_cv_path_GROWISOFS
5429 if test -n "$GROWISOFS"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5431 $as_echo "$GROWISOFS" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5439 set dummy dvd+rw-mediainfo; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   case $DVDRWMEDIAINFO in
5446   [\\/]* | ?:[\\/]*)
5447   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5448   ;;
5449   *)
5450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5466   ;;
5467 esac
5468 fi
5469 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5470 if test -n "$DVDRWMEDIAINFO"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5472 $as_echo "$DVDRWMEDIAINFO" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5480 set dummy dvd+rw-format; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   case $DVDRWFORMAT in
5487   [\\/]* | ?:[\\/]*)
5488   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5489   ;;
5490   *)
5491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5507   ;;
5508 esac
5509 fi
5510 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5511 if test -n "$DVDRWFORMAT"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5513 $as_echo "$DVDRWFORMAT" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 # Extract the first word of "pkg-config", so it can be a program name with args.
5521 set dummy pkg-config; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $PKGCONFIG in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5548   ;;
5549 esac
5550 fi
5551 PKGCONFIG=$ac_cv_path_PKGCONFIG
5552 if test -n "$PKGCONFIG"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5554 $as_echo "$PKGCONFIG" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 # Extract the first word of "qmake", so it can be a program name with args.
5562 set dummy qmake; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_path_QMAKE+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $QMAKE in
5569   [\\/]* | ?:[\\/]*)
5570   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5571   ;;
5572   *)
5573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5589   ;;
5590 esac
5591 fi
5592 QMAKE=$ac_cv_path_QMAKE
5593 if test -n "$QMAKE"; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5595 $as_echo "$QMAKE" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 # Extract the first word of "gmake", so it can be a program name with args.
5603 set dummy gmake; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_path_GMAKE+set}" = set; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   case $GMAKE in
5610   [\\/]* | ?:[\\/]*)
5611   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5612   ;;
5613   *)
5614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5630   ;;
5631 esac
5632 fi
5633 GMAKE=$ac_cv_path_GMAKE
5634 if test -n "$GMAKE"; then
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5636 $as_echo "$GMAKE" >&6; }
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642
5643
5644 if test "x$WXCONFIG" = x; then
5645    WXCONFIG=wx-config
5646 fi
5647 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5648 set dummy ${WXCONFIG}; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   case $WXCONFIG in
5655   [\\/]* | ?:[\\/]*)
5656   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5657   ;;
5658   *)
5659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664     for ac_exec_ext in '' $ac_executable_extensions; do
5665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671   done
5672 IFS=$as_save_IFS
5673
5674   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5675   ;;
5676 esac
5677 fi
5678 WXCONFIG=$ac_cv_path_WXCONFIG
5679 if test -n "$WXCONFIG"; then
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5681 $as_echo "$WXCONFIG" >&6; }
5682 else
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688
5689 # Extract the first word of "cdrecord", so it can be a program name with args.
5690 set dummy cdrecord; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   case $CDRECORD in
5697   [\\/]* | ?:[\\/]*)
5698   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5699   ;;
5700   *)
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5717   ;;
5718 esac
5719 fi
5720 CDRECORD=$ac_cv_path_CDRECORD
5721 if test -n "$CDRECORD"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5723 $as_echo "$CDRECORD" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 # Extract the first word of "pidof", so it can be a program name with args.
5731 set dummy pidof; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_PIDOF+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $PIDOF in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5758   ;;
5759 esac
5760 fi
5761 PIDOF=$ac_cv_path_PIDOF
5762 if test -n "$PIDOF"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5764 $as_echo "$PIDOF" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 for ac_prog in gawk mawk nawk awk
5772 do
5773   # Extract the first word of "$ac_prog", so it can be a program name with args.
5774 set dummy $ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if test "${ac_cv_prog_AWK+set}" = set; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -n "$AWK"; then
5781   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_exec_ext in '' $ac_executable_extensions; do
5789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790     ac_cv_prog_AWK="$ac_prog"
5791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795   done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 AWK=$ac_cv_prog_AWK
5801 if test -n "$AWK"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5803 $as_echo "$AWK" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810   test -n "$AWK" && break
5811 done
5812
5813 # Some AWK programs fail, so test it and warn the user
5814 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5815       { if ((prog == $2) || (("(" prog ")") == $2) ||
5816       (("" prog "") == $2) ||
5817       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5818 else
5819   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5820    The regex engine of $AWK is too broken to be used you
5821    might want to install GNU AWK.
5822    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5823 fi
5824 THE_AWK=$AWK
5825 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5826 set dummy $THE_AWK; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_path_AWK+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   case $AWK in
5833   [\\/]* | ?:[\\/]*)
5834   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5835   ;;
5836   *)
5837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851
5852   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5853   ;;
5854 esac
5855 fi
5856 AWK=$ac_cv_path_AWK
5857 if test -n "$AWK"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5859 $as_echo "$AWK" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866
5867
5868 test -n "$ARFLAG" || ARFLAGS="cr"
5869
5870
5871 MAKE_SHELL=/bin/sh
5872
5873
5874
5875
5876
5877
5878
5879 use_libtool=yes
5880 # Check whether --enable-libtool was given.
5881 if test "${enable_libtool+set}" = set; then :
5882   enableval=$enable_libtool;
5883        if test x$enableval = xno; then
5884           use_libtool=no
5885        fi
5886
5887
5888 fi
5889
5890 case `pwd` in
5891   *\ * | *\     *)
5892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5893 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5894 esac
5895
5896
5897
5898 macro_version='2.4'
5899 macro_revision='1.3293'
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 ltmain="$ac_aux_dir/ltmain.sh"
5914
5915 # Make sure we can run config.sub.
5916 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5917   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5920 $as_echo_n "checking build system type... " >&6; }
5921 if test "${ac_cv_build+set}" = set; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   ac_build_alias=$build_alias
5925 test "x$ac_build_alias" = x &&
5926   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5927 test "x$ac_build_alias" = x &&
5928   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5930   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5934 $as_echo "$ac_cv_build" >&6; }
5935 case $ac_cv_build in
5936 *-*-*) ;;
5937 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5938 esac
5939 build=$ac_cv_build
5940 ac_save_IFS=$IFS; IFS='-'
5941 set x $ac_cv_build
5942 shift
5943 build_cpu=$1
5944 build_vendor=$2
5945 shift; shift
5946 # Remember, the first character of IFS is used to create $*,
5947 # except with old shells:
5948 build_os=$*
5949 IFS=$ac_save_IFS
5950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5951
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5954 $as_echo_n "checking host system type... " >&6; }
5955 if test "${ac_cv_host+set}" = set; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test "x$host_alias" = x; then
5959   ac_cv_host=$ac_cv_build
5960 else
5961   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5962     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5963 fi
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5967 $as_echo "$ac_cv_host" >&6; }
5968 case $ac_cv_host in
5969 *-*-*) ;;
5970 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5971 esac
5972 host=$ac_cv_host
5973 ac_save_IFS=$IFS; IFS='-'
5974 set x $ac_cv_host
5975 shift
5976 host_cpu=$1
5977 host_vendor=$2
5978 shift; shift
5979 # Remember, the first character of IFS is used to create $*,
5980 # except with old shells:
5981 host_os=$*
5982 IFS=$ac_save_IFS
5983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5984
5985
5986 # Backslashify metacharacters that are still active within
5987 # double-quoted strings.
5988 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5989
5990 # Same as above, but do not quote variable references.
5991 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5992
5993 # Sed substitution to delay expansion of an escaped shell variable in a
5994 # double_quote_subst'ed string.
5995 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5996
5997 # Sed substitution to delay expansion of an escaped single quote.
5998 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5999
6000 # Sed substitution to avoid accidental globbing in evaled expressions
6001 no_glob_subst='s/\*/\\\*/g'
6002
6003 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6004 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6008 $as_echo_n "checking how to print strings... " >&6; }
6009 # Test print first, because it will be a builtin if present.
6010 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6011    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6012   ECHO='print -r --'
6013 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6014   ECHO='printf %s\n'
6015 else
6016   # Use this function as a fallback that always works.
6017   func_fallback_echo ()
6018   {
6019     eval 'cat <<_LTECHO_EOF
6020 $1
6021 _LTECHO_EOF'
6022   }
6023   ECHO='func_fallback_echo'
6024 fi
6025
6026 # func_echo_all arg...
6027 # Invoke $ECHO with all args, space-separated.
6028 func_echo_all ()
6029 {
6030     $ECHO ""
6031 }
6032
6033 case "$ECHO" in
6034   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6035 $as_echo "printf" >&6; } ;;
6036   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6037 $as_echo "print -r" >&6; } ;;
6038   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6039 $as_echo "cat" >&6; } ;;
6040 esac
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6056 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6057 if test "${ac_cv_path_SED+set}" = set; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6061      for ac_i in 1 2 3 4 5 6 7; do
6062        ac_script="$ac_script$as_nl$ac_script"
6063      done
6064      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6065      { ac_script=; unset ac_script;}
6066      if test -z "$SED"; then
6067   ac_path_SED_found=false
6068   # Loop through the user's path and test for each of PROGNAME-LIST
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_prog in sed gsed; do
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6077       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6078 # Check for GNU ac_path_SED and select it if it is found.
6079   # Check for GNU $ac_path_SED
6080 case `"$ac_path_SED" --version 2>&1` in
6081 *GNU*)
6082   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6083 *)
6084   ac_count=0
6085   $as_echo_n 0123456789 >"conftest.in"
6086   while :
6087   do
6088     cat "conftest.in" "conftest.in" >"conftest.tmp"
6089     mv "conftest.tmp" "conftest.in"
6090     cp "conftest.in" "conftest.nl"
6091     $as_echo '' >> "conftest.nl"
6092     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6094     as_fn_arith $ac_count + 1 && ac_count=$as_val
6095     if test $ac_count -gt ${ac_path_SED_max-0}; then
6096       # Best one so far, save it but keep looking for a better one
6097       ac_cv_path_SED="$ac_path_SED"
6098       ac_path_SED_max=$ac_count
6099     fi
6100     # 10*(2^10) chars as input seems more than enough
6101     test $ac_count -gt 10 && break
6102   done
6103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6104 esac
6105
6106       $ac_path_SED_found && break 3
6107     done
6108   done
6109   done
6110 IFS=$as_save_IFS
6111   if test -z "$ac_cv_path_SED"; then
6112     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6113   fi
6114 else
6115   ac_cv_path_SED=$SED
6116 fi
6117
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6120 $as_echo "$ac_cv_path_SED" >&6; }
6121  SED="$ac_cv_path_SED"
6122   rm -f conftest.sed
6123
6124 test -z "$SED" && SED=sed
6125 Xsed="$SED -e 1s/^X//"
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6138 $as_echo_n "checking for fgrep... " >&6; }
6139 if test "${ac_cv_path_FGREP+set}" = set; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6143    then ac_cv_path_FGREP="$GREP -F"
6144    else
6145      if test -z "$FGREP"; then
6146   ac_path_FGREP_found=false
6147   # Loop through the user's path and test for each of PROGNAME-LIST
6148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_prog in fgrep; do
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6156       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6157 # Check for GNU ac_path_FGREP and select it if it is found.
6158   # Check for GNU $ac_path_FGREP
6159 case `"$ac_path_FGREP" --version 2>&1` in
6160 *GNU*)
6161   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6162 *)
6163   ac_count=0
6164   $as_echo_n 0123456789 >"conftest.in"
6165   while :
6166   do
6167     cat "conftest.in" "conftest.in" >"conftest.tmp"
6168     mv "conftest.tmp" "conftest.in"
6169     cp "conftest.in" "conftest.nl"
6170     $as_echo 'FGREP' >> "conftest.nl"
6171     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6172     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6173     as_fn_arith $ac_count + 1 && ac_count=$as_val
6174     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6175       # Best one so far, save it but keep looking for a better one
6176       ac_cv_path_FGREP="$ac_path_FGREP"
6177       ac_path_FGREP_max=$ac_count
6178     fi
6179     # 10*(2^10) chars as input seems more than enough
6180     test $ac_count -gt 10 && break
6181   done
6182   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6183 esac
6184
6185       $ac_path_FGREP_found && break 3
6186     done
6187   done
6188   done
6189 IFS=$as_save_IFS
6190   if test -z "$ac_cv_path_FGREP"; then
6191     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6192   fi
6193 else
6194   ac_cv_path_FGREP=$FGREP
6195 fi
6196
6197    fi
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6200 $as_echo "$ac_cv_path_FGREP" >&6; }
6201  FGREP="$ac_cv_path_FGREP"
6202
6203
6204 test -z "$GREP" && GREP=grep
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 # Check whether --with-gnu-ld was given.
6225 if test "${with_gnu_ld+set}" = set; then :
6226   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6227 else
6228   with_gnu_ld=no
6229 fi
6230
6231 ac_prog=ld
6232 if test "$GCC" = yes; then
6233   # Check if gcc -print-prog-name=ld gives a path.
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6235 $as_echo_n "checking for ld used by $CC... " >&6; }
6236   case $host in
6237   *-*-mingw*)
6238     # gcc leaves a trailing carriage return which upsets mingw
6239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6240   *)
6241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6242   esac
6243   case $ac_prog in
6244     # Accept absolute paths.
6245     [\\/]* | ?:[\\/]*)
6246       re_direlt='/[^/][^/]*/\.\./'
6247       # Canonicalize the pathname of ld
6248       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6249       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6250         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6251       done
6252       test -z "$LD" && LD="$ac_prog"
6253       ;;
6254   "")
6255     # If it fails, then pretend we aren't using GCC.
6256     ac_prog=ld
6257     ;;
6258   *)
6259     # If it is relative, then search for the first ld in PATH.
6260     with_gnu_ld=unknown
6261     ;;
6262   esac
6263 elif test "$with_gnu_ld" = yes; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6265 $as_echo_n "checking for GNU ld... " >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6268 $as_echo_n "checking for non-GNU ld... " >&6; }
6269 fi
6270 if test "${lt_cv_path_LD+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   if test -z "$LD"; then
6274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6275   for ac_dir in $PATH; do
6276     IFS="$lt_save_ifs"
6277     test -z "$ac_dir" && ac_dir=.
6278     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6279       lt_cv_path_LD="$ac_dir/$ac_prog"
6280       # Check to see if the program is GNU ld.  I'd rather use --version,
6281       # but apparently some variants of GNU ld only accept -v.
6282       # Break only if it was the GNU/non-GNU ld that we prefer.
6283       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6284       *GNU* | *'with BFD'*)
6285         test "$with_gnu_ld" != no && break
6286         ;;
6287       *)
6288         test "$with_gnu_ld" != yes && break
6289         ;;
6290       esac
6291     fi
6292   done
6293   IFS="$lt_save_ifs"
6294 else
6295   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6296 fi
6297 fi
6298
6299 LD="$lt_cv_path_LD"
6300 if test -n "$LD"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6302 $as_echo "$LD" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6309 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6310 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6314 case `$LD -v 2>&1 </dev/null` in
6315 *GNU* | *'with BFD'*)
6316   lt_cv_prog_gnu_ld=yes
6317   ;;
6318 *)
6319   lt_cv_prog_gnu_ld=no
6320   ;;
6321 esac
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6324 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6325 with_gnu_ld=$lt_cv_prog_gnu_ld
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6336 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6337 if test "${lt_cv_path_NM+set}" = set; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$NM"; then
6341   # Let the user override the test.
6342   lt_cv_path_NM="$NM"
6343 else
6344   lt_nm_to_check="${ac_tool_prefix}nm"
6345   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6346     lt_nm_to_check="$lt_nm_to_check nm"
6347   fi
6348   for lt_tmp_nm in $lt_nm_to_check; do
6349     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6350     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6351       IFS="$lt_save_ifs"
6352       test -z "$ac_dir" && ac_dir=.
6353       tmp_nm="$ac_dir/$lt_tmp_nm"
6354       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6355         # Check to see if the nm accepts a BSD-compat flag.
6356         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6357         #   nm: unknown option "B" ignored
6358         # Tru64's nm complains that /dev/null is an invalid object file
6359         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6360         */dev/null* | *'Invalid file or object type'*)
6361           lt_cv_path_NM="$tmp_nm -B"
6362           break
6363           ;;
6364         *)
6365           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6366           */dev/null*)
6367             lt_cv_path_NM="$tmp_nm -p"
6368             break
6369             ;;
6370           *)
6371             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372             continue # so that we can try to find one that supports BSD flags
6373             ;;
6374           esac
6375           ;;
6376         esac
6377       fi
6378     done
6379     IFS="$lt_save_ifs"
6380   done
6381   : ${lt_cv_path_NM=no}
6382 fi
6383 fi
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6385 $as_echo "$lt_cv_path_NM" >&6; }
6386 if test "$lt_cv_path_NM" != "no"; then
6387   NM="$lt_cv_path_NM"
6388 else
6389   # Didn't find any BSD compatible name lister, look for dumpbin.
6390   if test -n "$DUMPBIN"; then :
6391     # Let the user override the test.
6392   else
6393     if test -n "$ac_tool_prefix"; then
6394   for ac_prog in dumpbin "link -dump"
6395   do
6396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$DUMPBIN"; then
6404   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 DUMPBIN=$ac_cv_prog_DUMPBIN
6424 if test -n "$DUMPBIN"; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6426 $as_echo "$DUMPBIN" >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433     test -n "$DUMPBIN" && break
6434   done
6435 fi
6436 if test -z "$DUMPBIN"; then
6437   ac_ct_DUMPBIN=$DUMPBIN
6438   for ac_prog in dumpbin "link -dump"
6439 do
6440   # Extract the first word of "$ac_prog", so it can be a program name with args.
6441 set dummy $ac_prog; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DUMPBIN"; then
6448   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6468 if test -n "$ac_ct_DUMPBIN"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6470 $as_echo "$ac_ct_DUMPBIN" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477   test -n "$ac_ct_DUMPBIN" && break
6478 done
6479
6480   if test "x$ac_ct_DUMPBIN" = x; then
6481     DUMPBIN=":"
6482   else
6483     case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489     DUMPBIN=$ac_ct_DUMPBIN
6490   fi
6491 fi
6492
6493     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6494     *COFF*)
6495       DUMPBIN="$DUMPBIN -symbols"
6496       ;;
6497     *)
6498       DUMPBIN=:
6499       ;;
6500     esac
6501   fi
6502
6503   if test "$DUMPBIN" != ":"; then
6504     NM="$DUMPBIN"
6505   fi
6506 fi
6507 test -z "$NM" && NM=nm
6508
6509
6510
6511
6512
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6515 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6516 if test "${lt_cv_nm_interface+set}" = set; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   lt_cv_nm_interface="BSD nm"
6520   echo "int some_variable = 0;" > conftest.$ac_ext
6521   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6522   (eval "$ac_compile" 2>conftest.err)
6523   cat conftest.err >&5
6524   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6525   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6526   cat conftest.err >&5
6527   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6528   cat conftest.out >&5
6529   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6530     lt_cv_nm_interface="MS dumpbin"
6531   fi
6532   rm -f conftest*
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6535 $as_echo "$lt_cv_nm_interface" >&6; }
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6538 $as_echo_n "checking whether ln -s works... " >&6; }
6539 LN_S=$as_ln_s
6540 if test "$LN_S" = "ln -s"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6545 $as_echo "no, using $LN_S" >&6; }
6546 fi
6547
6548 # find the maximum length of command line arguments
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554     i=0
6555   teststring="ABCD"
6556
6557   case $build_os in
6558   msdosdjgpp*)
6559     # On DJGPP, this test can blow up pretty badly due to problems in libc
6560     # (any single argument exceeding 2000 bytes causes a buffer overrun
6561     # during glob expansion).  Even if it were fixed, the result of this
6562     # check would be larger than it should be.
6563     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6564     ;;
6565
6566   gnu*)
6567     # Under GNU Hurd, this test is not required because there is
6568     # no limit to the length of command line arguments.
6569     # Libtool will interpret -1 as no limit whatsoever
6570     lt_cv_sys_max_cmd_len=-1;
6571     ;;
6572
6573   cygwin* | mingw* | cegcc*)
6574     # On Win9x/ME, this test blows up -- it succeeds, but takes
6575     # about 5 minutes as the teststring grows exponentially.
6576     # Worse, since 9x/ME are not pre-emptively multitasking,
6577     # you end up with a "frozen" computer, even though with patience
6578     # the test eventually succeeds (with a max line length of 256k).
6579     # Instead, let's just punt: use the minimum linelength reported by
6580     # all of the supported platforms: 8192 (on NT/2K/XP).
6581     lt_cv_sys_max_cmd_len=8192;
6582     ;;
6583
6584   mint*)
6585     # On MiNT this can take a long time and run out of memory.
6586     lt_cv_sys_max_cmd_len=8192;
6587     ;;
6588
6589   amigaos*)
6590     # On AmigaOS with pdksh, this test takes hours, literally.
6591     # So we just punt and use a minimum line length of 8192.
6592     lt_cv_sys_max_cmd_len=8192;
6593     ;;
6594
6595   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6596     # This has been around since 386BSD, at least.  Likely further.
6597     if test -x /sbin/sysctl; then
6598       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6599     elif test -x /usr/sbin/sysctl; then
6600       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6601     else
6602       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6603     fi
6604     # And add a safety zone
6605     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6606     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607     ;;
6608
6609   interix*)
6610     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6611     lt_cv_sys_max_cmd_len=196608
6612     ;;
6613
6614   osf*)
6615     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6616     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6617     # nice to cause kernel panics so lets avoid the loop below.
6618     # First set a reasonable default.
6619     lt_cv_sys_max_cmd_len=16384
6620     #
6621     if test -x /sbin/sysconfig; then
6622       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6623         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6624       esac
6625     fi
6626     ;;
6627   sco3.2v5*)
6628     lt_cv_sys_max_cmd_len=102400
6629     ;;
6630   sysv5* | sco5v6* | sysv4.2uw2*)
6631     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6632     if test -n "$kargmax"; then
6633       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6634     else
6635       lt_cv_sys_max_cmd_len=32768
6636     fi
6637     ;;
6638   *)
6639     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6640     if test -n "$lt_cv_sys_max_cmd_len"; then
6641       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6643     else
6644       # Make teststring a little bigger before we do anything with it.
6645       # a 1K string should be a reasonable start.
6646       for i in 1 2 3 4 5 6 7 8 ; do
6647         teststring=$teststring$teststring
6648       done
6649       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6650       # If test is not a shell built-in, we'll probably end up computing a
6651       # maximum length that is only half of the actual maximum length, but
6652       # we can't tell.
6653       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6654                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6655               test $i != 17 # 1/2 MB should be enough
6656       do
6657         i=`expr $i + 1`
6658         teststring=$teststring$teststring
6659       done
6660       # Only check the string length outside the loop.
6661       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6662       teststring=
6663       # Add a significant safety factor because C++ compilers can tack on
6664       # massive amounts of additional arguments before passing them to the
6665       # linker.  It appears as though 1/2 is a usable value.
6666       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6667     fi
6668     ;;
6669   esac
6670
6671 fi
6672
6673 if test -n $lt_cv_sys_max_cmd_len ; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6678 $as_echo "none" >&6; }
6679 fi
6680 max_cmd_len=$lt_cv_sys_max_cmd_len
6681
6682
6683
6684
6685
6686
6687 : ${CP="cp -f"}
6688 : ${MV="mv -f"}
6689 : ${RM="rm -f"}
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6693 # Try some XSI features
6694 xsi_shell=no
6695 ( _lt_dummy="a/b/c"
6696   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6697       = c,a/b,b/c, \
6698     && eval 'test $(( 1 + 1 )) -eq 2 \
6699     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6700   && xsi_shell=yes
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6702 $as_echo "$xsi_shell" >&6; }
6703
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6707 lt_shell_append=no
6708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6709     >/dev/null 2>&1 \
6710   && lt_shell_append=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6712 $as_echo "$lt_shell_append" >&6; }
6713
6714
6715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6716   lt_unset=unset
6717 else
6718   lt_unset=false
6719 fi
6720
6721
6722
6723
6724
6725 # test EBCDIC or ASCII
6726 case `echo X|tr X '\101'` in
6727  A) # ASCII based system
6728     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6729   lt_SP2NL='tr \040 \012'
6730   lt_NL2SP='tr \015\012 \040\040'
6731   ;;
6732  *) # EBCDIC based system
6733   lt_SP2NL='tr \100 \n'
6734   lt_NL2SP='tr \r\n \100\100'
6735   ;;
6736 esac
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6747 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6748 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case $host in
6752   *-*-mingw* )
6753     case $build in
6754       *-*-mingw* ) # actually msys
6755         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6756         ;;
6757       *-*-cygwin* )
6758         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6759         ;;
6760       * ) # otherwise, assume *nix
6761         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6762         ;;
6763     esac
6764     ;;
6765   *-*-cygwin* )
6766     case $build in
6767       *-*-mingw* ) # actually msys
6768         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6769         ;;
6770       *-*-cygwin* )
6771         lt_cv_to_host_file_cmd=func_convert_file_noop
6772         ;;
6773       * ) # otherwise, assume *nix
6774         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6775         ;;
6776     esac
6777     ;;
6778   * ) # unhandled hosts (and "normal" native builds)
6779     lt_cv_to_host_file_cmd=func_convert_file_noop
6780     ;;
6781 esac
6782
6783 fi
6784
6785 to_host_file_cmd=$lt_cv_to_host_file_cmd
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6787 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6788
6789
6790
6791
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6794 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6795 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   #assume ordinary cross tools, or native build.
6799 lt_cv_to_tool_file_cmd=func_convert_file_noop
6800 case $host in
6801   *-*-mingw* )
6802     case $build in
6803       *-*-mingw* ) # actually msys
6804         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6805         ;;
6806     esac
6807     ;;
6808 esac
6809
6810 fi
6811
6812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6814 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6815
6816
6817
6818
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6822 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   lt_cv_ld_reload_flag='-r'
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6829 reload_flag=$lt_cv_ld_reload_flag
6830 case $reload_flag in
6831 "" | " "*) ;;
6832 *) reload_flag=" $reload_flag" ;;
6833 esac
6834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6835 case $host_os in
6836   cygwin* | mingw* | pw32* | cegcc*)
6837     if test "$GCC" != yes; then
6838       reload_cmds=false
6839     fi
6840     ;;
6841   darwin*)
6842     if test "$GCC" = yes; then
6843       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6844     else
6845       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6846     fi
6847     ;;
6848 esac
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$OBJDUMP"; then
6867   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 OBJDUMP=$ac_cv_prog_OBJDUMP
6887 if test -n "$OBJDUMP"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6889 $as_echo "$OBJDUMP" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_OBJDUMP"; then
6898   ac_ct_OBJDUMP=$OBJDUMP
6899   # Extract the first word of "objdump", so it can be a program name with args.
6900 set dummy objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$ac_ct_OBJDUMP"; then
6907   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6927 if test -n "$ac_ct_OBJDUMP"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6929 $as_echo "$ac_ct_OBJDUMP" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_OBJDUMP" = x; then
6936     OBJDUMP="false"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     OBJDUMP=$ac_ct_OBJDUMP
6945   fi
6946 else
6947   OBJDUMP="$ac_cv_prog_OBJDUMP"
6948 fi
6949
6950 test -z "$OBJDUMP" && OBJDUMP=objdump
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6961 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6962 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   lt_cv_file_magic_cmd='$MAGIC_CMD'
6966 lt_cv_file_magic_test_file=
6967 lt_cv_deplibs_check_method='unknown'
6968 # Need to set the preceding variable on all platforms that support
6969 # interlibrary dependencies.
6970 # 'none' -- dependencies not supported.
6971 # `unknown' -- same as none, but documents that we really don't know.
6972 # 'pass_all' -- all dependencies passed with no checks.
6973 # 'test_compile' -- check by making test program.
6974 # 'file_magic [[regex]]' -- check by looking for files in library path
6975 # which responds to the $file_magic_cmd with a given extended regex.
6976 # If you have `file' or equivalent on your system and you're not sure
6977 # whether `pass_all' will *always* work, you probably want this one.
6978
6979 case $host_os in
6980 aix[4-9]*)
6981   lt_cv_deplibs_check_method=pass_all
6982   ;;
6983
6984 beos*)
6985   lt_cv_deplibs_check_method=pass_all
6986   ;;
6987
6988 bsdi[45]*)
6989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6990   lt_cv_file_magic_cmd='/usr/bin/file -L'
6991   lt_cv_file_magic_test_file=/shlib/libc.so
6992   ;;
6993
6994 cygwin*)
6995   # func_win32_libid is a shell function defined in ltmain.sh
6996   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6997   lt_cv_file_magic_cmd='func_win32_libid'
6998   ;;
6999
7000 mingw* | pw32*)
7001   # Base MSYS/MinGW do not provide the 'file' command needed by
7002   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7003   # unless we find 'file', for example because we are cross-compiling.
7004   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7005   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7006     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007     lt_cv_file_magic_cmd='func_win32_libid'
7008   else
7009     # Keep this pattern in sync with the one in func_win32_libid.
7010     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7011     lt_cv_file_magic_cmd='$OBJDUMP -f'
7012   fi
7013   ;;
7014
7015 cegcc*)
7016   # use the weaker test based on 'objdump'. See mingw*.
7017   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7018   lt_cv_file_magic_cmd='$OBJDUMP -f'
7019   ;;
7020
7021 darwin* | rhapsody*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 freebsd* | dragonfly*)
7026   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7027     case $host_cpu in
7028     i*86 )
7029       # Not sure whether the presence of OpenBSD here was a mistake.
7030       # Let's accept both of them until this is cleared up.
7031       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7032       lt_cv_file_magic_cmd=/usr/bin/file
7033       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7034       ;;
7035     esac
7036   else
7037     lt_cv_deplibs_check_method=pass_all
7038   fi
7039   ;;
7040
7041 gnu*)
7042   lt_cv_deplibs_check_method=pass_all
7043   ;;
7044
7045 haiku*)
7046   lt_cv_deplibs_check_method=pass_all
7047   ;;
7048
7049 hpux10.20* | hpux11*)
7050   lt_cv_file_magic_cmd=/usr/bin/file
7051   case $host_cpu in
7052   ia64*)
7053     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7054     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7055     ;;
7056   hppa*64*)
7057     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]'
7058     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7059     ;;
7060   *)
7061     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7062     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7063     ;;
7064   esac
7065   ;;
7066
7067 interix[3-9]*)
7068   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7069   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7070   ;;
7071
7072 irix5* | irix6* | nonstopux*)
7073   case $LD in
7074   *-32|*"-32 ") libmagic=32-bit;;
7075   *-n32|*"-n32 ") libmagic=N32;;
7076   *-64|*"-64 ") libmagic=64-bit;;
7077   *) libmagic=never-match;;
7078   esac
7079   lt_cv_deplibs_check_method=pass_all
7080   ;;
7081
7082 # This must be Linux ELF.
7083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 netbsd*)
7088   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7090   else
7091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7092   fi
7093   ;;
7094
7095 newos6*)
7096   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7097   lt_cv_file_magic_cmd=/usr/bin/file
7098   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7099   ;;
7100
7101 *nto* | *qnx*)
7102   lt_cv_deplibs_check_method=pass_all
7103   ;;
7104
7105 openbsd*)
7106   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7108   else
7109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7110   fi
7111   ;;
7112
7113 osf3* | osf4* | osf5*)
7114   lt_cv_deplibs_check_method=pass_all
7115   ;;
7116
7117 rdos*)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 solaris*)
7122   lt_cv_deplibs_check_method=pass_all
7123   ;;
7124
7125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 sysv4 | sysv4.3*)
7130   case $host_vendor in
7131   motorola)
7132     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]'
7133     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7134     ;;
7135   ncr)
7136     lt_cv_deplibs_check_method=pass_all
7137     ;;
7138   sequent)
7139     lt_cv_file_magic_cmd='/bin/file'
7140     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7141     ;;
7142   sni)
7143     lt_cv_file_magic_cmd='/bin/file'
7144     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7145     lt_cv_file_magic_test_file=/lib/libc.so
7146     ;;
7147   siemens)
7148     lt_cv_deplibs_check_method=pass_all
7149     ;;
7150   pc)
7151     lt_cv_deplibs_check_method=pass_all
7152     ;;
7153   esac
7154   ;;
7155
7156 tpf*)
7157   lt_cv_deplibs_check_method=pass_all
7158   ;;
7159 esac
7160
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7163 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7164
7165 file_magic_glob=
7166 want_nocaseglob=no
7167 if test "$build" = "$host"; then
7168   case $host_os in
7169   mingw* | pw32*)
7170     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7171       want_nocaseglob=yes
7172     else
7173       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7174     fi
7175     ;;
7176   esac
7177 fi
7178
7179 file_magic_cmd=$lt_cv_file_magic_cmd
7180 deplibs_check_method=$lt_cv_deplibs_check_method
7181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 if test -n "$ac_tool_prefix"; then
7205   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   if test -n "$DLLTOOL"; then
7213   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220     for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227   done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 DLLTOOL=$ac_cv_prog_DLLTOOL
7233 if test -n "$DLLTOOL"; then
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7235 $as_echo "$DLLTOOL" >&6; }
7236 else
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_DLLTOOL"; then
7244   ac_ct_DLLTOOL=$DLLTOOL
7245   # Extract the first word of "dlltool", so it can be a program name with args.
7246 set dummy dlltool; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$ac_ct_DLLTOOL"; then
7253   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7273 if test -n "$ac_ct_DLLTOOL"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7275 $as_echo "$ac_ct_DLLTOOL" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281   if test "x$ac_ct_DLLTOOL" = x; then
7282     DLLTOOL="false"
7283   else
7284     case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290     DLLTOOL=$ac_ct_DLLTOOL
7291   fi
7292 else
7293   DLLTOOL="$ac_cv_prog_DLLTOOL"
7294 fi
7295
7296 test -z "$DLLTOOL" && DLLTOOL=dlltool
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7308 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7309 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   lt_cv_sharedlib_from_linklib_cmd='unknown'
7313
7314 case $host_os in
7315 cygwin* | mingw* | pw32* | cegcc*)
7316   # two different shell functions defined in ltmain.sh
7317   # decide which to use based on capabilities of $DLLTOOL
7318   case `$DLLTOOL --help 2>&1` in
7319   *--identify-strict*)
7320     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7321     ;;
7322   *)
7323     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7324     ;;
7325   esac
7326   ;;
7327 *)
7328   # fallback: assume linklib IS sharedlib
7329   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7330   ;;
7331 esac
7332
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7335 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7336 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7337 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7338
7339
7340
7341
7342
7343
7344
7345 if test -n "$ac_tool_prefix"; then
7346   for ac_prog in ar
7347   do
7348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_AR+set}" = set; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$AR"; then
7356   ac_cv_prog_AR="$AR" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363     for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370   done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 AR=$ac_cv_prog_AR
7376 if test -n "$AR"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7378 $as_echo "$AR" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385     test -n "$AR" && break
7386   done
7387 fi
7388 if test -z "$AR"; then
7389   ac_ct_AR=$AR
7390   for ac_prog in ar
7391 do
7392   # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_AR"; then
7400   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_AR="$ac_prog"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7420 if test -n "$ac_ct_AR"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7422 $as_echo "$ac_ct_AR" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428
7429   test -n "$ac_ct_AR" && break
7430 done
7431
7432   if test "x$ac_ct_AR" = x; then
7433     AR="false"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     AR=$ac_ct_AR
7442   fi
7443 fi
7444
7445 : ${AR=ar}
7446 : ${AR_FLAGS=cru}
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7459 $as_echo_n "checking for archiver @FILE support... " >&6; }
7460 if test "${lt_cv_ar_at_file+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   lt_cv_ar_at_file=no
7464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466
7467 int
7468 main ()
7469 {
7470
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476   echo conftest.$ac_objext > conftest.lst
7477       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7478       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7479   (eval $lt_ar_try) 2>&5
7480   ac_status=$?
7481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482   test $ac_status = 0; }
7483       if test "$ac_status" -eq 0; then
7484         # Ensure the archiver fails upon bogus file names.
7485         rm -f conftest.$ac_objext libconftest.a
7486         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7487   (eval $lt_ar_try) 2>&5
7488   ac_status=$?
7489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490   test $ac_status = 0; }
7491         if test "$ac_status" -ne 0; then
7492           lt_cv_ar_at_file=@
7493         fi
7494       fi
7495       rm -f conftest.* libconftest.a
7496
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7502 $as_echo "$lt_cv_ar_at_file" >&6; }
7503
7504 if test "x$lt_cv_ar_at_file" = xno; then
7505   archiver_list_spec=
7506 else
7507   archiver_list_spec=$lt_cv_ar_at_file
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516 if test -n "$ac_tool_prefix"; then
7517   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}strip; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_STRIP+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$STRIP"; then
7525   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 STRIP=$ac_cv_prog_STRIP
7545 if test -n "$STRIP"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7547 $as_echo "$STRIP" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_STRIP"; then
7556   ac_ct_STRIP=$STRIP
7557   # Extract the first word of "strip", so it can be a program name with args.
7558 set dummy strip; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$ac_ct_STRIP"; then
7565   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572     for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_prog_ac_ct_STRIP="strip"
7575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579   done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7585 if test -n "$ac_ct_STRIP"; then
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7587 $as_echo "$ac_ct_STRIP" >&6; }
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593   if test "x$ac_ct_STRIP" = x; then
7594     STRIP=":"
7595   else
7596     case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     STRIP=$ac_ct_STRIP
7603   fi
7604 else
7605   STRIP="$ac_cv_prog_STRIP"
7606 fi
7607
7608 test -z "$STRIP" && STRIP=:
7609
7610
7611
7612
7613
7614
7615 if test -n "$ac_tool_prefix"; then
7616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$RANLIB"; then
7624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 RANLIB=$ac_cv_prog_RANLIB
7644 if test -n "$RANLIB"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7646 $as_echo "$RANLIB" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 fi
7654 if test -z "$ac_cv_prog_RANLIB"; then
7655   ac_ct_RANLIB=$RANLIB
7656   # Extract the first word of "ranlib", so it can be a program name with args.
7657 set dummy ranlib; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$ac_ct_RANLIB"; then
7664   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671     for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_prog_ac_ct_RANLIB="ranlib"
7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678   done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7684 if test -n "$ac_ct_RANLIB"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7686 $as_echo "$ac_ct_RANLIB" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692   if test "x$ac_ct_RANLIB" = x; then
7693     RANLIB=":"
7694   else
7695     case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701     RANLIB=$ac_ct_RANLIB
7702   fi
7703 else
7704   RANLIB="$ac_cv_prog_RANLIB"
7705 fi
7706
7707 test -z "$RANLIB" && RANLIB=:
7708
7709
7710
7711
7712
7713
7714 # Determine commands to create old-style static archives.
7715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7716 old_postinstall_cmds='chmod 644 $oldlib'
7717 old_postuninstall_cmds=
7718
7719 if test -n "$RANLIB"; then
7720   case $host_os in
7721   openbsd*)
7722     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7723     ;;
7724   *)
7725     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7726     ;;
7727   esac
7728   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7729 fi
7730
7731 case $host_os in
7732   darwin*)
7733     lock_old_archive_extraction=yes ;;
7734   *)
7735     lock_old_archive_extraction=no ;;
7736 esac
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
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 # If no C compiler was specified, use CC.
7777 LTCC=${LTCC-"$CC"}
7778
7779 # If no C compiler flags were specified, use CFLAGS.
7780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7781
7782 # Allow CC to be a program name with arguments.
7783 compiler=$CC
7784
7785
7786 # Check for command to grab the raw symbol name followed by C symbol from nm.
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7788 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792
7793 # These are sane defaults that work on at least a few old systems.
7794 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7795
7796 # Character class describing NM global symbol codes.
7797 symcode='[BCDEGRST]'
7798
7799 # Regexp to match symbols that can be accessed directly from C.
7800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7801
7802 # Define system-specific variables.
7803 case $host_os in
7804 aix*)
7805   symcode='[BCDT]'
7806   ;;
7807 cygwin* | mingw* | pw32* | cegcc*)
7808   symcode='[ABCDGISTW]'
7809   ;;
7810 hpux*)
7811   if test "$host_cpu" = ia64; then
7812     symcode='[ABCDEGRST]'
7813   fi
7814   ;;
7815 irix* | nonstopux*)
7816   symcode='[BCDEGRST]'
7817   ;;
7818 osf*)
7819   symcode='[BCDEGQRST]'
7820   ;;
7821 solaris*)
7822   symcode='[BDRT]'
7823   ;;
7824 sco3.2v5*)
7825   symcode='[DT]'
7826   ;;
7827 sysv4.2uw2*)
7828   symcode='[DT]'
7829   ;;
7830 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7831   symcode='[ABDT]'
7832   ;;
7833 sysv4)
7834   symcode='[DFNSTU]'
7835   ;;
7836 esac
7837
7838 # If we're using GNU nm, then use its standard symbol codes.
7839 case `$NM -V 2>&1` in
7840 *GNU* | *'with BFD'*)
7841   symcode='[ABCDGIRSTW]' ;;
7842 esac
7843
7844 # Transform an extracted symbol line into a proper C declaration.
7845 # Some systems (esp. on ia64) link data and code symbols differently,
7846 # so use this general approach.
7847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7848
7849 # Transform an extracted symbol line into symbol name and symbol address
7850 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7851 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'"
7852
7853 # Handle CRLF in mingw tool chain
7854 opt_cr=
7855 case $build_os in
7856 mingw*)
7857   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7858   ;;
7859 esac
7860
7861 # Try without a prefix underscore, then with it.
7862 for ac_symprfx in "" "_"; do
7863
7864   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7865   symxfrm="\\1 $ac_symprfx\\2 \\2"
7866
7867   # Write the raw and C identifiers.
7868   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7869     # Fake it for dumpbin and say T for any non-static function
7870     # and D for any global variable.
7871     # Also find C++ and __fastcall symbols from MSVC++,
7872     # which start with @ or ?.
7873     lt_cv_sys_global_symbol_pipe="$AWK '"\
7874 "     {last_section=section; section=\$ 3};"\
7875 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7876 "     \$ 0!~/External *\|/{next};"\
7877 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7878 "     {if(hide[section]) next};"\
7879 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7880 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7881 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7882 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7883 "     ' prfx=^$ac_symprfx"
7884   else
7885     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7886   fi
7887   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7888
7889   # Check to see that the pipe works correctly.
7890   pipe_works=no
7891
7892   rm -f conftest*
7893   cat > conftest.$ac_ext <<_LT_EOF
7894 #ifdef __cplusplus
7895 extern "C" {
7896 #endif
7897 char nm_test_var;
7898 void nm_test_func(void);
7899 void nm_test_func(void){}
7900 #ifdef __cplusplus
7901 }
7902 #endif
7903 int main(){nm_test_var='a';nm_test_func();return(0);}
7904 _LT_EOF
7905
7906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910   test $ac_status = 0; }; then
7911     # Now try to grab the symbols.
7912     nlist=conftest.nm
7913     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7914   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7915   ac_status=$?
7916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7917   test $ac_status = 0; } && test -s "$nlist"; then
7918       # Try sorting and uniquifying the output.
7919       if sort "$nlist" | uniq > "$nlist"T; then
7920         mv -f "$nlist"T "$nlist"
7921       else
7922         rm -f "$nlist"T
7923       fi
7924
7925       # Make sure that we snagged all the symbols we need.
7926       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7927         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7928           cat <<_LT_EOF > conftest.$ac_ext
7929 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7930 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7931 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7932    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7933 # define LT_DLSYM_CONST
7934 #elif defined(__osf__)
7935 /* This system does not cope well with relocations in const data.  */
7936 # define LT_DLSYM_CONST
7937 #else
7938 # define LT_DLSYM_CONST const
7939 #endif
7940
7941 #ifdef __cplusplus
7942 extern "C" {
7943 #endif
7944
7945 _LT_EOF
7946           # Now generate the symbol file.
7947           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7948
7949           cat <<_LT_EOF >> conftest.$ac_ext
7950
7951 /* The mapping between symbol names and symbols.  */
7952 LT_DLSYM_CONST struct {
7953   const char *name;
7954   void       *address;
7955 }
7956 lt__PROGRAM__LTX_preloaded_symbols[] =
7957 {
7958   { "@PROGRAM@", (void *) 0 },
7959 _LT_EOF
7960           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7961           cat <<\_LT_EOF >> conftest.$ac_ext
7962   {0, (void *) 0}
7963 };
7964
7965 /* This works around a problem in FreeBSD linker */
7966 #ifdef FREEBSD_WORKAROUND
7967 static const void *lt_preloaded_setup() {
7968   return lt__PROGRAM__LTX_preloaded_symbols;
7969 }
7970 #endif
7971
7972 #ifdef __cplusplus
7973 }
7974 #endif
7975 _LT_EOF
7976           # Now try linking the two files.
7977           mv conftest.$ac_objext conftstm.$ac_objext
7978           lt_globsym_save_LIBS=$LIBS
7979           lt_globsym_save_CFLAGS=$CFLAGS
7980           LIBS="conftstm.$ac_objext"
7981           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7982           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7983   (eval $ac_link) 2>&5
7984   ac_status=$?
7985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7987             pipe_works=yes
7988           fi
7989           LIBS=$lt_globsym_save_LIBS
7990           CFLAGS=$lt_globsym_save_CFLAGS
7991         else
7992           echo "cannot find nm_test_func in $nlist" >&5
7993         fi
7994       else
7995         echo "cannot find nm_test_var in $nlist" >&5
7996       fi
7997     else
7998       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7999     fi
8000   else
8001     echo "$progname: failed program was:" >&5
8002     cat conftest.$ac_ext >&5
8003   fi
8004   rm -rf conftest* conftst*
8005
8006   # Do not use the global_symbol_pipe unless it works.
8007   if test "$pipe_works" = yes; then
8008     break
8009   else
8010     lt_cv_sys_global_symbol_pipe=
8011   fi
8012 done
8013
8014 fi
8015
8016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8017   lt_cv_sys_global_symbol_to_cdecl=
8018 fi
8019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8021 $as_echo "failed" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8024 $as_echo "ok" >&6; }
8025 fi
8026
8027 # Response file support.
8028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8029   nm_file_list_spec='@'
8030 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8031   nm_file_list_spec='@'
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8061 $as_echo_n "checking for sysroot... " >&6; }
8062
8063 # Check whether --with-sysroot was given.
8064 if test "${with_sysroot+set}" = set; then :
8065   withval=$with_sysroot;
8066 else
8067   with_sysroot=no
8068 fi
8069
8070
8071 lt_sysroot=
8072 case ${with_sysroot} in #(
8073  yes)
8074    if test "$GCC" = yes; then
8075      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8076    fi
8077    ;; #(
8078  /*)
8079    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8080    ;; #(
8081  no|'')
8082    ;; #(
8083  *)
8084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8085 $as_echo "${with_sysroot}" >&6; }
8086    as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
8087    ;;
8088 esac
8089
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8091 $as_echo "${lt_sysroot:-no}" >&6; }
8092
8093
8094
8095
8096
8097 # Check whether --enable-libtool-lock was given.
8098 if test "${enable_libtool_lock+set}" = set; then :
8099   enableval=$enable_libtool_lock;
8100 fi
8101
8102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8103
8104 # Some flags need to be propagated to the compiler or linker for good
8105 # libtool support.
8106 case $host in
8107 ia64-*-hpux*)
8108   # Find out which ABI we are using.
8109   echo 'int i;' > conftest.$ac_ext
8110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111   (eval $ac_compile) 2>&5
8112   ac_status=$?
8113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114   test $ac_status = 0; }; then
8115     case `/usr/bin/file conftest.$ac_objext` in
8116       *ELF-32*)
8117         HPUX_IA64_MODE="32"
8118         ;;
8119       *ELF-64*)
8120         HPUX_IA64_MODE="64"
8121         ;;
8122     esac
8123   fi
8124   rm -rf conftest*
8125   ;;
8126 *-*-irix6*)
8127   # Find out which ABI we are using.
8128   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133   test $ac_status = 0; }; then
8134     if test "$lt_cv_prog_gnu_ld" = yes; then
8135       case `/usr/bin/file conftest.$ac_objext` in
8136         *32-bit*)
8137           LD="${LD-ld} -melf32bsmip"
8138           ;;
8139         *N32*)
8140           LD="${LD-ld} -melf32bmipn32"
8141           ;;
8142         *64-bit*)
8143           LD="${LD-ld} -melf64bmip"
8144         ;;
8145       esac
8146     else
8147       case `/usr/bin/file conftest.$ac_objext` in
8148         *32-bit*)
8149           LD="${LD-ld} -32"
8150           ;;
8151         *N32*)
8152           LD="${LD-ld} -n32"
8153           ;;
8154         *64-bit*)
8155           LD="${LD-ld} -64"
8156           ;;
8157       esac
8158     fi
8159   fi
8160   rm -rf conftest*
8161   ;;
8162
8163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8165   # Find out which ABI we are using.
8166   echo 'int i;' > conftest.$ac_ext
8167   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171   test $ac_status = 0; }; then
8172     case `/usr/bin/file conftest.o` in
8173       *32-bit*)
8174         case $host in
8175           x86_64-*kfreebsd*-gnu)
8176             LD="${LD-ld} -m elf_i386_fbsd"
8177             ;;
8178           x86_64-*linux*)
8179             LD="${LD-ld} -m elf_i386"
8180             ;;
8181           ppc64-*linux*|powerpc64-*linux*)
8182             LD="${LD-ld} -m elf32ppclinux"
8183             ;;
8184           s390x-*linux*)
8185             LD="${LD-ld} -m elf_s390"
8186             ;;
8187           sparc64-*linux*)
8188             LD="${LD-ld} -m elf32_sparc"
8189             ;;
8190         esac
8191         ;;
8192       *64-bit*)
8193         case $host in
8194           x86_64-*kfreebsd*-gnu)
8195             LD="${LD-ld} -m elf_x86_64_fbsd"
8196             ;;
8197           x86_64-*linux*)
8198             LD="${LD-ld} -m elf_x86_64"
8199             ;;
8200           ppc*-*linux*|powerpc*-*linux*)
8201             LD="${LD-ld} -m elf64ppc"
8202             ;;
8203           s390*-*linux*|s390*-*tpf*)
8204             LD="${LD-ld} -m elf64_s390"
8205             ;;
8206           sparc*-*linux*)
8207             LD="${LD-ld} -m elf64_sparc"
8208             ;;
8209         esac
8210         ;;
8211     esac
8212   fi
8213   rm -rf conftest*
8214   ;;
8215
8216 *-*-sco3.2v5*)
8217   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8218   SAVE_CFLAGS="$CFLAGS"
8219   CFLAGS="$CFLAGS -belf"
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8221 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8222 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   ac_ext=c
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
8231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h.  */
8233
8234 int
8235 main ()
8236 {
8237
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243   lt_cv_cc_needs_belf=yes
8244 else
8245   lt_cv_cc_needs_belf=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249      ac_ext=c
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8258   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8259     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8260     CFLAGS="$SAVE_CFLAGS"
8261   fi
8262   ;;
8263 sparc*-*solaris*)
8264   # Find out which ABI we are using.
8265   echo 'int i;' > conftest.$ac_ext
8266   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8267   (eval $ac_compile) 2>&5
8268   ac_status=$?
8269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270   test $ac_status = 0; }; then
8271     case `/usr/bin/file conftest.o` in
8272     *64-bit*)
8273       case $lt_cv_prog_gnu_ld in
8274       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8275       *)
8276         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8277           LD="${LD-ld} -64"
8278         fi
8279         ;;
8280       esac
8281       ;;
8282     esac
8283   fi
8284   rm -rf conftest*
8285   ;;
8286 esac
8287
8288 need_locks="$enable_libtool_lock"
8289
8290 if test -n "$ac_tool_prefix"; then
8291   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}mt; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   if test -n "$MANIFEST_TOOL"; then
8299   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306     for ac_exec_ext in '' $ac_executable_extensions; do
8307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313   done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8319 if test -n "$MANIFEST_TOOL"; then
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8321 $as_echo "$MANIFEST_TOOL" >&6; }
8322 else
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327
8328 fi
8329 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8330   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8331   # Extract the first word of "mt", so it can be a program name with args.
8332 set dummy mt; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$ac_ct_MANIFEST_TOOL"; then
8339   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8359 if test -n "$ac_ct_MANIFEST_TOOL"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8361 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8368     MANIFEST_TOOL=":"
8369   else
8370     case $cross_compiling:$ac_tool_warned in
8371 yes:)
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8375 esac
8376     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8377   fi
8378 else
8379   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8380 fi
8381
8382 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8384 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8385 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   lt_cv_path_mainfest_tool=no
8389   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8390   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8391   cat conftest.err >&5
8392   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8393     lt_cv_path_mainfest_tool=yes
8394   fi
8395   rm -f conftest*
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8398 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8399 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8400   MANIFEST_TOOL=:
8401 fi
8402
8403
8404
8405
8406
8407
8408   case $host_os in
8409     rhapsody* | darwin*)
8410     if test -n "$ac_tool_prefix"; then
8411   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   if test -n "$DSYMUTIL"; then
8419   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426     for ac_exec_ext in '' $ac_executable_extensions; do
8427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433   done
8434 IFS=$as_save_IFS
8435
8436 fi
8437 fi
8438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8439 if test -n "$DSYMUTIL"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8441 $as_echo "$DSYMUTIL" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448 fi
8449 if test -z "$ac_cv_prog_DSYMUTIL"; then
8450   ac_ct_DSYMUTIL=$DSYMUTIL
8451   # Extract the first word of "dsymutil", so it can be a program name with args.
8452 set dummy dsymutil; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$ac_ct_DSYMUTIL"; then
8459   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475
8476 fi
8477 fi
8478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8479 if test -n "$ac_ct_DSYMUTIL"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487   if test "x$ac_ct_DSYMUTIL" = x; then
8488     DSYMUTIL=":"
8489   else
8490     case $cross_compiling:$ac_tool_warned in
8491 yes:)
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8494 ac_tool_warned=yes ;;
8495 esac
8496     DSYMUTIL=$ac_ct_DSYMUTIL
8497   fi
8498 else
8499   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8500 fi
8501
8502     if test -n "$ac_tool_prefix"; then
8503   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   if test -n "$NMEDIT"; then
8511   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516   IFS=$as_save_IFS
8517   test -z "$as_dir" && as_dir=.
8518     for ac_exec_ext in '' $ac_executable_extensions; do
8519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522     break 2
8523   fi
8524 done
8525   done
8526 IFS=$as_save_IFS
8527
8528 fi
8529 fi
8530 NMEDIT=$ac_cv_prog_NMEDIT
8531 if test -n "$NMEDIT"; then
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8533 $as_echo "$NMEDIT" >&6; }
8534 else
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 fi
8538
8539
8540 fi
8541 if test -z "$ac_cv_prog_NMEDIT"; then
8542   ac_ct_NMEDIT=$NMEDIT
8543   # Extract the first word of "nmedit", so it can be a program name with args.
8544 set dummy nmedit; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   if test -n "$ac_ct_NMEDIT"; then
8551   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556   IFS=$as_save_IFS
8557   test -z "$as_dir" && as_dir=.
8558     for ac_exec_ext in '' $ac_executable_extensions; do
8559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562     break 2
8563   fi
8564 done
8565   done
8566 IFS=$as_save_IFS
8567
8568 fi
8569 fi
8570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8571 if test -n "$ac_ct_NMEDIT"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8573 $as_echo "$ac_ct_NMEDIT" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579   if test "x$ac_ct_NMEDIT" = x; then
8580     NMEDIT=":"
8581   else
8582     case $cross_compiling:$ac_tool_warned in
8583 yes:)
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8586 ac_tool_warned=yes ;;
8587 esac
8588     NMEDIT=$ac_ct_NMEDIT
8589   fi
8590 else
8591   NMEDIT="$ac_cv_prog_NMEDIT"
8592 fi
8593
8594     if test -n "$ac_tool_prefix"; then
8595   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   if test -n "$LIPO"; then
8603   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8607 do
8608   IFS=$as_save_IFS
8609   test -z "$as_dir" && as_dir=.
8610     for ac_exec_ext in '' $ac_executable_extensions; do
8611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614     break 2
8615   fi
8616 done
8617   done
8618 IFS=$as_save_IFS
8619
8620 fi
8621 fi
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8626 else
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631
8632 fi
8633 if test -z "$ac_cv_prog_LIPO"; then
8634   ac_ct_LIPO=$LIPO
8635   # Extract the first word of "lipo", so it can be a program name with args.
8636 set dummy lipo; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   if test -n "$ac_ct_LIPO"; then
8643   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650     for ac_exec_ext in '' $ac_executable_extensions; do
8651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652     ac_cv_prog_ac_ct_LIPO="lipo"
8653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657   done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8663 if test -n "$ac_ct_LIPO"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8665 $as_echo "$ac_ct_LIPO" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671   if test "x$ac_ct_LIPO" = x; then
8672     LIPO=":"
8673   else
8674     case $cross_compiling:$ac_tool_warned in
8675 yes:)
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8678 ac_tool_warned=yes ;;
8679 esac
8680     LIPO=$ac_ct_LIPO
8681   fi
8682 else
8683   LIPO="$ac_cv_prog_LIPO"
8684 fi
8685
8686     if test -n "$ac_tool_prefix"; then
8687   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8688 set dummy ${ac_tool_prefix}otool; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8692   $as_echo_n "(cached) " >&6
8693 else
8694   if test -n "$OTOOL"; then
8695   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700   IFS=$as_save_IFS
8701   test -z "$as_dir" && as_dir=.
8702     for ac_exec_ext in '' $ac_executable_extensions; do
8703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706     break 2
8707   fi
8708 done
8709   done
8710 IFS=$as_save_IFS
8711
8712 fi
8713 fi
8714 OTOOL=$ac_cv_prog_OTOOL
8715 if test -n "$OTOOL"; then
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8717 $as_echo "$OTOOL" >&6; }
8718 else
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 fi
8722
8723
8724 fi
8725 if test -z "$ac_cv_prog_OTOOL"; then
8726   ac_ct_OTOOL=$OTOOL
8727   # Extract the first word of "otool", so it can be a program name with args.
8728 set dummy otool; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   if test -n "$ac_ct_OTOOL"; then
8735   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742     for ac_exec_ext in '' $ac_executable_extensions; do
8743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744     ac_cv_prog_ac_ct_OTOOL="otool"
8745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749   done
8750 IFS=$as_save_IFS
8751
8752 fi
8753 fi
8754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8755 if test -n "$ac_ct_OTOOL"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8757 $as_echo "$ac_ct_OTOOL" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763   if test "x$ac_ct_OTOOL" = x; then
8764     OTOOL=":"
8765   else
8766     case $cross_compiling:$ac_tool_warned in
8767 yes:)
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8770 ac_tool_warned=yes ;;
8771 esac
8772     OTOOL=$ac_ct_OTOOL
8773   fi
8774 else
8775   OTOOL="$ac_cv_prog_OTOOL"
8776 fi
8777
8778     if test -n "$ac_tool_prefix"; then
8779   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$OTOOL64"; then
8787   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 OTOOL64=$ac_cv_prog_OTOOL64
8807 if test -n "$OTOOL64"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8809 $as_echo "$OTOOL64" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_OTOOL64"; then
8818   ac_ct_OTOOL64=$OTOOL64
8819   # Extract the first word of "otool64", so it can be a program name with args.
8820 set dummy otool64; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$ac_ct_OTOOL64"; then
8827   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836     ac_cv_prog_ac_ct_OTOOL64="otool64"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8847 if test -n "$ac_ct_OTOOL64"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8849 $as_echo "$ac_ct_OTOOL64" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855   if test "x$ac_ct_OTOOL64" = x; then
8856     OTOOL64=":"
8857   else
8858     case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8863 esac
8864     OTOOL64=$ac_ct_OTOOL64
8865   fi
8866 else
8867   OTOOL64="$ac_cv_prog_OTOOL64"
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8897 $as_echo_n "checking for -single_module linker flag... " >&6; }
8898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   lt_cv_apple_cc_single_mod=no
8902       if test -z "${LT_MULTI_MODULE}"; then
8903         # By default we will add the -single_module flag. You can override
8904         # by either setting the environment variable LT_MULTI_MODULE
8905         # non-empty at configure time, or by adding -multi_module to the
8906         # link flags.
8907         rm -rf libconftest.dylib*
8908         echo "int foo(void){return 1;}" > conftest.c
8909         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8910 -dynamiclib -Wl,-single_module conftest.c" >&5
8911         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8912           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8913         _lt_result=$?
8914         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8915           lt_cv_apple_cc_single_mod=yes
8916         else
8917           cat conftest.err >&5
8918         fi
8919         rm -rf libconftest.dylib*
8920         rm -f conftest.*
8921       fi
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8926 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8927 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   lt_cv_ld_exported_symbols_list=no
8931       save_LDFLAGS=$LDFLAGS
8932       echo "_main" > conftest.sym
8933       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936
8937 int
8938 main ()
8939 {
8940
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"; then :
8946   lt_cv_ld_exported_symbols_list=yes
8947 else
8948   lt_cv_ld_exported_symbols_list=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext \
8951     conftest$ac_exeext conftest.$ac_ext
8952         LDFLAGS="$save_LDFLAGS"
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8958 $as_echo_n "checking for -force_load linker flag... " >&6; }
8959 if test "${lt_cv_ld_force_load+set}" = set; then :
8960   $as_echo_n "(cached) " >&6
8961 else
8962   lt_cv_ld_force_load=no
8963       cat > conftest.c << _LT_EOF
8964 int forced_loaded() { return 2;}
8965 _LT_EOF
8966       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8967       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8968       echo "$AR cru libconftest.a conftest.o" >&5
8969       $AR cru libconftest.a conftest.o 2>&5
8970       echo "$RANLIB libconftest.a" >&5
8971       $RANLIB libconftest.a 2>&5
8972       cat > conftest.c << _LT_EOF
8973 int main() { return 0;}
8974 _LT_EOF
8975       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8976       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8977       _lt_result=$?
8978       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8979         lt_cv_ld_force_load=yes
8980       else
8981         cat conftest.err >&5
8982       fi
8983         rm -f conftest.err libconftest.a conftest conftest.c
8984         rm -rf conftest.dSYM
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8988 $as_echo "$lt_cv_ld_force_load" >&6; }
8989     case $host_os in
8990     rhapsody* | darwin1.[012])
8991       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8992     darwin1.*)
8993       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8994     darwin*) # darwin 5.x on
8995       # if running on 10.5 or later, the deployment target defaults
8996       # to the OS version, if on x86, and 10.4, the deployment
8997       # target defaults to 10.4. Don't you love it?
8998       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8999         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9001         10.[012]*)
9002           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9003         10.*)
9004           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9005       esac
9006     ;;
9007   esac
9008     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9009       _lt_dar_single_mod='$single_module'
9010     fi
9011     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9012       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9013     else
9014       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9015     fi
9016     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9017       _lt_dsymutil='~$DSYMUTIL $lib || :'
9018     else
9019       _lt_dsymutil=
9020     fi
9021     ;;
9022   esac
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9025 $as_echo_n "checking for ANSI C header files... " >&6; }
9026 if test "${ac_cv_header_stdc+set}" = set; then :
9027   $as_echo_n "(cached) " >&6
9028 else
9029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h.  */
9031 #include <stdlib.h>
9032 #include <stdarg.h>
9033 #include <string.h>
9034 #include <float.h>
9035
9036 int
9037 main ()
9038 {
9039
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045   ac_cv_header_stdc=yes
9046 else
9047   ac_cv_header_stdc=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050
9051 if test $ac_cv_header_stdc = yes; then
9052   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h.  */
9055 #include <string.h>
9056
9057 _ACEOF
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059   $EGREP "memchr" >/dev/null 2>&1; then :
9060
9061 else
9062   ac_cv_header_stdc=no
9063 fi
9064 rm -f conftest*
9065
9066 fi
9067
9068 if test $ac_cv_header_stdc = yes; then
9069   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h.  */
9072 #include <stdlib.h>
9073
9074 _ACEOF
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076   $EGREP "free" >/dev/null 2>&1; then :
9077
9078 else
9079   ac_cv_header_stdc=no
9080 fi
9081 rm -f conftest*
9082
9083 fi
9084
9085 if test $ac_cv_header_stdc = yes; then
9086   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9087   if test "$cross_compiling" = yes; then :
9088   :
9089 else
9090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092 #include <ctype.h>
9093 #include <stdlib.h>
9094 #if ((' ' & 0x0FF) == 0x020)
9095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9097 #else
9098 # define ISLOWER(c) \
9099                    (('a' <= (c) && (c) <= 'i') \
9100                      || ('j' <= (c) && (c) <= 'r') \
9101                      || ('s' <= (c) && (c) <= 'z'))
9102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9103 #endif
9104
9105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 int
9107 main ()
9108 {
9109   int i;
9110   for (i = 0; i < 256; i++)
9111     if (XOR (islower (i), ISLOWER (i))
9112         || toupper (i) != TOUPPER (i))
9113       return 2;
9114   return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_run "$LINENO"; then :
9118
9119 else
9120   ac_cv_header_stdc=no
9121 fi
9122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9123   conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 fi
9125
9126 fi
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9129 $as_echo "$ac_cv_header_stdc" >&6; }
9130 if test $ac_cv_header_stdc = yes; then
9131
9132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9133
9134 fi
9135
9136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9138                   inttypes.h stdint.h unistd.h
9139 do :
9140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9142 "
9143 eval as_val=\$$as_ac_Header
9144    if test "x$as_val" = x""yes; then :
9145   cat >>confdefs.h <<_ACEOF
9146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9147 _ACEOF
9148
9149 fi
9150
9151 done
9152
9153
9154 for ac_header in dlfcn.h
9155 do :
9156   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9157 "
9158 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9159   cat >>confdefs.h <<_ACEOF
9160 #define HAVE_DLFCN_H 1
9161 _ACEOF
9162
9163 fi
9164
9165 done
9166
9167
9168
9169
9170 func_stripname_cnf ()
9171 {
9172   case ${2} in
9173   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9174   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9175   esac
9176 } # func_stripname_cnf
9177
9178
9179
9180
9181
9182 # Set options
9183 # Check whether --enable-shared was given.
9184 if test "${enable_shared+set}" = set; then :
9185   enableval=$enable_shared; p=${PACKAGE-default}
9186     case $enableval in
9187     yes) enable_shared=yes ;;
9188     no) enable_shared=no ;;
9189     *)
9190       enable_shared=no
9191       # Look at the argument we got.  We use all the common list separators.
9192       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193       for pkg in $enableval; do
9194         IFS="$lt_save_ifs"
9195         if test "X$pkg" = "X$p"; then
9196           enable_shared=yes
9197         fi
9198       done
9199       IFS="$lt_save_ifs"
9200       ;;
9201     esac
9202 else
9203   enable_shared=yes
9204 fi
9205
9206
9207
9208
9209
9210
9211
9212 # Check whether --enable-static was given.
9213 if test "${enable_static+set}" = set; then :
9214   enableval=$enable_static; p=${PACKAGE-default}
9215     case $enableval in
9216     yes) enable_static=yes ;;
9217     no) enable_static=no ;;
9218     *)
9219      enable_static=no
9220       # Look at the argument we got.  We use all the common list separators.
9221       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9222       for pkg in $enableval; do
9223         IFS="$lt_save_ifs"
9224         if test "X$pkg" = "X$p"; then
9225           enable_static=yes
9226         fi
9227       done
9228       IFS="$lt_save_ifs"
9229       ;;
9230     esac
9231 else
9232   enable_static=no
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244         enable_dlopen=no
9245
9246
9247   enable_win32_dll=no
9248
9249
9250
9251
9252
9253 # Check whether --with-pic was given.
9254 if test "${with_pic+set}" = set; then :
9255   withval=$with_pic; pic_mode="$withval"
9256 else
9257   pic_mode=default
9258 fi
9259
9260
9261 test -z "$pic_mode" && pic_mode=default
9262
9263
9264
9265
9266
9267
9268
9269   # Check whether --enable-fast-install was given.
9270 if test "${enable_fast_install+set}" = set; then :
9271   enableval=$enable_fast_install; p=${PACKAGE-default}
9272     case $enableval in
9273     yes) enable_fast_install=yes ;;
9274     no) enable_fast_install=no ;;
9275     *)
9276       enable_fast_install=no
9277       # Look at the argument we got.  We use all the common list separators.
9278       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9279       for pkg in $enableval; do
9280         IFS="$lt_save_ifs"
9281         if test "X$pkg" = "X$p"; then
9282           enable_fast_install=yes
9283         fi
9284       done
9285       IFS="$lt_save_ifs"
9286       ;;
9287     esac
9288 else
9289   enable_fast_install=yes
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 # This can be used to rebuild libtool when needed
9303 LIBTOOL_DEPS="$ltmain"
9304
9305 # Always use our own libtool.
9306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 test -z "$LN_S" && LN_S="ln -s"
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 if test -n "${ZSH_VERSION+set}" ; then
9349    setopt NO_GLOB_SUBST
9350 fi
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9353 $as_echo_n "checking for objdir... " >&6; }
9354 if test "${lt_cv_objdir+set}" = set; then :
9355   $as_echo_n "(cached) " >&6
9356 else
9357   rm -f .libs 2>/dev/null
9358 mkdir .libs 2>/dev/null
9359 if test -d .libs; then
9360   lt_cv_objdir=.libs
9361 else
9362   # MS-DOS does not allow filenames that begin with a dot.
9363   lt_cv_objdir=_libs
9364 fi
9365 rmdir .libs 2>/dev/null
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368 $as_echo "$lt_cv_objdir" >&6; }
9369 objdir=$lt_cv_objdir
9370
9371
9372
9373
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define LT_OBJDIR "$lt_cv_objdir/"
9377 _ACEOF
9378
9379
9380
9381
9382 case $host_os in
9383 aix3*)
9384   # AIX sometimes has problems with the GCC collect2 program.  For some
9385   # reason, if we set the COLLECT_NAMES environment variable, the problems
9386   # vanish in a puff of smoke.
9387   if test "X${COLLECT_NAMES+set}" != Xset; then
9388     COLLECT_NAMES=
9389     export COLLECT_NAMES
9390   fi
9391   ;;
9392 esac
9393
9394 # Global variables:
9395 ofile=libtool
9396 can_build_shared=yes
9397
9398 # All known linkers require a `.a' archive for static linking (except MSVC,
9399 # which needs '.lib').
9400 libext=a
9401
9402 with_gnu_ld="$lt_cv_prog_gnu_ld"
9403
9404 old_CC="$CC"
9405 old_CFLAGS="$CFLAGS"
9406
9407 # Set sane defaults for various variables
9408 test -z "$CC" && CC=cc
9409 test -z "$LTCC" && LTCC=$CC
9410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9411 test -z "$LD" && LD=ld
9412 test -z "$ac_objext" && ac_objext=o
9413
9414 for cc_temp in $compiler""; do
9415   case $cc_temp in
9416     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9417     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9418     \-*) ;;
9419     *) break;;
9420   esac
9421 done
9422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9423
9424
9425 # Only perform the check for file, if the check method requires it
9426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9427 case $deplibs_check_method in
9428 file_magic*)
9429   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9432 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   case $MAGIC_CMD in
9436 [\\/*] |  ?:[\\/]*)
9437   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9438   ;;
9439 *)
9440   lt_save_MAGIC_CMD="$MAGIC_CMD"
9441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9442   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9443   for ac_dir in $ac_dummy; do
9444     IFS="$lt_save_ifs"
9445     test -z "$ac_dir" && ac_dir=.
9446     if test -f $ac_dir/${ac_tool_prefix}file; then
9447       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9448       if test -n "$file_magic_test_file"; then
9449         case $deplibs_check_method in
9450         "file_magic "*)
9451           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9454             $EGREP "$file_magic_regex" > /dev/null; then
9455             :
9456           else
9457             cat <<_LT_EOF 1>&2
9458
9459 *** Warning: the command libtool uses to detect shared libraries,
9460 *** $file_magic_cmd, produces output that libtool cannot recognize.
9461 *** The result is that libtool may fail to recognize shared libraries
9462 *** as such.  This will affect the creation of libtool libraries that
9463 *** depend on shared libraries, but programs linked with such libtool
9464 *** libraries will work regardless of this problem.  Nevertheless, you
9465 *** may want to report the problem to your system manager and/or to
9466 *** bug-libtool@gnu.org
9467
9468 _LT_EOF
9469           fi ;;
9470         esac
9471       fi
9472       break
9473     fi
9474   done
9475   IFS="$lt_save_ifs"
9476   MAGIC_CMD="$lt_save_MAGIC_CMD"
9477   ;;
9478 esac
9479 fi
9480
9481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482 if test -n "$MAGIC_CMD"; then
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9484 $as_echo "$MAGIC_CMD" >&6; }
9485 else
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488 fi
9489
9490
9491
9492
9493
9494 if test -z "$lt_cv_path_MAGIC_CMD"; then
9495   if test -n "$ac_tool_prefix"; then
9496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9497 $as_echo_n "checking for file... " >&6; }
9498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   case $MAGIC_CMD in
9502 [\\/*] |  ?:[\\/]*)
9503   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9504   ;;
9505 *)
9506   lt_save_MAGIC_CMD="$MAGIC_CMD"
9507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9509   for ac_dir in $ac_dummy; do
9510     IFS="$lt_save_ifs"
9511     test -z "$ac_dir" && ac_dir=.
9512     if test -f $ac_dir/file; then
9513       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9514       if test -n "$file_magic_test_file"; then
9515         case $deplibs_check_method in
9516         "file_magic "*)
9517           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9518           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9520             $EGREP "$file_magic_regex" > /dev/null; then
9521             :
9522           else
9523             cat <<_LT_EOF 1>&2
9524
9525 *** Warning: the command libtool uses to detect shared libraries,
9526 *** $file_magic_cmd, produces output that libtool cannot recognize.
9527 *** The result is that libtool may fail to recognize shared libraries
9528 *** as such.  This will affect the creation of libtool libraries that
9529 *** depend on shared libraries, but programs linked with such libtool
9530 *** libraries will work regardless of this problem.  Nevertheless, you
9531 *** may want to report the problem to your system manager and/or to
9532 *** bug-libtool@gnu.org
9533
9534 _LT_EOF
9535           fi ;;
9536         esac
9537       fi
9538       break
9539     fi
9540   done
9541   IFS="$lt_save_ifs"
9542   MAGIC_CMD="$lt_save_MAGIC_CMD"
9543   ;;
9544 esac
9545 fi
9546
9547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9548 if test -n "$MAGIC_CMD"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9550 $as_echo "$MAGIC_CMD" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557   else
9558     MAGIC_CMD=:
9559   fi
9560 fi
9561
9562   fi
9563   ;;
9564 esac
9565
9566 # Use C for the default configuration in the libtool script
9567
9568 lt_save_CC="$CC"
9569 ac_ext=c
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574
9575
9576 # Source file extension for C test sources.
9577 ac_ext=c
9578
9579 # Object file extension for compiled C test sources.
9580 objext=o
9581 objext=$objext
9582
9583 # Code to be used in simple compile tests
9584 lt_simple_compile_test_code="int some_variable = 0;"
9585
9586 # Code to be used in simple link tests
9587 lt_simple_link_test_code='int main(){return(0);}'
9588
9589
9590
9591
9592
9593
9594
9595 # If no C compiler was specified, use CC.
9596 LTCC=${LTCC-"$CC"}
9597
9598 # If no C compiler flags were specified, use CFLAGS.
9599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9600
9601 # Allow CC to be a program name with arguments.
9602 compiler=$CC
9603
9604 # Save the default compiler, since it gets overwritten when the other
9605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9606 compiler_DEFAULT=$CC
9607
9608 # save warnings/boilerplate of simple test code
9609 ac_outfile=conftest.$ac_objext
9610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9612 _lt_compiler_boilerplate=`cat conftest.err`
9613 $RM conftest*
9614
9615 ac_outfile=conftest.$ac_objext
9616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9618 _lt_linker_boilerplate=`cat conftest.err`
9619 $RM -r conftest*
9620
9621
9622 ## CAVEAT EMPTOR:
9623 ## There is no encapsulation within the following macros, do not change
9624 ## the running order or otherwise move them around unless you know exactly
9625 ## what you are doing...
9626 if test -n "$compiler"; then
9627
9628 lt_prog_compiler_no_builtin_flag=
9629
9630 if test "$GCC" = yes; then
9631   case $cc_basename in
9632   nvcc*)
9633     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9634   *)
9635     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9636   esac
9637
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9641   $as_echo_n "(cached) " >&6
9642 else
9643   lt_cv_prog_compiler_rtti_exceptions=no
9644    ac_outfile=conftest.$ac_objext
9645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646    lt_compiler_flag="-fno-rtti -fno-exceptions"
9647    # Insert the option either (1) after the last *FLAGS variable, or
9648    # (2) before a word containing "conftest.", or (3) at the end.
9649    # Note that $ac_compile itself does not contain backslashes and begins
9650    # with a dollar sign (not a hyphen), so the echo should work correctly.
9651    # The option is referenced via a variable to avoid confusing sed.
9652    lt_compile=`echo "$ac_compile" | $SED \
9653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655    -e 's:$: $lt_compiler_flag:'`
9656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657    (eval "$lt_compile" 2>conftest.err)
9658    ac_status=$?
9659    cat conftest.err >&5
9660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661    if (exit $ac_status) && test -s "$ac_outfile"; then
9662      # The compiler can only warn and ignore the option if not recognized
9663      # So say no if there are warnings other than the usual output.
9664      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9667        lt_cv_prog_compiler_rtti_exceptions=yes
9668      fi
9669    fi
9670    $RM conftest*
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9675
9676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9677     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9678 else
9679     :
9680 fi
9681
9682 fi
9683
9684
9685
9686
9687
9688
9689   lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9692
9693
9694   if test "$GCC" = yes; then
9695     lt_prog_compiler_wl='-Wl,'
9696     lt_prog_compiler_static='-static'
9697
9698     case $host_os in
9699       aix*)
9700       # All AIX code is PIC.
9701       if test "$host_cpu" = ia64; then
9702         # AIX 5 now supports IA64 processor
9703         lt_prog_compiler_static='-Bstatic'
9704       fi
9705       ;;
9706
9707     amigaos*)
9708       case $host_cpu in
9709       powerpc)
9710             # see comment about AmigaOS4 .so support
9711             lt_prog_compiler_pic='-fPIC'
9712         ;;
9713       m68k)
9714             # FIXME: we need at least 68020 code to build shared libraries, but
9715             # adding the `-m68020' flag to GCC prevents building anything better,
9716             # like `-m68040'.
9717             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9718         ;;
9719       esac
9720       ;;
9721
9722     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9723       # PIC is the default for these OSes.
9724       ;;
9725
9726     mingw* | cygwin* | pw32* | os2* | cegcc*)
9727       # This hack is so that the source file can tell whether it is being
9728       # built for inclusion in a dll (and should export symbols for example).
9729       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9730       # (--disable-auto-import) libraries
9731       lt_prog_compiler_pic='-DDLL_EXPORT'
9732       ;;
9733
9734     darwin* | rhapsody*)
9735       # PIC is the default on this platform
9736       # Common symbols not allowed in MH_DYLIB files
9737       lt_prog_compiler_pic='-fno-common'
9738       ;;
9739
9740     haiku*)
9741       # PIC is the default for Haiku.
9742       # The "-static" flag exists, but is broken.
9743       lt_prog_compiler_static=
9744       ;;
9745
9746     hpux*)
9747       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9748       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9749       # sets the default TLS model and affects inlining.
9750       case $host_cpu in
9751       hppa*64*)
9752         # +Z the default
9753         ;;
9754       *)
9755         lt_prog_compiler_pic='-fPIC'
9756         ;;
9757       esac
9758       ;;
9759
9760     interix[3-9]*)
9761       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9762       # Instead, we relocate shared libraries at runtime.
9763       ;;
9764
9765     msdosdjgpp*)
9766       # Just because we use GCC doesn't mean we suddenly get shared libraries
9767       # on systems that don't support them.
9768       lt_prog_compiler_can_build_shared=no
9769       enable_shared=no
9770       ;;
9771
9772     *nto* | *qnx*)
9773       # QNX uses GNU C++, but need to define -shared option too, otherwise
9774       # it will coredump.
9775       lt_prog_compiler_pic='-fPIC -shared'
9776       ;;
9777
9778     sysv4*MP*)
9779       if test -d /usr/nec; then
9780         lt_prog_compiler_pic=-Kconform_pic
9781       fi
9782       ;;
9783
9784     *)
9785       lt_prog_compiler_pic='-fPIC'
9786       ;;
9787     esac
9788
9789     case $cc_basename in
9790     nvcc*) # Cuda Compiler Driver 2.2
9791       lt_prog_compiler_wl='-Xlinker '
9792       lt_prog_compiler_pic='-Xcompiler -fPIC'
9793       ;;
9794     esac
9795   else
9796     # PORTME Check for flag to pass linker flags through the system compiler.
9797     case $host_os in
9798     aix*)
9799       lt_prog_compiler_wl='-Wl,'
9800       if test "$host_cpu" = ia64; then
9801         # AIX 5 now supports IA64 processor
9802         lt_prog_compiler_static='-Bstatic'
9803       else
9804         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9805       fi
9806       ;;
9807
9808     mingw* | cygwin* | pw32* | os2* | cegcc*)
9809       # This hack is so that the source file can tell whether it is being
9810       # built for inclusion in a dll (and should export symbols for example).
9811       lt_prog_compiler_pic='-DDLL_EXPORT'
9812       ;;
9813
9814     hpux9* | hpux10* | hpux11*)
9815       lt_prog_compiler_wl='-Wl,'
9816       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9817       # not for PA HP-UX.
9818       case $host_cpu in
9819       hppa*64*|ia64*)
9820         # +Z the default
9821         ;;
9822       *)
9823         lt_prog_compiler_pic='+Z'
9824         ;;
9825       esac
9826       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9827       lt_prog_compiler_static='${wl}-a ${wl}archive'
9828       ;;
9829
9830     irix5* | irix6* | nonstopux*)
9831       lt_prog_compiler_wl='-Wl,'
9832       # PIC (with -KPIC) is the default.
9833       lt_prog_compiler_static='-non_shared'
9834       ;;
9835
9836     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9837       case $cc_basename in
9838       # old Intel for x86_64 which still supported -KPIC.
9839       ecc*)
9840         lt_prog_compiler_wl='-Wl,'
9841         lt_prog_compiler_pic='-KPIC'
9842         lt_prog_compiler_static='-static'
9843         ;;
9844       # icc used to be incompatible with GCC.
9845       # ICC 10 doesn't accept -KPIC any more.
9846       icc* | ifort*)
9847         lt_prog_compiler_wl='-Wl,'
9848         lt_prog_compiler_pic='-fPIC'
9849         lt_prog_compiler_static='-static'
9850         ;;
9851       # Lahey Fortran 8.1.
9852       lf95*)
9853         lt_prog_compiler_wl='-Wl,'
9854         lt_prog_compiler_pic='--shared'
9855         lt_prog_compiler_static='--static'
9856         ;;
9857       nagfor*)
9858         # NAG Fortran compiler
9859         lt_prog_compiler_wl='-Wl,-Wl,,'
9860         lt_prog_compiler_pic='-PIC'
9861         lt_prog_compiler_static='-Bstatic'
9862         ;;
9863       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9864         # Portland Group compilers (*not* the Pentium gcc compiler,
9865         # which looks to be a dead project)
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='-fpic'
9868         lt_prog_compiler_static='-Bstatic'
9869         ;;
9870       ccc*)
9871         lt_prog_compiler_wl='-Wl,'
9872         # All Alpha code is PIC.
9873         lt_prog_compiler_static='-non_shared'
9874         ;;
9875       xl* | bgxl* | bgf* | mpixl*)
9876         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9877         lt_prog_compiler_wl='-Wl,'
9878         lt_prog_compiler_pic='-qpic'
9879         lt_prog_compiler_static='-qstaticlink'
9880         ;;
9881       *)
9882         case `$CC -V 2>&1 | sed 5q` in
9883         *Sun\ F* | *Sun*Fortran*)
9884           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9885           lt_prog_compiler_pic='-KPIC'
9886           lt_prog_compiler_static='-Bstatic'
9887           lt_prog_compiler_wl=''
9888           ;;
9889         *Sun\ C*)
9890           # Sun C 5.9
9891           lt_prog_compiler_pic='-KPIC'
9892           lt_prog_compiler_static='-Bstatic'
9893           lt_prog_compiler_wl='-Wl,'
9894           ;;
9895         esac
9896         ;;
9897       esac
9898       ;;
9899
9900     newsos6)
9901       lt_prog_compiler_pic='-KPIC'
9902       lt_prog_compiler_static='-Bstatic'
9903       ;;
9904
9905     *nto* | *qnx*)
9906       # QNX uses GNU C++, but need to define -shared option too, otherwise
9907       # it will coredump.
9908       lt_prog_compiler_pic='-fPIC -shared'
9909       ;;
9910
9911     osf3* | osf4* | osf5*)
9912       lt_prog_compiler_wl='-Wl,'
9913       # All OSF/1 code is PIC.
9914       lt_prog_compiler_static='-non_shared'
9915       ;;
9916
9917     rdos*)
9918       lt_prog_compiler_static='-non_shared'
9919       ;;
9920
9921     solaris*)
9922       lt_prog_compiler_pic='-KPIC'
9923       lt_prog_compiler_static='-Bstatic'
9924       case $cc_basename in
9925       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9926         lt_prog_compiler_wl='-Qoption ld ';;
9927       *)
9928         lt_prog_compiler_wl='-Wl,';;
9929       esac
9930       ;;
9931
9932     sunos4*)
9933       lt_prog_compiler_wl='-Qoption ld '
9934       lt_prog_compiler_pic='-PIC'
9935       lt_prog_compiler_static='-Bstatic'
9936       ;;
9937
9938     sysv4 | sysv4.2uw2* | sysv4.3*)
9939       lt_prog_compiler_wl='-Wl,'
9940       lt_prog_compiler_pic='-KPIC'
9941       lt_prog_compiler_static='-Bstatic'
9942       ;;
9943
9944     sysv4*MP*)
9945       if test -d /usr/nec ;then
9946         lt_prog_compiler_pic='-Kconform_pic'
9947         lt_prog_compiler_static='-Bstatic'
9948       fi
9949       ;;
9950
9951     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9952       lt_prog_compiler_wl='-Wl,'
9953       lt_prog_compiler_pic='-KPIC'
9954       lt_prog_compiler_static='-Bstatic'
9955       ;;
9956
9957     unicos*)
9958       lt_prog_compiler_wl='-Wl,'
9959       lt_prog_compiler_can_build_shared=no
9960       ;;
9961
9962     uts4*)
9963       lt_prog_compiler_pic='-pic'
9964       lt_prog_compiler_static='-Bstatic'
9965       ;;
9966
9967     *)
9968       lt_prog_compiler_can_build_shared=no
9969       ;;
9970     esac
9971   fi
9972
9973 case $host_os in
9974   # For platforms which do not support PIC, -DPIC is meaningless:
9975   *djgpp*)
9976     lt_prog_compiler_pic=
9977     ;;
9978   *)
9979     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9980     ;;
9981 esac
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9985 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9991 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9992 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9993
9994 #
9995 # Check to make sure the PIC flag actually works.
9996 #
9997 if test -n "$lt_prog_compiler_pic"; then
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9999 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10000 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   lt_cv_prog_compiler_pic_works=no
10004    ac_outfile=conftest.$ac_objext
10005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10007    # Insert the option either (1) after the last *FLAGS variable, or
10008    # (2) before a word containing "conftest.", or (3) at the end.
10009    # Note that $ac_compile itself does not contain backslashes and begins
10010    # with a dollar sign (not a hyphen), so the echo should work correctly.
10011    # The option is referenced via a variable to avoid confusing sed.
10012    lt_compile=`echo "$ac_compile" | $SED \
10013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10015    -e 's:$: $lt_compiler_flag:'`
10016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10017    (eval "$lt_compile" 2>conftest.err)
10018    ac_status=$?
10019    cat conftest.err >&5
10020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021    if (exit $ac_status) && test -s "$ac_outfile"; then
10022      # The compiler can only warn and ignore the option if not recognized
10023      # So say no if there are warnings other than the usual output.
10024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10025      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10026      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10027        lt_cv_prog_compiler_pic_works=yes
10028      fi
10029    fi
10030    $RM conftest*
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10034 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10035
10036 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10037     case $lt_prog_compiler_pic in
10038      "" | " "*) ;;
10039      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10040      esac
10041 else
10042     lt_prog_compiler_pic=
10043      lt_prog_compiler_can_build_shared=no
10044 fi
10045
10046 fi
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058 #
10059 # Check to make sure the static flag actually works.
10060 #
10061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10064 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   lt_cv_prog_compiler_static_works=no
10068    save_LDFLAGS="$LDFLAGS"
10069    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10070    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072      # The linker can only warn and ignore the option if not recognized
10073      # So say no if there are warnings
10074      if test -s conftest.err; then
10075        # Append any errors to the config.log.
10076        cat conftest.err 1>&5
10077        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079        if diff conftest.exp conftest.er2 >/dev/null; then
10080          lt_cv_prog_compiler_static_works=yes
10081        fi
10082      else
10083        lt_cv_prog_compiler_static_works=yes
10084      fi
10085    fi
10086    $RM -r conftest*
10087    LDFLAGS="$save_LDFLAGS"
10088
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10091 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10092
10093 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10094     :
10095 else
10096     lt_prog_compiler_static=
10097 fi
10098
10099
10100
10101
10102
10103
10104
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10108   $as_echo_n "(cached) " >&6
10109 else
10110   lt_cv_prog_compiler_c_o=no
10111    $RM -r conftest 2>/dev/null
10112    mkdir conftest
10113    cd conftest
10114    mkdir out
10115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116
10117    lt_compiler_flag="-o out/conftest2.$ac_objext"
10118    # Insert the option either (1) after the last *FLAGS variable, or
10119    # (2) before a word containing "conftest.", or (3) at the end.
10120    # Note that $ac_compile itself does not contain backslashes and begins
10121    # with a dollar sign (not a hyphen), so the echo should work correctly.
10122    lt_compile=`echo "$ac_compile" | $SED \
10123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125    -e 's:$: $lt_compiler_flag:'`
10126    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10127    (eval "$lt_compile" 2>out/conftest.err)
10128    ac_status=$?
10129    cat out/conftest.err >&5
10130    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10132    then
10133      # The compiler can only warn and ignore the option if not recognized
10134      # So say no if there are warnings
10135      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10138        lt_cv_prog_compiler_c_o=yes
10139      fi
10140    fi
10141    chmod u+w . 2>&5
10142    $RM conftest*
10143    # SGI C++ compiler will create directory out/ii_files/ for
10144    # template instantiation
10145    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10146    $RM out/* && rmdir out
10147    cd ..
10148    $RM -r conftest
10149    $RM conftest*
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10154
10155
10156
10157
10158
10159
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_prog_compiler_c_o=no
10166    $RM -r conftest 2>/dev/null
10167    mkdir conftest
10168    cd conftest
10169    mkdir out
10170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171
10172    lt_compiler_flag="-o out/conftest2.$ac_objext"
10173    # Insert the option either (1) after the last *FLAGS variable, or
10174    # (2) before a word containing "conftest.", or (3) at the end.
10175    # Note that $ac_compile itself does not contain backslashes and begins
10176    # with a dollar sign (not a hyphen), so the echo should work correctly.
10177    lt_compile=`echo "$ac_compile" | $SED \
10178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180    -e 's:$: $lt_compiler_flag:'`
10181    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182    (eval "$lt_compile" 2>out/conftest.err)
10183    ac_status=$?
10184    cat out/conftest.err >&5
10185    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10187    then
10188      # The compiler can only warn and ignore the option if not recognized
10189      # So say no if there are warnings
10190      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193        lt_cv_prog_compiler_c_o=yes
10194      fi
10195    fi
10196    chmod u+w . 2>&5
10197    $RM conftest*
10198    # SGI C++ compiler will create directory out/ii_files/ for
10199    # template instantiation
10200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201    $RM out/* && rmdir out
10202    cd ..
10203    $RM -r conftest
10204    $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10209
10210
10211
10212
10213 hard_links="nottested"
10214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10215   # do not overwrite the value of need_locks provided by the user
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10217 $as_echo_n "checking if we can lock with hard links... " >&6; }
10218   hard_links=yes
10219   $RM conftest*
10220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10221   touch conftest.a
10222   ln conftest.a conftest.b 2>&5 || hard_links=no
10223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10225 $as_echo "$hard_links" >&6; }
10226   if test "$hard_links" = no; then
10227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10229     need_locks=warn
10230   fi
10231 else
10232   need_locks=no
10233 fi
10234
10235
10236
10237
10238
10239
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10242
10243   runpath_var=
10244   allow_undefined_flag=
10245   always_export_symbols=no
10246   archive_cmds=
10247   archive_expsym_cmds=
10248   compiler_needs_object=no
10249   enable_shared_with_static_runtimes=no
10250   export_dynamic_flag_spec=
10251   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10252   hardcode_automatic=no
10253   hardcode_direct=no
10254   hardcode_direct_absolute=no
10255   hardcode_libdir_flag_spec=
10256   hardcode_libdir_flag_spec_ld=
10257   hardcode_libdir_separator=
10258   hardcode_minus_L=no
10259   hardcode_shlibpath_var=unsupported
10260   inherit_rpath=no
10261   link_all_deplibs=unknown
10262   module_cmds=
10263   module_expsym_cmds=
10264   old_archive_from_new_cmds=
10265   old_archive_from_expsyms_cmds=
10266   thread_safe_flag_spec=
10267   whole_archive_flag_spec=
10268   # include_expsyms should be a list of space-separated symbols to be *always*
10269   # included in the symbol list
10270   include_expsyms=
10271   # exclude_expsyms can be an extended regexp of symbols to exclude
10272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10274   # as well as any symbol that contains `d'.
10275   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10277   # platforms (ab)use it in PIC code, but their linkers get confused if
10278   # the symbol is explicitly referenced.  Since portable code cannot
10279   # rely on this symbol name, it's probably fine to never include it in
10280   # preloaded symbol tables.
10281   # Exclude shared library initialization/finalization symbols.
10282   extract_expsyms_cmds=
10283
10284   case $host_os in
10285   cygwin* | mingw* | pw32* | cegcc*)
10286     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10287     # When not using gcc, we currently assume that we are using
10288     # Microsoft Visual C++.
10289     if test "$GCC" != yes; then
10290       with_gnu_ld=no
10291     fi
10292     ;;
10293   interix*)
10294     # we just hope/assume this is gcc and not c89 (= MSVC++)
10295     with_gnu_ld=yes
10296     ;;
10297   openbsd*)
10298     with_gnu_ld=no
10299     ;;
10300   esac
10301
10302   ld_shlibs=yes
10303
10304   # On some targets, GNU ld is compatible enough with the native linker
10305   # that we're better off using the native interface for both.
10306   lt_use_gnu_ld_interface=no
10307   if test "$with_gnu_ld" = yes; then
10308     case $host_os in
10309       aix*)
10310         # The AIX port of GNU ld has always aspired to compatibility
10311         # with the native linker.  However, as the warning in the GNU ld
10312         # block says, versions before 2.19.5* couldn't really create working
10313         # shared libraries, regardless of the interface used.
10314         case `$LD -v 2>&1` in
10315           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10316           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10317           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10318           *)
10319             lt_use_gnu_ld_interface=yes
10320             ;;
10321         esac
10322         ;;
10323       *)
10324         lt_use_gnu_ld_interface=yes
10325         ;;
10326     esac
10327   fi
10328
10329   if test "$lt_use_gnu_ld_interface" = yes; then
10330     # If archive_cmds runs LD, not CC, wlarc should be empty
10331     wlarc='${wl}'
10332
10333     # Set some defaults for GNU ld with shared library support. These
10334     # are reset later if shared libraries are not supported. Putting them
10335     # here allows them to be overridden if necessary.
10336     runpath_var=LD_RUN_PATH
10337     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10338     export_dynamic_flag_spec='${wl}--export-dynamic'
10339     # ancient GNU ld didn't support --whole-archive et. al.
10340     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10341       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10342     else
10343       whole_archive_flag_spec=
10344     fi
10345     supports_anon_versioning=no
10346     case `$LD -v 2>&1` in
10347       *GNU\ gold*) supports_anon_versioning=yes ;;
10348       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10349       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10350       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10351       *\ 2.11.*) ;; # other 2.11 versions
10352       *) supports_anon_versioning=yes ;;
10353     esac
10354
10355     # See if GNU ld supports shared libraries.
10356     case $host_os in
10357     aix[3-9]*)
10358       # On AIX/PPC, the GNU linker is very broken
10359       if test "$host_cpu" != ia64; then
10360         ld_shlibs=no
10361         cat <<_LT_EOF 1>&2
10362
10363 *** Warning: the GNU linker, at least up to release 2.19, is reported
10364 *** to be unable to reliably create shared libraries on AIX.
10365 *** Therefore, libtool is disabling shared libraries support.  If you
10366 *** really care for shared libraries, you may want to install binutils
10367 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10368 *** You will then need to restart the configuration process.
10369
10370 _LT_EOF
10371       fi
10372       ;;
10373
10374     amigaos*)
10375       case $host_cpu in
10376       powerpc)
10377             # see comment about AmigaOS4 .so support
10378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379             archive_expsym_cmds=''
10380         ;;
10381       m68k)
10382             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)'
10383             hardcode_libdir_flag_spec='-L$libdir'
10384             hardcode_minus_L=yes
10385         ;;
10386       esac
10387       ;;
10388
10389     beos*)
10390       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10391         allow_undefined_flag=unsupported
10392         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10393         # support --undefined.  This deserves some investigation.  FIXME
10394         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395       else
10396         ld_shlibs=no
10397       fi
10398       ;;
10399
10400     cygwin* | mingw* | pw32* | cegcc*)
10401       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10402       # as there is no search path for DLLs.
10403       hardcode_libdir_flag_spec='-L$libdir'
10404       export_dynamic_flag_spec='${wl}--export-all-symbols'
10405       allow_undefined_flag=unsupported
10406       always_export_symbols=no
10407       enable_shared_with_static_runtimes=yes
10408       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'
10409       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10410
10411       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10412         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10413         # If the export-symbols file already is a .def file (1st line
10414         # is EXPORTS), use it as is; otherwise, prepend...
10415         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416           cp $export_symbols $output_objdir/$soname.def;
10417         else
10418           echo EXPORTS > $output_objdir/$soname.def;
10419           cat $export_symbols >> $output_objdir/$soname.def;
10420         fi~
10421         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     haiku*)
10428       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429       link_all_deplibs=yes
10430       ;;
10431
10432     interix[3-9]*)
10433       hardcode_direct=no
10434       hardcode_shlibpath_var=no
10435       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10436       export_dynamic_flag_spec='${wl}-E'
10437       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10438       # Instead, shared libraries are loaded at an image base (0x10000000 by
10439       # default) and relocated if they conflict, which is a slow very memory
10440       # consuming and fragmenting process.  To avoid this, we pick a random,
10441       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10442       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10443       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10444       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'
10445       ;;
10446
10447     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10448       tmp_diet=no
10449       if test "$host_os" = linux-dietlibc; then
10450         case $cc_basename in
10451           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10452         esac
10453       fi
10454       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10455          && test "$tmp_diet" = no
10456       then
10457         tmp_addflag=' $pic_flag'
10458         tmp_sharedflag='-shared'
10459         case $cc_basename,$host_cpu in
10460         pgcc*)                          # Portland Group C compiler
10461           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'
10462           tmp_addflag=' $pic_flag'
10463           ;;
10464         pgf77* | pgf90* | pgf95* | pgfortran*)
10465                                         # Portland Group f77 and f90 compilers
10466           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'
10467           tmp_addflag=' $pic_flag -Mnomain' ;;
10468         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10469           tmp_addflag=' -i_dynamic' ;;
10470         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10471           tmp_addflag=' -i_dynamic -nofor_main' ;;
10472         ifc* | ifort*)                  # Intel Fortran compiler
10473           tmp_addflag=' -nofor_main' ;;
10474         lf95*)                          # Lahey Fortran 8.1
10475           whole_archive_flag_spec=
10476           tmp_sharedflag='--shared' ;;
10477         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10478           tmp_sharedflag='-qmkshrobj'
10479           tmp_addflag= ;;
10480         nvcc*)  # Cuda Compiler Driver 2.2
10481           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'
10482           compiler_needs_object=yes
10483           ;;
10484         esac
10485         case `$CC -V 2>&1 | sed 5q` in
10486         *Sun\ C*)                       # Sun C 5.9
10487           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'
10488           compiler_needs_object=yes
10489           tmp_sharedflag='-G' ;;
10490         *Sun\ F*)                       # Sun Fortran 8.3
10491           tmp_sharedflag='-G' ;;
10492         esac
10493         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494
10495         if test "x$supports_anon_versioning" = xyes; then
10496           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10497             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10498             echo "local: *; };" >> $output_objdir/$libname.ver~
10499             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10500         fi
10501
10502         case $cc_basename in
10503         xlf* | bgf* | bgxlf* | mpixlf*)
10504           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10505           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10506           hardcode_libdir_flag_spec=
10507           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10508           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10509           if test "x$supports_anon_versioning" = xyes; then
10510             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10511               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10512               echo "local: *; };" >> $output_objdir/$libname.ver~
10513               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10514           fi
10515           ;;
10516         esac
10517       else
10518         ld_shlibs=no
10519       fi
10520       ;;
10521
10522     netbsd*)
10523       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10525         wlarc=
10526       else
10527         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10529       fi
10530       ;;
10531
10532     solaris*)
10533       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10534         ld_shlibs=no
10535         cat <<_LT_EOF 1>&2
10536
10537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10538 *** create shared libraries on Solaris systems.  Therefore, libtool
10539 *** is disabling shared libraries support.  We urge you to upgrade GNU
10540 *** binutils to release 2.9.1 or newer.  Another option is to modify
10541 *** your PATH or compiler configuration so that the native linker is
10542 *** used, and then restart.
10543
10544 _LT_EOF
10545       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10546         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10547         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10548       else
10549         ld_shlibs=no
10550       fi
10551       ;;
10552
10553     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10554       case `$LD -v 2>&1` in
10555         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10556         ld_shlibs=no
10557         cat <<_LT_EOF 1>&2
10558
10559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10560 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10561 *** is disabling shared libraries support.  We urge you to upgrade GNU
10562 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10563 *** your PATH or compiler configuration so that the native linker is
10564 *** used, and then restart.
10565
10566 _LT_EOF
10567         ;;
10568         *)
10569           # For security reasons, it is highly recommended that you always
10570           # use absolute paths for naming shared libraries, and exclude the
10571           # DT_RUNPATH tag from executables and libraries.  But doing so
10572           # requires that you compile everything twice, which is a pain.
10573           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10574             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10577           else
10578             ld_shlibs=no
10579           fi
10580         ;;
10581       esac
10582       ;;
10583
10584     sunos4*)
10585       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10586       wlarc=
10587       hardcode_direct=yes
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     *)
10592       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10593         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10595       else
10596         ld_shlibs=no
10597       fi
10598       ;;
10599     esac
10600
10601     if test "$ld_shlibs" = no; then
10602       runpath_var=
10603       hardcode_libdir_flag_spec=
10604       export_dynamic_flag_spec=
10605       whole_archive_flag_spec=
10606     fi
10607   else
10608     # PORTME fill in a description of your system's linker (not GNU ld)
10609     case $host_os in
10610     aix3*)
10611       allow_undefined_flag=unsupported
10612       always_export_symbols=yes
10613       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'
10614       # Note: this linker hardcodes the directories in LIBPATH if there
10615       # are no directories specified by -L.
10616       hardcode_minus_L=yes
10617       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10618         # Neither direct hardcoding nor static linking is supported with a
10619         # broken collect2.
10620         hardcode_direct=unsupported
10621       fi
10622       ;;
10623
10624     aix[4-9]*)
10625       if test "$host_cpu" = ia64; then
10626         # On IA64, the linker does run time linking by default, so we don't
10627         # have to do anything special.
10628         aix_use_runtimelinking=no
10629         exp_sym_flag='-Bexport'
10630         no_entry_flag=""
10631       else
10632         # If we're using GNU nm, then we don't want the "-C" option.
10633         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10634         # Also, AIX nm treats weak defined symbols like other global
10635         # defined symbols, whereas GNU nm marks them as "W".
10636         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10637           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'
10638         else
10639           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'
10640         fi
10641         aix_use_runtimelinking=no
10642
10643         # Test if we are trying to use run time linking or normal
10644         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10645         # need to do runtime linking.
10646         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10647           for ld_flag in $LDFLAGS; do
10648           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10649             aix_use_runtimelinking=yes
10650             break
10651           fi
10652           done
10653           ;;
10654         esac
10655
10656         exp_sym_flag='-bexport'
10657         no_entry_flag='-bnoentry'
10658       fi
10659
10660       # When large executables or shared objects are built, AIX ld can
10661       # have problems creating the table of contents.  If linking a library
10662       # or program results in "error TOC overflow" add -mminimal-toc to
10663       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10664       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10665
10666       archive_cmds=''
10667       hardcode_direct=yes
10668       hardcode_direct_absolute=yes
10669       hardcode_libdir_separator=':'
10670       link_all_deplibs=yes
10671       file_list_spec='${wl}-f,'
10672
10673       if test "$GCC" = yes; then
10674         case $host_os in aix4.[012]|aix4.[012].*)
10675         # We only want to do this on AIX 4.2 and lower, the check
10676         # below for broken collect2 doesn't work under 4.3+
10677           collect2name=`${CC} -print-prog-name=collect2`
10678           if test -f "$collect2name" &&
10679            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10680           then
10681           # We have reworked collect2
10682           :
10683           else
10684           # We have old collect2
10685           hardcode_direct=unsupported
10686           # It fails to find uninstalled libraries when the uninstalled
10687           # path is not listed in the libpath.  Setting hardcode_minus_L
10688           # to unsupported forces relinking
10689           hardcode_minus_L=yes
10690           hardcode_libdir_flag_spec='-L$libdir'
10691           hardcode_libdir_separator=
10692           fi
10693           ;;
10694         esac
10695         shared_flag='-shared'
10696         if test "$aix_use_runtimelinking" = yes; then
10697           shared_flag="$shared_flag "'${wl}-G'
10698         fi
10699       else
10700         # not using gcc
10701         if test "$host_cpu" = ia64; then
10702         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10703         # chokes on -Wl,-G. The following line is correct:
10704           shared_flag='-G'
10705         else
10706           if test "$aix_use_runtimelinking" = yes; then
10707             shared_flag='${wl}-G'
10708           else
10709             shared_flag='${wl}-bM:SRE'
10710           fi
10711         fi
10712       fi
10713
10714       export_dynamic_flag_spec='${wl}-bexpall'
10715       # It seems that -bexpall does not export symbols beginning with
10716       # underscore (_), so it is better to generate a list of symbols to export.
10717       always_export_symbols=yes
10718       if test "$aix_use_runtimelinking" = yes; then
10719         # Warning - without using the other runtime loading flags (-brtl),
10720         # -berok will link without error, but may produce a broken library.
10721         allow_undefined_flag='-berok'
10722         # Determine the default libpath from the value encoded in an
10723         # empty executable.
10724         if test "${lt_cv_aix_libpath+set}" = set; then
10725   aix_libpath=$lt_cv_aix_libpath
10726 else
10727   if test "${lt_cv_aix_libpath_+set}" = set; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h.  */
10732
10733 int
10734 main ()
10735 {
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742
10743   lt_aix_libpath_sed='
10744       /Import File Strings/,/^$/ {
10745           /^0/ {
10746               s/^0  *\([^ ]*\) *$/\1/
10747               p
10748           }
10749       }'
10750   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751   # Check for a 64-bit object if we didn't find anything.
10752   if test -z "$lt_cv_aix_libpath_"; then
10753     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754   fi
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757     conftest$ac_exeext conftest.$ac_ext
10758   if test -z "$lt_cv_aix_libpath_"; then
10759     lt_cv_aix_libpath_="/usr/lib:/lib"
10760   fi
10761
10762 fi
10763
10764   aix_libpath=$lt_cv_aix_libpath_
10765 fi
10766
10767         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10768         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"
10769       else
10770         if test "$host_cpu" = ia64; then
10771           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10772           allow_undefined_flag="-z nodefs"
10773           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"
10774         else
10775          # Determine the default libpath from the value encoded in an
10776          # empty executable.
10777          if test "${lt_cv_aix_libpath+set}" = set; then
10778   aix_libpath=$lt_cv_aix_libpath
10779 else
10780   if test "${lt_cv_aix_libpath_+set}" = set; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785
10786 int
10787 main ()
10788 {
10789
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795
10796   lt_aix_libpath_sed='
10797       /Import File Strings/,/^$/ {
10798           /^0/ {
10799               s/^0  *\([^ ]*\) *$/\1/
10800               p
10801           }
10802       }'
10803   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804   # Check for a 64-bit object if we didn't find anything.
10805   if test -z "$lt_cv_aix_libpath_"; then
10806     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807   fi
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810     conftest$ac_exeext conftest.$ac_ext
10811   if test -z "$lt_cv_aix_libpath_"; then
10812     lt_cv_aix_libpath_="/usr/lib:/lib"
10813   fi
10814
10815 fi
10816
10817   aix_libpath=$lt_cv_aix_libpath_
10818 fi
10819
10820          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10821           # Warning - without using the other run time loading flags,
10822           # -berok will link without error, but may produce a broken library.
10823           no_undefined_flag=' ${wl}-bernotok'
10824           allow_undefined_flag=' ${wl}-berok'
10825           if test "$with_gnu_ld" = yes; then
10826             # We only use this code for GNU lds that support --whole-archive.
10827             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10828           else
10829             # Exported symbols can be pulled into shared objects from archives
10830             whole_archive_flag_spec='$convenience'
10831           fi
10832           archive_cmds_need_lc=yes
10833           # This is similar to how AIX traditionally builds its shared libraries.
10834           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'
10835         fi
10836       fi
10837       ;;
10838
10839     amigaos*)
10840       case $host_cpu in
10841       powerpc)
10842             # see comment about AmigaOS4 .so support
10843             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844             archive_expsym_cmds=''
10845         ;;
10846       m68k)
10847             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)'
10848             hardcode_libdir_flag_spec='-L$libdir'
10849             hardcode_minus_L=yes
10850         ;;
10851       esac
10852       ;;
10853
10854     bsdi[45]*)
10855       export_dynamic_flag_spec=-rdynamic
10856       ;;
10857
10858     cygwin* | mingw* | pw32* | cegcc*)
10859       # When not using gcc, we currently assume that we are using
10860       # Microsoft Visual C++.
10861       # hardcode_libdir_flag_spec is actually meaningless, as there is
10862       # no search path for DLLs.
10863       case $cc_basename in
10864       cl*)
10865         # Native MSVC
10866         hardcode_libdir_flag_spec=' '
10867         allow_undefined_flag=unsupported
10868         always_export_symbols=yes
10869         file_list_spec='@'
10870         # Tell ltmain to make .lib files, not .a files.
10871         libext=lib
10872         # Tell ltmain to make .dll files, not .so files.
10873         shrext_cmds=".dll"
10874         # FIXME: Setting linknames here is a bad hack.
10875         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10876         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10877             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10878           else
10879             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10880           fi~
10881           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10882           linknames='
10883         # The linker will not automatically build a static lib if we build a DLL.
10884         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10885         enable_shared_with_static_runtimes=yes
10886         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10887         # Don't use ranlib
10888         old_postinstall_cmds='chmod 644 $oldlib'
10889         postlink_cmds='lt_outputfile="@OUTPUT@"~
10890           lt_tool_outputfile="@TOOL_OUTPUT@"~
10891           case $lt_outputfile in
10892             *.exe|*.EXE) ;;
10893             *)
10894               lt_outputfile="$lt_outputfile.exe"
10895               lt_tool_outputfile="$lt_tool_outputfile.exe"
10896               ;;
10897           esac~
10898           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10899             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10900             $RM "$lt_outputfile.manifest";
10901           fi'
10902         ;;
10903       *)
10904         # Assume MSVC wrapper
10905         hardcode_libdir_flag_spec=' '
10906         allow_undefined_flag=unsupported
10907         # Tell ltmain to make .lib files, not .a files.
10908         libext=lib
10909         # Tell ltmain to make .dll files, not .so files.
10910         shrext_cmds=".dll"
10911         # FIXME: Setting linknames here is a bad hack.
10912         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10913         # The linker will automatically build a .lib file if we build a DLL.
10914         old_archive_from_new_cmds='true'
10915         # FIXME: Should let the user specify the lib program.
10916         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10917         enable_shared_with_static_runtimes=yes
10918         ;;
10919       esac
10920       ;;
10921
10922     darwin* | rhapsody*)
10923
10924
10925   archive_cmds_need_lc=no
10926   hardcode_direct=no
10927   hardcode_automatic=yes
10928   hardcode_shlibpath_var=unsupported
10929   if test "$lt_cv_ld_force_load" = "yes"; then
10930     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\"`'
10931   else
10932     whole_archive_flag_spec=''
10933   fi
10934   link_all_deplibs=yes
10935   allow_undefined_flag="$_lt_dar_allow_undefined"
10936   case $cc_basename in
10937      ifort*) _lt_dar_can_shared=yes ;;
10938      *) _lt_dar_can_shared=$GCC ;;
10939   esac
10940   if test "$_lt_dar_can_shared" = "yes"; then
10941     output_verbose_link_cmd=func_echo_all
10942     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10943     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10944     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}"
10945     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}"
10946
10947   else
10948   ld_shlibs=no
10949   fi
10950
10951       ;;
10952
10953     dgux*)
10954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955       hardcode_libdir_flag_spec='-L$libdir'
10956       hardcode_shlibpath_var=no
10957       ;;
10958
10959     freebsd1*)
10960       ld_shlibs=no
10961       ;;
10962
10963     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10964     # support.  Future versions do this automatically, but an explicit c++rt0.o
10965     # does not break anything, and helps significantly (at the cost of a little
10966     # extra space).
10967     freebsd2.2*)
10968       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10969       hardcode_libdir_flag_spec='-R$libdir'
10970       hardcode_direct=yes
10971       hardcode_shlibpath_var=no
10972       ;;
10973
10974     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10975     freebsd2*)
10976       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10977       hardcode_direct=yes
10978       hardcode_minus_L=yes
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10983     freebsd* | dragonfly*)
10984       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10985       hardcode_libdir_flag_spec='-R$libdir'
10986       hardcode_direct=yes
10987       hardcode_shlibpath_var=no
10988       ;;
10989
10990     hpux9*)
10991       if test "$GCC" = yes; then
10992         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'
10993       else
10994         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'
10995       fi
10996       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10997       hardcode_libdir_separator=:
10998       hardcode_direct=yes
10999
11000       # hardcode_minus_L: Not really in the search PATH,
11001       # but as the default location of the library.
11002       hardcode_minus_L=yes
11003       export_dynamic_flag_spec='${wl}-E'
11004       ;;
11005
11006     hpux10*)
11007       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11008         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11009       else
11010         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11011       fi
11012       if test "$with_gnu_ld" = no; then
11013         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11014         hardcode_libdir_flag_spec_ld='+b $libdir'
11015         hardcode_libdir_separator=:
11016         hardcode_direct=yes
11017         hardcode_direct_absolute=yes
11018         export_dynamic_flag_spec='${wl}-E'
11019         # hardcode_minus_L: Not really in the search PATH,
11020         # but as the default location of the library.
11021         hardcode_minus_L=yes
11022       fi
11023       ;;
11024
11025     hpux11*)
11026       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11027         case $host_cpu in
11028         hppa*64*)
11029           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11030           ;;
11031         ia64*)
11032           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11033           ;;
11034         *)
11035           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11036           ;;
11037         esac
11038       else
11039         case $host_cpu in
11040         hppa*64*)
11041           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042           ;;
11043         ia64*)
11044           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11045           ;;
11046         *)
11047
11048           # Older versions of the 11.00 compiler do not understand -b yet
11049           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11051 $as_echo_n "checking if $CC understands -b... " >&6; }
11052 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   lt_cv_prog_compiler__b=no
11056    save_LDFLAGS="$LDFLAGS"
11057    LDFLAGS="$LDFLAGS -b"
11058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11060      # The linker can only warn and ignore the option if not recognized
11061      # So say no if there are warnings
11062      if test -s conftest.err; then
11063        # Append any errors to the config.log.
11064        cat conftest.err 1>&5
11065        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11067        if diff conftest.exp conftest.er2 >/dev/null; then
11068          lt_cv_prog_compiler__b=yes
11069        fi
11070      else
11071        lt_cv_prog_compiler__b=yes
11072      fi
11073    fi
11074    $RM -r conftest*
11075    LDFLAGS="$save_LDFLAGS"
11076
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11080
11081 if test x"$lt_cv_prog_compiler__b" = xyes; then
11082     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11083 else
11084     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11085 fi
11086
11087           ;;
11088         esac
11089       fi
11090       if test "$with_gnu_ld" = no; then
11091         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11092         hardcode_libdir_separator=:
11093
11094         case $host_cpu in
11095         hppa*64*|ia64*)
11096           hardcode_direct=no
11097           hardcode_shlibpath_var=no
11098           ;;
11099         *)
11100           hardcode_direct=yes
11101           hardcode_direct_absolute=yes
11102           export_dynamic_flag_spec='${wl}-E'
11103
11104           # hardcode_minus_L: Not really in the search PATH,
11105           # but as the default location of the library.
11106           hardcode_minus_L=yes
11107           ;;
11108         esac
11109       fi
11110       ;;
11111
11112     irix5* | irix6* | nonstopux*)
11113       if test "$GCC" = yes; then
11114         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'
11115         # Try to use the -exported_symbol ld option, if it does not
11116         # work, assume that -exports_file does not work either and
11117         # implicitly export all symbols.
11118         # This should be the same for all languages, so no per-tag cache variable.
11119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11121 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
11122   $as_echo_n "(cached) " >&6
11123 else
11124   save_LDFLAGS="$LDFLAGS"
11125            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11126            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h.  */
11128 int foo (void) { return 0; }
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131   lt_cv_irix_exported_symbol=yes
11132 else
11133   lt_cv_irix_exported_symbol=no
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136     conftest$ac_exeext conftest.$ac_ext
11137            LDFLAGS="$save_LDFLAGS"
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11141         if test "$lt_cv_irix_exported_symbol" = yes; then
11142           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'
11143         fi
11144       else
11145         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'
11146         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'
11147       fi
11148       archive_cmds_need_lc='no'
11149       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11150       hardcode_libdir_separator=:
11151       inherit_rpath=yes
11152       link_all_deplibs=yes
11153       ;;
11154
11155     netbsd*)
11156       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11157         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11158       else
11159         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11160       fi
11161       hardcode_libdir_flag_spec='-R$libdir'
11162       hardcode_direct=yes
11163       hardcode_shlibpath_var=no
11164       ;;
11165
11166     newsos6)
11167       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168       hardcode_direct=yes
11169       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11170       hardcode_libdir_separator=:
11171       hardcode_shlibpath_var=no
11172       ;;
11173
11174     *nto* | *qnx*)
11175       ;;
11176
11177     openbsd*)
11178       if test -f /usr/libexec/ld.so; then
11179         hardcode_direct=yes
11180         hardcode_shlibpath_var=no
11181         hardcode_direct_absolute=yes
11182         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11184           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11185           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11186           export_dynamic_flag_spec='${wl}-E'
11187         else
11188           case $host_os in
11189            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11190              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11191              hardcode_libdir_flag_spec='-R$libdir'
11192              ;;
11193            *)
11194              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11195              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11196              ;;
11197           esac
11198         fi
11199       else
11200         ld_shlibs=no
11201       fi
11202       ;;
11203
11204     os2*)
11205       hardcode_libdir_flag_spec='-L$libdir'
11206       hardcode_minus_L=yes
11207       allow_undefined_flag=unsupported
11208       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'
11209       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11210       ;;
11211
11212     osf3*)
11213       if test "$GCC" = yes; then
11214         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11215         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'
11216       else
11217         allow_undefined_flag=' -expect_unresolved \*'
11218         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'
11219       fi
11220       archive_cmds_need_lc='no'
11221       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11222       hardcode_libdir_separator=:
11223       ;;
11224
11225     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11226       if test "$GCC" = yes; then
11227         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11228         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'
11229         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230       else
11231         allow_undefined_flag=' -expect_unresolved \*'
11232         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'
11233         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~
11234         $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'
11235
11236         # Both c and cxx compiler support -rpath directly
11237         hardcode_libdir_flag_spec='-rpath $libdir'
11238       fi
11239       archive_cmds_need_lc='no'
11240       hardcode_libdir_separator=:
11241       ;;
11242
11243     solaris*)
11244       no_undefined_flag=' -z defs'
11245       if test "$GCC" = yes; then
11246         wlarc='${wl}'
11247         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11248         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11249           $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'
11250       else
11251         case `$CC -V 2>&1` in
11252         *"Compilers 5.0"*)
11253           wlarc=''
11254           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11256           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11257           ;;
11258         *)
11259           wlarc='${wl}'
11260           archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11263           ;;
11264         esac
11265       fi
11266       hardcode_libdir_flag_spec='-R$libdir'
11267       hardcode_shlibpath_var=no
11268       case $host_os in
11269       solaris2.[0-5] | solaris2.[0-5].*) ;;
11270       *)
11271         # The compiler driver will combine and reorder linker options,
11272         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11273         # but is careful enough not to reorder.
11274         # Supported since Solaris 2.6 (maybe 2.5.1?)
11275         if test "$GCC" = yes; then
11276           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11277         else
11278           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11279         fi
11280         ;;
11281       esac
11282       link_all_deplibs=yes
11283       ;;
11284
11285     sunos4*)
11286       if test "x$host_vendor" = xsequent; then
11287         # Use $CC to link under sequent, because it throws in some extra .o
11288         # files that make .init and .fini sections work.
11289         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11290       else
11291         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11292       fi
11293       hardcode_libdir_flag_spec='-L$libdir'
11294       hardcode_direct=yes
11295       hardcode_minus_L=yes
11296       hardcode_shlibpath_var=no
11297       ;;
11298
11299     sysv4)
11300       case $host_vendor in
11301         sni)
11302           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303           hardcode_direct=yes # is this really true???
11304         ;;
11305         siemens)
11306           ## LD is ld it makes a PLAMLIB
11307           ## CC just makes a GrossModule.
11308           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11309           reload_cmds='$CC -r -o $output$reload_objs'
11310           hardcode_direct=no
11311         ;;
11312         motorola)
11313           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11315         ;;
11316       esac
11317       runpath_var='LD_RUN_PATH'
11318       hardcode_shlibpath_var=no
11319       ;;
11320
11321     sysv4.3*)
11322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323       hardcode_shlibpath_var=no
11324       export_dynamic_flag_spec='-Bexport'
11325       ;;
11326
11327     sysv4*MP*)
11328       if test -d /usr/nec; then
11329         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330         hardcode_shlibpath_var=no
11331         runpath_var=LD_RUN_PATH
11332         hardcode_runpath_var=yes
11333         ld_shlibs=yes
11334       fi
11335       ;;
11336
11337     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11338       no_undefined_flag='${wl}-z,text'
11339       archive_cmds_need_lc=no
11340       hardcode_shlibpath_var=no
11341       runpath_var='LD_RUN_PATH'
11342
11343       if test "$GCC" = yes; then
11344         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346       else
11347         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349       fi
11350       ;;
11351
11352     sysv5* | sco3.2v5* | sco5v6*)
11353       # Note: We can NOT use -z defs as we might desire, because we do not
11354       # link with -lc, and that would cause any symbols used from libc to
11355       # always be unresolved, which means just about no library would
11356       # ever link correctly.  If we're not using GNU ld we use -z text
11357       # though, which does catch some bad symbols but isn't as heavy-handed
11358       # as -z defs.
11359       no_undefined_flag='${wl}-z,text'
11360       allow_undefined_flag='${wl}-z,nodefs'
11361       archive_cmds_need_lc=no
11362       hardcode_shlibpath_var=no
11363       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11364       hardcode_libdir_separator=':'
11365       link_all_deplibs=yes
11366       export_dynamic_flag_spec='${wl}-Bexport'
11367       runpath_var='LD_RUN_PATH'
11368
11369       if test "$GCC" = yes; then
11370         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372       else
11373         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375       fi
11376       ;;
11377
11378     uts4*)
11379       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11380       hardcode_libdir_flag_spec='-L$libdir'
11381       hardcode_shlibpath_var=no
11382       ;;
11383
11384     *)
11385       ld_shlibs=no
11386       ;;
11387     esac
11388
11389     if test x$host_vendor = xsni; then
11390       case $host in
11391       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11392         export_dynamic_flag_spec='${wl}-Blargedynsym'
11393         ;;
11394       esac
11395     fi
11396   fi
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11399 $as_echo "$ld_shlibs" >&6; }
11400 test "$ld_shlibs" = no && can_build_shared=no
11401
11402 with_gnu_ld=$with_gnu_ld
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 #
11419 # Do we need to explicitly link libc?
11420 #
11421 case "x$archive_cmds_need_lc" in
11422 x|xyes)
11423   # Assume -lc should be added
11424   archive_cmds_need_lc=yes
11425
11426   if test "$enable_shared" = yes && test "$GCC" = yes; then
11427     case $archive_cmds in
11428     *'~'*)
11429       # FIXME: we may have to deal with multi-command sequences.
11430       ;;
11431     '$CC '*)
11432       # Test whether the compiler implicitly links with -lc since on some
11433       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11434       # to ld, don't add -lc before -lgcc.
11435       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11436 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11437 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   $RM conftest*
11441         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11442
11443         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11444   (eval $ac_compile) 2>&5
11445   ac_status=$?
11446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447   test $ac_status = 0; } 2>conftest.err; then
11448           soname=conftest
11449           lib=conftest
11450           libobjs=conftest.$ac_objext
11451           deplibs=
11452           wl=$lt_prog_compiler_wl
11453           pic_flag=$lt_prog_compiler_pic
11454           compiler_flags=-v
11455           linker_flags=-v
11456           verstring=
11457           output_objdir=.
11458           libname=conftest
11459           lt_save_allow_undefined_flag=$allow_undefined_flag
11460           allow_undefined_flag=
11461           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11462   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11463   ac_status=$?
11464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465   test $ac_status = 0; }
11466           then
11467             lt_cv_archive_cmds_need_lc=no
11468           else
11469             lt_cv_archive_cmds_need_lc=yes
11470           fi
11471           allow_undefined_flag=$lt_save_allow_undefined_flag
11472         else
11473           cat conftest.err 1>&5
11474         fi
11475         $RM conftest*
11476
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11479 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11480       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11481       ;;
11482     esac
11483   fi
11484   ;;
11485 esac
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11645
11646 if test "$GCC" = yes; then
11647   case $host_os in
11648     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11649     *) lt_awk_arg="/^libraries:/" ;;
11650   esac
11651   case $host_os in
11652     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11653     *) lt_sed_strip_eq="s,=/,/,g" ;;
11654   esac
11655   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11656   case $lt_search_path_spec in
11657   *\;*)
11658     # if the path contains ";" then we assume it to be the separator
11659     # otherwise default to the standard path separator (i.e. ":") - it is
11660     # assumed that no part of a normal pathname contains ";" but that should
11661     # okay in the real world where ";" in dirpaths is itself problematic.
11662     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11663     ;;
11664   *)
11665     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11666     ;;
11667   esac
11668   # Ok, now we have the path, separated by spaces, we can step through it
11669   # and add multilib dir if necessary.
11670   lt_tmp_lt_search_path_spec=
11671   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11672   for lt_sys_path in $lt_search_path_spec; do
11673     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11674       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11675     else
11676       test -d "$lt_sys_path" && \
11677         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11678     fi
11679   done
11680   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11681 BEGIN {RS=" "; FS="/|\n";} {
11682   lt_foo="";
11683   lt_count=0;
11684   for (lt_i = NF; lt_i > 0; lt_i--) {
11685     if ($lt_i != "" && $lt_i != ".") {
11686       if ($lt_i == "..") {
11687         lt_count++;
11688       } else {
11689         if (lt_count == 0) {
11690           lt_foo="/" $lt_i lt_foo;
11691         } else {
11692           lt_count--;
11693         }
11694       }
11695     }
11696   }
11697   if (lt_foo != "") { lt_freq[lt_foo]++; }
11698   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11699 }'`
11700   # AWK program above erroneously prepends '/' to C:/dos/paths
11701   # for these hosts.
11702   case $host_os in
11703     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11704       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11705   esac
11706   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11707 else
11708   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11709 fi
11710 library_names_spec=
11711 libname_spec='lib$name'
11712 soname_spec=
11713 shrext_cmds=".so"
11714 postinstall_cmds=
11715 postuninstall_cmds=
11716 finish_cmds=
11717 finish_eval=
11718 shlibpath_var=
11719 shlibpath_overrides_runpath=unknown
11720 version_type=none
11721 dynamic_linker="$host_os ld.so"
11722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11723 need_lib_prefix=unknown
11724 hardcode_into_libs=no
11725
11726 # when you set need_version to no, make sure it does not cause -set_version
11727 # flags to be left without arguments
11728 need_version=unknown
11729
11730 case $host_os in
11731 aix3*)
11732   version_type=linux
11733   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11734   shlibpath_var=LIBPATH
11735
11736   # AIX 3 has no versioning support, so we append a major version to the name.
11737   soname_spec='${libname}${release}${shared_ext}$major'
11738   ;;
11739
11740 aix[4-9]*)
11741   version_type=linux
11742   need_lib_prefix=no
11743   need_version=no
11744   hardcode_into_libs=yes
11745   if test "$host_cpu" = ia64; then
11746     # AIX 5 supports IA64
11747     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11748     shlibpath_var=LD_LIBRARY_PATH
11749   else
11750     # With GCC up to 2.95.x, collect2 would create an import file
11751     # for dependence libraries.  The import file would start with
11752     # the line `#! .'.  This would cause the generated library to
11753     # depend on `.', always an invalid library.  This was fixed in
11754     # development snapshots of GCC prior to 3.0.
11755     case $host_os in
11756       aix4 | aix4.[01] | aix4.[01].*)
11757       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11758            echo ' yes '
11759            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11760         :
11761       else
11762         can_build_shared=no
11763       fi
11764       ;;
11765     esac
11766     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11767     # soname into executable. Probably we can add versioning support to
11768     # collect2, so additional links can be useful in future.
11769     if test "$aix_use_runtimelinking" = yes; then
11770       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11771       # instead of lib<name>.a to let people know that these are not
11772       # typical AIX shared libraries.
11773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774     else
11775       # We preserve .a as extension for shared libraries through AIX4.2
11776       # and later when we are not doing run time linking.
11777       library_names_spec='${libname}${release}.a $libname.a'
11778       soname_spec='${libname}${release}${shared_ext}$major'
11779     fi
11780     shlibpath_var=LIBPATH
11781   fi
11782   ;;
11783
11784 amigaos*)
11785   case $host_cpu in
11786   powerpc)
11787     # Since July 2007 AmigaOS4 officially supports .so libraries.
11788     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790     ;;
11791   m68k)
11792     library_names_spec='$libname.ixlibrary $libname.a'
11793     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11794     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'
11795     ;;
11796   esac
11797   ;;
11798
11799 beos*)
11800   library_names_spec='${libname}${shared_ext}'
11801   dynamic_linker="$host_os ld.so"
11802   shlibpath_var=LIBRARY_PATH
11803   ;;
11804
11805 bsdi[45]*)
11806   version_type=linux
11807   need_version=no
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809   soname_spec='${libname}${release}${shared_ext}$major'
11810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11814   # the default ld.so.conf also contains /usr/contrib/lib and
11815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11816   # libtool to hard-code these into programs
11817   ;;
11818
11819 cygwin* | mingw* | pw32* | cegcc*)
11820   version_type=windows
11821   shrext_cmds=".dll"
11822   need_version=no
11823   need_lib_prefix=no
11824
11825   case $GCC,$cc_basename in
11826   yes,*)
11827     # gcc
11828     library_names_spec='$libname.dll.a'
11829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830     postinstall_cmds='base_file=`basename \${file}`~
11831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11832       dldir=$destdir/`dirname \$dlpath`~
11833       test -d \$dldir || mkdir -p \$dldir~
11834       $install_prog $dir/$dlname \$dldir/$dlname~
11835       chmod a+x \$dldir/$dlname~
11836       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11837         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11838       fi'
11839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11840       dlpath=$dir/\$dldll~
11841        $RM \$dlpath'
11842     shlibpath_overrides_runpath=yes
11843
11844     case $host_os in
11845     cygwin*)
11846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11848
11849       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11850       ;;
11851     mingw* | cegcc*)
11852       # MinGW DLLs use traditional 'lib' prefix
11853       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11854       ;;
11855     pw32*)
11856       # pw32 DLLs use 'pw' prefix rather than 'lib'
11857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11858       ;;
11859     esac
11860     dynamic_linker='Win32 ld.exe'
11861     ;;
11862
11863   *,cl*)
11864     # Native MSVC
11865     libname_spec='$name'
11866     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867     library_names_spec='${libname}.dll.lib'
11868
11869     case $build_os in
11870     mingw*)
11871       sys_lib_search_path_spec=
11872       lt_save_ifs=$IFS
11873       IFS=';'
11874       for lt_path in $LIB
11875       do
11876         IFS=$lt_save_ifs
11877         # Let DOS variable expansion print the short 8.3 style file name.
11878         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11879         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11880       done
11881       IFS=$lt_save_ifs
11882       # Convert to MSYS style.
11883       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11884       ;;
11885     cygwin*)
11886       # Convert to unix form, then to dos form, then back to unix form
11887       # but this time dos style (no spaces!) so that the unix form looks
11888       # like /cygdrive/c/PROGRA~1:/cygdr...
11889       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11890       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11891       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11892       ;;
11893     *)
11894       sys_lib_search_path_spec="$LIB"
11895       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11896         # It is most probably a Windows format PATH.
11897         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11898       else
11899         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11900       fi
11901       # FIXME: find the short name or the path components, as spaces are
11902       # common. (e.g. "Program Files" -> "PROGRA~1")
11903       ;;
11904     esac
11905
11906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11907     postinstall_cmds='base_file=`basename \${file}`~
11908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11909       dldir=$destdir/`dirname \$dlpath`~
11910       test -d \$dldir || mkdir -p \$dldir~
11911       $install_prog $dir/$dlname \$dldir/$dlname'
11912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11913       dlpath=$dir/\$dldll~
11914        $RM \$dlpath'
11915     shlibpath_overrides_runpath=yes
11916     dynamic_linker='Win32 link.exe'
11917     ;;
11918
11919   *)
11920     # Assume MSVC wrapper
11921     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11922     dynamic_linker='Win32 ld.exe'
11923     ;;
11924   esac
11925   # FIXME: first we should search . and the directory the executable is in
11926   shlibpath_var=PATH
11927   ;;
11928
11929 darwin* | rhapsody*)
11930   dynamic_linker="$host_os dyld"
11931   version_type=darwin
11932   need_lib_prefix=no
11933   need_version=no
11934   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11935   soname_spec='${libname}${release}${major}$shared_ext'
11936   shlibpath_overrides_runpath=yes
11937   shlibpath_var=DYLD_LIBRARY_PATH
11938   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11939
11940   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11942   ;;
11943
11944 dgux*)
11945   version_type=linux
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   ;;
11952
11953 freebsd1*)
11954   dynamic_linker=no
11955   ;;
11956
11957 freebsd* | dragonfly*)
11958   # DragonFly does not have aout.  When/if they implement a new
11959   # versioning mechanism, adjust this.
11960   if test -x /usr/bin/objformat; then
11961     objformat=`/usr/bin/objformat`
11962   else
11963     case $host_os in
11964     freebsd[123]*) objformat=aout ;;
11965     *) objformat=elf ;;
11966     esac
11967   fi
11968   version_type=freebsd-$objformat
11969   case $version_type in
11970     freebsd-elf*)
11971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11972       need_version=no
11973       need_lib_prefix=no
11974       ;;
11975     freebsd-*)
11976       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11977       need_version=yes
11978       ;;
11979   esac
11980   shlibpath_var=LD_LIBRARY_PATH
11981   case $host_os in
11982   freebsd2*)
11983     shlibpath_overrides_runpath=yes
11984     ;;
11985   freebsd3.[01]* | freebsdelf3.[01]*)
11986     shlibpath_overrides_runpath=yes
11987     hardcode_into_libs=yes
11988     ;;
11989   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11990   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11991     shlibpath_overrides_runpath=no
11992     hardcode_into_libs=yes
11993     ;;
11994   *) # from 4.6 on, and DragonFly
11995     shlibpath_overrides_runpath=yes
11996     hardcode_into_libs=yes
11997     ;;
11998   esac
11999   ;;
12000
12001 gnu*)
12002   version_type=linux
12003   need_lib_prefix=no
12004   need_version=no
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12006   soname_spec='${libname}${release}${shared_ext}$major'
12007   shlibpath_var=LD_LIBRARY_PATH
12008   hardcode_into_libs=yes
12009   ;;
12010
12011 haiku*)
12012   version_type=linux
12013   need_lib_prefix=no
12014   need_version=no
12015   dynamic_linker="$host_os runtime_loader"
12016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12017   soname_spec='${libname}${release}${shared_ext}$major'
12018   shlibpath_var=LIBRARY_PATH
12019   shlibpath_overrides_runpath=yes
12020   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12021   hardcode_into_libs=yes
12022   ;;
12023
12024 hpux9* | hpux10* | hpux11*)
12025   # Give a soname corresponding to the major version so that dld.sl refuses to
12026   # link against other versions.
12027   version_type=sunos
12028   need_lib_prefix=no
12029   need_version=no
12030   case $host_cpu in
12031   ia64*)
12032     shrext_cmds='.so'
12033     hardcode_into_libs=yes
12034     dynamic_linker="$host_os dld.so"
12035     shlibpath_var=LD_LIBRARY_PATH
12036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038     soname_spec='${libname}${release}${shared_ext}$major'
12039     if test "X$HPUX_IA64_MODE" = X32; then
12040       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12041     else
12042       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12043     fi
12044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12045     ;;
12046   hppa*64*)
12047     shrext_cmds='.sl'
12048     hardcode_into_libs=yes
12049     dynamic_linker="$host_os dld.sl"
12050     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053     soname_spec='${libname}${release}${shared_ext}$major'
12054     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056     ;;
12057   *)
12058     shrext_cmds='.sl'
12059     dynamic_linker="$host_os dld.sl"
12060     shlibpath_var=SHLIB_PATH
12061     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063     soname_spec='${libname}${release}${shared_ext}$major'
12064     ;;
12065   esac
12066   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067   postinstall_cmds='chmod 555 $lib'
12068   # or fails outright, so override atomically:
12069   install_override_mode=555
12070   ;;
12071
12072 interix[3-9]*)
12073   version_type=linux
12074   need_lib_prefix=no
12075   need_version=no
12076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12077   soname_spec='${libname}${release}${shared_ext}$major'
12078   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079   shlibpath_var=LD_LIBRARY_PATH
12080   shlibpath_overrides_runpath=no
12081   hardcode_into_libs=yes
12082   ;;
12083
12084 irix5* | irix6* | nonstopux*)
12085   case $host_os in
12086     nonstopux*) version_type=nonstopux ;;
12087     *)
12088         if test "$lt_cv_prog_gnu_ld" = yes; then
12089                 version_type=linux
12090         else
12091                 version_type=irix
12092         fi ;;
12093   esac
12094   need_lib_prefix=no
12095   need_version=no
12096   soname_spec='${libname}${release}${shared_ext}$major'
12097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12098   case $host_os in
12099   irix5* | nonstopux*)
12100     libsuff= shlibsuff=
12101     ;;
12102   *)
12103     case $LD in # libtool.m4 will add one of these switches to LD
12104     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105       libsuff= shlibsuff= libmagic=32-bit;;
12106     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107       libsuff=32 shlibsuff=N32 libmagic=N32;;
12108     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110     *) libsuff= shlibsuff= libmagic=never-match;;
12111     esac
12112     ;;
12113   esac
12114   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115   shlibpath_overrides_runpath=no
12116   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12117   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12118   hardcode_into_libs=yes
12119   ;;
12120
12121 # No shared lib support for Linux oldld, aout, or coff.
12122 linux*oldld* | linux*aout* | linux*coff*)
12123   dynamic_linker=no
12124   ;;
12125
12126 # This must be Linux ELF.
12127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12128   version_type=linux
12129   need_lib_prefix=no
12130   need_version=no
12131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132   soname_spec='${libname}${release}${shared_ext}$major'
12133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12134   shlibpath_var=LD_LIBRARY_PATH
12135   shlibpath_overrides_runpath=no
12136
12137   # Some binutils ld are patched to set DT_RUNPATH
12138   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   lt_cv_shlibpath_overrides_runpath=no
12142     save_LDFLAGS=$LDFLAGS
12143     save_libdir=$libdir
12144     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12145          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148
12149 int
12150 main ()
12151 {
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12159   lt_cv_shlibpath_overrides_runpath=yes
12160 fi
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163     conftest$ac_exeext conftest.$ac_ext
12164     LDFLAGS=$save_LDFLAGS
12165     libdir=$save_libdir
12166
12167 fi
12168
12169   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12170
12171   # This implies no fast_install, which is unacceptable.
12172   # Some rework will be needed to allow for fast_install
12173   # before this can be enabled.
12174   hardcode_into_libs=yes
12175
12176   # Append ld.so.conf contents to the search path
12177   if test -f /etc/ld.so.conf; then
12178     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' ' '`
12179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12180   fi
12181
12182   # We used to test for /lib/ld.so.1 and disable shared libraries on
12183   # powerpc, because MkLinux only supported shared libraries with the
12184   # GNU dynamic linker.  Since this was broken with cross compilers,
12185   # most powerpc-linux boxes support dynamic linking these days and
12186   # people can always --disable-shared, the test was removed, and we
12187   # assume the GNU/Linux dynamic linker is in use.
12188   dynamic_linker='GNU/Linux ld.so'
12189   ;;
12190
12191 netbsd*)
12192   version_type=sunos
12193   need_lib_prefix=no
12194   need_version=no
12195   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198     dynamic_linker='NetBSD (a.out) ld.so'
12199   else
12200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201     soname_spec='${libname}${release}${shared_ext}$major'
12202     dynamic_linker='NetBSD ld.elf_so'
12203   fi
12204   shlibpath_var=LD_LIBRARY_PATH
12205   shlibpath_overrides_runpath=yes
12206   hardcode_into_libs=yes
12207   ;;
12208
12209 newsos6)
12210   version_type=linux
12211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212   shlibpath_var=LD_LIBRARY_PATH
12213   shlibpath_overrides_runpath=yes
12214   ;;
12215
12216 *nto* | *qnx*)
12217   version_type=qnx
12218   need_lib_prefix=no
12219   need_version=no
12220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221   soname_spec='${libname}${release}${shared_ext}$major'
12222   shlibpath_var=LD_LIBRARY_PATH
12223   shlibpath_overrides_runpath=no
12224   hardcode_into_libs=yes
12225   dynamic_linker='ldqnx.so'
12226   ;;
12227
12228 openbsd*)
12229   version_type=sunos
12230   sys_lib_dlsearch_path_spec="/usr/lib"
12231   need_lib_prefix=no
12232   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12233   case $host_os in
12234     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12235     *)                          need_version=no  ;;
12236   esac
12237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239   shlibpath_var=LD_LIBRARY_PATH
12240   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12241     case $host_os in
12242       openbsd2.[89] | openbsd2.[89].*)
12243         shlibpath_overrides_runpath=no
12244         ;;
12245       *)
12246         shlibpath_overrides_runpath=yes
12247         ;;
12248       esac
12249   else
12250     shlibpath_overrides_runpath=yes
12251   fi
12252   ;;
12253
12254 os2*)
12255   libname_spec='$name'
12256   shrext_cmds=".dll"
12257   need_lib_prefix=no
12258   library_names_spec='$libname${shared_ext} $libname.a'
12259   dynamic_linker='OS/2 ld.exe'
12260   shlibpath_var=LIBPATH
12261   ;;
12262
12263 osf3* | osf4* | osf5*)
12264   version_type=osf
12265   need_lib_prefix=no
12266   need_version=no
12267   soname_spec='${libname}${release}${shared_ext}$major'
12268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12271   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12272   ;;
12273
12274 rdos*)
12275   dynamic_linker=no
12276   ;;
12277
12278 solaris*)
12279   version_type=linux
12280   need_lib_prefix=no
12281   need_version=no
12282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283   soname_spec='${libname}${release}${shared_ext}$major'
12284   shlibpath_var=LD_LIBRARY_PATH
12285   shlibpath_overrides_runpath=yes
12286   hardcode_into_libs=yes
12287   # ldd complains unless libraries are executable
12288   postinstall_cmds='chmod +x $lib'
12289   ;;
12290
12291 sunos4*)
12292   version_type=sunos
12293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295   shlibpath_var=LD_LIBRARY_PATH
12296   shlibpath_overrides_runpath=yes
12297   if test "$with_gnu_ld" = yes; then
12298     need_lib_prefix=no
12299   fi
12300   need_version=yes
12301   ;;
12302
12303 sysv4 | sysv4.3*)
12304   version_type=linux
12305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   shlibpath_var=LD_LIBRARY_PATH
12308   case $host_vendor in
12309     sni)
12310       shlibpath_overrides_runpath=no
12311       need_lib_prefix=no
12312       runpath_var=LD_RUN_PATH
12313       ;;
12314     siemens)
12315       need_lib_prefix=no
12316       ;;
12317     motorola)
12318       need_lib_prefix=no
12319       need_version=no
12320       shlibpath_overrides_runpath=no
12321       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12322       ;;
12323   esac
12324   ;;
12325
12326 sysv4*MP*)
12327   if test -d /usr/nec ;then
12328     version_type=linux
12329     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12330     soname_spec='$libname${shared_ext}.$major'
12331     shlibpath_var=LD_LIBRARY_PATH
12332   fi
12333   ;;
12334
12335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12336   version_type=freebsd-elf
12337   need_lib_prefix=no
12338   need_version=no
12339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12340   soname_spec='${libname}${release}${shared_ext}$major'
12341   shlibpath_var=LD_LIBRARY_PATH
12342   shlibpath_overrides_runpath=yes
12343   hardcode_into_libs=yes
12344   if test "$with_gnu_ld" = yes; then
12345     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12346   else
12347     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12348     case $host_os in
12349       sco3.2v5*)
12350         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351         ;;
12352     esac
12353   fi
12354   sys_lib_dlsearch_path_spec='/usr/lib'
12355   ;;
12356
12357 tpf*)
12358   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12359   version_type=linux
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363   shlibpath_var=LD_LIBRARY_PATH
12364   shlibpath_overrides_runpath=no
12365   hardcode_into_libs=yes
12366   ;;
12367
12368 uts4*)
12369   version_type=linux
12370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371   soname_spec='${libname}${release}${shared_ext}$major'
12372   shlibpath_var=LD_LIBRARY_PATH
12373   ;;
12374
12375 *)
12376   dynamic_linker=no
12377   ;;
12378 esac
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12380 $as_echo "$dynamic_linker" >&6; }
12381 test "$dynamic_linker" = no && can_build_shared=no
12382
12383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12384 if test "$GCC" = yes; then
12385   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12386 fi
12387
12388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12389   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12390 fi
12391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12392   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12393 fi
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12488 hardcode_action=
12489 if test -n "$hardcode_libdir_flag_spec" ||
12490    test -n "$runpath_var" ||
12491    test "X$hardcode_automatic" = "Xyes" ; then
12492
12493   # We can hardcode non-existent directories.
12494   if test "$hardcode_direct" != no &&
12495      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12496      # have to relink, otherwise we might link with an installed library
12497      # when we should be linking with a yet-to-be-installed one
12498      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12499      test "$hardcode_minus_L" != no; then
12500     # Linking always hardcodes the temporary library directory.
12501     hardcode_action=relink
12502   else
12503     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12504     hardcode_action=immediate
12505   fi
12506 else
12507   # We cannot hardcode anything, or else we can only hardcode existing
12508   # directories.
12509   hardcode_action=unsupported
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12512 $as_echo "$hardcode_action" >&6; }
12513
12514 if test "$hardcode_action" = relink ||
12515    test "$inherit_rpath" = yes; then
12516   # Fast installation is not supported
12517   enable_fast_install=no
12518 elif test "$shlibpath_overrides_runpath" = yes ||
12519      test "$enable_shared" = no; then
12520   # Fast installation is not necessary
12521   enable_fast_install=needless
12522 fi
12523
12524
12525
12526
12527
12528
12529   if test "x$enable_dlopen" != xyes; then
12530   enable_dlopen=unknown
12531   enable_dlopen_self=unknown
12532   enable_dlopen_self_static=unknown
12533 else
12534   lt_cv_dlopen=no
12535   lt_cv_dlopen_libs=
12536
12537   case $host_os in
12538   beos*)
12539     lt_cv_dlopen="load_add_on"
12540     lt_cv_dlopen_libs=
12541     lt_cv_dlopen_self=yes
12542     ;;
12543
12544   mingw* | pw32* | cegcc*)
12545     lt_cv_dlopen="LoadLibrary"
12546     lt_cv_dlopen_libs=
12547     ;;
12548
12549   cygwin*)
12550     lt_cv_dlopen="dlopen"
12551     lt_cv_dlopen_libs=
12552     ;;
12553
12554   darwin*)
12555   # if libdl is installed we need to link against it
12556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561   ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ldl  $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h.  */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567    Use char because int might match the return type of a GCC
12568    builtin and then its argument prototype would still apply.  */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char dlopen ();
12573 int
12574 main ()
12575 {
12576 return dlopen ();
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_link "$LINENO"; then :
12582   ac_cv_lib_dl_dlopen=yes
12583 else
12584   ac_cv_lib_dl_dlopen=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587     conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12592 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12593   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12594 else
12595
12596     lt_cv_dlopen="dyld"
12597     lt_cv_dlopen_libs=
12598     lt_cv_dlopen_self=yes
12599
12600 fi
12601
12602     ;;
12603
12604   *)
12605     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12606 if test "x$ac_cv_func_shl_load" = x""yes; then :
12607   lt_cv_dlopen="shl_load"
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12610 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   ac_check_lib_save_LIBS=$LIBS
12615 LIBS="-ldld  $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h.  */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620    Use char because int might match the return type of a GCC
12621    builtin and then its argument prototype would still apply.  */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char shl_load ();
12626 int
12627 main ()
12628 {
12629 return shl_load ();
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635   ac_cv_lib_dld_shl_load=yes
12636 else
12637   ac_cv_lib_dld_shl_load=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640     conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12644 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12645 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12646   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12647 else
12648   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12649 if test "x$ac_cv_func_dlopen" = x""yes; then :
12650   lt_cv_dlopen="dlopen"
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-ldl  $LIBS"
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663    Use char because int might match the return type of a GCC
12664    builtin and then its argument prototype would still apply.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char dlopen ();
12669 int
12670 main ()
12671 {
12672 return dlopen ();
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_link "$LINENO"; then :
12678   ac_cv_lib_dl_dlopen=yes
12679 else
12680   ac_cv_lib_dl_dlopen=no
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683     conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12687 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12688 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12689   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12692 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12693 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-lsvld  $LIBS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700
12701 /* Override any GCC internal prototype to avoid an error.
12702    Use char because int might match the return type of a GCC
12703    builtin and then its argument prototype would still apply.  */
12704 #ifdef __cplusplus
12705 extern "C"
12706 #endif
12707 char dlopen ();
12708 int
12709 main ()
12710 {
12711 return dlopen ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_lib_svld_dlopen=yes
12718 else
12719   ac_cv_lib_svld_dlopen=no
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12726 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12727 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12729 else
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12731 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-ldld  $LIBS"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char dld_link ();
12747 int
12748 main ()
12749 {
12750 return dld_link ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756   ac_cv_lib_dld_dld_link=yes
12757 else
12758   ac_cv_lib_dld_dld_link=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext \
12761     conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12765 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12766 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12767   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12768 fi
12769
12770
12771 fi
12772
12773
12774 fi
12775
12776
12777 fi
12778
12779
12780 fi
12781
12782
12783 fi
12784
12785     ;;
12786   esac
12787
12788   if test "x$lt_cv_dlopen" != xno; then
12789     enable_dlopen=yes
12790   else
12791     enable_dlopen=no
12792   fi
12793
12794   case $lt_cv_dlopen in
12795   dlopen)
12796     save_CPPFLAGS="$CPPFLAGS"
12797     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12798
12799     save_LDFLAGS="$LDFLAGS"
12800     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12801
12802     save_LIBS="$LIBS"
12803     LIBS="$lt_cv_dlopen_libs $LIBS"
12804
12805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12806 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12807 if test "${lt_cv_dlopen_self+set}" = set; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810           if test "$cross_compiling" = yes; then :
12811   lt_cv_dlopen_self=cross
12812 else
12813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12814   lt_status=$lt_dlunknown
12815   cat > conftest.$ac_ext <<_LT_EOF
12816 #line $LINENO "configure"
12817 #include "confdefs.h"
12818
12819 #if HAVE_DLFCN_H
12820 #include <dlfcn.h>
12821 #endif
12822
12823 #include <stdio.h>
12824
12825 #ifdef RTLD_GLOBAL
12826 #  define LT_DLGLOBAL           RTLD_GLOBAL
12827 #else
12828 #  ifdef DL_GLOBAL
12829 #    define LT_DLGLOBAL         DL_GLOBAL
12830 #  else
12831 #    define LT_DLGLOBAL         0
12832 #  endif
12833 #endif
12834
12835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12836    find out it does not work in some platform. */
12837 #ifndef LT_DLLAZY_OR_NOW
12838 #  ifdef RTLD_LAZY
12839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12840 #  else
12841 #    ifdef DL_LAZY
12842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12843 #    else
12844 #      ifdef RTLD_NOW
12845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12846 #      else
12847 #        ifdef DL_NOW
12848 #          define LT_DLLAZY_OR_NOW      DL_NOW
12849 #        else
12850 #          define LT_DLLAZY_OR_NOW      0
12851 #        endif
12852 #      endif
12853 #    endif
12854 #  endif
12855 #endif
12856
12857 /* When -fvisbility=hidden is used, assume the code has been annotated
12858    correspondingly for the symbols needed.  */
12859 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12860 int fnord () __attribute__((visibility("default")));
12861 #endif
12862
12863 int fnord () { return 42; }
12864 int main ()
12865 {
12866   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12867   int status = $lt_dlunknown;
12868
12869   if (self)
12870     {
12871       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12872       else
12873         {
12874           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12875           else puts (dlerror ());
12876         }
12877       /* dlclose (self); */
12878     }
12879   else
12880     puts (dlerror ());
12881
12882   return status;
12883 }
12884 _LT_EOF
12885   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12886   (eval $ac_link) 2>&5
12887   ac_status=$?
12888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12890     (./conftest; exit; ) >&5 2>/dev/null
12891     lt_status=$?
12892     case x$lt_status in
12893       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12894       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12895       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12896     esac
12897   else :
12898     # compilation failed
12899     lt_cv_dlopen_self=no
12900   fi
12901 fi
12902 rm -fr conftest*
12903
12904
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12907 $as_echo "$lt_cv_dlopen_self" >&6; }
12908
12909     if test "x$lt_cv_dlopen_self" = xyes; then
12910       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12912 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12913 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916           if test "$cross_compiling" = yes; then :
12917   lt_cv_dlopen_self_static=cross
12918 else
12919   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12920   lt_status=$lt_dlunknown
12921   cat > conftest.$ac_ext <<_LT_EOF
12922 #line $LINENO "configure"
12923 #include "confdefs.h"
12924
12925 #if HAVE_DLFCN_H
12926 #include <dlfcn.h>
12927 #endif
12928
12929 #include <stdio.h>
12930
12931 #ifdef RTLD_GLOBAL
12932 #  define LT_DLGLOBAL           RTLD_GLOBAL
12933 #else
12934 #  ifdef DL_GLOBAL
12935 #    define LT_DLGLOBAL         DL_GLOBAL
12936 #  else
12937 #    define LT_DLGLOBAL         0
12938 #  endif
12939 #endif
12940
12941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12942    find out it does not work in some platform. */
12943 #ifndef LT_DLLAZY_OR_NOW
12944 #  ifdef RTLD_LAZY
12945 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12946 #  else
12947 #    ifdef DL_LAZY
12948 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12949 #    else
12950 #      ifdef RTLD_NOW
12951 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12952 #      else
12953 #        ifdef DL_NOW
12954 #          define LT_DLLAZY_OR_NOW      DL_NOW
12955 #        else
12956 #          define LT_DLLAZY_OR_NOW      0
12957 #        endif
12958 #      endif
12959 #    endif
12960 #  endif
12961 #endif
12962
12963 /* When -fvisbility=hidden is used, assume the code has been annotated
12964    correspondingly for the symbols needed.  */
12965 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12966 int fnord () __attribute__((visibility("default")));
12967 #endif
12968
12969 int fnord () { return 42; }
12970 int main ()
12971 {
12972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12973   int status = $lt_dlunknown;
12974
12975   if (self)
12976     {
12977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12978       else
12979         {
12980           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12981           else puts (dlerror ());
12982         }
12983       /* dlclose (self); */
12984     }
12985   else
12986     puts (dlerror ());
12987
12988   return status;
12989 }
12990 _LT_EOF
12991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12992   (eval $ac_link) 2>&5
12993   ac_status=$?
12994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12996     (./conftest; exit; ) >&5 2>/dev/null
12997     lt_status=$?
12998     case x$lt_status in
12999       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13000       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13001       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13002     esac
13003   else :
13004     # compilation failed
13005     lt_cv_dlopen_self_static=no
13006   fi
13007 fi
13008 rm -fr conftest*
13009
13010
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13013 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13014     fi
13015
13016     CPPFLAGS="$save_CPPFLAGS"
13017     LDFLAGS="$save_LDFLAGS"
13018     LIBS="$save_LIBS"
13019     ;;
13020   esac
13021
13022   case $lt_cv_dlopen_self in
13023   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13024   *) enable_dlopen_self=unknown ;;
13025   esac
13026
13027   case $lt_cv_dlopen_self_static in
13028   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13029   *) enable_dlopen_self_static=unknown ;;
13030   esac
13031 fi
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 striplib=
13050 old_striplib=
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13052 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13053 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13054   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13055   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057 $as_echo "yes" >&6; }
13058 else
13059 # FIXME - insert some real tests, host_os isn't really good enough
13060   case $host_os in
13061   darwin*)
13062     if test -n "$STRIP" ; then
13063       striplib="$STRIP -x"
13064       old_striplib="$STRIP -S"
13065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13067     else
13068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070     fi
13071     ;;
13072   *)
13073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075     ;;
13076   esac
13077 fi
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090   # Report which library types will actually be built
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13094 $as_echo "$can_build_shared" >&6; }
13095
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13097 $as_echo_n "checking whether to build shared libraries... " >&6; }
13098   test "$can_build_shared" = "no" && enable_shared=no
13099
13100   # On AIX, shared libraries and static libraries use the same namespace, and
13101   # are all built from PIC.
13102   case $host_os in
13103   aix3*)
13104     test "$enable_shared" = yes && enable_static=no
13105     if test -n "$RANLIB"; then
13106       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13107       postinstall_cmds='$RANLIB $lib'
13108     fi
13109     ;;
13110
13111   aix[4-9]*)
13112     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13113       test "$enable_shared" = yes && enable_static=no
13114     fi
13115     ;;
13116   esac
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13118 $as_echo "$enable_shared" >&6; }
13119
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13121 $as_echo_n "checking whether to build static libraries... " >&6; }
13122   # Make sure either enable_shared or enable_static is yes.
13123   test "$enable_shared" = yes || enable_static=yes
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13125 $as_echo "$enable_static" >&6; }
13126
13127
13128
13129
13130 fi
13131 ac_ext=c
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136
13137 CC="$lt_save_CC"
13138
13139       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13140     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13141     (test "X$CXX" != "Xg++"))) ; then
13142   ac_ext=cpp
13143 ac_cpp='$CXXCPP $CPPFLAGS'
13144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13148 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13149 if test -z "$CXXCPP"; then
13150   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153       # Double quotes because CXXCPP needs to be expanded
13154     for CXXCPP in "$CXX -E" "/lib/cpp"
13155     do
13156       ac_preproc_ok=false
13157 for ac_cxx_preproc_warn_flag in '' yes
13158 do
13159   # Use a header file that comes with gcc, so configuring glibc
13160   # with a fresh cross-compiler works.
13161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162   # <limits.h> exists even on freestanding compilers.
13163   # On the NeXT, cc -E runs the code through the compiler's parser,
13164   # not just through cpp. "Syntax error" is here to catch this case.
13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167 #ifdef __STDC__
13168 # include <limits.h>
13169 #else
13170 # include <assert.h>
13171 #endif
13172                      Syntax error
13173 _ACEOF
13174 if ac_fn_cxx_try_cpp "$LINENO"; then :
13175
13176 else
13177   # Broken: fails on valid input.
13178 continue
13179 fi
13180 rm -f conftest.err conftest.$ac_ext
13181
13182   # OK, works on sane cases.  Now check whether nonexistent headers
13183   # can be detected and how.
13184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h.  */
13186 #include <ac_nonexistent.h>
13187 _ACEOF
13188 if ac_fn_cxx_try_cpp "$LINENO"; then :
13189   # Broken: success on invalid input.
13190 continue
13191 else
13192   # Passes both tests.
13193 ac_preproc_ok=:
13194 break
13195 fi
13196 rm -f conftest.err conftest.$ac_ext
13197
13198 done
13199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13200 rm -f conftest.err conftest.$ac_ext
13201 if $ac_preproc_ok; then :
13202   break
13203 fi
13204
13205     done
13206     ac_cv_prog_CXXCPP=$CXXCPP
13207
13208 fi
13209   CXXCPP=$ac_cv_prog_CXXCPP
13210 else
13211   ac_cv_prog_CXXCPP=$CXXCPP
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13214 $as_echo "$CXXCPP" >&6; }
13215 ac_preproc_ok=false
13216 for ac_cxx_preproc_warn_flag in '' yes
13217 do
13218   # Use a header file that comes with gcc, so configuring glibc
13219   # with a fresh cross-compiler works.
13220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13221   # <limits.h> exists even on freestanding compilers.
13222   # On the NeXT, cc -E runs the code through the compiler's parser,
13223   # not just through cpp. "Syntax error" is here to catch this case.
13224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h.  */
13226 #ifdef __STDC__
13227 # include <limits.h>
13228 #else
13229 # include <assert.h>
13230 #endif
13231                      Syntax error
13232 _ACEOF
13233 if ac_fn_cxx_try_cpp "$LINENO"; then :
13234
13235 else
13236   # Broken: fails on valid input.
13237 continue
13238 fi
13239 rm -f conftest.err conftest.$ac_ext
13240
13241   # OK, works on sane cases.  Now check whether nonexistent headers
13242   # can be detected and how.
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245 #include <ac_nonexistent.h>
13246 _ACEOF
13247 if ac_fn_cxx_try_cpp "$LINENO"; then :
13248   # Broken: success on invalid input.
13249 continue
13250 else
13251   # Passes both tests.
13252 ac_preproc_ok=:
13253 break
13254 fi
13255 rm -f conftest.err conftest.$ac_ext
13256
13257 done
13258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13259 rm -f conftest.err conftest.$ac_ext
13260 if $ac_preproc_ok; then :
13261
13262 else
13263   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13265 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13266 See \`config.log' for more details." "$LINENO" 5; }
13267 fi
13268
13269 ac_ext=c
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13274
13275 else
13276   _lt_caught_CXX_error=yes
13277 fi
13278
13279 ac_ext=cpp
13280 ac_cpp='$CXXCPP $CPPFLAGS'
13281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13284
13285 archive_cmds_need_lc_CXX=no
13286 allow_undefined_flag_CXX=
13287 always_export_symbols_CXX=no
13288 archive_expsym_cmds_CXX=
13289 compiler_needs_object_CXX=no
13290 export_dynamic_flag_spec_CXX=
13291 hardcode_direct_CXX=no
13292 hardcode_direct_absolute_CXX=no
13293 hardcode_libdir_flag_spec_CXX=
13294 hardcode_libdir_flag_spec_ld_CXX=
13295 hardcode_libdir_separator_CXX=
13296 hardcode_minus_L_CXX=no
13297 hardcode_shlibpath_var_CXX=unsupported
13298 hardcode_automatic_CXX=no
13299 inherit_rpath_CXX=no
13300 module_cmds_CXX=
13301 module_expsym_cmds_CXX=
13302 link_all_deplibs_CXX=unknown
13303 old_archive_cmds_CXX=$old_archive_cmds
13304 reload_flag_CXX=$reload_flag
13305 reload_cmds_CXX=$reload_cmds
13306 no_undefined_flag_CXX=
13307 whole_archive_flag_spec_CXX=
13308 enable_shared_with_static_runtimes_CXX=no
13309
13310 # Source file extension for C++ test sources.
13311 ac_ext=cpp
13312
13313 # Object file extension for compiled C++ test sources.
13314 objext=o
13315 objext_CXX=$objext
13316
13317 # No sense in running all these tests if we already determined that
13318 # the CXX compiler isn't working.  Some variables (like enable_shared)
13319 # are currently assumed to apply to all compilers on this platform,
13320 # and will be corrupted by setting them based on a non-working compiler.
13321 if test "$_lt_caught_CXX_error" != yes; then
13322   # Code to be used in simple compile tests
13323   lt_simple_compile_test_code="int some_variable = 0;"
13324
13325   # Code to be used in simple link tests
13326   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13327
13328   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13329
13330
13331
13332
13333
13334
13335 # If no C compiler was specified, use CC.
13336 LTCC=${LTCC-"$CC"}
13337
13338 # If no C compiler flags were specified, use CFLAGS.
13339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340
13341 # Allow CC to be a program name with arguments.
13342 compiler=$CC
13343
13344
13345   # save warnings/boilerplate of simple test code
13346   ac_outfile=conftest.$ac_objext
13347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13349 _lt_compiler_boilerplate=`cat conftest.err`
13350 $RM conftest*
13351
13352   ac_outfile=conftest.$ac_objext
13353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13355 _lt_linker_boilerplate=`cat conftest.err`
13356 $RM -r conftest*
13357
13358
13359   # Allow CC to be a program name with arguments.
13360   lt_save_CC=$CC
13361   lt_save_CFLAGS=$CFLAGS
13362   lt_save_LD=$LD
13363   lt_save_GCC=$GCC
13364   GCC=$GXX
13365   lt_save_with_gnu_ld=$with_gnu_ld
13366   lt_save_path_LD=$lt_cv_path_LD
13367   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13368     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13369   else
13370     $as_unset lt_cv_prog_gnu_ld
13371   fi
13372   if test -n "${lt_cv_path_LDCXX+set}"; then
13373     lt_cv_path_LD=$lt_cv_path_LDCXX
13374   else
13375     $as_unset lt_cv_path_LD
13376   fi
13377   test -z "${LDCXX+set}" || LD=$LDCXX
13378   CC=${CXX-"c++"}
13379   CFLAGS=$CXXFLAGS
13380   compiler=$CC
13381   compiler_CXX=$CC
13382   for cc_temp in $compiler""; do
13383   case $cc_temp in
13384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13386     \-*) ;;
13387     *) break;;
13388   esac
13389 done
13390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13391
13392
13393   if test -n "$compiler"; then
13394     # We don't want -fno-exception when compiling C++ code, so set the
13395     # no_builtin_flag separately
13396     if test "$GXX" = yes; then
13397       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13398     else
13399       lt_prog_compiler_no_builtin_flag_CXX=
13400     fi
13401
13402     if test "$GXX" = yes; then
13403       # Set up default GNU C++ configuration
13404
13405
13406
13407 # Check whether --with-gnu-ld was given.
13408 if test "${with_gnu_ld+set}" = set; then :
13409   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13410 else
13411   with_gnu_ld=no
13412 fi
13413
13414 ac_prog=ld
13415 if test "$GCC" = yes; then
13416   # Check if gcc -print-prog-name=ld gives a path.
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13418 $as_echo_n "checking for ld used by $CC... " >&6; }
13419   case $host in
13420   *-*-mingw*)
13421     # gcc leaves a trailing carriage return which upsets mingw
13422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13423   *)
13424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13425   esac
13426   case $ac_prog in
13427     # Accept absolute paths.
13428     [\\/]* | ?:[\\/]*)
13429       re_direlt='/[^/][^/]*/\.\./'
13430       # Canonicalize the pathname of ld
13431       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13432       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13433         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13434       done
13435       test -z "$LD" && LD="$ac_prog"
13436       ;;
13437   "")
13438     # If it fails, then pretend we aren't using GCC.
13439     ac_prog=ld
13440     ;;
13441   *)
13442     # If it is relative, then search for the first ld in PATH.
13443     with_gnu_ld=unknown
13444     ;;
13445   esac
13446 elif test "$with_gnu_ld" = yes; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13448 $as_echo_n "checking for GNU ld... " >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13451 $as_echo_n "checking for non-GNU ld... " >&6; }
13452 fi
13453 if test "${lt_cv_path_LD+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   if test -z "$LD"; then
13457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13458   for ac_dir in $PATH; do
13459     IFS="$lt_save_ifs"
13460     test -z "$ac_dir" && ac_dir=.
13461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13462       lt_cv_path_LD="$ac_dir/$ac_prog"
13463       # Check to see if the program is GNU ld.  I'd rather use --version,
13464       # but apparently some variants of GNU ld only accept -v.
13465       # Break only if it was the GNU/non-GNU ld that we prefer.
13466       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13467       *GNU* | *'with BFD'*)
13468         test "$with_gnu_ld" != no && break
13469         ;;
13470       *)
13471         test "$with_gnu_ld" != yes && break
13472         ;;
13473       esac
13474     fi
13475   done
13476   IFS="$lt_save_ifs"
13477 else
13478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13479 fi
13480 fi
13481
13482 LD="$lt_cv_path_LD"
13483 if test -n "$LD"; then
13484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13485 $as_echo "$LD" >&6; }
13486 else
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13489 fi
13490 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13493 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13497 case `$LD -v 2>&1 </dev/null` in
13498 *GNU* | *'with BFD'*)
13499   lt_cv_prog_gnu_ld=yes
13500   ;;
13501 *)
13502   lt_cv_prog_gnu_ld=no
13503   ;;
13504 esac
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13508 with_gnu_ld=$lt_cv_prog_gnu_ld
13509
13510
13511
13512
13513
13514
13515
13516       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13517       # archiving commands below assume that GNU ld is being used.
13518       if test "$with_gnu_ld" = yes; then
13519         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520         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'
13521
13522         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13524
13525         # If archive_cmds runs LD, not CC, wlarc should be empty
13526         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13527         #     investigate it a little bit more. (MM)
13528         wlarc='${wl}'
13529
13530         # ancient GNU ld didn't support --whole-archive et. al.
13531         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13532           $GREP 'no-whole-archive' > /dev/null; then
13533           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13534         else
13535           whole_archive_flag_spec_CXX=
13536         fi
13537       else
13538         with_gnu_ld=no
13539         wlarc=
13540
13541         # A generic and very simple default shared library creation
13542         # command for GNU C++ for the case where it uses the native
13543         # linker, instead of GNU ld.  If possible, this setting should
13544         # overridden to take advantage of the native linker features on
13545         # the platform it is being used on.
13546         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13547       fi
13548
13549       # Commands to make compiler produce verbose output that lists
13550       # what "hidden" libraries, object files and flags are used when
13551       # linking a shared library.
13552       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13553
13554     else
13555       GXX=no
13556       with_gnu_ld=no
13557       wlarc=
13558     fi
13559
13560     # PORTME: fill in a description of your system's C++ link characteristics
13561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13562 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13563     ld_shlibs_CXX=yes
13564     case $host_os in
13565       aix3*)
13566         # FIXME: insert proper C++ library support
13567         ld_shlibs_CXX=no
13568         ;;
13569       aix[4-9]*)
13570         if test "$host_cpu" = ia64; then
13571           # On IA64, the linker does run time linking by default, so we don't
13572           # have to do anything special.
13573           aix_use_runtimelinking=no
13574           exp_sym_flag='-Bexport'
13575           no_entry_flag=""
13576         else
13577           aix_use_runtimelinking=no
13578
13579           # Test if we are trying to use run time linking or normal
13580           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13581           # need to do runtime linking.
13582           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13583             for ld_flag in $LDFLAGS; do
13584               case $ld_flag in
13585               *-brtl*)
13586                 aix_use_runtimelinking=yes
13587                 break
13588                 ;;
13589               esac
13590             done
13591             ;;
13592           esac
13593
13594           exp_sym_flag='-bexport'
13595           no_entry_flag='-bnoentry'
13596         fi
13597
13598         # When large executables or shared objects are built, AIX ld can
13599         # have problems creating the table of contents.  If linking a library
13600         # or program results in "error TOC overflow" add -mminimal-toc to
13601         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13602         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13603
13604         archive_cmds_CXX=''
13605         hardcode_direct_CXX=yes
13606         hardcode_direct_absolute_CXX=yes
13607         hardcode_libdir_separator_CXX=':'
13608         link_all_deplibs_CXX=yes
13609         file_list_spec_CXX='${wl}-f,'
13610
13611         if test "$GXX" = yes; then
13612           case $host_os in aix4.[012]|aix4.[012].*)
13613           # We only want to do this on AIX 4.2 and lower, the check
13614           # below for broken collect2 doesn't work under 4.3+
13615           collect2name=`${CC} -print-prog-name=collect2`
13616           if test -f "$collect2name" &&
13617              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13618           then
13619             # We have reworked collect2
13620             :
13621           else
13622             # We have old collect2
13623             hardcode_direct_CXX=unsupported
13624             # It fails to find uninstalled libraries when the uninstalled
13625             # path is not listed in the libpath.  Setting hardcode_minus_L
13626             # to unsupported forces relinking
13627             hardcode_minus_L_CXX=yes
13628             hardcode_libdir_flag_spec_CXX='-L$libdir'
13629             hardcode_libdir_separator_CXX=
13630           fi
13631           esac
13632           shared_flag='-shared'
13633           if test "$aix_use_runtimelinking" = yes; then
13634             shared_flag="$shared_flag "'${wl}-G'
13635           fi
13636         else
13637           # not using gcc
13638           if test "$host_cpu" = ia64; then
13639           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13640           # chokes on -Wl,-G. The following line is correct:
13641           shared_flag='-G'
13642           else
13643             if test "$aix_use_runtimelinking" = yes; then
13644               shared_flag='${wl}-G'
13645             else
13646               shared_flag='${wl}-bM:SRE'
13647             fi
13648           fi
13649         fi
13650
13651         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13652         # It seems that -bexpall does not export symbols beginning with
13653         # underscore (_), so it is better to generate a list of symbols to
13654         # export.
13655         always_export_symbols_CXX=yes
13656         if test "$aix_use_runtimelinking" = yes; then
13657           # Warning - without using the other runtime loading flags (-brtl),
13658           # -berok will link without error, but may produce a broken library.
13659           allow_undefined_flag_CXX='-berok'
13660           # Determine the default libpath from the value encoded in an empty
13661           # executable.
13662           if test "${lt_cv_aix_libpath+set}" = set; then
13663   aix_libpath=$lt_cv_aix_libpath
13664 else
13665   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h.  */
13670
13671 int
13672 main ()
13673 {
13674
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_cxx_try_link "$LINENO"; then :
13680
13681   lt_aix_libpath_sed='
13682       /Import File Strings/,/^$/ {
13683           /^0/ {
13684               s/^0  *\([^ ]*\) *$/\1/
13685               p
13686           }
13687       }'
13688   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13689   # Check for a 64-bit object if we didn't find anything.
13690   if test -z "$lt_cv_aix_libpath__CXX"; then
13691     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13692   fi
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext \
13695     conftest$ac_exeext conftest.$ac_ext
13696   if test -z "$lt_cv_aix_libpath__CXX"; then
13697     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13698   fi
13699
13700 fi
13701
13702   aix_libpath=$lt_cv_aix_libpath__CXX
13703 fi
13704
13705           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13706
13707           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"
13708         else
13709           if test "$host_cpu" = ia64; then
13710             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13711             allow_undefined_flag_CXX="-z nodefs"
13712             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"
13713           else
13714             # Determine the default libpath from the value encoded in an
13715             # empty executable.
13716             if test "${lt_cv_aix_libpath+set}" = set; then
13717   aix_libpath=$lt_cv_aix_libpath
13718 else
13719   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h.  */
13724
13725 int
13726 main ()
13727 {
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_cxx_try_link "$LINENO"; then :
13734
13735   lt_aix_libpath_sed='
13736       /Import File Strings/,/^$/ {
13737           /^0/ {
13738               s/^0  *\([^ ]*\) *$/\1/
13739               p
13740           }
13741       }'
13742   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13743   # Check for a 64-bit object if we didn't find anything.
13744   if test -z "$lt_cv_aix_libpath__CXX"; then
13745     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13746   fi
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext \
13749     conftest$ac_exeext conftest.$ac_ext
13750   if test -z "$lt_cv_aix_libpath__CXX"; then
13751     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13752   fi
13753
13754 fi
13755
13756   aix_libpath=$lt_cv_aix_libpath__CXX
13757 fi
13758
13759             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13760             # Warning - without using the other run time loading flags,
13761             # -berok will link without error, but may produce a broken library.
13762             no_undefined_flag_CXX=' ${wl}-bernotok'
13763             allow_undefined_flag_CXX=' ${wl}-berok'
13764             if test "$with_gnu_ld" = yes; then
13765               # We only use this code for GNU lds that support --whole-archive.
13766               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13767             else
13768               # Exported symbols can be pulled into shared objects from archives
13769               whole_archive_flag_spec_CXX='$convenience'
13770             fi
13771             archive_cmds_need_lc_CXX=yes
13772             # This is similar to how AIX traditionally builds its shared
13773             # libraries.
13774             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'
13775           fi
13776         fi
13777         ;;
13778
13779       beos*)
13780         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13781           allow_undefined_flag_CXX=unsupported
13782           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13783           # support --undefined.  This deserves some investigation.  FIXME
13784           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785         else
13786           ld_shlibs_CXX=no
13787         fi
13788         ;;
13789
13790       chorus*)
13791         case $cc_basename in
13792           *)
13793           # FIXME: insert proper C++ library support
13794           ld_shlibs_CXX=no
13795           ;;
13796         esac
13797         ;;
13798
13799       cygwin* | mingw* | pw32* | cegcc*)
13800         case $GXX,$cc_basename in
13801         ,cl* | no,cl*)
13802           # Native MSVC
13803           # hardcode_libdir_flag_spec is actually meaningless, as there is
13804           # no search path for DLLs.
13805           hardcode_libdir_flag_spec_CXX=' '
13806           allow_undefined_flag_CXX=unsupported
13807           always_export_symbols_CXX=yes
13808           file_list_spec_CXX='@'
13809           # Tell ltmain to make .lib files, not .a files.
13810           libext=lib
13811           # Tell ltmain to make .dll files, not .so files.
13812           shrext_cmds=".dll"
13813           # FIXME: Setting linknames here is a bad hack.
13814           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13815           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13816               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13817             else
13818               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13819             fi~
13820             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13821             linknames='
13822           # The linker will not automatically build a static lib if we build a DLL.
13823           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13824           enable_shared_with_static_runtimes_CXX=yes
13825           # Don't use ranlib
13826           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13827           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13828             lt_tool_outputfile="@TOOL_OUTPUT@"~
13829             case $lt_outputfile in
13830               *.exe|*.EXE) ;;
13831               *)
13832                 lt_outputfile="$lt_outputfile.exe"
13833                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13834                 ;;
13835             esac~
13836             func_to_tool_file "$lt_outputfile"~
13837             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13838               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13839               $RM "$lt_outputfile.manifest";
13840             fi'
13841           ;;
13842         *)
13843           # g++
13844           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13845           # as there is no search path for DLLs.
13846           hardcode_libdir_flag_spec_CXX='-L$libdir'
13847           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13848           allow_undefined_flag_CXX=unsupported
13849           always_export_symbols_CXX=no
13850           enable_shared_with_static_runtimes_CXX=yes
13851
13852           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13853             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'
13854             # If the export-symbols file already is a .def file (1st line
13855             # is EXPORTS), use it as is; otherwise, prepend...
13856             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857               cp $export_symbols $output_objdir/$soname.def;
13858             else
13859               echo EXPORTS > $output_objdir/$soname.def;
13860               cat $export_symbols >> $output_objdir/$soname.def;
13861             fi~
13862             $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'
13863           else
13864             ld_shlibs_CXX=no
13865           fi
13866           ;;
13867         esac
13868         ;;
13869       darwin* | rhapsody*)
13870
13871
13872   archive_cmds_need_lc_CXX=no
13873   hardcode_direct_CXX=no
13874   hardcode_automatic_CXX=yes
13875   hardcode_shlibpath_var_CXX=unsupported
13876   if test "$lt_cv_ld_force_load" = "yes"; then
13877     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\"`'
13878   else
13879     whole_archive_flag_spec_CXX=''
13880   fi
13881   link_all_deplibs_CXX=yes
13882   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13883   case $cc_basename in
13884      ifort*) _lt_dar_can_shared=yes ;;
13885      *) _lt_dar_can_shared=$GCC ;;
13886   esac
13887   if test "$_lt_dar_can_shared" = "yes"; then
13888     output_verbose_link_cmd=func_echo_all
13889     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}"
13890     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13891     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}"
13892     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}"
13893        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13894       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}"
13895       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}"
13896     fi
13897
13898   else
13899   ld_shlibs_CXX=no
13900   fi
13901
13902         ;;
13903
13904       dgux*)
13905         case $cc_basename in
13906           ec++*)
13907             # FIXME: insert proper C++ library support
13908             ld_shlibs_CXX=no
13909             ;;
13910           ghcx*)
13911             # Green Hills C++ Compiler
13912             # FIXME: insert proper C++ library support
13913             ld_shlibs_CXX=no
13914             ;;
13915           *)
13916             # FIXME: insert proper C++ library support
13917             ld_shlibs_CXX=no
13918             ;;
13919         esac
13920         ;;
13921
13922       freebsd[12]*)
13923         # C++ shared libraries reported to be fairly broken before
13924         # switch to ELF
13925         ld_shlibs_CXX=no
13926         ;;
13927
13928       freebsd-elf*)
13929         archive_cmds_need_lc_CXX=no
13930         ;;
13931
13932       freebsd* | dragonfly*)
13933         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13934         # conventions
13935         ld_shlibs_CXX=yes
13936         ;;
13937
13938       gnu*)
13939         ;;
13940
13941       haiku*)
13942         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13943         link_all_deplibs_CXX=yes
13944         ;;
13945
13946       hpux9*)
13947         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13948         hardcode_libdir_separator_CXX=:
13949         export_dynamic_flag_spec_CXX='${wl}-E'
13950         hardcode_direct_CXX=yes
13951         hardcode_minus_L_CXX=yes # Not in the search PATH,
13952                                              # but as the default
13953                                              # location of the library.
13954
13955         case $cc_basename in
13956           CC*)
13957             # FIXME: insert proper C++ library support
13958             ld_shlibs_CXX=no
13959             ;;
13960           aCC*)
13961             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'
13962             # Commands to make compiler produce verbose output that lists
13963             # what "hidden" libraries, object files and flags are used when
13964             # linking a shared library.
13965             #
13966             # There doesn't appear to be a way to prevent this compiler from
13967             # explicitly linking system object files so we need to strip them
13968             # from the output so that they don't get included in the library
13969             # dependencies.
13970             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"'
13971             ;;
13972           *)
13973             if test "$GXX" = yes; then
13974               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'
13975             else
13976               # FIXME: insert proper C++ library support
13977               ld_shlibs_CXX=no
13978             fi
13979             ;;
13980         esac
13981         ;;
13982
13983       hpux10*|hpux11*)
13984         if test $with_gnu_ld = no; then
13985           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13986           hardcode_libdir_separator_CXX=:
13987
13988           case $host_cpu in
13989             hppa*64*|ia64*)
13990               ;;
13991             *)
13992               export_dynamic_flag_spec_CXX='${wl}-E'
13993               ;;
13994           esac
13995         fi
13996         case $host_cpu in
13997           hppa*64*|ia64*)
13998             hardcode_direct_CXX=no
13999             hardcode_shlibpath_var_CXX=no
14000             ;;
14001           *)
14002             hardcode_direct_CXX=yes
14003             hardcode_direct_absolute_CXX=yes
14004             hardcode_minus_L_CXX=yes # Not in the search PATH,
14005                                                  # but as the default
14006                                                  # location of the library.
14007             ;;
14008         esac
14009
14010         case $cc_basename in
14011           CC*)
14012             # FIXME: insert proper C++ library support
14013             ld_shlibs_CXX=no
14014             ;;
14015           aCC*)
14016             case $host_cpu in
14017               hppa*64*)
14018                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14019                 ;;
14020               ia64*)
14021                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14022                 ;;
14023               *)
14024                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14025                 ;;
14026             esac
14027             # Commands to make compiler produce verbose output that lists
14028             # what "hidden" libraries, object files and flags are used when
14029             # linking a shared library.
14030             #
14031             # There doesn't appear to be a way to prevent this compiler from
14032             # explicitly linking system object files so we need to strip them
14033             # from the output so that they don't get included in the library
14034             # dependencies.
14035             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"'
14036             ;;
14037           *)
14038             if test "$GXX" = yes; then
14039               if test $with_gnu_ld = no; then
14040                 case $host_cpu in
14041                   hppa*64*)
14042                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043                     ;;
14044                   ia64*)
14045                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046                     ;;
14047                   *)
14048                     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'
14049                     ;;
14050                 esac
14051               fi
14052             else
14053               # FIXME: insert proper C++ library support
14054               ld_shlibs_CXX=no
14055             fi
14056             ;;
14057         esac
14058         ;;
14059
14060       interix[3-9]*)
14061         hardcode_direct_CXX=no
14062         hardcode_shlibpath_var_CXX=no
14063         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14064         export_dynamic_flag_spec_CXX='${wl}-E'
14065         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14066         # Instead, shared libraries are loaded at an image base (0x10000000 by
14067         # default) and relocated if they conflict, which is a slow very memory
14068         # consuming and fragmenting process.  To avoid this, we pick a random,
14069         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14070         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14071         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'
14072         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'
14073         ;;
14074       irix5* | irix6*)
14075         case $cc_basename in
14076           CC*)
14077             # SGI C++
14078             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'
14079
14080             # Archives containing C++ object files must be created using
14081             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14082             # necessary to make sure instantiated templates are included
14083             # in the archive.
14084             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14085             ;;
14086           *)
14087             if test "$GXX" = yes; then
14088               if test "$with_gnu_ld" = no; then
14089                 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'
14090               else
14091                 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'
14092               fi
14093             fi
14094             link_all_deplibs_CXX=yes
14095             ;;
14096         esac
14097         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14098         hardcode_libdir_separator_CXX=:
14099         inherit_rpath_CXX=yes
14100         ;;
14101
14102       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14103         case $cc_basename in
14104           KCC*)
14105             # Kuck and Associates, Inc. (KAI) C++ Compiler
14106
14107             # KCC will only create a shared library if the output file
14108             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14109             # to its proper name (with version) after linking.
14110             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'
14111             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'
14112             # Commands to make compiler produce verbose output that lists
14113             # what "hidden" libraries, object files and flags are used when
14114             # linking a shared library.
14115             #
14116             # There doesn't appear to be a way to prevent this compiler from
14117             # explicitly linking system object files so we need to strip them
14118             # from the output so that they don't get included in the library
14119             # dependencies.
14120             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"'
14121
14122             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14123             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14124
14125             # Archives containing C++ object files must be created using
14126             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14127             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14128             ;;
14129           icpc* | ecpc* )
14130             # Intel C++
14131             with_gnu_ld=yes
14132             # version 8.0 and above of icpc choke on multiply defined symbols
14133             # if we add $predep_objects and $postdep_objects, however 7.1 and
14134             # earlier do not add the objects themselves.
14135             case `$CC -V 2>&1` in
14136               *"Version 7."*)
14137                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138                 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'
14139                 ;;
14140               *)  # Version 8.0 or newer
14141                 tmp_idyn=
14142                 case $host_cpu in
14143                   ia64*) tmp_idyn=' -i_dynamic';;
14144                 esac
14145                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146                 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'
14147                 ;;
14148             esac
14149             archive_cmds_need_lc_CXX=no
14150             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14151             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14153             ;;
14154           pgCC* | pgcpp*)
14155             # Portland Group C++ compiler
14156             case `$CC -V` in
14157             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14158               prelink_cmds_CXX='tpldir=Template.dir~
14159                 rm -rf $tpldir~
14160                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14161                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14162               old_archive_cmds_CXX='tpldir=Template.dir~
14163                 rm -rf $tpldir~
14164                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14165                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14166                 $RANLIB $oldlib'
14167               archive_cmds_CXX='tpldir=Template.dir~
14168                 rm -rf $tpldir~
14169                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14170                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14171               archive_expsym_cmds_CXX='tpldir=Template.dir~
14172                 rm -rf $tpldir~
14173                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14174                 $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'
14175               ;;
14176             *) # Version 6 and above use weak symbols
14177               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14178               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'
14179               ;;
14180             esac
14181
14182             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14183             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14184             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'
14185             ;;
14186           cxx*)
14187             # Compaq C++
14188             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189             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'
14190
14191             runpath_var=LD_RUN_PATH
14192             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14193             hardcode_libdir_separator_CXX=:
14194
14195             # Commands to make compiler produce verbose output that lists
14196             # what "hidden" libraries, object files and flags are used when
14197             # linking a shared library.
14198             #
14199             # There doesn't appear to be a way to prevent this compiler from
14200             # explicitly linking system object files so we need to strip them
14201             # from the output so that they don't get included in the library
14202             # dependencies.
14203             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'
14204             ;;
14205           xl* | mpixl* | bgxl*)
14206             # IBM XL 8.0 on PPC, with GNU ld
14207             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14208             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14209             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210             if test "x$supports_anon_versioning" = xyes; then
14211               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14212                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14213                 echo "local: *; };" >> $output_objdir/$libname.ver~
14214                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14215             fi
14216             ;;
14217           *)
14218             case `$CC -V 2>&1 | sed 5q` in
14219             *Sun\ C*)
14220               # Sun C++ 5.9
14221               no_undefined_flag_CXX=' -zdefs'
14222               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14223               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'
14224               hardcode_libdir_flag_spec_CXX='-R$libdir'
14225               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'
14226               compiler_needs_object_CXX=yes
14227
14228               # Not sure whether something based on
14229               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14230               # would be better.
14231               output_verbose_link_cmd='func_echo_all'
14232
14233               # Archives containing C++ object files must be created using
14234               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14235               # necessary to make sure instantiated templates are included
14236               # in the archive.
14237               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14238               ;;
14239             esac
14240             ;;
14241         esac
14242         ;;
14243
14244       lynxos*)
14245         # FIXME: insert proper C++ library support
14246         ld_shlibs_CXX=no
14247         ;;
14248
14249       m88k*)
14250         # FIXME: insert proper C++ library support
14251         ld_shlibs_CXX=no
14252         ;;
14253
14254       mvs*)
14255         case $cc_basename in
14256           cxx*)
14257             # FIXME: insert proper C++ library support
14258             ld_shlibs_CXX=no
14259             ;;
14260           *)
14261             # FIXME: insert proper C++ library support
14262             ld_shlibs_CXX=no
14263             ;;
14264         esac
14265         ;;
14266
14267       netbsd*)
14268         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14269           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14270           wlarc=
14271           hardcode_libdir_flag_spec_CXX='-R$libdir'
14272           hardcode_direct_CXX=yes
14273           hardcode_shlibpath_var_CXX=no
14274         fi
14275         # Workaround some broken pre-1.5 toolchains
14276         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14277         ;;
14278
14279       *nto* | *qnx*)
14280         ld_shlibs_CXX=yes
14281         ;;
14282
14283       openbsd2*)
14284         # C++ shared libraries are fairly broken
14285         ld_shlibs_CXX=no
14286         ;;
14287
14288       openbsd*)
14289         if test -f /usr/libexec/ld.so; then
14290           hardcode_direct_CXX=yes
14291           hardcode_shlibpath_var_CXX=no
14292           hardcode_direct_absolute_CXX=yes
14293           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14294           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14295           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14297             export_dynamic_flag_spec_CXX='${wl}-E'
14298             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14299           fi
14300           output_verbose_link_cmd=func_echo_all
14301         else
14302           ld_shlibs_CXX=no
14303         fi
14304         ;;
14305
14306       osf3* | osf4* | osf5*)
14307         case $cc_basename in
14308           KCC*)
14309             # Kuck and Associates, Inc. (KAI) C++ Compiler
14310
14311             # KCC will only create a shared library if the output file
14312             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14313             # to its proper name (with version) after linking.
14314             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'
14315
14316             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14317             hardcode_libdir_separator_CXX=:
14318
14319             # Archives containing C++ object files must be created using
14320             # the KAI C++ compiler.
14321             case $host in
14322               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14323               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14324             esac
14325             ;;
14326           RCC*)
14327             # Rational C++ 2.4.1
14328             # FIXME: insert proper C++ library support
14329             ld_shlibs_CXX=no
14330             ;;
14331           cxx*)
14332             case $host in
14333               osf3*)
14334                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14335                 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'
14336                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14337                 ;;
14338               *)
14339                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14340                 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'
14341                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14342                   echo "-hidden">> $lib.exp~
14343                   $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~
14344                   $RM $lib.exp'
14345                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14346                 ;;
14347             esac
14348
14349             hardcode_libdir_separator_CXX=:
14350
14351             # Commands to make compiler produce verbose output that lists
14352             # what "hidden" libraries, object files and flags are used when
14353             # linking a shared library.
14354             #
14355             # There doesn't appear to be a way to prevent this compiler from
14356             # explicitly linking system object files so we need to strip them
14357             # from the output so that they don't get included in the library
14358             # dependencies.
14359             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"'
14360             ;;
14361           *)
14362             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14363               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14364               case $host in
14365                 osf3*)
14366                   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'
14367                   ;;
14368                 *)
14369                   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'
14370                   ;;
14371               esac
14372
14373               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14374               hardcode_libdir_separator_CXX=:
14375
14376               # Commands to make compiler produce verbose output that lists
14377               # what "hidden" libraries, object files and flags are used when
14378               # linking a shared library.
14379               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14380
14381             else
14382               # FIXME: insert proper C++ library support
14383               ld_shlibs_CXX=no
14384             fi
14385             ;;
14386         esac
14387         ;;
14388
14389       psos*)
14390         # FIXME: insert proper C++ library support
14391         ld_shlibs_CXX=no
14392         ;;
14393
14394       sunos4*)
14395         case $cc_basename in
14396           CC*)
14397             # Sun C++ 4.x
14398             # FIXME: insert proper C++ library support
14399             ld_shlibs_CXX=no
14400             ;;
14401           lcc*)
14402             # Lucid
14403             # FIXME: insert proper C++ library support
14404             ld_shlibs_CXX=no
14405             ;;
14406           *)
14407             # FIXME: insert proper C++ library support
14408             ld_shlibs_CXX=no
14409             ;;
14410         esac
14411         ;;
14412
14413       solaris*)
14414         case $cc_basename in
14415           CC* | sunCC*)
14416             # Sun C++ 4.2, 5.x and Centerline C++
14417             archive_cmds_need_lc_CXX=yes
14418             no_undefined_flag_CXX=' -zdefs'
14419             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14420             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14421               $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'
14422
14423             hardcode_libdir_flag_spec_CXX='-R$libdir'
14424             hardcode_shlibpath_var_CXX=no
14425             case $host_os in
14426               solaris2.[0-5] | solaris2.[0-5].*) ;;
14427               *)
14428                 # The compiler driver will combine and reorder linker options,
14429                 # but understands `-z linker_flag'.
14430                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14431                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14432                 ;;
14433             esac
14434             link_all_deplibs_CXX=yes
14435
14436             output_verbose_link_cmd='func_echo_all'
14437
14438             # Archives containing C++ object files must be created using
14439             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14440             # necessary to make sure instantiated templates are included
14441             # in the archive.
14442             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14443             ;;
14444           gcx*)
14445             # Green Hills C++ Compiler
14446             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14447
14448             # The C++ compiler must be used to create the archive.
14449             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14450             ;;
14451           *)
14452             # GNU C++ compiler with Solaris linker
14453             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14454               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14455               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14456                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14457                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14458                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14459
14460                 # Commands to make compiler produce verbose output that lists
14461                 # what "hidden" libraries, object files and flags are used when
14462                 # linking a shared library.
14463                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14464               else
14465                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14466                 # platform.
14467                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14468                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14469                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14470
14471                 # Commands to make compiler produce verbose output that lists
14472                 # what "hidden" libraries, object files and flags are used when
14473                 # linking a shared library.
14474                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14475               fi
14476
14477               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14478               case $host_os in
14479                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14480                 *)
14481                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14482                   ;;
14483               esac
14484             fi
14485             ;;
14486         esac
14487         ;;
14488
14489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14490       no_undefined_flag_CXX='${wl}-z,text'
14491       archive_cmds_need_lc_CXX=no
14492       hardcode_shlibpath_var_CXX=no
14493       runpath_var='LD_RUN_PATH'
14494
14495       case $cc_basename in
14496         CC*)
14497           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14498           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14499           ;;
14500         *)
14501           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503           ;;
14504       esac
14505       ;;
14506
14507       sysv5* | sco3.2v5* | sco5v6*)
14508         # Note: We can NOT use -z defs as we might desire, because we do not
14509         # link with -lc, and that would cause any symbols used from libc to
14510         # always be unresolved, which means just about no library would
14511         # ever link correctly.  If we're not using GNU ld we use -z text
14512         # though, which does catch some bad symbols but isn't as heavy-handed
14513         # as -z defs.
14514         no_undefined_flag_CXX='${wl}-z,text'
14515         allow_undefined_flag_CXX='${wl}-z,nodefs'
14516         archive_cmds_need_lc_CXX=no
14517         hardcode_shlibpath_var_CXX=no
14518         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14519         hardcode_libdir_separator_CXX=':'
14520         link_all_deplibs_CXX=yes
14521         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14522         runpath_var='LD_RUN_PATH'
14523
14524         case $cc_basename in
14525           CC*)
14526             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14529               '"$old_archive_cmds_CXX"
14530             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14531               '"$reload_cmds_CXX"
14532             ;;
14533           *)
14534             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536             ;;
14537         esac
14538       ;;
14539
14540       tandem*)
14541         case $cc_basename in
14542           NCC*)
14543             # NonStop-UX NCC 3.20
14544             # FIXME: insert proper C++ library support
14545             ld_shlibs_CXX=no
14546             ;;
14547           *)
14548             # FIXME: insert proper C++ library support
14549             ld_shlibs_CXX=no
14550             ;;
14551         esac
14552         ;;
14553
14554       vxworks*)
14555         # FIXME: insert proper C++ library support
14556         ld_shlibs_CXX=no
14557         ;;
14558
14559       *)
14560         # FIXME: insert proper C++ library support
14561         ld_shlibs_CXX=no
14562         ;;
14563     esac
14564
14565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14566 $as_echo "$ld_shlibs_CXX" >&6; }
14567     test "$ld_shlibs_CXX" = no && can_build_shared=no
14568
14569     GCC_CXX="$GXX"
14570     LD_CXX="$LD"
14571
14572     ## CAVEAT EMPTOR:
14573     ## There is no encapsulation within the following macros, do not change
14574     ## the running order or otherwise move them around unless you know exactly
14575     ## what you are doing...
14576     # Dependencies to place before and after the object being linked:
14577 predep_objects_CXX=
14578 postdep_objects_CXX=
14579 predeps_CXX=
14580 postdeps_CXX=
14581 compiler_lib_search_path_CXX=
14582
14583 cat > conftest.$ac_ext <<_LT_EOF
14584 class Foo
14585 {
14586 public:
14587   Foo (void) { a = 0; }
14588 private:
14589   int a;
14590 };
14591 _LT_EOF
14592
14593
14594 _lt_libdeps_save_CFLAGS=$CFLAGS
14595 case "$CC $CFLAGS " in #(
14596 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14597 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14598 esac
14599
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604   test $ac_status = 0; }; then
14605   # Parse the compiler output and extract the necessary
14606   # objects, libraries and library flags.
14607
14608   # Sentinel used to keep track of whether or not we are before
14609   # the conftest object file.
14610   pre_test_object_deps_done=no
14611
14612   for p in `eval "$output_verbose_link_cmd"`; do
14613     case ${prev}${p} in
14614
14615     -L* | -R* | -l*)
14616        # Some compilers place space between "-{L,R}" and the path.
14617        # Remove the space.
14618        if test $p = "-L" ||
14619           test $p = "-R"; then
14620          prev=$p
14621          continue
14622        fi
14623
14624        # Expand the sysroot to ease extracting the directories later.
14625        if test -z "$prev"; then
14626          case $p in
14627          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14628          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14629          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14630          esac
14631        fi
14632        case $p in
14633        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14634        esac
14635        if test "$pre_test_object_deps_done" = no; then
14636          case ${prev} in
14637          -L | -R)
14638            # Internal compiler library paths should come after those
14639            # provided the user.  The postdeps already come after the
14640            # user supplied libs so there is no need to process them.
14641            if test -z "$compiler_lib_search_path_CXX"; then
14642              compiler_lib_search_path_CXX="${prev}${p}"
14643            else
14644              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14645            fi
14646            ;;
14647          # The "-l" case would never come before the object being
14648          # linked, so don't bother handling this case.
14649          esac
14650        else
14651          if test -z "$postdeps_CXX"; then
14652            postdeps_CXX="${prev}${p}"
14653          else
14654            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14655          fi
14656        fi
14657        prev=
14658        ;;
14659
14660     *.lto.$objext) ;; # Ignore GCC LTO objects
14661     *.$objext)
14662        # This assumes that the test object file only shows up
14663        # once in the compiler output.
14664        if test "$p" = "conftest.$objext"; then
14665          pre_test_object_deps_done=yes
14666          continue
14667        fi
14668
14669        if test "$pre_test_object_deps_done" = no; then
14670          if test -z "$predep_objects_CXX"; then
14671            predep_objects_CXX="$p"
14672          else
14673            predep_objects_CXX="$predep_objects_CXX $p"
14674          fi
14675        else
14676          if test -z "$postdep_objects_CXX"; then
14677            postdep_objects_CXX="$p"
14678          else
14679            postdep_objects_CXX="$postdep_objects_CXX $p"
14680          fi
14681        fi
14682        ;;
14683
14684     *) ;; # Ignore the rest.
14685
14686     esac
14687   done
14688
14689   # Clean up.
14690   rm -f a.out a.exe
14691 else
14692   echo "libtool.m4: error: problem compiling CXX test program"
14693 fi
14694
14695 $RM -f confest.$objext
14696 CFLAGS=$_lt_libdeps_save_CFLAGS
14697
14698 # PORTME: override above test on systems where it is broken
14699 case $host_os in
14700 interix[3-9]*)
14701   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14702   # hack all around it, let's just trust "g++" to DTRT.
14703   predep_objects_CXX=
14704   postdep_objects_CXX=
14705   postdeps_CXX=
14706   ;;
14707
14708 linux*)
14709   case `$CC -V 2>&1 | sed 5q` in
14710   *Sun\ C*)
14711     # Sun C++ 5.9
14712
14713     # The more standards-conforming stlport4 library is
14714     # incompatible with the Cstd library. Avoid specifying
14715     # it if it's in CXXFLAGS. Ignore libCrun as
14716     # -library=stlport4 depends on it.
14717     case " $CXX $CXXFLAGS " in
14718     *" -library=stlport4 "*)
14719       solaris_use_stlport4=yes
14720       ;;
14721     esac
14722
14723     if test "$solaris_use_stlport4" != yes; then
14724       postdeps_CXX='-library=Cstd -library=Crun'
14725     fi
14726     ;;
14727   esac
14728   ;;
14729
14730 solaris*)
14731   case $cc_basename in
14732   CC* | sunCC*)
14733     # The more standards-conforming stlport4 library is
14734     # incompatible with the Cstd library. Avoid specifying
14735     # it if it's in CXXFLAGS. Ignore libCrun as
14736     # -library=stlport4 depends on it.
14737     case " $CXX $CXXFLAGS " in
14738     *" -library=stlport4 "*)
14739       solaris_use_stlport4=yes
14740       ;;
14741     esac
14742
14743     # Adding this requires a known-good setup of shared libraries for
14744     # Sun compiler versions before 5.6, else PIC objects from an old
14745     # archive will be linked into the output, leading to subtle bugs.
14746     if test "$solaris_use_stlport4" != yes; then
14747       postdeps_CXX='-library=Cstd -library=Crun'
14748     fi
14749     ;;
14750   esac
14751   ;;
14752 esac
14753
14754
14755 case " $postdeps_CXX " in
14756 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14757 esac
14758  compiler_lib_search_dirs_CXX=
14759 if test -n "${compiler_lib_search_path_CXX}"; then
14760  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14761 fi
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793     lt_prog_compiler_wl_CXX=
14794 lt_prog_compiler_pic_CXX=
14795 lt_prog_compiler_static_CXX=
14796
14797
14798   # C++ specific cases for pic, static, wl, etc.
14799   if test "$GXX" = yes; then
14800     lt_prog_compiler_wl_CXX='-Wl,'
14801     lt_prog_compiler_static_CXX='-static'
14802
14803     case $host_os in
14804     aix*)
14805       # All AIX code is PIC.
14806       if test "$host_cpu" = ia64; then
14807         # AIX 5 now supports IA64 processor
14808         lt_prog_compiler_static_CXX='-Bstatic'
14809       fi
14810       ;;
14811
14812     amigaos*)
14813       case $host_cpu in
14814       powerpc)
14815             # see comment about AmigaOS4 .so support
14816             lt_prog_compiler_pic_CXX='-fPIC'
14817         ;;
14818       m68k)
14819             # FIXME: we need at least 68020 code to build shared libraries, but
14820             # adding the `-m68020' flag to GCC prevents building anything better,
14821             # like `-m68040'.
14822             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14823         ;;
14824       esac
14825       ;;
14826
14827     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14828       # PIC is the default for these OSes.
14829       ;;
14830     mingw* | cygwin* | os2* | pw32* | cegcc*)
14831       # This hack is so that the source file can tell whether it is being
14832       # built for inclusion in a dll (and should export symbols for example).
14833       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14834       # (--disable-auto-import) libraries
14835       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14836       ;;
14837     darwin* | rhapsody*)
14838       # PIC is the default on this platform
14839       # Common symbols not allowed in MH_DYLIB files
14840       lt_prog_compiler_pic_CXX='-fno-common'
14841       ;;
14842     *djgpp*)
14843       # DJGPP does not support shared libraries at all
14844       lt_prog_compiler_pic_CXX=
14845       ;;
14846     haiku*)
14847       # PIC is the default for Haiku.
14848       # The "-static" flag exists, but is broken.
14849       lt_prog_compiler_static_CXX=
14850       ;;
14851     interix[3-9]*)
14852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853       # Instead, we relocate shared libraries at runtime.
14854       ;;
14855     sysv4*MP*)
14856       if test -d /usr/nec; then
14857         lt_prog_compiler_pic_CXX=-Kconform_pic
14858       fi
14859       ;;
14860     hpux*)
14861       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14862       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14863       # sets the default TLS model and affects inlining.
14864       case $host_cpu in
14865       hppa*64*)
14866         ;;
14867       *)
14868         lt_prog_compiler_pic_CXX='-fPIC'
14869         ;;
14870       esac
14871       ;;
14872     *qnx* | *nto*)
14873       # QNX uses GNU C++, but need to define -shared option too, otherwise
14874       # it will coredump.
14875       lt_prog_compiler_pic_CXX='-fPIC -shared'
14876       ;;
14877     *)
14878       lt_prog_compiler_pic_CXX='-fPIC'
14879       ;;
14880     esac
14881   else
14882     case $host_os in
14883       aix[4-9]*)
14884         # All AIX code is PIC.
14885         if test "$host_cpu" = ia64; then
14886           # AIX 5 now supports IA64 processor
14887           lt_prog_compiler_static_CXX='-Bstatic'
14888         else
14889           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14890         fi
14891         ;;
14892       chorus*)
14893         case $cc_basename in
14894         cxch68*)
14895           # Green Hills C++ Compiler
14896           # _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"
14897           ;;
14898         esac
14899         ;;
14900       mingw* | cygwin* | os2* | pw32* | cegcc*)
14901         # This hack is so that the source file can tell whether it is being
14902         # built for inclusion in a dll (and should export symbols for example).
14903         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14904         ;;
14905       dgux*)
14906         case $cc_basename in
14907           ec++*)
14908             lt_prog_compiler_pic_CXX='-KPIC'
14909             ;;
14910           ghcx*)
14911             # Green Hills C++ Compiler
14912             lt_prog_compiler_pic_CXX='-pic'
14913             ;;
14914           *)
14915             ;;
14916         esac
14917         ;;
14918       freebsd* | dragonfly*)
14919         # FreeBSD uses GNU C++
14920         ;;
14921       hpux9* | hpux10* | hpux11*)
14922         case $cc_basename in
14923           CC*)
14924             lt_prog_compiler_wl_CXX='-Wl,'
14925             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14926             if test "$host_cpu" != ia64; then
14927               lt_prog_compiler_pic_CXX='+Z'
14928             fi
14929             ;;
14930           aCC*)
14931             lt_prog_compiler_wl_CXX='-Wl,'
14932             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14933             case $host_cpu in
14934             hppa*64*|ia64*)
14935               # +Z the default
14936               ;;
14937             *)
14938               lt_prog_compiler_pic_CXX='+Z'
14939               ;;
14940             esac
14941             ;;
14942           *)
14943             ;;
14944         esac
14945         ;;
14946       interix*)
14947         # This is c89, which is MS Visual C++ (no shared libs)
14948         # Anyone wants to do a port?
14949         ;;
14950       irix5* | irix6* | nonstopux*)
14951         case $cc_basename in
14952           CC*)
14953             lt_prog_compiler_wl_CXX='-Wl,'
14954             lt_prog_compiler_static_CXX='-non_shared'
14955             # CC pic flag -KPIC is the default.
14956             ;;
14957           *)
14958             ;;
14959         esac
14960         ;;
14961       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14962         case $cc_basename in
14963           KCC*)
14964             # KAI C++ Compiler
14965             lt_prog_compiler_wl_CXX='--backend -Wl,'
14966             lt_prog_compiler_pic_CXX='-fPIC'
14967             ;;
14968           ecpc* )
14969             # old Intel C++ for x86_64 which still supported -KPIC.
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_pic_CXX='-KPIC'
14972             lt_prog_compiler_static_CXX='-static'
14973             ;;
14974           icpc* )
14975             # Intel C++, used to be incompatible with GCC.
14976             # ICC 10 doesn't accept -KPIC any more.
14977             lt_prog_compiler_wl_CXX='-Wl,'
14978             lt_prog_compiler_pic_CXX='-fPIC'
14979             lt_prog_compiler_static_CXX='-static'
14980             ;;
14981           pgCC* | pgcpp*)
14982             # Portland Group C++ compiler
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_pic_CXX='-fpic'
14985             lt_prog_compiler_static_CXX='-Bstatic'
14986             ;;
14987           cxx*)
14988             # Compaq C++
14989             # Make sure the PIC flag is empty.  It appears that all Alpha
14990             # Linux and Compaq Tru64 Unix objects are PIC.
14991             lt_prog_compiler_pic_CXX=
14992             lt_prog_compiler_static_CXX='-non_shared'
14993             ;;
14994           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14995             # IBM XL 8.0, 9.0 on PPC and BlueGene
14996             lt_prog_compiler_wl_CXX='-Wl,'
14997             lt_prog_compiler_pic_CXX='-qpic'
14998             lt_prog_compiler_static_CXX='-qstaticlink'
14999             ;;
15000           *)
15001             case `$CC -V 2>&1 | sed 5q` in
15002             *Sun\ C*)
15003               # Sun C++ 5.9
15004               lt_prog_compiler_pic_CXX='-KPIC'
15005               lt_prog_compiler_static_CXX='-Bstatic'
15006               lt_prog_compiler_wl_CXX='-Qoption ld '
15007               ;;
15008             esac
15009             ;;
15010         esac
15011         ;;
15012       lynxos*)
15013         ;;
15014       m88k*)
15015         ;;
15016       mvs*)
15017         case $cc_basename in
15018           cxx*)
15019             lt_prog_compiler_pic_CXX='-W c,exportall'
15020             ;;
15021           *)
15022             ;;
15023         esac
15024         ;;
15025       netbsd*)
15026         ;;
15027       *qnx* | *nto*)
15028         # QNX uses GNU C++, but need to define -shared option too, otherwise
15029         # it will coredump.
15030         lt_prog_compiler_pic_CXX='-fPIC -shared'
15031         ;;
15032       osf3* | osf4* | osf5*)
15033         case $cc_basename in
15034           KCC*)
15035             lt_prog_compiler_wl_CXX='--backend -Wl,'
15036             ;;
15037           RCC*)
15038             # Rational C++ 2.4.1
15039             lt_prog_compiler_pic_CXX='-pic'
15040             ;;
15041           cxx*)
15042             # Digital/Compaq C++
15043             lt_prog_compiler_wl_CXX='-Wl,'
15044             # Make sure the PIC flag is empty.  It appears that all Alpha
15045             # Linux and Compaq Tru64 Unix objects are PIC.
15046             lt_prog_compiler_pic_CXX=
15047             lt_prog_compiler_static_CXX='-non_shared'
15048             ;;
15049           *)
15050             ;;
15051         esac
15052         ;;
15053       psos*)
15054         ;;
15055       solaris*)
15056         case $cc_basename in
15057           CC* | sunCC*)
15058             # Sun C++ 4.2, 5.x and Centerline C++
15059             lt_prog_compiler_pic_CXX='-KPIC'
15060             lt_prog_compiler_static_CXX='-Bstatic'
15061             lt_prog_compiler_wl_CXX='-Qoption ld '
15062             ;;
15063           gcx*)
15064             # Green Hills C++ Compiler
15065             lt_prog_compiler_pic_CXX='-PIC'
15066             ;;
15067           *)
15068             ;;
15069         esac
15070         ;;
15071       sunos4*)
15072         case $cc_basename in
15073           CC*)
15074             # Sun C++ 4.x
15075             lt_prog_compiler_pic_CXX='-pic'
15076             lt_prog_compiler_static_CXX='-Bstatic'
15077             ;;
15078           lcc*)
15079             # Lucid
15080             lt_prog_compiler_pic_CXX='-pic'
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087         case $cc_basename in
15088           CC*)
15089             lt_prog_compiler_wl_CXX='-Wl,'
15090             lt_prog_compiler_pic_CXX='-KPIC'
15091             lt_prog_compiler_static_CXX='-Bstatic'
15092             ;;
15093         esac
15094         ;;
15095       tandem*)
15096         case $cc_basename in
15097           NCC*)
15098             # NonStop-UX NCC 3.20
15099             lt_prog_compiler_pic_CXX='-KPIC'
15100             ;;
15101           *)
15102             ;;
15103         esac
15104         ;;
15105       vxworks*)
15106         ;;
15107       *)
15108         lt_prog_compiler_can_build_shared_CXX=no
15109         ;;
15110     esac
15111   fi
15112
15113 case $host_os in
15114   # For platforms which do not support PIC, -DPIC is meaningless:
15115   *djgpp*)
15116     lt_prog_compiler_pic_CXX=
15117     ;;
15118   *)
15119     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15120     ;;
15121 esac
15122
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15125 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
15126   $as_echo_n "(cached) " >&6
15127 else
15128   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15132 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15133
15134 #
15135 # Check to make sure the PIC flag actually works.
15136 #
15137 if test -n "$lt_prog_compiler_pic_CXX"; then
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15140 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   lt_cv_prog_compiler_pic_works_CXX=no
15144    ac_outfile=conftest.$ac_objext
15145    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15146    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15147    # Insert the option either (1) after the last *FLAGS variable, or
15148    # (2) before a word containing "conftest.", or (3) at the end.
15149    # Note that $ac_compile itself does not contain backslashes and begins
15150    # with a dollar sign (not a hyphen), so the echo should work correctly.
15151    # The option is referenced via a variable to avoid confusing sed.
15152    lt_compile=`echo "$ac_compile" | $SED \
15153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15155    -e 's:$: $lt_compiler_flag:'`
15156    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15157    (eval "$lt_compile" 2>conftest.err)
15158    ac_status=$?
15159    cat conftest.err >&5
15160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161    if (exit $ac_status) && test -s "$ac_outfile"; then
15162      # The compiler can only warn and ignore the option if not recognized
15163      # So say no if there are warnings other than the usual output.
15164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15165      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15166      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15167        lt_cv_prog_compiler_pic_works_CXX=yes
15168      fi
15169    fi
15170    $RM conftest*
15171
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15174 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15175
15176 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15177     case $lt_prog_compiler_pic_CXX in
15178      "" | " "*) ;;
15179      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15180      esac
15181 else
15182     lt_prog_compiler_pic_CXX=
15183      lt_prog_compiler_can_build_shared_CXX=no
15184 fi
15185
15186 fi
15187
15188
15189
15190
15191
15192 #
15193 # Check to make sure the static flag actually works.
15194 #
15195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15197 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15198 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   lt_cv_prog_compiler_static_works_CXX=no
15202    save_LDFLAGS="$LDFLAGS"
15203    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15204    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15206      # The linker can only warn and ignore the option if not recognized
15207      # So say no if there are warnings
15208      if test -s conftest.err; then
15209        # Append any errors to the config.log.
15210        cat conftest.err 1>&5
15211        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15212        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15213        if diff conftest.exp conftest.er2 >/dev/null; then
15214          lt_cv_prog_compiler_static_works_CXX=yes
15215        fi
15216      else
15217        lt_cv_prog_compiler_static_works_CXX=yes
15218      fi
15219    fi
15220    $RM -r conftest*
15221    LDFLAGS="$save_LDFLAGS"
15222
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15225 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15226
15227 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15228     :
15229 else
15230     lt_prog_compiler_static_CXX=
15231 fi
15232
15233
15234
15235
15236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15238 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15239   $as_echo_n "(cached) " >&6
15240 else
15241   lt_cv_prog_compiler_c_o_CXX=no
15242    $RM -r conftest 2>/dev/null
15243    mkdir conftest
15244    cd conftest
15245    mkdir out
15246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15247
15248    lt_compiler_flag="-o out/conftest2.$ac_objext"
15249    # Insert the option either (1) after the last *FLAGS variable, or
15250    # (2) before a word containing "conftest.", or (3) at the end.
15251    # Note that $ac_compile itself does not contain backslashes and begins
15252    # with a dollar sign (not a hyphen), so the echo should work correctly.
15253    lt_compile=`echo "$ac_compile" | $SED \
15254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256    -e 's:$: $lt_compiler_flag:'`
15257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15258    (eval "$lt_compile" 2>out/conftest.err)
15259    ac_status=$?
15260    cat out/conftest.err >&5
15261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15263    then
15264      # The compiler can only warn and ignore the option if not recognized
15265      # So say no if there are warnings
15266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15269        lt_cv_prog_compiler_c_o_CXX=yes
15270      fi
15271    fi
15272    chmod u+w . 2>&5
15273    $RM conftest*
15274    # SGI C++ compiler will create directory out/ii_files/ for
15275    # template instantiation
15276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15277    $RM out/* && rmdir out
15278    cd ..
15279    $RM -r conftest
15280    $RM conftest*
15281
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15284 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15285
15286
15287
15288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15291   $as_echo_n "(cached) " >&6
15292 else
15293   lt_cv_prog_compiler_c_o_CXX=no
15294    $RM -r conftest 2>/dev/null
15295    mkdir conftest
15296    cd conftest
15297    mkdir out
15298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299
15300    lt_compiler_flag="-o out/conftest2.$ac_objext"
15301    # Insert the option either (1) after the last *FLAGS variable, or
15302    # (2) before a word containing "conftest.", or (3) at the end.
15303    # Note that $ac_compile itself does not contain backslashes and begins
15304    # with a dollar sign (not a hyphen), so the echo should work correctly.
15305    lt_compile=`echo "$ac_compile" | $SED \
15306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308    -e 's:$: $lt_compiler_flag:'`
15309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310    (eval "$lt_compile" 2>out/conftest.err)
15311    ac_status=$?
15312    cat out/conftest.err >&5
15313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15315    then
15316      # The compiler can only warn and ignore the option if not recognized
15317      # So say no if there are warnings
15318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321        lt_cv_prog_compiler_c_o_CXX=yes
15322      fi
15323    fi
15324    chmod u+w . 2>&5
15325    $RM conftest*
15326    # SGI C++ compiler will create directory out/ii_files/ for
15327    # template instantiation
15328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329    $RM out/* && rmdir out
15330    cd ..
15331    $RM -r conftest
15332    $RM conftest*
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15337
15338
15339
15340
15341 hard_links="nottested"
15342 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15343   # do not overwrite the value of need_locks provided by the user
15344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15345 $as_echo_n "checking if we can lock with hard links... " >&6; }
15346   hard_links=yes
15347   $RM conftest*
15348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349   touch conftest.a
15350   ln conftest.a conftest.b 2>&5 || hard_links=no
15351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15353 $as_echo "$hard_links" >&6; }
15354   if test "$hard_links" = no; then
15355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15357     need_locks=warn
15358   fi
15359 else
15360   need_locks=no
15361 fi
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15367
15368   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15369   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15370   case $host_os in
15371   aix[4-9]*)
15372     # If we're using GNU nm, then we don't want the "-C" option.
15373     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15374     # Also, AIX nm treats weak defined symbols like other global defined
15375     # symbols, whereas GNU nm marks them as "W".
15376     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15377       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'
15378     else
15379       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'
15380     fi
15381     ;;
15382   pw32*)
15383     export_symbols_cmds_CXX="$ltdll_cmds"
15384     ;;
15385   cygwin* | mingw* | cegcc*)
15386     case $cc_basename in
15387     cl*) ;;
15388     *)
15389       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'
15390       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15391       ;;
15392     esac
15393     ;;
15394   *)
15395     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396     ;;
15397   esac
15398
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15400 $as_echo "$ld_shlibs_CXX" >&6; }
15401 test "$ld_shlibs_CXX" = no && can_build_shared=no
15402
15403 with_gnu_ld_CXX=$with_gnu_ld
15404
15405
15406
15407
15408
15409
15410 #
15411 # Do we need to explicitly link libc?
15412 #
15413 case "x$archive_cmds_need_lc_CXX" in
15414 x|xyes)
15415   # Assume -lc should be added
15416   archive_cmds_need_lc_CXX=yes
15417
15418   if test "$enable_shared" = yes && test "$GCC" = yes; then
15419     case $archive_cmds_CXX in
15420     *'~'*)
15421       # FIXME: we may have to deal with multi-command sequences.
15422       ;;
15423     '$CC '*)
15424       # Test whether the compiler implicitly links with -lc since on some
15425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15426       # to ld, don't add -lc before -lgcc.
15427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15429 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15430   $as_echo_n "(cached) " >&6
15431 else
15432   $RM conftest*
15433         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15434
15435         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15436   (eval $ac_compile) 2>&5
15437   ac_status=$?
15438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439   test $ac_status = 0; } 2>conftest.err; then
15440           soname=conftest
15441           lib=conftest
15442           libobjs=conftest.$ac_objext
15443           deplibs=
15444           wl=$lt_prog_compiler_wl_CXX
15445           pic_flag=$lt_prog_compiler_pic_CXX
15446           compiler_flags=-v
15447           linker_flags=-v
15448           verstring=
15449           output_objdir=.
15450           libname=conftest
15451           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15452           allow_undefined_flag_CXX=
15453           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15454   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15455   ac_status=$?
15456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15457   test $ac_status = 0; }
15458           then
15459             lt_cv_archive_cmds_need_lc_CXX=no
15460           else
15461             lt_cv_archive_cmds_need_lc_CXX=yes
15462           fi
15463           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15464         else
15465           cat conftest.err 1>&5
15466         fi
15467         $RM conftest*
15468
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15471 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15472       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15473       ;;
15474     esac
15475   fi
15476   ;;
15477 esac
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15544
15545 library_names_spec=
15546 libname_spec='lib$name'
15547 soname_spec=
15548 shrext_cmds=".so"
15549 postinstall_cmds=
15550 postuninstall_cmds=
15551 finish_cmds=
15552 finish_eval=
15553 shlibpath_var=
15554 shlibpath_overrides_runpath=unknown
15555 version_type=none
15556 dynamic_linker="$host_os ld.so"
15557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15558 need_lib_prefix=unknown
15559 hardcode_into_libs=no
15560
15561 # when you set need_version to no, make sure it does not cause -set_version
15562 # flags to be left without arguments
15563 need_version=unknown
15564
15565 case $host_os in
15566 aix3*)
15567   version_type=linux
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15569   shlibpath_var=LIBPATH
15570
15571   # AIX 3 has no versioning support, so we append a major version to the name.
15572   soname_spec='${libname}${release}${shared_ext}$major'
15573   ;;
15574
15575 aix[4-9]*)
15576   version_type=linux
15577   need_lib_prefix=no
15578   need_version=no
15579   hardcode_into_libs=yes
15580   if test "$host_cpu" = ia64; then
15581     # AIX 5 supports IA64
15582     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15583     shlibpath_var=LD_LIBRARY_PATH
15584   else
15585     # With GCC up to 2.95.x, collect2 would create an import file
15586     # for dependence libraries.  The import file would start with
15587     # the line `#! .'.  This would cause the generated library to
15588     # depend on `.', always an invalid library.  This was fixed in
15589     # development snapshots of GCC prior to 3.0.
15590     case $host_os in
15591       aix4 | aix4.[01] | aix4.[01].*)
15592       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15593            echo ' yes '
15594            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15595         :
15596       else
15597         can_build_shared=no
15598       fi
15599       ;;
15600     esac
15601     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15602     # soname into executable. Probably we can add versioning support to
15603     # collect2, so additional links can be useful in future.
15604     if test "$aix_use_runtimelinking" = yes; then
15605       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15606       # instead of lib<name>.a to let people know that these are not
15607       # typical AIX shared libraries.
15608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609     else
15610       # We preserve .a as extension for shared libraries through AIX4.2
15611       # and later when we are not doing run time linking.
15612       library_names_spec='${libname}${release}.a $libname.a'
15613       soname_spec='${libname}${release}${shared_ext}$major'
15614     fi
15615     shlibpath_var=LIBPATH
15616   fi
15617   ;;
15618
15619 amigaos*)
15620   case $host_cpu in
15621   powerpc)
15622     # Since July 2007 AmigaOS4 officially supports .so libraries.
15623     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625     ;;
15626   m68k)
15627     library_names_spec='$libname.ixlibrary $libname.a'
15628     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15629     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'
15630     ;;
15631   esac
15632   ;;
15633
15634 beos*)
15635   library_names_spec='${libname}${shared_ext}'
15636   dynamic_linker="$host_os ld.so"
15637   shlibpath_var=LIBRARY_PATH
15638   ;;
15639
15640 bsdi[45]*)
15641   version_type=linux
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15648   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15649   # the default ld.so.conf also contains /usr/contrib/lib and
15650   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15651   # libtool to hard-code these into programs
15652   ;;
15653
15654 cygwin* | mingw* | pw32* | cegcc*)
15655   version_type=windows
15656   shrext_cmds=".dll"
15657   need_version=no
15658   need_lib_prefix=no
15659
15660   case $GCC,$cc_basename in
15661   yes,*)
15662     # gcc
15663     library_names_spec='$libname.dll.a'
15664     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665     postinstall_cmds='base_file=`basename \${file}`~
15666       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15667       dldir=$destdir/`dirname \$dlpath`~
15668       test -d \$dldir || mkdir -p \$dldir~
15669       $install_prog $dir/$dlname \$dldir/$dlname~
15670       chmod a+x \$dldir/$dlname~
15671       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15672         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15673       fi'
15674     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15675       dlpath=$dir/\$dldll~
15676        $RM \$dlpath'
15677     shlibpath_overrides_runpath=yes
15678
15679     case $host_os in
15680     cygwin*)
15681       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15682       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683
15684       ;;
15685     mingw* | cegcc*)
15686       # MinGW DLLs use traditional 'lib' prefix
15687       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688       ;;
15689     pw32*)
15690       # pw32 DLLs use 'pw' prefix rather than 'lib'
15691       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692       ;;
15693     esac
15694     dynamic_linker='Win32 ld.exe'
15695     ;;
15696
15697   *,cl*)
15698     # Native MSVC
15699     libname_spec='$name'
15700     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701     library_names_spec='${libname}.dll.lib'
15702
15703     case $build_os in
15704     mingw*)
15705       sys_lib_search_path_spec=
15706       lt_save_ifs=$IFS
15707       IFS=';'
15708       for lt_path in $LIB
15709       do
15710         IFS=$lt_save_ifs
15711         # Let DOS variable expansion print the short 8.3 style file name.
15712         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15713         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15714       done
15715       IFS=$lt_save_ifs
15716       # Convert to MSYS style.
15717       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15718       ;;
15719     cygwin*)
15720       # Convert to unix form, then to dos form, then back to unix form
15721       # but this time dos style (no spaces!) so that the unix form looks
15722       # like /cygdrive/c/PROGRA~1:/cygdr...
15723       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15724       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15725       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15726       ;;
15727     *)
15728       sys_lib_search_path_spec="$LIB"
15729       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15730         # It is most probably a Windows format PATH.
15731         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15732       else
15733         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15734       fi
15735       # FIXME: find the short name or the path components, as spaces are
15736       # common. (e.g. "Program Files" -> "PROGRA~1")
15737       ;;
15738     esac
15739
15740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15741     postinstall_cmds='base_file=`basename \${file}`~
15742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15743       dldir=$destdir/`dirname \$dlpath`~
15744       test -d \$dldir || mkdir -p \$dldir~
15745       $install_prog $dir/$dlname \$dldir/$dlname'
15746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15747       dlpath=$dir/\$dldll~
15748        $RM \$dlpath'
15749     shlibpath_overrides_runpath=yes
15750     dynamic_linker='Win32 link.exe'
15751     ;;
15752
15753   *)
15754     # Assume MSVC wrapper
15755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15756     dynamic_linker='Win32 ld.exe'
15757     ;;
15758   esac
15759   # FIXME: first we should search . and the directory the executable is in
15760   shlibpath_var=PATH
15761   ;;
15762
15763 darwin* | rhapsody*)
15764   dynamic_linker="$host_os dyld"
15765   version_type=darwin
15766   need_lib_prefix=no
15767   need_version=no
15768   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15769   soname_spec='${libname}${release}${major}$shared_ext'
15770   shlibpath_overrides_runpath=yes
15771   shlibpath_var=DYLD_LIBRARY_PATH
15772   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15773
15774   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15775   ;;
15776
15777 dgux*)
15778   version_type=linux
15779   need_lib_prefix=no
15780   need_version=no
15781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15782   soname_spec='${libname}${release}${shared_ext}$major'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   ;;
15785
15786 freebsd1*)
15787   dynamic_linker=no
15788   ;;
15789
15790 freebsd* | dragonfly*)
15791   # DragonFly does not have aout.  When/if they implement a new
15792   # versioning mechanism, adjust this.
15793   if test -x /usr/bin/objformat; then
15794     objformat=`/usr/bin/objformat`
15795   else
15796     case $host_os in
15797     freebsd[123]*) objformat=aout ;;
15798     *) objformat=elf ;;
15799     esac
15800   fi
15801   version_type=freebsd-$objformat
15802   case $version_type in
15803     freebsd-elf*)
15804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15805       need_version=no
15806       need_lib_prefix=no
15807       ;;
15808     freebsd-*)
15809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15810       need_version=yes
15811       ;;
15812   esac
15813   shlibpath_var=LD_LIBRARY_PATH
15814   case $host_os in
15815   freebsd2*)
15816     shlibpath_overrides_runpath=yes
15817     ;;
15818   freebsd3.[01]* | freebsdelf3.[01]*)
15819     shlibpath_overrides_runpath=yes
15820     hardcode_into_libs=yes
15821     ;;
15822   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15823   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15824     shlibpath_overrides_runpath=no
15825     hardcode_into_libs=yes
15826     ;;
15827   *) # from 4.6 on, and DragonFly
15828     shlibpath_overrides_runpath=yes
15829     hardcode_into_libs=yes
15830     ;;
15831   esac
15832   ;;
15833
15834 gnu*)
15835   version_type=linux
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   hardcode_into_libs=yes
15842   ;;
15843
15844 haiku*)
15845   version_type=linux
15846   need_lib_prefix=no
15847   need_version=no
15848   dynamic_linker="$host_os runtime_loader"
15849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15850   soname_spec='${libname}${release}${shared_ext}$major'
15851   shlibpath_var=LIBRARY_PATH
15852   shlibpath_overrides_runpath=yes
15853   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15854   hardcode_into_libs=yes
15855   ;;
15856
15857 hpux9* | hpux10* | hpux11*)
15858   # Give a soname corresponding to the major version so that dld.sl refuses to
15859   # link against other versions.
15860   version_type=sunos
15861   need_lib_prefix=no
15862   need_version=no
15863   case $host_cpu in
15864   ia64*)
15865     shrext_cmds='.so'
15866     hardcode_into_libs=yes
15867     dynamic_linker="$host_os dld.so"
15868     shlibpath_var=LD_LIBRARY_PATH
15869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871     soname_spec='${libname}${release}${shared_ext}$major'
15872     if test "X$HPUX_IA64_MODE" = X32; then
15873       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15874     else
15875       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15876     fi
15877     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15878     ;;
15879   hppa*64*)
15880     shrext_cmds='.sl'
15881     hardcode_into_libs=yes
15882     dynamic_linker="$host_os dld.sl"
15883     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886     soname_spec='${libname}${release}${shared_ext}$major'
15887     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15889     ;;
15890   *)
15891     shrext_cmds='.sl'
15892     dynamic_linker="$host_os dld.sl"
15893     shlibpath_var=SHLIB_PATH
15894     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896     soname_spec='${libname}${release}${shared_ext}$major'
15897     ;;
15898   esac
15899   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15900   postinstall_cmds='chmod 555 $lib'
15901   # or fails outright, so override atomically:
15902   install_override_mode=555
15903   ;;
15904
15905 interix[3-9]*)
15906   version_type=linux
15907   need_lib_prefix=no
15908   need_version=no
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15912   shlibpath_var=LD_LIBRARY_PATH
15913   shlibpath_overrides_runpath=no
15914   hardcode_into_libs=yes
15915   ;;
15916
15917 irix5* | irix6* | nonstopux*)
15918   case $host_os in
15919     nonstopux*) version_type=nonstopux ;;
15920     *)
15921         if test "$lt_cv_prog_gnu_ld" = yes; then
15922                 version_type=linux
15923         else
15924                 version_type=irix
15925         fi ;;
15926   esac
15927   need_lib_prefix=no
15928   need_version=no
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15931   case $host_os in
15932   irix5* | nonstopux*)
15933     libsuff= shlibsuff=
15934     ;;
15935   *)
15936     case $LD in # libtool.m4 will add one of these switches to LD
15937     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15938       libsuff= shlibsuff= libmagic=32-bit;;
15939     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15940       libsuff=32 shlibsuff=N32 libmagic=N32;;
15941     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15942       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15943     *) libsuff= shlibsuff= libmagic=never-match;;
15944     esac
15945     ;;
15946   esac
15947   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15948   shlibpath_overrides_runpath=no
15949   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15950   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15951   hardcode_into_libs=yes
15952   ;;
15953
15954 # No shared lib support for Linux oldld, aout, or coff.
15955 linux*oldld* | linux*aout* | linux*coff*)
15956   dynamic_linker=no
15957   ;;
15958
15959 # This must be Linux ELF.
15960 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15961   version_type=linux
15962   need_lib_prefix=no
15963   need_version=no
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965   soname_spec='${libname}${release}${shared_ext}$major'
15966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=no
15969
15970   # Some binutils ld are patched to set DT_RUNPATH
15971   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15972   $as_echo_n "(cached) " >&6
15973 else
15974   lt_cv_shlibpath_overrides_runpath=no
15975     save_LDFLAGS=$LDFLAGS
15976     save_libdir=$libdir
15977     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15978          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981
15982 int
15983 main ()
15984 {
15985
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_cxx_try_link "$LINENO"; then :
15991   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15992   lt_cv_shlibpath_overrides_runpath=yes
15993 fi
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext \
15996     conftest$ac_exeext conftest.$ac_ext
15997     LDFLAGS=$save_LDFLAGS
15998     libdir=$save_libdir
15999
16000 fi
16001
16002   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16003
16004   # This implies no fast_install, which is unacceptable.
16005   # Some rework will be needed to allow for fast_install
16006   # before this can be enabled.
16007   hardcode_into_libs=yes
16008
16009   # Append ld.so.conf contents to the search path
16010   if test -f /etc/ld.so.conf; then
16011     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' ' '`
16012     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16013   fi
16014
16015   # We used to test for /lib/ld.so.1 and disable shared libraries on
16016   # powerpc, because MkLinux only supported shared libraries with the
16017   # GNU dynamic linker.  Since this was broken with cross compilers,
16018   # most powerpc-linux boxes support dynamic linking these days and
16019   # people can always --disable-shared, the test was removed, and we
16020   # assume the GNU/Linux dynamic linker is in use.
16021   dynamic_linker='GNU/Linux ld.so'
16022   ;;
16023
16024 netbsd*)
16025   version_type=sunos
16026   need_lib_prefix=no
16027   need_version=no
16028   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16030     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16031     dynamic_linker='NetBSD (a.out) ld.so'
16032   else
16033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16034     soname_spec='${libname}${release}${shared_ext}$major'
16035     dynamic_linker='NetBSD ld.elf_so'
16036   fi
16037   shlibpath_var=LD_LIBRARY_PATH
16038   shlibpath_overrides_runpath=yes
16039   hardcode_into_libs=yes
16040   ;;
16041
16042 newsos6)
16043   version_type=linux
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045   shlibpath_var=LD_LIBRARY_PATH
16046   shlibpath_overrides_runpath=yes
16047   ;;
16048
16049 *nto* | *qnx*)
16050   version_type=qnx
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=no
16057   hardcode_into_libs=yes
16058   dynamic_linker='ldqnx.so'
16059   ;;
16060
16061 openbsd*)
16062   version_type=sunos
16063   sys_lib_dlsearch_path_spec="/usr/lib"
16064   need_lib_prefix=no
16065   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16066   case $host_os in
16067     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16068     *)                          need_version=no  ;;
16069   esac
16070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16074     case $host_os in
16075       openbsd2.[89] | openbsd2.[89].*)
16076         shlibpath_overrides_runpath=no
16077         ;;
16078       *)
16079         shlibpath_overrides_runpath=yes
16080         ;;
16081       esac
16082   else
16083     shlibpath_overrides_runpath=yes
16084   fi
16085   ;;
16086
16087 os2*)
16088   libname_spec='$name'
16089   shrext_cmds=".dll"
16090   need_lib_prefix=no
16091   library_names_spec='$libname${shared_ext} $libname.a'
16092   dynamic_linker='OS/2 ld.exe'
16093   shlibpath_var=LIBPATH
16094   ;;
16095
16096 osf3* | osf4* | osf5*)
16097   version_type=osf
16098   need_lib_prefix=no
16099   need_version=no
16100   soname_spec='${libname}${release}${shared_ext}$major'
16101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16104   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16105   ;;
16106
16107 rdos*)
16108   dynamic_linker=no
16109   ;;
16110
16111 solaris*)
16112   version_type=linux
16113   need_lib_prefix=no
16114   need_version=no
16115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116   soname_spec='${libname}${release}${shared_ext}$major'
16117   shlibpath_var=LD_LIBRARY_PATH
16118   shlibpath_overrides_runpath=yes
16119   hardcode_into_libs=yes
16120   # ldd complains unless libraries are executable
16121   postinstall_cmds='chmod +x $lib'
16122   ;;
16123
16124 sunos4*)
16125   version_type=sunos
16126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16127   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16128   shlibpath_var=LD_LIBRARY_PATH
16129   shlibpath_overrides_runpath=yes
16130   if test "$with_gnu_ld" = yes; then
16131     need_lib_prefix=no
16132   fi
16133   need_version=yes
16134   ;;
16135
16136 sysv4 | sysv4.3*)
16137   version_type=linux
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   case $host_vendor in
16142     sni)
16143       shlibpath_overrides_runpath=no
16144       need_lib_prefix=no
16145       runpath_var=LD_RUN_PATH
16146       ;;
16147     siemens)
16148       need_lib_prefix=no
16149       ;;
16150     motorola)
16151       need_lib_prefix=no
16152       need_version=no
16153       shlibpath_overrides_runpath=no
16154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16155       ;;
16156   esac
16157   ;;
16158
16159 sysv4*MP*)
16160   if test -d /usr/nec ;then
16161     version_type=linux
16162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16163     soname_spec='$libname${shared_ext}.$major'
16164     shlibpath_var=LD_LIBRARY_PATH
16165   fi
16166   ;;
16167
16168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16169   version_type=freebsd-elf
16170   need_lib_prefix=no
16171   need_version=no
16172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173   soname_spec='${libname}${release}${shared_ext}$major'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=yes
16176   hardcode_into_libs=yes
16177   if test "$with_gnu_ld" = yes; then
16178     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16179   else
16180     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16181     case $host_os in
16182       sco3.2v5*)
16183         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16184         ;;
16185     esac
16186   fi
16187   sys_lib_dlsearch_path_spec='/usr/lib'
16188   ;;
16189
16190 tpf*)
16191   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16192   version_type=linux
16193   need_lib_prefix=no
16194   need_version=no
16195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   shlibpath_overrides_runpath=no
16198   hardcode_into_libs=yes
16199   ;;
16200
16201 uts4*)
16202   version_type=linux
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   shlibpath_var=LD_LIBRARY_PATH
16206   ;;
16207
16208 *)
16209   dynamic_linker=no
16210   ;;
16211 esac
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16213 $as_echo "$dynamic_linker" >&6; }
16214 test "$dynamic_linker" = no && can_build_shared=no
16215
16216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16217 if test "$GCC" = yes; then
16218   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16219 fi
16220
16221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16222   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16223 fi
16224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16225   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16226 fi
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16266 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16267 hardcode_action_CXX=
16268 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16269    test -n "$runpath_var_CXX" ||
16270    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16271
16272   # We can hardcode non-existent directories.
16273   if test "$hardcode_direct_CXX" != no &&
16274      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275      # have to relink, otherwise we might link with an installed library
16276      # when we should be linking with a yet-to-be-installed one
16277      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16278      test "$hardcode_minus_L_CXX" != no; then
16279     # Linking always hardcodes the temporary library directory.
16280     hardcode_action_CXX=relink
16281   else
16282     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283     hardcode_action_CXX=immediate
16284   fi
16285 else
16286   # We cannot hardcode anything, or else we can only hardcode existing
16287   # directories.
16288   hardcode_action_CXX=unsupported
16289 fi
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16291 $as_echo "$hardcode_action_CXX" >&6; }
16292
16293 if test "$hardcode_action_CXX" = relink ||
16294    test "$inherit_rpath_CXX" = yes; then
16295   # Fast installation is not supported
16296   enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298      test "$enable_shared" = no; then
16299   # Fast installation is not necessary
16300   enable_fast_install=needless
16301 fi
16302
16303
16304
16305
16306
16307
16308
16309   fi # test -n "$compiler"
16310
16311   CC=$lt_save_CC
16312   CFLAGS=$lt_save_CFLAGS
16313   LDCXX=$LD
16314   LD=$lt_save_LD
16315   GCC=$lt_save_GCC
16316   with_gnu_ld=$lt_save_with_gnu_ld
16317   lt_cv_path_LDCXX=$lt_cv_path_LD
16318   lt_cv_path_LD=$lt_save_path_LD
16319   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16320   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16321 fi # test "$_lt_caught_CXX_error" != yes
16322
16323 ac_ext=c
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341         ac_config_commands="$ac_config_commands libtool"
16342
16343
16344
16345
16346 # Only expand once:
16347
16348
16349
16350
16351 if test x$use_libtool != xno; then
16352    DEFAULT_OBJECT_TYPE=".lo"
16353    DEFAULT_ARCHIVE_TYPE=".la"
16354    DEFAULT_SHARED_OBJECT_TYPE=".la"
16355    LIBTOOL="\$(LIBTOOL)"
16356    LIBTOOL_INSTALL_TARGET="libtool-install"
16357    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16358    LIBTOOL_CLEAN_TARGET="libtool-clean"
16359    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16360    FD_PLUGIN_DIR="src/plugins/fd"
16361    have_plugins=yes
16362 else
16363    DEFAULT_OBJECT_TYPE=".o"
16364    DEFAULT_ARCHIVE_TYPE=".a"
16365    DEFAULT_SHARED_OBJECT_TYPE=".so"
16366    LIBTOOL="# \$(LIBTOOL)"
16367    LIBTOOL_INSTALL_TARGET=""
16368    LIBTOOL_UNINSTALL_TARGET=""
16369    LIBTOOL_CLEAN_TARGET=""
16370    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16371    FD_PLUGIN_DIR=""
16372    have_plugins=no
16373 fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385 # Check whether --enable-includes was given.
16386 if test "${enable_includes+set}" = set; then :
16387   enableval=$enable_includes;
16388        if test x$enableval = xyes; then
16389           install_includes=yes
16390        fi
16391
16392
16393 fi
16394
16395
16396
16397 if test x$use_libtool != xno -a x$install_includes = xyes; then
16398    INCLUDE_INSTALL_TARGET="install-includes"
16399    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16400 else
16401    INCLUDE_INSTALL_TARGET=""
16402    INCLUDE_UNINSTALL_TARGET=""
16403 fi
16404
16405
16406
16407
16408
16409 case $host_os in
16410   *cygwin* ) CYGWIN=yes;;
16411          * ) CYGWIN=no;;
16412 esac
16413
16414 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16415 then
16416
16417
16418 if $TRUEPRG; then
16419   HAVE_SUN_OS_TRUE=
16420   HAVE_SUN_OS_FALSE='#'
16421 else
16422   HAVE_SUN_OS_TRUE='#'
16423   HAVE_SUN_OS_FALSE=
16424 fi
16425         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16426
16427 else
16428
16429
16430 if $FALSEPRG; then
16431   HAVE_SUN_OS_TRUE=
16432   HAVE_SUN_OS_FALSE='#'
16433 else
16434   HAVE_SUN_OS_TRUE='#'
16435   HAVE_SUN_OS_FALSE=
16436 fi
16437 fi
16438
16439 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16440 then
16441
16442
16443 if $TRUEPRG; then
16444   HAVE_OSF1_OS_TRUE=
16445   HAVE_OSF1_OS_FALSE='#'
16446 else
16447   HAVE_OSF1_OS_TRUE='#'
16448   HAVE_OSF1_OS_FALSE=
16449 fi
16450         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16451
16452 else
16453
16454
16455 if $FALSEPRG; then
16456   HAVE_OSF1_OS_TRUE=
16457   HAVE_OSF1_OS_FALSE='#'
16458 else
16459   HAVE_OSF1_OS_TRUE='#'
16460   HAVE_OSF1_OS_FALSE=
16461 fi
16462 fi
16463
16464 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16465 then
16466
16467
16468 if $TRUEPRG; then
16469   HAVE_AIX_OS_TRUE=
16470   HAVE_AIX_OS_FALSE='#'
16471 else
16472   HAVE_AIX_OS_TRUE='#'
16473   HAVE_AIX_OS_FALSE=
16474 fi
16475         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16476
16477 else
16478
16479
16480 if $FALSEPRG; then
16481   HAVE_AIX_OS_TRUE=
16482   HAVE_AIX_OS_FALSE='#'
16483 else
16484   HAVE_AIX_OS_TRUE='#'
16485   HAVE_AIX_OS_FALSE=
16486 fi
16487 fi
16488
16489 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16490 then
16491
16492
16493 if $TRUEPRG; then
16494   HAVE_HPUX_OS_TRUE=
16495   HAVE_HPUX_OS_FALSE='#'
16496 else
16497   HAVE_HPUX_OS_TRUE='#'
16498   HAVE_HPUX_OS_FALSE=
16499 fi
16500         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16501
16502 else
16503
16504
16505 if $FALSEPRG; then
16506   HAVE_HPUX_OS_TRUE=
16507   HAVE_HPUX_OS_FALSE='#'
16508 else
16509   HAVE_HPUX_OS_TRUE='#'
16510   HAVE_HPUX_OS_FALSE=
16511 fi
16512 fi
16513
16514 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16515 then
16516
16517
16518 if $TRUEPRG; then
16519   HAVE_LINUX_OS_TRUE=
16520   HAVE_LINUX_OS_FALSE='#'
16521 else
16522   HAVE_LINUX_OS_TRUE='#'
16523   HAVE_LINUX_OS_FALSE=
16524 fi
16525         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16526
16527 else
16528
16529
16530 if $FALSEPRG; then
16531   HAVE_LINUX_OS_TRUE=
16532   HAVE_LINUX_OS_FALSE='#'
16533 else
16534   HAVE_LINUX_OS_TRUE='#'
16535   HAVE_LINUX_OS_FALSE=
16536 fi
16537 fi
16538
16539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16540 then
16541
16542
16543 if $TRUEPRG; then
16544   HAVE_FREEBSD_OS_TRUE=
16545   HAVE_FREEBSD_OS_FALSE='#'
16546 else
16547   HAVE_FREEBSD_OS_TRUE='#'
16548   HAVE_FREEBSD_OS_FALSE=
16549 fi
16550         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16551
16552 else
16553
16554
16555 if $FALSEPRG; then
16556   HAVE_FREEBSD_OS_TRUE=
16557   HAVE_FREEBSD_OS_FALSE='#'
16558 else
16559   HAVE_FREEBSD_OS_TRUE='#'
16560   HAVE_FREEBSD_OS_FALSE=
16561 fi
16562 fi
16563
16564 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16565 then
16566
16567
16568 if $TRUEPRG; then
16569   HAVE_NETBSD_OS_TRUE=
16570   HAVE_NETBSD_OS_FALSE='#'
16571 else
16572   HAVE_NETBSD_OS_TRUE='#'
16573   HAVE_NETBSD_OS_FALSE=
16574 fi
16575         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16576
16577 else
16578
16579
16580 if $FALSEPRG; then
16581   HAVE_NETBSD_OS_TRUE=
16582   HAVE_NETBSD_OS_FALSE='#'
16583 else
16584   HAVE_NETBSD_OS_TRUE='#'
16585   HAVE_NETBSD_OS_FALSE=
16586 fi
16587 fi
16588
16589 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16590 then
16591
16592
16593 if $TRUEPRG; then
16594   HAVE_OPENBSD_OS_TRUE=
16595   HAVE_OPENBSD_OS_FALSE='#'
16596 else
16597   HAVE_OPENBSD_OS_TRUE='#'
16598   HAVE_OPENBSD_OS_FALSE=
16599 fi
16600         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16601
16602 else
16603
16604
16605 if $FALSEPRG; then
16606   HAVE_OPENBSD_OS_TRUE=
16607   HAVE_OPENBSD_OS_FALSE='#'
16608 else
16609   HAVE_OPENBSD_OS_TRUE='#'
16610   HAVE_OPENBSD_OS_FALSE=
16611 fi
16612 fi
16613
16614 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16615 then
16616
16617
16618 if $TRUEPRG; then
16619   HAVE_BSDI_OS_TRUE=
16620   HAVE_BSDI_OS_FALSE='#'
16621 else
16622   HAVE_BSDI_OS_TRUE='#'
16623   HAVE_BSDI_OS_FALSE=
16624 fi
16625         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16626
16627 else
16628
16629
16630 if $FALSEPRG; then
16631   HAVE_BSDI_OS_TRUE=
16632   HAVE_BSDI_OS_FALSE='#'
16633 else
16634   HAVE_BSDI_OS_TRUE='#'
16635   HAVE_BSDI_OS_FALSE=
16636 fi
16637 fi
16638
16639 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16640 then
16641
16642
16643 if $TRUEPRG; then
16644   HAVE_SGI_OS_TRUE=
16645   HAVE_SGI_OS_FALSE='#'
16646 else
16647   HAVE_SGI_OS_TRUE='#'
16648   HAVE_SGI_OS_FALSE=
16649 fi
16650         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16651
16652 else
16653
16654
16655 if $FALSEPRG; then
16656   HAVE_SGI_OS_TRUE=
16657   HAVE_SGI_OS_FALSE='#'
16658 else
16659   HAVE_SGI_OS_TRUE='#'
16660   HAVE_SGI_OS_FALSE=
16661 fi
16662 fi
16663
16664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16665 then
16666
16667
16668 if $TRUEPRG; then
16669   HAVE_IRIX_OS_TRUE=
16670   HAVE_IRIX_OS_FALSE='#'
16671 else
16672   HAVE_IRIX_OS_TRUE='#'
16673   HAVE_IRIX_OS_FALSE=
16674 fi
16675         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16676
16677 else
16678
16679
16680 if $FALSEPRG; then
16681   HAVE_IRIX_OS_TRUE=
16682   HAVE_IRIX_OS_FALSE='#'
16683 else
16684   HAVE_IRIX_OS_TRUE='#'
16685   HAVE_IRIX_OS_FALSE=
16686 fi
16687 fi
16688
16689 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16690 then
16691
16692
16693 if $TRUEPRG; then
16694   HAVE_DARWIN_OS_TRUE=
16695   HAVE_DARWIN_OS_FALSE='#'
16696 else
16697   HAVE_DARWIN_OS_TRUE='#'
16698   HAVE_DARWIN_OS_FALSE=
16699 fi
16700     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16701
16702 else
16703
16704
16705 if $FALSEPRG; then
16706   HAVE_DARWIN_OS_TRUE=
16707   HAVE_DARWIN_OS_FALSE='#'
16708 else
16709   HAVE_DARWIN_OS_TRUE='#'
16710   HAVE_DARWIN_OS_FALSE=
16711 fi
16712 fi
16713
16714
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16716 $as_echo_n "checking for Operating System Distribution... " >&6; }
16717 if test "x$DISTNAME" != "x"
16718 then
16719         echo "distname set to $DISTNAME"
16720 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16721 then
16722         DISTNAME=alpha
16723 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16724 then
16725         DISTNAME=aix
16726 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16727 then
16728         DISTNAME=hpux
16729 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16730 then
16731         DISTNAME=solaris
16732 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16733 then
16734         DISTNAME=freebsd
16735 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16736 then
16737         DISTNAME=netbsd
16738 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16739 then
16740         DISTNAME=openbsd
16741 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16742 then
16743         DISTNAME=irix
16744 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16745 then
16746         DISTNAME=bsdi
16747 elif test -f /etc/SuSE-release
16748 then
16749         DISTNAME=suse
16750 elif test -d /etc/SuSEconfig
16751 then
16752         DISTNAME=suse5
16753 elif test -f /etc/mandrake-release
16754 then
16755         DISTNAME=mandrake
16756 elif test -f /etc/whitebox-release
16757 then
16758        DISTNAME=redhat
16759 elif test -f /etc/redhat-release
16760 then
16761         DISTNAME=redhat
16762 elif test -f /etc/gentoo-release
16763 then
16764         DISTNAME=gentoo
16765 elif test -f /etc/debian_version
16766 then
16767         DISTNAME=debian
16768 elif test -f /etc/slackware-version
16769 then
16770         DISTNAME=slackware
16771 elif test x$host_vendor = xapple
16772 then
16773     DISTNAME=osx
16774 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16775 then
16776     DISTNAME=darwin
16777 elif test -f /etc/engarde-version
16778 then
16779         DISTNAME=engarde
16780 elif test -f /etc/arch-release
16781 then
16782         DISTNAME=archlinux
16783 elif test "$CYGWIN" = yes
16784 then
16785         DISTNAME=cygwin
16786         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16787
16788 else
16789         DISTNAME=unknown
16790 fi
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16792 $as_echo "done" >&6; }
16793
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16797 set x ${MAKE-make}
16798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16800   $as_echo_n "(cached) " >&6
16801 else
16802   cat >conftest.make <<\_ACEOF
16803 SHELL = /bin/sh
16804 all:
16805         @echo '@@@%%%=$(MAKE)=@@@%%%'
16806 _ACEOF
16807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16809   *@@@%%%=?*=@@@%%%*)
16810     eval ac_cv_prog_make_${ac_make}_set=yes;;
16811   *)
16812     eval ac_cv_prog_make_${ac_make}_set=no;;
16813 esac
16814 rm -f conftest.make
16815 fi
16816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16819   SET_MAKE=
16820 else
16821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16823   SET_MAKE="MAKE=${MAKE-make}"
16824 fi
16825
16826
16827
16828         MKINSTALLDIRS=
16829   if test -n "$ac_aux_dir"; then
16830     case "$ac_aux_dir" in
16831       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16832       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16833     esac
16834   fi
16835   if test -z "$MKINSTALLDIRS"; then
16836     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16837   fi
16838
16839
16840
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16842 $as_echo_n "checking whether NLS is requested... " >&6; }
16843     # Check whether --enable-nls was given.
16844 if test "${enable_nls+set}" = set; then :
16845   enableval=$enable_nls; USE_NLS=$enableval
16846 else
16847   USE_NLS=yes
16848 fi
16849
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16851 $as_echo "$USE_NLS" >&6; }
16852
16853
16854
16855
16856
16857
16858 # Prepare PATH_SEPARATOR.
16859 # The user is always right.
16860 if test "${PATH_SEPARATOR+set}" != set; then
16861   echo "#! /bin/sh" >conf$$.sh
16862   echo  "exit 0"   >>conf$$.sh
16863   chmod +x conf$$.sh
16864   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16865     PATH_SEPARATOR=';'
16866   else
16867     PATH_SEPARATOR=:
16868   fi
16869   rm -f conf$$.sh
16870 fi
16871
16872 # Find out how to test for executable files. Don't use a zero-byte file,
16873 # as systems may use methods other than mode bits to determine executability.
16874 cat >conf$$.file <<_ASEOF
16875 #! /bin/sh
16876 exit 0
16877 _ASEOF
16878 chmod +x conf$$.file
16879 if test -x conf$$.file >/dev/null 2>&1; then
16880   ac_executable_p="test -x"
16881 else
16882   ac_executable_p="test -f"
16883 fi
16884 rm -f conf$$.file
16885
16886 # Extract the first word of "msgfmt", so it can be a program name with args.
16887 set dummy msgfmt; ac_word=$2
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16889 $as_echo_n "checking for $ac_word... " >&6; }
16890 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16891   $as_echo_n "(cached) " >&6
16892 else
16893   case "$MSGFMT" in
16894   [\\/]* | ?:[\\/]*)
16895     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16896     ;;
16897   *)
16898     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16899     for ac_dir in $PATH; do
16900       IFS="$ac_save_IFS"
16901       test -z "$ac_dir" && ac_dir=.
16902       for ac_exec_ext in '' $ac_executable_extensions; do
16903         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16904           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16905           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16906      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16907             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16908             break 2
16909           fi
16910         fi
16911       done
16912     done
16913     IFS="$ac_save_IFS"
16914   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16915     ;;
16916 esac
16917 fi
16918 MSGFMT="$ac_cv_path_MSGFMT"
16919 if test "$MSGFMT" != ":"; then
16920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16921 $as_echo "$MSGFMT" >&6; }
16922 else
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 $as_echo "no" >&6; }
16925 fi
16926
16927   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16928 set dummy gmsgfmt; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16932   $as_echo_n "(cached) " >&6
16933 else
16934   case $GMSGFMT in
16935   [\\/]* | ?:[\\/]*)
16936   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16937   ;;
16938   *)
16939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940 for as_dir in $PATH
16941 do
16942   IFS=$as_save_IFS
16943   test -z "$as_dir" && as_dir=.
16944     for ac_exec_ext in '' $ac_executable_extensions; do
16945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16948     break 2
16949   fi
16950 done
16951   done
16952 IFS=$as_save_IFS
16953
16954   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16955   ;;
16956 esac
16957 fi
16958 GMSGFMT=$ac_cv_path_GMSGFMT
16959 if test -n "$GMSGFMT"; then
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16961 $as_echo "$GMSGFMT" >&6; }
16962 else
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16965 fi
16966
16967
16968
16969
16970 # Prepare PATH_SEPARATOR.
16971 # The user is always right.
16972 if test "${PATH_SEPARATOR+set}" != set; then
16973   echo "#! /bin/sh" >conf$$.sh
16974   echo  "exit 0"   >>conf$$.sh
16975   chmod +x conf$$.sh
16976   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16977     PATH_SEPARATOR=';'
16978   else
16979     PATH_SEPARATOR=:
16980   fi
16981   rm -f conf$$.sh
16982 fi
16983
16984 # Find out how to test for executable files. Don't use a zero-byte file,
16985 # as systems may use methods other than mode bits to determine executability.
16986 cat >conf$$.file <<_ASEOF
16987 #! /bin/sh
16988 exit 0
16989 _ASEOF
16990 chmod +x conf$$.file
16991 if test -x conf$$.file >/dev/null 2>&1; then
16992   ac_executable_p="test -x"
16993 else
16994   ac_executable_p="test -f"
16995 fi
16996 rm -f conf$$.file
16997
16998 # Extract the first word of "xgettext", so it can be a program name with args.
16999 set dummy xgettext; ac_word=$2
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001 $as_echo_n "checking for $ac_word... " >&6; }
17002 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   case "$XGETTEXT" in
17006   [\\/]* | ?:[\\/]*)
17007     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17008     ;;
17009   *)
17010     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17011     for ac_dir in $PATH; do
17012       IFS="$ac_save_IFS"
17013       test -z "$ac_dir" && ac_dir=.
17014       for ac_exec_ext in '' $ac_executable_extensions; do
17015         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17016           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17017           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17018      (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
17019             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17020             break 2
17021           fi
17022         fi
17023       done
17024     done
17025     IFS="$ac_save_IFS"
17026   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17027     ;;
17028 esac
17029 fi
17030 XGETTEXT="$ac_cv_path_XGETTEXT"
17031 if test "$XGETTEXT" != ":"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17033 $as_echo "$XGETTEXT" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039     rm -f messages.po
17040
17041
17042 # Prepare PATH_SEPARATOR.
17043 # The user is always right.
17044 if test "${PATH_SEPARATOR+set}" != set; then
17045   echo "#! /bin/sh" >conf$$.sh
17046   echo  "exit 0"   >>conf$$.sh
17047   chmod +x conf$$.sh
17048   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17049     PATH_SEPARATOR=';'
17050   else
17051     PATH_SEPARATOR=:
17052   fi
17053   rm -f conf$$.sh
17054 fi
17055
17056 # Find out how to test for executable files. Don't use a zero-byte file,
17057 # as systems may use methods other than mode bits to determine executability.
17058 cat >conf$$.file <<_ASEOF
17059 #! /bin/sh
17060 exit 0
17061 _ASEOF
17062 chmod +x conf$$.file
17063 if test -x conf$$.file >/dev/null 2>&1; then
17064   ac_executable_p="test -x"
17065 else
17066   ac_executable_p="test -f"
17067 fi
17068 rm -f conf$$.file
17069
17070 # Extract the first word of "msgmerge", so it can be a program name with args.
17071 set dummy msgmerge; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17073 $as_echo_n "checking for $ac_word... " >&6; }
17074 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   case "$MSGMERGE" in
17078   [\\/]* | ?:[\\/]*)
17079     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17080     ;;
17081   *)
17082     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17083     for ac_dir in $PATH; do
17084       IFS="$ac_save_IFS"
17085       test -z "$ac_dir" && ac_dir=.
17086       for ac_exec_ext in '' $ac_executable_extensions; do
17087         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17088           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17089           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17090             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17091             break 2
17092           fi
17093         fi
17094       done
17095     done
17096     IFS="$ac_save_IFS"
17097   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17098     ;;
17099 esac
17100 fi
17101 MSGMERGE="$ac_cv_path_MSGMERGE"
17102 if test "$MSGMERGE" != ":"; then
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17104 $as_echo "$MSGMERGE" >&6; }
17105 else
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107 $as_echo "no" >&6; }
17108 fi
17109
17110
17111       if test "$GMSGFMT" != ":"; then
17112             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17113        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17114       : ;
17115     else
17116       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17119       GMSGFMT=":"
17120     fi
17121   fi
17122
17123       if test "$XGETTEXT" != ":"; then
17124             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17125        (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
17126       : ;
17127     else
17128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17130       XGETTEXT=":"
17131     fi
17132         rm -f messages.po
17133   fi
17134
17135   ac_config_commands="$ac_config_commands default-1"
17136
17137
17138
17139       if test "X$prefix" = "XNONE"; then
17140     acl_final_prefix="$ac_default_prefix"
17141   else
17142     acl_final_prefix="$prefix"
17143   fi
17144   if test "X$exec_prefix" = "XNONE"; then
17145     acl_final_exec_prefix='${prefix}'
17146   else
17147     acl_final_exec_prefix="$exec_prefix"
17148   fi
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17152   prefix="$acl_save_prefix"
17153
17154
17155 # Check whether --with-gnu-ld was given.
17156 if test "${with_gnu_ld+set}" = set; then :
17157   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17158 else
17159   with_gnu_ld=no
17160 fi
17161
17162 # Prepare PATH_SEPARATOR.
17163 # The user is always right.
17164 if test "${PATH_SEPARATOR+set}" != set; then
17165   echo "#! /bin/sh" >conf$$.sh
17166   echo  "exit 0"   >>conf$$.sh
17167   chmod +x conf$$.sh
17168   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17169     PATH_SEPARATOR=';'
17170   else
17171     PATH_SEPARATOR=:
17172   fi
17173   rm -f conf$$.sh
17174 fi
17175 ac_prog=ld
17176 if test "$GCC" = yes; then
17177   # Check if gcc -print-prog-name=ld gives a path.
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17179 $as_echo_n "checking for ld used by GCC... " >&6; }
17180   case $host in
17181   *-*-mingw*)
17182     # gcc leaves a trailing carriage return which upsets mingw
17183     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17184   *)
17185     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17186   esac
17187   case $ac_prog in
17188     # Accept absolute paths.
17189     [\\/]* | [A-Za-z]:[\\/]*)
17190       re_direlt='/[^/][^/]*/\.\./'
17191       # Canonicalize the path of ld
17192       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17193       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17194         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17195       done
17196       test -z "$LD" && LD="$ac_prog"
17197       ;;
17198   "")
17199     # If it fails, then pretend we aren't using GCC.
17200     ac_prog=ld
17201     ;;
17202   *)
17203     # If it is relative, then search for the first ld in PATH.
17204     with_gnu_ld=unknown
17205     ;;
17206   esac
17207 elif test "$with_gnu_ld" = yes; then
17208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17209 $as_echo_n "checking for GNU ld... " >&6; }
17210 else
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17212 $as_echo_n "checking for non-GNU ld... " >&6; }
17213 fi
17214 if test "${acl_cv_path_LD+set}" = set; then :
17215   $as_echo_n "(cached) " >&6
17216 else
17217   if test -z "$LD"; then
17218   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17219   for ac_dir in $PATH; do
17220     test -z "$ac_dir" && ac_dir=.
17221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17222       acl_cv_path_LD="$ac_dir/$ac_prog"
17223       # Check to see if the program is GNU ld.  I'd rather use --version,
17224       # but apparently some GNU ld's only accept -v.
17225       # Break only if it was the GNU/non-GNU ld that we prefer.
17226       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17227       *GNU* | *'with BFD'*)
17228         test "$with_gnu_ld" != no && break ;;
17229       *)
17230         test "$with_gnu_ld" != yes && break ;;
17231       esac
17232     fi
17233   done
17234   IFS="$ac_save_ifs"
17235 else
17236   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17237 fi
17238 fi
17239
17240 LD="$acl_cv_path_LD"
17241 if test -n "$LD"; then
17242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17243 $as_echo "$LD" >&6; }
17244 else
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; }
17247 fi
17248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17251 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17252   $as_echo_n "(cached) " >&6
17253 else
17254   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17255 case `$LD -v 2>&1 </dev/null` in
17256 *GNU* | *'with BFD'*)
17257   acl_cv_prog_gnu_ld=yes ;;
17258 *)
17259   acl_cv_prog_gnu_ld=no ;;
17260 esac
17261 fi
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17263 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17264 with_gnu_ld=$acl_cv_prog_gnu_ld
17265
17266
17267
17268
17269                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17270 $as_echo_n "checking for shared library run path origin... " >&6; }
17271 if test "${acl_cv_rpath+set}" = set; then :
17272   $as_echo_n "(cached) " >&6
17273 else
17274
17275     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17276     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17277     . ./conftest.sh
17278     rm -f ./conftest.sh
17279     acl_cv_rpath=done
17280
17281 fi
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17283 $as_echo "$acl_cv_rpath" >&6; }
17284   wl="$acl_cv_wl"
17285   libext="$acl_cv_libext"
17286   shlibext="$acl_cv_shlibext"
17287   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17288   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17289   hardcode_direct="$acl_cv_hardcode_direct"
17290   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17291     # Check whether --enable-rpath was given.
17292 if test "${enable_rpath+set}" = set; then :
17293   enableval=$enable_rpath; :
17294 else
17295   enable_rpath=yes
17296 fi
17297
17298
17299
17300
17301
17302
17303
17304
17305     use_additional=yes
17306
17307   acl_save_prefix="$prefix"
17308   prefix="$acl_final_prefix"
17309   acl_save_exec_prefix="$exec_prefix"
17310   exec_prefix="$acl_final_exec_prefix"
17311
17312     eval additional_includedir=\"$includedir\"
17313     eval additional_libdir=\"$libdir\"
17314
17315   exec_prefix="$acl_save_exec_prefix"
17316   prefix="$acl_save_prefix"
17317
17318
17319 # Check whether --with-libiconv-prefix was given.
17320 if test "${with_libiconv_prefix+set}" = set; then :
17321   withval=$with_libiconv_prefix;
17322     if test "X$withval" = "Xno"; then
17323       use_additional=no
17324     else
17325       if test "X$withval" = "X"; then
17326
17327   acl_save_prefix="$prefix"
17328   prefix="$acl_final_prefix"
17329   acl_save_exec_prefix="$exec_prefix"
17330   exec_prefix="$acl_final_exec_prefix"
17331
17332           eval additional_includedir=\"$includedir\"
17333           eval additional_libdir=\"$libdir\"
17334
17335   exec_prefix="$acl_save_exec_prefix"
17336   prefix="$acl_save_prefix"
17337
17338       else
17339         additional_includedir="$withval/include"
17340         additional_libdir="$withval/lib"
17341       fi
17342     fi
17343
17344 fi
17345
17346       LIBICONV=
17347   LTLIBICONV=
17348   INCICONV=
17349   rpathdirs=
17350   ltrpathdirs=
17351   names_already_handled=
17352   names_next_round='iconv '
17353   while test -n "$names_next_round"; do
17354     names_this_round="$names_next_round"
17355     names_next_round=
17356     for name in $names_this_round; do
17357       already_handled=
17358       for n in $names_already_handled; do
17359         if test "$n" = "$name"; then
17360           already_handled=yes
17361           break
17362         fi
17363       done
17364       if test -z "$already_handled"; then
17365         names_already_handled="$names_already_handled $name"
17366                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17367         eval value=\"\$HAVE_LIB$uppername\"
17368         if test -n "$value"; then
17369           if test "$value" = yes; then
17370             eval value=\"\$LIB$uppername\"
17371             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17372             eval value=\"\$LTLIB$uppername\"
17373             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17374           else
17375                                     :
17376           fi
17377         else
17378                               found_dir=
17379           found_la=
17380           found_so=
17381           found_a=
17382           if test $use_additional = yes; then
17383             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17384               found_dir="$additional_libdir"
17385               found_so="$additional_libdir/lib$name.$shlibext"
17386               if test -f "$additional_libdir/lib$name.la"; then
17387                 found_la="$additional_libdir/lib$name.la"
17388               fi
17389             else
17390               if test -f "$additional_libdir/lib$name.$libext"; then
17391                 found_dir="$additional_libdir"
17392                 found_a="$additional_libdir/lib$name.$libext"
17393                 if test -f "$additional_libdir/lib$name.la"; then
17394                   found_la="$additional_libdir/lib$name.la"
17395                 fi
17396               fi
17397             fi
17398           fi
17399           if test "X$found_dir" = "X"; then
17400             for x in $LDFLAGS $LTLIBICONV; do
17401
17402   acl_save_prefix="$prefix"
17403   prefix="$acl_final_prefix"
17404   acl_save_exec_prefix="$exec_prefix"
17405   exec_prefix="$acl_final_exec_prefix"
17406   eval x=\"$x\"
17407   exec_prefix="$acl_save_exec_prefix"
17408   prefix="$acl_save_prefix"
17409
17410               case "$x" in
17411                 -L*)
17412                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17413                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17414                     found_dir="$dir"
17415                     found_so="$dir/lib$name.$shlibext"
17416                     if test -f "$dir/lib$name.la"; then
17417                       found_la="$dir/lib$name.la"
17418                     fi
17419                   else
17420                     if test -f "$dir/lib$name.$libext"; then
17421                       found_dir="$dir"
17422                       found_a="$dir/lib$name.$libext"
17423                       if test -f "$dir/lib$name.la"; then
17424                         found_la="$dir/lib$name.la"
17425                       fi
17426                     fi
17427                   fi
17428                   ;;
17429               esac
17430               if test "X$found_dir" != "X"; then
17431                 break
17432               fi
17433             done
17434           fi
17435           if test "X$found_dir" != "X"; then
17436                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17437             if test "X$found_so" != "X"; then
17438                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17439                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17440               else
17441                                                                                 haveit=
17442                 for x in $ltrpathdirs; do
17443                   if test "X$x" = "X$found_dir"; then
17444                     haveit=yes
17445                     break
17446                   fi
17447                 done
17448                 if test -z "$haveit"; then
17449                   ltrpathdirs="$ltrpathdirs $found_dir"
17450                 fi
17451                                 if test "$hardcode_direct" = yes; then
17452                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17453                 else
17454                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17455                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17456                                                             haveit=
17457                     for x in $rpathdirs; do
17458                       if test "X$x" = "X$found_dir"; then
17459                         haveit=yes
17460                         break
17461                       fi
17462                     done
17463                     if test -z "$haveit"; then
17464                       rpathdirs="$rpathdirs $found_dir"
17465                     fi
17466                   else
17467                                                                                 haveit=
17468                     for x in $LDFLAGS $LIBICONV; do
17469
17470   acl_save_prefix="$prefix"
17471   prefix="$acl_final_prefix"
17472   acl_save_exec_prefix="$exec_prefix"
17473   exec_prefix="$acl_final_exec_prefix"
17474   eval x=\"$x\"
17475   exec_prefix="$acl_save_exec_prefix"
17476   prefix="$acl_save_prefix"
17477
17478                       if test "X$x" = "X-L$found_dir"; then
17479                         haveit=yes
17480                         break
17481                       fi
17482                     done
17483                     if test -z "$haveit"; then
17484                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17485                     fi
17486                     if test "$hardcode_minus_L" != no; then
17487                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17488                     else
17489                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17490                     fi
17491                   fi
17492                 fi
17493               fi
17494             else
17495               if test "X$found_a" != "X"; then
17496                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17497               else
17498                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17499               fi
17500             fi
17501                         additional_includedir=
17502             case "$found_dir" in
17503               */lib | */lib/)
17504                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17505                 additional_includedir="$basedir/include"
17506                 ;;
17507             esac
17508             if test "X$additional_includedir" != "X"; then
17509                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17510                 haveit=
17511                 if test "X$additional_includedir" = "X/usr/local/include"; then
17512                   if test -n "$GCC"; then
17513                     case $host_os in
17514                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17515                     esac
17516                   fi
17517                 fi
17518                 if test -z "$haveit"; then
17519                   for x in $CPPFLAGS $INCICONV; do
17520
17521   acl_save_prefix="$prefix"
17522   prefix="$acl_final_prefix"
17523   acl_save_exec_prefix="$exec_prefix"
17524   exec_prefix="$acl_final_exec_prefix"
17525   eval x=\"$x\"
17526   exec_prefix="$acl_save_exec_prefix"
17527   prefix="$acl_save_prefix"
17528
17529                     if test "X$x" = "X-I$additional_includedir"; then
17530                       haveit=yes
17531                       break
17532                     fi
17533                   done
17534                   if test -z "$haveit"; then
17535                     if test -d "$additional_includedir"; then
17536                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17537                     fi
17538                   fi
17539                 fi
17540               fi
17541             fi
17542                         if test -n "$found_la"; then
17543                                                         save_libdir="$libdir"
17544               case "$found_la" in
17545                 */* | *\\*) . "$found_la" ;;
17546                 *) . "./$found_la" ;;
17547               esac
17548               libdir="$save_libdir"
17549                             for dep in $dependency_libs; do
17550                 case "$dep" in
17551                   -L*)
17552                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17553                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17554                       haveit=
17555                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17556                         if test -n "$GCC"; then
17557                           case $host_os in
17558                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17559                           esac
17560                         fi
17561                       fi
17562                       if test -z "$haveit"; then
17563                         haveit=
17564                         for x in $LDFLAGS $LIBICONV; do
17565
17566   acl_save_prefix="$prefix"
17567   prefix="$acl_final_prefix"
17568   acl_save_exec_prefix="$exec_prefix"
17569   exec_prefix="$acl_final_exec_prefix"
17570   eval x=\"$x\"
17571   exec_prefix="$acl_save_exec_prefix"
17572   prefix="$acl_save_prefix"
17573
17574                           if test "X$x" = "X-L$additional_libdir"; then
17575                             haveit=yes
17576                             break
17577                           fi
17578                         done
17579                         if test -z "$haveit"; then
17580                           if test -d "$additional_libdir"; then
17581                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17582                           fi
17583                         fi
17584                         haveit=
17585                         for x in $LDFLAGS $LTLIBICONV; do
17586
17587   acl_save_prefix="$prefix"
17588   prefix="$acl_final_prefix"
17589   acl_save_exec_prefix="$exec_prefix"
17590   exec_prefix="$acl_final_exec_prefix"
17591   eval x=\"$x\"
17592   exec_prefix="$acl_save_exec_prefix"
17593   prefix="$acl_save_prefix"
17594
17595                           if test "X$x" = "X-L$additional_libdir"; then
17596                             haveit=yes
17597                             break
17598                           fi
17599                         done
17600                         if test -z "$haveit"; then
17601                           if test -d "$additional_libdir"; then
17602                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17603                           fi
17604                         fi
17605                       fi
17606                     fi
17607                     ;;
17608                   -R*)
17609                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17610                     if test "$enable_rpath" != no; then
17611                                                                   haveit=
17612                       for x in $rpathdirs; do
17613                         if test "X$x" = "X$dir"; then
17614                           haveit=yes
17615                           break
17616                         fi
17617                       done
17618                       if test -z "$haveit"; then
17619                         rpathdirs="$rpathdirs $dir"
17620                       fi
17621                                                                   haveit=
17622                       for x in $ltrpathdirs; do
17623                         if test "X$x" = "X$dir"; then
17624                           haveit=yes
17625                           break
17626                         fi
17627                       done
17628                       if test -z "$haveit"; then
17629                         ltrpathdirs="$ltrpathdirs $dir"
17630                       fi
17631                     fi
17632                     ;;
17633                   -l*)
17634                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17635                     ;;
17636                   *.la)
17637                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17638                     ;;
17639                   *)
17640                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17641                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17642                     ;;
17643                 esac
17644               done
17645             fi
17646           else
17647                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17648             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17649           fi
17650         fi
17651       fi
17652     done
17653   done
17654   if test "X$rpathdirs" != "X"; then
17655     if test -n "$hardcode_libdir_separator"; then
17656                         alldirs=
17657       for found_dir in $rpathdirs; do
17658         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17659       done
17660             acl_save_libdir="$libdir"
17661       libdir="$alldirs"
17662       eval flag=\"$hardcode_libdir_flag_spec\"
17663       libdir="$acl_save_libdir"
17664       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17665     else
17666             for found_dir in $rpathdirs; do
17667         acl_save_libdir="$libdir"
17668         libdir="$found_dir"
17669         eval flag=\"$hardcode_libdir_flag_spec\"
17670         libdir="$acl_save_libdir"
17671         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17672       done
17673     fi
17674   fi
17675   if test "X$ltrpathdirs" != "X"; then
17676             for found_dir in $ltrpathdirs; do
17677       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17678     done
17679   fi
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17699 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17700 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17701   $as_echo_n "(cached) " >&6
17702 else
17703   gt_save_CPPFLAGS="$CPPFLAGS"
17704      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17705      gt_save_LIBS="$LIBS"
17706      LIBS="$LIBS -framework CoreFoundation"
17707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h.  */
17709 #include <CFPreferences.h>
17710 int
17711 main ()
17712 {
17713 CFPreferencesCopyAppValue(NULL, NULL)
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 if ac_fn_c_try_link "$LINENO"; then :
17719   gt_cv_func_CFPreferencesCopyAppValue=yes
17720 else
17721   gt_cv_func_CFPreferencesCopyAppValue=no
17722 fi
17723 rm -f core conftest.err conftest.$ac_objext \
17724     conftest$ac_exeext conftest.$ac_ext
17725      CPPFLAGS="$gt_save_CPPFLAGS"
17726      LIBS="$gt_save_LIBS"
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17729 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17730   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17731
17732 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17733
17734   fi
17735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17736 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17737 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17738   $as_echo_n "(cached) " >&6
17739 else
17740   gt_save_CPPFLAGS="$CPPFLAGS"
17741      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17742      gt_save_LIBS="$LIBS"
17743      LIBS="$LIBS -framework CoreFoundation"
17744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h.  */
17746 #include <CFLocale.h>
17747 int
17748 main ()
17749 {
17750 CFLocaleCopyCurrent();
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 if ac_fn_c_try_link "$LINENO"; then :
17756   gt_cv_func_CFLocaleCopyCurrent=yes
17757 else
17758   gt_cv_func_CFLocaleCopyCurrent=no
17759 fi
17760 rm -f core conftest.err conftest.$ac_objext \
17761     conftest$ac_exeext conftest.$ac_ext
17762      CPPFLAGS="$gt_save_CPPFLAGS"
17763      LIBS="$gt_save_LIBS"
17764 fi
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17766 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17767   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17768
17769 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17770
17771   fi
17772   INTL_MACOSX_LIBS=
17773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17774     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17775   fi
17776
17777
17778
17779
17780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17781 $as_echo_n "checking whether NLS is requested... " >&6; }
17782     # Check whether --enable-nls was given.
17783 if test "${enable_nls+set}" = set; then :
17784   enableval=$enable_nls; USE_NLS=$enableval
17785 else
17786   USE_NLS=yes
17787 fi
17788
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17790 $as_echo "$USE_NLS" >&6; }
17791
17792
17793
17794
17795   LIBINTL=
17796   LTLIBINTL=
17797   POSUB=
17798
17799     if test "$USE_NLS" = "yes"; then
17800     gt_use_preinstalled_gnugettext=no
17801
17802
17803
17804
17805
17806
17807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17808 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17809 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h.  */
17814 #include <libintl.h>
17815 extern int _nl_msg_cat_cntr;
17816 extern int *_nl_domain_bindings;
17817 int
17818 main ()
17819 {
17820 bindtextdomain ("", "");
17821 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827   gt_cv_func_gnugettext1_libc=yes
17828 else
17829   gt_cv_func_gnugettext1_libc=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832     conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17835 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17836
17837         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17838
17839
17840
17841
17842
17843           am_save_CPPFLAGS="$CPPFLAGS"
17844
17845   for element in $INCICONV; do
17846     haveit=
17847     for x in $CPPFLAGS; do
17848
17849   acl_save_prefix="$prefix"
17850   prefix="$acl_final_prefix"
17851   acl_save_exec_prefix="$exec_prefix"
17852   exec_prefix="$acl_final_exec_prefix"
17853   eval x=\"$x\"
17854   exec_prefix="$acl_save_exec_prefix"
17855   prefix="$acl_save_prefix"
17856
17857       if test "X$x" = "X$element"; then
17858         haveit=yes
17859         break
17860       fi
17861     done
17862     if test -z "$haveit"; then
17863       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17864     fi
17865   done
17866
17867
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17869 $as_echo_n "checking for iconv... " >&6; }
17870 if test "${am_cv_func_iconv+set}" = set; then :
17871   $as_echo_n "(cached) " >&6
17872 else
17873
17874     am_cv_func_iconv="no, consider installing GNU libiconv"
17875     am_cv_lib_iconv=no
17876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878 #include <stdlib.h>
17879 #include <iconv.h>
17880 int
17881 main ()
17882 {
17883 iconv_t cd = iconv_open("","");
17884        iconv(cd,NULL,NULL,NULL,NULL);
17885        iconv_close(cd);
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 if ac_fn_c_try_link "$LINENO"; then :
17891   am_cv_func_iconv=yes
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894     conftest$ac_exeext conftest.$ac_ext
17895     if test "$am_cv_func_iconv" != yes; then
17896       am_save_LIBS="$LIBS"
17897       LIBS="$LIBS $LIBICONV"
17898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h.  */
17900 #include <stdlib.h>
17901 #include <iconv.h>
17902 int
17903 main ()
17904 {
17905 iconv_t cd = iconv_open("","");
17906          iconv(cd,NULL,NULL,NULL,NULL);
17907          iconv_close(cd);
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 if ac_fn_c_try_link "$LINENO"; then :
17913   am_cv_lib_iconv=yes
17914         am_cv_func_iconv=yes
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917     conftest$ac_exeext conftest.$ac_ext
17918       LIBS="$am_save_LIBS"
17919     fi
17920
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17923 $as_echo "$am_cv_func_iconv" >&6; }
17924   if test "$am_cv_func_iconv" = yes; then
17925
17926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17927
17928   fi
17929   if test "$am_cv_lib_iconv" = yes; then
17930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17931 $as_echo_n "checking how to link with libiconv... " >&6; }
17932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17933 $as_echo "$LIBICONV" >&6; }
17934   else
17935             CPPFLAGS="$am_save_CPPFLAGS"
17936     LIBICONV=
17937     LTLIBICONV=
17938   fi
17939
17940
17941
17942
17943
17944
17945     use_additional=yes
17946
17947   acl_save_prefix="$prefix"
17948   prefix="$acl_final_prefix"
17949   acl_save_exec_prefix="$exec_prefix"
17950   exec_prefix="$acl_final_exec_prefix"
17951
17952     eval additional_includedir=\"$includedir\"
17953     eval additional_libdir=\"$libdir\"
17954
17955   exec_prefix="$acl_save_exec_prefix"
17956   prefix="$acl_save_prefix"
17957
17958
17959 # Check whether --with-libintl-prefix was given.
17960 if test "${with_libintl_prefix+set}" = set; then :
17961   withval=$with_libintl_prefix;
17962     if test "X$withval" = "Xno"; then
17963       use_additional=no
17964     else
17965       if test "X$withval" = "X"; then
17966
17967   acl_save_prefix="$prefix"
17968   prefix="$acl_final_prefix"
17969   acl_save_exec_prefix="$exec_prefix"
17970   exec_prefix="$acl_final_exec_prefix"
17971
17972           eval additional_includedir=\"$includedir\"
17973           eval additional_libdir=\"$libdir\"
17974
17975   exec_prefix="$acl_save_exec_prefix"
17976   prefix="$acl_save_prefix"
17977
17978       else
17979         additional_includedir="$withval/include"
17980         additional_libdir="$withval/lib"
17981       fi
17982     fi
17983
17984 fi
17985
17986       LIBINTL=
17987   LTLIBINTL=
17988   INCINTL=
17989   rpathdirs=
17990   ltrpathdirs=
17991   names_already_handled=
17992   names_next_round='intl '
17993   while test -n "$names_next_round"; do
17994     names_this_round="$names_next_round"
17995     names_next_round=
17996     for name in $names_this_round; do
17997       already_handled=
17998       for n in $names_already_handled; do
17999         if test "$n" = "$name"; then
18000           already_handled=yes
18001           break
18002         fi
18003       done
18004       if test -z "$already_handled"; then
18005         names_already_handled="$names_already_handled $name"
18006                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18007         eval value=\"\$HAVE_LIB$uppername\"
18008         if test -n "$value"; then
18009           if test "$value" = yes; then
18010             eval value=\"\$LIB$uppername\"
18011             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18012             eval value=\"\$LTLIB$uppername\"
18013             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18014           else
18015                                     :
18016           fi
18017         else
18018                               found_dir=
18019           found_la=
18020           found_so=
18021           found_a=
18022           if test $use_additional = yes; then
18023             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18024               found_dir="$additional_libdir"
18025               found_so="$additional_libdir/lib$name.$shlibext"
18026               if test -f "$additional_libdir/lib$name.la"; then
18027                 found_la="$additional_libdir/lib$name.la"
18028               fi
18029             else
18030               if test -f "$additional_libdir/lib$name.$libext"; then
18031                 found_dir="$additional_libdir"
18032                 found_a="$additional_libdir/lib$name.$libext"
18033                 if test -f "$additional_libdir/lib$name.la"; then
18034                   found_la="$additional_libdir/lib$name.la"
18035                 fi
18036               fi
18037             fi
18038           fi
18039           if test "X$found_dir" = "X"; then
18040             for x in $LDFLAGS $LTLIBINTL; do
18041
18042   acl_save_prefix="$prefix"
18043   prefix="$acl_final_prefix"
18044   acl_save_exec_prefix="$exec_prefix"
18045   exec_prefix="$acl_final_exec_prefix"
18046   eval x=\"$x\"
18047   exec_prefix="$acl_save_exec_prefix"
18048   prefix="$acl_save_prefix"
18049
18050               case "$x" in
18051                 -L*)
18052                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18053                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18054                     found_dir="$dir"
18055                     found_so="$dir/lib$name.$shlibext"
18056                     if test -f "$dir/lib$name.la"; then
18057                       found_la="$dir/lib$name.la"
18058                     fi
18059                   else
18060                     if test -f "$dir/lib$name.$libext"; then
18061                       found_dir="$dir"
18062                       found_a="$dir/lib$name.$libext"
18063                       if test -f "$dir/lib$name.la"; then
18064                         found_la="$dir/lib$name.la"
18065                       fi
18066                     fi
18067                   fi
18068                   ;;
18069               esac
18070               if test "X$found_dir" != "X"; then
18071                 break
18072               fi
18073             done
18074           fi
18075           if test "X$found_dir" != "X"; then
18076                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18077             if test "X$found_so" != "X"; then
18078                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18079                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18080               else
18081                                                                                 haveit=
18082                 for x in $ltrpathdirs; do
18083                   if test "X$x" = "X$found_dir"; then
18084                     haveit=yes
18085                     break
18086                   fi
18087                 done
18088                 if test -z "$haveit"; then
18089                   ltrpathdirs="$ltrpathdirs $found_dir"
18090                 fi
18091                                 if test "$hardcode_direct" = yes; then
18092                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18093                 else
18094                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18095                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18096                                                             haveit=
18097                     for x in $rpathdirs; do
18098                       if test "X$x" = "X$found_dir"; then
18099                         haveit=yes
18100                         break
18101                       fi
18102                     done
18103                     if test -z "$haveit"; then
18104                       rpathdirs="$rpathdirs $found_dir"
18105                     fi
18106                   else
18107                                                                                 haveit=
18108                     for x in $LDFLAGS $LIBINTL; do
18109
18110   acl_save_prefix="$prefix"
18111   prefix="$acl_final_prefix"
18112   acl_save_exec_prefix="$exec_prefix"
18113   exec_prefix="$acl_final_exec_prefix"
18114   eval x=\"$x\"
18115   exec_prefix="$acl_save_exec_prefix"
18116   prefix="$acl_save_prefix"
18117
18118                       if test "X$x" = "X-L$found_dir"; then
18119                         haveit=yes
18120                         break
18121                       fi
18122                     done
18123                     if test -z "$haveit"; then
18124                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18125                     fi
18126                     if test "$hardcode_minus_L" != no; then
18127                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18128                     else
18129                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18130                     fi
18131                   fi
18132                 fi
18133               fi
18134             else
18135               if test "X$found_a" != "X"; then
18136                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18137               else
18138                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18139               fi
18140             fi
18141                         additional_includedir=
18142             case "$found_dir" in
18143               */lib | */lib/)
18144                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18145                 additional_includedir="$basedir/include"
18146                 ;;
18147             esac
18148             if test "X$additional_includedir" != "X"; then
18149                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18150                 haveit=
18151                 if test "X$additional_includedir" = "X/usr/local/include"; then
18152                   if test -n "$GCC"; then
18153                     case $host_os in
18154                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18155                     esac
18156                   fi
18157                 fi
18158                 if test -z "$haveit"; then
18159                   for x in $CPPFLAGS $INCINTL; do
18160
18161   acl_save_prefix="$prefix"
18162   prefix="$acl_final_prefix"
18163   acl_save_exec_prefix="$exec_prefix"
18164   exec_prefix="$acl_final_exec_prefix"
18165   eval x=\"$x\"
18166   exec_prefix="$acl_save_exec_prefix"
18167   prefix="$acl_save_prefix"
18168
18169                     if test "X$x" = "X-I$additional_includedir"; then
18170                       haveit=yes
18171                       break
18172                     fi
18173                   done
18174                   if test -z "$haveit"; then
18175                     if test -d "$additional_includedir"; then
18176                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18177                     fi
18178                   fi
18179                 fi
18180               fi
18181             fi
18182                         if test -n "$found_la"; then
18183                                                         save_libdir="$libdir"
18184               case "$found_la" in
18185                 */* | *\\*) . "$found_la" ;;
18186                 *) . "./$found_la" ;;
18187               esac
18188               libdir="$save_libdir"
18189                             for dep in $dependency_libs; do
18190                 case "$dep" in
18191                   -L*)
18192                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18193                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18194                       haveit=
18195                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18196                         if test -n "$GCC"; then
18197                           case $host_os in
18198                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18199                           esac
18200                         fi
18201                       fi
18202                       if test -z "$haveit"; then
18203                         haveit=
18204                         for x in $LDFLAGS $LIBINTL; do
18205
18206   acl_save_prefix="$prefix"
18207   prefix="$acl_final_prefix"
18208   acl_save_exec_prefix="$exec_prefix"
18209   exec_prefix="$acl_final_exec_prefix"
18210   eval x=\"$x\"
18211   exec_prefix="$acl_save_exec_prefix"
18212   prefix="$acl_save_prefix"
18213
18214                           if test "X$x" = "X-L$additional_libdir"; then
18215                             haveit=yes
18216                             break
18217                           fi
18218                         done
18219                         if test -z "$haveit"; then
18220                           if test -d "$additional_libdir"; then
18221                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18222                           fi
18223                         fi
18224                         haveit=
18225                         for x in $LDFLAGS $LTLIBINTL; do
18226
18227   acl_save_prefix="$prefix"
18228   prefix="$acl_final_prefix"
18229   acl_save_exec_prefix="$exec_prefix"
18230   exec_prefix="$acl_final_exec_prefix"
18231   eval x=\"$x\"
18232   exec_prefix="$acl_save_exec_prefix"
18233   prefix="$acl_save_prefix"
18234
18235                           if test "X$x" = "X-L$additional_libdir"; then
18236                             haveit=yes
18237                             break
18238                           fi
18239                         done
18240                         if test -z "$haveit"; then
18241                           if test -d "$additional_libdir"; then
18242                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18243                           fi
18244                         fi
18245                       fi
18246                     fi
18247                     ;;
18248                   -R*)
18249                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18250                     if test "$enable_rpath" != no; then
18251                                                                   haveit=
18252                       for x in $rpathdirs; do
18253                         if test "X$x" = "X$dir"; then
18254                           haveit=yes
18255                           break
18256                         fi
18257                       done
18258                       if test -z "$haveit"; then
18259                         rpathdirs="$rpathdirs $dir"
18260                       fi
18261                                                                   haveit=
18262                       for x in $ltrpathdirs; do
18263                         if test "X$x" = "X$dir"; then
18264                           haveit=yes
18265                           break
18266                         fi
18267                       done
18268                       if test -z "$haveit"; then
18269                         ltrpathdirs="$ltrpathdirs $dir"
18270                       fi
18271                     fi
18272                     ;;
18273                   -l*)
18274                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18275                     ;;
18276                   *.la)
18277                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18278                     ;;
18279                   *)
18280                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18281                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18282                     ;;
18283                 esac
18284               done
18285             fi
18286           else
18287                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18288             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18289           fi
18290         fi
18291       fi
18292     done
18293   done
18294   if test "X$rpathdirs" != "X"; then
18295     if test -n "$hardcode_libdir_separator"; then
18296                         alldirs=
18297       for found_dir in $rpathdirs; do
18298         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18299       done
18300             acl_save_libdir="$libdir"
18301       libdir="$alldirs"
18302       eval flag=\"$hardcode_libdir_flag_spec\"
18303       libdir="$acl_save_libdir"
18304       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18305     else
18306             for found_dir in $rpathdirs; do
18307         acl_save_libdir="$libdir"
18308         libdir="$found_dir"
18309         eval flag=\"$hardcode_libdir_flag_spec\"
18310         libdir="$acl_save_libdir"
18311         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18312       done
18313     fi
18314   fi
18315   if test "X$ltrpathdirs" != "X"; then
18316             for found_dir in $ltrpathdirs; do
18317       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18318     done
18319   fi
18320
18321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18323 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
18324   $as_echo_n "(cached) " >&6
18325 else
18326   gt_save_CPPFLAGS="$CPPFLAGS"
18327             CPPFLAGS="$CPPFLAGS $INCINTL"
18328             gt_save_LIBS="$LIBS"
18329             LIBS="$LIBS $LIBINTL"
18330                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h.  */
18332 #include <libintl.h>
18333 extern int _nl_msg_cat_cntr;
18334 extern
18335 #ifdef __cplusplus
18336 "C"
18337 #endif
18338 const char *_nl_expand_alias (const char *);
18339 int
18340 main ()
18341 {
18342 bindtextdomain ("", "");
18343 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349   gt_cv_func_gnugettext1_libintl=yes
18350 else
18351   gt_cv_func_gnugettext1_libintl=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354     conftest$ac_exeext conftest.$ac_ext
18355                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18356               LIBS="$LIBS $LIBICONV"
18357               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h.  */
18359 #include <libintl.h>
18360 extern int _nl_msg_cat_cntr;
18361 extern
18362 #ifdef __cplusplus
18363 "C"
18364 #endif
18365 const char *_nl_expand_alias (const char *);
18366 int
18367 main ()
18368 {
18369 bindtextdomain ("", "");
18370 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 if ac_fn_c_try_link "$LINENO"; then :
18376   LIBINTL="$LIBINTL $LIBICONV"
18377                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18378                 gt_cv_func_gnugettext1_libintl=yes
18379
18380 fi
18381 rm -f core conftest.err conftest.$ac_objext \
18382     conftest$ac_exeext conftest.$ac_ext
18383             fi
18384             CPPFLAGS="$gt_save_CPPFLAGS"
18385             LIBS="$gt_save_LIBS"
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18388 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18389         fi
18390
18391                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18392            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18393                 && test "$PACKAGE" != gettext-runtime \
18394                 && test "$PACKAGE" != gettext-tools; }; then
18395           gt_use_preinstalled_gnugettext=yes
18396         else
18397                     LIBINTL=
18398           LTLIBINTL=
18399           INCINTL=
18400         fi
18401
18402
18403
18404     if test -n "$INTL_MACOSX_LIBS"; then
18405       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18406          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18407                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18408         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18409       fi
18410     fi
18411
18412     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18413        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18414
18415 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18416
18417     else
18418       USE_NLS=no
18419     fi
18420   fi
18421
18422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18423 $as_echo_n "checking whether to use NLS... " >&6; }
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18425 $as_echo "$USE_NLS" >&6; }
18426   if test "$USE_NLS" = "yes"; then
18427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18428 $as_echo_n "checking where the gettext function comes from... " >&6; }
18429     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18430       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18431         gt_source="external libintl"
18432       else
18433         gt_source="libc"
18434       fi
18435     else
18436       gt_source="included intl directory"
18437     fi
18438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18439 $as_echo "$gt_source" >&6; }
18440   fi
18441
18442   if test "$USE_NLS" = "yes"; then
18443
18444     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18445       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18447 $as_echo_n "checking how to link with libintl... " >&6; }
18448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18449 $as_echo "$LIBINTL" >&6; }
18450
18451   for element in $INCINTL; do
18452     haveit=
18453     for x in $CPPFLAGS; do
18454
18455   acl_save_prefix="$prefix"
18456   prefix="$acl_final_prefix"
18457   acl_save_exec_prefix="$exec_prefix"
18458   exec_prefix="$acl_final_exec_prefix"
18459   eval x=\"$x\"
18460   exec_prefix="$acl_save_exec_prefix"
18461   prefix="$acl_save_prefix"
18462
18463       if test "X$x" = "X$element"; then
18464         haveit=yes
18465         break
18466       fi
18467     done
18468     if test -z "$haveit"; then
18469       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18470     fi
18471   done
18472
18473       fi
18474
18475
18476 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18477
18478
18479 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18480
18481     fi
18482
18483         POSUB=po
18484   fi
18485
18486
18487
18488     INTLLIBS="$LIBINTL"
18489
18490
18491
18492
18493
18494
18495
18496 os_name=`uname -s 2>/dev/null`
18497 if test x${prefix} = xNONE ; then
18498    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18499       sysconfdir=/etc/bacula
18500    fi
18501
18502    if test `eval echo ${libdir}` = NONE/lib ; then
18503       case ${os_name} in
18504       Linux)
18505          os_processor=`uname -p 2>/dev/null`
18506          case ${os_processor} in
18507          x86_64)
18508             libdir=/usr/lib64
18509             ;;
18510          *)
18511             libdir=/usr/lib
18512             ;;
18513          esac
18514          ;;
18515       *)
18516          libdir=/usr/lib
18517          ;;
18518       esac
18519    fi
18520
18521    if test `eval echo ${includedir}` = NONE/include ; then
18522       includedir=/usr/include
18523    fi
18524
18525    if test `eval echo ${datarootdir}` = NONE/share ; then
18526       datarootdir=/usr/share
18527    fi
18528    prefix=
18529 fi
18530
18531 if test x${exec_prefix} = xNONE ; then
18532    exec_prefix=${prefix}
18533 fi
18534
18535 sysconfdir=`eval echo ${sysconfdir}`
18536 datarootdir=`eval echo ${datarootdir}`
18537 docdir=`eval echo ${docdir}`
18538 htmldir=`eval echo ${htmldir}`
18539 libdir=`eval echo ${libdir}`
18540 includedir=`eval echo ${includedir}`
18541 localedir=`eval echo ${datarootdir}/locale`
18542 cat >>confdefs.h <<_ACEOF
18543 #define SYSCONFDIR "$sysconfdir"
18544 _ACEOF
18545
18546 cat >>confdefs.h <<_ACEOF
18547 #define LOCALEDIR "$localedir"
18548 _ACEOF
18549
18550
18551 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18552    sbindir=${exec_prefix}/sbin
18553 fi
18554 sbindir=`eval echo ${sbindir}`
18555
18556 if test x$mandir = x'${prefix}/man' ; then
18557    mandir=/usr/share/man
18558 fi
18559
18560 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18561    htmldir=`eval echo ${docdir}html`
18562 fi
18563
18564 if test x$docdir = x'/usr/share/doc/' ; then
18565    docdir=`eval echo ${docdir}bacula`
18566 fi
18567
18568
18569 for ac_prog in msgfmt
18570 do
18571   # Extract the first word of "$ac_prog", so it can be a program name with args.
18572 set dummy $ac_prog; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574 $as_echo_n "checking for $ac_word... " >&6; }
18575 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18576   $as_echo_n "(cached) " >&6
18577 else
18578   case $MSGFMT in
18579   [\\/]* | ?:[\\/]*)
18580   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18581   ;;
18582   *)
18583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586   IFS=$as_save_IFS
18587   test -z "$as_dir" && as_dir=.
18588     for ac_exec_ext in '' $ac_executable_extensions; do
18589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18590     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18592     break 2
18593   fi
18594 done
18595   done
18596 IFS=$as_save_IFS
18597
18598   ;;
18599 esac
18600 fi
18601 MSGFMT=$ac_cv_path_MSGFMT
18602 if test -n "$MSGFMT"; then
18603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18604 $as_echo "$MSGFMT" >&6; }
18605 else
18606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 fi
18609
18610
18611   test -n "$MSGFMT" && break
18612 done
18613 test -n "$MSGFMT" || MSGFMT="no"
18614
18615 if test "$MSGFMT" = "no"
18616 then
18617    echo 'msgfmt program not found, disabling NLS !'
18618    USE_NLS=no
18619    USE_INCLUDED_LIBINTL=no
18620 #else
18621
18622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18623 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18624 if test "${ac_cv_gnu_library_2+set}" = set; then :
18625   $as_echo_n "(cached) " >&6
18626 else
18627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h.  */
18629
18630 #include <features.h>
18631 #ifdef __GNU_LIBRARY__
18632  #if (__GLIBC__ >= 2)
18633   Lucky GNU user
18634  #endif
18635 #endif
18636
18637 _ACEOF
18638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18639   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18640   ac_cv_gnu_library_2=yes
18641 else
18642   ac_cv_gnu_library_2=no
18643 fi
18644 rm -f conftest*
18645
18646
18647
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18650 $as_echo "$ac_cv_gnu_library_2" >&6; }
18651
18652     GLIBC2="$ac_cv_gnu_library_2"
18653
18654
18655 if test -n "$ac_tool_prefix"; then
18656   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 $as_echo_n "checking for $ac_word... " >&6; }
18660 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18661   $as_echo_n "(cached) " >&6
18662 else
18663   if test -n "$RANLIB"; then
18664   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18665 else
18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18668 do
18669   IFS=$as_save_IFS
18670   test -z "$as_dir" && as_dir=.
18671     for ac_exec_ext in '' $ac_executable_extensions; do
18672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18673     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18675     break 2
18676   fi
18677 done
18678   done
18679 IFS=$as_save_IFS
18680
18681 fi
18682 fi
18683 RANLIB=$ac_cv_prog_RANLIB
18684 if test -n "$RANLIB"; then
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18686 $as_echo "$RANLIB" >&6; }
18687 else
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18690 fi
18691
18692
18693 fi
18694 if test -z "$ac_cv_prog_RANLIB"; then
18695   ac_ct_RANLIB=$RANLIB
18696   # Extract the first word of "ranlib", so it can be a program name with args.
18697 set dummy ranlib; ac_word=$2
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18699 $as_echo_n "checking for $ac_word... " >&6; }
18700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18701   $as_echo_n "(cached) " >&6
18702 else
18703   if test -n "$ac_ct_RANLIB"; then
18704   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18705 else
18706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707 for as_dir in $PATH
18708 do
18709   IFS=$as_save_IFS
18710   test -z "$as_dir" && as_dir=.
18711     for ac_exec_ext in '' $ac_executable_extensions; do
18712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18713     ac_cv_prog_ac_ct_RANLIB="ranlib"
18714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18715     break 2
18716   fi
18717 done
18718   done
18719 IFS=$as_save_IFS
18720
18721 fi
18722 fi
18723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18724 if test -n "$ac_ct_RANLIB"; then
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18726 $as_echo "$ac_ct_RANLIB" >&6; }
18727 else
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730 fi
18731
18732   if test "x$ac_ct_RANLIB" = x; then
18733     RANLIB=":"
18734   else
18735     case $cross_compiling:$ac_tool_warned in
18736 yes:)
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18739 ac_tool_warned=yes ;;
18740 esac
18741     RANLIB=$ac_ct_RANLIB
18742   fi
18743 else
18744   RANLIB="$ac_cv_prog_RANLIB"
18745 fi
18746
18747
18748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18749 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18750 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lcposix  $LIBS"
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h.  */
18757
18758 /* Override any GCC internal prototype to avoid an error.
18759    Use char because int might match the return type of a GCC
18760    builtin and then its argument prototype would still apply.  */
18761 #ifdef __cplusplus
18762 extern "C"
18763 #endif
18764 char strerror ();
18765 int
18766 main ()
18767 {
18768 return strerror ();
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 if ac_fn_c_try_link "$LINENO"; then :
18774   ac_cv_lib_cposix_strerror=yes
18775 else
18776   ac_cv_lib_cposix_strerror=no
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext \
18779     conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18781 fi
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18783 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18784 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18785   LIBS="$LIBS -lcposix"
18786 fi
18787
18788
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18792 if test "${ac_cv_c_const+set}" = set; then :
18793   $as_echo_n "(cached) " >&6
18794 else
18795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803   /* Ultrix mips cc rejects this.  */
18804   typedef int charset[2];
18805   const charset cs;
18806   /* SunOS 4.1.1 cc rejects this.  */
18807   char const *const *pcpcc;
18808   char **ppc;
18809   /* NEC SVR4.0.2 mips cc rejects this.  */
18810   struct point {int x, y;};
18811   static struct point const zero = {0,0};
18812   /* AIX XL C 1.02.0.0 rejects this.
18813      It does not let you subtract one const X* pointer from another in
18814      an arm of an if-expression whose if-part is not a constant
18815      expression */
18816   const char *g = "string";
18817   pcpcc = &g + (g ? g-g : 0);
18818   /* HPUX 7.0 cc rejects these. */
18819   ++pcpcc;
18820   ppc = (char**) pcpcc;
18821   pcpcc = (char const *const *) ppc;
18822   { /* SCO 3.2v4 cc rejects this.  */
18823     char *t;
18824     char const *s = 0 ? (char *) 0 : (char const *) 0;
18825
18826     *t++ = 0;
18827     if (s) return 0;
18828   }
18829   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18830     int x[] = {25, 17};
18831     const int *foo = &x[0];
18832     ++foo;
18833   }
18834   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835     typedef const int *iptr;
18836     iptr p = 0;
18837     ++p;
18838   }
18839   { /* AIX XL C 1.02.0.0 rejects this saying
18840        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841     struct s { int j; const int *ap[3]; };
18842     struct s *b; b->j = 5;
18843   }
18844   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845     const int foo = 10;
18846     if (!foo) return 0;
18847   }
18848   return !cs[0] && !zero.x;
18849 #endif
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856   ac_cv_c_const=yes
18857 else
18858   ac_cv_c_const=no
18859 fi
18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18861 fi
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18863 $as_echo "$ac_cv_c_const" >&6; }
18864 if test $ac_cv_c_const = no; then
18865
18866 $as_echo "#define const /**/" >>confdefs.h
18867
18868 fi
18869
18870
18871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18872 $as_echo_n "checking for signed... " >&6; }
18873 if test "${bh_cv_c_signed+set}" = set; then :
18874   $as_echo_n "(cached) " >&6
18875 else
18876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h.  */
18878
18879 int
18880 main ()
18881 {
18882 signed char x;
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 if ac_fn_c_try_compile "$LINENO"; then :
18888   bh_cv_c_signed=yes
18889 else
18890   bh_cv_c_signed=no
18891 fi
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 fi
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18895 $as_echo "$bh_cv_c_signed" >&6; }
18896   if test $bh_cv_c_signed = no; then
18897
18898 $as_echo "#define signed /**/" >>confdefs.h
18899
18900   fi
18901
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18903 $as_echo_n "checking for inline... " >&6; }
18904 if test "${ac_cv_c_inline+set}" = set; then :
18905   $as_echo_n "(cached) " >&6
18906 else
18907   ac_cv_c_inline=no
18908 for ac_kw in inline __inline__ __inline; do
18909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h.  */
18911 #ifndef __cplusplus
18912 typedef int foo_t;
18913 static $ac_kw foo_t static_foo () {return 0; }
18914 $ac_kw foo_t foo () {return 0; }
18915 #endif
18916
18917 _ACEOF
18918 if ac_fn_c_try_compile "$LINENO"; then :
18919   ac_cv_c_inline=$ac_kw
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922   test "$ac_cv_c_inline" != no && break
18923 done
18924
18925 fi
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18927 $as_echo "$ac_cv_c_inline" >&6; }
18928
18929 case $ac_cv_c_inline in
18930   inline | yes) ;;
18931   *)
18932     case $ac_cv_c_inline in
18933       no) ac_val=;;
18934       *) ac_val=$ac_cv_c_inline;;
18935     esac
18936     cat >>confdefs.h <<_ACEOF
18937 #ifndef __cplusplus
18938 #define inline $ac_val
18939 #endif
18940 _ACEOF
18941     ;;
18942 esac
18943
18944 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18945 if test "x$ac_cv_type_off_t" = x""yes; then :
18946
18947 else
18948
18949 cat >>confdefs.h <<_ACEOF
18950 #define off_t long int
18951 _ACEOF
18952
18953 fi
18954
18955 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18956 if test "x$ac_cv_type_size_t" = x""yes; then :
18957
18958 else
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define size_t unsigned int
18962 _ACEOF
18963
18964 fi
18965
18966
18967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18968 $as_echo_n "checking for long long... " >&6; }
18969 if test "${ac_cv_type_long_long+set}" = set; then :
18970   $as_echo_n "(cached) " >&6
18971 else
18972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h.  */
18974 long long ll = 1LL; int i = 63;
18975 int
18976 main ()
18977 {
18978 long long llmax = (long long) -1;
18979      return ll << i | ll >> i | llmax / ll | llmax % ll;
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 if ac_fn_c_try_link "$LINENO"; then :
18985   ac_cv_type_long_long=yes
18986 else
18987   ac_cv_type_long_long=no
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext \
18990     conftest$ac_exeext conftest.$ac_ext
18991 fi
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18993 $as_echo "$ac_cv_type_long_long" >&6; }
18994   if test $ac_cv_type_long_long = yes; then
18995
18996 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18997
18998   fi
18999
19000
19001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19002 $as_echo_n "checking for long double... " >&6; }
19003 if test "${gt_cv_c_long_double+set}" = set; then :
19004   $as_echo_n "(cached) " >&6
19005 else
19006   if test "$GCC" = yes; then
19007        gt_cv_c_long_double=yes
19008      else
19009        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h.  */
19011
19012          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19013          long double foo = 0.0;
19014          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19015          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19016
19017 int
19018 main ()
19019 {
19020
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 if ac_fn_c_try_compile "$LINENO"; then :
19026   gt_cv_c_long_double=yes
19027 else
19028   gt_cv_c_long_double=no
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031      fi
19032 fi
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19034 $as_echo "$gt_cv_c_long_double" >&6; }
19035   if test $gt_cv_c_long_double = yes; then
19036
19037 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19038
19039   fi
19040
19041
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19043 $as_echo_n "checking for wchar_t... " >&6; }
19044 if test "${gt_cv_c_wchar_t+set}" = set; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h.  */
19049 #include <stddef.h>
19050        wchar_t foo = (wchar_t)'\0';
19051 int
19052 main ()
19053 {
19054
19055   ;
19056   return 0;
19057 }
19058 _ACEOF
19059 if ac_fn_c_try_compile "$LINENO"; then :
19060   gt_cv_c_wchar_t=yes
19061 else
19062   gt_cv_c_wchar_t=no
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065 fi
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19067 $as_echo "$gt_cv_c_wchar_t" >&6; }
19068   if test $gt_cv_c_wchar_t = yes; then
19069
19070 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19071
19072   fi
19073
19074
19075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19076 $as_echo_n "checking for wint_t... " >&6; }
19077 if test "${gt_cv_c_wint_t+set}" = set; then :
19078   $as_echo_n "(cached) " >&6
19079 else
19080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h.  */
19082 #include <wchar.h>
19083        wint_t foo = (wchar_t)'\0';
19084 int
19085 main ()
19086 {
19087
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 if ac_fn_c_try_compile "$LINENO"; then :
19093   gt_cv_c_wint_t=yes
19094 else
19095   gt_cv_c_wint_t=no
19096 fi
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 fi
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19100 $as_echo "$gt_cv_c_wint_t" >&6; }
19101   if test $gt_cv_c_wint_t = yes; then
19102
19103 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19104
19105   fi
19106
19107
19108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19109 $as_echo_n "checking for inttypes.h... " >&6; }
19110 if test "${gl_cv_header_inttypes_h+set}" = set; then :
19111   $as_echo_n "(cached) " >&6
19112 else
19113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h.  */
19115 #include <sys/types.h>
19116 #include <inttypes.h>
19117 int
19118 main ()
19119 {
19120 uintmax_t i = (uintmax_t) -1;
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_compile "$LINENO"; then :
19126   gl_cv_header_inttypes_h=yes
19127 else
19128   gl_cv_header_inttypes_h=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19133 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19134   if test $gl_cv_header_inttypes_h = yes; then
19135
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19138 _ACEOF
19139
19140   fi
19141
19142
19143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19144 $as_echo_n "checking for stdint.h... " >&6; }
19145 if test "${gl_cv_header_stdint_h+set}" = set; then :
19146   $as_echo_n "(cached) " >&6
19147 else
19148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150 #include <sys/types.h>
19151 #include <stdint.h>
19152 int
19153 main ()
19154 {
19155 uintmax_t i = (uintmax_t) -1;
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 if ac_fn_c_try_compile "$LINENO"; then :
19161   gl_cv_header_stdint_h=yes
19162 else
19163   gl_cv_header_stdint_h=no
19164 fi
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 fi
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19168 $as_echo "$gl_cv_header_stdint_h" >&6; }
19169   if test $gl_cv_header_stdint_h = yes; then
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_STDINT_H_WITH_UINTMAX 1
19173 _ACEOF
19174
19175   fi
19176
19177
19178
19179
19180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19181 $as_echo_n "checking for intmax_t... " >&6; }
19182 if test "${gt_cv_c_intmax_t+set}" = set; then :
19183   $as_echo_n "(cached) " >&6
19184 else
19185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h.  */
19187
19188 #include <stddef.h>
19189 #include <stdlib.h>
19190 #if HAVE_STDINT_H_WITH_UINTMAX
19191 #include <stdint.h>
19192 #endif
19193 #if HAVE_INTTYPES_H_WITH_UINTMAX
19194 #include <inttypes.h>
19195 #endif
19196
19197 int
19198 main ()
19199 {
19200 intmax_t x = -1;
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 if ac_fn_c_try_compile "$LINENO"; then :
19206   gt_cv_c_intmax_t=yes
19207 else
19208   gt_cv_c_intmax_t=no
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19213 $as_echo "$gt_cv_c_intmax_t" >&6; }
19214   if test $gt_cv_c_intmax_t = yes; then
19215
19216 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19217
19218   fi
19219
19220
19221
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19223 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19224 if test "${gt_cv_func_printf_posix+set}" = set; then :
19225   $as_echo_n "(cached) " >&6
19226 else
19227
19228       if test "$cross_compiling" = yes; then :
19229
19230         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h.  */
19232
19233 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19234   notposix
19235 #endif
19236
19237 _ACEOF
19238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19239   $EGREP "notposix" >/dev/null 2>&1; then :
19240   gt_cv_func_printf_posix="guessing no"
19241 else
19242   gt_cv_func_printf_posix="guessing yes"
19243 fi
19244 rm -f conftest*
19245
19246
19247 else
19248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h.  */
19250
19251 #include <stdio.h>
19252 #include <string.h>
19253 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19254    dollar expansion (possibly an autoconf bug).  */
19255 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19256 static char buf[100];
19257 int main ()
19258 {
19259   sprintf (buf, format, 33, 55);
19260   return (strcmp (buf, "55 33") != 0);
19261 }
19262 _ACEOF
19263 if ac_fn_c_try_run "$LINENO"; then :
19264   gt_cv_func_printf_posix=yes
19265 else
19266   gt_cv_func_printf_posix=no
19267 fi
19268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19269   conftest.$ac_objext conftest.beam conftest.$ac_ext
19270 fi
19271
19272
19273 fi
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19275 $as_echo "$gt_cv_func_printf_posix" >&6; }
19276   case $gt_cv_func_printf_posix in
19277     *yes)
19278
19279 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19280
19281       ;;
19282   esac
19283
19284 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19285 # for constant arguments.  Useless!
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19287 $as_echo_n "checking for working alloca.h... " >&6; }
19288 if test "${ac_cv_working_alloca_h+set}" = set; then :
19289   $as_echo_n "(cached) " >&6
19290 else
19291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h.  */
19293 #include <alloca.h>
19294 int
19295 main ()
19296 {
19297 char *p = (char *) alloca (2 * sizeof (int));
19298                           if (p) return 0;
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 if ac_fn_c_try_link "$LINENO"; then :
19304   ac_cv_working_alloca_h=yes
19305 else
19306   ac_cv_working_alloca_h=no
19307 fi
19308 rm -f core conftest.err conftest.$ac_objext \
19309     conftest$ac_exeext conftest.$ac_ext
19310 fi
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19312 $as_echo "$ac_cv_working_alloca_h" >&6; }
19313 if test $ac_cv_working_alloca_h = yes; then
19314
19315 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19316
19317 fi
19318
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19320 $as_echo_n "checking for alloca... " >&6; }
19321 if test "${ac_cv_func_alloca_works+set}" = set; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326 #ifdef __GNUC__
19327 # define alloca __builtin_alloca
19328 #else
19329 # ifdef _MSC_VER
19330 #  include <malloc.h>
19331 #  define alloca _alloca
19332 # else
19333 #  ifdef HAVE_ALLOCA_H
19334 #   include <alloca.h>
19335 #  else
19336 #   ifdef _AIX
19337  #pragma alloca
19338 #   else
19339 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19340 char *alloca ();
19341 #    endif
19342 #   endif
19343 #  endif
19344 # endif
19345 #endif
19346
19347 int
19348 main ()
19349 {
19350 char *p = (char *) alloca (1);
19351                                     if (p) return 0;
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 if ac_fn_c_try_link "$LINENO"; then :
19357   ac_cv_func_alloca_works=yes
19358 else
19359   ac_cv_func_alloca_works=no
19360 fi
19361 rm -f core conftest.err conftest.$ac_objext \
19362     conftest$ac_exeext conftest.$ac_ext
19363 fi
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19365 $as_echo "$ac_cv_func_alloca_works" >&6; }
19366
19367 if test $ac_cv_func_alloca_works = yes; then
19368
19369 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19370
19371 else
19372   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19373 # that cause trouble.  Some versions do not even contain alloca or
19374 # contain a buggy version.  If you still want to use their alloca,
19375 # use ar to extract alloca.o from them instead of compiling alloca.c.
19376
19377 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19378
19379 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19380
19381
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19383 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19384 if test "${ac_cv_os_cray+set}" = set; then :
19385   $as_echo_n "(cached) " >&6
19386 else
19387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h.  */
19389 #if defined CRAY && ! defined CRAY2
19390 webecray
19391 #else
19392 wenotbecray
19393 #endif
19394
19395 _ACEOF
19396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19397   $EGREP "webecray" >/dev/null 2>&1; then :
19398   ac_cv_os_cray=yes
19399 else
19400   ac_cv_os_cray=no
19401 fi
19402 rm -f conftest*
19403
19404 fi
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19406 $as_echo "$ac_cv_os_cray" >&6; }
19407 if test $ac_cv_os_cray = yes; then
19408   for ac_func in _getb67 GETB67 getb67; do
19409     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19411 eval as_val=\$$as_ac_var
19412    if test "x$as_val" = x""yes; then :
19413
19414 cat >>confdefs.h <<_ACEOF
19415 #define CRAY_STACKSEG_END $ac_func
19416 _ACEOF
19417
19418     break
19419 fi
19420
19421   done
19422 fi
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19425 $as_echo_n "checking stack direction for C alloca... " >&6; }
19426 if test "${ac_cv_c_stack_direction+set}" = set; then :
19427   $as_echo_n "(cached) " >&6
19428 else
19429   if test "$cross_compiling" = yes; then :
19430   ac_cv_c_stack_direction=0
19431 else
19432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h.  */
19434 $ac_includes_default
19435 int
19436 find_stack_direction ()
19437 {
19438   static char *addr = 0;
19439   auto char dummy;
19440   if (addr == 0)
19441     {
19442       addr = &dummy;
19443       return find_stack_direction ();
19444     }
19445   else
19446     return (&dummy > addr) ? 1 : -1;
19447 }
19448
19449 int
19450 main ()
19451 {
19452   return find_stack_direction () < 0;
19453 }
19454 _ACEOF
19455 if ac_fn_c_try_run "$LINENO"; then :
19456   ac_cv_c_stack_direction=1
19457 else
19458   ac_cv_c_stack_direction=-1
19459 fi
19460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19461   conftest.$ac_objext conftest.beam conftest.$ac_ext
19462 fi
19463
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19466 $as_echo "$ac_cv_c_stack_direction" >&6; }
19467 cat >>confdefs.h <<_ACEOF
19468 #define STACK_DIRECTION $ac_cv_c_stack_direction
19469 _ACEOF
19470
19471
19472 fi
19473
19474
19475
19476
19477   for ac_header in $ac_header_list
19478 do :
19479   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19481 "
19482 eval as_val=\$$as_ac_Header
19483    if test "x$as_val" = x""yes; then :
19484   cat >>confdefs.h <<_ACEOF
19485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19486 _ACEOF
19487
19488 fi
19489
19490 done
19491
19492
19493
19494
19495
19496
19497
19498
19499 for ac_func in getpagesize
19500 do :
19501   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19502 if test "x$ac_cv_func_getpagesize" = x""yes; then :
19503   cat >>confdefs.h <<_ACEOF
19504 #define HAVE_GETPAGESIZE 1
19505 _ACEOF
19506
19507 fi
19508 done
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19511 $as_echo_n "checking for working mmap... " >&6; }
19512 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
19513   $as_echo_n "(cached) " >&6
19514 else
19515   if test "$cross_compiling" = yes; then :
19516   ac_cv_func_mmap_fixed_mapped=no
19517 else
19518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h.  */
19520 $ac_includes_default
19521 /* malloc might have been renamed as rpl_malloc. */
19522 #undef malloc
19523
19524 /* Thanks to Mike Haertel and Jim Avera for this test.
19525    Here is a matrix of mmap possibilities:
19526         mmap private not fixed
19527         mmap private fixed at somewhere currently unmapped
19528         mmap private fixed at somewhere already mapped
19529         mmap shared not fixed
19530         mmap shared fixed at somewhere currently unmapped
19531         mmap shared fixed at somewhere already mapped
19532    For private mappings, we should verify that changes cannot be read()
19533    back from the file, nor mmap's back from the file at a different
19534    address.  (There have been systems where private was not correctly
19535    implemented like the infamous i386 svr4.0, and systems where the
19536    VM page cache was not coherent with the file system buffer cache
19537    like early versions of FreeBSD and possibly contemporary NetBSD.)
19538    For shared mappings, we should conversely verify that changes get
19539    propagated back to all the places they're supposed to be.
19540
19541    Grep wants private fixed already mapped.
19542    The main things grep needs to know about mmap are:
19543    * does it exist and is it safe to write into the mmap'd area
19544    * how to use it (BSD variants)  */
19545
19546 #include <fcntl.h>
19547 #include <sys/mman.h>
19548
19549 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19550 char *malloc ();
19551 #endif
19552
19553 /* This mess was copied from the GNU getpagesize.h.  */
19554 #ifndef HAVE_GETPAGESIZE
19555 # ifdef _SC_PAGESIZE
19556 #  define getpagesize() sysconf(_SC_PAGESIZE)
19557 # else /* no _SC_PAGESIZE */
19558 #  ifdef HAVE_SYS_PARAM_H
19559 #   include <sys/param.h>
19560 #   ifdef EXEC_PAGESIZE
19561 #    define getpagesize() EXEC_PAGESIZE
19562 #   else /* no EXEC_PAGESIZE */
19563 #    ifdef NBPG
19564 #     define getpagesize() NBPG * CLSIZE
19565 #     ifndef CLSIZE
19566 #      define CLSIZE 1
19567 #     endif /* no CLSIZE */
19568 #    else /* no NBPG */
19569 #     ifdef NBPC
19570 #      define getpagesize() NBPC
19571 #     else /* no NBPC */
19572 #      ifdef PAGESIZE
19573 #       define getpagesize() PAGESIZE
19574 #      endif /* PAGESIZE */
19575 #     endif /* no NBPC */
19576 #    endif /* no NBPG */
19577 #   endif /* no EXEC_PAGESIZE */
19578 #  else /* no HAVE_SYS_PARAM_H */
19579 #   define getpagesize() 8192   /* punt totally */
19580 #  endif /* no HAVE_SYS_PARAM_H */
19581 # endif /* no _SC_PAGESIZE */
19582
19583 #endif /* no HAVE_GETPAGESIZE */
19584
19585 int
19586 main ()
19587 {
19588   char *data, *data2, *data3;
19589   const char *cdata2;
19590   int i, pagesize;
19591   int fd, fd2;
19592
19593   pagesize = getpagesize ();
19594
19595   /* First, make a file with some known garbage in it. */
19596   data = (char *) malloc (pagesize);
19597   if (!data)
19598     return 1;
19599   for (i = 0; i < pagesize; ++i)
19600     *(data + i) = rand ();
19601   umask (0);
19602   fd = creat ("conftest.mmap", 0600);
19603   if (fd < 0)
19604     return 2;
19605   if (write (fd, data, pagesize) != pagesize)
19606     return 3;
19607   close (fd);
19608
19609   /* Next, check that the tail of a page is zero-filled.  File must have
19610      non-zero length, otherwise we risk SIGBUS for entire page.  */
19611   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19612   if (fd2 < 0)
19613     return 4;
19614   cdata2 = "";
19615   if (write (fd2, cdata2, 1) != 1)
19616     return 5;
19617   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19618   if (data2 == MAP_FAILED)
19619     return 6;
19620   for (i = 0; i < pagesize; ++i)
19621     if (*(data2 + i))
19622       return 7;
19623   close (fd2);
19624   if (munmap (data2, pagesize))
19625     return 8;
19626
19627   /* Next, try to mmap the file at a fixed address which already has
19628      something else allocated at it.  If we can, also make sure that
19629      we see the same garbage.  */
19630   fd = open ("conftest.mmap", O_RDWR);
19631   if (fd < 0)
19632     return 9;
19633   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19634                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19635     return 10;
19636   for (i = 0; i < pagesize; ++i)
19637     if (*(data + i) != *(data2 + i))
19638       return 11;
19639
19640   /* Finally, make sure that changes to the mapped area do not
19641      percolate back to the file as seen by read().  (This is a bug on
19642      some variants of i386 svr4.0.)  */
19643   for (i = 0; i < pagesize; ++i)
19644     *(data2 + i) = *(data2 + i) + 1;
19645   data3 = (char *) malloc (pagesize);
19646   if (!data3)
19647     return 12;
19648   if (read (fd, data3, pagesize) != pagesize)
19649     return 13;
19650   for (i = 0; i < pagesize; ++i)
19651     if (*(data + i) != *(data3 + i))
19652       return 14;
19653   close (fd);
19654   return 0;
19655 }
19656 _ACEOF
19657 if ac_fn_c_try_run "$LINENO"; then :
19658   ac_cv_func_mmap_fixed_mapped=yes
19659 else
19660   ac_cv_func_mmap_fixed_mapped=no
19661 fi
19662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19663   conftest.$ac_objext conftest.beam conftest.$ac_ext
19664 fi
19665
19666 fi
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19668 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19670
19671 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19672
19673 fi
19674 rm -f conftest.mmap conftest.txt
19675
19676
19677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19678 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19679 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
19680   $as_echo_n "(cached) " >&6
19681 else
19682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h.  */
19684
19685 #include <features.h>
19686 #ifdef __GNU_LIBRARY__
19687  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19688   Lucky GNU user
19689  #endif
19690 #endif
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19695   ac_cv_gnu_library_2_1=yes
19696 else
19697   ac_cv_gnu_library_2_1=no
19698 fi
19699 rm -f conftest*
19700
19701
19702
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19705 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19706
19707     GLIBC21="$ac_cv_gnu_library_2_1"
19708
19709
19710
19711
19712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19713 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19714 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
19715   $as_echo_n "(cached) " >&6
19716 else
19717
19718       if test "$cross_compiling" = yes; then :
19719
19720           # Guess based on the CPU.
19721           case "$host_cpu" in
19722             alpha* | i3456786 | m68k | s390*)
19723               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19724             *)
19725               gt_cv_int_divbyzero_sigfpe="guessing no";;
19726           esac
19727
19728 else
19729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h.  */
19731
19732 #include <stdlib.h>
19733 #include <signal.h>
19734
19735 static void
19736 #ifdef __cplusplus
19737 sigfpe_handler (int sig)
19738 #else
19739 sigfpe_handler (sig) int sig;
19740 #endif
19741 {
19742   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19743   exit (sig != SIGFPE);
19744 }
19745
19746 int x = 1;
19747 int y = 0;
19748 int z;
19749 int nan;
19750
19751 int main ()
19752 {
19753   signal (SIGFPE, sigfpe_handler);
19754 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19755 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19756   signal (SIGTRAP, sigfpe_handler);
19757 #endif
19758 /* Linux/SPARC yields signal SIGILL.  */
19759 #if defined (__sparc__) && defined (__linux__)
19760   signal (SIGILL, sigfpe_handler);
19761 #endif
19762
19763   z = x / y;
19764   nan = y / y;
19765   exit (1);
19766 }
19767
19768 _ACEOF
19769 if ac_fn_c_try_run "$LINENO"; then :
19770   gt_cv_int_divbyzero_sigfpe=yes
19771 else
19772   gt_cv_int_divbyzero_sigfpe=no
19773 fi
19774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19775   conftest.$ac_objext conftest.beam conftest.$ac_ext
19776 fi
19777
19778
19779 fi
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19781 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19782   case "$gt_cv_int_divbyzero_sigfpe" in
19783     *yes) value=1;;
19784     *) value=0;;
19785   esac
19786
19787 cat >>confdefs.h <<_ACEOF
19788 #define INTDIV0_RAISES_SIGFPE $value
19789 _ACEOF
19790
19791
19792
19793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19794 $as_echo_n "checking for unsigned long long... " >&6; }
19795 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19796   $as_echo_n "(cached) " >&6
19797 else
19798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h.  */
19800 unsigned long long ull = 1ULL; int i = 63;
19801 int
19802 main ()
19803 {
19804 unsigned long long ullmax = (unsigned long long) -1;
19805      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811   ac_cv_type_unsigned_long_long=yes
19812 else
19813   ac_cv_type_unsigned_long_long=no
19814 fi
19815 rm -f core conftest.err conftest.$ac_objext \
19816     conftest$ac_exeext conftest.$ac_ext
19817 fi
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19819 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19820   if test $ac_cv_type_unsigned_long_long = yes; then
19821
19822 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19823
19824   fi
19825
19826
19827
19828
19829   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19830
19831     test $ac_cv_type_unsigned_long_long = yes \
19832       && ac_type='unsigned long long' \
19833       || ac_type='unsigned long'
19834
19835 cat >>confdefs.h <<_ACEOF
19836 #define uintmax_t $ac_type
19837 _ACEOF
19838
19839   else
19840
19841 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19842
19843   fi
19844
19845
19846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19847 $as_echo_n "checking for inttypes.h... " >&6; }
19848 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19849   $as_echo_n "(cached) " >&6
19850 else
19851
19852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h.  */
19854 #include <sys/types.h>
19855 #include <inttypes.h>
19856 int
19857 main ()
19858 {
19859
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 if ac_fn_c_try_compile "$LINENO"; then :
19865   gt_cv_header_inttypes_h=yes
19866 else
19867   gt_cv_header_inttypes_h=no
19868 fi
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19873 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19874   if test $gt_cv_header_inttypes_h = yes; then
19875
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE_INTTYPES_H 1
19878 _ACEOF
19879
19880   fi
19881
19882
19883
19884   if test $gt_cv_header_inttypes_h = yes; then
19885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19886 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19887 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19888   $as_echo_n "(cached) " >&6
19889 else
19890
19891         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 #include <inttypes.h>
19894 #ifdef PRId32
19895 char *p = PRId32;
19896 #endif
19897
19898 int
19899 main ()
19900 {
19901
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 if ac_fn_c_try_compile "$LINENO"; then :
19907   gt_cv_inttypes_pri_broken=no
19908 else
19909   gt_cv_inttypes_pri_broken=yes
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913 fi
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19915 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19916   fi
19917   if test "$gt_cv_inttypes_pri_broken" = yes; then
19918
19919 cat >>confdefs.h <<_ACEOF
19920 #define PRI_MACROS_BROKEN 1
19921 _ACEOF
19922
19923   fi
19924
19925
19926   for ac_header in stdint.h
19927 do :
19928   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19929 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19930   cat >>confdefs.h <<_ACEOF
19931 #define HAVE_STDINT_H 1
19932 _ACEOF
19933
19934 fi
19935
19936 done
19937
19938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19939 $as_echo_n "checking for SIZE_MAX... " >&6; }
19940   result=
19941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h.  */
19943
19944 #include <limits.h>
19945 #if HAVE_STDINT_H
19946 #include <stdint.h>
19947 #endif
19948 #ifdef SIZE_MAX
19949 Found it
19950 #endif
19951
19952 _ACEOF
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954   $EGREP "Found it" >/dev/null 2>&1; then :
19955   result=yes
19956 fi
19957 rm -f conftest*
19958
19959   if test -z "$result"; then
19960                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19961
19962 else
19963   result=?
19964 fi
19965
19966
19967     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19968
19969 else
19970   result=?
19971 fi
19972
19973
19974     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19975
19976 else
19977   result=?
19978 fi
19979
19980
19981     if test "$fits_in_uint" = 1; then
19982                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h.  */
19984 #include <stddef.h>
19985         extern size_t foo;
19986         extern unsigned long foo;
19987
19988 int
19989 main ()
19990 {
19991
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997   fits_in_uint=0
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000     fi
20001     if test -z "$result"; then
20002       if test "$fits_in_uint" = 1; then
20003         result="$res_hi$res_lo"U
20004       else
20005         result="$res_hi$res_lo"UL
20006       fi
20007     else
20008             result='~(size_t)0'
20009     fi
20010   fi
20011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20012 $as_echo "$result" >&6; }
20013   if test "$result" != yes; then
20014
20015 cat >>confdefs.h <<_ACEOF
20016 #define SIZE_MAX $result
20017 _ACEOF
20018
20019   fi
20020
20021
20022
20023
20024   for ac_header in stdint.h
20025 do :
20026   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20027 if test "x$ac_cv_header_stdint_h" = x""yes; then :
20028   cat >>confdefs.h <<_ACEOF
20029 #define HAVE_STDINT_H 1
20030 _ACEOF
20031
20032 fi
20033
20034 done
20035
20036
20037
20038
20039
20040
20041
20042
20043   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20044 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20045
20046 else
20047
20048 $as_echo "#define ptrdiff_t long" >>confdefs.h
20049
20050
20051 fi
20052
20053   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20054 stdlib.h string.h unistd.h sys/param.h
20055 do :
20056   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20058 eval as_val=\$$as_ac_Header
20059    if test "x$as_val" = x""yes; then :
20060   cat >>confdefs.h <<_ACEOF
20061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20062 _ACEOF
20063
20064 fi
20065
20066 done
20067
20068   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20069 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20070 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20071 __fsetlocking
20072 do :
20073   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20074 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20075 eval as_val=\$$as_ac_var
20076    if test "x$as_val" = x""yes; then :
20077   cat >>confdefs.h <<_ACEOF
20078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20079 _ACEOF
20080
20081 fi
20082 done
20083
20084
20085
20086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20087 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20088 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
20089   $as_echo_n "(cached) " >&6
20090 else
20091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h.  */
20093 #include <stdio.h>
20094 int
20095 main ()
20096 {
20097
20098 #ifndef _snprintf
20099   char *p = (char *) _snprintf;
20100 #endif
20101
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107   ac_cv_have_decl__snprintf=yes
20108 else
20109   ac_cv_have_decl__snprintf=no
20110 fi
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20114 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20115   if test $ac_cv_have_decl__snprintf = yes; then
20116     gt_value=1
20117   else
20118     gt_value=0
20119   fi
20120
20121 cat >>confdefs.h <<_ACEOF
20122 #define HAVE_DECL__SNPRINTF $gt_value
20123 _ACEOF
20124
20125
20126
20127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20128 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20129 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h.  */
20134 #include <stdio.h>
20135 int
20136 main ()
20137 {
20138
20139 #ifndef _snwprintf
20140   char *p = (char *) _snwprintf;
20141 #endif
20142
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 if ac_fn_c_try_compile "$LINENO"; then :
20148   ac_cv_have_decl__snwprintf=yes
20149 else
20150   ac_cv_have_decl__snwprintf=no
20151 fi
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 fi
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20155 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20156   if test $ac_cv_have_decl__snwprintf = yes; then
20157     gt_value=1
20158   else
20159     gt_value=0
20160   fi
20161
20162 cat >>confdefs.h <<_ACEOF
20163 #define HAVE_DECL__SNWPRINTF $gt_value
20164 _ACEOF
20165
20166
20167
20168
20169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20170 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20171 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
20172   $as_echo_n "(cached) " >&6
20173 else
20174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h.  */
20176 #include <stdio.h>
20177 int
20178 main ()
20179 {
20180
20181 #ifndef feof_unlocked
20182   char *p = (char *) feof_unlocked;
20183 #endif
20184
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 if ac_fn_c_try_compile "$LINENO"; then :
20190   ac_cv_have_decl_feof_unlocked=yes
20191 else
20192   ac_cv_have_decl_feof_unlocked=no
20193 fi
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 fi
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20197 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20198   if test $ac_cv_have_decl_feof_unlocked = yes; then
20199     gt_value=1
20200   else
20201     gt_value=0
20202   fi
20203
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20206 _ACEOF
20207
20208
20209
20210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20211 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20212 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
20213   $as_echo_n "(cached) " >&6
20214 else
20215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h.  */
20217 #include <stdio.h>
20218 int
20219 main ()
20220 {
20221
20222 #ifndef fgets_unlocked
20223   char *p = (char *) fgets_unlocked;
20224 #endif
20225
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 if ac_fn_c_try_compile "$LINENO"; then :
20231   ac_cv_have_decl_fgets_unlocked=yes
20232 else
20233   ac_cv_have_decl_fgets_unlocked=no
20234 fi
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 fi
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20238 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20239   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20240     gt_value=1
20241   else
20242     gt_value=0
20243   fi
20244
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20247 _ACEOF
20248
20249
20250
20251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20252 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20253 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
20254   $as_echo_n "(cached) " >&6
20255 else
20256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h.  */
20258 #include <stdio.h>
20259 int
20260 main ()
20261 {
20262
20263 #ifndef getc_unlocked
20264   char *p = (char *) getc_unlocked;
20265 #endif
20266
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 if ac_fn_c_try_compile "$LINENO"; then :
20272   ac_cv_have_decl_getc_unlocked=yes
20273 else
20274   ac_cv_have_decl_getc_unlocked=no
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20279 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20280   if test $ac_cv_have_decl_getc_unlocked = yes; then
20281     gt_value=1
20282   else
20283     gt_value=0
20284   fi
20285
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20288 _ACEOF
20289
20290
20291
20292   case $gt_cv_func_printf_posix in
20293     *yes) HAVE_POSIX_PRINTF=1 ;;
20294     *) HAVE_POSIX_PRINTF=0 ;;
20295   esac
20296
20297   if test "$ac_cv_func_asprintf" = yes; then
20298     HAVE_ASPRINTF=1
20299   else
20300     HAVE_ASPRINTF=0
20301   fi
20302
20303   if test "$ac_cv_func_snprintf" = yes; then
20304     HAVE_SNPRINTF=1
20305   else
20306     HAVE_SNPRINTF=0
20307   fi
20308
20309   if test "$ac_cv_func_wprintf" = yes; then
20310     HAVE_WPRINTF=1
20311   else
20312     HAVE_WPRINTF=0
20313   fi
20314
20315
20316
20317
20318
20319
20320
20321           am_save_CPPFLAGS="$CPPFLAGS"
20322
20323   for element in $INCICONV; do
20324     haveit=
20325     for x in $CPPFLAGS; do
20326
20327   acl_save_prefix="$prefix"
20328   prefix="$acl_final_prefix"
20329   acl_save_exec_prefix="$exec_prefix"
20330   exec_prefix="$acl_final_exec_prefix"
20331   eval x=\"$x\"
20332   exec_prefix="$acl_save_exec_prefix"
20333   prefix="$acl_save_prefix"
20334
20335       if test "X$x" = "X$element"; then
20336         haveit=yes
20337         break
20338       fi
20339     done
20340     if test -z "$haveit"; then
20341       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20342     fi
20343   done
20344
20345
20346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20347 $as_echo_n "checking for iconv... " >&6; }
20348 if test "${am_cv_func_iconv+set}" = set; then :
20349   $as_echo_n "(cached) " >&6
20350 else
20351
20352     am_cv_func_iconv="no, consider installing GNU libiconv"
20353     am_cv_lib_iconv=no
20354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h.  */
20356 #include <stdlib.h>
20357 #include <iconv.h>
20358 int
20359 main ()
20360 {
20361 iconv_t cd = iconv_open("","");
20362        iconv(cd,NULL,NULL,NULL,NULL);
20363        iconv_close(cd);
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369   am_cv_func_iconv=yes
20370 fi
20371 rm -f core conftest.err conftest.$ac_objext \
20372     conftest$ac_exeext conftest.$ac_ext
20373     if test "$am_cv_func_iconv" != yes; then
20374       am_save_LIBS="$LIBS"
20375       LIBS="$LIBS $LIBICONV"
20376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h.  */
20378 #include <stdlib.h>
20379 #include <iconv.h>
20380 int
20381 main ()
20382 {
20383 iconv_t cd = iconv_open("","");
20384          iconv(cd,NULL,NULL,NULL,NULL);
20385          iconv_close(cd);
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 if ac_fn_c_try_link "$LINENO"; then :
20391   am_cv_lib_iconv=yes
20392         am_cv_func_iconv=yes
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext \
20395     conftest$ac_exeext conftest.$ac_ext
20396       LIBS="$am_save_LIBS"
20397     fi
20398
20399 fi
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20401 $as_echo "$am_cv_func_iconv" >&6; }
20402   if test "$am_cv_func_iconv" = yes; then
20403
20404 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20405
20406   fi
20407   if test "$am_cv_lib_iconv" = yes; then
20408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20409 $as_echo_n "checking how to link with libiconv... " >&6; }
20410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20411 $as_echo "$LIBICONV" >&6; }
20412   else
20413             CPPFLAGS="$am_save_CPPFLAGS"
20414     LIBICONV=
20415     LTLIBICONV=
20416   fi
20417
20418
20419
20420   if test "$am_cv_func_iconv" = yes; then
20421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20422 $as_echo_n "checking for iconv declaration... " >&6; }
20423     if test "${am_cv_proto_iconv+set}" = set; then :
20424   $as_echo_n "(cached) " >&6
20425 else
20426
20427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h.  */
20429
20430 #include <stdlib.h>
20431 #include <iconv.h>
20432 extern
20433 #ifdef __cplusplus
20434 "C"
20435 #endif
20436 #if defined(__STDC__) || defined(__cplusplus)
20437 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20438 #else
20439 size_t iconv();
20440 #endif
20441
20442 int
20443 main ()
20444 {
20445
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 if ac_fn_c_try_compile "$LINENO"; then :
20451   am_cv_proto_iconv_arg1=""
20452 else
20453   am_cv_proto_iconv_arg1="const"
20454 fi
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456       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);"
20457 fi
20458
20459     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20461          }$am_cv_proto_iconv" >&5
20462 $as_echo "${ac_t:-
20463          }$am_cv_proto_iconv" >&6; }
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define ICONV_CONST $am_cv_proto_iconv_arg1
20467 _ACEOF
20468
20469   fi
20470
20471
20472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20474 if test "${am_cv_langinfo_codeset+set}" = set; then :
20475   $as_echo_n "(cached) " >&6
20476 else
20477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h.  */
20479 #include <langinfo.h>
20480 int
20481 main ()
20482 {
20483 char* cs = nl_langinfo(CODESET);
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 if ac_fn_c_try_link "$LINENO"; then :
20489   am_cv_langinfo_codeset=yes
20490 else
20491   am_cv_langinfo_codeset=no
20492 fi
20493 rm -f core conftest.err conftest.$ac_objext \
20494     conftest$ac_exeext conftest.$ac_ext
20495
20496 fi
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20498 $as_echo "$am_cv_langinfo_codeset" >&6; }
20499   if test $am_cv_langinfo_codeset = yes; then
20500
20501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20502
20503   fi
20504
20505   if test $ac_cv_header_locale_h = yes; then
20506
20507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20508 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20509 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
20510   $as_echo_n "(cached) " >&6
20511 else
20512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h.  */
20514 #include <locale.h>
20515 int
20516 main ()
20517 {
20518 return LC_MESSAGES
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_c_try_link "$LINENO"; then :
20524   gt_cv_val_LC_MESSAGES=yes
20525 else
20526   gt_cv_val_LC_MESSAGES=no
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext \
20529     conftest$ac_exeext conftest.$ac_ext
20530 fi
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20532 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20533   if test $gt_cv_val_LC_MESSAGES = yes; then
20534
20535 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20536
20537   fi
20538
20539   fi
20540
20541   if test -n "$INTL_MACOSX_LIBS"; then
20542     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20543   fi
20544
20545                       for ac_prog in bison
20546 do
20547   # Extract the first word of "$ac_prog", so it can be a program name with args.
20548 set dummy $ac_prog; ac_word=$2
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20550 $as_echo_n "checking for $ac_word... " >&6; }
20551 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
20552   $as_echo_n "(cached) " >&6
20553 else
20554   if test -n "$INTLBISON"; then
20555   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20556 else
20557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20558 for as_dir in $PATH
20559 do
20560   IFS=$as_save_IFS
20561   test -z "$as_dir" && as_dir=.
20562     for ac_exec_ext in '' $ac_executable_extensions; do
20563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20564     ac_cv_prog_INTLBISON="$ac_prog"
20565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20566     break 2
20567   fi
20568 done
20569   done
20570 IFS=$as_save_IFS
20571
20572 fi
20573 fi
20574 INTLBISON=$ac_cv_prog_INTLBISON
20575 if test -n "$INTLBISON"; then
20576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20577 $as_echo "$INTLBISON" >&6; }
20578 else
20579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 $as_echo "no" >&6; }
20581 fi
20582
20583
20584   test -n "$INTLBISON" && break
20585 done
20586
20587   if test -z "$INTLBISON"; then
20588     ac_verc_fail=yes
20589   else
20590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20591 $as_echo_n "checking version of bison... " >&6; }
20592     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20593     case $ac_prog_version in
20594       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20595       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20596          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20597       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20598     esac
20599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20600 $as_echo "$ac_prog_version" >&6; }
20601   fi
20602   if test $ac_verc_fail = yes; then
20603     INTLBISON=:
20604   fi
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20622 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20623 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
20624   $as_echo_n "(cached) " >&6
20625 else
20626   gt_save_CPPFLAGS="$CPPFLAGS"
20627      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20628      gt_save_LIBS="$LIBS"
20629      LIBS="$LIBS -framework CoreFoundation"
20630      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h.  */
20632 #include <CFPreferences.h>
20633 int
20634 main ()
20635 {
20636 CFPreferencesCopyAppValue(NULL, NULL)
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642   gt_cv_func_CFPreferencesCopyAppValue=yes
20643 else
20644   gt_cv_func_CFPreferencesCopyAppValue=no
20645 fi
20646 rm -f core conftest.err conftest.$ac_objext \
20647     conftest$ac_exeext conftest.$ac_ext
20648      CPPFLAGS="$gt_save_CPPFLAGS"
20649      LIBS="$gt_save_LIBS"
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20652 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20653   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20654
20655 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20656
20657   fi
20658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20659 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20660 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
20661   $as_echo_n "(cached) " >&6
20662 else
20663   gt_save_CPPFLAGS="$CPPFLAGS"
20664      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20665      gt_save_LIBS="$LIBS"
20666      LIBS="$LIBS -framework CoreFoundation"
20667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h.  */
20669 #include <CFLocale.h>
20670 int
20671 main ()
20672 {
20673 CFLocaleCopyCurrent();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679   gt_cv_func_CFLocaleCopyCurrent=yes
20680 else
20681   gt_cv_func_CFLocaleCopyCurrent=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext \
20684     conftest$ac_exeext conftest.$ac_ext
20685      CPPFLAGS="$gt_save_CPPFLAGS"
20686      LIBS="$gt_save_LIBS"
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20689 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20690   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20691
20692 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20693
20694   fi
20695   INTL_MACOSX_LIBS=
20696   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20697     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20698   fi
20699
20700
20701
20702
20703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20704 $as_echo_n "checking whether NLS is requested... " >&6; }
20705     # Check whether --enable-nls was given.
20706 if test "${enable_nls+set}" = set; then :
20707   enableval=$enable_nls; USE_NLS=$enableval
20708 else
20709   USE_NLS=yes
20710 fi
20711
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20713 $as_echo "$USE_NLS" >&6; }
20714
20715
20716
20717
20718     BUILD_INCLUDED_LIBINTL=no
20719     USE_INCLUDED_LIBINTL=no
20720
20721   LIBINTL=
20722   LTLIBINTL=
20723   POSUB=
20724
20725     if test "$USE_NLS" = "yes"; then
20726     gt_use_preinstalled_gnugettext=no
20727
20728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20729 $as_echo_n "checking whether included gettext is requested... " >&6; }
20730
20731 # Check whether --with-included-gettext was given.
20732 if test "${with_included_gettext+set}" = set; then :
20733   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20734 else
20735   nls_cv_force_use_gnu_gettext=no
20736 fi
20737
20738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20739 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20740
20741       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20742       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20743
20744
20745
20746
20747
20748
20749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20750 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20751 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20752   $as_echo_n "(cached) " >&6
20753 else
20754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h.  */
20756 #include <libintl.h>
20757 extern int _nl_msg_cat_cntr;
20758 extern int *_nl_domain_bindings;
20759 int
20760 main ()
20761 {
20762 bindtextdomain ("", "");
20763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 if ac_fn_c_try_link "$LINENO"; then :
20769   gt_cv_func_gnugettext1_libc=yes
20770 else
20771   gt_cv_func_gnugettext1_libc=no
20772 fi
20773 rm -f core conftest.err conftest.$ac_objext \
20774     conftest$ac_exeext conftest.$ac_ext
20775 fi
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20777 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20778
20779         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20780
20781
20782
20783     use_additional=yes
20784
20785   acl_save_prefix="$prefix"
20786   prefix="$acl_final_prefix"
20787   acl_save_exec_prefix="$exec_prefix"
20788   exec_prefix="$acl_final_exec_prefix"
20789
20790     eval additional_includedir=\"$includedir\"
20791     eval additional_libdir=\"$libdir\"
20792
20793   exec_prefix="$acl_save_exec_prefix"
20794   prefix="$acl_save_prefix"
20795
20796
20797 # Check whether --with-libintl-prefix was given.
20798 if test "${with_libintl_prefix+set}" = set; then :
20799   withval=$with_libintl_prefix;
20800     if test "X$withval" = "Xno"; then
20801       use_additional=no
20802     else
20803       if test "X$withval" = "X"; then
20804
20805   acl_save_prefix="$prefix"
20806   prefix="$acl_final_prefix"
20807   acl_save_exec_prefix="$exec_prefix"
20808   exec_prefix="$acl_final_exec_prefix"
20809
20810           eval additional_includedir=\"$includedir\"
20811           eval additional_libdir=\"$libdir\"
20812
20813   exec_prefix="$acl_save_exec_prefix"
20814   prefix="$acl_save_prefix"
20815
20816       else
20817         additional_includedir="$withval/include"
20818         additional_libdir="$withval/lib"
20819       fi
20820     fi
20821
20822 fi
20823
20824       LIBINTL=
20825   LTLIBINTL=
20826   INCINTL=
20827   rpathdirs=
20828   ltrpathdirs=
20829   names_already_handled=
20830   names_next_round='intl '
20831   while test -n "$names_next_round"; do
20832     names_this_round="$names_next_round"
20833     names_next_round=
20834     for name in $names_this_round; do
20835       already_handled=
20836       for n in $names_already_handled; do
20837         if test "$n" = "$name"; then
20838           already_handled=yes
20839           break
20840         fi
20841       done
20842       if test -z "$already_handled"; then
20843         names_already_handled="$names_already_handled $name"
20844                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20845         eval value=\"\$HAVE_LIB$uppername\"
20846         if test -n "$value"; then
20847           if test "$value" = yes; then
20848             eval value=\"\$LIB$uppername\"
20849             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20850             eval value=\"\$LTLIB$uppername\"
20851             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20852           else
20853                                     :
20854           fi
20855         else
20856                               found_dir=
20857           found_la=
20858           found_so=
20859           found_a=
20860           if test $use_additional = yes; then
20861             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20862               found_dir="$additional_libdir"
20863               found_so="$additional_libdir/lib$name.$shlibext"
20864               if test -f "$additional_libdir/lib$name.la"; then
20865                 found_la="$additional_libdir/lib$name.la"
20866               fi
20867             else
20868               if test -f "$additional_libdir/lib$name.$libext"; then
20869                 found_dir="$additional_libdir"
20870                 found_a="$additional_libdir/lib$name.$libext"
20871                 if test -f "$additional_libdir/lib$name.la"; then
20872                   found_la="$additional_libdir/lib$name.la"
20873                 fi
20874               fi
20875             fi
20876           fi
20877           if test "X$found_dir" = "X"; then
20878             for x in $LDFLAGS $LTLIBINTL; do
20879
20880   acl_save_prefix="$prefix"
20881   prefix="$acl_final_prefix"
20882   acl_save_exec_prefix="$exec_prefix"
20883   exec_prefix="$acl_final_exec_prefix"
20884   eval x=\"$x\"
20885   exec_prefix="$acl_save_exec_prefix"
20886   prefix="$acl_save_prefix"
20887
20888               case "$x" in
20889                 -L*)
20890                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20891                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20892                     found_dir="$dir"
20893                     found_so="$dir/lib$name.$shlibext"
20894                     if test -f "$dir/lib$name.la"; then
20895                       found_la="$dir/lib$name.la"
20896                     fi
20897                   else
20898                     if test -f "$dir/lib$name.$libext"; then
20899                       found_dir="$dir"
20900                       found_a="$dir/lib$name.$libext"
20901                       if test -f "$dir/lib$name.la"; then
20902                         found_la="$dir/lib$name.la"
20903                       fi
20904                     fi
20905                   fi
20906                   ;;
20907               esac
20908               if test "X$found_dir" != "X"; then
20909                 break
20910               fi
20911             done
20912           fi
20913           if test "X$found_dir" != "X"; then
20914                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20915             if test "X$found_so" != "X"; then
20916                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20917                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20918               else
20919                                                                                 haveit=
20920                 for x in $ltrpathdirs; do
20921                   if test "X$x" = "X$found_dir"; then
20922                     haveit=yes
20923                     break
20924                   fi
20925                 done
20926                 if test -z "$haveit"; then
20927                   ltrpathdirs="$ltrpathdirs $found_dir"
20928                 fi
20929                                 if test "$hardcode_direct" = yes; then
20930                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20931                 else
20932                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20933                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20934                                                             haveit=
20935                     for x in $rpathdirs; do
20936                       if test "X$x" = "X$found_dir"; then
20937                         haveit=yes
20938                         break
20939                       fi
20940                     done
20941                     if test -z "$haveit"; then
20942                       rpathdirs="$rpathdirs $found_dir"
20943                     fi
20944                   else
20945                                                                                 haveit=
20946                     for x in $LDFLAGS $LIBINTL; do
20947
20948   acl_save_prefix="$prefix"
20949   prefix="$acl_final_prefix"
20950   acl_save_exec_prefix="$exec_prefix"
20951   exec_prefix="$acl_final_exec_prefix"
20952   eval x=\"$x\"
20953   exec_prefix="$acl_save_exec_prefix"
20954   prefix="$acl_save_prefix"
20955
20956                       if test "X$x" = "X-L$found_dir"; then
20957                         haveit=yes
20958                         break
20959                       fi
20960                     done
20961                     if test -z "$haveit"; then
20962                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20963                     fi
20964                     if test "$hardcode_minus_L" != no; then
20965                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20966                     else
20967                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20968                     fi
20969                   fi
20970                 fi
20971               fi
20972             else
20973               if test "X$found_a" != "X"; then
20974                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20975               else
20976                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20977               fi
20978             fi
20979                         additional_includedir=
20980             case "$found_dir" in
20981               */lib | */lib/)
20982                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20983                 additional_includedir="$basedir/include"
20984                 ;;
20985             esac
20986             if test "X$additional_includedir" != "X"; then
20987                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20988                 haveit=
20989                 if test "X$additional_includedir" = "X/usr/local/include"; then
20990                   if test -n "$GCC"; then
20991                     case $host_os in
20992                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20993                     esac
20994                   fi
20995                 fi
20996                 if test -z "$haveit"; then
20997                   for x in $CPPFLAGS $INCINTL; do
20998
20999   acl_save_prefix="$prefix"
21000   prefix="$acl_final_prefix"
21001   acl_save_exec_prefix="$exec_prefix"
21002   exec_prefix="$acl_final_exec_prefix"
21003   eval x=\"$x\"
21004   exec_prefix="$acl_save_exec_prefix"
21005   prefix="$acl_save_prefix"
21006
21007                     if test "X$x" = "X-I$additional_includedir"; then
21008                       haveit=yes
21009                       break
21010                     fi
21011                   done
21012                   if test -z "$haveit"; then
21013                     if test -d "$additional_includedir"; then
21014                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21015                     fi
21016                   fi
21017                 fi
21018               fi
21019             fi
21020                         if test -n "$found_la"; then
21021                                                         save_libdir="$libdir"
21022               case "$found_la" in
21023                 */* | *\\*) . "$found_la" ;;
21024                 *) . "./$found_la" ;;
21025               esac
21026               libdir="$save_libdir"
21027                             for dep in $dependency_libs; do
21028                 case "$dep" in
21029                   -L*)
21030                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21031                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21032                       haveit=
21033                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21034                         if test -n "$GCC"; then
21035                           case $host_os in
21036                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21037                           esac
21038                         fi
21039                       fi
21040                       if test -z "$haveit"; then
21041                         haveit=
21042                         for x in $LDFLAGS $LIBINTL; do
21043
21044   acl_save_prefix="$prefix"
21045   prefix="$acl_final_prefix"
21046   acl_save_exec_prefix="$exec_prefix"
21047   exec_prefix="$acl_final_exec_prefix"
21048   eval x=\"$x\"
21049   exec_prefix="$acl_save_exec_prefix"
21050   prefix="$acl_save_prefix"
21051
21052                           if test "X$x" = "X-L$additional_libdir"; then
21053                             haveit=yes
21054                             break
21055                           fi
21056                         done
21057                         if test -z "$haveit"; then
21058                           if test -d "$additional_libdir"; then
21059                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21060                           fi
21061                         fi
21062                         haveit=
21063                         for x in $LDFLAGS $LTLIBINTL; do
21064
21065   acl_save_prefix="$prefix"
21066   prefix="$acl_final_prefix"
21067   acl_save_exec_prefix="$exec_prefix"
21068   exec_prefix="$acl_final_exec_prefix"
21069   eval x=\"$x\"
21070   exec_prefix="$acl_save_exec_prefix"
21071   prefix="$acl_save_prefix"
21072
21073                           if test "X$x" = "X-L$additional_libdir"; then
21074                             haveit=yes
21075                             break
21076                           fi
21077                         done
21078                         if test -z "$haveit"; then
21079                           if test -d "$additional_libdir"; then
21080                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21081                           fi
21082                         fi
21083                       fi
21084                     fi
21085                     ;;
21086                   -R*)
21087                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21088                     if test "$enable_rpath" != no; then
21089                                                                   haveit=
21090                       for x in $rpathdirs; do
21091                         if test "X$x" = "X$dir"; then
21092                           haveit=yes
21093                           break
21094                         fi
21095                       done
21096                       if test -z "$haveit"; then
21097                         rpathdirs="$rpathdirs $dir"
21098                       fi
21099                                                                   haveit=
21100                       for x in $ltrpathdirs; do
21101                         if test "X$x" = "X$dir"; then
21102                           haveit=yes
21103                           break
21104                         fi
21105                       done
21106                       if test -z "$haveit"; then
21107                         ltrpathdirs="$ltrpathdirs $dir"
21108                       fi
21109                     fi
21110                     ;;
21111                   -l*)
21112                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21113                     ;;
21114                   *.la)
21115                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21116                     ;;
21117                   *)
21118                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21119                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21120                     ;;
21121                 esac
21122               done
21123             fi
21124           else
21125                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21126             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21127           fi
21128         fi
21129       fi
21130     done
21131   done
21132   if test "X$rpathdirs" != "X"; then
21133     if test -n "$hardcode_libdir_separator"; then
21134                         alldirs=
21135       for found_dir in $rpathdirs; do
21136         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21137       done
21138             acl_save_libdir="$libdir"
21139       libdir="$alldirs"
21140       eval flag=\"$hardcode_libdir_flag_spec\"
21141       libdir="$acl_save_libdir"
21142       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21143     else
21144             for found_dir in $rpathdirs; do
21145         acl_save_libdir="$libdir"
21146         libdir="$found_dir"
21147         eval flag=\"$hardcode_libdir_flag_spec\"
21148         libdir="$acl_save_libdir"
21149         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21150       done
21151     fi
21152   fi
21153   if test "X$ltrpathdirs" != "X"; then
21154             for found_dir in $ltrpathdirs; do
21155       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21156     done
21157   fi
21158
21159           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21160 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21161 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   gt_save_CPPFLAGS="$CPPFLAGS"
21165             CPPFLAGS="$CPPFLAGS $INCINTL"
21166             gt_save_LIBS="$LIBS"
21167             LIBS="$LIBS $LIBINTL"
21168                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h.  */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21172 extern
21173 #ifdef __cplusplus
21174 "C"
21175 #endif
21176 const char *_nl_expand_alias (const char *);
21177 int
21178 main ()
21179 {
21180 bindtextdomain ("", "");
21181 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21182   ;
21183   return 0;
21184 }
21185 _ACEOF
21186 if ac_fn_c_try_link "$LINENO"; then :
21187   gt_cv_func_gnugettext1_libintl=yes
21188 else
21189   gt_cv_func_gnugettext1_libintl=no
21190 fi
21191 rm -f core conftest.err conftest.$ac_objext \
21192     conftest$ac_exeext conftest.$ac_ext
21193                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21194               LIBS="$LIBS $LIBICONV"
21195               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h.  */
21197 #include <libintl.h>
21198 extern int _nl_msg_cat_cntr;
21199 extern
21200 #ifdef __cplusplus
21201 "C"
21202 #endif
21203 const char *_nl_expand_alias (const char *);
21204 int
21205 main ()
21206 {
21207 bindtextdomain ("", "");
21208 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 if ac_fn_c_try_link "$LINENO"; then :
21214   LIBINTL="$LIBINTL $LIBICONV"
21215                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21216                 gt_cv_func_gnugettext1_libintl=yes
21217
21218 fi
21219 rm -f core conftest.err conftest.$ac_objext \
21220     conftest$ac_exeext conftest.$ac_ext
21221             fi
21222             CPPFLAGS="$gt_save_CPPFLAGS"
21223             LIBS="$gt_save_LIBS"
21224 fi
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21226 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21227         fi
21228
21229                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21230            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21231                 && test "$PACKAGE" != gettext-runtime \
21232                 && test "$PACKAGE" != gettext-tools; }; then
21233           gt_use_preinstalled_gnugettext=yes
21234         else
21235                     LIBINTL=
21236           LTLIBINTL=
21237           INCINTL=
21238         fi
21239
21240
21241         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21242                               nls_cv_use_gnu_gettext=yes
21243         fi
21244       fi
21245
21246       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21247                 BUILD_INCLUDED_LIBINTL=yes
21248         USE_INCLUDED_LIBINTL=yes
21249         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21250         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21251         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21252       fi
21253
21254       CATOBJEXT=
21255       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21256          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21257                 CATOBJEXT=.gmo
21258       fi
21259
21260
21261     if test -n "$INTL_MACOSX_LIBS"; then
21262       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21263          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21264                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21265         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21266       fi
21267     fi
21268
21269     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21270        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21271
21272 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21273
21274     else
21275       USE_NLS=no
21276     fi
21277   fi
21278
21279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21280 $as_echo_n "checking whether to use NLS... " >&6; }
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21282 $as_echo "$USE_NLS" >&6; }
21283   if test "$USE_NLS" = "yes"; then
21284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21285 $as_echo_n "checking where the gettext function comes from... " >&6; }
21286     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21287       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21288         gt_source="external libintl"
21289       else
21290         gt_source="libc"
21291       fi
21292     else
21293       gt_source="included intl directory"
21294     fi
21295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21296 $as_echo "$gt_source" >&6; }
21297   fi
21298
21299   if test "$USE_NLS" = "yes"; then
21300
21301     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21302       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21304 $as_echo_n "checking how to link with libintl... " >&6; }
21305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21306 $as_echo "$LIBINTL" >&6; }
21307
21308   for element in $INCINTL; do
21309     haveit=
21310     for x in $CPPFLAGS; do
21311
21312   acl_save_prefix="$prefix"
21313   prefix="$acl_final_prefix"
21314   acl_save_exec_prefix="$exec_prefix"
21315   exec_prefix="$acl_final_exec_prefix"
21316   eval x=\"$x\"
21317   exec_prefix="$acl_save_exec_prefix"
21318   prefix="$acl_save_prefix"
21319
21320       if test "X$x" = "X$element"; then
21321         haveit=yes
21322         break
21323       fi
21324     done
21325     if test -z "$haveit"; then
21326       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21327     fi
21328   done
21329
21330       fi
21331
21332
21333 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21334
21335
21336 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21337
21338     fi
21339
21340         POSUB=po
21341   fi
21342
21343
21344             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21345       BUILD_INCLUDED_LIBINTL=yes
21346     fi
21347
21348
21349
21350
21351
21352         nls_cv_header_intl=
21353     nls_cv_header_libgt=
21354
21355         DATADIRNAME=share
21356
21357
21358         INSTOBJEXT=.mo
21359
21360
21361         GENCAT=gencat
21362
21363
21364         INTLOBJS=
21365     if test "$USE_INCLUDED_LIBINTL" = yes; then
21366       INTLOBJS="\$(GETTOBJS)"
21367     fi
21368
21369
21370         INTL_LIBTOOL_SUFFIX_PREFIX=
21371
21372
21373
21374     INTLLIBS="$LIBINTL"
21375
21376
21377
21378
21379
21380
21381 fi
21382
21383 support_smartalloc=yes
21384 support_readline=yes
21385 support_conio=yes
21386 support_gnome=no
21387 support_bat=no
21388 support_wx_console=no
21389 support_tray_monitor=no
21390 support_tls=no
21391 support_crypto=no
21392 gnome_version=
21393 wx_version=
21394 support_static_tools=no
21395 support_static_fd=no
21396 support_static_sd=no
21397 support_static_dir=no
21398 support_static_cons=no
21399 support_python=no
21400 build_client_only=no
21401 build_dird=yes
21402 build_stored=yes
21403 db_backends=""
21404 batch_insert_db_backends=""
21405 support_lockmgr=no
21406
21407
21408 # Check whether --enable-gnome was given.
21409 if test "${enable_gnome+set}" = set; then :
21410   enableval=$enable_gnome;
21411        if test x$enableval = xyes; then
21412           support_gnome=yes
21413        fi
21414
21415
21416 fi
21417
21418
21419 GNOME_DIR=
21420 if test x$support_gnome = xyes; then
21421    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
21422    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
21423 fi
21424 # AC_SUBST(GNOME_DIR)
21425
21426 # Check whether --enable-bat was given.
21427 if test "${enable_bat+set}" = set; then :
21428   enableval=$enable_bat;
21429        if test x$enableval = xyes; then
21430
21431 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21432
21433           support_bat=yes
21434        fi
21435
21436
21437 fi
21438
21439
21440 BAT_DIR=
21441 if test x$support_bat = xyes; then
21442    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21443    pkg=$?
21444    if test $pkg = 0; then
21445       BAT_DIR=src/qt-console
21446    else
21447       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21448    fi
21449 fi
21450
21451 got_qwt=no
21452 QWT_INC=
21453 QWT_LDFLAGS=
21454 QWT_LIB=
21455 QWT=
21456 no_qwt=no
21457
21458
21459
21460
21461
21462
21463
21464
21465 # Check whether --enable-bwx-console was given.
21466 if test "${enable_bwx_console+set}" = set; then :
21467   enableval=$enable_bwx_console;
21468        if test x$enableval = xyes; then
21469           support_wx_console=yes
21470        fi
21471
21472
21473 fi
21474
21475
21476 WX_DIR=
21477 if test x$support_wx_console = xyes; then
21478    abc=`$WXCONFIG $WXFLAGS --cppflags`
21479    pkg=$?
21480    if test $pkg = 0; then
21481       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21482       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21483       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21484
21485
21486
21487       WX_DIR="src/wx-console"
21488    else
21489       echo " "
21490       echo "wx-config program not found. bwx-console disabled."
21491       echo " "
21492       support_wx_console=no
21493    fi
21494 fi
21495
21496
21497 # Check whether --enable-tray-monitor was given.
21498 if test "${enable_tray_monitor+set}" = set; then :
21499   enableval=$enable_tray_monitor;
21500        if test x$enableval = xyes; then
21501           support_tray_monitor=yes
21502        fi
21503
21504
21505 fi
21506
21507
21508 TRAY_MONITOR_DIR=
21509 if test x$support_tray_monitor = xyes; then
21510    abc=`$PKGCONFIG --exists gtk+-2.0`
21511    pkg=$?
21512    if test $pkg = 0; then
21513       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21514       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21515
21516
21517       TRAY_MONITOR_DIR=src/tray-monitor
21518       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21519       pkg=$?
21520       if test $pkg = 0; then
21521
21522 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21523
21524       fi
21525    fi
21526 fi
21527
21528
21529 # Check whether --enable-smartalloc was given.
21530 if test "${enable_smartalloc+set}" = set; then :
21531   enableval=$enable_smartalloc;
21532        if test x$enableval = xno; then
21533           support_smartalloc=no
21534        fi
21535
21536
21537 fi
21538
21539
21540 if test x$support_smartalloc = xyes; then
21541
21542 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21543
21544 fi
21545
21546 # Check whether --enable-lockmgr was given.
21547 if test "${enable_lockmgr+set}" = set; then :
21548   enableval=$enable_lockmgr;
21549        if test x$enableval = xyes; then
21550           support_lockmgr=yes
21551        fi
21552
21553
21554 fi
21555
21556
21557 if test x$support_lockmgr = xyes; then
21558
21559 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21560
21561 fi
21562
21563
21564 # Check whether --enable-static-tools was given.
21565 if test "${enable_static_tools+set}" = set; then :
21566   enableval=$enable_static_tools;
21567        if test x$enableval = xyes; then
21568           if test x$use_libtool = xyes; then
21569              as_fn_error "Libtool is enabled, not compatible with static tools,
21570   please rerun configure with --disable-libtool" "$LINENO" 5
21571           fi
21572           support_static_tools=yes
21573        fi
21574
21575
21576 fi
21577
21578
21579 TTOOL_LDFLAGS=
21580 if test x$support_static_tools = xyes; then
21581    TTOOL_LDFLAGS="-static"
21582 fi
21583
21584
21585 # Check whether --enable-static-fd was given.
21586 if test "${enable_static_fd+set}" = set; then :
21587   enableval=$enable_static_fd;
21588        if test x$enableval = xyes; then
21589           if test x$use_libtool = xyes; then
21590              as_fn_error "Libtool is enabled, not compatible with static tools,
21591   please rerun configure with --disable-libtool" "$LINENO" 5
21592           fi
21593           support_static_fd=yes
21594        fi
21595
21596
21597 fi
21598
21599
21600 STATIC_FD=
21601 if test x$support_static_fd = xyes; then
21602    STATIC_FD="static-bacula-fd"
21603 fi
21604
21605
21606 # Check whether --enable-static-sd was given.
21607 if test "${enable_static_sd+set}" = set; then :
21608   enableval=$enable_static_sd;
21609        if test x$enableval = xyes; then
21610           if test x$use_libtool = xyes; then
21611              as_fn_error "Libtool is enabled, not compatible with static tools,
21612   please rerun configure with --disable-libtool" "$LINENO" 5
21613           fi
21614           support_static_sd=yes
21615        fi
21616
21617
21618 fi
21619
21620
21621 STATIC_SD=
21622 if test x$support_static_sd = xyes; then
21623    STATIC_SD="static-bacula-sd"
21624 fi
21625
21626
21627 # Check whether --enable-static-dir was given.
21628 if test "${enable_static_dir+set}" = set; then :
21629   enableval=$enable_static_dir;
21630        if test x$enableval = xyes; then
21631           if test x$use_libtool = xyes; then
21632              as_fn_error "Libtool is enabled, not compatible with static tools,
21633   please rerun configure with --disable-libtool" "$LINENO" 5
21634           fi
21635           support_static_dir=yes
21636        fi
21637
21638
21639 fi
21640
21641
21642 STATIC_DIR=
21643 if test x$support_static_dir = xyes; then
21644    STATIC_DIR="static-bacula-dir"
21645 fi
21646
21647
21648 # Check whether --enable-static-cons was given.
21649 if test "${enable_static_cons+set}" = set; then :
21650   enableval=$enable_static_cons;
21651        if test x$enableval = xyes; then
21652           if test x$use_libtool = xyes; then
21653              as_fn_error "Libtool is enabled, not compatible with static tools,
21654   please rerun configure with --disable-libtool" "$LINENO" 5
21655           fi
21656           support_static_cons=yes
21657        fi
21658
21659
21660 fi
21661
21662
21663 STATIC_CONS=
21664 STATIC_GNOME_CONS=
21665 STATIC_WX_CONS=
21666 if test x$support_static_cons = xyes; then
21667    STATIC_CONS="static-bconsole"
21668    STATIC_GNOME_CONS="static-bgnome-console"
21669    STATIC_WX_CONS="static-bwx-console"
21670 fi
21671
21672
21673
21674
21675 # Check whether --enable-client-only was given.
21676 if test "${enable_client_only+set}" = set; then :
21677   enableval=$enable_client_only;
21678        if test x$enableval = xyes; then
21679           build_client_only=yes
21680           db_backends="None"
21681           DB_BACKENDS="none"
21682        fi
21683
21684
21685 fi
21686
21687 if test x$build_client_only = xno; then
21688    ALL_DIRS="subdirs"
21689 else
21690    ALL_DIRS=""
21691 fi
21692
21693
21694 # Check whether --enable-build-dird was given.
21695 if test "${enable_build_dird+set}" = set; then :
21696   enableval=$enable_build_dird;
21697        if test x$enableval = xno; then
21698           build_dird=no
21699        fi
21700
21701
21702 fi
21703
21704 if test x$build_dird = xyes; then
21705    DIRD_DIR="src/dird"
21706    DIR_TOOLS="DIRTOOLS"
21707 else
21708    DIRD_DIR=""
21709    DIR_TOOLS="NODIRTOOLS"
21710 fi
21711
21712
21713
21714 # Check whether --enable-build-stored was given.
21715 if test "${enable_build_stored+set}" = set; then :
21716   enableval=$enable_build_stored;
21717       if test x$enableval = xno; then
21718          build_stored=no
21719       fi
21720
21721
21722 fi
21723
21724 if test x$build_stored = xyes; then
21725    STORED_DIR="src/stored"
21726 else
21727    STORED_DIR=""
21728 fi
21729
21730
21731 # Check whether --enable-conio was given.
21732 if test "${enable_conio+set}" = set; then :
21733   enableval=$enable_conio;
21734        if test x$enableval = xno; then
21735           support_conio=no
21736        fi
21737
21738
21739 fi
21740
21741
21742
21743 support_ipv6=yes
21744 # Check whether --enable-ipv6 was given.
21745 if test "${enable_ipv6+set}" = set; then :
21746   enableval=$enable_ipv6;
21747        if test x$enableval = xno; then
21748           support_ipv6=no
21749        fi
21750
21751
21752 fi
21753
21754
21755 if test x$support_ipv6 = xyes; then
21756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h.  */
21758  #include <sys/types.h>
21759 #include <sys/socket.h>
21760 #include <netinet/in.h>
21761 int
21762 main ()
21763 {
21764 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 if ac_fn_c_try_link "$LINENO"; then :
21770   support_ipv6=yes
21771 else
21772   support_ipv6=no
21773 fi
21774 rm -f core conftest.err conftest.$ac_objext \
21775     conftest$ac_exeext conftest.$ac_ext
21776 fi
21777
21778 if test x$support_ipv6 = xyes; then
21779
21780 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21781
21782 fi
21783
21784 TERM_LIB=""
21785 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21786 if test "x$ac_cv_header_curses_h" = x""yes; then :
21787
21788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21789 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21790 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793   ac_check_lib_save_LIBS=$LIBS
21794 LIBS="-ltinfo  $LIBS"
21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796 /* end confdefs.h.  */
21797
21798 /* Override any GCC internal prototype to avoid an error.
21799    Use char because int might match the return type of a GCC
21800    builtin and then its argument prototype would still apply.  */
21801 #ifdef __cplusplus
21802 extern "C"
21803 #endif
21804 char tgetent ();
21805 int
21806 main ()
21807 {
21808 return tgetent ();
21809   ;
21810   return 0;
21811 }
21812 _ACEOF
21813 if ac_fn_c_try_link "$LINENO"; then :
21814   ac_cv_lib_tinfo_tgetent=yes
21815 else
21816   ac_cv_lib_tinfo_tgetent=no
21817 fi
21818 rm -f core conftest.err conftest.$ac_objext \
21819     conftest$ac_exeext conftest.$ac_ext
21820 LIBS=$ac_check_lib_save_LIBS
21821 fi
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21823 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21824 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21825    TERM_LIB="-ltinfo"
21826 else
21827
21828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21829 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21830 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21831   $as_echo_n "(cached) " >&6
21832 else
21833   ac_check_lib_save_LIBS=$LIBS
21834 LIBS="-lncurses  $LIBS"
21835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h.  */
21837
21838 /* Override any GCC internal prototype to avoid an error.
21839    Use char because int might match the return type of a GCC
21840    builtin and then its argument prototype would still apply.  */
21841 #ifdef __cplusplus
21842 extern "C"
21843 #endif
21844 char tgetent ();
21845 int
21846 main ()
21847 {
21848 return tgetent ();
21849   ;
21850   return 0;
21851 }
21852 _ACEOF
21853 if ac_fn_c_try_link "$LINENO"; then :
21854   ac_cv_lib_ncurses_tgetent=yes
21855 else
21856   ac_cv_lib_ncurses_tgetent=no
21857 fi
21858 rm -f core conftest.err conftest.$ac_objext \
21859     conftest$ac_exeext conftest.$ac_ext
21860 LIBS=$ac_check_lib_save_LIBS
21861 fi
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21863 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21864 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21865    TERM_LIB="-lncurses"
21866 else
21867
21868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21869 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21870 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21871   $as_echo_n "(cached) " >&6
21872 else
21873   ac_check_lib_save_LIBS=$LIBS
21874 LIBS="-ltermcap  $LIBS"
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876 /* end confdefs.h.  */
21877
21878 /* Override any GCC internal prototype to avoid an error.
21879    Use char because int might match the return type of a GCC
21880    builtin and then its argument prototype would still apply.  */
21881 #ifdef __cplusplus
21882 extern "C"
21883 #endif
21884 char tgetent ();
21885 int
21886 main ()
21887 {
21888 return tgetent ();
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 if ac_fn_c_try_link "$LINENO"; then :
21894   ac_cv_lib_termcap_tgetent=yes
21895 else
21896   ac_cv_lib_termcap_tgetent=no
21897 fi
21898 rm -f core conftest.err conftest.$ac_objext \
21899     conftest$ac_exeext conftest.$ac_ext
21900 LIBS=$ac_check_lib_save_LIBS
21901 fi
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21903 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21904 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21905    TERM_LIB="-ltermcap"
21906 fi
21907
21908
21909 fi
21910
21911
21912 fi
21913
21914
21915 else
21916     for ac_header in curses.h
21917 do :
21918   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21919 if test "x$ac_cv_header_curses_h" = x""yes; then :
21920   cat >>confdefs.h <<_ACEOF
21921 #define HAVE_CURSES_H 1
21922 _ACEOF
21923
21924 fi
21925
21926 done
21927
21928      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21929 if test "x$ac_cv_header_term_h" = x""yes; then :
21930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21931 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21932 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21933   $as_echo_n "(cached) " >&6
21934 else
21935   ac_check_lib_save_LIBS=$LIBS
21936 LIBS="-lcurses  $LIBS"
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h.  */
21939
21940 /* Override any GCC internal prototype to avoid an error.
21941    Use char because int might match the return type of a GCC
21942    builtin and then its argument prototype would still apply.  */
21943 #ifdef __cplusplus
21944 extern "C"
21945 #endif
21946 char tgetent ();
21947 int
21948 main ()
21949 {
21950 return tgetent ();
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 if ac_fn_c_try_link "$LINENO"; then :
21956   ac_cv_lib_curses_tgetent=yes
21957 else
21958   ac_cv_lib_curses_tgetent=no
21959 fi
21960 rm -f core conftest.err conftest.$ac_objext \
21961     conftest$ac_exeext conftest.$ac_ext
21962 LIBS=$ac_check_lib_save_LIBS
21963 fi
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21965 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21966 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21967    TERM_LIB="-lcurses"
21968 fi
21969
21970
21971 fi
21972
21973
21974
21975 fi
21976
21977
21978
21979
21980 got_conio="no"
21981 if test x$support_conio = xyes; then
21982    if test x$TERM_LIB != x; then
21983       CONS_LIBS=$TERM_LIB
21984       CONS_OBJ="conio.o"
21985       CONS_SRC="conio.c"
21986       got_conio="yes"
21987       support_readline=no
21988
21989 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21990
21991    else
21992       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21993    fi
21994 fi
21995
21996
21997 # Check whether --enable-readline was given.
21998 if test "${enable_readline+set}" = set; then :
21999   enableval=$enable_readline;
22000        if test x$enableval = xno; then
22001           support_readline=no
22002        fi
22003
22004
22005 fi
22006
22007 if test x$TERM_LIB = x ; then
22008    support_readline=no
22009 fi
22010
22011 got_readline="no"
22012 READLINE_SRC=
22013 if test x$support_readline = xyes; then
22014
22015 # Check whether --with-readline was given.
22016 if test "${with_readline+set}" = set; then :
22017   withval=$with_readline;
22018           case "$with_readline" in
22019           no)
22020              :
22021              ;;
22022           yes|*)
22023              if test -f ${with_readline}/readline.h; then
22024                 CONS_INC="-I${with_readline}"
22025                 CONS_LDFLAGS="-L$with_readline"
22026              elif test -f ${with_readline}/include/readline/readline.h; then
22027                 CONS_INC="-I${with_readline}/include/readline"
22028                 CONS_LDFLAGS="-L${with_readline}/lib"
22029                 with_readline="${with_readline}/include/readline"
22030              else
22031                 with_readline="/usr/include/readline"
22032              fi
22033
22034              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22035 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22036 eval as_val=\$$as_ac_Header
22037    if test "x$as_val" = x""yes; then :
22038
22039
22040 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22041
22042                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22043                     got_readline="yes"
22044
22045 else
22046
22047                     echo " "
22048                     echo "readline.h not found. readline turned off ..."
22049                     echo " "
22050
22051
22052 fi
22053
22054
22055              ;;
22056           esac
22057
22058 else
22059
22060                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22061 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22062
22063
22064 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22065
22066                 got_readline="yes"
22067                 CONS_INC="-I/usr/include/readline"
22068                 CONS_LIBS="-lreadline $TERM_LIB"
22069
22070 else
22071
22072                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22073 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22074 eval as_val=\$$as_ac_Header
22075    if test "x$as_val" = x""yes; then :
22076
22077
22078 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22079
22080                         got_readline="yes"
22081                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22082                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22083                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22084                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22085
22086 else
22087
22088                         echo " "
22089                         echo "readline.h not found. readline turned off ..."
22090                         echo " "
22091
22092
22093 fi
22094
22095
22096
22097
22098 fi
22099
22100
22101
22102
22103 fi
22104
22105 fi
22106
22107
22108
22109
22110
22111
22112
22113
22114 MAKE_SHELL=/bin/sh
22115
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22117 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22118 if test "${ac_cv_header_stat_broken+set}" = set; then :
22119   $as_echo_n "(cached) " >&6
22120 else
22121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122 /* end confdefs.h.  */
22123 #include <sys/types.h>
22124 #include <sys/stat.h>
22125
22126 #if defined S_ISBLK && defined S_IFDIR
22127 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22128 #endif
22129
22130 #if defined S_ISBLK && defined S_IFCHR
22131 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22132 #endif
22133
22134 #if defined S_ISLNK && defined S_IFREG
22135 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22136 #endif
22137
22138 #if defined S_ISSOCK && defined S_IFREG
22139 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22140 #endif
22141
22142 _ACEOF
22143 if ac_fn_c_try_compile "$LINENO"; then :
22144   ac_cv_header_stat_broken=no
22145 else
22146   ac_cv_header_stat_broken=yes
22147 fi
22148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 fi
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22151 $as_echo "$ac_cv_header_stat_broken" >&6; }
22152 if test $ac_cv_header_stat_broken = yes; then
22153
22154 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22155
22156 fi
22157
22158 ac_header_dirent=no
22159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22160   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22162 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
22164   $as_echo_n "(cached) " >&6
22165 else
22166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h.  */
22168 #include <sys/types.h>
22169 #include <$ac_hdr>
22170
22171 int
22172 main ()
22173 {
22174 if ((DIR *) 0)
22175 return 0;
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 if ac_fn_c_try_compile "$LINENO"; then :
22181   eval "$as_ac_Header=yes"
22182 else
22183   eval "$as_ac_Header=no"
22184 fi
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 fi
22187 eval ac_res=\$$as_ac_Header
22188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22189 $as_echo "$ac_res" >&6; }
22190 eval as_val=\$$as_ac_Header
22191    if test "x$as_val" = x""yes; then :
22192   cat >>confdefs.h <<_ACEOF
22193 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22194 _ACEOF
22195
22196 ac_header_dirent=$ac_hdr; break
22197 fi
22198
22199 done
22200 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22201 if test $ac_header_dirent = dirent.h; then
22202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22203 $as_echo_n "checking for library containing opendir... " >&6; }
22204 if test "${ac_cv_search_opendir+set}" = set; then :
22205   $as_echo_n "(cached) " >&6
22206 else
22207   ac_func_search_save_LIBS=$LIBS
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h.  */
22210
22211 /* Override any GCC internal prototype to avoid an error.
22212    Use char because int might match the return type of a GCC
22213    builtin and then its argument prototype would still apply.  */
22214 #ifdef __cplusplus
22215 extern "C"
22216 #endif
22217 char opendir ();
22218 int
22219 main ()
22220 {
22221 return opendir ();
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 for ac_lib in '' dir; do
22227   if test -z "$ac_lib"; then
22228     ac_res="none required"
22229   else
22230     ac_res=-l$ac_lib
22231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22232   fi
22233   if ac_fn_c_try_link "$LINENO"; then :
22234   ac_cv_search_opendir=$ac_res
22235 fi
22236 rm -f core conftest.err conftest.$ac_objext \
22237     conftest$ac_exeext
22238   if test "${ac_cv_search_opendir+set}" = set; then :
22239   break
22240 fi
22241 done
22242 if test "${ac_cv_search_opendir+set}" = set; then :
22243
22244 else
22245   ac_cv_search_opendir=no
22246 fi
22247 rm conftest.$ac_ext
22248 LIBS=$ac_func_search_save_LIBS
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22251 $as_echo "$ac_cv_search_opendir" >&6; }
22252 ac_res=$ac_cv_search_opendir
22253 if test "$ac_res" != no; then :
22254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22255
22256 fi
22257
22258 else
22259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22260 $as_echo_n "checking for library containing opendir... " >&6; }
22261 if test "${ac_cv_search_opendir+set}" = set; then :
22262   $as_echo_n "(cached) " >&6
22263 else
22264   ac_func_search_save_LIBS=$LIBS
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h.  */
22267
22268 /* Override any GCC internal prototype to avoid an error.
22269    Use char because int might match the return type of a GCC
22270    builtin and then its argument prototype would still apply.  */
22271 #ifdef __cplusplus
22272 extern "C"
22273 #endif
22274 char opendir ();
22275 int
22276 main ()
22277 {
22278 return opendir ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 for ac_lib in '' x; do
22284   if test -z "$ac_lib"; then
22285     ac_res="none required"
22286   else
22287     ac_res=-l$ac_lib
22288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22289   fi
22290   if ac_fn_c_try_link "$LINENO"; then :
22291   ac_cv_search_opendir=$ac_res
22292 fi
22293 rm -f core conftest.err conftest.$ac_objext \
22294     conftest$ac_exeext
22295   if test "${ac_cv_search_opendir+set}" = set; then :
22296   break
22297 fi
22298 done
22299 if test "${ac_cv_search_opendir+set}" = set; then :
22300
22301 else
22302   ac_cv_search_opendir=no
22303 fi
22304 rm conftest.$ac_ext
22305 LIBS=$ac_func_search_save_LIBS
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22308 $as_echo "$ac_cv_search_opendir" >&6; }
22309 ac_res=$ac_cv_search_opendir
22310 if test "$ac_res" != no; then :
22311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22312
22313 fi
22314
22315 fi
22316
22317 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22318 do :
22319   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22321 eval as_val=\$$as_ac_var
22322    if test "x$as_val" = x""yes; then :
22323   cat >>confdefs.h <<_ACEOF
22324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22325 _ACEOF
22326
22327 fi
22328 done
22329
22330 for ac_func in nanosleep nl_langinfo
22331 do :
22332   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22334 eval as_val=\$$as_ac_var
22335    if test "x$as_val" = x""yes; then :
22336   cat >>confdefs.h <<_ACEOF
22337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22338 _ACEOF
22339
22340 fi
22341 done
22342
22343 for ac_header in varargs.h
22344 do :
22345   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22346 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22347   cat >>confdefs.h <<_ACEOF
22348 #define HAVE_VARARGS_H 1
22349 _ACEOF
22350
22351 fi
22352
22353 done
22354
22355
22356
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22358 $as_echo_n "checking for Python support... " >&6; }
22359
22360 # Check whether --with-python was given.
22361 if test "${with_python+set}" = set; then :
22362   withval=$with_python;
22363        PYTHON_INCDIR=
22364        PYTHON_LIBS=
22365        if test "$withval" != "no"; then
22366           if test "$withval" = "yes"; then
22367              if test -e /usr/bin/python-config ; then
22368                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22369                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22370              else
22371                 for python_root in /usr /usr/local /usr/sfw; do
22372                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22373                       if test -f $python_root/include/${ver}/Python.h; then
22374                          PYTHON_INCDIR=-I$python_root/include/${ver}
22375                          if test -d $python_root/lib64/${ver}/config; then
22376                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22377                          else
22378                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22379                          fi
22380                          break
22381                       fi
22382                    done
22383                 done
22384
22385                 if test x$PYTHON_INCDIR = x; then
22386                    if test -f $prefix/include/Python.h; then
22387                       PYTHON_INCDIR=-I$prefix/include
22388                       if test -d $prefix/lib64/config; then
22389                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22390                       else
22391                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22392                       fi
22393                    else
22394                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22395 $as_echo "no" >&6; }
22396                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
22397                    fi
22398                 fi
22399              fi
22400           else
22401              if test -e $withval/bin/python-config ; then
22402                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22403                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22404              elif test -f $withval/Python.h; then
22405                 PYTHON_INCDIR=-I$withval
22406                 PYTHON_LIBS="-L$withval/config -lpython"
22407              elif test -f $withval/include/Python.h; then
22408                 PYTHON_INCDIR=-I$withval/include
22409                 if test -d $withval/lib64/config; then
22410                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22411                 else
22412                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22413                 fi
22414              elif test -f $withval/include/python/Python.h; then
22415                 PYTHON_INCDIR=-I$withval/include/python
22416                 if test -d $withval/lib64/python/config; then
22417                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22418                 else
22419                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22420                 fi
22421              else
22422                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423 $as_echo "no" >&6; }
22424                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22425              fi
22426           fi
22427
22428           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22429
22430           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22431 $as_echo "yes" >&6; }
22432           support_python=yes
22433           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22434 $as_echo "$as_me: checking for more Python libs" >&6;}
22435           saved_LIBS="$LIBS"; LIBS=
22436           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22437 $as_echo_n "checking for library containing shm_open... " >&6; }
22438 if test "${ac_cv_search_shm_open+set}" = set; then :
22439   $as_echo_n "(cached) " >&6
22440 else
22441   ac_func_search_save_LIBS=$LIBS
22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443 /* end confdefs.h.  */
22444
22445 /* Override any GCC internal prototype to avoid an error.
22446    Use char because int might match the return type of a GCC
22447    builtin and then its argument prototype would still apply.  */
22448 #ifdef __cplusplus
22449 extern "C"
22450 #endif
22451 char shm_open ();
22452 int
22453 main ()
22454 {
22455 return shm_open ();
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 for ac_lib in '' rt; do
22461   if test -z "$ac_lib"; then
22462     ac_res="none required"
22463   else
22464     ac_res=-l$ac_lib
22465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22466   fi
22467   if ac_fn_c_try_link "$LINENO"; then :
22468   ac_cv_search_shm_open=$ac_res
22469 fi
22470 rm -f core conftest.err conftest.$ac_objext \
22471     conftest$ac_exeext
22472   if test "${ac_cv_search_shm_open+set}" = set; then :
22473   break
22474 fi
22475 done
22476 if test "${ac_cv_search_shm_open+set}" = set; then :
22477
22478 else
22479   ac_cv_search_shm_open=no
22480 fi
22481 rm conftest.$ac_ext
22482 LIBS=$ac_func_search_save_LIBS
22483 fi
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22485 $as_echo "$ac_cv_search_shm_open" >&6; }
22486 ac_res=$ac_cv_search_shm_open
22487 if test "$ac_res" != no; then :
22488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22489
22490 fi
22491
22492           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22493 $as_echo_n "checking for openpty in -lutil... " >&6; }
22494 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22495   $as_echo_n "(cached) " >&6
22496 else
22497   ac_check_lib_save_LIBS=$LIBS
22498 LIBS="-lutil  $LIBS"
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h.  */
22501
22502 /* Override any GCC internal prototype to avoid an error.
22503    Use char because int might match the return type of a GCC
22504    builtin and then its argument prototype would still apply.  */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char openpty ();
22509 int
22510 main ()
22511 {
22512 return openpty ();
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 if ac_fn_c_try_link "$LINENO"; then :
22518   ac_cv_lib_util_openpty=yes
22519 else
22520   ac_cv_lib_util_openpty=no
22521 fi
22522 rm -f core conftest.err conftest.$ac_objext \
22523     conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22527 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22528 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22529   cat >>confdefs.h <<_ACEOF
22530 #define HAVE_LIBUTIL 1
22531 _ACEOF
22532
22533   LIBS="-lutil $LIBS"
22534
22535 fi
22536
22537           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22538           LIBS="$saved_LIBS"
22539        else
22540           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541 $as_echo "no" >&6; }
22542        fi
22543
22544 else
22545
22546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22547 $as_echo "no" >&6; }
22548
22549
22550 fi
22551
22552
22553
22554
22555 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22556 if test "x$ac_cv_func_socket" = x""yes; then :
22557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22558 $as_echo "using libc's socket" >&6; }
22559 else
22560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22561 $as_echo_n "checking for socket in -lxnet... " >&6; }
22562 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22563   $as_echo_n "(cached) " >&6
22564 else
22565   ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-lxnet  $LIBS"
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h.  */
22569
22570 /* Override any GCC internal prototype to avoid an error.
22571    Use char because int might match the return type of a GCC
22572    builtin and then its argument prototype would still apply.  */
22573 #ifdef __cplusplus
22574 extern "C"
22575 #endif
22576 char socket ();
22577 int
22578 main ()
22579 {
22580 return socket ();
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 if ac_fn_c_try_link "$LINENO"; then :
22586   ac_cv_lib_xnet_socket=yes
22587 else
22588   ac_cv_lib_xnet_socket=no
22589 fi
22590 rm -f core conftest.err conftest.$ac_objext \
22591     conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22593 fi
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22595 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22596 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22597   cat >>confdefs.h <<_ACEOF
22598 #define HAVE_LIBXNET 1
22599 _ACEOF
22600
22601   LIBS="-lxnet $LIBS"
22602
22603 fi
22604
22605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22606 $as_echo_n "checking for socket in -lsocket... " >&6; }
22607 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22608   $as_echo_n "(cached) " >&6
22609 else
22610   ac_check_lib_save_LIBS=$LIBS
22611 LIBS="-lsocket  $LIBS"
22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h.  */
22614
22615 /* Override any GCC internal prototype to avoid an error.
22616    Use char because int might match the return type of a GCC
22617    builtin and then its argument prototype would still apply.  */
22618 #ifdef __cplusplus
22619 extern "C"
22620 #endif
22621 char socket ();
22622 int
22623 main ()
22624 {
22625 return socket ();
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_link "$LINENO"; then :
22631   ac_cv_lib_socket_socket=yes
22632 else
22633   ac_cv_lib_socket_socket=no
22634 fi
22635 rm -f core conftest.err conftest.$ac_objext \
22636     conftest$ac_exeext conftest.$ac_ext
22637 LIBS=$ac_check_lib_save_LIBS
22638 fi
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22640 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22641 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22642   cat >>confdefs.h <<_ACEOF
22643 #define HAVE_LIBSOCKET 1
22644 _ACEOF
22645
22646   LIBS="-lsocket $LIBS"
22647
22648 fi
22649
22650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22651 $as_echo_n "checking for socket in -linet... " >&6; }
22652 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22653   $as_echo_n "(cached) " >&6
22654 else
22655   ac_check_lib_save_LIBS=$LIBS
22656 LIBS="-linet  $LIBS"
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h.  */
22659
22660 /* Override any GCC internal prototype to avoid an error.
22661    Use char because int might match the return type of a GCC
22662    builtin and then its argument prototype would still apply.  */
22663 #ifdef __cplusplus
22664 extern "C"
22665 #endif
22666 char socket ();
22667 int
22668 main ()
22669 {
22670 return socket ();
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 if ac_fn_c_try_link "$LINENO"; then :
22676   ac_cv_lib_inet_socket=yes
22677 else
22678   ac_cv_lib_inet_socket=no
22679 fi
22680 rm -f core conftest.err conftest.$ac_objext \
22681     conftest$ac_exeext conftest.$ac_ext
22682 LIBS=$ac_check_lib_save_LIBS
22683 fi
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22685 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22686 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22687   cat >>confdefs.h <<_ACEOF
22688 #define HAVE_LIBINET 1
22689 _ACEOF
22690
22691   LIBS="-linet $LIBS"
22692
22693 fi
22694
22695 fi
22696
22697
22698 TCPW_MSG="no"
22699 WRAPLIBS=""
22700
22701 # Check whether --with-tcp-wrappers was given.
22702 if test "${with_tcp_wrappers+set}" = set; then :
22703   withval=$with_tcp_wrappers;
22704        if test "x$withval" != "xno" ; then
22705           saved_LIBS="$LIBS"
22706           LIBS="$saved_LIBS -lwrap"
22707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22708 $as_echo_n "checking for library containing nanosleep... " >&6; }
22709 if test "${ac_cv_search_nanosleep+set}" = set; then :
22710   $as_echo_n "(cached) " >&6
22711 else
22712   ac_func_search_save_LIBS=$LIBS
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h.  */
22715
22716 /* Override any GCC internal prototype to avoid an error.
22717    Use char because int might match the return type of a GCC
22718    builtin and then its argument prototype would still apply.  */
22719 #ifdef __cplusplus
22720 extern "C"
22721 #endif
22722 char nanosleep ();
22723 int
22724 main ()
22725 {
22726 return nanosleep ();
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 for ac_lib in '' rt; do
22732   if test -z "$ac_lib"; then
22733     ac_res="none required"
22734   else
22735     ac_res=-l$ac_lib
22736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22737   fi
22738   if ac_fn_c_try_link "$LINENO"; then :
22739   ac_cv_search_nanosleep=$ac_res
22740 fi
22741 rm -f core conftest.err conftest.$ac_objext \
22742     conftest$ac_exeext
22743   if test "${ac_cv_search_nanosleep+set}" = set; then :
22744   break
22745 fi
22746 done
22747 if test "${ac_cv_search_nanosleep+set}" = set; then :
22748
22749 else
22750   ac_cv_search_nanosleep=no
22751 fi
22752 rm conftest.$ac_ext
22753 LIBS=$ac_func_search_save_LIBS
22754 fi
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22756 $as_echo "$ac_cv_search_nanosleep" >&6; }
22757 ac_res=$ac_cv_search_nanosleep
22758 if test "$ac_res" != no; then :
22759   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22760
22761 fi
22762
22763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22764 $as_echo_n "checking for libwrap... " >&6; }
22765           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766 /* end confdefs.h.  */
22767
22768                #include <sys/types.h>
22769                #include <tcpd.h>
22770                int deny_severity = 0;
22771                int allow_severity = 0;
22772                struct request_info *req;
22773
22774 int
22775 main ()
22776 {
22777
22778                 hosts_access(req);
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 if ac_fn_c_try_link "$LINENO"; then :
22785
22786                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22787 $as_echo "yes" >&6; }
22788
22789 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22790
22791                  TCPW_MSG="yes"
22792                  LIBS="$saved_LIBS"
22793                  WRAPLIBS="-lwrap"
22794
22795 else
22796
22797                  LIBS="$saved_LIBS -lwrap -lnsl"
22798                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22799                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h.  */
22801
22802                        #include <sys/types.h>
22803                        #include <tcpd.h>
22804                        int deny_severity = 0;
22805                        int allow_severity = 0;
22806                        struct request_info *req;
22807
22808 int
22809 main ()
22810 {
22811
22812                        hosts_access(req);
22813
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 if ac_fn_c_try_link "$LINENO"; then :
22819
22820                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22821 $as_echo "yes" >&6; }
22822
22823 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22824
22825                       TCPW_MSG="yes"
22826                       LIBS="$saved_LIBS"
22827                       WRAPLIBS="-lwrap"
22828
22829 else
22830
22831                       as_fn_error "*** libwrap missing" "$LINENO" 5
22832
22833
22834 fi
22835 rm -f core conftest.err conftest.$ac_objext \
22836     conftest$ac_exeext conftest.$ac_ext
22837
22838
22839 fi
22840 rm -f core conftest.err conftest.$ac_objext \
22841     conftest$ac_exeext conftest.$ac_ext
22842        fi
22843
22844
22845 fi
22846
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22849 $as_echo_n "checking for OpenSSL... " >&6; }
22850
22851 # Check whether --with-openssl was given.
22852 if test "${with_openssl+set}" = set; then :
22853   withval=$with_openssl;
22854         with_openssl_directory=${withval}
22855
22856
22857 fi
22858
22859
22860 if test "x$with_openssl_directory" != "xno"; then
22861    OPENSSL_LIBS="-lssl -lcrypto"
22862    OPENSSL_INC=""
22863
22864    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22865       #
22866       # Make sure the $with_openssl_directory also makes sense
22867       #
22868       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22869          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22870          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22871       fi
22872    fi
22873
22874    saved_LIBS="${LIBS}"
22875    saved_CFLAGS="${CFLAGS}"
22876    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22877    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22878
22879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h.  */
22881
22882           #include <openssl/ssl.h>
22883
22884 int
22885 main ()
22886 {
22887
22888            CRYPTO_set_id_callback(NULL);
22889
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 if ac_fn_c_try_link "$LINENO"; then :
22895
22896           support_tls="yes"
22897           support_crypto="yes"
22898
22899 else
22900
22901           support_tls="no"
22902           support_crypto="no"
22903
22904
22905 fi
22906 rm -f core conftest.err conftest.$ac_objext \
22907     conftest$ac_exeext conftest.$ac_ext
22908
22909    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h.  */
22911
22912           #include <openssl/evp.h>
22913
22914 int
22915 main ()
22916 {
22917
22918           EVP_sha512();
22919
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 if ac_fn_c_try_link "$LINENO"; then :
22925
22926           ac_cv_openssl_sha2="yes"
22927
22928 else
22929
22930           ac_cv_openssl_sha2="no"
22931
22932
22933 fi
22934 rm -f core conftest.err conftest.$ac_objext \
22935     conftest$ac_exeext conftest.$ac_ext
22936
22937                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h.  */
22939
22940           #include <openssl/evp.h>
22941
22942 int
22943 main ()
22944 {
22945
22946           EVP_aes_192_cbc();
22947
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 if ac_fn_c_try_link "$LINENO"; then :
22953
22954           ac_cv_openssl_export="no"
22955
22956 else
22957
22958           ac_cv_openssl_export="yes"
22959
22960
22961 fi
22962 rm -f core conftest.err conftest.$ac_objext \
22963     conftest$ac_exeext conftest.$ac_ext
22964
22965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22966 $as_echo "$support_tls" >&6; }
22967    if test "$support_tls" = "yes"; then
22968
22969 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22970
22971
22972 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22973
22974
22975 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22976
22977    fi
22978
22979    if test "$ac_cv_openssl_sha2" = "yes"; then
22980
22981 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22982
22983    fi
22984
22985    if test "$ac_cv_openssl_export" = "yes"; then
22986
22987 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22988
22989    fi
22990
22991    if test "$support_crypto" = "yes"; then
22992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22993 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22994 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22995   $as_echo_n "(cached) " >&6
22996 else
22997   ac_check_lib_save_LIBS=$LIBS
22998 LIBS="-lcrypto  $LIBS"
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h.  */
23001
23002 /* Override any GCC internal prototype to avoid an error.
23003    Use char because int might match the return type of a GCC
23004    builtin and then its argument prototype would still apply.  */
23005 #ifdef __cplusplus
23006 extern "C"
23007 #endif
23008 char EVP_PKEY_encrypt_old ();
23009 int
23010 main ()
23011 {
23012 return EVP_PKEY_encrypt_old ();
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 if ac_fn_c_try_link "$LINENO"; then :
23018   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23019 else
23020   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23021 fi
23022 rm -f core conftest.err conftest.$ac_objext \
23023     conftest$ac_exeext conftest.$ac_ext
23024 LIBS=$ac_check_lib_save_LIBS
23025 fi
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23027 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23028 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23029
23030 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23031
23032 fi
23033
23034    fi
23035
23036    LIBS="${saved_LIBS}"
23037    CFLAGS="${saved_CFLAGS}"
23038 else
23039    support_tls="no"
23040    support_crypto="no"
23041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23042 $as_echo "$support_tls" >&6; }
23043 fi
23044
23045 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23046    OPENSSL_LIBS=""
23047    OPENSSL_INC=""
23048 fi
23049
23050
23051
23052
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23054 $as_echo_n "checking for library containing dlopen... " >&6; }
23055 if test "${ac_cv_search_dlopen+set}" = set; then :
23056   $as_echo_n "(cached) " >&6
23057 else
23058   ac_func_search_save_LIBS=$LIBS
23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23060 /* end confdefs.h.  */
23061
23062 /* Override any GCC internal prototype to avoid an error.
23063    Use char because int might match the return type of a GCC
23064    builtin and then its argument prototype would still apply.  */
23065 #ifdef __cplusplus
23066 extern "C"
23067 #endif
23068 char dlopen ();
23069 int
23070 main ()
23071 {
23072 return dlopen ();
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 for ac_lib in '' dl; do
23078   if test -z "$ac_lib"; then
23079     ac_res="none required"
23080   else
23081     ac_res=-l$ac_lib
23082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23083   fi
23084   if ac_fn_c_try_link "$LINENO"; then :
23085   ac_cv_search_dlopen=$ac_res
23086 fi
23087 rm -f core conftest.err conftest.$ac_objext \
23088     conftest$ac_exeext
23089   if test "${ac_cv_search_dlopen+set}" = set; then :
23090   break
23091 fi
23092 done
23093 if test "${ac_cv_search_dlopen+set}" = set; then :
23094
23095 else
23096   ac_cv_search_dlopen=no
23097 fi
23098 rm conftest.$ac_ext
23099 LIBS=$ac_func_search_save_LIBS
23100 fi
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23102 $as_echo "$ac_cv_search_dlopen" >&6; }
23103 ac_res=$ac_cv_search_dlopen
23104 if test "$ac_res" != no; then :
23105   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23106
23107 fi
23108
23109
23110 working_dir=`eval echo ${prefix}/var/bacula/working`
23111
23112 # Check whether --with-working-dir was given.
23113 if test "${with_working_dir+set}" = set; then :
23114   withval=$with_working_dir;
23115        if test "x$withval" != "xno" ; then
23116          working_dir=$withval
23117        fi
23118
23119
23120 fi
23121
23122
23123
23124
23125 archivedir=/tmp
23126
23127 # Check whether --with-archivedir was given.
23128 if test "${with_archivedir+set}" = set; then :
23129   withval=$with_archivedir;
23130        if test "x$withval" != "xno" ; then
23131           archivedir=$withval
23132        fi
23133
23134
23135 fi
23136
23137
23138
23139
23140 basename=`hostname`
23141
23142 # Check whether --with-basename was given.
23143 if test "${with_basename+set}" = set; then :
23144   withval=$with_basename;
23145        if test "x$withval" != "xno" ; then
23146           basename=$withval
23147        fi
23148
23149
23150 fi
23151
23152
23153
23154
23155 hostname=`uname -n | cut -d '.' -f 1`
23156 if test x${hostname} = x ; then
23157   hostname="localhost"
23158 fi
23159
23160 # Check whether --with-hostname was given.
23161 if test "${with_hostname+set}" = set; then :
23162   withval=$with_hostname;
23163        if test "x$withval" != "xno" ; then
23164          hostname=$withval
23165        fi
23166
23167
23168 fi
23169
23170
23171
23172
23173
23174 scriptdir=`eval echo ${sysconfdir}`
23175
23176 # Check whether --with-scriptdir was given.
23177 if test "${with_scriptdir+set}" = set; then :
23178   withval=$with_scriptdir;
23179        if test "x$withval" != "xno" ; then
23180           scriptdir=$withval
23181        fi
23182
23183
23184 fi
23185
23186
23187
23188
23189
23190 bsrdir=/tmp
23191
23192 # Check whether --with-bsrdir was given.
23193 if test "${with_bsrdir+set}" = set; then :
23194   withval=$with_bsrdir;
23195        if test "x$withval" != "xno" ; then
23196           bsrdir=$withval
23197        fi
23198
23199
23200 fi
23201
23202
23203
23204
23205 logdir=/tmp
23206
23207 # Check whether --with-logdir was given.
23208 if test "${with_logdir+set}" = set; then :
23209   withval=$with_logdir;
23210        if test "x$withval" != "xno" ; then
23211           logdir=$withval
23212        fi
23213
23214
23215 fi
23216
23217
23218
23219
23220
23221 # ------------------------------------------
23222 # Where to place plugindir (plugin files)
23223 # ------------------------------------------
23224 plugindir=`eval echo ${libdir}`
23225
23226 # Check whether --with-plugindir was given.
23227 if test "${with_plugindir+set}" = set; then :
23228   withval=$with_plugindir;
23229        if test "x$withval" != "xno" ; then
23230           plugindir=$withval
23231        fi
23232
23233
23234 fi
23235
23236
23237
23238
23239 dump_email=root@localhost
23240
23241 # Check whether --with-dump-email was given.
23242 if test "${with_dump_email+set}" = set; then :
23243   withval=$with_dump_email;
23244        if test "x$withval" != "xno" ; then
23245           dump_email=$withval
23246        fi
23247
23248
23249 fi
23250
23251
23252
23253
23254 job_email=root@localhost
23255
23256 # Check whether --with-job-email was given.
23257 if test "${with_job_email+set}" = set; then :
23258   withval=$with_job_email;
23259        if test "x$withval" != "xno" ; then
23260           job_email=$withval
23261        fi
23262
23263
23264 fi
23265
23266
23267
23268
23269 smtp_host=localhost
23270
23271 # Check whether --with-smtp_host was given.
23272 if test "${with_smtp_host+set}" = set; then :
23273   withval=$with_smtp_host;
23274        if test "x$withval" != "xno" ; then
23275           smtp_host=$withval
23276        fi
23277
23278
23279 fi
23280
23281
23282
23283
23284 piddir=/var/run
23285
23286 # Check whether --with-pid-dir was given.
23287 if test "${with_pid_dir+set}" = set; then :
23288   withval=$with_pid_dir;
23289        if test "x$withval" != "xno" ; then
23290           piddir=$withval
23291        fi
23292
23293
23294 fi
23295
23296
23297 cat >>confdefs.h <<_ACEOF
23298 #define _PATH_BACULA_PIDDIR "$piddir"
23299 _ACEOF
23300
23301
23302
23303 subsysdir=/var/run/subsys
23304 if test -d /var/run/subsys; then
23305    subsysdir=/var/run/subsys
23306 elif test -d /var/lock/subsys; then
23307    subsysdir=/var/lock/subsys
23308 else
23309    subsysdir=/var/run/subsys
23310 fi
23311
23312 # Check whether --with-subsys-dir was given.
23313 if test "${with_subsys_dir+set}" = set; then :
23314   withval=$with_subsys_dir;
23315        if test "x$withval" != "xno" ; then
23316           subsysdir=$withval
23317        fi
23318
23319
23320 fi
23321
23322
23323
23324
23325 baseport=9101
23326
23327 # Check whether --with-baseport was given.
23328 if test "${with_baseport+set}" = set; then :
23329   withval=$with_baseport;
23330        if test "x$withval" != "xno" ; then
23331           baseport=$withval
23332        fi
23333
23334
23335 fi
23336
23337
23338
23339 dir_port=`expr $baseport`
23340 fd_port=`expr $baseport + 1`
23341 sd_port=`expr $fd_port + 1`
23342
23343
23344
23345
23346
23347 dir_password=
23348
23349 # Check whether --with-dir-password was given.
23350 if test "${with_dir_password+set}" = set; then :
23351   withval=$with_dir_password;
23352        if test "x$withval" != "xno" ; then
23353           dir_password=$withval
23354        fi
23355
23356
23357 fi
23358
23359
23360 if test "x$dir_password" = "x" ; then
23361    if test "x$OPENSSL" = "xnone" ; then
23362       key=`autoconf/randpass 33`
23363    else
23364       key=`openssl rand -base64 33`
23365    fi
23366    dir_password=$key
23367 fi
23368
23369 fd_password=
23370
23371 # Check whether --with-fd-password was given.
23372 if test "${with_fd_password+set}" = set; then :
23373   withval=$with_fd_password;
23374        if test "x$withval" != "xno" ; then
23375           fd_password=$withval
23376        fi
23377
23378
23379 fi
23380
23381
23382 if test "x$fd_password" = "x" ; then
23383    if test "x$OPENSSL" = "xnone" ; then
23384       key=`autoconf/randpass 37`
23385    else
23386       key=`openssl rand -base64 33`
23387    fi
23388    fd_password=$key
23389 fi
23390
23391 sd_password=
23392
23393 # Check whether --with-sd-password was given.
23394 if test "${with_sd_password+set}" = set; then :
23395   withval=$with_sd_password;
23396        if test "x$withval" != "xno" ; then
23397           sd_password=$withval
23398        fi
23399
23400
23401 fi
23402
23403
23404 if test "x$sd_password" = "x" ; then
23405    if test "x$OPENSSL" = "xnone" ; then
23406       key=`autoconf/randpass 41`
23407    else
23408       key=`openssl rand -base64 33`
23409    fi
23410    sd_password=$key
23411 fi
23412
23413 mon_dir_password=
23414
23415 # Check whether --with-mon-dir-password was given.
23416 if test "${with_mon_dir_password+set}" = set; then :
23417   withval=$with_mon_dir_password;
23418        if test "x$withval" != "xno" ; then
23419           mon_dir_password=$withval
23420        fi
23421
23422
23423 fi
23424
23425
23426 if test "x$mon_dir_password" = "x" ; then
23427    if test "x$OPENSSL" = "xnone" ; then
23428       key=`autoconf/randpass 33`
23429    else
23430       key=`openssl rand -base64 33`
23431    fi
23432    mon_dir_password=$key
23433 fi
23434
23435 mon_fd_password=
23436
23437 # Check whether --with-mon-fd-password was given.
23438 if test "${with_mon_fd_password+set}" = set; then :
23439   withval=$with_mon_fd_password;
23440        if test "x$withval" != "xno" ; then
23441           mon_fd_password=$withval
23442        fi
23443
23444
23445 fi
23446
23447
23448 if test "x$mon_fd_password" = "x" ; then
23449    if test "x$OPENSSL" = "xnone" ; then
23450       key=`autoconf/randpass 37`
23451    else
23452       key=`openssl rand -base64 33`
23453    fi
23454    mon_fd_password=$key
23455 fi
23456
23457 mon_sd_password=
23458
23459 # Check whether --with-mon-sd-password was given.
23460 if test "${with_mon_sd_password+set}" = set; then :
23461   withval=$with_mon_sd_password;
23462        if test "x$withval" != "xno" ; then
23463           mon_sd_password=$withval
23464        fi
23465
23466
23467 fi
23468
23469
23470 if test "x$mon_sd_password" = "x" ; then
23471    if test "x$OPENSSL" = "xnone" ; then
23472       key=`autoconf/randpass 41`
23473    else
23474       key=`openssl rand -base64 33`
23475    fi
23476    mon_sd_password=$key
23477 fi
23478
23479
23480
23481
23482
23483
23484
23485
23486 db_name=bacula
23487
23488 # Check whether --with-db_name was given.
23489 if test "${with_db_name+set}" = set; then :
23490   withval=$with_db_name;
23491        if test "x$withval" != "x" ; then
23492           db_name=$withval
23493        fi
23494
23495
23496 fi
23497
23498
23499
23500 db_user=bacula
23501
23502 # Check whether --with-db_user was given.
23503 if test "${with_db_user+set}" = set; then :
23504   withval=$with_db_user;
23505        if test "x$withval" != "x" ; then
23506           db_user=$withval
23507        fi
23508
23509
23510 fi
23511
23512
23513
23514 db_password=
23515
23516 # Check whether --with-db_password was given.
23517 if test "${with_db_password+set}" = set; then :
23518   withval=$with_db_password;
23519        if test "x$withval" != "x" ; then
23520           db_password=$withval
23521        fi
23522
23523
23524 fi
23525
23526
23527
23528 db_port=" "
23529
23530 # Check whether --with-db_port was given.
23531 if test "${with_db_port+set}" = set; then :
23532   withval=$with_db_port;
23533        if test "x$withval" != "x" ; then
23534           db_port=$withval
23535        fi
23536
23537
23538 fi
23539
23540
23541
23542 #
23543 # Handle users and groups for each daemon
23544 #
23545 dir_user=
23546
23547 # Check whether --with-dir_user was given.
23548 if test "${with_dir_user+set}" = set; then :
23549   withval=$with_dir_user;
23550        if test "x$withval" != "x" ; then
23551            dir_user=$withval
23552        fi
23553
23554
23555 fi
23556
23557
23558 dir_group=
23559
23560 # Check whether --with-dir_group was given.
23561 if test "${with_dir_group+set}" = set; then :
23562   withval=$with_dir_group;
23563        if test "x$withval" != "x" ; then
23564           dir_group=$withval
23565        fi
23566
23567
23568 fi
23569
23570
23571 sd_user=
23572
23573 # Check whether --with-sd_user was given.
23574 if test "${with_sd_user+set}" = set; then :
23575   withval=$with_sd_user;
23576        if test "x$withval" != "x" ; then
23577           sd_user=$withval
23578        fi
23579
23580
23581 fi
23582
23583
23584 sd_group=
23585
23586 # Check whether --with-sd_group was given.
23587 if test "${with_sd_group+set}" = set; then :
23588   withval=$with_sd_group;
23589        if test "x$withval" != "x" ; then
23590           sd_group=$withval
23591        fi
23592
23593
23594 fi
23595
23596
23597 fd_user=
23598
23599 # Check whether --with-fd_user was given.
23600 if test "${with_fd_user+set}" = set; then :
23601   withval=$with_fd_user;
23602        if test "x$withval" != "x" ; then
23603           fd_user=$withval
23604        fi
23605
23606
23607 fi
23608
23609
23610 fd_group=
23611
23612 # Check whether --with-fd_group was given.
23613 if test "${with_fd_group+set}" = set; then :
23614   withval=$with_fd_group;
23615        if test "x$withval" != "x" ; then
23616           fd_group=$withval
23617        fi
23618
23619
23620 fi
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630 SBINPERM=0750
23631
23632 # Check whether --with-sbin-perm was given.
23633 if test "${with_sbin_perm+set}" = set; then :
23634   withval=$with_sbin_perm;
23635        if test "x$withval" != "x" ; then
23636           SBINPERM=$withval
23637        fi
23638
23639
23640 fi
23641
23642
23643
23644
23645 support_batch_insert=yes
23646 # Check whether --enable-batch-insert was given.
23647 if test "${enable_batch_insert+set}" = set; then :
23648   enableval=$enable_batch_insert;
23649        if test x$enableval = xno; then
23650           support_batch_insert=no
23651        fi
23652
23653
23654 fi
23655
23656
23657 if test x$support_batch_insert = xyes; then
23658
23659 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23660
23661 fi
23662
23663
23664 uncomment_dbi="#"
23665
23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23668 $as_echo_n "checking for PostgreSQL support... " >&6; }
23669
23670 # Check whether --with-postgresql was given.
23671 if test "${with_postgresql+set}" = set; then :
23672   withval=$with_postgresql;
23673   if test "$withval" != "no"; then
23674       if test "$withval" = "yes"; then
23675           PG_CONFIG=`which pg_config 2>/dev/null`
23676           if test -n "$PG_CONFIG"; then
23677               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23678               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23679               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23680           elif test -f /usr/local/include/libpq-fe.h; then
23681               POSTGRESQL_INCDIR=/usr/local/include
23682               if test -d /usr/local/lib64; then
23683                  POSTGRESQL_LIBDIR=/usr/local/lib64
23684               else
23685                  POSTGRESQL_LIBDIR=/usr/local/lib
23686               fi
23687               POSTGRESQL_BINDIR=/usr/local/bin
23688           elif test -f /usr/include/libpq-fe.h; then
23689               POSTGRESQL_INCDIR=/usr/include
23690               if test -d /usr/lib64; then
23691                  POSTGRESQL_LIBDIR=/usr/lib64
23692               else
23693                  POSTGRESQL_LIBDIR=/usr/lib
23694               fi
23695               POSTGRESQL_BINDIR=/usr/bin
23696           elif test -f /usr/include/pgsql/libpq-fe.h; then
23697               POSTGRESQL_INCDIR=/usr/include/pgsql
23698               if test -d /usr/lib64/pgsql; then
23699                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23700               else
23701                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23702               fi
23703               POSTGRESQL_BINDIR=/usr/bin
23704           elif test -f /usr/include/postgresql/libpq-fe.h; then
23705               POSTGRESQL_INCDIR=/usr/include/postgresql
23706               if test -d /usr/lib64/postgresql; then
23707                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23708               else
23709                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23710               fi
23711               POSTGRESQL_BINDIR=/usr/bin
23712           else
23713               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23716           fi
23717       elif test -f $withval/include/libpq-fe.h; then
23718           POSTGRESQL_INCDIR=$withval/include
23719           POSTGRESQL_LIBDIR=$withval/lib
23720           POSTGRESQL_BINDIR=$withval/bin
23721       elif test -f $withval/include/postgresql/libpq-fe.h; then
23722           POSTGRESQL_INCDIR=$withval/include/postgresql
23723           if test -d $withval/lib64; then
23724               POSTGRESQL_LIBDIR=$withval/lib64
23725           else
23726               POSTGRESQL_LIBDIR=$withval/lib
23727           fi
23728           POSTGRESQL_BINDIR=$withval/bin
23729       else
23730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23731 $as_echo "no" >&6; }
23732           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23733       fi
23734
23735 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23736
23737      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23738 $as_echo "yes" >&6; }
23739
23740      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23741      if test x$use_libtool != xno; then
23742         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23743      else
23744         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23745      fi
23746      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23747 if test "x$ac_cv_func_crypt" = x""yes; then :
23748
23749 else
23750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23751 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23752 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23753   $as_echo_n "(cached) " >&6
23754 else
23755   ac_check_lib_save_LIBS=$LIBS
23756 LIBS="-lcrypt  $LIBS"
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h.  */
23759
23760 /* Override any GCC internal prototype to avoid an error.
23761    Use char because int might match the return type of a GCC
23762    builtin and then its argument prototype would still apply.  */
23763 #ifdef __cplusplus
23764 extern "C"
23765 #endif
23766 char crypt ();
23767 int
23768 main ()
23769 {
23770 return crypt ();
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 if ac_fn_c_try_link "$LINENO"; then :
23776   ac_cv_lib_crypt_crypt=yes
23777 else
23778   ac_cv_lib_crypt_crypt=no
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext \
23781     conftest$ac_exeext conftest.$ac_ext
23782 LIBS=$ac_check_lib_save_LIBS
23783 fi
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23785 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23786 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23787   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23788 fi
23789
23790 fi
23791
23792      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23793      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23794
23795      if test -z "${db_backends}"; then
23796          db_backends="PostgreSQL"
23797      else
23798          db_backends="${db_backends} PostgreSQL"
23799      fi
23800      if test -z "${DB_BACKENDS}"; then
23801          DB_BACKENDS="postgresql"
23802      else
23803          DB_BACKENDS="${DB_BACKENDS} postgresql"
23804      fi
23805
23806                     if test "x$support_batch_insert" = "xyes"; then
23807                   saved_LDFLAGS="${LDFLAGS}"
23808          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23809          saved_LIBS="${LIBS}"
23810          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23811             LIBS="${saved_LIBS} -lcrypt"
23812          fi
23813
23814          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23815 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23816 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lpq  $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h.  */
23823
23824 /* Override any GCC internal prototype to avoid an error.
23825    Use char because int might match the return type of a GCC
23826    builtin and then its argument prototype would still apply.  */
23827 #ifdef __cplusplus
23828 extern "C"
23829 #endif
23830 char PQisthreadsafe ();
23831 int
23832 main ()
23833 {
23834 return PQisthreadsafe ();
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 if ac_fn_c_try_link "$LINENO"; then :
23840   ac_cv_lib_pq_PQisthreadsafe=yes
23841 else
23842   ac_cv_lib_pq_PQisthreadsafe=no
23843 fi
23844 rm -f core conftest.err conftest.$ac_objext \
23845     conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23849 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23850 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23851
23852 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23853
23854 fi
23855
23856          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23857 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23858 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861   ac_check_lib_save_LIBS=$LIBS
23862 LIBS="-lpq  $LIBS"
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865
23866 /* Override any GCC internal prototype to avoid an error.
23867    Use char because int might match the return type of a GCC
23868    builtin and then its argument prototype would still apply.  */
23869 #ifdef __cplusplus
23870 extern "C"
23871 #endif
23872 char PQputCopyData ();
23873 int
23874 main ()
23875 {
23876 return PQputCopyData ();
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 if ac_fn_c_try_link "$LINENO"; then :
23882   ac_cv_lib_pq_PQputCopyData=yes
23883 else
23884   ac_cv_lib_pq_PQputCopyData=no
23885 fi
23886 rm -f core conftest.err conftest.$ac_objext \
23887     conftest$ac_exeext conftest.$ac_ext
23888 LIBS=$ac_check_lib_save_LIBS
23889 fi
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23891 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23892 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23893
23894 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23895
23896 fi
23897
23898          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23899              if test $support_batch_insert = yes ; then
23900
23901 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23902
23903                  if test -z "${batch_insert_db_backends}"; then
23904                      batch_insert_db_backends="PostgreSQL"
23905                  else
23906                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23907                  fi
23908              fi
23909          fi
23910
23911          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23912          then
23913              echo "WARNING: Your PostgreSQL client library is too old to detect "
23914              echo "if it was compiled with --enable-thread-safety, consider to "
23915              echo "upgrade it in order to avoid problems with Batch insert mode"
23916          fi
23917
23918                   LDFLAGS="${saved_LDFLAGS}"
23919          LIBS="${saved_LIBS}"
23920      fi
23921   else
23922      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23923 $as_echo "no" >&6; }
23924   fi
23925
23926 else
23927
23928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23930
23931 fi
23932
23933
23934
23935
23936
23937
23938
23939
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23941 $as_echo_n "checking for MySQL support... " >&6; }
23942
23943 # Check whether --with-mysql was given.
23944 if test "${with_mysql+set}" = set; then :
23945   withval=$with_mysql;
23946   if test "$withval" != "no"; then
23947         if test "$withval" = "yes"; then
23948            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23949                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23950                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23951                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23952                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23953                    else
23954                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23955                    fi
23956                    MYSQL_BINDIR=/usr/local/mysql/bin
23957            elif test -f /usr/include/mysql/mysql.h; then
23958                    MYSQL_INCDIR=/usr/include/mysql
23959                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23960                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23961                            MYSQL_LIBDIR=/usr/lib64/mysql
23962                    elif test -f /usr/lib64/libmysqlclient_r.a \
23963                         -o -f /usr/lib64/libmysqlclient_r.so; then
23964                            MYSQL_LIBDIR=/usr/lib64
23965                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23966                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23967                            MYSQL_LIBDIR=/usr/lib/mysql
23968                    else
23969                            MYSQL_LIBDIR=/usr/lib
23970                    fi
23971                    MYSQL_BINDIR=/usr/bin
23972            elif test -f /usr/include/mysql.h; then
23973                    MYSQL_INCDIR=/usr/include
23974                    if test -f /usr/lib64/libmysqlclient_r.a \
23975                         -o -f /usr/lib64/libmysqlclient_r.so; then
23976                            MYSQL_LIBDIR=/usr/lib64
23977                    else
23978                            MYSQL_LIBDIR=/usr/lib
23979                    fi
23980                    MYSQL_BINDIR=/usr/bin
23981            elif test -f /usr/local/include/mysql/mysql.h; then
23982                    MYSQL_INCDIR=/usr/local/include/mysql
23983                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23984                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23985                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23986                    else
23987                            MYSQL_LIBDIR=/usr/local/lib/mysql
23988                    fi
23989                    MYSQL_BINDIR=/usr/local/bin
23990            elif test -f /usr/local/include/mysql.h; then
23991                    MYSQL_INCDIR=/usr/local/include
23992                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23993                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23994                            MYSQL_LIBDIR=/usr/local/lib64
23995                    else
23996                            MYSQL_LIBDIR=/usr/local/lib
23997                    fi
23998                    MYSQL_BINDIR=/usr/local/bin
23999            else
24000               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24001 $as_echo "no" >&6; }
24002               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
24003            fi
24004         else
24005            if test -f $withval/include/mysql/mysql.h; then
24006               MYSQL_INCDIR=$withval/include/mysql
24007               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24008                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24009                  MYSQL_LIBDIR=$withval/lib64/mysql
24010               elif test -f $withval/lib64/libmysqlclient_r.a \
24011                    -o -f $withval/lib64/libmysqlclient_r.so; then
24012                  MYSQL_LIBDIR=$withval/lib64
24013               elif test -f $withval/lib/libmysqlclient_r.a \
24014                    -o -f $withval/lib/libmysqlclient_r.so; then
24015                  MYSQL_LIBDIR=$withval/lib
24016               else
24017                  MYSQL_LIBDIR=$withval/lib/mysql
24018               fi
24019               MYSQL_BINDIR=$withval/bin
24020            elif test -f $withval/include/mysql.h; then
24021               MYSQL_INCDIR=$withval/include
24022               if test -f $withval/lib64/libmysqlclient_r.a \
24023                    -o -f $withval/lib64/libmysqlclient_r.so; then
24024                  MYSQL_LIBDIR=$withval/lib64
24025               else
24026                  MYSQL_LIBDIR=$withval/lib
24027               fi
24028               MYSQL_BINDIR=$withval/bin
24029            else
24030               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 $as_echo "no" >&6; }
24032               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24033            fi
24034         fi
24035      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24036      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24037           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24038         if test x$use_libtool != xno; then
24039            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24040         else
24041            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24042         fi
24043
24044 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
24045
24046         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24047      fi
24048      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24049
24050
24051 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24052
24053      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24054 $as_echo "yes" >&6; }
24055
24056      if test -z "${db_backends}" ; then
24057          db_backends="MySQL"
24058      else
24059          db_backends="${db_backends} MySQL"
24060      fi
24061      if test -z "${DB_BACKENDS}" ; then
24062          DB_BACKENDS="mysql"
24063      else
24064          DB_BACKENDS="${DB_BACKENDS} mysql"
24065      fi
24066
24067                     if test "x$support_batch_insert" = "xyes"; then
24068                   saved_LDFLAGS="${LDFLAGS}"
24069          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24070          saved_LIBS="${LIBS}"
24071          LIBS="${saved_LIBS} -lz"
24072
24073          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24074 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24075 if test "${ac_cv_lib_mysqlclient_r_mysql_thread_safe+set}" = set; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078   ac_check_lib_save_LIBS=$LIBS
24079 LIBS="-lmysqlclient_r  $LIBS"
24080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h.  */
24082
24083 /* Override any GCC internal prototype to avoid an error.
24084    Use char because int might match the return type of a GCC
24085    builtin and then its argument prototype would still apply.  */
24086 #ifdef __cplusplus
24087 extern "C"
24088 #endif
24089 char mysql_thread_safe ();
24090 int
24091 main ()
24092 {
24093 return mysql_thread_safe ();
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 if ac_fn_c_try_link "$LINENO"; then :
24099   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24100 else
24101   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24102 fi
24103 rm -f core conftest.err conftest.$ac_objext \
24104     conftest$ac_exeext conftest.$ac_ext
24105 LIBS=$ac_check_lib_save_LIBS
24106 fi
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24108 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24109 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = x""yes; then :
24110
24111 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24112
24113 fi
24114
24115          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24116              if test -z "${batch_insert_db_backends}"; then
24117                  batch_insert_db_backends="MySQL"
24118              else
24119                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24120              fi
24121          fi
24122
24123                   LDFLAGS="${saved_LDFLAGS}"
24124          LIBS="${saved_LIBS}"
24125      fi
24126   else
24127      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24128 $as_echo "no" >&6; }
24129   fi
24130
24131 else
24132
24133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24134 $as_echo "no" >&6; }
24135
24136 fi
24137
24138
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24140 $as_echo_n "checking for MySQL embedded support... " >&6; }
24141
24142 # Check whether --with-embedded-mysql was given.
24143 if test "${with_embedded_mysql+set}" = set; then :
24144   withval=$with_embedded_mysql;
24145   if test "$withval" != "no"; then
24146         if test "$withval" = "yes"; then
24147                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24148                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24149                         if test -d /usr/local/mysql/lib64/mysql; then
24150                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24151                         else
24152                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24153                         fi
24154                         MYSQL_BINDIR=/usr/local/mysql/bin
24155                 elif test -f /usr/include/mysql/mysql.h; then
24156                         MYSQL_INCDIR=/usr/include/mysql
24157                         if test -d /usr/lib64/mysql; then
24158                                 MYSQL_LIBDIR=/usr/lib64/mysql
24159                         else
24160                                 MYSQL_LIBDIR=/usr/lib/mysql
24161                         fi
24162                         MYSQL_BINDIR=/usr/bin
24163                 elif test -f /usr/include/mysql.h; then
24164                         MYSQL_INCDIR=/usr/include
24165                         if test -d /usr/lib64; then
24166                                 MYSQL_LIBDIR=/usr/lib64
24167                         else
24168                                 MYSQL_LIBDIR=/usr/lib
24169                         fi
24170                         MYSQL_BINDIR=/usr/bin
24171                 elif test -f /usr/local/include/mysql/mysql.h; then
24172                         MYSQL_INCDIR=/usr/local/include/mysql
24173                         if test -d /usr/local/lib64/mysql; then
24174                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24175                         else
24176                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24177                         fi
24178                         MYSQL_BINDIR=/usr/local/bin
24179                 elif test -f /usr/local/include/mysql.h; then
24180                         MYSQL_INCDIR=/usr/local/include
24181                         if test -d /usr/local/lib64; then
24182                                 MYSQL_LIBDIR=/usr/local/lib64
24183                         else
24184                                 MYSQL_LIBDIR=/usr/local/lib
24185                         fi
24186                         MYSQL_BINDIR=/usr/local/bin
24187                 else
24188                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24189 $as_echo "no" >&6; }
24190                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
24191                 fi
24192         else
24193                 if test -f $withval/include/mysql/mysql.h; then
24194                         MYSQL_INCDIR=$withval/include/mysql
24195                         if test -d $withval/lib64/mysql; then
24196                                 MYSQL_LIBDIR=$withval/lib64/mysql
24197                         else
24198                                 MYSQL_LIBDIR=$withval/lib/mysql
24199                         fi
24200                         MYSQL_BINDIR=$withval/bin
24201                 elif test -f $withval/include/mysql.h; then
24202                         MYSQL_INCDIR=$withval/include
24203                         if test -d $withval/lib64; then
24204                                 MYSQL_LIBDIR=$withval/lib64
24205                         else
24206                                 MYSQL_LIBDIR=$withval/lib
24207                         fi
24208                         MYSQL_BINDIR=$withval/bin
24209                 else
24210                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24211 $as_echo "no" >&6; }
24212                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24213                 fi
24214         fi
24215      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24216      if test x$use_libtool != xno; then
24217         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24218      else
24219         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24220      fi
24221      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24222      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24223
24224
24225 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24226
24227
24228 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24229
24230      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24231 $as_echo "yes" >&6; }
24232
24233      if test -z "${db_backends}"; then
24234          db_backends="MySQL"
24235      else
24236          db_backends="${db_backends} MySQL"
24237      fi
24238      if test -z "${DB_BACKENDS}"; then
24239          DB_BACKENDS="mysql"
24240      else
24241          DB_BACKENDS="${DB_BACKENDS} mysql"
24242      fi
24243
24244                     if test "x$support_batch_insert" = "xyes"; then
24245                   saved_LDFLAGS="${LDFLAGS}"
24246          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24247          saved_LIBS="${LIBS}"
24248          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24249
24250          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24251 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24252 if test "${ac_cv_lib_mysqlclient_r_mysql_thread_safe+set}" = set; then :
24253   $as_echo_n "(cached) " >&6
24254 else
24255   ac_check_lib_save_LIBS=$LIBS
24256 LIBS="-lmysqlclient_r  $LIBS"
24257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24258 /* end confdefs.h.  */
24259
24260 /* Override any GCC internal prototype to avoid an error.
24261    Use char because int might match the return type of a GCC
24262    builtin and then its argument prototype would still apply.  */
24263 #ifdef __cplusplus
24264 extern "C"
24265 #endif
24266 char mysql_thread_safe ();
24267 int
24268 main ()
24269 {
24270 return mysql_thread_safe ();
24271   ;
24272   return 0;
24273 }
24274 _ACEOF
24275 if ac_fn_c_try_link "$LINENO"; then :
24276   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24277 else
24278   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24279 fi
24280 rm -f core conftest.err conftest.$ac_objext \
24281     conftest$ac_exeext conftest.$ac_ext
24282 LIBS=$ac_check_lib_save_LIBS
24283 fi
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24285 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24286 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = x""yes; then :
24287
24288 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24289
24290 fi
24291
24292          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24293              if test -z "${batch_insert_db_backends}"; then
24294                  batch_insert_db_backends="MySQL"
24295              else
24296                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24297              fi
24298          fi
24299
24300                   LDFLAGS="${saved_LDFLAGS}"
24301          LIBS="${saved_LIBS}"
24302      fi
24303   else
24304      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24305 $as_echo "no" >&6; }
24306   fi
24307
24308 else
24309
24310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311 $as_echo "no" >&6; }
24312
24313 fi
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24324 $as_echo_n "checking for SQLite3 support... " >&6; }
24325
24326 # Check whether --with-sqlite3 was given.
24327 if test "${with_sqlite3+set}" = set; then :
24328   withval=$with_sqlite3;
24329   if test "$withval" != "no"; then
24330      if test "$withval" = "yes"; then
24331         if test -f /usr/local/include/sqlite3.h; then
24332            SQLITE_INCDIR=/usr/local/include
24333            if test -d /usr/local/lib64; then
24334               SQLITE_LIBDIR=/usr/local/lib64
24335            else
24336               SQLITE_LIBDIR=/usr/local/lib
24337            fi
24338            SQLITE_BINDIR=/usr/local/bin
24339         elif test -f /usr/include/sqlite3.h; then
24340            SQLITE_INCDIR=/usr/include
24341            if test -d /usr/lib64; then
24342               SQLITE_LIBDIR=/usr/lib64
24343            else
24344               SQLITE_LIBDIR=/usr/lib
24345            fi
24346            SQLITE_BINDIR=/usr/bin
24347         elif test -f $prefix/include/sqlite3.h; then
24348            SQLITE_INCDIR=$prefix/include
24349            if test -d $prefix/lib64; then
24350               SQLITE_LIBDIR=$prefix/lib64
24351            else
24352               SQLITE_LIBDIR=$prefix/lib
24353            fi
24354            SQLITE_BINDIR=$prefix/bin
24355         else
24356            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24357 $as_echo "no" >&6; }
24358            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24359         fi
24360      else
24361         if test -f $withval/sqlite3.h; then
24362            SQLITE_INCDIR=$withval
24363            SQLITE_LIBDIR=$withval
24364            SQLITE_BINDIR=$withval
24365         elif test -f $withval/include/sqlite3.h; then
24366            SQLITE_INCDIR=$withval/include
24367            if test -d $withval/lib64; then
24368               SQLITE_LIBDIR=$withval/lib64
24369            else
24370               SQLITE_LIBDIR=$withval/lib
24371            fi
24372            SQLITE_BINDIR=$withval/bin
24373         else
24374            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24377         fi
24378      fi
24379      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24380      if test x$use_libtool != xno; then
24381         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24382      else
24383         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24384      fi
24385      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24386      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24387
24388
24389 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24390
24391      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24392 $as_echo "yes" >&6; }
24393
24394      if test -z "${db_backends}"; then
24395          db_backends="SQLite3"
24396      else
24397          db_backends="${db_backends} SQLite3"
24398      fi
24399      if test -z "${DB_BACKENDS}"; then
24400          DB_BACKENDS="sqlite3"
24401      else
24402          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24403      fi
24404
24405                     if test "x$support_batch_insert" = "xyes"; then
24406                   saved_LDFLAGS="${LDFLAGS}"
24407          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24408
24409          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24410 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24411 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24412   $as_echo_n "(cached) " >&6
24413 else
24414   ac_check_lib_save_LIBS=$LIBS
24415 LIBS="-lsqlite3  $LIBS"
24416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417 /* end confdefs.h.  */
24418
24419 /* Override any GCC internal prototype to avoid an error.
24420    Use char because int might match the return type of a GCC
24421    builtin and then its argument prototype would still apply.  */
24422 #ifdef __cplusplus
24423 extern "C"
24424 #endif
24425 char sqlite3_threadsafe ();
24426 int
24427 main ()
24428 {
24429 return sqlite3_threadsafe ();
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 if ac_fn_c_try_link "$LINENO"; then :
24435   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24436 else
24437   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24438 fi
24439 rm -f core conftest.err conftest.$ac_objext \
24440     conftest$ac_exeext conftest.$ac_ext
24441 LIBS=$ac_check_lib_save_LIBS
24442 fi
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24444 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24445 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24446
24447 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24448
24449 fi
24450
24451          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24452              if test -z "${batch_insert_db_backends}"; then
24453                  batch_insert_db_backends="SQLite3"
24454              else
24455                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24456              fi
24457          fi
24458
24459                   LDFLAGS="${saved_LDFLAGS}"
24460      fi
24461   else
24462      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24463 $as_echo "no" >&6; }
24464   fi
24465
24466 else
24467
24468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24469 $as_echo "no" >&6; }
24470
24471 fi
24472
24473
24474
24475
24476
24477
24478
24479 #BA_CHECK_INGRES_DB
24480
24481 #BA_CHECK_DBI_DB
24482
24483 #BA_CHECK_DBI_DRIVER
24484
24485 if test -z "${batch_insert_db_backends}"; then
24486    batch_insert_db_backends="None"
24487 fi
24488
24489 if test "x${db_backends}" = "x" ; then
24490    echo " "
24491    echo " "
24492    echo "You have not specified either --enable-client-only or one of the"
24493    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24494    echo "This is not permitted. Please reconfigure."
24495    echo " "
24496    echo "Aborting the configuration ..."
24497    echo " "
24498    echo " "
24499    exit 1
24500 fi
24501
24502 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24503    1)
24504       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24505       if test x$use_libtool = xno; then
24506          SHARED_CATALOG_TARGETS=""
24507       else
24508          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24509       fi
24510       ;;
24511    *)
24512                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24513
24514                         if test x$use_libtool = xno; then
24515          echo " "
24516          echo " "
24517          echo "You have specified two or more of the"
24518          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24519          echo "This is not permitted when not using libtool Please reconfigure."
24520          echo " "
24521          echo "Aborting the configuration ..."
24522          echo " "
24523          echo " "
24524          exit 1
24525       fi
24526
24527       SHARED_CATALOG_TARGETS=""
24528       for db_type in ${DB_BACKENDS}
24529       do
24530          if test -z "${SHARED_CATALOG_TARGETS}"; then
24531             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24532          else
24533             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24534          fi
24535       done
24536       ;;
24537 esac
24538
24539 if test x$use_libtool = xyes; then
24540    DB_LIBS=""
24541 fi
24542
24543
24544
24545
24546
24547
24548
24549 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24550
24551
24552 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24553    if test -z "$CCOPTS"; then
24554       CCOPTS='-g -O2 -Wall'
24555    fi
24556    CFLAGS="$CCOPTS"
24557 fi
24558
24559
24560
24561 largefile_support="no"
24562
24563    # Check whether --enable-largefile was given.
24564 if test "${enable_largefile+set}" = set; then :
24565   enableval=$enable_largefile;
24566 fi
24567
24568    if test "$enable_largefile" != no; then
24569      if test -n "$ac_tool_prefix"; then
24570   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24571 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24573 $as_echo_n "checking for $ac_word... " >&6; }
24574 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24575   $as_echo_n "(cached) " >&6
24576 else
24577   if test -n "$GETCONF"; then
24578   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24579 else
24580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24581 for as_dir in $PATH
24582 do
24583   IFS=$as_save_IFS
24584   test -z "$as_dir" && as_dir=.
24585     for ac_exec_ext in '' $ac_executable_extensions; do
24586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24587     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24589     break 2
24590   fi
24591 done
24592   done
24593 IFS=$as_save_IFS
24594
24595 fi
24596 fi
24597 GETCONF=$ac_cv_prog_GETCONF
24598 if test -n "$GETCONF"; then
24599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24600 $as_echo "$GETCONF" >&6; }
24601 else
24602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24603 $as_echo "no" >&6; }
24604 fi
24605
24606
24607 fi
24608 if test -z "$ac_cv_prog_GETCONF"; then
24609   ac_ct_GETCONF=$GETCONF
24610   # Extract the first word of "getconf", so it can be a program name with args.
24611 set dummy getconf; ac_word=$2
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24613 $as_echo_n "checking for $ac_word... " >&6; }
24614 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24615   $as_echo_n "(cached) " >&6
24616 else
24617   if test -n "$ac_ct_GETCONF"; then
24618   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24619 else
24620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24621 for as_dir in $PATH
24622 do
24623   IFS=$as_save_IFS
24624   test -z "$as_dir" && as_dir=.
24625     for ac_exec_ext in '' $ac_executable_extensions; do
24626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24627     ac_cv_prog_ac_ct_GETCONF="getconf"
24628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24629     break 2
24630   fi
24631 done
24632   done
24633 IFS=$as_save_IFS
24634
24635 fi
24636 fi
24637 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24638 if test -n "$ac_ct_GETCONF"; then
24639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24640 $as_echo "$ac_ct_GETCONF" >&6; }
24641 else
24642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24643 $as_echo "no" >&6; }
24644 fi
24645
24646   if test "x$ac_ct_GETCONF" = x; then
24647     GETCONF=""
24648   else
24649     case $cross_compiling:$ac_tool_warned in
24650 yes:)
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24653 ac_tool_warned=yes ;;
24654 esac
24655     GETCONF=$ac_ct_GETCONF
24656   fi
24657 else
24658   GETCONF="$ac_cv_prog_GETCONF"
24659 fi
24660
24661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24662 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24663 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24664   $as_echo_n "(cached) " >&6
24665 else
24666   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24667         ac_cv_sys_largefile_CFLAGS=no
24668         case "$host_os" in
24669            # IRIX 6.2 and later require cc -n32.
24670            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24671              if test "$GCC" != yes; then
24672                ac_cv_sys_largefile_CFLAGS=-n32
24673              fi
24674              ac_save_CC="$CC"
24675              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24676              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677 /* end confdefs.h.  */
24678
24679 int
24680 main ()
24681 {
24682
24683   ;
24684   return 0;
24685 }
24686 _ACEOF
24687 if ac_fn_c_try_link "$LINENO"; then :
24688
24689 else
24690   ac_cv_sys_largefile_CFLAGS=no
24691 fi
24692 rm -f core conftest.err conftest.$ac_objext \
24693     conftest$ac_exeext conftest.$ac_ext
24694              CC="$ac_save_CC"
24695            esac
24696       }
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24699 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24700      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24701 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24702 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24703   $as_echo_n "(cached) " >&6
24704 else
24705   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24706         ac_cv_sys_largefile_LDFLAGS=no
24707
24708       }
24709 fi
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24711 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24712      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24713 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24714 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24715   $as_echo_n "(cached) " >&6
24716 else
24717   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24718         ac_cv_sys_largefile_LIBS=no
24719
24720       }
24721 fi
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24723 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24724
24725      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24726        case "$ac_flag" in
24727        no) ;;
24728        -D_FILE_OFFSET_BITS=*) ;;
24729        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24730        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24731        -D?* | -I?*)
24732          case "$ac_flag" in
24733    no) ;;
24734    ?*)
24735      case "$CPPFLAGS" in
24736      '') CPPFLAGS="$ac_flag" ;;
24737      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24738      esac ;;
24739    esac ;;
24740        *)
24741          case "$ac_flag" in
24742    no) ;;
24743    ?*)
24744      case "$CFLAGS" in
24745      '') CFLAGS="$ac_flag" ;;
24746      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24747      esac ;;
24748    esac ;;
24749        esac
24750      done
24751      case "$ac_cv_sys_largefile_LDFLAGS" in
24752    no) ;;
24753    ?*)
24754      case "$LDFLAGS" in
24755      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24756      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24757      esac ;;
24758    esac
24759      case "$ac_cv_sys_largefile_LIBS" in
24760    no) ;;
24761    ?*)
24762      case "$LIBS" in
24763      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24764      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24765      esac ;;
24766    esac
24767      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24768 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24769 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24770   $as_echo_n "(cached) " >&6
24771 else
24772   ac_cv_sys_file_offset_bits=no
24773       ac_cv_sys_file_offset_bits=64
24774       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24775         case "$ac_flag" in
24776         -D_FILE_OFFSET_BITS)
24777           ac_cv_sys_file_offset_bits=1 ;;
24778         -D_FILE_OFFSET_BITS=*)
24779           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24780         esac
24781       done
24782
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24785 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24786    if test "$ac_cv_sys_file_offset_bits" != no; then
24787
24788 cat >>confdefs.h <<_ACEOF
24789 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24790 _ACEOF
24791
24792    fi
24793      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24794 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24795 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24796   $as_echo_n "(cached) " >&6
24797 else
24798   ac_cv_sys_largefile_source=no
24799       ac_cv_sys_largefile_source=1
24800       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24801         case "$ac_flag" in
24802         -D_LARGEFILE_SOURCE)
24803           ac_cv_sys_largefile_source=1 ;;
24804         -D_LARGEFILE_SOURCE=*)
24805           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24806         esac
24807       done
24808
24809 fi
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24811 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24812    if test "$ac_cv_sys_largefile_source" != no; then
24813
24814 cat >>confdefs.h <<_ACEOF
24815 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24816 _ACEOF
24817
24818    fi
24819      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24820 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24821 if test "${ac_cv_sys_large_files+set}" = set; then :
24822   $as_echo_n "(cached) " >&6
24823 else
24824   ac_cv_sys_large_files=no
24825       ac_cv_sys_large_files=1
24826       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24827         case "$ac_flag" in
24828         -D_LARGE_FILES)
24829           ac_cv_sys_large_files=1 ;;
24830         -D_LARGE_FILES=*)
24831           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24832         esac
24833       done
24834
24835 fi
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24837 $as_echo "$ac_cv_sys_large_files" >&6; }
24838    if test "$ac_cv_sys_large_files" != no; then
24839
24840 cat >>confdefs.h <<_ACEOF
24841 #define _LARGE_FILES $ac_cv_sys_large_files
24842 _ACEOF
24843
24844    fi
24845    fi
24846
24847
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24849 $as_echo_n "checking for X... " >&6; }
24850
24851
24852 # Check whether --with-x was given.
24853 if test "${with_x+set}" = set; then :
24854   withval=$with_x;
24855 fi
24856
24857 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24858 if test "x$with_x" = xno; then
24859   # The user explicitly disabled X.
24860   have_x=disabled
24861 else
24862   case $x_includes,$x_libraries in #(
24863     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24864     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867   # One or both of the vars are not set, and there is no cached value.
24868 ac_x_includes=no ac_x_libraries=no
24869 rm -f -r conftest.dir
24870 if mkdir conftest.dir; then
24871   cd conftest.dir
24872   cat >Imakefile <<'_ACEOF'
24873 incroot:
24874         @echo incroot='${INCROOT}'
24875 usrlibdir:
24876         @echo usrlibdir='${USRLIBDIR}'
24877 libdir:
24878         @echo libdir='${LIBDIR}'
24879 _ACEOF
24880   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24881     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24882     for ac_var in incroot usrlibdir libdir; do
24883       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24884     done
24885     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24886     for ac_extension in a so sl dylib la dll; do
24887       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24888          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24889         ac_im_usrlibdir=$ac_im_libdir; break
24890       fi
24891     done
24892     # Screen out bogus values from the imake configuration.  They are
24893     # bogus both because they are the default anyway, and because
24894     # using them would break gcc on systems where it needs fixed includes.
24895     case $ac_im_incroot in
24896         /usr/include) ac_x_includes= ;;
24897         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24898     esac
24899     case $ac_im_usrlibdir in
24900         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24901         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24902     esac
24903   fi
24904   cd ..
24905   rm -f -r conftest.dir
24906 fi
24907
24908 # Standard set of common directories for X headers.
24909 # Check X11 before X11Rn because it is often a symlink to the current release.
24910 ac_x_header_dirs='
24911 /usr/X11/include
24912 /usr/X11R7/include
24913 /usr/X11R6/include
24914 /usr/X11R5/include
24915 /usr/X11R4/include
24916
24917 /usr/include/X11
24918 /usr/include/X11R7
24919 /usr/include/X11R6
24920 /usr/include/X11R5
24921 /usr/include/X11R4
24922
24923 /usr/local/X11/include
24924 /usr/local/X11R7/include
24925 /usr/local/X11R6/include
24926 /usr/local/X11R5/include
24927 /usr/local/X11R4/include
24928
24929 /usr/local/include/X11
24930 /usr/local/include/X11R7
24931 /usr/local/include/X11R6
24932 /usr/local/include/X11R5
24933 /usr/local/include/X11R4
24934
24935 /usr/X386/include
24936 /usr/x386/include
24937 /usr/XFree86/include/X11
24938
24939 /usr/include
24940 /usr/local/include
24941 /usr/unsupported/include
24942 /usr/athena/include
24943 /usr/local/x11r5/include
24944 /usr/lpp/Xamples/include
24945
24946 /usr/openwin/include
24947 /usr/openwin/share/include'
24948
24949 if test "$ac_x_includes" = no; then
24950   # Guess where to find include files, by looking for Xlib.h.
24951   # First, try using that file with no special directory specified.
24952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953 /* end confdefs.h.  */
24954 #include <X11/Xlib.h>
24955 _ACEOF
24956 if ac_fn_c_try_cpp "$LINENO"; then :
24957   # We can compile using X headers with no special include directory.
24958 ac_x_includes=
24959 else
24960   for ac_dir in $ac_x_header_dirs; do
24961   if test -r "$ac_dir/X11/Xlib.h"; then
24962     ac_x_includes=$ac_dir
24963     break
24964   fi
24965 done
24966 fi
24967 rm -f conftest.err conftest.$ac_ext
24968 fi # $ac_x_includes = no
24969
24970 if test "$ac_x_libraries" = no; then
24971   # Check for the libraries.
24972   # See if we find them without any special options.
24973   # Don't add to $LIBS permanently.
24974   ac_save_LIBS=$LIBS
24975   LIBS="-lX11 $LIBS"
24976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978 #include <X11/Xlib.h>
24979 int
24980 main ()
24981 {
24982 XrmInitialize ()
24983   ;
24984   return 0;
24985 }
24986 _ACEOF
24987 if ac_fn_c_try_link "$LINENO"; then :
24988   LIBS=$ac_save_LIBS
24989 # We can link X programs with no special library path.
24990 ac_x_libraries=
24991 else
24992   LIBS=$ac_save_LIBS
24993 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24994 do
24995   # Don't even attempt the hair of trying to link an X program!
24996   for ac_extension in a so sl dylib la dll; do
24997     if test -r "$ac_dir/libX11.$ac_extension"; then
24998       ac_x_libraries=$ac_dir
24999       break 2
25000     fi
25001   done
25002 done
25003 fi
25004 rm -f core conftest.err conftest.$ac_objext \
25005     conftest$ac_exeext conftest.$ac_ext
25006 fi # $ac_x_libraries = no
25007
25008 case $ac_x_includes,$ac_x_libraries in #(
25009   no,* | *,no | *\'*)
25010     # Didn't find X, or a directory has "'" in its name.
25011     ac_cv_have_x="have_x=no";; #(
25012   *)
25013     # Record where we found X for the cache.
25014     ac_cv_have_x="have_x=yes\
25015         ac_x_includes='$ac_x_includes'\
25016         ac_x_libraries='$ac_x_libraries'"
25017 esac
25018 fi
25019 ;; #(
25020     *) have_x=yes;;
25021   esac
25022   eval "$ac_cv_have_x"
25023 fi # $with_x != no
25024
25025 if test "$have_x" != yes; then
25026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25027 $as_echo "$have_x" >&6; }
25028   no_x=yes
25029 else
25030   # If each of the values was on the command line, it overrides each guess.
25031   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25032   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25033   # Update the cache value to reflect the command line values.
25034   ac_cv_have_x="have_x=yes\
25035         ac_x_includes='$x_includes'\
25036         ac_x_libraries='$x_libraries'"
25037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25038 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25039 fi
25040
25041 if test "$no_x" = yes; then
25042   # Not all programs may use this symbol, but it does not hurt to define it.
25043
25044 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25045
25046   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25047 else
25048   if test -n "$x_includes"; then
25049     X_CFLAGS="$X_CFLAGS -I$x_includes"
25050   fi
25051
25052   # It would also be nice to do this for all -L options, not just this one.
25053   if test -n "$x_libraries"; then
25054     X_LIBS="$X_LIBS -L$x_libraries"
25055     # For Solaris; some versions of Sun CC require a space after -R and
25056     # others require no space.  Words are not sufficient . . . .
25057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25058 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25059     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25060     ac_xsave_c_werror_flag=$ac_c_werror_flag
25061     ac_c_werror_flag=yes
25062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063 /* end confdefs.h.  */
25064
25065 int
25066 main ()
25067 {
25068
25069   ;
25070   return 0;
25071 }
25072 _ACEOF
25073 if ac_fn_c_try_link "$LINENO"; then :
25074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25075 $as_echo "no" >&6; }
25076        X_LIBS="$X_LIBS -R$x_libraries"
25077 else
25078   LIBS="$ac_xsave_LIBS -R $x_libraries"
25079        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080 /* end confdefs.h.  */
25081
25082 int
25083 main ()
25084 {
25085
25086   ;
25087   return 0;
25088 }
25089 _ACEOF
25090 if ac_fn_c_try_link "$LINENO"; then :
25091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25092 $as_echo "yes" >&6; }
25093           X_LIBS="$X_LIBS -R $x_libraries"
25094 else
25095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25096 $as_echo "neither works" >&6; }
25097 fi
25098 rm -f core conftest.err conftest.$ac_objext \
25099     conftest$ac_exeext conftest.$ac_ext
25100 fi
25101 rm -f core conftest.err conftest.$ac_objext \
25102     conftest$ac_exeext conftest.$ac_ext
25103     ac_c_werror_flag=$ac_xsave_c_werror_flag
25104     LIBS=$ac_xsave_LIBS
25105   fi
25106
25107   # Check for system-dependent libraries X programs must link with.
25108   # Do this before checking for the system-independent R6 libraries
25109   # (-lICE), since we may need -lsocket or whatever for X linking.
25110
25111   if test "$ISC" = yes; then
25112     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25113   else
25114     # Martyn Johnson says this is needed for Ultrix, if the X
25115     # libraries were built with DECnet support.  And Karl Berry says
25116     # the Alpha needs dnet_stub (dnet does not exist).
25117     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119 /* end confdefs.h.  */
25120
25121 /* Override any GCC internal prototype to avoid an error.
25122    Use char because int might match the return type of a GCC
25123    builtin and then its argument prototype would still apply.  */
25124 #ifdef __cplusplus
25125 extern "C"
25126 #endif
25127 char XOpenDisplay ();
25128 int
25129 main ()
25130 {
25131 return XOpenDisplay ();
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 if ac_fn_c_try_link "$LINENO"; then :
25137
25138 else
25139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25140 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25141 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25142   $as_echo_n "(cached) " >&6
25143 else
25144   ac_check_lib_save_LIBS=$LIBS
25145 LIBS="-ldnet  $LIBS"
25146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25147 /* end confdefs.h.  */
25148
25149 /* Override any GCC internal prototype to avoid an error.
25150    Use char because int might match the return type of a GCC
25151    builtin and then its argument prototype would still apply.  */
25152 #ifdef __cplusplus
25153 extern "C"
25154 #endif
25155 char dnet_ntoa ();
25156 int
25157 main ()
25158 {
25159 return dnet_ntoa ();
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 if ac_fn_c_try_link "$LINENO"; then :
25165   ac_cv_lib_dnet_dnet_ntoa=yes
25166 else
25167   ac_cv_lib_dnet_dnet_ntoa=no
25168 fi
25169 rm -f core conftest.err conftest.$ac_objext \
25170     conftest$ac_exeext conftest.$ac_ext
25171 LIBS=$ac_check_lib_save_LIBS
25172 fi
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25174 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25175 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25176   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25177 fi
25178
25179     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25181 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25182 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25183   $as_echo_n "(cached) " >&6
25184 else
25185   ac_check_lib_save_LIBS=$LIBS
25186 LIBS="-ldnet_stub  $LIBS"
25187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25188 /* end confdefs.h.  */
25189
25190 /* Override any GCC internal prototype to avoid an error.
25191    Use char because int might match the return type of a GCC
25192    builtin and then its argument prototype would still apply.  */
25193 #ifdef __cplusplus
25194 extern "C"
25195 #endif
25196 char dnet_ntoa ();
25197 int
25198 main ()
25199 {
25200 return dnet_ntoa ();
25201   ;
25202   return 0;
25203 }
25204 _ACEOF
25205 if ac_fn_c_try_link "$LINENO"; then :
25206   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25207 else
25208   ac_cv_lib_dnet_stub_dnet_ntoa=no
25209 fi
25210 rm -f core conftest.err conftest.$ac_objext \
25211     conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25213 fi
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25215 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25216 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25217   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25218 fi
25219
25220     fi
25221 fi
25222 rm -f core conftest.err conftest.$ac_objext \
25223     conftest$ac_exeext conftest.$ac_ext
25224     LIBS="$ac_xsave_LIBS"
25225
25226     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25227     # to get the SysV transport functions.
25228     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25229     # needs -lnsl.
25230     # The nsl library prevents programs from opening the X display
25231     # on Irix 5.2, according to T.E. Dickey.
25232     # The functions gethostbyname, getservbyname, and inet_addr are
25233     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25234     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25235 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25236
25237 fi
25238
25239     if test $ac_cv_func_gethostbyname = no; then
25240       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25241 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25242 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25243   $as_echo_n "(cached) " >&6
25244 else
25245   ac_check_lib_save_LIBS=$LIBS
25246 LIBS="-lnsl  $LIBS"
25247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25248 /* end confdefs.h.  */
25249
25250 /* Override any GCC internal prototype to avoid an error.
25251    Use char because int might match the return type of a GCC
25252    builtin and then its argument prototype would still apply.  */
25253 #ifdef __cplusplus
25254 extern "C"
25255 #endif
25256 char gethostbyname ();
25257 int
25258 main ()
25259 {
25260 return gethostbyname ();
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 if ac_fn_c_try_link "$LINENO"; then :
25266   ac_cv_lib_nsl_gethostbyname=yes
25267 else
25268   ac_cv_lib_nsl_gethostbyname=no
25269 fi
25270 rm -f core conftest.err conftest.$ac_objext \
25271     conftest$ac_exeext conftest.$ac_ext
25272 LIBS=$ac_check_lib_save_LIBS
25273 fi
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25275 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25276 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25277   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25278 fi
25279
25280       if test $ac_cv_lib_nsl_gethostbyname = no; then
25281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25282 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25283 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25284   $as_echo_n "(cached) " >&6
25285 else
25286   ac_check_lib_save_LIBS=$LIBS
25287 LIBS="-lbsd  $LIBS"
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290
25291 /* Override any GCC internal prototype to avoid an error.
25292    Use char because int might match the return type of a GCC
25293    builtin and then its argument prototype would still apply.  */
25294 #ifdef __cplusplus
25295 extern "C"
25296 #endif
25297 char gethostbyname ();
25298 int
25299 main ()
25300 {
25301 return gethostbyname ();
25302   ;
25303   return 0;
25304 }
25305 _ACEOF
25306 if ac_fn_c_try_link "$LINENO"; then :
25307   ac_cv_lib_bsd_gethostbyname=yes
25308 else
25309   ac_cv_lib_bsd_gethostbyname=no
25310 fi
25311 rm -f core conftest.err conftest.$ac_objext \
25312     conftest$ac_exeext conftest.$ac_ext
25313 LIBS=$ac_check_lib_save_LIBS
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25316 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25317 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25318   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25319 fi
25320
25321       fi
25322     fi
25323
25324     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25325     # socket/setsockopt and other routines are undefined under SCO ODT
25326     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25327     # on later versions), says Simon Leinen: it contains gethostby*
25328     # variants that don't use the name server (or something).  -lsocket
25329     # must be given before -lnsl if both are needed.  We assume that
25330     # if connect needs -lnsl, so does gethostbyname.
25331     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25332 if test "x$ac_cv_func_connect" = x""yes; then :
25333
25334 fi
25335
25336     if test $ac_cv_func_connect = no; then
25337       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25338 $as_echo_n "checking for connect in -lsocket... " >&6; }
25339 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25340   $as_echo_n "(cached) " >&6
25341 else
25342   ac_check_lib_save_LIBS=$LIBS
25343 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h.  */
25346
25347 /* Override any GCC internal prototype to avoid an error.
25348    Use char because int might match the return type of a GCC
25349    builtin and then its argument prototype would still apply.  */
25350 #ifdef __cplusplus
25351 extern "C"
25352 #endif
25353 char connect ();
25354 int
25355 main ()
25356 {
25357 return connect ();
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 if ac_fn_c_try_link "$LINENO"; then :
25363   ac_cv_lib_socket_connect=yes
25364 else
25365   ac_cv_lib_socket_connect=no
25366 fi
25367 rm -f core conftest.err conftest.$ac_objext \
25368     conftest$ac_exeext conftest.$ac_ext
25369 LIBS=$ac_check_lib_save_LIBS
25370 fi
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25372 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25373 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25374   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25375 fi
25376
25377     fi
25378
25379     # Guillermo Gomez says -lposix is necessary on A/UX.
25380     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25381 if test "x$ac_cv_func_remove" = x""yes; then :
25382
25383 fi
25384
25385     if test $ac_cv_func_remove = no; then
25386       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25387 $as_echo_n "checking for remove in -lposix... " >&6; }
25388 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25389   $as_echo_n "(cached) " >&6
25390 else
25391   ac_check_lib_save_LIBS=$LIBS
25392 LIBS="-lposix  $LIBS"
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h.  */
25395
25396 /* Override any GCC internal prototype to avoid an error.
25397    Use char because int might match the return type of a GCC
25398    builtin and then its argument prototype would still apply.  */
25399 #ifdef __cplusplus
25400 extern "C"
25401 #endif
25402 char remove ();
25403 int
25404 main ()
25405 {
25406 return remove ();
25407   ;
25408   return 0;
25409 }
25410 _ACEOF
25411 if ac_fn_c_try_link "$LINENO"; then :
25412   ac_cv_lib_posix_remove=yes
25413 else
25414   ac_cv_lib_posix_remove=no
25415 fi
25416 rm -f core conftest.err conftest.$ac_objext \
25417     conftest$ac_exeext conftest.$ac_ext
25418 LIBS=$ac_check_lib_save_LIBS
25419 fi
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25421 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25422 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25423   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25424 fi
25425
25426     fi
25427
25428     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25429     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25430 if test "x$ac_cv_func_shmat" = x""yes; then :
25431
25432 fi
25433
25434     if test $ac_cv_func_shmat = no; then
25435       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25436 $as_echo_n "checking for shmat in -lipc... " >&6; }
25437 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25438   $as_echo_n "(cached) " >&6
25439 else
25440   ac_check_lib_save_LIBS=$LIBS
25441 LIBS="-lipc  $LIBS"
25442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443 /* end confdefs.h.  */
25444
25445 /* Override any GCC internal prototype to avoid an error.
25446    Use char because int might match the return type of a GCC
25447    builtin and then its argument prototype would still apply.  */
25448 #ifdef __cplusplus
25449 extern "C"
25450 #endif
25451 char shmat ();
25452 int
25453 main ()
25454 {
25455 return shmat ();
25456   ;
25457   return 0;
25458 }
25459 _ACEOF
25460 if ac_fn_c_try_link "$LINENO"; then :
25461   ac_cv_lib_ipc_shmat=yes
25462 else
25463   ac_cv_lib_ipc_shmat=no
25464 fi
25465 rm -f core conftest.err conftest.$ac_objext \
25466     conftest$ac_exeext conftest.$ac_ext
25467 LIBS=$ac_check_lib_save_LIBS
25468 fi
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25470 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25471 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25472   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25473 fi
25474
25475     fi
25476   fi
25477
25478   # Check for libraries that X11R6 Xt/Xaw programs need.
25479   ac_save_LDFLAGS=$LDFLAGS
25480   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25481   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25482   # check for ICE first), but we must link in the order -lSM -lICE or
25483   # we get undefined symbols.  So assume we have SM if we have ICE.
25484   # These have to be linked with before -lX11, unlike the other
25485   # libraries we check for below, so use a different variable.
25486   # John Interrante, Karl Berry
25487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25488 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25489 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25490   $as_echo_n "(cached) " >&6
25491 else
25492   ac_check_lib_save_LIBS=$LIBS
25493 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495 /* end confdefs.h.  */
25496
25497 /* Override any GCC internal prototype to avoid an error.
25498    Use char because int might match the return type of a GCC
25499    builtin and then its argument prototype would still apply.  */
25500 #ifdef __cplusplus
25501 extern "C"
25502 #endif
25503 char IceConnectionNumber ();
25504 int
25505 main ()
25506 {
25507 return IceConnectionNumber ();
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 if ac_fn_c_try_link "$LINENO"; then :
25513   ac_cv_lib_ICE_IceConnectionNumber=yes
25514 else
25515   ac_cv_lib_ICE_IceConnectionNumber=no
25516 fi
25517 rm -f core conftest.err conftest.$ac_objext \
25518     conftest$ac_exeext conftest.$ac_ext
25519 LIBS=$ac_check_lib_save_LIBS
25520 fi
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25522 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25523 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25524   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25525 fi
25526
25527   LDFLAGS=$ac_save_LDFLAGS
25528
25529 fi
25530
25531
25532 for ac_header in \
25533    assert.h \
25534    fcntl.h \
25535    grp.h \
25536    pwd.h \
25537    libc.h \
25538    limits.h \
25539    stdarg.h \
25540    stdlib.h \
25541    stdint.h \
25542    string.h \
25543    strings.h \
25544    termios.h \
25545    termcap.h \
25546    term.h \
25547    unistd.h \
25548    sys/bitypes.h \
25549    sys/byteorder.h \
25550    sys/ioctl.h \
25551    sys/select.h \
25552    sys/socket.h \
25553    sys/sockio.h \
25554    sys/stat.h \
25555    sys/time.h \
25556    sys/types.h \
25557    arpa/nameser.h \
25558    mtio.h \
25559    sys/mtio.h \
25560    sys/tape.h \
25561    regex.h \
25562
25563 do :
25564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25566 eval as_val=\$$as_ac_Header
25567    if test "x$as_val" = x""yes; then :
25568   cat >>confdefs.h <<_ACEOF
25569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25570 _ACEOF
25571
25572 fi
25573
25574 done
25575
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25577 $as_echo_n "checking for ANSI C header files... " >&6; }
25578 if test "${ac_cv_header_stdc+set}" = set; then :
25579   $as_echo_n "(cached) " >&6
25580 else
25581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582 /* end confdefs.h.  */
25583 #include <stdlib.h>
25584 #include <stdarg.h>
25585 #include <string.h>
25586 #include <float.h>
25587
25588 int
25589 main ()
25590 {
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 if ac_fn_c_try_compile "$LINENO"; then :
25597   ac_cv_header_stdc=yes
25598 else
25599   ac_cv_header_stdc=no
25600 fi
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602
25603 if test $ac_cv_header_stdc = yes; then
25604   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h.  */
25607 #include <string.h>
25608
25609 _ACEOF
25610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25611   $EGREP "memchr" >/dev/null 2>&1; then :
25612
25613 else
25614   ac_cv_header_stdc=no
25615 fi
25616 rm -f conftest*
25617
25618 fi
25619
25620 if test $ac_cv_header_stdc = yes; then
25621   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h.  */
25624 #include <stdlib.h>
25625
25626 _ACEOF
25627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25628   $EGREP "free" >/dev/null 2>&1; then :
25629
25630 else
25631   ac_cv_header_stdc=no
25632 fi
25633 rm -f conftest*
25634
25635 fi
25636
25637 if test $ac_cv_header_stdc = yes; then
25638   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25639   if test "$cross_compiling" = yes; then :
25640   :
25641 else
25642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25643 /* end confdefs.h.  */
25644 #include <ctype.h>
25645 #include <stdlib.h>
25646 #if ((' ' & 0x0FF) == 0x020)
25647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25649 #else
25650 # define ISLOWER(c) \
25651                    (('a' <= (c) && (c) <= 'i') \
25652                      || ('j' <= (c) && (c) <= 'r') \
25653                      || ('s' <= (c) && (c) <= 'z'))
25654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25655 #endif
25656
25657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25658 int
25659 main ()
25660 {
25661   int i;
25662   for (i = 0; i < 256; i++)
25663     if (XOR (islower (i), ISLOWER (i))
25664         || toupper (i) != TOUPPER (i))
25665       return 2;
25666   return 0;
25667 }
25668 _ACEOF
25669 if ac_fn_c_try_run "$LINENO"; then :
25670
25671 else
25672   ac_cv_header_stdc=no
25673 fi
25674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25675   conftest.$ac_objext conftest.beam conftest.$ac_ext
25676 fi
25677
25678 fi
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25681 $as_echo "$ac_cv_header_stdc" >&6; }
25682 if test $ac_cv_header_stdc = yes; then
25683
25684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25685
25686 fi
25687
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25689 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25690 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25691   $as_echo_n "(cached) " >&6
25692 else
25693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25694 /* end confdefs.h.  */
25695 #include <sys/types.h>
25696 int
25697 main ()
25698 {
25699 return makedev(0, 0);
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_link "$LINENO"; then :
25705   ac_cv_header_sys_types_h_makedev=yes
25706 else
25707   ac_cv_header_sys_types_h_makedev=no
25708 fi
25709 rm -f core conftest.err conftest.$ac_objext \
25710     conftest$ac_exeext conftest.$ac_ext
25711
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25714 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25715
25716 if test $ac_cv_header_sys_types_h_makedev = no; then
25717 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25718 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25719
25720 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25721
25722 fi
25723
25724
25725
25726   if test $ac_cv_header_sys_mkdev_h = no; then
25727     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25728 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25729
25730 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25731
25732 fi
25733
25734
25735   fi
25736 fi
25737
25738 ac_header_dirent=no
25739 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25740   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25742 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25744   $as_echo_n "(cached) " >&6
25745 else
25746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747 /* end confdefs.h.  */
25748 #include <sys/types.h>
25749 #include <$ac_hdr>
25750
25751 int
25752 main ()
25753 {
25754 if ((DIR *) 0)
25755 return 0;
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 if ac_fn_c_try_compile "$LINENO"; then :
25761   eval "$as_ac_Header=yes"
25762 else
25763   eval "$as_ac_Header=no"
25764 fi
25765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25766 fi
25767 eval ac_res=\$$as_ac_Header
25768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25769 $as_echo "$ac_res" >&6; }
25770 eval as_val=\$$as_ac_Header
25771    if test "x$as_val" = x""yes; then :
25772   cat >>confdefs.h <<_ACEOF
25773 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25774 _ACEOF
25775
25776 ac_header_dirent=$ac_hdr; break
25777 fi
25778
25779 done
25780 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25781 if test $ac_header_dirent = dirent.h; then
25782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25783 $as_echo_n "checking for library containing opendir... " >&6; }
25784 if test "${ac_cv_search_opendir+set}" = set; then :
25785   $as_echo_n "(cached) " >&6
25786 else
25787   ac_func_search_save_LIBS=$LIBS
25788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25789 /* end confdefs.h.  */
25790
25791 /* Override any GCC internal prototype to avoid an error.
25792    Use char because int might match the return type of a GCC
25793    builtin and then its argument prototype would still apply.  */
25794 #ifdef __cplusplus
25795 extern "C"
25796 #endif
25797 char opendir ();
25798 int
25799 main ()
25800 {
25801 return opendir ();
25802   ;
25803   return 0;
25804 }
25805 _ACEOF
25806 for ac_lib in '' dir; do
25807   if test -z "$ac_lib"; then
25808     ac_res="none required"
25809   else
25810     ac_res=-l$ac_lib
25811     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25812   fi
25813   if ac_fn_c_try_link "$LINENO"; then :
25814   ac_cv_search_opendir=$ac_res
25815 fi
25816 rm -f core conftest.err conftest.$ac_objext \
25817     conftest$ac_exeext
25818   if test "${ac_cv_search_opendir+set}" = set; then :
25819   break
25820 fi
25821 done
25822 if test "${ac_cv_search_opendir+set}" = set; then :
25823
25824 else
25825   ac_cv_search_opendir=no
25826 fi
25827 rm conftest.$ac_ext
25828 LIBS=$ac_func_search_save_LIBS
25829 fi
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25831 $as_echo "$ac_cv_search_opendir" >&6; }
25832 ac_res=$ac_cv_search_opendir
25833 if test "$ac_res" != no; then :
25834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25835
25836 fi
25837
25838 else
25839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25840 $as_echo_n "checking for library containing opendir... " >&6; }
25841 if test "${ac_cv_search_opendir+set}" = set; then :
25842   $as_echo_n "(cached) " >&6
25843 else
25844   ac_func_search_save_LIBS=$LIBS
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h.  */
25847
25848 /* Override any GCC internal prototype to avoid an error.
25849    Use char because int might match the return type of a GCC
25850    builtin and then its argument prototype would still apply.  */
25851 #ifdef __cplusplus
25852 extern "C"
25853 #endif
25854 char opendir ();
25855 int
25856 main ()
25857 {
25858 return opendir ();
25859   ;
25860   return 0;
25861 }
25862 _ACEOF
25863 for ac_lib in '' x; do
25864   if test -z "$ac_lib"; then
25865     ac_res="none required"
25866   else
25867     ac_res=-l$ac_lib
25868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25869   fi
25870   if ac_fn_c_try_link "$LINENO"; then :
25871   ac_cv_search_opendir=$ac_res
25872 fi
25873 rm -f core conftest.err conftest.$ac_objext \
25874     conftest$ac_exeext
25875   if test "${ac_cv_search_opendir+set}" = set; then :
25876   break
25877 fi
25878 done
25879 if test "${ac_cv_search_opendir+set}" = set; then :
25880
25881 else
25882   ac_cv_search_opendir=no
25883 fi
25884 rm conftest.$ac_ext
25885 LIBS=$ac_func_search_save_LIBS
25886 fi
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25888 $as_echo "$ac_cv_search_opendir" >&6; }
25889 ac_res=$ac_cv_search_opendir
25890 if test "$ac_res" != no; then :
25891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25892
25893 fi
25894
25895 fi
25896
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25898 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25899 if test "${ac_cv_header_stat_broken+set}" = set; then :
25900   $as_echo_n "(cached) " >&6
25901 else
25902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h.  */
25904 #include <sys/types.h>
25905 #include <sys/stat.h>
25906
25907 #if defined S_ISBLK && defined S_IFDIR
25908 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25909 #endif
25910
25911 #if defined S_ISBLK && defined S_IFCHR
25912 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25913 #endif
25914
25915 #if defined S_ISLNK && defined S_IFREG
25916 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25917 #endif
25918
25919 #if defined S_ISSOCK && defined S_IFREG
25920 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25921 #endif
25922
25923 _ACEOF
25924 if ac_fn_c_try_compile "$LINENO"; then :
25925   ac_cv_header_stat_broken=no
25926 else
25927   ac_cv_header_stat_broken=yes
25928 fi
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930 fi
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25932 $as_echo "$ac_cv_header_stat_broken" >&6; }
25933 if test $ac_cv_header_stat_broken = yes; then
25934
25935 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25936
25937 fi
25938
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25940 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25941 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25942   $as_echo_n "(cached) " >&6
25943 else
25944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25945 /* end confdefs.h.  */
25946 #include <sys/types.h>
25947 #include <sys/wait.h>
25948 #ifndef WEXITSTATUS
25949 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25950 #endif
25951 #ifndef WIFEXITED
25952 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958   int s;
25959   wait (&s);
25960   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 if ac_fn_c_try_compile "$LINENO"; then :
25966   ac_cv_header_sys_wait_h=yes
25967 else
25968   ac_cv_header_sys_wait_h=no
25969 fi
25970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971 fi
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25973 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25974 if test $ac_cv_header_sys_wait_h = yes; then
25975
25976 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25977
25978 fi
25979
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25981 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25982 if test "${ac_cv_header_time+set}" = set; then :
25983   $as_echo_n "(cached) " >&6
25984 else
25985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h.  */
25987 #include <sys/types.h>
25988 #include <sys/time.h>
25989 #include <time.h>
25990
25991 int
25992 main ()
25993 {
25994 if ((struct tm *) 0)
25995 return 0;
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 if ac_fn_c_try_compile "$LINENO"; then :
26001   ac_cv_header_time=yes
26002 else
26003   ac_cv_header_time=no
26004 fi
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26008 $as_echo "$ac_cv_header_time" >&6; }
26009 if test $ac_cv_header_time = yes; then
26010
26011 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26012
26013 fi
26014
26015 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26016 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
26017
26018 cat >>confdefs.h <<_ACEOF
26019 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26020 _ACEOF
26021
26022
26023 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26024
26025 fi
26026
26027
26028 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26029 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26030
26031 cat >>confdefs.h <<_ACEOF
26032 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26033 _ACEOF
26034
26035
26036 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26037
26038 else
26039   case " $LIBOBJS " in
26040   *" fileblocks.$ac_objext "* ) ;;
26041   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26042  ;;
26043 esac
26044
26045 fi
26046
26047
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26049 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26050 if test "${ac_cv_struct_tm+set}" = set; then :
26051   $as_echo_n "(cached) " >&6
26052 else
26053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26054 /* end confdefs.h.  */
26055 #include <sys/types.h>
26056 #include <time.h>
26057
26058 int
26059 main ()
26060 {
26061 struct tm tm;
26062                                      int *p = &tm.tm_sec;
26063                                      return !p;
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 if ac_fn_c_try_compile "$LINENO"; then :
26069   ac_cv_struct_tm=time.h
26070 else
26071   ac_cv_struct_tm=sys/time.h
26072 fi
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 fi
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26076 $as_echo "$ac_cv_struct_tm" >&6; }
26077 if test $ac_cv_struct_tm = sys/time.h; then
26078
26079 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26080
26081 fi
26082
26083 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26084 #include <$ac_cv_struct_tm>
26085
26086 "
26087 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26088
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_STRUCT_TM_TM_ZONE 1
26091 _ACEOF
26092
26093
26094 fi
26095
26096 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26097
26098 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26099
26100 else
26101   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26102 "
26103 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26104   ac_have_decl=1
26105 else
26106   ac_have_decl=0
26107 fi
26108
26109 cat >>confdefs.h <<_ACEOF
26110 #define HAVE_DECL_TZNAME $ac_have_decl
26111 _ACEOF
26112
26113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26114 $as_echo_n "checking for tzname... " >&6; }
26115 if test "${ac_cv_var_tzname+set}" = set; then :
26116   $as_echo_n "(cached) " >&6
26117 else
26118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119 /* end confdefs.h.  */
26120 #include <time.h>
26121 #if !HAVE_DECL_TZNAME
26122 extern char *tzname[];
26123 #endif
26124
26125 int
26126 main ()
26127 {
26128 return tzname[0][0];
26129   ;
26130   return 0;
26131 }
26132 _ACEOF
26133 if ac_fn_c_try_link "$LINENO"; then :
26134   ac_cv_var_tzname=yes
26135 else
26136   ac_cv_var_tzname=no
26137 fi
26138 rm -f core conftest.err conftest.$ac_objext \
26139     conftest$ac_exeext conftest.$ac_ext
26140 fi
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26142 $as_echo "$ac_cv_var_tzname" >&6; }
26143   if test $ac_cv_var_tzname = yes; then
26144
26145 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26146
26147   fi
26148 fi
26149
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26152 $as_echo_n "checking for utime.h... " >&6; }
26153 if test "${ba_cv_header_utime_h+set}" = set; then :
26154   $as_echo_n "(cached) " >&6
26155 else
26156
26157        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158 /* end confdefs.h.  */
26159
26160               #include <sys/types.h>
26161               #include <utime.h>
26162
26163 int
26164 main ()
26165 {
26166
26167               struct utimbuf foo
26168
26169   ;
26170   return 0;
26171 }
26172 _ACEOF
26173 if ac_fn_c_try_compile "$LINENO"; then :
26174
26175               ba_cv_header_utime_h=yes
26176
26177 else
26178
26179               ba_cv_header_utime_h=no
26180
26181
26182 fi
26183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26184
26185
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26188 $as_echo "$ba_cv_header_utime_h" >&6; }
26189 test $ba_cv_header_utime_h = yes &&
26190 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26191
26192
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26194 $as_echo_n "checking for socklen_t... " >&6; }
26195 if test "${ba_cv_header_socklen_t+set}" = set; then :
26196   $as_echo_n "(cached) " >&6
26197 else
26198
26199        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h.  */
26201
26202               #include <sys/types.h>
26203               #include <sys/socket.h>
26204
26205 int
26206 main ()
26207 {
26208
26209               socklen_t x
26210
26211   ;
26212   return 0;
26213 }
26214 _ACEOF
26215 if ac_fn_c_try_compile "$LINENO"; then :
26216
26217              ba_cv_header_socklen_t=yes
26218
26219 else
26220
26221              ba_cv_header_socklen_t=no
26222
26223
26224 fi
26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26226
26227
26228 fi
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26230 $as_echo "$ba_cv_header_socklen_t" >&6; }
26231 test $ba_cv_header_socklen_t = yes &&
26232 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26233
26234
26235 ac_ext=cpp
26236 ac_cpp='$CXXCPP $CPPFLAGS'
26237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26240
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26242 $as_echo_n "checking for ioctl_req_t... " >&6; }
26243 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26244   $as_echo_n "(cached) " >&6
26245 else
26246
26247        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h.  */
26249
26250               #include <unistd.h>
26251               #include <sys/types.h>
26252               #include <sys/ioctl.h>
26253
26254 int
26255 main ()
26256 {
26257
26258               int (*d_ioctl)(int fd, unsigned long int request, ...);
26259               d_ioctl = ::ioctl;
26260
26261   ;
26262   return 0;
26263 }
26264 _ACEOF
26265 if ac_fn_cxx_try_compile "$LINENO"; then :
26266
26267              ba_cv_header_ioctl_req_t=yes
26268
26269 else
26270
26271              ba_cv_header_ioctl_req_t=no
26272
26273
26274 fi
26275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26276
26277
26278 fi
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26280 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26281 test $ba_cv_header_ioctl_req_t = yes &&
26282 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26283
26284
26285 ac_ext=c
26286 ac_cpp='$CPP $CPPFLAGS'
26287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26290
26291
26292 ac_ext=cpp
26293 ac_cpp='$CXXCPP $CPPFLAGS'
26294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26297
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26299 $as_echo_n "checking for typeof... " >&6; }
26300 if test "${ba_cv_have_typeof+set}" = set; then :
26301   $as_echo_n "(cached) " >&6
26302 else
26303
26304        if test "$cross_compiling" = yes; then :
26305
26306               ba_cv_have_typeof=no
26307
26308
26309 else
26310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26311 /* end confdefs.h.  */
26312
26313               main(){char *a = 0; a = (typeof a)a;}
26314
26315 _ACEOF
26316 if ac_fn_cxx_try_run "$LINENO"; then :
26317
26318               ba_cv_have_typeof=yes
26319
26320 else
26321
26322               ba_cv_have_typeof=no
26323
26324 fi
26325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26326   conftest.$ac_objext conftest.beam conftest.$ac_ext
26327 fi
26328
26329
26330
26331 fi
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26333 $as_echo "$ba_cv_have_typeof" >&6; }
26334 test $ba_cv_have_typeof = yes &&
26335 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26336
26337 ac_ext=c
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26346 if test "${ac_cv_c_const+set}" = set; then :
26347   $as_echo_n "(cached) " >&6
26348 else
26349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26350 /* end confdefs.h.  */
26351
26352 int
26353 main ()
26354 {
26355 /* FIXME: Include the comments suggested by Paul. */
26356 #ifndef __cplusplus
26357   /* Ultrix mips cc rejects this.  */
26358   typedef int charset[2];
26359   const charset cs;
26360   /* SunOS 4.1.1 cc rejects this.  */
26361   char const *const *pcpcc;
26362   char **ppc;
26363   /* NEC SVR4.0.2 mips cc rejects this.  */
26364   struct point {int x, y;};
26365   static struct point const zero = {0,0};
26366   /* AIX XL C 1.02.0.0 rejects this.
26367      It does not let you subtract one const X* pointer from another in
26368      an arm of an if-expression whose if-part is not a constant
26369      expression */
26370   const char *g = "string";
26371   pcpcc = &g + (g ? g-g : 0);
26372   /* HPUX 7.0 cc rejects these. */
26373   ++pcpcc;
26374   ppc = (char**) pcpcc;
26375   pcpcc = (char const *const *) ppc;
26376   { /* SCO 3.2v4 cc rejects this.  */
26377     char *t;
26378     char const *s = 0 ? (char *) 0 : (char const *) 0;
26379
26380     *t++ = 0;
26381     if (s) return 0;
26382   }
26383   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26384     int x[] = {25, 17};
26385     const int *foo = &x[0];
26386     ++foo;
26387   }
26388   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26389     typedef const int *iptr;
26390     iptr p = 0;
26391     ++p;
26392   }
26393   { /* AIX XL C 1.02.0.0 rejects this saying
26394        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26395     struct s { int j; const int *ap[3]; };
26396     struct s *b; b->j = 5;
26397   }
26398   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26399     const int foo = 10;
26400     if (!foo) return 0;
26401   }
26402   return !cs[0] && !zero.x;
26403 #endif
26404
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 if ac_fn_c_try_compile "$LINENO"; then :
26410   ac_cv_c_const=yes
26411 else
26412   ac_cv_c_const=no
26413 fi
26414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26415 fi
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26417 $as_echo "$ac_cv_c_const" >&6; }
26418 if test $ac_cv_c_const = no; then
26419
26420 $as_echo "#define const /**/" >>confdefs.h
26421
26422 fi
26423
26424
26425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26426 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26427 if test "${ac_cv_c_bigendian+set}" = set; then :
26428   $as_echo_n "(cached) " >&6
26429 else
26430   ac_cv_c_bigendian=unknown
26431     # See if we're dealing with a universal compiler.
26432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h.  */
26434 #ifndef __APPLE_CC__
26435                not a universal capable compiler
26436              #endif
26437              typedef int dummy;
26438
26439 _ACEOF
26440 if ac_fn_c_try_compile "$LINENO"; then :
26441
26442         # Check for potential -arch flags.  It is not universal unless
26443         # there are at least two -arch flags with different values.
26444         ac_arch=
26445         ac_prev=
26446         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26447          if test -n "$ac_prev"; then
26448            case $ac_word in
26449              i?86 | x86_64 | ppc | ppc64)
26450                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26451                  ac_arch=$ac_word
26452                else
26453                  ac_cv_c_bigendian=universal
26454                  break
26455                fi
26456                ;;
26457            esac
26458            ac_prev=
26459          elif test "x$ac_word" = "x-arch"; then
26460            ac_prev=arch
26461          fi
26462        done
26463 fi
26464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26465     if test $ac_cv_c_bigendian = unknown; then
26466       # See if sys/param.h defines the BYTE_ORDER macro.
26467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h.  */
26469 #include <sys/types.h>
26470              #include <sys/param.h>
26471
26472 int
26473 main ()
26474 {
26475 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26476                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26477                      && LITTLE_ENDIAN)
26478               bogus endian macros
26479              #endif
26480
26481   ;
26482   return 0;
26483 }
26484 _ACEOF
26485 if ac_fn_c_try_compile "$LINENO"; then :
26486   # It does; now see whether it defined to BIG_ENDIAN or not.
26487          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488 /* end confdefs.h.  */
26489 #include <sys/types.h>
26490                 #include <sys/param.h>
26491
26492 int
26493 main ()
26494 {
26495 #if BYTE_ORDER != BIG_ENDIAN
26496                  not big endian
26497                 #endif
26498
26499   ;
26500   return 0;
26501 }
26502 _ACEOF
26503 if ac_fn_c_try_compile "$LINENO"; then :
26504   ac_cv_c_bigendian=yes
26505 else
26506   ac_cv_c_bigendian=no
26507 fi
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509 fi
26510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26511     fi
26512     if test $ac_cv_c_bigendian = unknown; then
26513       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h.  */
26516 #include <limits.h>
26517
26518 int
26519 main ()
26520 {
26521 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26522               bogus endian macros
26523              #endif
26524
26525   ;
26526   return 0;
26527 }
26528 _ACEOF
26529 if ac_fn_c_try_compile "$LINENO"; then :
26530   # It does; now see whether it defined to _BIG_ENDIAN or not.
26531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h.  */
26533 #include <limits.h>
26534
26535 int
26536 main ()
26537 {
26538 #ifndef _BIG_ENDIAN
26539                  not big endian
26540                 #endif
26541
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 if ac_fn_c_try_compile "$LINENO"; then :
26547   ac_cv_c_bigendian=yes
26548 else
26549   ac_cv_c_bigendian=no
26550 fi
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 fi
26553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26554     fi
26555     if test $ac_cv_c_bigendian = unknown; then
26556       # Compile a test program.
26557       if test "$cross_compiling" = yes; then :
26558   # Try to guess by grepping values from an object file.
26559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560 /* end confdefs.h.  */
26561 short int ascii_mm[] =
26562                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26563                 short int ascii_ii[] =
26564                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26565                 int use_ascii (int i) {
26566                   return ascii_mm[i] + ascii_ii[i];
26567                 }
26568                 short int ebcdic_ii[] =
26569                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26570                 short int ebcdic_mm[] =
26571                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26572                 int use_ebcdic (int i) {
26573                   return ebcdic_mm[i] + ebcdic_ii[i];
26574                 }
26575                 extern int foo;
26576
26577 int
26578 main ()
26579 {
26580 return use_ascii (foo) == use_ebcdic (foo);
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 if ac_fn_c_try_compile "$LINENO"; then :
26586   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26587               ac_cv_c_bigendian=yes
26588             fi
26589             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26590               if test "$ac_cv_c_bigendian" = unknown; then
26591                 ac_cv_c_bigendian=no
26592               else
26593                 # finding both strings is unlikely to happen, but who knows?
26594                 ac_cv_c_bigendian=unknown
26595               fi
26596             fi
26597 fi
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599 else
26600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26601 /* end confdefs.h.  */
26602 $ac_includes_default
26603 int
26604 main ()
26605 {
26606
26607              /* Are we little or big endian?  From Harbison&Steele.  */
26608              union
26609              {
26610                long int l;
26611                char c[sizeof (long int)];
26612              } u;
26613              u.l = 1;
26614              return u.c[sizeof (long int) - 1] == 1;
26615
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 if ac_fn_c_try_run "$LINENO"; then :
26621   ac_cv_c_bigendian=no
26622 else
26623   ac_cv_c_bigendian=yes
26624 fi
26625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26626   conftest.$ac_objext conftest.beam conftest.$ac_ext
26627 fi
26628
26629     fi
26630 fi
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26632 $as_echo "$ac_cv_c_bigendian" >&6; }
26633  case $ac_cv_c_bigendian in #(
26634    yes)
26635
26636 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26637 ;; #(
26638    no)
26639
26640 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26641  ;; #(
26642    universal)
26643
26644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26645
26646      ;; #(
26647    *)
26648      as_fn_error "unknown endianness
26649  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26650  esac
26651
26652
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26654 $as_echo_n "checking how to get filesystem type... " >&6; }
26655 fstype=no
26656 # The order of these tests is important.
26657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26658 /* end confdefs.h.  */
26659
26660        #include <sys/statvfs.h>
26661        #include <sys/fstyp.h>
26662
26663 _ACEOF
26664 if ac_fn_c_try_cpp "$LINENO"; then :
26665   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26666  fstype=SVR4
26667
26668 fi
26669 rm -f conftest.err conftest.$ac_ext
26670 if test $fstype = no; then
26671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672 /* end confdefs.h.  */
26673
26674           #include <sys/statfs.h>
26675           #include <sys/fstyp.h>
26676
26677 _ACEOF
26678 if ac_fn_c_try_cpp "$LINENO"; then :
26679   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26680  fstype=SVR3
26681
26682 fi
26683 rm -f conftest.err conftest.$ac_ext
26684 fi
26685 if test $fstype = no; then
26686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h.  */
26688
26689           #include <sys/statfs.h>
26690           #include <sys/vmount.h>
26691
26692 _ACEOF
26693 if ac_fn_c_try_cpp "$LINENO"; then :
26694   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26695  fstype=AIX
26696
26697 fi
26698 rm -f conftest.err conftest.$ac_ext
26699 fi
26700 if test $fstype = no; then
26701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26702 /* end confdefs.h.  */
26703
26704           #include <mntent.h>
26705
26706 _ACEOF
26707 if ac_fn_c_try_cpp "$LINENO"; then :
26708   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26709  fstype=4.3BSD
26710
26711 fi
26712 rm -f conftest.err conftest.$ac_ext
26713 fi
26714 if test $fstype = no; then
26715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716 /* end confdefs.h.  */
26717 #include <sys/mount.h>
26718
26719 _ACEOF
26720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26721   $EGREP "f_type;" >/dev/null 2>&1; then :
26722   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26723  fstype=4.4BSD/OSF1
26724 fi
26725 rm -f conftest*
26726
26727 fi
26728 if test $fstype = no; then
26729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26730 /* end confdefs.h.  */
26731
26732           #include <sys/mount.h>
26733           #include <sys/fs_types.h>
26734
26735 _ACEOF
26736 if ac_fn_c_try_cpp "$LINENO"; then :
26737   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26738  fstype=Ultrix
26739
26740 fi
26741 rm -f conftest.err conftest.$ac_ext
26742 fi
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26744 $as_echo "$fstype" >&6; }
26745
26746 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26747 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26748
26749 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26750
26751 fi
26752
26753
26754
26755 ac_ext=cpp
26756 ac_cpp='$CXXCPP $CPPFLAGS'
26757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26760
26761 for ac_func in backtrace
26762 do :
26763   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26764 if test "x$ac_cv_func_backtrace" = x""yes; then :
26765   cat >>confdefs.h <<_ACEOF
26766 #define HAVE_BACKTRACE 1
26767 _ACEOF
26768
26769 fi
26770 done
26771
26772 ac_ext=c
26773 ac_cpp='$CPP $CPPFLAGS'
26774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26777
26778
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26780 $as_echo_n "checking return type of signal handlers... " >&6; }
26781 if test "${ac_cv_type_signal+set}" = set; then :
26782   $as_echo_n "(cached) " >&6
26783 else
26784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26785 /* end confdefs.h.  */
26786 #include <sys/types.h>
26787 #include <signal.h>
26788
26789 int
26790 main ()
26791 {
26792 return *(signal (0, 0)) (0) == 1;
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"; then :
26798   ac_cv_type_signal=int
26799 else
26800   ac_cv_type_signal=void
26801 fi
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 fi
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26805 $as_echo "$ac_cv_type_signal" >&6; }
26806
26807 cat >>confdefs.h <<_ACEOF
26808 #define RETSIGTYPE $ac_cv_type_signal
26809 _ACEOF
26810
26811
26812
26813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26814 $as_echo_n "checking for type of signal functions... " >&6; }
26815   if test "${bash_cv_signal_vintage+set}" = set; then :
26816   $as_echo_n "(cached) " >&6
26817 else
26818
26819     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821 #include <signal.h>
26822 int
26823 main ()
26824 {
26825
26826       sigset_t ss;
26827       struct sigaction sa;
26828       sigemptyset(&ss); sigsuspend(&ss);
26829       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26830       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26831
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 if ac_fn_c_try_link "$LINENO"; then :
26837   bash_cv_signal_vintage="posix"
26838 else
26839
26840       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841 /* end confdefs.h.  */
26842 #include <signal.h>
26843 int
26844 main ()
26845 {
26846
26847           int mask = sigmask(SIGINT);
26848           sigsetmask(mask); sigblock(mask); sigpause(mask);
26849
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 if ac_fn_c_try_link "$LINENO"; then :
26855   bash_cv_signal_vintage="4.2bsd"
26856 else
26857
26858         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26859 /* end confdefs.h.  */
26860
26861           #include <signal.h>
26862           RETSIGTYPE foo() { }
26863 int
26864 main ()
26865 {
26866
26867                   int mask = sigmask(SIGINT);
26868                   sigset(SIGINT, foo); sigrelse(SIGINT);
26869                   sighold(SIGINT); sigpause(SIGINT);
26870
26871   ;
26872   return 0;
26873 }
26874 _ACEOF
26875 if ac_fn_c_try_link "$LINENO"; then :
26876   bash_cv_signal_vintage="svr3"
26877 else
26878   bash_cv_signal_vintage="v7"
26879
26880 fi
26881 rm -f core conftest.err conftest.$ac_objext \
26882     conftest$ac_exeext conftest.$ac_ext
26883
26884 fi
26885 rm -f core conftest.err conftest.$ac_objext \
26886     conftest$ac_exeext conftest.$ac_ext
26887
26888 fi
26889 rm -f core conftest.err conftest.$ac_objext \
26890     conftest$ac_exeext conftest.$ac_ext
26891
26892 fi
26893
26894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26895 $as_echo "$bash_cv_signal_vintage" >&6; }
26896   if test "$bash_cv_signal_vintage" = "posix"; then
26897     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26898
26899   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26900     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26901
26902   elif test "$bash_cv_signal_vintage" = "svr3"; then
26903     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26904
26905   fi
26906
26907 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26908 if test "x$ac_cv_type_mode_t" = x""yes; then :
26909
26910 else
26911
26912 cat >>confdefs.h <<_ACEOF
26913 #define mode_t int
26914 _ACEOF
26915
26916 fi
26917
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26919 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26920 if test "${ac_cv_type_uid_t+set}" = set; then :
26921   $as_echo_n "(cached) " >&6
26922 else
26923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h.  */
26925 #include <sys/types.h>
26926
26927 _ACEOF
26928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26929   $EGREP "uid_t" >/dev/null 2>&1; then :
26930   ac_cv_type_uid_t=yes
26931 else
26932   ac_cv_type_uid_t=no
26933 fi
26934 rm -f conftest*
26935
26936 fi
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26938 $as_echo "$ac_cv_type_uid_t" >&6; }
26939 if test $ac_cv_type_uid_t = no; then
26940
26941 $as_echo "#define uid_t int" >>confdefs.h
26942
26943
26944 $as_echo "#define gid_t int" >>confdefs.h
26945
26946 fi
26947
26948 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26949 if test "x$ac_cv_type_size_t" = x""yes; then :
26950
26951 else
26952
26953 cat >>confdefs.h <<_ACEOF
26954 #define size_t unsigned int
26955 _ACEOF
26956
26957 fi
26958
26959 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26960 if test "x$ac_cv_type_pid_t" = x""yes; then :
26961
26962 else
26963
26964 cat >>confdefs.h <<_ACEOF
26965 #define pid_t int
26966 _ACEOF
26967
26968 fi
26969
26970 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26971 if test "x$ac_cv_type_off_t" = x""yes; then :
26972
26973 else
26974
26975 cat >>confdefs.h <<_ACEOF
26976 #define off_t long int
26977 _ACEOF
26978
26979 fi
26980
26981
26982   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26983 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26984
26985 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26986
26987 else
26988   for ac_type in 'int' 'long int' 'long long int'; do
26989        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h.  */
26991 $ac_includes_default
26992 int
26993 main ()
26994 {
26995 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26996 test_array [0] = 0
26997
26998   ;
26999   return 0;
27000 }
27001 _ACEOF
27002 if ac_fn_c_try_compile "$LINENO"; then :
27003
27004 cat >>confdefs.h <<_ACEOF
27005 #define intptr_t $ac_type
27006 _ACEOF
27007
27008           ac_type=
27009 fi
27010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011        test -z "$ac_type" && break
27012      done
27013 fi
27014
27015
27016
27017   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27018 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
27019
27020 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27021
27022 else
27023   for ac_type in 'unsigned int' 'unsigned long int' \
27024         'unsigned long long int'; do
27025        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27026 /* end confdefs.h.  */
27027 $ac_includes_default
27028 int
27029 main ()
27030 {
27031 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27032 test_array [0] = 0
27033
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 if ac_fn_c_try_compile "$LINENO"; then :
27039
27040 cat >>confdefs.h <<_ACEOF
27041 #define uintptr_t $ac_type
27042 _ACEOF
27043
27044           ac_type=
27045 fi
27046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047        test -z "$ac_type" && break
27048      done
27049 fi
27050
27051
27052 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27053 if test "x$ac_cv_type_ino_t" = x""yes; then :
27054
27055 else
27056
27057 cat >>confdefs.h <<_ACEOF
27058 #define ino_t unsigned long
27059 _ACEOF
27060
27061 fi
27062
27063 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27064 if test "x$ac_cv_type_dev_t" = x""yes; then :
27065
27066 else
27067
27068 cat >>confdefs.h <<_ACEOF
27069 #define dev_t unsigned long
27070 _ACEOF
27071
27072 fi
27073
27074 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27075 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27076
27077 else
27078
27079 cat >>confdefs.h <<_ACEOF
27080 #define daddr_t long
27081 _ACEOF
27082
27083 fi
27084
27085 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27086 if test "x$ac_cv_type_major_t" = x""yes; then :
27087
27088 else
27089
27090 cat >>confdefs.h <<_ACEOF
27091 #define major_t int
27092 _ACEOF
27093
27094 fi
27095
27096 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27097 if test "x$ac_cv_type_minor_t" = x""yes; then :
27098
27099 else
27100
27101 cat >>confdefs.h <<_ACEOF
27102 #define minor_t int
27103 _ACEOF
27104
27105 fi
27106
27107 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27108 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27109
27110 else
27111
27112 cat >>confdefs.h <<_ACEOF
27113 #define ssize_t int
27114 _ACEOF
27115
27116 fi
27117
27118 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27119 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27120
27121 cat >>confdefs.h <<_ACEOF
27122 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27123 _ACEOF
27124
27125
27126 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27127
27128 else
27129   case " $LIBOBJS " in
27130   *" fileblocks.$ac_objext "* ) ;;
27131   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27132  ;;
27133 esac
27134
27135 fi
27136
27137
27138 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27139 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define HAVE_STRUCT_STAT_ST_RDEV 1
27143 _ACEOF
27144
27145
27146 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27147
27148 fi
27149
27150
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27152 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27153 if test "${ac_cv_struct_tm+set}" = set; then :
27154   $as_echo_n "(cached) " >&6
27155 else
27156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27157 /* end confdefs.h.  */
27158 #include <sys/types.h>
27159 #include <time.h>
27160
27161 int
27162 main ()
27163 {
27164 struct tm tm;
27165                                      int *p = &tm.tm_sec;
27166                                      return !p;
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 if ac_fn_c_try_compile "$LINENO"; then :
27172   ac_cv_struct_tm=time.h
27173 else
27174   ac_cv_struct_tm=sys/time.h
27175 fi
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27177 fi
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27179 $as_echo "$ac_cv_struct_tm" >&6; }
27180 if test $ac_cv_struct_tm = sys/time.h; then
27181
27182 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27183
27184 fi
27185
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27188 if test "${ac_cv_c_const+set}" = set; then :
27189   $as_echo_n "(cached) " >&6
27190 else
27191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27192 /* end confdefs.h.  */
27193
27194 int
27195 main ()
27196 {
27197 /* FIXME: Include the comments suggested by Paul. */
27198 #ifndef __cplusplus
27199   /* Ultrix mips cc rejects this.  */
27200   typedef int charset[2];
27201   const charset cs;
27202   /* SunOS 4.1.1 cc rejects this.  */
27203   char const *const *pcpcc;
27204   char **ppc;
27205   /* NEC SVR4.0.2 mips cc rejects this.  */
27206   struct point {int x, y;};
27207   static struct point const zero = {0,0};
27208   /* AIX XL C 1.02.0.0 rejects this.
27209      It does not let you subtract one const X* pointer from another in
27210      an arm of an if-expression whose if-part is not a constant
27211      expression */
27212   const char *g = "string";
27213   pcpcc = &g + (g ? g-g : 0);
27214   /* HPUX 7.0 cc rejects these. */
27215   ++pcpcc;
27216   ppc = (char**) pcpcc;
27217   pcpcc = (char const *const *) ppc;
27218   { /* SCO 3.2v4 cc rejects this.  */
27219     char *t;
27220     char const *s = 0 ? (char *) 0 : (char const *) 0;
27221
27222     *t++ = 0;
27223     if (s) return 0;
27224   }
27225   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27226     int x[] = {25, 17};
27227     const int *foo = &x[0];
27228     ++foo;
27229   }
27230   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27231     typedef const int *iptr;
27232     iptr p = 0;
27233     ++p;
27234   }
27235   { /* AIX XL C 1.02.0.0 rejects this saying
27236        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27237     struct s { int j; const int *ap[3]; };
27238     struct s *b; b->j = 5;
27239   }
27240   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27241     const int foo = 10;
27242     if (!foo) return 0;
27243   }
27244   return !cs[0] && !zero.x;
27245 #endif
27246
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 if ac_fn_c_try_compile "$LINENO"; then :
27252   ac_cv_c_const=yes
27253 else
27254   ac_cv_c_const=no
27255 fi
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 fi
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27259 $as_echo "$ac_cv_c_const" >&6; }
27260 if test $ac_cv_c_const = no; then
27261
27262 $as_echo "#define const /**/" >>confdefs.h
27263
27264 fi
27265
27266
27267 # The cast to long int works around a bug in the HP C Compiler
27268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27270 # This bug is HP SR number 8606223364.
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27272 $as_echo_n "checking size of char... " >&6; }
27273 if test "${ac_cv_sizeof_char+set}" = set; then :
27274   $as_echo_n "(cached) " >&6
27275 else
27276   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27277
27278 else
27279   if test "$ac_cv_type_char" = yes; then
27280      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27282 { as_fn_set_status 77
27283 as_fn_error "cannot compute sizeof (char)
27284 See \`config.log' for more details." "$LINENO" 5; }; }
27285    else
27286      ac_cv_sizeof_char=0
27287    fi
27288 fi
27289
27290 fi
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27292 $as_echo "$ac_cv_sizeof_char" >&6; }
27293
27294
27295
27296 cat >>confdefs.h <<_ACEOF
27297 #define SIZEOF_CHAR $ac_cv_sizeof_char
27298 _ACEOF
27299
27300
27301 # The cast to long int works around a bug in the HP C Compiler
27302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27304 # This bug is HP SR number 8606223364.
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27306 $as_echo_n "checking size of short int... " >&6; }
27307 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27308   $as_echo_n "(cached) " >&6
27309 else
27310   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27311
27312 else
27313   if test "$ac_cv_type_short_int" = yes; then
27314      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27316 { as_fn_set_status 77
27317 as_fn_error "cannot compute sizeof (short int)
27318 See \`config.log' for more details." "$LINENO" 5; }; }
27319    else
27320      ac_cv_sizeof_short_int=0
27321    fi
27322 fi
27323
27324 fi
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27326 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27327
27328
27329
27330 cat >>confdefs.h <<_ACEOF
27331 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27332 _ACEOF
27333
27334
27335 # The cast to long int works around a bug in the HP C Compiler
27336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27338 # This bug is HP SR number 8606223364.
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27340 $as_echo_n "checking size of int... " >&6; }
27341 if test "${ac_cv_sizeof_int+set}" = set; then :
27342   $as_echo_n "(cached) " >&6
27343 else
27344   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27345
27346 else
27347   if test "$ac_cv_type_int" = yes; then
27348      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27350 { as_fn_set_status 77
27351 as_fn_error "cannot compute sizeof (int)
27352 See \`config.log' for more details." "$LINENO" 5; }; }
27353    else
27354      ac_cv_sizeof_int=0
27355    fi
27356 fi
27357
27358 fi
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27360 $as_echo "$ac_cv_sizeof_int" >&6; }
27361
27362
27363
27364 cat >>confdefs.h <<_ACEOF
27365 #define SIZEOF_INT $ac_cv_sizeof_int
27366 _ACEOF
27367
27368
27369 # The cast to long int works around a bug in the HP C Compiler
27370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27372 # This bug is HP SR number 8606223364.
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27374 $as_echo_n "checking size of long int... " >&6; }
27375 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27376   $as_echo_n "(cached) " >&6
27377 else
27378   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27379
27380 else
27381   if test "$ac_cv_type_long_int" = yes; then
27382      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27384 { as_fn_set_status 77
27385 as_fn_error "cannot compute sizeof (long int)
27386 See \`config.log' for more details." "$LINENO" 5; }; }
27387    else
27388      ac_cv_sizeof_long_int=0
27389    fi
27390 fi
27391
27392 fi
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27394 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27395
27396
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27400 _ACEOF
27401
27402
27403 # The cast to long int works around a bug in the HP C Compiler
27404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27406 # This bug is HP SR number 8606223364.
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27408 $as_echo_n "checking size of long long int... " >&6; }
27409 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27410   $as_echo_n "(cached) " >&6
27411 else
27412   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27413
27414 else
27415   if test "$ac_cv_type_long_long_int" = yes; then
27416      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27418 { as_fn_set_status 77
27419 as_fn_error "cannot compute sizeof (long long int)
27420 See \`config.log' for more details." "$LINENO" 5; }; }
27421    else
27422      ac_cv_sizeof_long_long_int=0
27423    fi
27424 fi
27425
27426 fi
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27428 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27429
27430
27431
27432 cat >>confdefs.h <<_ACEOF
27433 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27434 _ACEOF
27435
27436
27437 # The cast to long int works around a bug in the HP C Compiler
27438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27440 # This bug is HP SR number 8606223364.
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27442 $as_echo_n "checking size of int *... " >&6; }
27443 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27444   $as_echo_n "(cached) " >&6
27445 else
27446   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27447
27448 else
27449   if test "$ac_cv_type_int_p" = yes; then
27450      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27452 { as_fn_set_status 77
27453 as_fn_error "cannot compute sizeof (int *)
27454 See \`config.log' for more details." "$LINENO" 5; }; }
27455    else
27456      ac_cv_sizeof_int_p=0
27457    fi
27458 fi
27459
27460 fi
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27462 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27463
27464
27465
27466 cat >>confdefs.h <<_ACEOF
27467 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27468 _ACEOF
27469
27470
27471
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27473 $as_echo_n "checking for u_int type... " >&6; }
27474 if test "${ac_cv_have_u_int+set}" = set; then :
27475   $as_echo_n "(cached) " >&6
27476 else
27477
27478        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27479 /* end confdefs.h.  */
27480
27481               #include <sys/types.h>
27482
27483 int
27484 main ()
27485 {
27486
27487               u_int a; a = 1;
27488
27489   ;
27490   return 0;
27491 }
27492 _ACEOF
27493 if ac_fn_c_try_compile "$LINENO"; then :
27494
27495               ac_cv_have_u_int="yes"
27496
27497 else
27498
27499               ac_cv_have_u_int="no"
27500
27501
27502 fi
27503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27504
27505
27506 fi
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27508 $as_echo "$ac_cv_have_u_int" >&6; }
27509 if test "x$ac_cv_have_u_int" = "xyes" ; then
27510    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27511
27512    have_u_int=1
27513 fi
27514
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27516 $as_echo_n "checking for intmax_t type... " >&6; }
27517 if test "${ac_cv_have_intmax_t+set}" = set; then :
27518   $as_echo_n "(cached) " >&6
27519 else
27520
27521        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h.  */
27523
27524               #include <sys/types.h>
27525
27526 int
27527 main ()
27528 {
27529
27530               intmax_t a; a = 1;
27531
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 if ac_fn_c_try_compile "$LINENO"; then :
27537
27538               ac_cv_have_intmax_t="yes"
27539
27540 else
27541
27542               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27543 /* end confdefs.h.  */
27544
27545                      #include <stdint.h>
27546
27547 int
27548 main ()
27549 {
27550
27551                      intmax_t a; a = 1;
27552
27553   ;
27554   return 0;
27555 }
27556 _ACEOF
27557 if ac_fn_c_try_compile "$LINENO"; then :
27558
27559                      ac_cv_have_intmax_t="yes"
27560
27561 else
27562
27563                      ac_cv_have_intmax_t="no"
27564
27565
27566 fi
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27568
27569
27570 fi
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572
27573
27574 fi
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27576 $as_echo "$ac_cv_have_intmax_t" >&6; }
27577 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27578    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27579
27580    have_intmax_t=1
27581 fi
27582
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27584 $as_echo_n "checking for u_intmax_t type... " >&6; }
27585 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27586   $as_echo_n "(cached) " >&6
27587 else
27588
27589        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h.  */
27591
27592               #include <sys/types.h>
27593
27594 int
27595 main ()
27596 {
27597
27598               u_intmax_t a; a = 1;
27599
27600   ;
27601   return 0;
27602 }
27603 _ACEOF
27604 if ac_fn_c_try_compile "$LINENO"; then :
27605
27606               ac_cv_have_u_intmax_t="yes"
27607
27608 else
27609
27610               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27611 /* end confdefs.h.  */
27612
27613                      #include <stdint.h>
27614
27615 int
27616 main ()
27617 {
27618
27619                     u_intmax_t a; a = 1;
27620
27621   ;
27622   return 0;
27623 }
27624 _ACEOF
27625 if ac_fn_c_try_compile "$LINENO"; then :
27626
27627                     ac_cv_have_u_intmax_t="yes"
27628
27629 else
27630
27631                     ac_cv_have_u_intmax_t="no"
27632
27633
27634 fi
27635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27636
27637
27638 fi
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640
27641
27642 fi
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27644 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27645 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27646    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27647
27648    have_u_intmax_t=1
27649 fi
27650
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27652 $as_echo_n "checking for intXX_t types... " >&6; }
27653 if test "${ac_cv_have_intxx_t+set}" = set; then :
27654   $as_echo_n "(cached) " >&6
27655 else
27656
27657        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27658 /* end confdefs.h.  */
27659
27660               #include <sys/types.h>
27661
27662 int
27663 main ()
27664 {
27665
27666               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27667
27668   ;
27669   return 0;
27670 }
27671 _ACEOF
27672 if ac_fn_c_try_compile "$LINENO"; then :
27673
27674               ac_cv_have_intxx_t="yes"
27675
27676 else
27677
27678               ac_cv_have_intxx_t="no"
27679
27680
27681 fi
27682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27683
27684
27685 fi
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27687 $as_echo "$ac_cv_have_intxx_t" >&6; }
27688 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27689    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27690
27691    have_intxx_t=1
27692 fi
27693
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27695 $as_echo_n "checking for int64_t type... " >&6; }
27696 if test "${ac_cv_have_int64_t+set}" = set; then :
27697   $as_echo_n "(cached) " >&6
27698 else
27699
27700        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27701 /* end confdefs.h.  */
27702
27703               #include <sys/types.h>
27704
27705 int
27706 main ()
27707 {
27708
27709               int64_t a; a = 1;
27710
27711   ;
27712   return 0;
27713 }
27714 _ACEOF
27715 if ac_fn_c_try_compile "$LINENO"; then :
27716
27717               ac_cv_have_int64_t="yes"
27718
27719 else
27720
27721               ac_cv_have_int64_t="no"
27722
27723
27724 fi
27725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726
27727
27728 fi
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27730 $as_echo "$ac_cv_have_int64_t" >&6; }
27731 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27732    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27733
27734    have_int64_t=1
27735 fi
27736
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27738 $as_echo_n "checking for u_intXX_t types... " >&6; }
27739 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27740   $as_echo_n "(cached) " >&6
27741 else
27742
27743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27744 /* end confdefs.h.  */
27745
27746               #include <sys/types.h>
27747
27748 int
27749 main ()
27750 {
27751
27752               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27753
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 if ac_fn_c_try_compile "$LINENO"; then :
27759
27760              ac_cv_have_u_intxx_t="yes"
27761
27762 else
27763
27764              ac_cv_have_u_intxx_t="no"
27765
27766
27767 fi
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27769
27770
27771 fi
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27773 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27774 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27775    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27776
27777    have_u_intxx_t=1
27778 fi
27779
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27781 $as_echo_n "checking for u_int64_t types... " >&6; }
27782 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27783   $as_echo_n "(cached) " >&6
27784 else
27785
27786        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27787 /* end confdefs.h.  */
27788
27789               #include <sys/types.h>
27790
27791 int
27792 main ()
27793 {
27794
27795               u_int64_t a; a = 1;
27796
27797   ;
27798   return 0;
27799 }
27800 _ACEOF
27801 if ac_fn_c_try_compile "$LINENO"; then :
27802
27803              ac_cv_have_u_int64_t="yes"
27804
27805 else
27806
27807              ac_cv_have_u_int64_t="no"
27808
27809
27810 fi
27811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812
27813
27814 fi
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27816 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27817 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27818    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27819
27820    have_u_int64_t=1
27821 fi
27822
27823 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27824     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27825 then
27826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27827 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27829 /* end confdefs.h.  */
27830
27831           #include <sys/bitypes.h>
27832
27833 int
27834 main ()
27835 {
27836
27837           int8_t a; int16_t b; int32_t c;
27838           u_int8_t e; u_int16_t f; u_int32_t g;
27839           a = b = c = e = f = g = 1;
27840
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 if ac_fn_c_try_compile "$LINENO"; then :
27846
27847           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27848
27849           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27850
27851           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27852
27853           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27854 $as_echo "yes" >&6; }
27855
27856 else
27857
27858           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27859 $as_echo "no" >&6; }
27860
27861
27862 fi
27863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27864 fi
27865
27866 if test -z "$have_u_intxx_t" ; then
27867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27868 $as_echo_n "checking for uintXX_t types... " >&6; }
27869 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27870   $as_echo_n "(cached) " >&6
27871 else
27872
27873           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27874 /* end confdefs.h.  */
27875
27876                  #include <sys/types.h>
27877
27878 int
27879 main ()
27880 {
27881
27882                  uint8_t a; uint16_t b;
27883                  uint32_t c; a = b = c = 1;
27884
27885   ;
27886   return 0;
27887 }
27888 _ACEOF
27889 if ac_fn_c_try_compile "$LINENO"; then :
27890
27891                 ac_cv_have_uintxx_t="yes"
27892
27893 else
27894
27895                 ac_cv_have_uintxx_t="no"
27896
27897
27898 fi
27899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900
27901
27902 fi
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27904 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27905    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27906       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27907
27908    fi
27909 fi
27910
27911 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27912     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27913 then
27914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27915 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h.  */
27918
27919           #include <sys/bitypes.h>
27920
27921 int
27922 main ()
27923 {
27924
27925           int64_t a; u_int64_t b;
27926           a = b = 1;
27927
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 if ac_fn_c_try_compile "$LINENO"; then :
27933
27934           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27935
27936           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27937
27938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27939 $as_echo "yes" >&6; }
27940
27941 else
27942
27943           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27944 $as_echo "no" >&6; }
27945
27946
27947 fi
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949 fi
27950
27951 if (test -z "$have_uintxx_t" && \
27952     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27953 then
27954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27955 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27957 /* end confdefs.h.  */
27958
27959           #include <sys/bitypes.h>
27960
27961 int
27962 main ()
27963 {
27964
27965           uint8_t a; uint16_t b;
27966           uint32_t c; a = b = c = 1;
27967
27968   ;
27969   return 0;
27970 }
27971 _ACEOF
27972 if ac_fn_c_try_compile "$LINENO"; then :
27973
27974           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27975
27976           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27977 $as_echo "yes" >&6; }
27978
27979 else
27980
27981           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27982 $as_echo "no" >&6; }
27983
27984
27985 fi
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27987 fi
27988
27989 for ac_func in \
27990    fork \
27991    getcwd \
27992    gethostname \
27993    getpid \
27994    gettimeofday \
27995    setpgid \
27996    setpgrp \
27997    setsid \
27998    signal \
27999    strerror \
28000    strncmp \
28001    strncpy \
28002    vfprintf \
28003
28004 do :
28005   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28007 eval as_val=\$$as_ac_var
28008    if test "x$as_val" = x""yes; then :
28009   cat >>confdefs.h <<_ACEOF
28010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28011 _ACEOF
28012
28013 else
28014   echo 'configure: cannot find needed function.'; exit 1
28015
28016 fi
28017 done
28018
28019
28020 for ac_func in getpagesize
28021 do :
28022   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28023 if test "x$ac_cv_func_getpagesize" = x""yes; then :
28024   cat >>confdefs.h <<_ACEOF
28025 #define HAVE_GETPAGESIZE 1
28026 _ACEOF
28027
28028 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28029
28030 fi
28031 done
28032
28033 for ac_func in malloc_trim
28034 do :
28035   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28036 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28037   cat >>confdefs.h <<_ACEOF
28038 #define HAVE_MALLOC_TRIM 1
28039 _ACEOF
28040
28041 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28042
28043 fi
28044 done
28045
28046
28047 for ac_func in fchdir
28048 do :
28049   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28050 if test "x$ac_cv_func_fchdir" = x""yes; then :
28051   cat >>confdefs.h <<_ACEOF
28052 #define HAVE_FCHDIR 1
28053 _ACEOF
28054  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28055
28056 fi
28057 done
28058
28059 for ac_func in strtoll
28060 do :
28061   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28062 if test "x$ac_cv_func_strtoll" = x""yes; then :
28063   cat >>confdefs.h <<_ACEOF
28064 #define HAVE_STRTOLL 1
28065 _ACEOF
28066  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28067
28068 fi
28069 done
28070
28071 for ac_func in posix_fadvise
28072 do :
28073   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28074 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28075   cat >>confdefs.h <<_ACEOF
28076 #define HAVE_POSIX_FADVISE 1
28077 _ACEOF
28078
28079 fi
28080 done
28081
28082 for ac_func in fdatasync
28083 do :
28084   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28085 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28086   cat >>confdefs.h <<_ACEOF
28087 #define HAVE_FDATASYNC 1
28088 _ACEOF
28089
28090 fi
28091 done
28092
28093
28094 for ac_func in chflags
28095 do :
28096   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28097 if test "x$ac_cv_func_chflags" = x""yes; then :
28098   cat >>confdefs.h <<_ACEOF
28099 #define HAVE_CHFLAGS 1
28100 _ACEOF
28101
28102 fi
28103 done
28104
28105
28106 for ac_func in snprintf vsnprintf gethostid fseeko
28107 do :
28108   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28109 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28110 eval as_val=\$$as_ac_var
28111    if test "x$as_val" = x""yes; then :
28112   cat >>confdefs.h <<_ACEOF
28113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28114 _ACEOF
28115
28116 fi
28117 done
28118
28119
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28121 $as_echo_n "checking for va_copy... " >&6; }
28122 if test "${ba_cv_va_copy+set}" = set; then :
28123   $as_echo_n "(cached) " >&6
28124 else
28125
28126        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28127 /* end confdefs.h.  */
28128
28129               #include <stdarg.h>
28130               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28131               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28132
28133 int
28134 main ()
28135 {
28136
28137               call_use_va_copy(1,2,3)
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 if ac_fn_c_try_link "$LINENO"; then :
28144
28145               ba_cv_va_copy=yes,
28146
28147 else
28148
28149               ba_cv_va_copy=no
28150
28151
28152 fi
28153 rm -f core conftest.err conftest.$ac_objext \
28154     conftest$ac_exeext conftest.$ac_ext
28155
28156
28157 fi
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28159 $as_echo "$ba_cv_va_copy" >&6; }
28160 test $ba_cv_va_copy = yes &&
28161 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28162
28163
28164 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28165 do :
28166   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28167 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28168 eval as_val=\$$as_ac_var
28169    if test "x$as_val" = x""yes; then :
28170   cat >>confdefs.h <<_ACEOF
28171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28172 _ACEOF
28173
28174 fi
28175 done
28176
28177
28178 # If resolver functions are not in libc check for -lnsl or -lresolv.
28179 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28180 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28182 $as_echo "using libc's resolver" >&6; }
28183 else
28184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28185 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28186 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28187   $as_echo_n "(cached) " >&6
28188 else
28189   ac_check_lib_save_LIBS=$LIBS
28190 LIBS="-lnsl  $LIBS"
28191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192 /* end confdefs.h.  */
28193
28194 /* Override any GCC internal prototype to avoid an error.
28195    Use char because int might match the return type of a GCC
28196    builtin and then its argument prototype would still apply.  */
28197 #ifdef __cplusplus
28198 extern "C"
28199 #endif
28200 char gethostbyname_r ();
28201 int
28202 main ()
28203 {
28204 return gethostbyname_r ();
28205   ;
28206   return 0;
28207 }
28208 _ACEOF
28209 if ac_fn_c_try_link "$LINENO"; then :
28210   ac_cv_lib_nsl_gethostbyname_r=yes
28211 else
28212   ac_cv_lib_nsl_gethostbyname_r=no
28213 fi
28214 rm -f core conftest.err conftest.$ac_objext \
28215     conftest$ac_exeext conftest.$ac_ext
28216 LIBS=$ac_check_lib_save_LIBS
28217 fi
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28219 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28220 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28221   cat >>confdefs.h <<_ACEOF
28222 #define HAVE_LIBNSL 1
28223 _ACEOF
28224
28225   LIBS="-lnsl $LIBS"
28226
28227 fi
28228
28229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28230 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28231 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28232   $as_echo_n "(cached) " >&6
28233 else
28234   ac_check_lib_save_LIBS=$LIBS
28235 LIBS="-lresolv  $LIBS"
28236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28237 /* end confdefs.h.  */
28238
28239 /* Override any GCC internal prototype to avoid an error.
28240    Use char because int might match the return type of a GCC
28241    builtin and then its argument prototype would still apply.  */
28242 #ifdef __cplusplus
28243 extern "C"
28244 #endif
28245 char gethostbyname_r ();
28246 int
28247 main ()
28248 {
28249 return gethostbyname_r ();
28250   ;
28251   return 0;
28252 }
28253 _ACEOF
28254 if ac_fn_c_try_link "$LINENO"; then :
28255   ac_cv_lib_resolv_gethostbyname_r=yes
28256 else
28257   ac_cv_lib_resolv_gethostbyname_r=no
28258 fi
28259 rm -f core conftest.err conftest.$ac_objext \
28260     conftest$ac_exeext conftest.$ac_ext
28261 LIBS=$ac_check_lib_save_LIBS
28262 fi
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28264 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28265 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28266   cat >>confdefs.h <<_ACEOF
28267 #define HAVE_LIBRESOLV 1
28268 _ACEOF
28269
28270   LIBS="-lresolv $LIBS"
28271
28272 fi
28273
28274 fi
28275
28276
28277 for ac_func in inet_pton
28278 do :
28279   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28280 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28281   cat >>confdefs.h <<_ACEOF
28282 #define HAVE_INET_PTON 1
28283 _ACEOF
28284  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28285
28286 fi
28287 done
28288
28289 for ac_func in inet_ntop
28290 do :
28291   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28292 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28293   cat >>confdefs.h <<_ACEOF
28294 #define HAVE_INET_NTOP 1
28295 _ACEOF
28296  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28297
28298 fi
28299 done
28300
28301 for ac_func in gethostbyname2
28302 do :
28303   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28304 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28305   cat >>confdefs.h <<_ACEOF
28306 #define HAVE_GETHOSTBYNAME2 1
28307 _ACEOF
28308  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28309
28310 fi
28311 done
28312
28313
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28315 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28316 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28317   $as_echo_n "(cached) " >&6
28318 else
28319
28320        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321 /* end confdefs.h.  */
28322
28323               #include <sys/socket.h>
28324
28325 int
28326 main ()
28327 {
28328
28329               struct sockaddr s; s.sa_len;
28330
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 if ac_fn_c_try_compile "$LINENO"; then :
28336
28337              ac_cv_struct_sockaddr_sa_len=yes
28338
28339 else
28340   ac_cv_struct_sockaddr_sa_len=no
28341
28342
28343 fi
28344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28345
28346
28347 fi
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28349 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28350
28351 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28352
28353 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28354
28355 fi
28356
28357 for ac_func in strftime
28358 do :
28359   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28360 if test "x$ac_cv_func_strftime" = x""yes; then :
28361   cat >>confdefs.h <<_ACEOF
28362 #define HAVE_STRFTIME 1
28363 _ACEOF
28364
28365 else
28366   # strftime is in -lintl on SCO UNIX.
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28368 $as_echo_n "checking for strftime in -lintl... " >&6; }
28369 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28370   $as_echo_n "(cached) " >&6
28371 else
28372   ac_check_lib_save_LIBS=$LIBS
28373 LIBS="-lintl  $LIBS"
28374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28375 /* end confdefs.h.  */
28376
28377 /* Override any GCC internal prototype to avoid an error.
28378    Use char because int might match the return type of a GCC
28379    builtin and then its argument prototype would still apply.  */
28380 #ifdef __cplusplus
28381 extern "C"
28382 #endif
28383 char strftime ();
28384 int
28385 main ()
28386 {
28387 return strftime ();
28388   ;
28389   return 0;
28390 }
28391 _ACEOF
28392 if ac_fn_c_try_link "$LINENO"; then :
28393   ac_cv_lib_intl_strftime=yes
28394 else
28395   ac_cv_lib_intl_strftime=no
28396 fi
28397 rm -f core conftest.err conftest.$ac_objext \
28398     conftest$ac_exeext conftest.$ac_ext
28399 LIBS=$ac_check_lib_save_LIBS
28400 fi
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28402 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28403 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28404   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28405
28406 LIBS="-lintl $LIBS"
28407 fi
28408
28409 fi
28410 done
28411
28412 for ac_func in vprintf
28413 do :
28414   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28415 if test "x$ac_cv_func_vprintf" = x""yes; then :
28416   cat >>confdefs.h <<_ACEOF
28417 #define HAVE_VPRINTF 1
28418 _ACEOF
28419
28420 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28421 if test "x$ac_cv_func__doprnt" = x""yes; then :
28422
28423 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28424
28425 fi
28426
28427 fi
28428 done
28429
28430
28431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28432 # for constant arguments.  Useless!
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28434 $as_echo_n "checking for working alloca.h... " >&6; }
28435 if test "${ac_cv_working_alloca_h+set}" = set; then :
28436   $as_echo_n "(cached) " >&6
28437 else
28438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28439 /* end confdefs.h.  */
28440 #include <alloca.h>
28441 int
28442 main ()
28443 {
28444 char *p = (char *) alloca (2 * sizeof (int));
28445                           if (p) return 0;
28446   ;
28447   return 0;
28448 }
28449 _ACEOF
28450 if ac_fn_c_try_link "$LINENO"; then :
28451   ac_cv_working_alloca_h=yes
28452 else
28453   ac_cv_working_alloca_h=no
28454 fi
28455 rm -f core conftest.err conftest.$ac_objext \
28456     conftest$ac_exeext conftest.$ac_ext
28457 fi
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28459 $as_echo "$ac_cv_working_alloca_h" >&6; }
28460 if test $ac_cv_working_alloca_h = yes; then
28461
28462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28463
28464 fi
28465
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28467 $as_echo_n "checking for alloca... " >&6; }
28468 if test "${ac_cv_func_alloca_works+set}" = set; then :
28469   $as_echo_n "(cached) " >&6
28470 else
28471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28472 /* end confdefs.h.  */
28473 #ifdef __GNUC__
28474 # define alloca __builtin_alloca
28475 #else
28476 # ifdef _MSC_VER
28477 #  include <malloc.h>
28478 #  define alloca _alloca
28479 # else
28480 #  ifdef HAVE_ALLOCA_H
28481 #   include <alloca.h>
28482 #  else
28483 #   ifdef _AIX
28484  #pragma alloca
28485 #   else
28486 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28487 char *alloca ();
28488 #    endif
28489 #   endif
28490 #  endif
28491 # endif
28492 #endif
28493
28494 int
28495 main ()
28496 {
28497 char *p = (char *) alloca (1);
28498                                     if (p) return 0;
28499   ;
28500   return 0;
28501 }
28502 _ACEOF
28503 if ac_fn_c_try_link "$LINENO"; then :
28504   ac_cv_func_alloca_works=yes
28505 else
28506   ac_cv_func_alloca_works=no
28507 fi
28508 rm -f core conftest.err conftest.$ac_objext \
28509     conftest$ac_exeext conftest.$ac_ext
28510 fi
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28512 $as_echo "$ac_cv_func_alloca_works" >&6; }
28513
28514 if test $ac_cv_func_alloca_works = yes; then
28515
28516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28517
28518 else
28519   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28520 # that cause trouble.  Some versions do not even contain alloca or
28521 # contain a buggy version.  If you still want to use their alloca,
28522 # use ar to extract alloca.o from them instead of compiling alloca.c.
28523
28524 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28525
28526 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28527
28528
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28530 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28531 if test "${ac_cv_os_cray+set}" = set; then :
28532   $as_echo_n "(cached) " >&6
28533 else
28534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h.  */
28536 #if defined CRAY && ! defined CRAY2
28537 webecray
28538 #else
28539 wenotbecray
28540 #endif
28541
28542 _ACEOF
28543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544   $EGREP "webecray" >/dev/null 2>&1; then :
28545   ac_cv_os_cray=yes
28546 else
28547   ac_cv_os_cray=no
28548 fi
28549 rm -f conftest*
28550
28551 fi
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28553 $as_echo "$ac_cv_os_cray" >&6; }
28554 if test $ac_cv_os_cray = yes; then
28555   for ac_func in _getb67 GETB67 getb67; do
28556     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28557 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28558 eval as_val=\$$as_ac_var
28559    if test "x$as_val" = x""yes; then :
28560
28561 cat >>confdefs.h <<_ACEOF
28562 #define CRAY_STACKSEG_END $ac_func
28563 _ACEOF
28564
28565     break
28566 fi
28567
28568   done
28569 fi
28570
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28572 $as_echo_n "checking stack direction for C alloca... " >&6; }
28573 if test "${ac_cv_c_stack_direction+set}" = set; then :
28574   $as_echo_n "(cached) " >&6
28575 else
28576   if test "$cross_compiling" = yes; then :
28577   ac_cv_c_stack_direction=0
28578 else
28579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h.  */
28581 $ac_includes_default
28582 int
28583 find_stack_direction ()
28584 {
28585   static char *addr = 0;
28586   auto char dummy;
28587   if (addr == 0)
28588     {
28589       addr = &dummy;
28590       return find_stack_direction ();
28591     }
28592   else
28593     return (&dummy > addr) ? 1 : -1;
28594 }
28595
28596 int
28597 main ()
28598 {
28599   return find_stack_direction () < 0;
28600 }
28601 _ACEOF
28602 if ac_fn_c_try_run "$LINENO"; then :
28603   ac_cv_c_stack_direction=1
28604 else
28605   ac_cv_c_stack_direction=-1
28606 fi
28607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28608   conftest.$ac_objext conftest.beam conftest.$ac_ext
28609 fi
28610
28611 fi
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28613 $as_echo "$ac_cv_c_stack_direction" >&6; }
28614 cat >>confdefs.h <<_ACEOF
28615 #define STACK_DIRECTION $ac_cv_c_stack_direction
28616 _ACEOF
28617
28618
28619 fi
28620
28621 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28622 # -lseq on Dynix/PTX, -lgen on Unixware.
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28624 $as_echo_n "checking for library containing getmntent... " >&6; }
28625 if test "${ac_cv_search_getmntent+set}" = set; then :
28626   $as_echo_n "(cached) " >&6
28627 else
28628   ac_func_search_save_LIBS=$LIBS
28629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28630 /* end confdefs.h.  */
28631
28632 /* Override any GCC internal prototype to avoid an error.
28633    Use char because int might match the return type of a GCC
28634    builtin and then its argument prototype would still apply.  */
28635 #ifdef __cplusplus
28636 extern "C"
28637 #endif
28638 char getmntent ();
28639 int
28640 main ()
28641 {
28642 return getmntent ();
28643   ;
28644   return 0;
28645 }
28646 _ACEOF
28647 for ac_lib in '' sun seq gen; do
28648   if test -z "$ac_lib"; then
28649     ac_res="none required"
28650   else
28651     ac_res=-l$ac_lib
28652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28653   fi
28654   if ac_fn_c_try_link "$LINENO"; then :
28655   ac_cv_search_getmntent=$ac_res
28656 fi
28657 rm -f core conftest.err conftest.$ac_objext \
28658     conftest$ac_exeext
28659   if test "${ac_cv_search_getmntent+set}" = set; then :
28660   break
28661 fi
28662 done
28663 if test "${ac_cv_search_getmntent+set}" = set; then :
28664
28665 else
28666   ac_cv_search_getmntent=no
28667 fi
28668 rm conftest.$ac_ext
28669 LIBS=$ac_func_search_save_LIBS
28670 fi
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28672 $as_echo "$ac_cv_search_getmntent" >&6; }
28673 ac_res=$ac_cv_search_getmntent
28674 if test "$ac_res" != no; then :
28675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28676   ac_cv_func_getmntent=yes
28677
28678 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28679
28680 else
28681   ac_cv_func_getmntent=no
28682 fi
28683
28684
28685 for ac_func in getmntinfo
28686 do :
28687   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28688 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28689   cat >>confdefs.h <<_ACEOF
28690 #define HAVE_GETMNTINFO 1
28691 _ACEOF
28692  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28693
28694 fi
28695 done
28696
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28698 $as_echo_n "checking whether closedir returns void... " >&6; }
28699 if test "${ac_cv_func_closedir_void+set}" = set; then :
28700   $as_echo_n "(cached) " >&6
28701 else
28702   if test "$cross_compiling" = yes; then :
28703   ac_cv_func_closedir_void=yes
28704 else
28705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28706 /* end confdefs.h.  */
28707 $ac_includes_default
28708 #include <$ac_header_dirent>
28709 #ifndef __cplusplus
28710 int closedir ();
28711 #endif
28712
28713 int
28714 main ()
28715 {
28716 return closedir (opendir (".")) != 0;
28717   ;
28718   return 0;
28719 }
28720 _ACEOF
28721 if ac_fn_c_try_run "$LINENO"; then :
28722   ac_cv_func_closedir_void=no
28723 else
28724   ac_cv_func_closedir_void=yes
28725 fi
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28727   conftest.$ac_objext conftest.beam conftest.$ac_ext
28728 fi
28729
28730 fi
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28732 $as_echo "$ac_cv_func_closedir_void" >&6; }
28733 if test $ac_cv_func_closedir_void = yes; then
28734
28735 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28736
28737 fi
28738
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28740 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28741 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28742   $as_echo_n "(cached) " >&6
28743 else
28744   if test "$cross_compiling" = yes; then :
28745   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28746 else
28747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28748 /* end confdefs.h.  */
28749 $ac_includes_default
28750 int
28751 main ()
28752 {
28753 /* If this system has a BSD-style setpgrp which takes arguments,
28754   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28755   exit successfully. */
28756   return setpgrp (1,1) != -1;
28757   ;
28758   return 0;
28759 }
28760 _ACEOF
28761 if ac_fn_c_try_run "$LINENO"; then :
28762   ac_cv_func_setpgrp_void=no
28763 else
28764   ac_cv_func_setpgrp_void=yes
28765 fi
28766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28767   conftest.$ac_objext conftest.beam conftest.$ac_ext
28768 fi
28769
28770 fi
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28772 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28773 if test $ac_cv_func_setpgrp_void = yes; then
28774
28775 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28776
28777 fi
28778             # AC_FUNC_FNMATCH    dnl use local version
28779
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28781 $as_echo_n "checking for gettext in -lintl... " >&6; }
28782 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28783   $as_echo_n "(cached) " >&6
28784 else
28785   ac_check_lib_save_LIBS=$LIBS
28786 LIBS="-lintl  $LIBS"
28787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h.  */
28789
28790 /* Override any GCC internal prototype to avoid an error.
28791    Use char because int might match the return type of a GCC
28792    builtin and then its argument prototype would still apply.  */
28793 #ifdef __cplusplus
28794 extern "C"
28795 #endif
28796 char gettext ();
28797 int
28798 main ()
28799 {
28800 return gettext ();
28801   ;
28802   return 0;
28803 }
28804 _ACEOF
28805 if ac_fn_c_try_link "$LINENO"; then :
28806   ac_cv_lib_intl_gettext=yes
28807 else
28808   ac_cv_lib_intl_gettext=no
28809 fi
28810 rm -f core conftest.err conftest.$ac_objext \
28811     conftest$ac_exeext conftest.$ac_ext
28812 LIBS=$ac_check_lib_save_LIBS
28813 fi
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28815 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28816 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28817   LIBS="$LIBS -lintl"
28818 fi
28819
28820
28821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28822 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28823 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28824   $as_echo_n "(cached) " >&6
28825 else
28826   ac_check_lib_save_LIBS=$LIBS
28827 LIBS="-lsun  $LIBS"
28828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28829 /* end confdefs.h.  */
28830
28831 /* Override any GCC internal prototype to avoid an error.
28832    Use char because int might match the return type of a GCC
28833    builtin and then its argument prototype would still apply.  */
28834 #ifdef __cplusplus
28835 extern "C"
28836 #endif
28837 char getpwnam ();
28838 int
28839 main ()
28840 {
28841 return getpwnam ();
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 if ac_fn_c_try_link "$LINENO"; then :
28847   ac_cv_lib_sun_getpwnam=yes
28848 else
28849   ac_cv_lib_sun_getpwnam=no
28850 fi
28851 rm -f core conftest.err conftest.$ac_objext \
28852     conftest$ac_exeext conftest.$ac_ext
28853 LIBS=$ac_check_lib_save_LIBS
28854 fi
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28856 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28857 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28858   cat >>confdefs.h <<_ACEOF
28859 #define HAVE_LIBSUN 1
28860 _ACEOF
28861
28862   LIBS="-lsun $LIBS"
28863
28864 fi
28865
28866
28867 for ac_header in zlib.h
28868 do :
28869   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28870 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28871   cat >>confdefs.h <<_ACEOF
28872 #define HAVE_ZLIB_H 1
28873 _ACEOF
28874
28875 fi
28876
28877 done
28878
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28880 $as_echo_n "checking for deflate in -lz... " >&6; }
28881 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28882   $as_echo_n "(cached) " >&6
28883 else
28884   ac_check_lib_save_LIBS=$LIBS
28885 LIBS="-lz  $LIBS"
28886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28887 /* end confdefs.h.  */
28888
28889 /* Override any GCC internal prototype to avoid an error.
28890    Use char because int might match the return type of a GCC
28891    builtin and then its argument prototype would still apply.  */
28892 #ifdef __cplusplus
28893 extern "C"
28894 #endif
28895 char deflate ();
28896 int
28897 main ()
28898 {
28899 return deflate ();
28900   ;
28901   return 0;
28902 }
28903 _ACEOF
28904 if ac_fn_c_try_link "$LINENO"; then :
28905   ac_cv_lib_z_deflate=yes
28906 else
28907   ac_cv_lib_z_deflate=no
28908 fi
28909 rm -f core conftest.err conftest.$ac_objext \
28910     conftest$ac_exeext conftest.$ac_ext
28911 LIBS=$ac_check_lib_save_LIBS
28912 fi
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28914 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28915 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28916   ZLIBS="-lz"
28917 fi
28918
28919 have_zlib=no
28920 if test x$ZLIBS = x-lz; then
28921    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28922
28923    have_zlib=yes
28924 fi
28925
28926
28927 for ac_header in lzo/lzoconf.h
28928 do :
28929   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28930 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28931   cat >>confdefs.h <<_ACEOF
28932 #define HAVE_LZO_LZOCONF_H 1
28933 _ACEOF
28934
28935 fi
28936
28937 done
28938
28939 for ac_header in lzo/lzo1x.h
28940 do :
28941   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28942 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28943   cat >>confdefs.h <<_ACEOF
28944 #define HAVE_LZO_LZO1X_H 1
28945 _ACEOF
28946
28947 fi
28948
28949 done
28950
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28952 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28953 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28954   $as_echo_n "(cached) " >&6
28955 else
28956   ac_check_lib_save_LIBS=$LIBS
28957 LIBS="-llzo2  $LIBS"
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h.  */
28960
28961 /* Override any GCC internal prototype to avoid an error.
28962    Use char because int might match the return type of a GCC
28963    builtin and then its argument prototype would still apply.  */
28964 #ifdef __cplusplus
28965 extern "C"
28966 #endif
28967 char lzo1x_1_compress ();
28968 int
28969 main ()
28970 {
28971 return lzo1x_1_compress ();
28972   ;
28973   return 0;
28974 }
28975 _ACEOF
28976 if ac_fn_c_try_link "$LINENO"; then :
28977   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28978 else
28979   ac_cv_lib_lzo2_lzo1x_1_compress=no
28980 fi
28981 rm -f core conftest.err conftest.$ac_objext \
28982     conftest$ac_exeext conftest.$ac_ext
28983 LIBS=$ac_check_lib_save_LIBS
28984 fi
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28986 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28987 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
28988   LZOLIBS="-llzo2"
28989 fi
28990
28991 have_lzo=no
28992 if test x$LZOLIBS = x-llzo2; then
28993    $as_echo "#define HAVE_LZO 1" >>confdefs.h
28994
28995    have_lzo=yes
28996 fi
28997
28998
28999 support_acl=auto
29000 # Check whether --enable-acl was given.
29001 if test "${enable_acl+set}" = set; then :
29002   enableval=$enable_acl;
29003        if test x$enableval = xyes; then
29004           support_acl=yes
29005        elif test x$enableval = xno; then
29006           support_acl=no
29007        fi
29008
29009
29010 fi
29011
29012
29013 have_acl=no
29014 have_extended_acl=no
29015 if test x$support_acl = xyes -o x$support_acl = xauto; then
29016    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29017 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
29018
29019 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29020
29021 fi
29022
29023
29024
29025             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29026 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
29027
29028           have_acl=yes
29029
29030
29031 fi
29032
29033
29034             if test $have_acl = no; then
29035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29036 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29037 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29038   $as_echo_n "(cached) " >&6
29039 else
29040   ac_check_lib_save_LIBS=$LIBS
29041 LIBS="-lacl  $LIBS"
29042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043 /* end confdefs.h.  */
29044
29045 /* Override any GCC internal prototype to avoid an error.
29046    Use char because int might match the return type of a GCC
29047    builtin and then its argument prototype would still apply.  */
29048 #ifdef __cplusplus
29049 extern "C"
29050 #endif
29051 char acl_get_file ();
29052 int
29053 main ()
29054 {
29055 return acl_get_file ();
29056   ;
29057   return 0;
29058 }
29059 _ACEOF
29060 if ac_fn_c_try_link "$LINENO"; then :
29061   ac_cv_lib_acl_acl_get_file=yes
29062 else
29063   ac_cv_lib_acl_acl_get_file=no
29064 fi
29065 rm -f core conftest.err conftest.$ac_objext \
29066     conftest$ac_exeext conftest.$ac_ext
29067 LIBS=$ac_check_lib_save_LIBS
29068 fi
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29070 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29071 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29072
29073              have_acl=yes
29074              FDLIBS="-lacl $FDLIBS"
29075
29076
29077 fi
29078
29079    fi
29080
29081                if test $have_acl = no -a \
29082            x${HAVE_OSF1_OS_TRUE} = x; then
29083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29084 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29085 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29086   $as_echo_n "(cached) " >&6
29087 else
29088   ac_check_lib_save_LIBS=$LIBS
29089 LIBS="-lpacl  $LIBS"
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h.  */
29092
29093 /* Override any GCC internal prototype to avoid an error.
29094    Use char because int might match the return type of a GCC
29095    builtin and then its argument prototype would still apply.  */
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 char acl_get_file ();
29100 int
29101 main ()
29102 {
29103 return acl_get_file ();
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 if ac_fn_c_try_link "$LINENO"; then :
29109   ac_cv_lib_pacl_acl_get_file=yes
29110 else
29111   ac_cv_lib_pacl_acl_get_file=no
29112 fi
29113 rm -f core conftest.err conftest.$ac_objext \
29114     conftest$ac_exeext conftest.$ac_ext
29115 LIBS=$ac_check_lib_save_LIBS
29116 fi
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29118 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29119 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29120
29121              have_acl=yes
29122              FDLIBS="-lpacl $FDLIBS"
29123
29124
29125 fi
29126
29127
29128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29129 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29130       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29131       if test $? = 0; then
29132
29133 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29134
29135          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29137       else
29138          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139 $as_echo "no" >&6; }
29140       fi
29141    fi
29142
29143             if test $have_acl = yes -a \
29144            x${HAVE_DARWIN_OS_TRUE} = x; then
29145       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29146 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29147       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29148       if test $? = 0; then
29149
29150 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29151
29152          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153 $as_echo "yes" >&6; }
29154       else
29155          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156 $as_echo "no" >&6; }
29157       fi
29158    fi
29159
29160             if test $have_acl = yes -a \
29161            x${HAVE_FREEBSD_OS_TRUE} = x; then
29162       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29163 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29164       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29165       if test $? = 0; then
29166
29167 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29168
29169          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29170 $as_echo "yes" >&6; }
29171       else
29172          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29173 $as_echo "no" >&6; }
29174       fi
29175    fi
29176
29177             if test $have_acl = no -a \
29178            x${HAVE_SUN_OS_TRUE} = x; then
29179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29180 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29181 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29182   $as_echo_n "(cached) " >&6
29183 else
29184   ac_check_lib_save_LIBS=$LIBS
29185 LIBS="-lsec  $LIBS"
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h.  */
29188
29189 /* Override any GCC internal prototype to avoid an error.
29190    Use char because int might match the return type of a GCC
29191    builtin and then its argument prototype would still apply.  */
29192 #ifdef __cplusplus
29193 extern "C"
29194 #endif
29195 char acltotext ();
29196 int
29197 main ()
29198 {
29199 return acltotext ();
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 if ac_fn_c_try_link "$LINENO"; then :
29205   ac_cv_lib_sec_acltotext=yes
29206 else
29207   ac_cv_lib_sec_acltotext=no
29208 fi
29209 rm -f core conftest.err conftest.$ac_objext \
29210     conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29212 fi
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29214 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29215 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29216
29217              have_acl=yes
29218              FDLIBS="-lsec $FDLIBS"
29219
29220              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29221 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29222 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29223   $as_echo_n "(cached) " >&6
29224 else
29225   ac_check_lib_save_LIBS=$LIBS
29226 LIBS="-lsec  $LIBS"
29227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29228 /* end confdefs.h.  */
29229
29230 /* Override any GCC internal prototype to avoid an error.
29231    Use char because int might match the return type of a GCC
29232    builtin and then its argument prototype would still apply.  */
29233 #ifdef __cplusplus
29234 extern "C"
29235 #endif
29236 char acl_totext ();
29237 int
29238 main ()
29239 {
29240 return acl_totext ();
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 if ac_fn_c_try_link "$LINENO"; then :
29246   ac_cv_lib_sec_acl_totext=yes
29247 else
29248   ac_cv_lib_sec_acl_totext=no
29249 fi
29250 rm -f core conftest.err conftest.$ac_objext \
29251     conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29255 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29256 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29257
29258                     have_extended_acl=yes
29259
29260
29261 fi
29262
29263
29264
29265 fi
29266
29267    fi
29268
29269             if test $have_acl = no -a \
29270            x${HAVE_AIX_OS_TRUE} = x; then
29271       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29272 if test "x$ac_cv_func_acl_get" = x""yes; then :
29273
29274              have_acl=yes
29275
29276              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29277 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29278
29279                     have_extended_acl=yes
29280
29281
29282 fi
29283
29284
29285
29286 fi
29287
29288    fi
29289
29290    if test x$support_acl = xyes -a $have_acl != yes; then
29291       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
29292   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29293    else
29294       if test $have_acl = yes; then
29295
29296 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29297
29298       fi
29299
29300       if test $have_extended_acl = yes; then
29301
29302 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29303
29304       fi
29305    fi
29306 fi
29307
29308 support_xattr=auto
29309 # Check whether --enable-xattr was given.
29310 if test "${enable_xattr+set}" = set; then :
29311   enableval=$enable_xattr;
29312        if test x$enableval = xyes; then
29313           support_xattr=yes
29314        elif test x$enableval = xno; then
29315           support_xattr=no
29316        fi
29317
29318
29319 fi
29320
29321
29322 have_xattr=no
29323 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29324                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29325            x${HAVE_NETBSD_OS_TRUE} = x -o \
29326            x${HAVE_OPENBSD_OS_TRUE} = x; then
29327       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29328 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29329
29330 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29331
29332 fi
29333
29334
29335       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29336 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29337
29338 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29339
29340 fi
29341
29342
29343       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29344 do :
29345   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29347 eval as_val=\$$as_ac_var
29348    if test "x$as_val" = x""yes; then :
29349   cat >>confdefs.h <<_ACEOF
29350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29351 _ACEOF
29352
29353              have_xattr=yes
29354
29355 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29356
29357
29358 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29359
29360
29361 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29362
29363
29364
29365 fi
29366 done
29367
29368
29369       if test $have_xattr = no; then
29370          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29371 do :
29372   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29374 eval as_val=\$$as_ac_var
29375    if test "x$as_val" = x""yes; then :
29376   cat >>confdefs.h <<_ACEOF
29377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29378 _ACEOF
29379
29380                 have_xattr=yes
29381
29382 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29383
29384
29385 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29386
29387
29388 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29389
29390
29391
29392 fi
29393 done
29394
29395       fi
29396
29397       if test $have_xattr = yes; then
29398          have_extattr_string_in_libc=no
29399          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29400 do :
29401   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29403 eval as_val=\$$as_ac_var
29404    if test "x$as_val" = x""yes; then :
29405   cat >>confdefs.h <<_ACEOF
29406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29407 _ACEOF
29408
29409                 have_extattr_string_in_libc=yes
29410
29411 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29412
29413
29414 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29415
29416
29417
29418 fi
29419 done
29420
29421
29422                                  if test $have_extattr_string_in_libc = no; then
29423             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29424 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29425 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29426   $as_echo_n "(cached) " >&6
29427 else
29428   ac_check_lib_save_LIBS=$LIBS
29429 LIBS="-lutil  $LIBS"
29430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29431 /* end confdefs.h.  */
29432
29433 /* Override any GCC internal prototype to avoid an error.
29434    Use char because int might match the return type of a GCC
29435    builtin and then its argument prototype would still apply.  */
29436 #ifdef __cplusplus
29437 extern "C"
29438 #endif
29439 char extattr_namespace_to_string extattr_string_to_namespace ();
29440 int
29441 main ()
29442 {
29443 return extattr_namespace_to_string extattr_string_to_namespace ();
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 if ac_fn_c_try_link "$LINENO"; then :
29449   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29450 else
29451   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29452 fi
29453 rm -f core conftest.err conftest.$ac_objext \
29454     conftest$ac_exeext conftest.$ac_ext
29455 LIBS=$ac_check_lib_save_LIBS
29456 fi
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29458 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29459 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29460
29461
29462 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29463
29464
29465 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29466
29467                    FDLIBS="-lutil $FDLIBS"
29468
29469
29470 fi
29471
29472          fi
29473       fi
29474    fi
29475
29476                if test $have_xattr = no -a \
29477            x${HAVE_AIX_OS_TRUE} = x; then
29478       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29479 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29480
29481 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29482
29483 fi
29484
29485
29486       for ac_func in llistea lgetea lsetea
29487 do :
29488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29490 eval as_val=\$$as_ac_var
29491    if test "x$as_val" = x""yes; then :
29492   cat >>confdefs.h <<_ACEOF
29493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29494 _ACEOF
29495
29496              have_xattr=yes
29497
29498 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29499
29500
29501 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29502
29503
29504 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29505
29506
29507
29508 fi
29509 done
29510
29511
29512       if test $have_xattr = no; then
29513          for ac_func in listea getea setea
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 eval as_val=\$$as_ac_var
29518    if test "x$as_val" = x""yes; then :
29519   cat >>confdefs.h <<_ACEOF
29520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29521 _ACEOF
29522
29523                 have_xattr=yes
29524
29525 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29526
29527
29528 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29529
29530
29531 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29532
29533
29534
29535 fi
29536 done
29537
29538       fi
29539    fi
29540
29541                if test $have_xattr = no -a \
29542            x${HAVE_OSF1_OS_TRUE} = x; then
29543       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29544 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29545
29546 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29547
29548 fi
29549
29550
29551       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29552 do :
29553   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29555 eval as_val=\$$as_ac_var
29556    if test "x$as_val" = x""yes; then :
29557   cat >>confdefs.h <<_ACEOF
29558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29559 _ACEOF
29560
29561              have_xattr=yes
29562
29563 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29564
29565
29566 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29567
29568
29569 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29570
29571
29572 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29573
29574
29575 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29576
29577
29578
29579 fi
29580 done
29581
29582    fi
29583
29584                if test $have_xattr = no -a \
29585            x${HAVE_SUN_OS_TRUE} = x; then
29586       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29587 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29588
29589 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29590
29591 fi
29592
29593
29594       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29595 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29596
29597 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29598
29599 fi
29600
29601
29602       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29603 if test "x$ac_cv_header_attr_h" = x""yes; then :
29604
29605 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29606
29607 fi
29608
29609
29610
29611       for ac_func in openat fstatat unlinkat fchownat futimesat
29612 do :
29613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29615 eval as_val=\$$as_ac_var
29616    if test "x$as_val" = x""yes; then :
29617   cat >>confdefs.h <<_ACEOF
29618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29619 _ACEOF
29620
29621              have_xattr=yes
29622
29623 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29624
29625
29626 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29627
29628
29629 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29630
29631
29632 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29633
29634
29635 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29636
29637
29638
29639 fi
29640 done
29641
29642
29643       if test $have_xattr = yes; then
29644          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29645 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29646 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29647   $as_echo_n "(cached) " >&6
29648 else
29649   ac_check_lib_save_LIBS=$LIBS
29650 LIBS="-lnvpair  $LIBS"
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h.  */
29653
29654 /* Override any GCC internal prototype to avoid an error.
29655    Use char because int might match the return type of a GCC
29656    builtin and then its argument prototype would still apply.  */
29657 #ifdef __cplusplus
29658 extern "C"
29659 #endif
29660 char nvlist_next_nvpair ();
29661 int
29662 main ()
29663 {
29664 return nvlist_next_nvpair ();
29665   ;
29666   return 0;
29667 }
29668 _ACEOF
29669 if ac_fn_c_try_link "$LINENO"; then :
29670   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29671 else
29672   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29673 fi
29674 rm -f core conftest.err conftest.$ac_objext \
29675     conftest$ac_exeext conftest.$ac_ext
29676 LIBS=$ac_check_lib_save_LIBS
29677 fi
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29679 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29680 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29681
29682
29683 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29684
29685                 FDLIBS="-lnvpair $FDLIBS"
29686
29687
29688 fi
29689
29690       fi
29691    fi
29692
29693             if test $have_xattr = no; then
29694       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29695 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29696
29697 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29698
29699 fi
29700
29701
29702       for ac_func in llistxattr lgetxattr lsetxattr
29703 do :
29704   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29706 eval as_val=\$$as_ac_var
29707    if test "x$as_val" = x""yes; then :
29708   cat >>confdefs.h <<_ACEOF
29709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29710 _ACEOF
29711
29712              have_xattr=yes
29713
29714 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29715
29716
29717 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29718
29719
29720 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29721
29722
29723
29724 fi
29725 done
29726
29727
29728       if test $have_xattr = no; then
29729          for ac_func in listxattr getxattr setxattr
29730 do :
29731   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29733 eval as_val=\$$as_ac_var
29734    if test "x$as_val" = x""yes; then :
29735   cat >>confdefs.h <<_ACEOF
29736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29737 _ACEOF
29738
29739                 have_xattr=yes
29740
29741 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29742
29743
29744 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29745
29746
29747 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29748
29749
29750
29751 fi
29752 done
29753
29754       fi
29755    fi
29756
29757    if test x$support_xattr = xyes -a $have_xattr != yes; then
29758       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29759   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29760    else
29761       if test $have_xattr = yes; then
29762
29763 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29764
29765       fi
29766    fi
29767 fi
29768
29769 PTHREAD_LIB=""
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29771 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29772 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29773   $as_echo_n "(cached) " >&6
29774 else
29775   ac_check_lib_save_LIBS=$LIBS
29776 LIBS="-lpthread  $LIBS"
29777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29778 /* end confdefs.h.  */
29779
29780 /* Override any GCC internal prototype to avoid an error.
29781    Use char because int might match the return type of a GCC
29782    builtin and then its argument prototype would still apply.  */
29783 #ifdef __cplusplus
29784 extern "C"
29785 #endif
29786 char pthread_create ();
29787 int
29788 main ()
29789 {
29790 return pthread_create ();
29791   ;
29792   return 0;
29793 }
29794 _ACEOF
29795 if ac_fn_c_try_link "$LINENO"; then :
29796   ac_cv_lib_pthread_pthread_create=yes
29797 else
29798   ac_cv_lib_pthread_pthread_create=no
29799 fi
29800 rm -f core conftest.err conftest.$ac_objext \
29801     conftest$ac_exeext conftest.$ac_ext
29802 LIBS=$ac_check_lib_save_LIBS
29803 fi
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29805 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29806 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29807   PTHREAD_LIB="-lpthread"
29808 else
29809
29810        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29811 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29812 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29813   $as_echo_n "(cached) " >&6
29814 else
29815   ac_check_lib_save_LIBS=$LIBS
29816 LIBS="-lpthreads  $LIBS"
29817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29818 /* end confdefs.h.  */
29819
29820 /* Override any GCC internal prototype to avoid an error.
29821    Use char because int might match the return type of a GCC
29822    builtin and then its argument prototype would still apply.  */
29823 #ifdef __cplusplus
29824 extern "C"
29825 #endif
29826 char pthread_create ();
29827 int
29828 main ()
29829 {
29830 return pthread_create ();
29831   ;
29832   return 0;
29833 }
29834 _ACEOF
29835 if ac_fn_c_try_link "$LINENO"; then :
29836   ac_cv_lib_pthreads_pthread_create=yes
29837 else
29838   ac_cv_lib_pthreads_pthread_create=no
29839 fi
29840 rm -f core conftest.err conftest.$ac_objext \
29841     conftest$ac_exeext conftest.$ac_ext
29842 LIBS=$ac_check_lib_save_LIBS
29843 fi
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29845 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29846 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29847   PTHREAD_LIB="-lpthreads"
29848 else
29849
29850               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29851 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29852 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29853   $as_echo_n "(cached) " >&6
29854 else
29855   ac_check_lib_save_LIBS=$LIBS
29856 LIBS="-lc_r  $LIBS"
29857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29858 /* end confdefs.h.  */
29859
29860 /* Override any GCC internal prototype to avoid an error.
29861    Use char because int might match the return type of a GCC
29862    builtin and then its argument prototype would still apply.  */
29863 #ifdef __cplusplus
29864 extern "C"
29865 #endif
29866 char pthread_create ();
29867 int
29868 main ()
29869 {
29870 return pthread_create ();
29871   ;
29872   return 0;
29873 }
29874 _ACEOF
29875 if ac_fn_c_try_link "$LINENO"; then :
29876   ac_cv_lib_c_r_pthread_create=yes
29877 else
29878   ac_cv_lib_c_r_pthread_create=no
29879 fi
29880 rm -f core conftest.err conftest.$ac_objext \
29881     conftest$ac_exeext conftest.$ac_ext
29882 LIBS=$ac_check_lib_save_LIBS
29883 fi
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29885 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29886 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29887   PTHREAD_LIB="-lc_r"
29888 else
29889
29890                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29891 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29892
29893 fi
29894
29895
29896
29897 fi
29898
29899
29900
29901 fi
29902
29903
29904
29905 fi
29906
29907
29908 for ac_header in sys/prctl.h sys/capability.h
29909 do :
29910   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29911 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29912 eval as_val=\$$as_ac_Header
29913    if test "x$as_val" = x""yes; then :
29914   cat >>confdefs.h <<_ACEOF
29915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29916 _ACEOF
29917
29918 fi
29919
29920 done
29921
29922 for ac_func in prctl setreuid
29923 do :
29924   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29926 eval as_val=\$$as_ac_var
29927    if test "x$as_val" = x""yes; then :
29928   cat >>confdefs.h <<_ACEOF
29929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29930 _ACEOF
29931
29932 fi
29933 done
29934
29935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29936 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29937 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29938   $as_echo_n "(cached) " >&6
29939 else
29940   ac_check_lib_save_LIBS=$LIBS
29941 LIBS="-lcap  $LIBS"
29942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29943 /* end confdefs.h.  */
29944
29945 /* Override any GCC internal prototype to avoid an error.
29946    Use char because int might match the return type of a GCC
29947    builtin and then its argument prototype would still apply.  */
29948 #ifdef __cplusplus
29949 extern "C"
29950 #endif
29951 char cap_set_proc ();
29952 int
29953 main ()
29954 {
29955 return cap_set_proc ();
29956   ;
29957   return 0;
29958 }
29959 _ACEOF
29960 if ac_fn_c_try_link "$LINENO"; then :
29961   ac_cv_lib_cap_cap_set_proc=yes
29962 else
29963   ac_cv_lib_cap_cap_set_proc=no
29964 fi
29965 rm -f core conftest.err conftest.$ac_objext \
29966     conftest$ac_exeext conftest.$ac_ext
29967 LIBS=$ac_check_lib_save_LIBS
29968 fi
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29970 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29971 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29972   CAP_LIBS="-lcap"
29973 else
29974   CAP_LIBS=
29975 fi
29976
29977 if test x$CAP_LIBS = x-lcap; then
29978
29979 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29980
29981 fi
29982
29983
29984
29985 $as_echo "#define FDLIBS 1" >>confdefs.h
29986
29987
29988 CFLAGS=${CFLAGS--O}
29989
29990 if test x$have_gcc = xyes ; then
29991    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29992    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29993 fi
29994 LDFLAGS=${LDFLAGS--O}
29995 CPPFLAGS="$CPPFLAGS"
29996 CFLAGS="$CFLAGS"
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012 OBJLIST=
30013
30014
30015 lld="lld"
30016 llu="llu"
30017
30018 WCFLAGS=
30019 WLDFLAGS=
30020
30021 PFILES="platforms/Makefile"
30022 PSCMD="ps -e"
30023 WIN32=
30024 MACOSX=
30025 COMPRESS_MANPAGES=yes
30026
30027 hostname=`uname -n | cut -d '.' -f 1`
30028 if test x${hostname} = x ; then
30029    hostname="localhost"
30030 fi
30031 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30032 if test ! $? = 0; then
30033   hostname="localhost"
30034 fi
30035
30036 case "$DISTNAME" in
30037 aix)
30038    DISTVER=`uname -r`
30039    PSCMD="ps -e -o pid,comm"
30040    PFILES="${PFILES} \
30041       platforms/aix/Makefile"
30042    TAPEDRIVE="/dev/rmt0.1"
30043   ;;
30044 alpha)
30045    DISTVER=`uname -r`
30046    PTHREAD_LIB="-lpthread -lexc"
30047    if test "${CC}" = "gcc" ; then
30048       lld="lld"
30049       llu="llu"
30050    else
30051       lld="ld"
30052       llu="lu"
30053    fi
30054    TAPEDRIVE="/dev/nrmt0"
30055   ;;
30056 bsdi)
30057    DISTVER=`uname -a |awk '{print $3}'`
30058    TAPEDRIVE="/dev/nrmt0"
30059    PTHREAD_LIB="-pthread"
30060    CFLAGS="${CFLAGS} -pthread"
30061    PSCMD="ps -ax -o pid,command"
30062    lld="qd"
30063    llu="qu"
30064    PFILES="${PFILES} \
30065        platforms/bsdi/Makefile \
30066        platforms/bsdi/bacula-fd \
30067        platforms/bsdi/bacula-sd \
30068        platforms/bsdi/bacula-dir"
30069    largefile_support="yes"
30070   ;;
30071 cygwin)
30072    DISTVER=`uname -a |awk '{print $3}'`
30073    TAPEDRIVE="/dev/nrst0"
30074    WIN32=win32
30075    WCFLAGS="-mwindows"
30076    WLDFLAGS="-mwindows"
30077   ;;
30078 darwin)
30079    DISTVER=`uname -r`
30080    TAPEDRIVE="/dev/nst0"
30081    PSCMD="ps -e -o pid,command"
30082    MACOSX=macosx
30083    PFILES="${PFILES} \
30084       platforms/darwin/Makefile"
30085   ;;
30086 osx)
30087    DISTVER=`uname -r`
30088    TAPEDRIVE="/dev/nst0"
30089    PSCMD="ps -e -o pid,command"
30090    MACOSX=macosx
30091    PFILES="${PFILES} \
30092       platforms/osx/Makefile"
30093   ;;
30094 debian)
30095    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30096       DISTNAME="ubuntu"
30097    fi
30098    DISTVER=`cat /etc/debian_version`
30099    if test -f /etc/lsb-release ; then
30100       . /etc/lsb-release
30101       if test "x$DISTRIB_ID" != "x" ; then
30102          DISTNAME=$DISTRIB_ID
30103       fi
30104       if test "x$DISTRIB_RELEASE" != "x" ; then
30105          DISTVER=$DISTRIB_RELEASE
30106       fi
30107    fi
30108    if test "$DISTNAME" = "Ubuntu" ; then
30109       DISTNAME="ubuntu"
30110    fi
30111    TAPEDRIVE="/dev/nst0"
30112    PSCMD="ps -e -o pid,command"
30113    if test "$DISTNAME" = "ubuntu" ; then
30114       PFILES="${PFILES} \
30115          platforms/ubuntu/Makefile \
30116          platforms/ubuntu/bacula-fd \
30117          platforms/ubuntu/bacula-sd \
30118          platforms/ubuntu/bacula-dir"
30119    else
30120       PFILES="${PFILES} \
30121          platforms/debian/Makefile \
30122          platforms/debian/bacula-fd \
30123          platforms/debian/bacula-sd \
30124          platforms/debian/bacula-dir"
30125    fi
30126   ;;
30127 freebsd)
30128    DISTVER=`uname -a |awk '{print $3}'`
30129    VER=`echo $DISTVER | cut -c 1`
30130    if test x$VER = x4 ; then
30131       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30132       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30133    fi
30134    lld="qd"
30135    llu="qu"
30136    TAPEDRIVE="/dev/nrsa0"
30137    PSCMD="ps -ax -o pid,command"
30138    PFILES="${PFILES} \
30139        platforms/freebsd/Makefile \
30140        platforms/freebsd/bacula-fd \
30141        platforms/freebsd/bacula-sd \
30142        platforms/freebsd/bacula-dir"
30143    largefile_support="yes"
30144   ;;
30145 hpux)
30146    PSCMD="UNIX95=1; ps -e -o pid,comm"
30147    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30148    DISTVER=`uname -r`
30149    TAPEDRIVE="/dev/rmt/0hnb"
30150    PTHREAD_LIB="-lpthread"
30151    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30152
30153   ;;
30154 irix)
30155    DISTVER=`uname -r`
30156    TAPEDRIVE="/dev/rmt/0cbn"
30157    PSCMD="ps -e -o pid,comm"
30158    PFILES="${PFILES} \
30159        platforms/irix/Makefile \
30160        platforms/irix/bacula-fd \
30161        platforms/irix/bacula-sd \
30162        platforms/irix/bacula-dir"
30163   ;;
30164 netbsd)
30165    DISTVER=`uname -a |awk '{print $3}'`
30166    lld="qd"
30167    llu="qu"
30168    TAPEDRIVE="/dev/nrst0"
30169    PSCMD="ps -ax -o pid,command"
30170    PTHREAD_LIB="-pthread"
30171    CFLAGS="${CFLAGS} -pthread"
30172   ;;
30173 openbsd)
30174    DISTVER=`uname -a |awk '{print $3}'`
30175    lld="qd"
30176    llu="qu"
30177    TAPEDRIVE="/dev/nrst0"
30178    PSCMD="ps -ax -o pid,command"
30179    PTHREAD_LIB="-pthread"
30180    CFLAGS="${CFLAGS} -pthread"
30181    PFILES="${PFILES} \
30182        platforms/openbsd/Makefile \
30183        platforms/openbsd/bacula-fd \
30184        platforms/openbsd/bacula-sd \
30185        platforms/openbsd/bacula-dir"
30186   ;;
30187 redhat)
30188    if test -f /etc/whitebox-release ; then
30189       f=/etc/whitebox-release
30190    else
30191       f=/etc/redhat-release
30192    fi
30193    if test `cat $f | grep release |\
30194          cut -f 3 -d ' '`x = "Enterprise"x ; then
30195       DISTVER="Enterprise "`cat $f | grep release |\
30196           cut -f 6 -d ' '`
30197    else
30198        DISTVER=`cat /etc/redhat-release | grep release |\
30199            cut -f 5 -d ' '`
30200    fi
30201    TAPEDRIVE="/dev/nst0"
30202    PSCMD="ps -e -o pid,command"
30203    PFILES="${PFILES} \
30204        platforms/redhat/Makefile \
30205        platforms/redhat/bacula-fd \
30206        platforms/redhat/bacula-sd \
30207        platforms/redhat/bacula-dir
30208        "
30209   ;;
30210 mandrake)
30211    DISTVER=`cat /etc/mandrake-release | grep release |\
30212       cut -f 5 -d ' '`
30213    TAPEDRIVE="/dev/nst0"
30214    PSCMD="ps -e -o pid,command"
30215    PFILES="${PFILES} \
30216        platforms/mandrake/Makefile \
30217        platforms/mandrake/bacula-fd \
30218        platforms/mandrake/bacula-sd \
30219        platforms/mandrake/bacula-dir \
30220        "
30221   ;;
30222 gentoo)
30223    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30224    TAPEDRIVE="/dev/nst0"
30225    PSCMD="ps -e -o pid,command"
30226    PFILES="${PFILES} \
30227        platforms/gentoo/Makefile \
30228     platforms/gentoo/bacula-init \
30229        platforms/gentoo/bacula-fd \
30230        platforms/gentoo/bacula-sd \
30231        platforms/gentoo/bacula-dir"
30232   ;;
30233 slackware)
30234    DISTVER=`cat /etc/slackware-version`
30235    TAPEDRIVE="/dev/nst0"
30236    PSCMD="ps -e -o pid,command"
30237    PFILES="${PFILES} \
30238        platforms/slackware/Makefile \
30239        platforms/slackware/rc.bacula-fd \
30240        platforms/slackware/rc.bacula-sd \
30241        platforms/slackware/rc.bacula-dir\
30242        platforms/slackware/functions.bacula"
30243   ;;
30244 solaris)
30245    DISTVER=`uname -r`
30246    TAPEDRIVE="/dev/rmt/0cbn"
30247    PSCMD="ps -e -o pid,comm"
30248    PFILES="${PFILES} \
30249        platforms/solaris/Makefile \
30250        platforms/solaris/bacula-fd \
30251        platforms/solaris/bacula-sd \
30252        platforms/solaris/bacula-dir"
30253    COMPRESS_MANPAGES=
30254    case ${DISTVER} in
30255    5.5|5.6)
30256       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30257
30258       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30259
30260       ;;
30261    5.7|5.8)
30262       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30263
30264       ;;
30265    *)
30266       ;;
30267    esac
30268    LIBS="$LIBS -lresolv -lrt"
30269   ;;
30270 suse)
30271    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30272        cut -f 3 -d ' '`
30273    TAPEDRIVE="/dev/nst0"
30274    PSCMD="ps -e -o pid,command"
30275    PFILES="${PFILES} \
30276        platforms/suse/Makefile \
30277        platforms/suse/bacula-fd \
30278        platforms/suse/bacula-sd \
30279        platforms/suse/bacula-dir \
30280        platforms/suse/bacula"
30281   ;;
30282 suse5)
30283    DISTNAME=suse
30284    DISTVER=5.x
30285    TAPEDRIVE="/dev/nst0"
30286    PSCMD="ps -e -o pid,command"
30287    PFILES="${PFILES} \
30288        platforms/suse/Makefile \
30289        platforms/suse/bacula-fd \
30290        platforms/suse/bacula-sd \
30291        platforms/suse/bacula-dir"
30292   ;;
30293 unknown)
30294    DISTVER=unknown
30295    TAPEDRIVE="/dev/nst0"
30296   ;;
30297 *)
30298   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30299   ;;
30300 esac
30301
30302
30303
30304 LIBS="$PTHREAD_LIB $LIBS"
30305
30306 cat >>confdefs.h <<_ACEOF
30307 #define lld "$lld"
30308 _ACEOF
30309
30310 cat >>confdefs.h <<_ACEOF
30311 #define llu "$llu"
30312 _ACEOF
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322 MCOMMON=./autoconf/Make.common
30323
30324
30325 if test "x${subsysdir}" = "x${sbindir}" ; then
30326    echo " "
30327    echo " "
30328    echo "You have set both --sbindir and --with-subsys-dir"
30329    echo "  equal to: ${subsysdir} "
30330    echo "This is not permitted. Please reconfigure."
30331    echo " "
30332    echo "Aborting configuration ..."
30333    echo " "
30334    echo " "
30335    exit 1
30336 fi
30337
30338 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/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 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile $PFILES"
30339
30340 ac_config_commands="$ac_config_commands default"
30341
30342 cat >confcache <<\_ACEOF
30343 # This file is a shell script that caches the results of configure
30344 # tests run on this system so they can be shared between configure
30345 # scripts and configure runs, see configure's option --config-cache.
30346 # It is not useful on other systems.  If it contains results you don't
30347 # want to keep, you may remove or edit it.
30348 #
30349 # config.status only pays attention to the cache file if you give it
30350 # the --recheck option to rerun configure.
30351 #
30352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30354 # following values.
30355
30356 _ACEOF
30357
30358 # The following way of writing the cache mishandles newlines in values,
30359 # but we know of no workaround that is simple, portable, and efficient.
30360 # So, we kill variables containing newlines.
30361 # Ultrix sh set writes to stderr and can't be redirected directly,
30362 # and sets the high bit in the cache file unless we assign to the vars.
30363 (
30364   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30365     eval ac_val=\$$ac_var
30366     case $ac_val in #(
30367     *${as_nl}*)
30368       case $ac_var in #(
30369       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30370 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30371       esac
30372       case $ac_var in #(
30373       _ | IFS | as_nl) ;; #(
30374       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30375       *) { eval $ac_var=; unset $ac_var;} ;;
30376       esac ;;
30377     esac
30378   done
30379
30380   (set) 2>&1 |
30381     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30382     *${as_nl}ac_space=\ *)
30383       # `set' does not quote correctly, so add quotes: double-quote
30384       # substitution turns \\\\ into \\, and sed turns \\ into \.
30385       sed -n \
30386         "s/'/'\\\\''/g;
30387           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30388       ;; #(
30389     *)
30390       # `set' quotes correctly as required by POSIX, so do not add quotes.
30391       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30392       ;;
30393     esac |
30394     sort
30395 ) |
30396   sed '
30397      /^ac_cv_env_/b end
30398      t clear
30399      :clear
30400      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30401      t end
30402      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30403      :end' >>confcache
30404 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30405   if test -w "$cache_file"; then
30406     test "x$cache_file" != "x/dev/null" &&
30407       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30408 $as_echo "$as_me: updating cache $cache_file" >&6;}
30409     cat confcache >$cache_file
30410   else
30411     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30413   fi
30414 fi
30415 rm -f confcache
30416
30417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30418 # Let make expand exec_prefix.
30419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30420
30421 DEFS=-DHAVE_CONFIG_H
30422
30423 ac_libobjs=
30424 ac_ltlibobjs=
30425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30426   # 1. Remove the extension, and $U if already installed.
30427   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30428   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30429   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30430   #    will be set to the directory where LIBOBJS objects are built.
30431   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30432   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30433 done
30434 LIBOBJS=$ac_libobjs
30435
30436 LTLIBOBJS=$ac_ltlibobjs
30437
30438
30439
30440
30441 : ${CONFIG_STATUS=./config.status}
30442 ac_write_fail=0
30443 ac_clean_files_save=$ac_clean_files
30444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30447 as_write_fail=0
30448 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30449 #! $SHELL
30450 # Generated by $as_me.
30451 # Run this file to recreate the current configuration.
30452 # Compiler output produced by configure, useful for debugging
30453 # configure, is in config.log if it exists.
30454
30455 debug=false
30456 ac_cs_recheck=false
30457 ac_cs_silent=false
30458
30459 SHELL=\${CONFIG_SHELL-$SHELL}
30460 export SHELL
30461 _ASEOF
30462 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30463 ## -------------------- ##
30464 ## M4sh Initialization. ##
30465 ## -------------------- ##
30466
30467 # Be more Bourne compatible
30468 DUALCASE=1; export DUALCASE # for MKS sh
30469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30470   emulate sh
30471   NULLCMD=:
30472   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30473   # is contrary to our usage.  Disable this feature.
30474   alias -g '${1+"$@"}'='"$@"'
30475   setopt NO_GLOB_SUBST
30476 else
30477   case `(set -o) 2>/dev/null` in #(
30478   *posix*) :
30479     set -o posix ;; #(
30480   *) :
30481      ;;
30482 esac
30483 fi
30484
30485
30486 as_nl='
30487 '
30488 export as_nl
30489 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30490 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30493 # Prefer a ksh shell builtin over an external printf program on Solaris,
30494 # but without wasting forks for bash or zsh.
30495 if test -z "$BASH_VERSION$ZSH_VERSION" \
30496     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30497   as_echo='print -r --'
30498   as_echo_n='print -rn --'
30499 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30500   as_echo='printf %s\n'
30501   as_echo_n='printf %s'
30502 else
30503   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30504     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30505     as_echo_n='/usr/ucb/echo -n'
30506   else
30507     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30508     as_echo_n_body='eval
30509       arg=$1;
30510       case $arg in #(
30511       *"$as_nl"*)
30512         expr "X$arg" : "X\\(.*\\)$as_nl";
30513         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30514       esac;
30515       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30516     '
30517     export as_echo_n_body
30518     as_echo_n='sh -c $as_echo_n_body as_echo'
30519   fi
30520   export as_echo_body
30521   as_echo='sh -c $as_echo_body as_echo'
30522 fi
30523
30524 # The user is always right.
30525 if test "${PATH_SEPARATOR+set}" != set; then
30526   PATH_SEPARATOR=:
30527   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30528     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30529       PATH_SEPARATOR=';'
30530   }
30531 fi
30532
30533
30534 # IFS
30535 # We need space, tab and new line, in precisely that order.  Quoting is
30536 # there to prevent editors from complaining about space-tab.
30537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30538 # splitting by setting IFS to empty value.)
30539 IFS=" ""        $as_nl"
30540
30541 # Find who we are.  Look in the path if we contain no directory separator.
30542 case $0 in #((
30543   *[\\/]* ) as_myself=$0 ;;
30544   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30545 for as_dir in $PATH
30546 do
30547   IFS=$as_save_IFS
30548   test -z "$as_dir" && as_dir=.
30549     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30550   done
30551 IFS=$as_save_IFS
30552
30553      ;;
30554 esac
30555 # We did not find ourselves, most probably we were run as `sh COMMAND'
30556 # in which case we are not to be found in the path.
30557 if test "x$as_myself" = x; then
30558   as_myself=$0
30559 fi
30560 if test ! -f "$as_myself"; then
30561   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30562   exit 1
30563 fi
30564
30565 # Unset variables that we do not need and which cause bugs (e.g. in
30566 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30567 # suppresses any "Segmentation fault" message there.  '((' could
30568 # trigger a bug in pdksh 5.2.14.
30569 for as_var in BASH_ENV ENV MAIL MAILPATH
30570 do eval test x\${$as_var+set} = xset \
30571   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30572 done
30573 PS1='$ '
30574 PS2='> '
30575 PS4='+ '
30576
30577 # NLS nuisances.
30578 LC_ALL=C
30579 export LC_ALL
30580 LANGUAGE=C
30581 export LANGUAGE
30582
30583 # CDPATH.
30584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30585
30586
30587 # as_fn_error ERROR [LINENO LOG_FD]
30588 # ---------------------------------
30589 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30590 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30591 # script with status $?, using 1 if that was 0.
30592 as_fn_error ()
30593 {
30594   as_status=$?; test $as_status -eq 0 && as_status=1
30595   if test "$3"; then
30596     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30597     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30598   fi
30599   $as_echo "$as_me: error: $1" >&2
30600   as_fn_exit $as_status
30601 } # as_fn_error
30602
30603
30604 # as_fn_set_status STATUS
30605 # -----------------------
30606 # Set $? to STATUS, without forking.
30607 as_fn_set_status ()
30608 {
30609   return $1
30610 } # as_fn_set_status
30611
30612 # as_fn_exit STATUS
30613 # -----------------
30614 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30615 as_fn_exit ()
30616 {
30617   set +e
30618   as_fn_set_status $1
30619   exit $1
30620 } # as_fn_exit
30621
30622 # as_fn_unset VAR
30623 # ---------------
30624 # Portably unset VAR.
30625 as_fn_unset ()
30626 {
30627   { eval $1=; unset $1;}
30628 }
30629 as_unset=as_fn_unset
30630 # as_fn_append VAR VALUE
30631 # ----------------------
30632 # Append the text in VALUE to the end of the definition contained in VAR. Take
30633 # advantage of any shell optimizations that allow amortized linear growth over
30634 # repeated appends, instead of the typical quadratic growth present in naive
30635 # implementations.
30636 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30637   eval 'as_fn_append ()
30638   {
30639     eval $1+=\$2
30640   }'
30641 else
30642   as_fn_append ()
30643   {
30644     eval $1=\$$1\$2
30645   }
30646 fi # as_fn_append
30647
30648 # as_fn_arith ARG...
30649 # ------------------
30650 # Perform arithmetic evaluation on the ARGs, and store the result in the
30651 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30652 # must be portable across $(()) and expr.
30653 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30654   eval 'as_fn_arith ()
30655   {
30656     as_val=$(( $* ))
30657   }'
30658 else
30659   as_fn_arith ()
30660   {
30661     as_val=`expr "$@" || test $? -eq 1`
30662   }
30663 fi # as_fn_arith
30664
30665
30666 if expr a : '\(a\)' >/dev/null 2>&1 &&
30667    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30668   as_expr=expr
30669 else
30670   as_expr=false
30671 fi
30672
30673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30674   as_basename=basename
30675 else
30676   as_basename=false
30677 fi
30678
30679 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30680   as_dirname=dirname
30681 else
30682   as_dirname=false
30683 fi
30684
30685 as_me=`$as_basename -- "$0" ||
30686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30687          X"$0" : 'X\(//\)$' \| \
30688          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30689 $as_echo X/"$0" |
30690     sed '/^.*\/\([^/][^/]*\)\/*$/{
30691             s//\1/
30692             q
30693           }
30694           /^X\/\(\/\/\)$/{
30695             s//\1/
30696             q
30697           }
30698           /^X\/\(\/\).*/{
30699             s//\1/
30700             q
30701           }
30702           s/.*/./; q'`
30703
30704 # Avoid depending upon Character Ranges.
30705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30708 as_cr_digits='0123456789'
30709 as_cr_alnum=$as_cr_Letters$as_cr_digits
30710
30711 ECHO_C= ECHO_N= ECHO_T=
30712 case `echo -n x` in #(((((
30713 -n*)
30714   case `echo 'xy\c'` in
30715   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30716   xy)  ECHO_C='\c';;
30717   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30718        ECHO_T=' ';;
30719   esac;;
30720 *)
30721   ECHO_N='-n';;
30722 esac
30723
30724 rm -f conf$$ conf$$.exe conf$$.file
30725 if test -d conf$$.dir; then
30726   rm -f conf$$.dir/conf$$.file
30727 else
30728   rm -f conf$$.dir
30729   mkdir conf$$.dir 2>/dev/null
30730 fi
30731 if (echo >conf$$.file) 2>/dev/null; then
30732   if ln -s conf$$.file conf$$ 2>/dev/null; then
30733     as_ln_s='ln -s'
30734     # ... but there are two gotchas:
30735     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30736     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30737     # In both cases, we have to default to `cp -p'.
30738     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30739       as_ln_s='cp -p'
30740   elif ln conf$$.file conf$$ 2>/dev/null; then
30741     as_ln_s=ln
30742   else
30743     as_ln_s='cp -p'
30744   fi
30745 else
30746   as_ln_s='cp -p'
30747 fi
30748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30749 rmdir conf$$.dir 2>/dev/null
30750
30751
30752 # as_fn_mkdir_p
30753 # -------------
30754 # Create "$as_dir" as a directory, including parents if necessary.
30755 as_fn_mkdir_p ()
30756 {
30757
30758   case $as_dir in #(
30759   -*) as_dir=./$as_dir;;
30760   esac
30761   test -d "$as_dir" || eval $as_mkdir_p || {
30762     as_dirs=
30763     while :; do
30764       case $as_dir in #(
30765       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30766       *) as_qdir=$as_dir;;
30767       esac
30768       as_dirs="'$as_qdir' $as_dirs"
30769       as_dir=`$as_dirname -- "$as_dir" ||
30770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30771          X"$as_dir" : 'X\(//\)[^/]' \| \
30772          X"$as_dir" : 'X\(//\)$' \| \
30773          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30774 $as_echo X"$as_dir" |
30775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30776             s//\1/
30777             q
30778           }
30779           /^X\(\/\/\)[^/].*/{
30780             s//\1/
30781             q
30782           }
30783           /^X\(\/\/\)$/{
30784             s//\1/
30785             q
30786           }
30787           /^X\(\/\).*/{
30788             s//\1/
30789             q
30790           }
30791           s/.*/./; q'`
30792       test -d "$as_dir" && break
30793     done
30794     test -z "$as_dirs" || eval "mkdir $as_dirs"
30795   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30796
30797
30798 } # as_fn_mkdir_p
30799 if mkdir -p . 2>/dev/null; then
30800   as_mkdir_p='mkdir -p "$as_dir"'
30801 else
30802   test -d ./-p && rmdir ./-p
30803   as_mkdir_p=false
30804 fi
30805
30806 if test -x / >/dev/null 2>&1; then
30807   as_test_x='test -x'
30808 else
30809   if ls -dL / >/dev/null 2>&1; then
30810     as_ls_L_option=L
30811   else
30812     as_ls_L_option=
30813   fi
30814   as_test_x='
30815     eval sh -c '\''
30816       if test -d "$1"; then
30817         test -d "$1/.";
30818       else
30819         case $1 in #(
30820         -*)set "./$1";;
30821         esac;
30822         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30823         ???[sx]*):;;*)false;;esac;fi
30824     '\'' sh
30825   '
30826 fi
30827 as_executable_p=$as_test_x
30828
30829 # Sed expression to map a string onto a valid CPP name.
30830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30831
30832 # Sed expression to map a string onto a valid variable name.
30833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30834
30835
30836 exec 6>&1
30837 ## ----------------------------------- ##
30838 ## Main body of $CONFIG_STATUS script. ##
30839 ## ----------------------------------- ##
30840 _ASEOF
30841 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30842
30843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30844 # Save the log message, to keep $0 and so on meaningful, and to
30845 # report actual input values of CONFIG_FILES etc. instead of their
30846 # values after options handling.
30847 ac_log="
30848 This file was extended by bacula $as_me 5.2.1, which was
30849 generated by GNU Autoconf 2.65.  Invocation command line was
30850
30851   CONFIG_FILES    = $CONFIG_FILES
30852   CONFIG_HEADERS  = $CONFIG_HEADERS
30853   CONFIG_LINKS    = $CONFIG_LINKS
30854   CONFIG_COMMANDS = $CONFIG_COMMANDS
30855   $ $0 $@
30856
30857 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30858 "
30859
30860 _ACEOF
30861
30862 case $ac_config_files in *"
30863 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30864 esac
30865
30866 case $ac_config_headers in *"
30867 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30868 esac
30869
30870
30871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30872 # Files that config.status was made for.
30873 config_files="$ac_config_files"
30874 config_headers="$ac_config_headers"
30875 config_commands="$ac_config_commands"
30876
30877 _ACEOF
30878
30879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30880 ac_cs_usage="\
30881 \`$as_me' instantiates files and other configuration actions
30882 from templates according to the current configuration.  Unless the files
30883 and actions are specified as TAGs, all are instantiated by default.
30884
30885 Usage: $0 [OPTION]... [TAG]...
30886
30887   -h, --help       print this help, then exit
30888   -V, --version    print version number and configuration settings, then exit
30889       --config     print configuration, then exit
30890   -q, --quiet, --silent
30891                    do not print progress messages
30892   -d, --debug      don't remove temporary files
30893       --recheck    update $as_me by reconfiguring in the same conditions
30894       --file=FILE[:TEMPLATE]
30895                    instantiate the configuration file FILE
30896       --header=FILE[:TEMPLATE]
30897                    instantiate the configuration header FILE
30898
30899 Configuration files:
30900 $config_files
30901
30902 Configuration headers:
30903 $config_headers
30904
30905 Configuration commands:
30906 $config_commands
30907
30908 Report bugs to the package provider."
30909
30910 _ACEOF
30911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30912 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30913 ac_cs_version="\\
30914 bacula config.status 5.2.1
30915 configured by $0, generated by GNU Autoconf 2.65,
30916   with options \\"\$ac_cs_config\\"
30917
30918 Copyright (C) 2009 Free Software Foundation, Inc.
30919 This config.status script is free software; the Free Software Foundation
30920 gives unlimited permission to copy, distribute and modify it."
30921
30922 ac_pwd='$ac_pwd'
30923 srcdir='$srcdir'
30924 INSTALL='$INSTALL'
30925 AWK='$AWK'
30926 test -n "\$AWK" || AWK=awk
30927 _ACEOF
30928
30929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30930 # The default lists apply if the user does not specify any file.
30931 ac_need_defaults=:
30932 while test $# != 0
30933 do
30934   case $1 in
30935   --*=*)
30936     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30937     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30938     ac_shift=:
30939     ;;
30940   *)
30941     ac_option=$1
30942     ac_optarg=$2
30943     ac_shift=shift
30944     ;;
30945   esac
30946
30947   case $ac_option in
30948   # Handling of the options.
30949   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30950     ac_cs_recheck=: ;;
30951   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30952     $as_echo "$ac_cs_version"; exit ;;
30953   --config | --confi | --conf | --con | --co | --c )
30954     $as_echo "$ac_cs_config"; exit ;;
30955   --debug | --debu | --deb | --de | --d | -d )
30956     debug=: ;;
30957   --file | --fil | --fi | --f )
30958     $ac_shift
30959     case $ac_optarg in
30960     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30961     esac
30962     as_fn_append CONFIG_FILES " '$ac_optarg'"
30963     ac_need_defaults=false;;
30964   --header | --heade | --head | --hea )
30965     $ac_shift
30966     case $ac_optarg in
30967     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30968     esac
30969     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30970     ac_need_defaults=false;;
30971   --he | --h)
30972     # Conflict between --help and --header
30973     as_fn_error "ambiguous option: \`$1'
30974 Try \`$0 --help' for more information.";;
30975   --help | --hel | -h )
30976     $as_echo "$ac_cs_usage"; exit ;;
30977   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30978   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30979     ac_cs_silent=: ;;
30980
30981   # This is an error.
30982   -*) as_fn_error "unrecognized option: \`$1'
30983 Try \`$0 --help' for more information." ;;
30984
30985   *) as_fn_append ac_config_targets " $1"
30986      ac_need_defaults=false ;;
30987
30988   esac
30989   shift
30990 done
30991
30992 ac_configure_extra_args=
30993
30994 if $ac_cs_silent; then
30995   exec 6>/dev/null
30996   ac_configure_extra_args="$ac_configure_extra_args --silent"
30997 fi
30998
30999 _ACEOF
31000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31001 if \$ac_cs_recheck; then
31002   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31003   shift
31004   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31005   CONFIG_SHELL='$SHELL'
31006   export CONFIG_SHELL
31007   exec "\$@"
31008 fi
31009
31010 _ACEOF
31011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31012 exec 5>>config.log
31013 {
31014   echo
31015   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31016 ## Running $as_me. ##
31017 _ASBOX
31018   $as_echo "$ac_log"
31019 } >&5
31020
31021 _ACEOF
31022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31023 #
31024 # INIT-COMMANDS
31025 #
31026
31027
31028 # The HP-UX ksh and POSIX shell print the target directory to stdout
31029 # if CDPATH is set.
31030 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31031
31032 sed_quote_subst='$sed_quote_subst'
31033 double_quote_subst='$double_quote_subst'
31034 delay_variable_subst='$delay_variable_subst'
31035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31039 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31040 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31041 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31042 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31043 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31044 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31045 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31046 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31047 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31048 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31049 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31050 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31051 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31052 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31053 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31054 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31055 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31056 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31057 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31058 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31059 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31060 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31061 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31062 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31063 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31064 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31070 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31071 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31072 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31073 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31076 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31077 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31078 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31079 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31080 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31081 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31082 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31083 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31084 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31085 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31086 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31087 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31088 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31089 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31090 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"`'
31091 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31092 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31096 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31097 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31101 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31102 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31103 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31104 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31105 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31106 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31107 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31108 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31109 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31110 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31111 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31112 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31113 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31114 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31115 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31116 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31117 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31118 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31119 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31120 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31121 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31122 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31123 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31124 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31125 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31126 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31127 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31128 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31129 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31130 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31131 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31132 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31133 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31134 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31135 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31136 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31137 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31138 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31139 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31140 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31141 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31142 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31143 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31144 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31145 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31146 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31147 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31148 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31149 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31150 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31151 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31152 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31153 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31154 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31155 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31156 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31157 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31158 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31159 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31160 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31161 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31162 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31163 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31164 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31165 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31166 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31167 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31168 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31169 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31170 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31171 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31172 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31173 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31174 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31175 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31176 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31177 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31178 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31179 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31180 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31181 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31182 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31183 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31184 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31185 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31186 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31187 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31188 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31189 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31190 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31191 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31192 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31193 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31194 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31195 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31196 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31197 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31198 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31199 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31200 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31201 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31202 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31203 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31204 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31205 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31206 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31207 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31208 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31209 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31210 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31211 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31212 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31213 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31214 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31215 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31216 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31217 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31218 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31219 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31220
31221 LTCC='$LTCC'
31222 LTCFLAGS='$LTCFLAGS'
31223 compiler='$compiler_DEFAULT'
31224
31225 # A function that is used when there is no print builtin or printf.
31226 func_fallback_echo ()
31227 {
31228   eval 'cat <<_LTECHO_EOF
31229 \$1
31230 _LTECHO_EOF'
31231 }
31232
31233 # Quote evaled strings.
31234 for var in SHELL \
31235 ECHO \
31236 SED \
31237 GREP \
31238 EGREP \
31239 FGREP \
31240 LD \
31241 NM \
31242 LN_S \
31243 lt_SP2NL \
31244 lt_NL2SP \
31245 reload_flag \
31246 OBJDUMP \
31247 deplibs_check_method \
31248 file_magic_cmd \
31249 file_magic_glob \
31250 want_nocaseglob \
31251 DLLTOOL \
31252 sharedlib_from_linklib_cmd \
31253 AR \
31254 AR_FLAGS \
31255 archiver_list_spec \
31256 STRIP \
31257 RANLIB \
31258 CC \
31259 CFLAGS \
31260 compiler \
31261 lt_cv_sys_global_symbol_pipe \
31262 lt_cv_sys_global_symbol_to_cdecl \
31263 lt_cv_sys_global_symbol_to_c_name_address \
31264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31265 nm_file_list_spec \
31266 lt_prog_compiler_no_builtin_flag \
31267 lt_prog_compiler_pic \
31268 lt_prog_compiler_wl \
31269 lt_prog_compiler_static \
31270 lt_cv_prog_compiler_c_o \
31271 need_locks \
31272 MANIFEST_TOOL \
31273 DSYMUTIL \
31274 NMEDIT \
31275 LIPO \
31276 OTOOL \
31277 OTOOL64 \
31278 shrext_cmds \
31279 export_dynamic_flag_spec \
31280 whole_archive_flag_spec \
31281 compiler_needs_object \
31282 with_gnu_ld \
31283 allow_undefined_flag \
31284 no_undefined_flag \
31285 hardcode_libdir_flag_spec \
31286 hardcode_libdir_flag_spec_ld \
31287 hardcode_libdir_separator \
31288 exclude_expsyms \
31289 include_expsyms \
31290 file_list_spec \
31291 variables_saved_for_relink \
31292 libname_spec \
31293 library_names_spec \
31294 soname_spec \
31295 install_override_mode \
31296 finish_eval \
31297 old_striplib \
31298 striplib \
31299 compiler_lib_search_dirs \
31300 predep_objects \
31301 postdep_objects \
31302 predeps \
31303 postdeps \
31304 compiler_lib_search_path \
31305 LD_CXX \
31306 reload_flag_CXX \
31307 compiler_CXX \
31308 lt_prog_compiler_no_builtin_flag_CXX \
31309 lt_prog_compiler_pic_CXX \
31310 lt_prog_compiler_wl_CXX \
31311 lt_prog_compiler_static_CXX \
31312 lt_cv_prog_compiler_c_o_CXX \
31313 export_dynamic_flag_spec_CXX \
31314 whole_archive_flag_spec_CXX \
31315 compiler_needs_object_CXX \
31316 with_gnu_ld_CXX \
31317 allow_undefined_flag_CXX \
31318 no_undefined_flag_CXX \
31319 hardcode_libdir_flag_spec_CXX \
31320 hardcode_libdir_flag_spec_ld_CXX \
31321 hardcode_libdir_separator_CXX \
31322 exclude_expsyms_CXX \
31323 include_expsyms_CXX \
31324 file_list_spec_CXX \
31325 compiler_lib_search_dirs_CXX \
31326 predep_objects_CXX \
31327 postdep_objects_CXX \
31328 predeps_CXX \
31329 postdeps_CXX \
31330 compiler_lib_search_path_CXX; do
31331     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31332     *[\\\\\\\`\\"\\\$]*)
31333       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31334       ;;
31335     *)
31336       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31337       ;;
31338     esac
31339 done
31340
31341 # Double-quote double-evaled strings.
31342 for var in reload_cmds \
31343 old_postinstall_cmds \
31344 old_postuninstall_cmds \
31345 old_archive_cmds \
31346 extract_expsyms_cmds \
31347 old_archive_from_new_cmds \
31348 old_archive_from_expsyms_cmds \
31349 archive_cmds \
31350 archive_expsym_cmds \
31351 module_cmds \
31352 module_expsym_cmds \
31353 export_symbols_cmds \
31354 prelink_cmds \
31355 postlink_cmds \
31356 postinstall_cmds \
31357 postuninstall_cmds \
31358 finish_cmds \
31359 sys_lib_search_path_spec \
31360 sys_lib_dlsearch_path_spec \
31361 reload_cmds_CXX \
31362 old_archive_cmds_CXX \
31363 old_archive_from_new_cmds_CXX \
31364 old_archive_from_expsyms_cmds_CXX \
31365 archive_cmds_CXX \
31366 archive_expsym_cmds_CXX \
31367 module_cmds_CXX \
31368 module_expsym_cmds_CXX \
31369 export_symbols_cmds_CXX \
31370 prelink_cmds_CXX \
31371 postlink_cmds_CXX; do
31372     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31373     *[\\\\\\\`\\"\\\$]*)
31374       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31375       ;;
31376     *)
31377       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31378       ;;
31379     esac
31380 done
31381
31382 ac_aux_dir='$ac_aux_dir'
31383 xsi_shell='$xsi_shell'
31384 lt_shell_append='$lt_shell_append'
31385
31386 # See if we are running on zsh, and set the options which allow our
31387 # commands through without removal of \ escapes INIT.
31388 if test -n "\${ZSH_VERSION+set}" ; then
31389    setopt NO_GLOB_SUBST
31390 fi
31391
31392
31393     PACKAGE='$PACKAGE'
31394     VERSION='$VERSION'
31395     TIMESTAMP='$TIMESTAMP'
31396     RM='$RM'
31397     ofile='$ofile'
31398
31399
31400
31401
31402
31403 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31404     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31405     # from automake.
31406     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31407     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31408     LINGUAS="${LINGUAS-%UNSET%}"
31409
31410
31411 _ACEOF
31412
31413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31414
31415 # Handling of arguments.
31416 for ac_config_target in $ac_config_targets
31417 do
31418   case $ac_config_target in
31419     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31420     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31421     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31422     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31423     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31424     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31425     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31426     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31427     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31428     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31429     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31430     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31431     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31432     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31433     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31434     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31435     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31436     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31437     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31438     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31439     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31440     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31441     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31442     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31443     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31444     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31445     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31446     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31447     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31448     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31449     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31450     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31451     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31452     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31453     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31454     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31455     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31456     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31457     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31458     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31459     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31460     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31461     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31462     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31463     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31464     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31465     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31466     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31467     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31468     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31469     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31470     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31471     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31472     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31473     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31474     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31475     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31476     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31477     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31478     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31479     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31480     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31481     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31482     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31483     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31484     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31485     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31486     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31487     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31488     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31489     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31490     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31491     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31492     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31493     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31494     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31495     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31496     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31497     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31498     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31499     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31500     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31501     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31502     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31503     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31504     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31505     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31506     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31507     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31508     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31509     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31510     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31511     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31512     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31513     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31514     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31515     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31516     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31517     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31518     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31519     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31520     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31521     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31522     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31523     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31524     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31525     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31526     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31527     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31528
31529   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31530   esac
31531 done
31532
31533
31534 # If the user did not use the arguments to specify the items to instantiate,
31535 # then the envvar interface is used.  Set only those that are not.
31536 # We use the long form for the default assignment because of an extremely
31537 # bizarre bug on SunOS 4.1.3.
31538 if $ac_need_defaults; then
31539   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31540   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31541   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31542 fi
31543
31544 # Have a temporary directory for convenience.  Make it in the build tree
31545 # simply because there is no reason against having it here, and in addition,
31546 # creating and moving files from /tmp can sometimes cause problems.
31547 # Hook for its removal unless debugging.
31548 # Note that there is a small window in which the directory will not be cleaned:
31549 # after its creation but before its name has been assigned to `$tmp'.
31550 $debug ||
31551 {
31552   tmp=
31553   trap 'exit_status=$?
31554   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31555 ' 0
31556   trap 'as_fn_exit 1' 1 2 13 15
31557 }
31558 # Create a (secure) tmp directory for tmp files.
31559
31560 {
31561   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31562   test -n "$tmp" && test -d "$tmp"
31563 }  ||
31564 {
31565   tmp=./conf$$-$RANDOM
31566   (umask 077 && mkdir "$tmp")
31567 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31568
31569 # Set up the scripts for CONFIG_FILES section.
31570 # No need to generate them if there are no CONFIG_FILES.
31571 # This happens for instance with `./config.status config.h'.
31572 if test -n "$CONFIG_FILES"; then
31573
31574 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31575   ac_cs_awk_getline=:
31576   ac_cs_awk_pipe_init=
31577   ac_cs_awk_read_file='
31578       while ((getline aline < (F[key])) > 0)
31579         print(aline)
31580       close(F[key])'
31581   ac_cs_awk_pipe_fini=
31582 else
31583   ac_cs_awk_getline=false
31584   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31585   ac_cs_awk_read_file='
31586       print "|#_!!_#|"
31587       print "cat " F[key] " &&"
31588       '$ac_cs_awk_pipe_init
31589   # The final `:' finishes the AND list.
31590   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31591 fi
31592 ac_cr=`echo X | tr X '\015'`
31593 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31594 # But we know of no other shell where ac_cr would be empty at this
31595 # point, so we can use a bashism as a fallback.
31596 if test "x$ac_cr" = x; then
31597   eval ac_cr=\$\'\\r\'
31598 fi
31599 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31600 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31601   ac_cs_awk_cr='\r'
31602 else
31603   ac_cs_awk_cr=$ac_cr
31604 fi
31605
31606 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31607 _ACEOF
31608
31609 # Create commands to substitute file output variables.
31610 {
31611   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31612   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31613   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31614   echo "_ACAWK" &&
31615   echo "_ACEOF"
31616 } >conf$$files.sh &&
31617 . ./conf$$files.sh ||
31618   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31619 rm -f conf$$files.sh
31620
31621 {
31622   echo "cat >conf$$subs.awk <<_ACEOF" &&
31623   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31624   echo "_ACEOF"
31625 } >conf$$subs.sh ||
31626   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31627 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31628 ac_delim='%!_!# '
31629 for ac_last_try in false false false false false :; do
31630   . ./conf$$subs.sh ||
31631     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31632
31633   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31634   if test $ac_delim_n = $ac_delim_num; then
31635     break
31636   elif $ac_last_try; then
31637     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31638   else
31639     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31640   fi
31641 done
31642 rm -f conf$$subs.sh
31643
31644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31645 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31646 _ACEOF
31647 sed -n '
31648 h
31649 s/^/S["/; s/!.*/"]=/
31650 p
31651 g
31652 s/^[^!]*!//
31653 :repl
31654 t repl
31655 s/'"$ac_delim"'$//
31656 t delim
31657 :nl
31658 h
31659 s/\(.\{148\}\)..*/\1/
31660 t more1
31661 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31662 p
31663 n
31664 b repl
31665 :more1
31666 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31667 p
31668 g
31669 s/.\{148\}//
31670 t nl
31671 :delim
31672 h
31673 s/\(.\{148\}\)..*/\1/
31674 t more2
31675 s/["\\]/\\&/g; s/^/"/; s/$/"/
31676 p
31677 b
31678 :more2
31679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31680 p
31681 g
31682 s/.\{148\}//
31683 t delim
31684 ' <conf$$subs.awk | sed '
31685 /^[^""]/{
31686   N
31687   s/\n//
31688 }
31689 ' >>$CONFIG_STATUS || ac_write_fail=1
31690 rm -f conf$$subs.awk
31691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31692 _ACAWK
31693 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31694   for (key in S) S_is_set[key] = 1
31695   FS = "\a"
31696   \$ac_cs_awk_pipe_init
31697 }
31698 {
31699   line = $ 0
31700   nfields = split(line, field, "@")
31701   substed = 0
31702   len = length(field[1])
31703   for (i = 2; i < nfields; i++) {
31704     key = field[i]
31705     keylen = length(key)
31706     if (S_is_set[key]) {
31707       value = S[key]
31708       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31709       len += length(value) + length(field[++i])
31710       substed = 1
31711     } else
31712       len += 1 + keylen
31713   }
31714   if (nfields == 3 && !substed) {
31715     key = field[2]
31716     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31717       \$ac_cs_awk_read_file
31718       next
31719     }
31720   }
31721   print line
31722 }
31723 \$ac_cs_awk_pipe_fini
31724 _ACAWK
31725 _ACEOF
31726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31728   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31729 else
31730   cat
31731 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31732   || as_fn_error "could not setup config files machinery" "$LINENO" 5
31733 _ACEOF
31734
31735 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31737 # trailing colons and then remove the whole line if VPATH becomes empty
31738 # (actually we leave an empty line to preserve line numbers).
31739 if test "x$srcdir" = x.; then
31740   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31741 s/:*\$(srcdir):*/:/
31742 s/:*\${srcdir}:*/:/
31743 s/:*@srcdir@:*/:/
31744 s/^\([^=]*=[     ]*\):*/\1/
31745 s/:*$//
31746 s/^[^=]*=[       ]*$//
31747 }'
31748 fi
31749
31750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31751 fi # test -n "$CONFIG_FILES"
31752
31753 # Set up the scripts for CONFIG_HEADERS section.
31754 # No need to generate them if there are no CONFIG_HEADERS.
31755 # This happens for instance with `./config.status Makefile'.
31756 if test -n "$CONFIG_HEADERS"; then
31757 cat >"$tmp/defines.awk" <<\_ACAWK ||
31758 BEGIN {
31759 _ACEOF
31760
31761 # Transform confdefs.h into an awk script `defines.awk', embedded as
31762 # here-document in config.status, that substitutes the proper values into
31763 # config.h.in to produce config.h.
31764
31765 # Create a delimiter string that does not exist in confdefs.h, to ease
31766 # handling of long lines.
31767 ac_delim='%!_!# '
31768 for ac_last_try in false false :; do
31769   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31770   if test -z "$ac_t"; then
31771     break
31772   elif $ac_last_try; then
31773     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31774   else
31775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31776   fi
31777 done
31778
31779 # For the awk script, D is an array of macro values keyed by name,
31780 # likewise P contains macro parameters if any.  Preserve backslash
31781 # newline sequences.
31782
31783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31784 sed -n '
31785 s/.\{148\}/&'"$ac_delim"'/g
31786 t rset
31787 :rset
31788 s/^[     ]*#[    ]*define[       ][      ]*/ /
31789 t def
31790 d
31791 :def
31792 s/\\$//
31793 t bsnl
31794 s/["\\]/\\&/g
31795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31796 D["\1"]=" \3"/p
31797 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31798 d
31799 :bsnl
31800 s/["\\]/\\&/g
31801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31802 D["\1"]=" \3\\\\\\n"\\/p
31803 t cont
31804 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31805 t cont
31806 d
31807 :cont
31808 n
31809 s/.\{148\}/&'"$ac_delim"'/g
31810 t clear
31811 :clear
31812 s/\\$//
31813 t bsnlc
31814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31815 d
31816 :bsnlc
31817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31818 b cont
31819 ' <confdefs.h | sed '
31820 s/'"$ac_delim"'/"\\\
31821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31822
31823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31824   for (key in D) D_is_set[key] = 1
31825   FS = "\a"
31826 }
31827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31828   line = \$ 0
31829   split(line, arg, " ")
31830   if (arg[1] == "#") {
31831     defundef = arg[2]
31832     mac1 = arg[3]
31833   } else {
31834     defundef = substr(arg[1], 2)
31835     mac1 = arg[2]
31836   }
31837   split(mac1, mac2, "(") #)
31838   macro = mac2[1]
31839   prefix = substr(line, 1, index(line, defundef) - 1)
31840   if (D_is_set[macro]) {
31841     # Preserve the white space surrounding the "#".
31842     print prefix "define", macro P[macro] D[macro]
31843     next
31844   } else {
31845     # Replace #undef with comments.  This is necessary, for example,
31846     # in the case of _POSIX_SOURCE, which is predefined and required
31847     # on some systems where configure will not decide to define it.
31848     if (defundef == "undef") {
31849       print "/*", prefix defundef, macro, "*/"
31850       next
31851     }
31852   }
31853 }
31854 { print }
31855 _ACAWK
31856 _ACEOF
31857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31858   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31859 fi # test -n "$CONFIG_HEADERS"
31860
31861
31862 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31863 shift
31864 for ac_tag
31865 do
31866   case $ac_tag in
31867   :[FHLC]) ac_mode=$ac_tag; continue;;
31868   esac
31869   case $ac_mode$ac_tag in
31870   :[FHL]*:*);;
31871   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31872   :[FH]-) ac_tag=-:-;;
31873   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31874   esac
31875   ac_save_IFS=$IFS
31876   IFS=:
31877   set x $ac_tag
31878   IFS=$ac_save_IFS
31879   shift
31880   ac_file=$1
31881   shift
31882
31883   case $ac_mode in
31884   :L) ac_source=$1;;
31885   :[FH])
31886     ac_file_inputs=
31887     for ac_f
31888     do
31889       case $ac_f in
31890       -) ac_f="$tmp/stdin";;
31891       *) # Look for the file first in the build tree, then in the source tree
31892          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31893          # because $ac_f cannot contain `:'.
31894          test -f "$ac_f" ||
31895            case $ac_f in
31896            [\\/$]*) false;;
31897            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31898            esac ||
31899            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31900       esac
31901       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31902       as_fn_append ac_file_inputs " '$ac_f'"
31903     done
31904
31905     # Let's still pretend it is `configure' which instantiates (i.e., don't
31906     # use $as_me), people would be surprised to read:
31907     #    /* config.h.  Generated by config.status.  */
31908     configure_input='Generated from '`
31909           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31910         `' by configure.'
31911     if test x"$ac_file" != x-; then
31912       configure_input="$ac_file.  $configure_input"
31913       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31914 $as_echo "$as_me: creating $ac_file" >&6;}
31915     fi
31916     # Neutralize special characters interpreted by sed in replacement strings.
31917     case $configure_input in #(
31918     *\&* | *\|* | *\\* )
31919        ac_sed_conf_input=`$as_echo "$configure_input" |
31920        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31921     *) ac_sed_conf_input=$configure_input;;
31922     esac
31923
31924     case $ac_tag in
31925     *:-:* | *:-) cat >"$tmp/stdin" \
31926       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31927     esac
31928     ;;
31929   esac
31930
31931   ac_dir=`$as_dirname -- "$ac_file" ||
31932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31933          X"$ac_file" : 'X\(//\)[^/]' \| \
31934          X"$ac_file" : 'X\(//\)$' \| \
31935          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31936 $as_echo X"$ac_file" |
31937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31938             s//\1/
31939             q
31940           }
31941           /^X\(\/\/\)[^/].*/{
31942             s//\1/
31943             q
31944           }
31945           /^X\(\/\/\)$/{
31946             s//\1/
31947             q
31948           }
31949           /^X\(\/\).*/{
31950             s//\1/
31951             q
31952           }
31953           s/.*/./; q'`
31954   as_dir="$ac_dir"; as_fn_mkdir_p
31955   ac_builddir=.
31956
31957 case "$ac_dir" in
31958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31959 *)
31960   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31961   # A ".." for each directory in $ac_dir_suffix.
31962   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31963   case $ac_top_builddir_sub in
31964   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31965   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31966   esac ;;
31967 esac
31968 ac_abs_top_builddir=$ac_pwd
31969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31970 # for backward compatibility:
31971 ac_top_builddir=$ac_top_build_prefix
31972
31973 case $srcdir in
31974   .)  # We are building in place.
31975     ac_srcdir=.
31976     ac_top_srcdir=$ac_top_builddir_sub
31977     ac_abs_top_srcdir=$ac_pwd ;;
31978   [\\/]* | ?:[\\/]* )  # Absolute name.
31979     ac_srcdir=$srcdir$ac_dir_suffix;
31980     ac_top_srcdir=$srcdir
31981     ac_abs_top_srcdir=$srcdir ;;
31982   *) # Relative name.
31983     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31984     ac_top_srcdir=$ac_top_build_prefix$srcdir
31985     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31986 esac
31987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31988
31989
31990   case $ac_mode in
31991   :F)
31992   #
31993   # CONFIG_FILE
31994   #
31995
31996   case $INSTALL in
31997   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31998   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31999   esac
32000 _ACEOF
32001
32002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32003 # If the template does not know about datarootdir, expand it.
32004 # FIXME: This hack should be removed a few years after 2.60.
32005 ac_datarootdir_hack=; ac_datarootdir_seen=
32006 ac_sed_dataroot='
32007 /datarootdir/ {
32008   p
32009   q
32010 }
32011 /@datadir@/p
32012 /@docdir@/p
32013 /@infodir@/p
32014 /@localedir@/p
32015 /@mandir@/p'
32016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32017 *datarootdir*) ac_datarootdir_seen=yes;;
32018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32021 _ACEOF
32022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32023   ac_datarootdir_hack='
32024   s&@datadir@&$datadir&g
32025   s&@docdir@&$docdir&g
32026   s&@infodir@&$infodir&g
32027   s&@localedir@&$localedir&g
32028   s&@mandir@&$mandir&g
32029   s&\\\${datarootdir}&$datarootdir&g' ;;
32030 esac
32031 _ACEOF
32032
32033 # Neutralize VPATH when `$srcdir' = `.'.
32034 # Shell code in configure.ac might set extrasub.
32035 # FIXME: do we really want to maintain this feature?
32036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32037 ac_sed_extra="$ac_vpsub
32038 $extrasub
32039 _ACEOF
32040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32041 :t
32042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32043 s|@configure_input@|$ac_sed_conf_input|;t t
32044 s&@top_builddir@&$ac_top_builddir_sub&;t t
32045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32046 s&@srcdir@&$ac_srcdir&;t t
32047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32048 s&@top_srcdir@&$ac_top_srcdir&;t t
32049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32050 s&@builddir@&$ac_builddir&;t t
32051 s&@abs_builddir@&$ac_abs_builddir&;t t
32052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32053 s&@INSTALL@&$ac_INSTALL&;t t
32054 $ac_datarootdir_hack
32055 "
32056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32057 if $ac_cs_awk_getline; then
32058   $AWK -f "$tmp/subs.awk"
32059 else
32060   $AWK -f "$tmp/subs.awk" | $SHELL
32061 fi >$tmp/out \
32062   || as_fn_error "could not create $ac_file" "$LINENO" 5
32063
32064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32065   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32066   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32068 which seems to be undefined.  Please make sure it is defined." >&5
32069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32070 which seems to be undefined.  Please make sure it is defined." >&2;}
32071
32072   rm -f "$tmp/stdin"
32073   case $ac_file in
32074   -) cat "$tmp/out" && rm -f "$tmp/out";;
32075   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32076   esac \
32077   || as_fn_error "could not create $ac_file" "$LINENO" 5
32078  ;;
32079   :H)
32080   #
32081   # CONFIG_HEADER
32082   #
32083   if test x"$ac_file" != x-; then
32084     {
32085       $as_echo "/* $configure_input  */" \
32086       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32087     } >"$tmp/config.h" \
32088       || as_fn_error "could not create $ac_file" "$LINENO" 5
32089     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32090       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32091 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32092     else
32093       rm -f "$ac_file"
32094       mv "$tmp/config.h" "$ac_file" \
32095         || as_fn_error "could not create $ac_file" "$LINENO" 5
32096     fi
32097   else
32098     $as_echo "/* $configure_input  */" \
32099       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32100       || as_fn_error "could not create -" "$LINENO" 5
32101   fi
32102  ;;
32103
32104   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32105 $as_echo "$as_me: executing $ac_file commands" >&6;}
32106  ;;
32107   esac
32108
32109
32110   case $ac_file$ac_mode in
32111     "libtool":C)
32112
32113     # See if we are running on zsh, and set the options which allow our
32114     # commands through without removal of \ escapes.
32115     if test -n "${ZSH_VERSION+set}" ; then
32116       setopt NO_GLOB_SUBST
32117     fi
32118
32119     cfgfile="${ofile}T"
32120     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32121     $RM "$cfgfile"
32122
32123     cat <<_LT_EOF >> "$cfgfile"
32124 #! $SHELL
32125
32126 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32127 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32130 #
32131 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32132 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32133 #                 Inc.
32134 #   Written by Gordon Matzigkeit, 1996
32135 #
32136 #   This file is part of GNU Libtool.
32137 #
32138 # GNU Libtool is free software; you can redistribute it and/or
32139 # modify it under the terms of the GNU General Public License as
32140 # published by the Free Software Foundation; either version 2 of
32141 # the License, or (at your option) any later version.
32142 #
32143 # As a special exception to the GNU General Public License,
32144 # if you distribute this file as part of a program or library that
32145 # is built using GNU Libtool, you may include this file under the
32146 # same distribution terms that you use for the rest of that program.
32147 #
32148 # GNU Libtool is distributed in the hope that it will be useful,
32149 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32150 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32151 # GNU General Public License for more details.
32152 #
32153 # You should have received a copy of the GNU General Public License
32154 # along with GNU Libtool; see the file COPYING.  If not, a copy
32155 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32156 # obtained by writing to the Free Software Foundation, Inc.,
32157 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32158
32159
32160 # The names of the tagged configurations supported by this script.
32161 available_tags="CXX "
32162
32163 # ### BEGIN LIBTOOL CONFIG
32164
32165 # Which release of libtool.m4 was used?
32166 macro_version=$macro_version
32167 macro_revision=$macro_revision
32168
32169 # Whether or not to build shared libraries.
32170 build_libtool_libs=$enable_shared
32171
32172 # Whether or not to build static libraries.
32173 build_old_libs=$enable_static
32174
32175 # What type of objects to build.
32176 pic_mode=$pic_mode
32177
32178 # Whether or not to optimize for fast installation.
32179 fast_install=$enable_fast_install
32180
32181 # Shell to use when invoking shell scripts.
32182 SHELL=$lt_SHELL
32183
32184 # An echo program that protects backslashes.
32185 ECHO=$lt_ECHO
32186
32187 # The host system.
32188 host_alias=$host_alias
32189 host=$host
32190 host_os=$host_os
32191
32192 # The build system.
32193 build_alias=$build_alias
32194 build=$build
32195 build_os=$build_os
32196
32197 # A sed program that does not truncate output.
32198 SED=$lt_SED
32199
32200 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32201 Xsed="\$SED -e 1s/^X//"
32202
32203 # A grep program that handles long lines.
32204 GREP=$lt_GREP
32205
32206 # An ERE matcher.
32207 EGREP=$lt_EGREP
32208
32209 # A literal string matcher.
32210 FGREP=$lt_FGREP
32211
32212 # A BSD- or MS-compatible name lister.
32213 NM=$lt_NM
32214
32215 # Whether we need soft or hard links.
32216 LN_S=$lt_LN_S
32217
32218 # What is the maximum length of a command?
32219 max_cmd_len=$max_cmd_len
32220
32221 # Object file suffix (normally "o").
32222 objext=$ac_objext
32223
32224 # Executable file suffix (normally "").
32225 exeext=$exeext
32226
32227 # whether the shell understands "unset".
32228 lt_unset=$lt_unset
32229
32230 # turn spaces into newlines.
32231 SP2NL=$lt_lt_SP2NL
32232
32233 # turn newlines into spaces.
32234 NL2SP=$lt_lt_NL2SP
32235
32236 # convert \$build file names to \$host format.
32237 to_host_file_cmd=$lt_cv_to_host_file_cmd
32238
32239 # convert \$build files to toolchain format.
32240 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32241
32242 # An object symbol dumper.
32243 OBJDUMP=$lt_OBJDUMP
32244
32245 # Method to check whether dependent libraries are shared objects.
32246 deplibs_check_method=$lt_deplibs_check_method
32247
32248 # Command to use when deplibs_check_method = "file_magic".
32249 file_magic_cmd=$lt_file_magic_cmd
32250
32251 # How to find potential files when deplibs_check_method = "file_magic".
32252 file_magic_glob=$lt_file_magic_glob
32253
32254 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32255 want_nocaseglob=$lt_want_nocaseglob
32256
32257 # DLL creation program.
32258 DLLTOOL=$lt_DLLTOOL
32259
32260 # Command to associate shared and link libraries.
32261 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32262
32263 # The archiver.
32264 AR=$lt_AR
32265
32266 # Flags to create an archive.
32267 AR_FLAGS=$lt_AR_FLAGS
32268
32269 # How to feed a file listing to the archiver.
32270 archiver_list_spec=$lt_archiver_list_spec
32271
32272 # A symbol stripping program.
32273 STRIP=$lt_STRIP
32274
32275 # Commands used to install an old-style archive.
32276 RANLIB=$lt_RANLIB
32277 old_postinstall_cmds=$lt_old_postinstall_cmds
32278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32279
32280 # Whether to use a lock for old archive extraction.
32281 lock_old_archive_extraction=$lock_old_archive_extraction
32282
32283 # A C compiler.
32284 LTCC=$lt_CC
32285
32286 # LTCC compiler flags.
32287 LTCFLAGS=$lt_CFLAGS
32288
32289 # Take the output of nm and produce a listing of raw symbols and C names.
32290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32291
32292 # Transform the output of nm in a proper C declaration.
32293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32294
32295 # Transform the output of nm in a C name address pair.
32296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32297
32298 # Transform the output of nm in a C name address pair when lib prefix is needed.
32299 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32300
32301 # Specify filename containing input files for \$NM.
32302 nm_file_list_spec=$lt_nm_file_list_spec
32303
32304 # The root where to search for dependent libraries,and in which our libraries should be installed.
32305 lt_sysroot=$lt_sysroot
32306
32307 # The name of the directory that contains temporary libtool files.
32308 objdir=$objdir
32309
32310 # Used to examine libraries when file_magic_cmd begins with "file".
32311 MAGIC_CMD=$MAGIC_CMD
32312
32313 # Must we lock files when doing compilation?
32314 need_locks=$lt_need_locks
32315
32316 # Manifest tool.
32317 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32318
32319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32320 DSYMUTIL=$lt_DSYMUTIL
32321
32322 # Tool to change global to local symbols on Mac OS X.
32323 NMEDIT=$lt_NMEDIT
32324
32325 # Tool to manipulate fat objects and archives on Mac OS X.
32326 LIPO=$lt_LIPO
32327
32328 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32329 OTOOL=$lt_OTOOL
32330
32331 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32332 OTOOL64=$lt_OTOOL64
32333
32334 # Old archive suffix (normally "a").
32335 libext=$libext
32336
32337 # Shared library suffix (normally ".so").
32338 shrext_cmds=$lt_shrext_cmds
32339
32340 # The commands to extract the exported symbol list from a shared archive.
32341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32342
32343 # Variables whose values should be saved in libtool wrapper scripts and
32344 # restored at link time.
32345 variables_saved_for_relink=$lt_variables_saved_for_relink
32346
32347 # Do we need the "lib" prefix for modules?
32348 need_lib_prefix=$need_lib_prefix
32349
32350 # Do we need a version for libraries?
32351 need_version=$need_version
32352
32353 # Library versioning type.
32354 version_type=$version_type
32355
32356 # Shared library runtime path variable.
32357 runpath_var=$runpath_var
32358
32359 # Shared library path variable.
32360 shlibpath_var=$shlibpath_var
32361
32362 # Is shlibpath searched before the hard-coded library search path?
32363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32364
32365 # Format of library name prefix.
32366 libname_spec=$lt_libname_spec
32367
32368 # List of archive names.  First name is the real one, the rest are links.
32369 # The last name is the one that the linker finds with -lNAME
32370 library_names_spec=$lt_library_names_spec
32371
32372 # The coded name of the library, if different from the real name.
32373 soname_spec=$lt_soname_spec
32374
32375 # Permission mode override for installation of shared libraries.
32376 install_override_mode=$lt_install_override_mode
32377
32378 # Command to use after installation of a shared archive.
32379 postinstall_cmds=$lt_postinstall_cmds
32380
32381 # Command to use after uninstallation of a shared archive.
32382 postuninstall_cmds=$lt_postuninstall_cmds
32383
32384 # Commands used to finish a libtool library installation in a directory.
32385 finish_cmds=$lt_finish_cmds
32386
32387 # As "finish_cmds", except a single script fragment to be evaled but
32388 # not shown.
32389 finish_eval=$lt_finish_eval
32390
32391 # Whether we should hardcode library paths into libraries.
32392 hardcode_into_libs=$hardcode_into_libs
32393
32394 # Compile-time system search path for libraries.
32395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32396
32397 # Run-time system search path for libraries.
32398 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32399
32400 # Whether dlopen is supported.
32401 dlopen_support=$enable_dlopen
32402
32403 # Whether dlopen of programs is supported.
32404 dlopen_self=$enable_dlopen_self
32405
32406 # Whether dlopen of statically linked programs is supported.
32407 dlopen_self_static=$enable_dlopen_self_static
32408
32409 # Commands to strip libraries.
32410 old_striplib=$lt_old_striplib
32411 striplib=$lt_striplib
32412
32413
32414 # The linker used to build libraries.
32415 LD=$lt_LD
32416
32417 # How to create reloadable object files.
32418 reload_flag=$lt_reload_flag
32419 reload_cmds=$lt_reload_cmds
32420
32421 # Commands used to build an old-style archive.
32422 old_archive_cmds=$lt_old_archive_cmds
32423
32424 # A language specific compiler.
32425 CC=$lt_compiler
32426
32427 # Is the compiler the GNU compiler?
32428 with_gcc=$GCC
32429
32430 # Compiler flag to turn off builtin functions.
32431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32432
32433 # Additional compiler flags for building library objects.
32434 pic_flag=$lt_lt_prog_compiler_pic
32435
32436 # How to pass a linker flag through the compiler.
32437 wl=$lt_lt_prog_compiler_wl
32438
32439 # Compiler flag to prevent dynamic linking.
32440 link_static_flag=$lt_lt_prog_compiler_static
32441
32442 # Does compiler simultaneously support -c and -o options?
32443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32444
32445 # Whether or not to add -lc for building shared libraries.
32446 build_libtool_need_lc=$archive_cmds_need_lc
32447
32448 # Whether or not to disallow shared libs when runtime libs are static.
32449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32450
32451 # Compiler flag to allow reflexive dlopens.
32452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32453
32454 # Compiler flag to generate shared objects directly from archives.
32455 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32456
32457 # Whether the compiler copes with passing no objects directly.
32458 compiler_needs_object=$lt_compiler_needs_object
32459
32460 # Create an old-style archive from a shared archive.
32461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32462
32463 # Create a temporary old-style archive to link instead of a shared archive.
32464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32465
32466 # Commands used to build a shared archive.
32467 archive_cmds=$lt_archive_cmds
32468 archive_expsym_cmds=$lt_archive_expsym_cmds
32469
32470 # Commands used to build a loadable module if different from building
32471 # a shared archive.
32472 module_cmds=$lt_module_cmds
32473 module_expsym_cmds=$lt_module_expsym_cmds
32474
32475 # Whether we are building with GNU ld or not.
32476 with_gnu_ld=$lt_with_gnu_ld
32477
32478 # Flag that allows shared libraries with undefined symbols to be built.
32479 allow_undefined_flag=$lt_allow_undefined_flag
32480
32481 # Flag that enforces no undefined symbols.
32482 no_undefined_flag=$lt_no_undefined_flag
32483
32484 # Flag to hardcode \$libdir into a binary during linking.
32485 # This must work even if \$libdir does not exist
32486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32487
32488 # If ld is used when linking, flag to hardcode \$libdir into a binary
32489 # during linking.  This must work even if \$libdir does not exist.
32490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32491
32492 # Whether we need a single "-rpath" flag with a separated argument.
32493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32494
32495 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32496 # DIR into the resulting binary.
32497 hardcode_direct=$hardcode_direct
32498
32499 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32500 # DIR into the resulting binary and the resulting library dependency is
32501 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32502 # library is relocated.
32503 hardcode_direct_absolute=$hardcode_direct_absolute
32504
32505 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32506 # into the resulting binary.
32507 hardcode_minus_L=$hardcode_minus_L
32508
32509 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32510 # into the resulting binary.
32511 hardcode_shlibpath_var=$hardcode_shlibpath_var
32512
32513 # Set to "yes" if building a shared library automatically hardcodes DIR
32514 # into the library and all subsequent libraries and executables linked
32515 # against it.
32516 hardcode_automatic=$hardcode_automatic
32517
32518 # Set to yes if linker adds runtime paths of dependent libraries
32519 # to runtime path list.
32520 inherit_rpath=$inherit_rpath
32521
32522 # Whether libtool must link a program against all its dependency libraries.
32523 link_all_deplibs=$link_all_deplibs
32524
32525 # Set to "yes" if exported symbols are required.
32526 always_export_symbols=$always_export_symbols
32527
32528 # The commands to list exported symbols.
32529 export_symbols_cmds=$lt_export_symbols_cmds
32530
32531 # Symbols that should not be listed in the preloaded symbols.
32532 exclude_expsyms=$lt_exclude_expsyms
32533
32534 # Symbols that must always be exported.
32535 include_expsyms=$lt_include_expsyms
32536
32537 # Commands necessary for linking programs (against libraries) with templates.
32538 prelink_cmds=$lt_prelink_cmds
32539
32540 # Commands necessary for finishing linking programs.
32541 postlink_cmds=$lt_postlink_cmds
32542
32543 # Specify filename containing input files.
32544 file_list_spec=$lt_file_list_spec
32545
32546 # How to hardcode a shared library path into an executable.
32547 hardcode_action=$hardcode_action
32548
32549 # The directories searched by this compiler when creating a shared library.
32550 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32551
32552 # Dependencies to place before and after the objects being linked to
32553 # create a shared library.
32554 predep_objects=$lt_predep_objects
32555 postdep_objects=$lt_postdep_objects
32556 predeps=$lt_predeps
32557 postdeps=$lt_postdeps
32558
32559 # The library search path used internally by the compiler when linking
32560 # a shared library.
32561 compiler_lib_search_path=$lt_compiler_lib_search_path
32562
32563 # ### END LIBTOOL CONFIG
32564
32565 _LT_EOF
32566
32567   case $host_os in
32568   aix3*)
32569     cat <<\_LT_EOF >> "$cfgfile"
32570 # AIX sometimes has problems with the GCC collect2 program.  For some
32571 # reason, if we set the COLLECT_NAMES environment variable, the problems
32572 # vanish in a puff of smoke.
32573 if test "X${COLLECT_NAMES+set}" != Xset; then
32574   COLLECT_NAMES=
32575   export COLLECT_NAMES
32576 fi
32577 _LT_EOF
32578     ;;
32579   esac
32580
32581
32582 ltmain="$ac_aux_dir/ltmain.sh"
32583
32584
32585   # We use sed instead of cat because bash on DJGPP gets confused if
32586   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32587   # text mode, it properly converts lines to CR/LF.  This bash problem
32588   # is reportedly fixed, but why not run on old versions too?
32589   sed '$q' "$ltmain" >> "$cfgfile" \
32590      || (rm -f "$cfgfile"; exit 1)
32591
32592   if test x"$xsi_shell" = xyes; then
32593   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32594 func_dirname ()\
32595 {\
32596 \    case ${1} in\
32597 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32598 \      *  ) func_dirname_result="${3}" ;;\
32599 \    esac\
32600 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32601   && mv -f "$cfgfile.tmp" "$cfgfile" \
32602     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32603 test 0 -eq $? || _lt_function_replace_fail=:
32604
32605
32606   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32607 func_basename ()\
32608 {\
32609 \    func_basename_result="${1##*/}"\
32610 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32611   && mv -f "$cfgfile.tmp" "$cfgfile" \
32612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32613 test 0 -eq $? || _lt_function_replace_fail=:
32614
32615
32616   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32617 func_dirname_and_basename ()\
32618 {\
32619 \    case ${1} in\
32620 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32621 \      *  ) func_dirname_result="${3}" ;;\
32622 \    esac\
32623 \    func_basename_result="${1##*/}"\
32624 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32625   && mv -f "$cfgfile.tmp" "$cfgfile" \
32626     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32627 test 0 -eq $? || _lt_function_replace_fail=:
32628
32629
32630   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32631 func_stripname ()\
32632 {\
32633 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32634 \    # positional parameters, so assign one to ordinary parameter first.\
32635 \    func_stripname_result=${3}\
32636 \    func_stripname_result=${func_stripname_result#"${1}"}\
32637 \    func_stripname_result=${func_stripname_result%"${2}"}\
32638 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32639   && mv -f "$cfgfile.tmp" "$cfgfile" \
32640     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32641 test 0 -eq $? || _lt_function_replace_fail=:
32642
32643
32644   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32645 func_split_long_opt ()\
32646 {\
32647 \    func_split_long_opt_name=${1%%=*}\
32648 \    func_split_long_opt_arg=${1#*=}\
32649 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32650   && mv -f "$cfgfile.tmp" "$cfgfile" \
32651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32652 test 0 -eq $? || _lt_function_replace_fail=:
32653
32654
32655   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32656 func_split_short_opt ()\
32657 {\
32658 \    func_split_short_opt_arg=${1#??}\
32659 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32660 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32661   && mv -f "$cfgfile.tmp" "$cfgfile" \
32662     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32663 test 0 -eq $? || _lt_function_replace_fail=:
32664
32665
32666   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32667 func_lo2o ()\
32668 {\
32669 \    case ${1} in\
32670 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32671 \      *)    func_lo2o_result=${1} ;;\
32672 \    esac\
32673 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32674   && mv -f "$cfgfile.tmp" "$cfgfile" \
32675     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32676 test 0 -eq $? || _lt_function_replace_fail=:
32677
32678
32679   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32680 func_xform ()\
32681 {\
32682     func_xform_result=${1%.*}.lo\
32683 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32684   && mv -f "$cfgfile.tmp" "$cfgfile" \
32685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32686 test 0 -eq $? || _lt_function_replace_fail=:
32687
32688
32689   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32690 func_arith ()\
32691 {\
32692     func_arith_result=$(( $* ))\
32693 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32694   && mv -f "$cfgfile.tmp" "$cfgfile" \
32695     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32696 test 0 -eq $? || _lt_function_replace_fail=:
32697
32698
32699   sed -e '/^func_len ()$/,/^} # func_len /c\
32700 func_len ()\
32701 {\
32702     func_len_result=${#1}\
32703 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32704   && mv -f "$cfgfile.tmp" "$cfgfile" \
32705     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32706 test 0 -eq $? || _lt_function_replace_fail=:
32707
32708 fi
32709
32710 if test x"$lt_shell_append" = xyes; then
32711   sed -e '/^func_append ()$/,/^} # func_append /c\
32712 func_append ()\
32713 {\
32714     eval "${1}+=\\${2}"\
32715 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32716   && mv -f "$cfgfile.tmp" "$cfgfile" \
32717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32718 test 0 -eq $? || _lt_function_replace_fail=:
32719
32720
32721   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32722 func_append_quoted ()\
32723 {\
32724 \    func_quote_for_eval "${2}"\
32725 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32726 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32727   && mv -f "$cfgfile.tmp" "$cfgfile" \
32728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32729 test 0 -eq $? || _lt_function_replace_fail=:
32730
32731
32732   # Save a `func_append' function call where possible by direct use of '+='
32733   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32734     && mv -f "$cfgfile.tmp" "$cfgfile" \
32735       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32736   test 0 -eq $? || _lt_function_replace_fail=:
32737 else
32738   # Save a `func_append' function call even when '+=' is not available
32739   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32740     && mv -f "$cfgfile.tmp" "$cfgfile" \
32741       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32742   test 0 -eq $? || _lt_function_replace_fail=:
32743 fi
32744
32745 if test x"$_lt_function_replace_fail" = x":"; then
32746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32747 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32748 fi
32749
32750
32751    mv -f "$cfgfile" "$ofile" ||
32752     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32753   chmod +x "$ofile"
32754
32755
32756     cat <<_LT_EOF >> "$ofile"
32757
32758 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32759
32760 # The linker used to build libraries.
32761 LD=$lt_LD_CXX
32762
32763 # How to create reloadable object files.
32764 reload_flag=$lt_reload_flag_CXX
32765 reload_cmds=$lt_reload_cmds_CXX
32766
32767 # Commands used to build an old-style archive.
32768 old_archive_cmds=$lt_old_archive_cmds_CXX
32769
32770 # A language specific compiler.
32771 CC=$lt_compiler_CXX
32772
32773 # Is the compiler the GNU compiler?
32774 with_gcc=$GCC_CXX
32775
32776 # Compiler flag to turn off builtin functions.
32777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32778
32779 # Additional compiler flags for building library objects.
32780 pic_flag=$lt_lt_prog_compiler_pic_CXX
32781
32782 # How to pass a linker flag through the compiler.
32783 wl=$lt_lt_prog_compiler_wl_CXX
32784
32785 # Compiler flag to prevent dynamic linking.
32786 link_static_flag=$lt_lt_prog_compiler_static_CXX
32787
32788 # Does compiler simultaneously support -c and -o options?
32789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32790
32791 # Whether or not to add -lc for building shared libraries.
32792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32793
32794 # Whether or not to disallow shared libs when runtime libs are static.
32795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32796
32797 # Compiler flag to allow reflexive dlopens.
32798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32799
32800 # Compiler flag to generate shared objects directly from archives.
32801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32802
32803 # Whether the compiler copes with passing no objects directly.
32804 compiler_needs_object=$lt_compiler_needs_object_CXX
32805
32806 # Create an old-style archive from a shared archive.
32807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32808
32809 # Create a temporary old-style archive to link instead of a shared archive.
32810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32811
32812 # Commands used to build a shared archive.
32813 archive_cmds=$lt_archive_cmds_CXX
32814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32815
32816 # Commands used to build a loadable module if different from building
32817 # a shared archive.
32818 module_cmds=$lt_module_cmds_CXX
32819 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32820
32821 # Whether we are building with GNU ld or not.
32822 with_gnu_ld=$lt_with_gnu_ld_CXX
32823
32824 # Flag that allows shared libraries with undefined symbols to be built.
32825 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32826
32827 # Flag that enforces no undefined symbols.
32828 no_undefined_flag=$lt_no_undefined_flag_CXX
32829
32830 # Flag to hardcode \$libdir into a binary during linking.
32831 # This must work even if \$libdir does not exist
32832 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32833
32834 # If ld is used when linking, flag to hardcode \$libdir into a binary
32835 # during linking.  This must work even if \$libdir does not exist.
32836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32837
32838 # Whether we need a single "-rpath" flag with a separated argument.
32839 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32840
32841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32842 # DIR into the resulting binary.
32843 hardcode_direct=$hardcode_direct_CXX
32844
32845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32846 # DIR into the resulting binary and the resulting library dependency is
32847 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32848 # library is relocated.
32849 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32850
32851 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32852 # into the resulting binary.
32853 hardcode_minus_L=$hardcode_minus_L_CXX
32854
32855 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32856 # into the resulting binary.
32857 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32858
32859 # Set to "yes" if building a shared library automatically hardcodes DIR
32860 # into the library and all subsequent libraries and executables linked
32861 # against it.
32862 hardcode_automatic=$hardcode_automatic_CXX
32863
32864 # Set to yes if linker adds runtime paths of dependent libraries
32865 # to runtime path list.
32866 inherit_rpath=$inherit_rpath_CXX
32867
32868 # Whether libtool must link a program against all its dependency libraries.
32869 link_all_deplibs=$link_all_deplibs_CXX
32870
32871 # Set to "yes" if exported symbols are required.
32872 always_export_symbols=$always_export_symbols_CXX
32873
32874 # The commands to list exported symbols.
32875 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32876
32877 # Symbols that should not be listed in the preloaded symbols.
32878 exclude_expsyms=$lt_exclude_expsyms_CXX
32879
32880 # Symbols that must always be exported.
32881 include_expsyms=$lt_include_expsyms_CXX
32882
32883 # Commands necessary for linking programs (against libraries) with templates.
32884 prelink_cmds=$lt_prelink_cmds_CXX
32885
32886 # Commands necessary for finishing linking programs.
32887 postlink_cmds=$lt_postlink_cmds_CXX
32888
32889 # Specify filename containing input files.
32890 file_list_spec=$lt_file_list_spec_CXX
32891
32892 # How to hardcode a shared library path into an executable.
32893 hardcode_action=$hardcode_action_CXX
32894
32895 # The directories searched by this compiler when creating a shared library.
32896 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32897
32898 # Dependencies to place before and after the objects being linked to
32899 # create a shared library.
32900 predep_objects=$lt_predep_objects_CXX
32901 postdep_objects=$lt_postdep_objects_CXX
32902 predeps=$lt_predeps_CXX
32903 postdeps=$lt_postdeps_CXX
32904
32905 # The library search path used internally by the compiler when linking
32906 # a shared library.
32907 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32908
32909 # ### END LIBTOOL TAG CONFIG: CXX
32910 _LT_EOF
32911
32912  ;;
32913     "default-1":C)
32914     for ac_file in $CONFIG_FILES; do
32915       # Support "outfile[:infile[:infile...]]"
32916       case "$ac_file" in
32917         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32918       esac
32919       # PO directories have a Makefile.in generated from Makefile.in.in.
32920       case "$ac_file" in */Makefile.in)
32921         # Adjust a relative srcdir.
32922         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32923         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32924         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32925         # In autoconf-2.13 it is called $ac_given_srcdir.
32926         # In autoconf-2.50 it is called $srcdir.
32927         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32928         case "$ac_given_srcdir" in
32929           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32930           /*) top_srcdir="$ac_given_srcdir" ;;
32931           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32932         esac
32933         # Treat a directory as a PO directory if and only if it has a
32934         # POTFILES.in file. This allows packages to have multiple PO
32935         # directories under different names or in different locations.
32936         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32937           rm -f "$ac_dir/POTFILES"
32938           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32939           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32940           POMAKEFILEDEPS="POTFILES.in"
32941           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32942           # on $ac_dir but don't depend on user-specified configuration
32943           # parameters.
32944           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32945             # The LINGUAS file contains the set of available languages.
32946             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32947               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32948             fi
32949             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32950             # Hide the ALL_LINGUAS assigment from automake.
32951             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32952             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32953           else
32954             # The set of available languages was given in configure.in.
32955             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32956           fi
32957           # Compute POFILES
32958           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32959           # Compute UPDATEPOFILES
32960           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32961           # Compute DUMMYPOFILES
32962           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32963           # Compute GMOFILES
32964           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32965           case "$ac_given_srcdir" in
32966             .) srcdirpre= ;;
32967             *) srcdirpre='$(srcdir)/' ;;
32968           esac
32969           POFILES=
32970           UPDATEPOFILES=
32971           DUMMYPOFILES=
32972           GMOFILES=
32973           for lang in $ALL_LINGUAS; do
32974             POFILES="$POFILES $srcdirpre$lang.po"
32975             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32976             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32977             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32978           done
32979           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32980           # environment variable.
32981           INST_LINGUAS=
32982           if test -n "$ALL_LINGUAS"; then
32983             for presentlang in $ALL_LINGUAS; do
32984               useit=no
32985               if test "%UNSET%" != "$LINGUAS"; then
32986                 desiredlanguages="$LINGUAS"
32987               else
32988                 desiredlanguages="$ALL_LINGUAS"
32989               fi
32990               for desiredlang in $desiredlanguages; do
32991                 # Use the presentlang catalog if desiredlang is
32992                 #   a. equal to presentlang, or
32993                 #   b. a variant of presentlang (because in this case,
32994                 #      presentlang can be used as a fallback for messages
32995                 #      which are not translated in the desiredlang catalog).
32996                 case "$desiredlang" in
32997                   "$presentlang"*) useit=yes;;
32998                 esac
32999               done
33000               if test $useit = yes; then
33001                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33002               fi
33003             done
33004           fi
33005           CATALOGS=
33006           if test -n "$INST_LINGUAS"; then
33007             for lang in $INST_LINGUAS; do
33008               CATALOGS="$CATALOGS $lang.gmo"
33009             done
33010           fi
33011           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33012           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"
33013           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33014             if test -f "$f"; then
33015               case "$f" in
33016                 *.orig | *.bak | *~) ;;
33017                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33018               esac
33019             fi
33020           done
33021         fi
33022         ;;
33023       esac
33024     done ;;
33025     "default":C)
33026  ;;
33027
33028   esac
33029 done # for ac_tag
33030
33031
33032 as_fn_exit 0
33033 _ACEOF
33034 ac_clean_files=$ac_clean_files_save
33035
33036 test $ac_write_fail = 0 ||
33037   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33038
33039
33040 # configure is writing to config.log, and then calls config.status.
33041 # config.status does its own redirection, appending to config.log.
33042 # Unfortunately, on DOS this fails, as config.log is still kept open
33043 # by configure, so config.status won't be able to write to it; its
33044 # output is simply discarded.  So we exec the FD to /dev/null,
33045 # effectively closing config.log, so it can be properly (re)opened and
33046 # appended to by config.status.  When coming back to configure, we
33047 # need to make the FD available again.
33048 if test "$no_create" != yes; then
33049   ac_cs_success=:
33050   ac_config_status_args=
33051   test "$silent" = yes &&
33052     ac_config_status_args="$ac_config_status_args --quiet"
33053   exec 5>/dev/null
33054   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33055   exec 5>>config.log
33056   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33057   # would make configure fail if this is the last instruction.
33058   $ac_cs_success || as_fn_exit $?
33059 fi
33060 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33061   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33062 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33063 fi
33064
33065
33066 if test "${support_bat}" = "yes" ; then
33067    if test "x$QMAKE" = "xnone"; then
33068       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33069    fi
33070
33071    cd src/qt-console
33072    echo "Creating bat Makefile"
33073    touch bat
33074    chmod 755 bat
33075    rm -f Makefile
33076    $QMAKE
33077    ${MAKE:-make} clean
33078    cd ${BUILD_DIR}
33079 fi
33080
33081 if test X"$GCC" = "Xyes" ; then
33082   echo "Doing make of dependencies"
33083   ${MAKE:-make} depend
33084 fi
33085
33086 cd src/qt-console
33087 chmod 755 install_conf_file build-depkgs-qt-console
33088 cd ${BUILD_DIR}
33089
33090 cd scripts
33091 chmod 755 bacula btraceback mtx-changer
33092 chmod 755 dvd-handler dvd-simulator
33093 chmod 755 bconsole mtx-changer devel_bacula logrotate
33094 cd ..
33095
33096 c=updatedb
33097 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33098 chmod 755 $c/update_postgresql_tables_10_to_11
33099 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33100 chmod 755 $c/update_postgresql_tables_11_to_12
33101
33102
33103 c=src/cats
33104
33105 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33106 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33107
33108 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33109 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33110
33111 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33112 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33113
33114 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33115 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33116
33117 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33118 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33119
33120
33121 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33122 chmod 755 $c/sqlite
33123 chmod 755 $c/mysql
33124
33125 chmod 755 $c/install-default-backend
33126
33127 chmod 755 src/win32/build-depkgs-mingw32
33128
33129 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33130    largefile_support="yes"
33131 fi
33132
33133 if test X"$GCC" = "Xyes" ; then
33134                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33135    if test "x${CCVERSION}" = "x" ; then
33136       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33137    fi
33138    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33139    if test x"${CXXVERSION}" = x ; then
33140       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33141    fi
33142 fi
33143
33144 # clean up any old junk
33145 echo " "
33146 echo "Cleaning up"
33147 echo " "
33148 ${MAKE:-make} clean
33149
33150 echo "
33151 Configuration on `date`:
33152
33153    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33154    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33155    Source code location:     ${srcdir}
33156    Install binaries:         ${sbindir}
33157    Install libraries:        ${libdir}
33158    Install config files:     ${sysconfdir}
33159    Scripts directory:        ${scriptdir}
33160    Archive directory:        ${archivedir}
33161    Working directory:        ${working_dir}
33162    PID directory:            ${piddir}
33163    Subsys directory:         ${subsysdir}
33164    Man directory:            ${mandir}
33165    Data directory:           ${datarootdir}
33166    Plugin directory:         ${plugindir}
33167    C Compiler:               ${CC} ${CCVERSION}
33168    C++ Compiler:             ${CXX} ${CXXVERSION}
33169    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33170    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33171    Libraries:                ${LIBS}
33172    Statically Linked Tools:  ${support_static_tools}
33173    Statically Linked FD:     ${support_static_fd}
33174    Statically Linked SD:     ${support_static_sd}
33175    Statically Linked DIR:    ${support_static_dir}
33176    Statically Linked CONS:   ${support_static_cons}
33177    Database backends:        ${db_backends}
33178    Database port:            ${db_port}
33179    Database name:            ${db_name}
33180    Database user:            ${db_user}
33181
33182    Job Output Email:         ${job_email}
33183    Traceback Email:          ${dump_email}
33184    SMTP Host Address:        ${smtp_host}
33185
33186    Director Port:            ${dir_port}
33187    File daemon Port:         ${fd_port}
33188    Storage daemon Port:      ${sd_port}
33189
33190    Director User:            ${dir_user}
33191    Director Group:           ${dir_group}
33192    Storage Daemon User:      ${sd_user}
33193    Storage DaemonGroup:      ${sd_group}
33194    File Daemon User:         ${fd_user}
33195    File Daemon Group:        ${fd_group}
33196
33197    Large file support:       $largefile_support
33198    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33199    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33200    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33201    TLS support:              ${support_tls}
33202    Encryption support:       ${support_crypto}
33203    ZLIB support:             ${have_zlib}
33204    LZO support:              ${have_lzo}
33205    enable-smartalloc:        ${support_smartalloc}
33206    enable-lockmgr:           ${support_lockmgr}
33207    bat support:              ${support_bat}
33208    enable-gnome:             ${support_gnome} ${gnome_version}
33209    enable-bwx-console:       ${support_wx_console} ${wx_version}
33210    enable-tray-monitor:      ${support_tray_monitor}
33211    client-only:              ${build_client_only}
33212    build-dird:               ${build_dird}
33213    build-stored:             ${build_stored}
33214    Plugin support:           ${have_plugins}
33215    ACL support:              ${have_acl}
33216    XATTR support:            ${have_xattr}
33217    Python support:           ${support_python} ${PYTHON_LIBS}
33218    Batch insert enabled:     ${batch_insert_db_backends}
33219
33220   " > config.out
33221
33222 # create a small shell script useful for support with
33223 # configure options and config.out info
33224 cat > scripts/bacula_config << EOF
33225 #!/bin/sh
33226 cat << __EOC__
33227 $ $0 $ac_configure_args
33228 EOF
33229 cat config.out >> scripts/bacula_config
33230 echo __EOC__ >> scripts/bacula_config
33231 chmod 755 scripts/bacula_config
33232
33233 cat config.out