]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak rebuild 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.0.
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.0'
563 PACKAGE_STRING='bacula 5.2.0'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_unique_file="src/version.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_header_list=
605 ac_subst_vars='LTLIBOBJS
606 COMPRESS_MANPAGES
607 DISTVER
608 DISTNAME
609 MACOSX
610 WIN32
611 PSCMD
612 TAPEDRIVE
613 OBJLIST
614 WRAPLIBS
615 WLDFLAGS
616 WCFLAGS
617 DLIB
618 DINCLUDE
619 DEBUG
620 FDLIBS
621 CAP_LIBS
622 LZOLIBS
623 ZLIBS
624 LIBOBJS
625 X_EXTRA_LIBS
626 X_LIBS
627 X_PRE_LIBS
628 X_CFLAGS
629 XMKMF
630 GETCONF
631 uncomment_dbi
632 SHARED_CATALOG_TARGETS
633 DEFAULT_DB_TYPE
634 DB_LIBS
635 DB_BACKENDS
636 SQLITE_BINDIR
637 SQLITE_INCLUDE
638 SQLITE_LIBS
639 MYSQL_BINDIR
640 MYSQL_INCLUDE
641 MYSQL_LIBS
642 POSTGRESQL_BINDIR
643 POSTGRESQL_INCLUDE
644 POSTGRESQL_LIBS
645 SBINPERM
646 fd_group
647 fd_user
648 sd_group
649 sd_user
650 dir_group
651 dir_user
652 db_port
653 db_password
654 db_user
655 db_name
656 mon_sd_password
657 mon_fd_password
658 mon_dir_password
659 sd_password
660 fd_password
661 dir_password
662 sd_port
663 fd_port
664 dir_port
665 baseport
666 subsysdir
667 piddir
668 smtp_host
669 job_email
670 dump_email
671 plugindir
672 logdir
673 bsrdir
674 scriptdir
675 hostname
676 basename
677 archivedir
678 working_dir
679 OPENSSL_INC
680 OPENSSL_LIBS
681 PYTHON_INCDIR
682 PYTHON_LIBS
683 READLINE_SRC
684 CONS_LDFLAGS
685 CONS_LIBS
686 CONS_SRC
687 CONS_OBJ
688 CONS_INC
689 STORED_DIR
690 DIR_TOOLS
691 DIRD_DIR
692 ALL_DIRS
693 STATIC_WX_CONS
694 STATIC_GNOME_CONS
695 STATIC_CONS
696 STATIC_DIR
697 STATIC_SD
698 STATIC_FD
699 TTOOL_LDFLAGS
700 TRAY_MONITOR_DIR
701 TRAY_MONITOR_LDFLAGS
702 TRAY_MONITOR_CPPFLAGS
703 WX_DIR
704 WXCONS_LDFLAGS
705 WXCONS_CPPFLAGS
706 QWT
707 QWT_LIB
708 QWT_LDFLAGS
709 QWT_INC
710 BAT_DIR
711 INTL_LIBTOOL_SUFFIX_PREFIX
712 INTLOBJS
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATOBJEXT
717 USE_INCLUDED_LIBINTL
718 BUILD_INCLUDED_LIBINTL
719 INTLBISON
720 HAVE_WPRINTF
721 HAVE_SNPRINTF
722 HAVE_ASPRINTF
723 HAVE_POSIX_PRINTF
724 GLIBC21
725 ALLOCA
726 GLIBC2
727 POSUB
728 LTLIBINTL
729 LIBINTL
730 INTLLIBS
731 LTLIBICONV
732 LIBICONV
733 INTL_MACOSX_LIBS
734 MSGMERGE
735 XGETTEXT
736 GMSGFMT
737 MSGFMT
738 USE_NLS
739 MKINSTALLDIRS
740 SET_MAKE
741 HAVE_DARWIN_OS_FALSE
742 HAVE_DARWIN_OS_TRUE
743 HAVE_IRIX_OS_FALSE
744 HAVE_IRIX_OS_TRUE
745 HAVE_SGI_OS_FALSE
746 HAVE_SGI_OS_TRUE
747 HAVE_BSDI_OS_FALSE
748 HAVE_BSDI_OS_TRUE
749 HAVE_OPENBSD_OS_FALSE
750 HAVE_OPENBSD_OS_TRUE
751 HAVE_NETBSD_OS_FALSE
752 HAVE_NETBSD_OS_TRUE
753 HAVE_FREEBSD_OS_FALSE
754 HAVE_FREEBSD_OS_TRUE
755 HAVE_LINUX_OS_FALSE
756 HAVE_LINUX_OS_TRUE
757 HAVE_HPUX_OS_FALSE
758 HAVE_HPUX_OS_TRUE
759 HAVE_AIX_OS_FALSE
760 HAVE_AIX_OS_TRUE
761 HAVE_OSF1_OS_FALSE
762 HAVE_OSF1_OS_TRUE
763 HAVE_SUN_OS_FALSE
764 HAVE_SUN_OS_TRUE
765 INCLUDE_UNINSTALL_TARGET
766 INCLUDE_INSTALL_TARGET
767 FD_PLUGIN_DIR
768 QMAKE_LIBTOOL
769 LIBTOOL_CLEAN_TARGET
770 LIBTOOL_UNINSTALL_TARGET
771 LIBTOOL_INSTALL_TARGET
772 DEFAULT_SHARED_OBJECT_TYPE
773 DEFAULT_ARCHIVE_TYPE
774 DEFAULT_OBJECT_TYPE
775 CXXCPP
776 OTOOL64
777 OTOOL
778 LIPO
779 NMEDIT
780 DSYMUTIL
781 MANIFEST_TOOL
782 RANLIB
783 STRIP
784 ac_ct_AR
785 DLLTOOL
786 OBJDUMP
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 host_os
794 host_vendor
795 host_cpu
796 host
797 build_os
798 build_vendor
799 build_cpu
800 build
801 LIBTOOL
802 LOCAL_DEFS
803 LOCAL_LDFLAGS
804 LOCAL_CFLAGS
805 LOCAL_LIBS
806 MAKE_SHELL
807 ARFLAGS
808 AWK
809 PIDOF
810 CDRECORD
811 WXFLAGS
812 WXCONFIG
813 GMAKE
814 QMAKE
815 PKGCONFIG
816 DVDRWFORMAT
817 DVDRWMEDIAINFO
818 GROWISOFS
819 PYTHON
820 MKISOFS
821 DD
822 MTX
823 OPENSSL
824 AR
825 TBL
826 CMP
827 ECHO
828 SED
829 CP
830 REMOVE
831 MV
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 EGREP
836 GREP
837 CPP
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 LIBBACFIND_LT_RELEASE
849 LIBBACCATS_LT_RELEASE
850 LIBBACSQL_LT_RELEASE
851 LIBBACPY_LT_RELEASE
852 LIBBACCFG_LT_RELEASE
853 LIBBAC_LT_RELEASE
854 BDB_VERSION
855 post_host
856 BACULA
857 LSMDATE
858 DATE
859 VERSION
860 FALSEPRG
861 TRUEPRG
862 WIN32TOPDIR
863 WIN32MAINDIR
864 WIN32BUILDDIR
865 TOP_DIR
866 BUILD_DIR
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files='MCOMMON'
906 ac_user_opts='
907 enable_option_checking
908 enable_libtool
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 with_sysroot
915 enable_libtool_lock
916 enable_includes
917 enable_nls
918 enable_rpath
919 with_libiconv_prefix
920 with_libintl_prefix
921 with_included_gettext
922 enable_gnome
923 enable_bat
924 enable_bwx_console
925 enable_tray_monitor
926 enable_smartalloc
927 enable_lockmgr
928 enable_static_tools
929 enable_static_fd
930 enable_static_sd
931 enable_static_dir
932 enable_static_cons
933 enable_client_only
934 enable_build_dird
935 enable_build_stored
936 enable_conio
937 enable_ipv6
938 enable_readline
939 with_readline
940 with_python
941 with_tcp_wrappers
942 with_openssl
943 with_working_dir
944 with_archivedir
945 with_basename
946 with_hostname
947 with_scriptdir
948 with_bsrdir
949 with_logdir
950 with_plugindir
951 with_dump_email
952 with_job_email
953 with_smtp_host
954 with_pid_dir
955 with_subsys_dir
956 with_baseport
957 with_dir_password
958 with_fd_password
959 with_sd_password
960 with_mon_dir_password
961 with_mon_fd_password
962 with_mon_sd_password
963 with_db_name
964 with_db_user
965 with_db_password
966 with_db_port
967 with_dir_user
968 with_dir_group
969 with_sd_user
970 with_sd_group
971 with_fd_user
972 with_fd_group
973 with_sbin_perm
974 with_postgresql
975 with_mysql
976 with_embedded_mysql
977 with_sqlite3
978 enable_batch_insert
979 enable_largefile
980 with_x
981 enable_acl
982 enable_xattr
983 '
984       ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 CC
988 CFLAGS
989 LDFLAGS
990 LIBS
991 CPPFLAGS
992 CXX
993 CXXFLAGS
994 CCC
995 CPP
996 WXCONFIG
997 WXFLAGS
998 CXXCPP
999 XMKMF'
1000
1001
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1023
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1049
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1053 do
1054   # If the previous option needs an argument, assign it.
1055   if test -n "$ac_prev"; then
1056     eval $ac_prev=\$ac_option
1057     ac_prev=
1058     continue
1059   fi
1060
1061   case $ac_option in
1062   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063   *)    ac_optarg=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.0 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.0:";;
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.0
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.0, 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 support_lockmgr=no
21405
21406
21407 # Check whether --enable-gnome was given.
21408 if test "${enable_gnome+set}" = set; then :
21409   enableval=$enable_gnome;
21410        if test x$enableval = xyes; then
21411           support_gnome=yes
21412        fi
21413
21414
21415 fi
21416
21417
21418 GNOME_DIR=
21419 if test x$support_gnome = xyes; then
21420    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
21421    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
21422 fi
21423 # AC_SUBST(GNOME_DIR)
21424
21425 # Check whether --enable-bat was given.
21426 if test "${enable_bat+set}" = set; then :
21427   enableval=$enable_bat;
21428        if test x$enableval = xyes; then
21429
21430 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21431
21432           support_bat=yes
21433        fi
21434
21435
21436 fi
21437
21438
21439 BAT_DIR=
21440 if test x$support_bat = xyes; then
21441    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21442    pkg=$?
21443    if test $pkg = 0; then
21444       BAT_DIR=src/qt-console
21445    else
21446       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21447    fi
21448 fi
21449
21450 got_qwt=no
21451 QWT_INC=
21452 QWT_LDFLAGS=
21453 QWT_LIB=
21454 QWT=
21455 no_qwt=no
21456
21457
21458
21459
21460
21461
21462
21463
21464 # Check whether --enable-bwx-console was given.
21465 if test "${enable_bwx_console+set}" = set; then :
21466   enableval=$enable_bwx_console;
21467        if test x$enableval = xyes; then
21468           support_wx_console=yes
21469        fi
21470
21471
21472 fi
21473
21474
21475 WX_DIR=
21476 if test x$support_wx_console = xyes; then
21477    abc=`$WXCONFIG $WXFLAGS --cppflags`
21478    pkg=$?
21479    if test $pkg = 0; then
21480       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21481       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21482       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21483
21484
21485
21486       WX_DIR="src/wx-console"
21487    else
21488       echo " "
21489       echo "wx-config program not found. bwx-console disabled."
21490       echo " "
21491       support_wx_console=no
21492    fi
21493 fi
21494
21495
21496 # Check whether --enable-tray-monitor was given.
21497 if test "${enable_tray_monitor+set}" = set; then :
21498   enableval=$enable_tray_monitor;
21499        if test x$enableval = xyes; then
21500           support_tray_monitor=yes
21501        fi
21502
21503
21504 fi
21505
21506
21507 TRAY_MONITOR_DIR=
21508 if test x$support_tray_monitor = xyes; then
21509    abc=`$PKGCONFIG --exists gtk+-2.0`
21510    pkg=$?
21511    if test $pkg = 0; then
21512       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21513       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21514
21515
21516       TRAY_MONITOR_DIR=src/tray-monitor
21517       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21518       pkg=$?
21519       if test $pkg = 0; then
21520
21521 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21522
21523       fi
21524    fi
21525 fi
21526
21527
21528 # Check whether --enable-smartalloc was given.
21529 if test "${enable_smartalloc+set}" = set; then :
21530   enableval=$enable_smartalloc;
21531        if test x$enableval = xno; then
21532           support_smartalloc=no
21533        fi
21534
21535
21536 fi
21537
21538
21539 if test x$support_smartalloc = xyes; then
21540
21541 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21542
21543 fi
21544
21545 # Check whether --enable-lockmgr was given.
21546 if test "${enable_lockmgr+set}" = set; then :
21547   enableval=$enable_lockmgr;
21548        if test x$enableval = xyes; then
21549           support_lockmgr=yes
21550        fi
21551
21552
21553 fi
21554
21555
21556 if test x$support_lockmgr = xyes; then
21557
21558 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21559
21560 fi
21561
21562
21563 # Check whether --enable-static-tools was given.
21564 if test "${enable_static_tools+set}" = set; then :
21565   enableval=$enable_static_tools;
21566        if test x$enableval = xyes; then
21567           if test x$use_libtool = xyes; then
21568              as_fn_error "Libtool is enabled, not compatible with static tools,
21569   please rerun configure with --disable-libtool" "$LINENO" 5
21570           fi
21571           support_static_tools=yes
21572        fi
21573
21574
21575 fi
21576
21577
21578 TTOOL_LDFLAGS=
21579 if test x$support_static_tools = xyes; then
21580    TTOOL_LDFLAGS="-static"
21581 fi
21582
21583
21584 # Check whether --enable-static-fd was given.
21585 if test "${enable_static_fd+set}" = set; then :
21586   enableval=$enable_static_fd;
21587        if test x$enableval = xyes; then
21588           if test x$use_libtool = xyes; then
21589              as_fn_error "Libtool is enabled, not compatible with static tools,
21590   please rerun configure with --disable-libtool" "$LINENO" 5
21591           fi
21592           support_static_fd=yes
21593        fi
21594
21595
21596 fi
21597
21598
21599 STATIC_FD=
21600 if test x$support_static_fd = xyes; then
21601    STATIC_FD="static-bacula-fd"
21602 fi
21603
21604
21605 # Check whether --enable-static-sd was given.
21606 if test "${enable_static_sd+set}" = set; then :
21607   enableval=$enable_static_sd;
21608        if test x$enableval = xyes; then
21609           if test x$use_libtool = xyes; then
21610              as_fn_error "Libtool is enabled, not compatible with static tools,
21611   please rerun configure with --disable-libtool" "$LINENO" 5
21612           fi
21613           support_static_sd=yes
21614        fi
21615
21616
21617 fi
21618
21619
21620 STATIC_SD=
21621 if test x$support_static_sd = xyes; then
21622    STATIC_SD="static-bacula-sd"
21623 fi
21624
21625
21626 # Check whether --enable-static-dir was given.
21627 if test "${enable_static_dir+set}" = set; then :
21628   enableval=$enable_static_dir;
21629        if test x$enableval = xyes; then
21630           if test x$use_libtool = xyes; then
21631              as_fn_error "Libtool is enabled, not compatible with static tools,
21632   please rerun configure with --disable-libtool" "$LINENO" 5
21633           fi
21634           support_static_dir=yes
21635        fi
21636
21637
21638 fi
21639
21640
21641 STATIC_DIR=
21642 if test x$support_static_dir = xyes; then
21643    STATIC_DIR="static-bacula-dir"
21644 fi
21645
21646
21647 # Check whether --enable-static-cons was given.
21648 if test "${enable_static_cons+set}" = set; then :
21649   enableval=$enable_static_cons;
21650        if test x$enableval = xyes; then
21651           if test x$use_libtool = xyes; then
21652              as_fn_error "Libtool is enabled, not compatible with static tools,
21653   please rerun configure with --disable-libtool" "$LINENO" 5
21654           fi
21655           support_static_cons=yes
21656        fi
21657
21658
21659 fi
21660
21661
21662 STATIC_CONS=
21663 STATIC_GNOME_CONS=
21664 STATIC_WX_CONS=
21665 if test x$support_static_cons = xyes; then
21666    STATIC_CONS="static-bconsole"
21667    STATIC_GNOME_CONS="static-bgnome-console"
21668    STATIC_WX_CONS="static-bwx-console"
21669 fi
21670
21671
21672
21673
21674 # Check whether --enable-client-only was given.
21675 if test "${enable_client_only+set}" = set; then :
21676   enableval=$enable_client_only;
21677        if test x$enableval = xyes; then
21678           build_client_only=yes
21679           db_backends="None"
21680           DB_BACKENDS="none"
21681        fi
21682
21683
21684 fi
21685
21686 if test x$build_client_only = xno; then
21687    ALL_DIRS="subdirs"
21688 else
21689    ALL_DIRS=""
21690 fi
21691
21692
21693 # Check whether --enable-build-dird was given.
21694 if test "${enable_build_dird+set}" = set; then :
21695   enableval=$enable_build_dird;
21696        if test x$enableval = xno; then
21697           build_dird=no
21698        fi
21699
21700
21701 fi
21702
21703 if test x$build_dird = xyes; then
21704    DIRD_DIR="src/dird"
21705    DIR_TOOLS="DIRTOOLS"
21706 else
21707    DIRD_DIR=""
21708    DIR_TOOLS="NODIRTOOLS"
21709 fi
21710
21711
21712
21713 # Check whether --enable-build-stored was given.
21714 if test "${enable_build_stored+set}" = set; then :
21715   enableval=$enable_build_stored;
21716       if test x$enableval = xno; then
21717          build_stored=no
21718       fi
21719
21720
21721 fi
21722
21723 if test x$build_stored = xyes; then
21724    STORED_DIR="src/stored"
21725 else
21726    STORED_DIR=""
21727 fi
21728
21729
21730 # Check whether --enable-conio was given.
21731 if test "${enable_conio+set}" = set; then :
21732   enableval=$enable_conio;
21733        if test x$enableval = xno; then
21734           support_conio=no
21735        fi
21736
21737
21738 fi
21739
21740
21741
21742 support_ipv6=yes
21743 # Check whether --enable-ipv6 was given.
21744 if test "${enable_ipv6+set}" = set; then :
21745   enableval=$enable_ipv6;
21746        if test x$enableval = xno; then
21747           support_ipv6=no
21748        fi
21749
21750
21751 fi
21752
21753
21754 if test x$support_ipv6 = xyes; then
21755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h.  */
21757  #include <sys/types.h>
21758 #include <sys/socket.h>
21759 #include <netinet/in.h>
21760 int
21761 main ()
21762 {
21763 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 if ac_fn_c_try_link "$LINENO"; then :
21769   support_ipv6=yes
21770 else
21771   support_ipv6=no
21772 fi
21773 rm -f core conftest.err conftest.$ac_objext \
21774     conftest$ac_exeext conftest.$ac_ext
21775 fi
21776
21777 if test x$support_ipv6 = xyes; then
21778
21779 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21780
21781 fi
21782
21783 TERM_LIB=""
21784 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_curses_h" = x""yes; then :
21786
21787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21788 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21789 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21790   $as_echo_n "(cached) " >&6
21791 else
21792   ac_check_lib_save_LIBS=$LIBS
21793 LIBS="-ltinfo  $LIBS"
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h.  */
21796
21797 /* Override any GCC internal prototype to avoid an error.
21798    Use char because int might match the return type of a GCC
21799    builtin and then its argument prototype would still apply.  */
21800 #ifdef __cplusplus
21801 extern "C"
21802 #endif
21803 char tgetent ();
21804 int
21805 main ()
21806 {
21807 return tgetent ();
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 if ac_fn_c_try_link "$LINENO"; then :
21813   ac_cv_lib_tinfo_tgetent=yes
21814 else
21815   ac_cv_lib_tinfo_tgetent=no
21816 fi
21817 rm -f core conftest.err conftest.$ac_objext \
21818     conftest$ac_exeext conftest.$ac_ext
21819 LIBS=$ac_check_lib_save_LIBS
21820 fi
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21822 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21823 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21824    TERM_LIB="-ltinfo"
21825 else
21826
21827       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21828 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21829 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21830   $as_echo_n "(cached) " >&6
21831 else
21832   ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-lncurses  $LIBS"
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h.  */
21836
21837 /* Override any GCC internal prototype to avoid an error.
21838    Use char because int might match the return type of a GCC
21839    builtin and then its argument prototype would still apply.  */
21840 #ifdef __cplusplus
21841 extern "C"
21842 #endif
21843 char tgetent ();
21844 int
21845 main ()
21846 {
21847 return tgetent ();
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853   ac_cv_lib_ncurses_tgetent=yes
21854 else
21855   ac_cv_lib_ncurses_tgetent=no
21856 fi
21857 rm -f core conftest.err conftest.$ac_objext \
21858     conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21860 fi
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21862 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21863 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21864    TERM_LIB="-lncurses"
21865 else
21866
21867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21868 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21869 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21870   $as_echo_n "(cached) " >&6
21871 else
21872   ac_check_lib_save_LIBS=$LIBS
21873 LIBS="-ltermcap  $LIBS"
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h.  */
21876
21877 /* Override any GCC internal prototype to avoid an error.
21878    Use char because int might match the return type of a GCC
21879    builtin and then its argument prototype would still apply.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 char tgetent ();
21884 int
21885 main ()
21886 {
21887 return tgetent ();
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_link "$LINENO"; then :
21893   ac_cv_lib_termcap_tgetent=yes
21894 else
21895   ac_cv_lib_termcap_tgetent=no
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext \
21898     conftest$ac_exeext conftest.$ac_ext
21899 LIBS=$ac_check_lib_save_LIBS
21900 fi
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21902 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21903 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21904    TERM_LIB="-ltermcap"
21905 fi
21906
21907
21908 fi
21909
21910
21911 fi
21912
21913
21914 else
21915     for ac_header in curses.h
21916 do :
21917   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21918 if test "x$ac_cv_header_curses_h" = x""yes; then :
21919   cat >>confdefs.h <<_ACEOF
21920 #define HAVE_CURSES_H 1
21921 _ACEOF
21922
21923 fi
21924
21925 done
21926
21927      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21928 if test "x$ac_cv_header_term_h" = x""yes; then :
21929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21930 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21931 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21932   $as_echo_n "(cached) " >&6
21933 else
21934   ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lcurses  $LIBS"
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h.  */
21938
21939 /* Override any GCC internal prototype to avoid an error.
21940    Use char because int might match the return type of a GCC
21941    builtin and then its argument prototype would still apply.  */
21942 #ifdef __cplusplus
21943 extern "C"
21944 #endif
21945 char tgetent ();
21946 int
21947 main ()
21948 {
21949 return tgetent ();
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 if ac_fn_c_try_link "$LINENO"; then :
21955   ac_cv_lib_curses_tgetent=yes
21956 else
21957   ac_cv_lib_curses_tgetent=no
21958 fi
21959 rm -f core conftest.err conftest.$ac_objext \
21960     conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21962 fi
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21964 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21965 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21966    TERM_LIB="-lcurses"
21967 fi
21968
21969
21970 fi
21971
21972
21973
21974 fi
21975
21976
21977
21978
21979 got_conio="no"
21980 if test x$support_conio = xyes; then
21981    if test x$TERM_LIB != x; then
21982       CONS_LIBS=$TERM_LIB
21983       CONS_OBJ="conio.o"
21984       CONS_SRC="conio.c"
21985       got_conio="yes"
21986       support_readline=no
21987
21988 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21989
21990    else
21991       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21992    fi
21993 fi
21994
21995
21996 # Check whether --enable-readline was given.
21997 if test "${enable_readline+set}" = set; then :
21998   enableval=$enable_readline;
21999        if test x$enableval = xno; then
22000           support_readline=no
22001        fi
22002
22003
22004 fi
22005
22006 if test x$TERM_LIB = x ; then
22007    support_readline=no
22008 fi
22009
22010 got_readline="no"
22011 READLINE_SRC=
22012 if test x$support_readline = xyes; then
22013
22014 # Check whether --with-readline was given.
22015 if test "${with_readline+set}" = set; then :
22016   withval=$with_readline;
22017           case "$with_readline" in
22018           no)
22019              :
22020              ;;
22021           yes|*)
22022              if test -f ${with_readline}/readline.h; then
22023                 CONS_INC="-I${with_readline}"
22024                 CONS_LDFLAGS="-L$with_readline"
22025              elif test -f ${with_readline}/include/readline/readline.h; then
22026                 CONS_INC="-I${with_readline}/include/readline"
22027                 CONS_LDFLAGS="-L${with_readline}/lib"
22028                 with_readline="${with_readline}/include/readline"
22029              else
22030                 with_readline="/usr/include/readline"
22031              fi
22032
22033              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22034 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22035 eval as_val=\$$as_ac_Header
22036    if test "x$as_val" = x""yes; then :
22037
22038
22039 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22040
22041                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22042                     got_readline="yes"
22043
22044 else
22045
22046                     echo " "
22047                     echo "readline.h not found. readline turned off ..."
22048                     echo " "
22049
22050
22051 fi
22052
22053
22054              ;;
22055           esac
22056
22057 else
22058
22059                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22060 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22061
22062
22063 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22064
22065                 got_readline="yes"
22066                 CONS_INC="-I/usr/include/readline"
22067                 CONS_LIBS="-lreadline $TERM_LIB"
22068
22069 else
22070
22071                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22072 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22073 eval as_val=\$$as_ac_Header
22074    if test "x$as_val" = x""yes; then :
22075
22076
22077 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22078
22079                         got_readline="yes"
22080                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22081                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22082                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22083                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22084
22085 else
22086
22087                         echo " "
22088                         echo "readline.h not found. readline turned off ..."
22089                         echo " "
22090
22091
22092 fi
22093
22094
22095
22096
22097 fi
22098
22099
22100
22101
22102 fi
22103
22104 fi
22105
22106
22107
22108
22109
22110
22111
22112
22113 MAKE_SHELL=/bin/sh
22114
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22116 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22117 if test "${ac_cv_header_stat_broken+set}" = set; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h.  */
22122 #include <sys/types.h>
22123 #include <sys/stat.h>
22124
22125 #if defined S_ISBLK && defined S_IFDIR
22126 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22127 #endif
22128
22129 #if defined S_ISBLK && defined S_IFCHR
22130 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22131 #endif
22132
22133 #if defined S_ISLNK && defined S_IFREG
22134 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22135 #endif
22136
22137 #if defined S_ISSOCK && defined S_IFREG
22138 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22139 #endif
22140
22141 _ACEOF
22142 if ac_fn_c_try_compile "$LINENO"; then :
22143   ac_cv_header_stat_broken=no
22144 else
22145   ac_cv_header_stat_broken=yes
22146 fi
22147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22150 $as_echo "$ac_cv_header_stat_broken" >&6; }
22151 if test $ac_cv_header_stat_broken = yes; then
22152
22153 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22154
22155 fi
22156
22157 ac_header_dirent=no
22158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22159   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22161 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
22163   $as_echo_n "(cached) " >&6
22164 else
22165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h.  */
22167 #include <sys/types.h>
22168 #include <$ac_hdr>
22169
22170 int
22171 main ()
22172 {
22173 if ((DIR *) 0)
22174 return 0;
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 if ac_fn_c_try_compile "$LINENO"; then :
22180   eval "$as_ac_Header=yes"
22181 else
22182   eval "$as_ac_Header=no"
22183 fi
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 eval ac_res=\$$as_ac_Header
22187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22188 $as_echo "$ac_res" >&6; }
22189 eval as_val=\$$as_ac_Header
22190    if test "x$as_val" = x""yes; then :
22191   cat >>confdefs.h <<_ACEOF
22192 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22193 _ACEOF
22194
22195 ac_header_dirent=$ac_hdr; break
22196 fi
22197
22198 done
22199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22200 if test $ac_header_dirent = dirent.h; then
22201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22202 $as_echo_n "checking for library containing opendir... " >&6; }
22203 if test "${ac_cv_search_opendir+set}" = set; then :
22204   $as_echo_n "(cached) " >&6
22205 else
22206   ac_func_search_save_LIBS=$LIBS
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h.  */
22209
22210 /* Override any GCC internal prototype to avoid an error.
22211    Use char because int might match the return type of a GCC
22212    builtin and then its argument prototype would still apply.  */
22213 #ifdef __cplusplus
22214 extern "C"
22215 #endif
22216 char opendir ();
22217 int
22218 main ()
22219 {
22220 return opendir ();
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 for ac_lib in '' dir; do
22226   if test -z "$ac_lib"; then
22227     ac_res="none required"
22228   else
22229     ac_res=-l$ac_lib
22230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22231   fi
22232   if ac_fn_c_try_link "$LINENO"; then :
22233   ac_cv_search_opendir=$ac_res
22234 fi
22235 rm -f core conftest.err conftest.$ac_objext \
22236     conftest$ac_exeext
22237   if test "${ac_cv_search_opendir+set}" = set; then :
22238   break
22239 fi
22240 done
22241 if test "${ac_cv_search_opendir+set}" = set; then :
22242
22243 else
22244   ac_cv_search_opendir=no
22245 fi
22246 rm conftest.$ac_ext
22247 LIBS=$ac_func_search_save_LIBS
22248 fi
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22250 $as_echo "$ac_cv_search_opendir" >&6; }
22251 ac_res=$ac_cv_search_opendir
22252 if test "$ac_res" != no; then :
22253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22254
22255 fi
22256
22257 else
22258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22259 $as_echo_n "checking for library containing opendir... " >&6; }
22260 if test "${ac_cv_search_opendir+set}" = set; then :
22261   $as_echo_n "(cached) " >&6
22262 else
22263   ac_func_search_save_LIBS=$LIBS
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h.  */
22266
22267 /* Override any GCC internal prototype to avoid an error.
22268    Use char because int might match the return type of a GCC
22269    builtin and then its argument prototype would still apply.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char opendir ();
22274 int
22275 main ()
22276 {
22277 return opendir ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 for ac_lib in '' x; do
22283   if test -z "$ac_lib"; then
22284     ac_res="none required"
22285   else
22286     ac_res=-l$ac_lib
22287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22288   fi
22289   if ac_fn_c_try_link "$LINENO"; then :
22290   ac_cv_search_opendir=$ac_res
22291 fi
22292 rm -f core conftest.err conftest.$ac_objext \
22293     conftest$ac_exeext
22294   if test "${ac_cv_search_opendir+set}" = set; then :
22295   break
22296 fi
22297 done
22298 if test "${ac_cv_search_opendir+set}" = set; then :
22299
22300 else
22301   ac_cv_search_opendir=no
22302 fi
22303 rm conftest.$ac_ext
22304 LIBS=$ac_func_search_save_LIBS
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22307 $as_echo "$ac_cv_search_opendir" >&6; }
22308 ac_res=$ac_cv_search_opendir
22309 if test "$ac_res" != no; then :
22310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22311
22312 fi
22313
22314 fi
22315
22316 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22317 do :
22318   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22320 eval as_val=\$$as_ac_var
22321    if test "x$as_val" = x""yes; then :
22322   cat >>confdefs.h <<_ACEOF
22323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22325
22326 fi
22327 done
22328
22329 for ac_func in nanosleep nl_langinfo
22330 do :
22331   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22333 eval as_val=\$$as_ac_var
22334    if test "x$as_val" = x""yes; then :
22335   cat >>confdefs.h <<_ACEOF
22336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 _ACEOF
22338
22339 fi
22340 done
22341
22342 for ac_header in varargs.h
22343 do :
22344   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22345 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22346   cat >>confdefs.h <<_ACEOF
22347 #define HAVE_VARARGS_H 1
22348 _ACEOF
22349
22350 fi
22351
22352 done
22353
22354
22355
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22357 $as_echo_n "checking for Python support... " >&6; }
22358
22359 # Check whether --with-python was given.
22360 if test "${with_python+set}" = set; then :
22361   withval=$with_python;
22362        PYTHON_INCDIR=
22363        PYTHON_LIBS=
22364        if test "$withval" != "no"; then
22365           if test "$withval" = "yes"; then
22366              if test -e /usr/bin/python-config ; then
22367                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22368                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22369              else
22370                 for python_root in /usr /usr/local /usr/sfw; do
22371                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22372                       if test -f $python_root/include/${ver}/Python.h; then
22373                          PYTHON_INCDIR=-I$python_root/include/${ver}
22374                          if test -d $python_root/lib64/${ver}/config; then
22375                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22376                          else
22377                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22378                          fi
22379                          break
22380                       fi
22381                    done
22382                 done
22383
22384                 if test x$PYTHON_INCDIR = x; then
22385                    if test -f $prefix/include/Python.h; then
22386                       PYTHON_INCDIR=-I$prefix/include
22387                       if test -d $prefix/lib64/config; then
22388                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22389                       else
22390                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22391                       fi
22392                    else
22393                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22394 $as_echo "no" >&6; }
22395                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
22396                    fi
22397                 fi
22398              fi
22399           else
22400              if test -e $withval/bin/python-config ; then
22401                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22402                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22403              elif test -f $withval/Python.h; then
22404                 PYTHON_INCDIR=-I$withval
22405                 PYTHON_LIBS="-L$withval/config -lpython"
22406              elif test -f $withval/include/Python.h; then
22407                 PYTHON_INCDIR=-I$withval/include
22408                 if test -d $withval/lib64/config; then
22409                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22410                 else
22411                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22412                 fi
22413              elif test -f $withval/include/python/Python.h; then
22414                 PYTHON_INCDIR=-I$withval/include/python
22415                 if test -d $withval/lib64/python/config; then
22416                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22417                 else
22418                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22419                 fi
22420              else
22421                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22424              fi
22425           fi
22426
22427           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22428
22429           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22431           support_python=yes
22432           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22433 $as_echo "$as_me: checking for more Python libs" >&6;}
22434           saved_LIBS="$LIBS"; LIBS=
22435           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22436 $as_echo_n "checking for library containing shm_open... " >&6; }
22437 if test "${ac_cv_search_shm_open+set}" = set; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440   ac_func_search_save_LIBS=$LIBS
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h.  */
22443
22444 /* Override any GCC internal prototype to avoid an error.
22445    Use char because int might match the return type of a GCC
22446    builtin and then its argument prototype would still apply.  */
22447 #ifdef __cplusplus
22448 extern "C"
22449 #endif
22450 char shm_open ();
22451 int
22452 main ()
22453 {
22454 return shm_open ();
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 for ac_lib in '' rt; do
22460   if test -z "$ac_lib"; then
22461     ac_res="none required"
22462   else
22463     ac_res=-l$ac_lib
22464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22465   fi
22466   if ac_fn_c_try_link "$LINENO"; then :
22467   ac_cv_search_shm_open=$ac_res
22468 fi
22469 rm -f core conftest.err conftest.$ac_objext \
22470     conftest$ac_exeext
22471   if test "${ac_cv_search_shm_open+set}" = set; then :
22472   break
22473 fi
22474 done
22475 if test "${ac_cv_search_shm_open+set}" = set; then :
22476
22477 else
22478   ac_cv_search_shm_open=no
22479 fi
22480 rm conftest.$ac_ext
22481 LIBS=$ac_func_search_save_LIBS
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22484 $as_echo "$ac_cv_search_shm_open" >&6; }
22485 ac_res=$ac_cv_search_shm_open
22486 if test "$ac_res" != no; then :
22487   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488
22489 fi
22490
22491           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22492 $as_echo_n "checking for openpty in -lutil... " >&6; }
22493 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22494   $as_echo_n "(cached) " >&6
22495 else
22496   ac_check_lib_save_LIBS=$LIBS
22497 LIBS="-lutil  $LIBS"
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h.  */
22500
22501 /* Override any GCC internal prototype to avoid an error.
22502    Use char because int might match the return type of a GCC
22503    builtin and then its argument prototype would still apply.  */
22504 #ifdef __cplusplus
22505 extern "C"
22506 #endif
22507 char openpty ();
22508 int
22509 main ()
22510 {
22511 return openpty ();
22512   ;
22513   return 0;
22514 }
22515 _ACEOF
22516 if ac_fn_c_try_link "$LINENO"; then :
22517   ac_cv_lib_util_openpty=yes
22518 else
22519   ac_cv_lib_util_openpty=no
22520 fi
22521 rm -f core conftest.err conftest.$ac_objext \
22522     conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22524 fi
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22526 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22527 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22528   cat >>confdefs.h <<_ACEOF
22529 #define HAVE_LIBUTIL 1
22530 _ACEOF
22531
22532   LIBS="-lutil $LIBS"
22533
22534 fi
22535
22536           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22537           LIBS="$saved_LIBS"
22538        else
22539           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22540 $as_echo "no" >&6; }
22541        fi
22542
22543 else
22544
22545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22547
22548
22549 fi
22550
22551
22552
22553
22554 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22555 if test "x$ac_cv_func_socket" = x""yes; then :
22556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22557 $as_echo "using libc's socket" >&6; }
22558 else
22559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22560 $as_echo_n "checking for socket in -lxnet... " >&6; }
22561 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22562   $as_echo_n "(cached) " >&6
22563 else
22564   ac_check_lib_save_LIBS=$LIBS
22565 LIBS="-lxnet  $LIBS"
22566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567 /* end confdefs.h.  */
22568
22569 /* Override any GCC internal prototype to avoid an error.
22570    Use char because int might match the return type of a GCC
22571    builtin and then its argument prototype would still apply.  */
22572 #ifdef __cplusplus
22573 extern "C"
22574 #endif
22575 char socket ();
22576 int
22577 main ()
22578 {
22579 return socket ();
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 if ac_fn_c_try_link "$LINENO"; then :
22585   ac_cv_lib_xnet_socket=yes
22586 else
22587   ac_cv_lib_xnet_socket=no
22588 fi
22589 rm -f core conftest.err conftest.$ac_objext \
22590     conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22592 fi
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22594 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22595 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22596   cat >>confdefs.h <<_ACEOF
22597 #define HAVE_LIBXNET 1
22598 _ACEOF
22599
22600   LIBS="-lxnet $LIBS"
22601
22602 fi
22603
22604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22605 $as_echo_n "checking for socket in -lsocket... " >&6; }
22606 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22607   $as_echo_n "(cached) " >&6
22608 else
22609   ac_check_lib_save_LIBS=$LIBS
22610 LIBS="-lsocket  $LIBS"
22611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h.  */
22613
22614 /* Override any GCC internal prototype to avoid an error.
22615    Use char because int might match the return type of a GCC
22616    builtin and then its argument prototype would still apply.  */
22617 #ifdef __cplusplus
22618 extern "C"
22619 #endif
22620 char socket ();
22621 int
22622 main ()
22623 {
22624 return socket ();
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 if ac_fn_c_try_link "$LINENO"; then :
22630   ac_cv_lib_socket_socket=yes
22631 else
22632   ac_cv_lib_socket_socket=no
22633 fi
22634 rm -f core conftest.err conftest.$ac_objext \
22635     conftest$ac_exeext conftest.$ac_ext
22636 LIBS=$ac_check_lib_save_LIBS
22637 fi
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22639 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22640 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22641   cat >>confdefs.h <<_ACEOF
22642 #define HAVE_LIBSOCKET 1
22643 _ACEOF
22644
22645   LIBS="-lsocket $LIBS"
22646
22647 fi
22648
22649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22650 $as_echo_n "checking for socket in -linet... " >&6; }
22651 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22652   $as_echo_n "(cached) " >&6
22653 else
22654   ac_check_lib_save_LIBS=$LIBS
22655 LIBS="-linet  $LIBS"
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h.  */
22658
22659 /* Override any GCC internal prototype to avoid an error.
22660    Use char because int might match the return type of a GCC
22661    builtin and then its argument prototype would still apply.  */
22662 #ifdef __cplusplus
22663 extern "C"
22664 #endif
22665 char socket ();
22666 int
22667 main ()
22668 {
22669 return socket ();
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 if ac_fn_c_try_link "$LINENO"; then :
22675   ac_cv_lib_inet_socket=yes
22676 else
22677   ac_cv_lib_inet_socket=no
22678 fi
22679 rm -f core conftest.err conftest.$ac_objext \
22680     conftest$ac_exeext conftest.$ac_ext
22681 LIBS=$ac_check_lib_save_LIBS
22682 fi
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22684 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22685 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22686   cat >>confdefs.h <<_ACEOF
22687 #define HAVE_LIBINET 1
22688 _ACEOF
22689
22690   LIBS="-linet $LIBS"
22691
22692 fi
22693
22694 fi
22695
22696
22697 TCPW_MSG="no"
22698 WRAPLIBS=""
22699
22700 # Check whether --with-tcp-wrappers was given.
22701 if test "${with_tcp_wrappers+set}" = set; then :
22702   withval=$with_tcp_wrappers;
22703        if test "x$withval" != "xno" ; then
22704           saved_LIBS="$LIBS"
22705           LIBS="$saved_LIBS -lwrap"
22706           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22707 $as_echo_n "checking for library containing nanosleep... " >&6; }
22708 if test "${ac_cv_search_nanosleep+set}" = set; then :
22709   $as_echo_n "(cached) " >&6
22710 else
22711   ac_func_search_save_LIBS=$LIBS
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714
22715 /* Override any GCC internal prototype to avoid an error.
22716    Use char because int might match the return type of a GCC
22717    builtin and then its argument prototype would still apply.  */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char nanosleep ();
22722 int
22723 main ()
22724 {
22725 return nanosleep ();
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 for ac_lib in '' rt; do
22731   if test -z "$ac_lib"; then
22732     ac_res="none required"
22733   else
22734     ac_res=-l$ac_lib
22735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22736   fi
22737   if ac_fn_c_try_link "$LINENO"; then :
22738   ac_cv_search_nanosleep=$ac_res
22739 fi
22740 rm -f core conftest.err conftest.$ac_objext \
22741     conftest$ac_exeext
22742   if test "${ac_cv_search_nanosleep+set}" = set; then :
22743   break
22744 fi
22745 done
22746 if test "${ac_cv_search_nanosleep+set}" = set; then :
22747
22748 else
22749   ac_cv_search_nanosleep=no
22750 fi
22751 rm conftest.$ac_ext
22752 LIBS=$ac_func_search_save_LIBS
22753 fi
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22755 $as_echo "$ac_cv_search_nanosleep" >&6; }
22756 ac_res=$ac_cv_search_nanosleep
22757 if test "$ac_res" != no; then :
22758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22759
22760 fi
22761
22762           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22763 $as_echo_n "checking for libwrap... " >&6; }
22764           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h.  */
22766
22767                #include <sys/types.h>
22768                #include <tcpd.h>
22769                int deny_severity = 0;
22770                int allow_severity = 0;
22771                struct request_info *req;
22772
22773 int
22774 main ()
22775 {
22776
22777                 hosts_access(req);
22778
22779   ;
22780   return 0;
22781 }
22782 _ACEOF
22783 if ac_fn_c_try_link "$LINENO"; then :
22784
22785                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22786 $as_echo "yes" >&6; }
22787
22788 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22789
22790                  TCPW_MSG="yes"
22791                  LIBS="$saved_LIBS"
22792                  WRAPLIBS="-lwrap"
22793
22794 else
22795
22796                  LIBS="$saved_LIBS -lwrap -lnsl"
22797                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22798                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h.  */
22800
22801                        #include <sys/types.h>
22802                        #include <tcpd.h>
22803                        int deny_severity = 0;
22804                        int allow_severity = 0;
22805                        struct request_info *req;
22806
22807 int
22808 main ()
22809 {
22810
22811                        hosts_access(req);
22812
22813   ;
22814   return 0;
22815 }
22816 _ACEOF
22817 if ac_fn_c_try_link "$LINENO"; then :
22818
22819                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22820 $as_echo "yes" >&6; }
22821
22822 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22823
22824                       TCPW_MSG="yes"
22825                       LIBS="$saved_LIBS"
22826                       WRAPLIBS="-lwrap"
22827
22828 else
22829
22830                       as_fn_error "*** libwrap missing" "$LINENO" 5
22831
22832
22833 fi
22834 rm -f core conftest.err conftest.$ac_objext \
22835     conftest$ac_exeext conftest.$ac_ext
22836
22837
22838 fi
22839 rm -f core conftest.err conftest.$ac_objext \
22840     conftest$ac_exeext conftest.$ac_ext
22841        fi
22842
22843
22844 fi
22845
22846
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22848 $as_echo_n "checking for OpenSSL... " >&6; }
22849
22850 # Check whether --with-openssl was given.
22851 if test "${with_openssl+set}" = set; then :
22852   withval=$with_openssl;
22853         with_openssl_directory=${withval}
22854
22855
22856 fi
22857
22858
22859 if test "x$with_openssl_directory" != "xno"; then
22860    OPENSSL_LIBS="-lssl -lcrypto"
22861    OPENSSL_INC=""
22862
22863    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22864       #
22865       # Make sure the $with_openssl_directory also makes sense
22866       #
22867       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22868          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22869          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22870       fi
22871    fi
22872
22873    saved_LIBS="${LIBS}"
22874    saved_CFLAGS="${CFLAGS}"
22875    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22876    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22877
22878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h.  */
22880
22881           #include <openssl/ssl.h>
22882
22883 int
22884 main ()
22885 {
22886
22887            CRYPTO_set_id_callback(NULL);
22888
22889   ;
22890   return 0;
22891 }
22892 _ACEOF
22893 if ac_fn_c_try_link "$LINENO"; then :
22894
22895           support_tls="yes"
22896           support_crypto="yes"
22897
22898 else
22899
22900           support_tls="no"
22901           support_crypto="no"
22902
22903
22904 fi
22905 rm -f core conftest.err conftest.$ac_objext \
22906     conftest$ac_exeext conftest.$ac_ext
22907
22908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h.  */
22910
22911           #include <openssl/evp.h>
22912
22913 int
22914 main ()
22915 {
22916
22917           EVP_sha512();
22918
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"; then :
22924
22925           ac_cv_openssl_sha2="yes"
22926
22927 else
22928
22929           ac_cv_openssl_sha2="no"
22930
22931
22932 fi
22933 rm -f core conftest.err conftest.$ac_objext \
22934     conftest$ac_exeext conftest.$ac_ext
22935
22936                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h.  */
22938
22939           #include <openssl/evp.h>
22940
22941 int
22942 main ()
22943 {
22944
22945           EVP_aes_192_cbc();
22946
22947   ;
22948   return 0;
22949 }
22950 _ACEOF
22951 if ac_fn_c_try_link "$LINENO"; then :
22952
22953           ac_cv_openssl_export="no"
22954
22955 else
22956
22957           ac_cv_openssl_export="yes"
22958
22959
22960 fi
22961 rm -f core conftest.err conftest.$ac_objext \
22962     conftest$ac_exeext conftest.$ac_ext
22963
22964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22965 $as_echo "$support_tls" >&6; }
22966    if test "$support_tls" = "yes"; then
22967
22968 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22969
22970
22971 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22972
22973
22974 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22975
22976    fi
22977
22978    if test "$ac_cv_openssl_sha2" = "yes"; then
22979
22980 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22981
22982    fi
22983
22984    if test "$ac_cv_openssl_export" = "yes"; then
22985
22986 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22987
22988    fi
22989
22990    if test "$support_crypto" = "yes"; then
22991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22992 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22993 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22994   $as_echo_n "(cached) " >&6
22995 else
22996   ac_check_lib_save_LIBS=$LIBS
22997 LIBS="-lcrypto  $LIBS"
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h.  */
23000
23001 /* Override any GCC internal prototype to avoid an error.
23002    Use char because int might match the return type of a GCC
23003    builtin and then its argument prototype would still apply.  */
23004 #ifdef __cplusplus
23005 extern "C"
23006 #endif
23007 char EVP_PKEY_encrypt_old ();
23008 int
23009 main ()
23010 {
23011 return EVP_PKEY_encrypt_old ();
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 if ac_fn_c_try_link "$LINENO"; then :
23017   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23018 else
23019   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23020 fi
23021 rm -f core conftest.err conftest.$ac_objext \
23022     conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23024 fi
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23026 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23027 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23028
23029 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23030
23031 fi
23032
23033    fi
23034
23035    LIBS="${saved_LIBS}"
23036    CFLAGS="${saved_CFLAGS}"
23037 else
23038    support_tls="no"
23039    support_crypto="no"
23040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23041 $as_echo "$support_tls" >&6; }
23042 fi
23043
23044 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23045    OPENSSL_LIBS=""
23046    OPENSSL_INC=""
23047 fi
23048
23049
23050
23051
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23053 $as_echo_n "checking for library containing dlopen... " >&6; }
23054 if test "${ac_cv_search_dlopen+set}" = set; then :
23055   $as_echo_n "(cached) " >&6
23056 else
23057   ac_func_search_save_LIBS=$LIBS
23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059 /* end confdefs.h.  */
23060
23061 /* Override any GCC internal prototype to avoid an error.
23062    Use char because int might match the return type of a GCC
23063    builtin and then its argument prototype would still apply.  */
23064 #ifdef __cplusplus
23065 extern "C"
23066 #endif
23067 char dlopen ();
23068 int
23069 main ()
23070 {
23071 return dlopen ();
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 for ac_lib in '' dl; do
23077   if test -z "$ac_lib"; then
23078     ac_res="none required"
23079   else
23080     ac_res=-l$ac_lib
23081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23082   fi
23083   if ac_fn_c_try_link "$LINENO"; then :
23084   ac_cv_search_dlopen=$ac_res
23085 fi
23086 rm -f core conftest.err conftest.$ac_objext \
23087     conftest$ac_exeext
23088   if test "${ac_cv_search_dlopen+set}" = set; then :
23089   break
23090 fi
23091 done
23092 if test "${ac_cv_search_dlopen+set}" = set; then :
23093
23094 else
23095   ac_cv_search_dlopen=no
23096 fi
23097 rm conftest.$ac_ext
23098 LIBS=$ac_func_search_save_LIBS
23099 fi
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23101 $as_echo "$ac_cv_search_dlopen" >&6; }
23102 ac_res=$ac_cv_search_dlopen
23103 if test "$ac_res" != no; then :
23104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23105
23106 fi
23107
23108
23109 working_dir=`eval echo ${prefix}/var/bacula/working`
23110
23111 # Check whether --with-working-dir was given.
23112 if test "${with_working_dir+set}" = set; then :
23113   withval=$with_working_dir;
23114        if test "x$withval" != "xno" ; then
23115          working_dir=$withval
23116        fi
23117
23118
23119 fi
23120
23121
23122
23123
23124 archivedir=/tmp
23125
23126 # Check whether --with-archivedir was given.
23127 if test "${with_archivedir+set}" = set; then :
23128   withval=$with_archivedir;
23129        if test "x$withval" != "xno" ; then
23130           archivedir=$withval
23131        fi
23132
23133
23134 fi
23135
23136
23137
23138
23139 basename=`hostname`
23140
23141 # Check whether --with-basename was given.
23142 if test "${with_basename+set}" = set; then :
23143   withval=$with_basename;
23144        if test "x$withval" != "xno" ; then
23145           basename=$withval
23146        fi
23147
23148
23149 fi
23150
23151
23152
23153
23154 hostname=`uname -n | cut -d '.' -f 1`
23155 if test x${hostname} = x ; then
23156   hostname="localhost"
23157 fi
23158
23159 # Check whether --with-hostname was given.
23160 if test "${with_hostname+set}" = set; then :
23161   withval=$with_hostname;
23162        if test "x$withval" != "xno" ; then
23163          hostname=$withval
23164        fi
23165
23166
23167 fi
23168
23169
23170
23171
23172
23173 scriptdir=`eval echo ${sysconfdir}`
23174
23175 # Check whether --with-scriptdir was given.
23176 if test "${with_scriptdir+set}" = set; then :
23177   withval=$with_scriptdir;
23178        if test "x$withval" != "xno" ; then
23179           scriptdir=$withval
23180        fi
23181
23182
23183 fi
23184
23185
23186
23187
23188
23189 bsrdir=/tmp
23190
23191 # Check whether --with-bsrdir was given.
23192 if test "${with_bsrdir+set}" = set; then :
23193   withval=$with_bsrdir;
23194        if test "x$withval" != "xno" ; then
23195           bsrdir=$withval
23196        fi
23197
23198
23199 fi
23200
23201
23202
23203
23204 logdir=/tmp
23205
23206 # Check whether --with-logdir was given.
23207 if test "${with_logdir+set}" = set; then :
23208   withval=$with_logdir;
23209        if test "x$withval" != "xno" ; then
23210           logdir=$withval
23211        fi
23212
23213
23214 fi
23215
23216
23217
23218
23219
23220 # ------------------------------------------
23221 # Where to place plugindir (plugin files)
23222 # ------------------------------------------
23223 plugindir=`eval echo ${libdir}`
23224
23225 # Check whether --with-plugindir was given.
23226 if test "${with_plugindir+set}" = set; then :
23227   withval=$with_plugindir;
23228        if test "x$withval" != "xno" ; then
23229           plugindir=$withval
23230        fi
23231
23232
23233 fi
23234
23235
23236
23237
23238 dump_email=root@localhost
23239
23240 # Check whether --with-dump-email was given.
23241 if test "${with_dump_email+set}" = set; then :
23242   withval=$with_dump_email;
23243        if test "x$withval" != "xno" ; then
23244           dump_email=$withval
23245        fi
23246
23247
23248 fi
23249
23250
23251
23252
23253 job_email=root@localhost
23254
23255 # Check whether --with-job-email was given.
23256 if test "${with_job_email+set}" = set; then :
23257   withval=$with_job_email;
23258        if test "x$withval" != "xno" ; then
23259           job_email=$withval
23260        fi
23261
23262
23263 fi
23264
23265
23266
23267
23268 smtp_host=localhost
23269
23270 # Check whether --with-smtp_host was given.
23271 if test "${with_smtp_host+set}" = set; then :
23272   withval=$with_smtp_host;
23273        if test "x$withval" != "xno" ; then
23274           smtp_host=$withval
23275        fi
23276
23277
23278 fi
23279
23280
23281
23282
23283 piddir=/var/run
23284
23285 # Check whether --with-pid-dir was given.
23286 if test "${with_pid_dir+set}" = set; then :
23287   withval=$with_pid_dir;
23288        if test "x$withval" != "xno" ; then
23289           piddir=$withval
23290        fi
23291
23292
23293 fi
23294
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define _PATH_BACULA_PIDDIR "$piddir"
23298 _ACEOF
23299
23300
23301
23302 subsysdir=/var/run/subsys
23303 if test -d /var/run/subsys; then
23304    subsysdir=/var/run/subsys
23305 elif test -d /var/lock/subsys; then
23306    subsysdir=/var/lock/subsys
23307 else
23308    subsysdir=/var/run/subsys
23309 fi
23310
23311 # Check whether --with-subsys-dir was given.
23312 if test "${with_subsys_dir+set}" = set; then :
23313   withval=$with_subsys_dir;
23314        if test "x$withval" != "xno" ; then
23315           subsysdir=$withval
23316        fi
23317
23318
23319 fi
23320
23321
23322
23323
23324 baseport=9101
23325
23326 # Check whether --with-baseport was given.
23327 if test "${with_baseport+set}" = set; then :
23328   withval=$with_baseport;
23329        if test "x$withval" != "xno" ; then
23330           baseport=$withval
23331        fi
23332
23333
23334 fi
23335
23336
23337
23338 dir_port=`expr $baseport`
23339 fd_port=`expr $baseport + 1`
23340 sd_port=`expr $fd_port + 1`
23341
23342
23343
23344
23345
23346 dir_password=
23347
23348 # Check whether --with-dir-password was given.
23349 if test "${with_dir_password+set}" = set; then :
23350   withval=$with_dir_password;
23351        if test "x$withval" != "xno" ; then
23352           dir_password=$withval
23353        fi
23354
23355
23356 fi
23357
23358
23359 if test "x$dir_password" = "x" ; then
23360    if test "x$OPENSSL" = "xnone" ; then
23361       key=`autoconf/randpass 33`
23362    else
23363       key=`openssl rand -base64 33`
23364    fi
23365    dir_password=$key
23366 fi
23367
23368 fd_password=
23369
23370 # Check whether --with-fd-password was given.
23371 if test "${with_fd_password+set}" = set; then :
23372   withval=$with_fd_password;
23373        if test "x$withval" != "xno" ; then
23374           fd_password=$withval
23375        fi
23376
23377
23378 fi
23379
23380
23381 if test "x$fd_password" = "x" ; then
23382    if test "x$OPENSSL" = "xnone" ; then
23383       key=`autoconf/randpass 37`
23384    else
23385       key=`openssl rand -base64 33`
23386    fi
23387    fd_password=$key
23388 fi
23389
23390 sd_password=
23391
23392 # Check whether --with-sd-password was given.
23393 if test "${with_sd_password+set}" = set; then :
23394   withval=$with_sd_password;
23395        if test "x$withval" != "xno" ; then
23396           sd_password=$withval
23397        fi
23398
23399
23400 fi
23401
23402
23403 if test "x$sd_password" = "x" ; then
23404    if test "x$OPENSSL" = "xnone" ; then
23405       key=`autoconf/randpass 41`
23406    else
23407       key=`openssl rand -base64 33`
23408    fi
23409    sd_password=$key
23410 fi
23411
23412 mon_dir_password=
23413
23414 # Check whether --with-mon-dir-password was given.
23415 if test "${with_mon_dir_password+set}" = set; then :
23416   withval=$with_mon_dir_password;
23417        if test "x$withval" != "xno" ; then
23418           mon_dir_password=$withval
23419        fi
23420
23421
23422 fi
23423
23424
23425 if test "x$mon_dir_password" = "x" ; then
23426    if test "x$OPENSSL" = "xnone" ; then
23427       key=`autoconf/randpass 33`
23428    else
23429       key=`openssl rand -base64 33`
23430    fi
23431    mon_dir_password=$key
23432 fi
23433
23434 mon_fd_password=
23435
23436 # Check whether --with-mon-fd-password was given.
23437 if test "${with_mon_fd_password+set}" = set; then :
23438   withval=$with_mon_fd_password;
23439        if test "x$withval" != "xno" ; then
23440           mon_fd_password=$withval
23441        fi
23442
23443
23444 fi
23445
23446
23447 if test "x$mon_fd_password" = "x" ; then
23448    if test "x$OPENSSL" = "xnone" ; then
23449       key=`autoconf/randpass 37`
23450    else
23451       key=`openssl rand -base64 33`
23452    fi
23453    mon_fd_password=$key
23454 fi
23455
23456 mon_sd_password=
23457
23458 # Check whether --with-mon-sd-password was given.
23459 if test "${with_mon_sd_password+set}" = set; then :
23460   withval=$with_mon_sd_password;
23461        if test "x$withval" != "xno" ; then
23462           mon_sd_password=$withval
23463        fi
23464
23465
23466 fi
23467
23468
23469 if test "x$mon_sd_password" = "x" ; then
23470    if test "x$OPENSSL" = "xnone" ; then
23471       key=`autoconf/randpass 41`
23472    else
23473       key=`openssl rand -base64 33`
23474    fi
23475    mon_sd_password=$key
23476 fi
23477
23478
23479
23480
23481
23482
23483
23484
23485 db_name=bacula
23486
23487 # Check whether --with-db_name was given.
23488 if test "${with_db_name+set}" = set; then :
23489   withval=$with_db_name;
23490        if test "x$withval" != "x" ; then
23491           db_name=$withval
23492        fi
23493
23494
23495 fi
23496
23497
23498
23499 db_user=bacula
23500
23501 # Check whether --with-db_user was given.
23502 if test "${with_db_user+set}" = set; then :
23503   withval=$with_db_user;
23504        if test "x$withval" != "x" ; then
23505           db_user=$withval
23506        fi
23507
23508
23509 fi
23510
23511
23512
23513 db_password=
23514
23515 # Check whether --with-db_password was given.
23516 if test "${with_db_password+set}" = set; then :
23517   withval=$with_db_password;
23518        if test "x$withval" != "x" ; then
23519           db_password=$withval
23520        fi
23521
23522
23523 fi
23524
23525
23526
23527 db_port=" "
23528
23529 # Check whether --with-db_port was given.
23530 if test "${with_db_port+set}" = set; then :
23531   withval=$with_db_port;
23532        if test "x$withval" != "x" ; then
23533           db_port=$withval
23534        fi
23535
23536
23537 fi
23538
23539
23540
23541 #
23542 # Handle users and groups for each daemon
23543 #
23544 dir_user=
23545
23546 # Check whether --with-dir_user was given.
23547 if test "${with_dir_user+set}" = set; then :
23548   withval=$with_dir_user;
23549        if test "x$withval" != "x" ; then
23550            dir_user=$withval
23551        fi
23552
23553
23554 fi
23555
23556
23557 dir_group=
23558
23559 # Check whether --with-dir_group was given.
23560 if test "${with_dir_group+set}" = set; then :
23561   withval=$with_dir_group;
23562        if test "x$withval" != "x" ; then
23563           dir_group=$withval
23564        fi
23565
23566
23567 fi
23568
23569
23570 sd_user=
23571
23572 # Check whether --with-sd_user was given.
23573 if test "${with_sd_user+set}" = set; then :
23574   withval=$with_sd_user;
23575        if test "x$withval" != "x" ; then
23576           sd_user=$withval
23577        fi
23578
23579
23580 fi
23581
23582
23583 sd_group=
23584
23585 # Check whether --with-sd_group was given.
23586 if test "${with_sd_group+set}" = set; then :
23587   withval=$with_sd_group;
23588        if test "x$withval" != "x" ; then
23589           sd_group=$withval
23590        fi
23591
23592
23593 fi
23594
23595
23596 fd_user=
23597
23598 # Check whether --with-fd_user was given.
23599 if test "${with_fd_user+set}" = set; then :
23600   withval=$with_fd_user;
23601        if test "x$withval" != "x" ; then
23602           fd_user=$withval
23603        fi
23604
23605
23606 fi
23607
23608
23609 fd_group=
23610
23611 # Check whether --with-fd_group was given.
23612 if test "${with_fd_group+set}" = set; then :
23613   withval=$with_fd_group;
23614        if test "x$withval" != "x" ; then
23615           fd_group=$withval
23616        fi
23617
23618
23619 fi
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629 SBINPERM=0750
23630
23631 # Check whether --with-sbin-perm was given.
23632 if test "${with_sbin_perm+set}" = set; then :
23633   withval=$with_sbin_perm;
23634        if test "x$withval" != "x" ; then
23635           SBINPERM=$withval
23636        fi
23637
23638
23639 fi
23640
23641
23642
23643
23644
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23646 $as_echo_n "checking for PostgreSQL support... " >&6; }
23647
23648 # Check whether --with-postgresql was given.
23649 if test "${with_postgresql+set}" = set; then :
23650   withval=$with_postgresql;
23651   if test "$withval" != "no"; then
23652       if test "$withval" = "yes"; then
23653           PG_CONFIG=`which pg_config`
23654           if test -n "$PG_CONFIG"; then
23655               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23656               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23657               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23658           elif test -f /usr/local/include/libpq-fe.h; then
23659               POSTGRESQL_INCDIR=/usr/local/include
23660               if test -d /usr/local/lib64; then
23661                  POSTGRESQL_LIBDIR=/usr/local/lib64
23662               else
23663                  POSTGRESQL_LIBDIR=/usr/local/lib
23664               fi
23665               POSTGRESQL_BINDIR=/usr/local/bin
23666           elif test -f /usr/include/libpq-fe.h; then
23667               POSTGRESQL_INCDIR=/usr/include
23668               if test -d /usr/lib64; then
23669                  POSTGRESQL_LIBDIR=/usr/lib64
23670               else
23671                  POSTGRESQL_LIBDIR=/usr/lib
23672               fi
23673               POSTGRESQL_BINDIR=/usr/bin
23674           elif test -f /usr/include/pgsql/libpq-fe.h; then
23675               POSTGRESQL_INCDIR=/usr/include/pgsql
23676               if test -d /usr/lib64/pgsql; then
23677                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23678               else
23679                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23680               fi
23681               POSTGRESQL_BINDIR=/usr/bin
23682           elif test -f /usr/include/postgresql/libpq-fe.h; then
23683               POSTGRESQL_INCDIR=/usr/include/postgresql
23684               if test -d /usr/lib64/postgresql; then
23685                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23686               else
23687                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23688               fi
23689               POSTGRESQL_BINDIR=/usr/bin
23690           else
23691               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23692 $as_echo "no" >&6; }
23693               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23694           fi
23695       elif test -f $withval/include/libpq-fe.h; then
23696           POSTGRESQL_INCDIR=$withval/include
23697           POSTGRESQL_LIBDIR=$withval/lib
23698           POSTGRESQL_BINDIR=$withval/bin
23699       elif test -f $withval/include/postgresql/libpq-fe.h; then
23700           POSTGRESQL_INCDIR=$withval/include/postgresql
23701           if test -d $withval/lib64; then
23702               POSTGRESQL_LIBDIR=$withval/lib64
23703           else
23704               POSTGRESQL_LIBDIR=$withval/lib
23705           fi
23706           POSTGRESQL_BINDIR=$withval/bin
23707       else
23708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23711       fi
23712
23713 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23714
23715      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716 $as_echo "yes" >&6; }
23717
23718      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23719      if test x$use_libtool != xno; then
23720         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23721      else
23722         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23723      fi
23724      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23725 if test "x$ac_cv_func_crypt" = x""yes; then :
23726
23727 else
23728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23729 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23730 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23731   $as_echo_n "(cached) " >&6
23732 else
23733   ac_check_lib_save_LIBS=$LIBS
23734 LIBS="-lcrypt  $LIBS"
23735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h.  */
23737
23738 /* Override any GCC internal prototype to avoid an error.
23739    Use char because int might match the return type of a GCC
23740    builtin and then its argument prototype would still apply.  */
23741 #ifdef __cplusplus
23742 extern "C"
23743 #endif
23744 char crypt ();
23745 int
23746 main ()
23747 {
23748 return crypt ();
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 if ac_fn_c_try_link "$LINENO"; then :
23754   ac_cv_lib_crypt_crypt=yes
23755 else
23756   ac_cv_lib_crypt_crypt=no
23757 fi
23758 rm -f core conftest.err conftest.$ac_objext \
23759     conftest$ac_exeext conftest.$ac_ext
23760 LIBS=$ac_check_lib_save_LIBS
23761 fi
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23763 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23764 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23765   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23766 fi
23767
23768 fi
23769
23770      if test x$use_libtool != xno; then
23771         POSTGRESQL_LFLAGS=`echo ${POSTGRESQL_LIBS} | sed -e "s#-R $POSTGRESQL_LIBDIR##"`
23772      else
23773         POSTGRESQL_LFLAGS="${POSTGRESQL_LIBS}"
23774      fi
23775      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23776      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23777
23778      if test -z "${db_backends}"; then
23779          db_backends="PostgreSQL"
23780      else
23781          db_backends="${db_backends} PostgreSQL"
23782      fi
23783      if test -z "${DB_BACKENDS}"; then
23784          DB_BACKENDS="postgresql"
23785      else
23786          DB_BACKENDS="${DB_BACKENDS} postgresql"
23787      fi
23788   else
23789      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23790 $as_echo "no" >&6; }
23791   fi
23792
23793 else
23794
23795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23796 $as_echo "no" >&6; }
23797
23798 fi
23799
23800
23801
23802
23803
23804
23805
23806
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23808 $as_echo_n "checking for MySQL support... " >&6; }
23809
23810 # Check whether --with-mysql was given.
23811 if test "${with_mysql+set}" = set; then :
23812   withval=$with_mysql;
23813   if test "$withval" != "no"; then
23814         if test "$withval" = "yes"; then
23815            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23816                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23817                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23818                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23819                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23820                    else
23821                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23822                    fi
23823                    MYSQL_BINDIR=/usr/local/mysql/bin
23824            elif test -f /usr/include/mysql/mysql.h; then
23825                    MYSQL_INCDIR=/usr/include/mysql
23826                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23827                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23828                            MYSQL_LIBDIR=/usr/lib64/mysql
23829                    elif test -f /usr/lib64/libmysqlclient_r.a \
23830                         -o -f /usr/lib64/libmysqlclient_r.so; then
23831                            MYSQL_LIBDIR=/usr/lib64
23832                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23833                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23834                            MYSQL_LIBDIR=/usr/lib/mysql
23835                    else
23836                            MYSQL_LIBDIR=/usr/lib
23837                    fi
23838                    MYSQL_BINDIR=/usr/bin
23839            elif test -f /usr/include/mysql.h; then
23840                    MYSQL_INCDIR=/usr/include
23841                    if test -f /usr/lib64/libmysqlclient_r.a \
23842                         -o -f /usr/lib64/libmysqlclient_r.so; then
23843                            MYSQL_LIBDIR=/usr/lib64
23844                    else
23845                            MYSQL_LIBDIR=/usr/lib
23846                    fi
23847                    MYSQL_BINDIR=/usr/bin
23848            elif test -f /usr/local/include/mysql/mysql.h; then
23849                    MYSQL_INCDIR=/usr/local/include/mysql
23850                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23851                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23852                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23853                    else
23854                            MYSQL_LIBDIR=/usr/local/lib/mysql
23855                    fi
23856                    MYSQL_BINDIR=/usr/local/bin
23857            elif test -f /usr/local/include/mysql.h; then
23858                    MYSQL_INCDIR=/usr/local/include
23859                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23860                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23861                            MYSQL_LIBDIR=/usr/local/lib64
23862                    else
23863                            MYSQL_LIBDIR=/usr/local/lib
23864                    fi
23865                    MYSQL_BINDIR=/usr/local/bin
23866            else
23867               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23868 $as_echo "no" >&6; }
23869               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23870            fi
23871         else
23872            if test -f $withval/include/mysql/mysql.h; then
23873               MYSQL_INCDIR=$withval/include/mysql
23874               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23875                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23876                  MYSQL_LIBDIR=$withval/lib64/mysql
23877               elif test -f $withval/lib64/libmysqlclient_r.a \
23878                    -o -f $withval/lib64/libmysqlclient_r.so; then
23879                  MYSQL_LIBDIR=$withval/lib64
23880               elif test -f $withval/lib/libmysqlclient_r.a \
23881                    -o -f $withval/lib/libmysqlclient_r.so; then
23882                  MYSQL_LIBDIR=$withval/lib
23883               else
23884                  MYSQL_LIBDIR=$withval/lib/mysql
23885               fi
23886               MYSQL_BINDIR=$withval/bin
23887            elif test -f $withval/include/mysql.h; then
23888               MYSQL_INCDIR=$withval/include
23889               if test -f $withval/lib64/libmysqlclient_r.a \
23890                    -o -f $withval/lib64/libmysqlclient_r.so; then
23891                  MYSQL_LIBDIR=$withval/lib64
23892               else
23893                  MYSQL_LIBDIR=$withval/lib
23894               fi
23895               MYSQL_BINDIR=$withval/bin
23896            else
23897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23898 $as_echo "no" >&6; }
23899               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23900            fi
23901         fi
23902      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23903      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23904           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23905         if test x$use_libtool != xno; then
23906            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23907         else
23908            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23909         fi
23910         MYSQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23911
23912 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23913
23914         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23915      fi
23916      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23917
23918
23919 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23920
23921      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23922 $as_echo "yes" >&6; }
23923
23924      if test -z "${db_backends}" ; then
23925          db_backends="MySQL"
23926      else
23927          db_backends="${db_backends} MySQL"
23928      fi
23929      if test -z "${DB_BACKENDS}" ; then
23930          DB_BACKENDS="mysql"
23931      else
23932          DB_BACKENDS="${DB_BACKENDS} mysql"
23933      fi
23934   else
23935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23936 $as_echo "no" >&6; }
23937   fi
23938
23939 else
23940
23941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23942 $as_echo "no" >&6; }
23943
23944 fi
23945
23946
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
23948 $as_echo_n "checking for MySQL embedded support... " >&6; }
23949
23950 # Check whether --with-embedded-mysql was given.
23951 if test "${with_embedded_mysql+set}" = set; then :
23952   withval=$with_embedded_mysql;
23953   if test "$withval" != "no"; then
23954         if test "$withval" = "yes"; then
23955                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23956                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23957                         if test -d /usr/local/mysql/lib64/mysql; then
23958                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23959                         else
23960                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23961                         fi
23962                         MYSQL_BINDIR=/usr/local/mysql/bin
23963                 elif test -f /usr/include/mysql/mysql.h; then
23964                         MYSQL_INCDIR=/usr/include/mysql
23965                         if test -d /usr/lib64/mysql; then
23966                                 MYSQL_LIBDIR=/usr/lib64/mysql
23967                         else
23968                                 MYSQL_LIBDIR=/usr/lib/mysql
23969                         fi
23970                         MYSQL_BINDIR=/usr/bin
23971                 elif test -f /usr/include/mysql.h; then
23972                         MYSQL_INCDIR=/usr/include
23973                         if test -d /usr/lib64; then
23974                                 MYSQL_LIBDIR=/usr/lib64
23975                         else
23976                                 MYSQL_LIBDIR=/usr/lib
23977                         fi
23978                         MYSQL_BINDIR=/usr/bin
23979                 elif test -f /usr/local/include/mysql/mysql.h; then
23980                         MYSQL_INCDIR=/usr/local/include/mysql
23981                         if test -d /usr/local/lib64/mysql; then
23982                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23983                         else
23984                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23985                         fi
23986                         MYSQL_BINDIR=/usr/local/bin
23987                 elif test -f /usr/local/include/mysql.h; then
23988                         MYSQL_INCDIR=/usr/local/include
23989                         if test -d /usr/local/lib64; then
23990                                 MYSQL_LIBDIR=/usr/local/lib64
23991                         else
23992                                 MYSQL_LIBDIR=/usr/local/lib
23993                         fi
23994                         MYSQL_BINDIR=/usr/local/bin
23995                 else
23996                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23997 $as_echo "no" >&6; }
23998                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23999                 fi
24000         else
24001                 if test -f $withval/include/mysql/mysql.h; then
24002                         MYSQL_INCDIR=$withval/include/mysql
24003                         if test -d $withval/lib64/mysql; then
24004                                 MYSQL_LIBDIR=$withval/lib64/mysql
24005                         else
24006                                 MYSQL_LIBDIR=$withval/lib/mysql
24007                         fi
24008                         MYSQL_BINDIR=$withval/bin
24009                 elif test -f $withval/include/mysql.h; then
24010                         MYSQL_INCDIR=$withval/include
24011                         if test -d $withval/lib64; then
24012                                 MYSQL_LIBDIR=$withval/lib64
24013                         else
24014                                 MYSQL_LIBDIR=$withval/lib
24015                         fi
24016                         MYSQL_BINDIR=$withval/bin
24017                 else
24018                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24020                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24021                 fi
24022         fi
24023      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24024      if test x$use_libtool != xno; then
24025         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24026      else
24027         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24028      fi
24029      MYSQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24030      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24031      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24032
24033
24034 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24035
24036
24037 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24038
24039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24040 $as_echo "yes" >&6; }
24041
24042      if test -z "${db_backends}"; then
24043          db_backends="MySQL"
24044      else
24045          db_backends="${db_backends} MySQL"
24046      fi
24047      if test -z "${DB_BACKENDS}"; then
24048          DB_BACKENDS="mysql"
24049      else
24050          DB_BACKENDS="${DB_BACKENDS} mysql"
24051      fi
24052   else
24053      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24055   fi
24056
24057 else
24058
24059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24060 $as_echo "no" >&6; }
24061
24062 fi
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24073 $as_echo_n "checking for SQLite3 support... " >&6; }
24074
24075 # Check whether --with-sqlite3 was given.
24076 if test "${with_sqlite3+set}" = set; then :
24077   withval=$with_sqlite3;
24078   if test "$withval" != "no"; then
24079      if test "$withval" = "yes"; then
24080         if test -f /usr/local/include/sqlite3.h; then
24081            SQLITE_INCDIR=/usr/local/include
24082            if test -d /usr/local/lib64; then
24083               SQLITE_LIBDIR=/usr/local/lib64
24084            else
24085               SQLITE_LIBDIR=/usr/local/lib
24086            fi
24087            SQLITE_BINDIR=/usr/local/bin
24088         elif test -f /usr/include/sqlite3.h; then
24089            SQLITE_INCDIR=/usr/include
24090            if test -d /usr/lib64; then
24091               SQLITE_LIBDIR=/usr/lib64
24092            else
24093               SQLITE_LIBDIR=/usr/lib
24094            fi
24095            SQLITE_BINDIR=/usr/bin
24096         elif test -f $prefix/include/sqlite3.h; then
24097            SQLITE_INCDIR=$prefix/include
24098            if test -d $prefix/lib64; then
24099               SQLITE_LIBDIR=$prefix/lib64
24100            else
24101               SQLITE_LIBDIR=$prefix/lib
24102            fi
24103            SQLITE_BINDIR=$prefix/bin
24104         else
24105            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24106 $as_echo "no" >&6; }
24107            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24108         fi
24109      else
24110         if test -f $withval/sqlite3.h; then
24111            SQLITE_INCDIR=$withval
24112            SQLITE_LIBDIR=$withval
24113            SQLITE_BINDIR=$withval
24114         elif test -f $withval/include/sqlite3.h; then
24115            SQLITE_INCDIR=$withval/include
24116            if test -d $withval/lib64; then
24117               SQLITE_LIBDIR=$withval/lib64
24118            else
24119               SQLITE_LIBDIR=$withval/lib
24120            fi
24121            SQLITE_BINDIR=$withval/bin
24122         else
24123            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24124 $as_echo "no" >&6; }
24125            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24126         fi
24127      fi
24128      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24129      if test x$use_libtool != xno; then
24130         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24131      else
24132         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24133      fi
24134      SQLITE_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
24135      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24136      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24137
24138
24139 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24140
24141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24142 $as_echo "yes" >&6; }
24143
24144      if test -z "${db_backends}"; then
24145          db_backends="SQLite3"
24146      else
24147          db_backends="${db_backends} SQLite3"
24148      fi
24149      if test -z "${DB_BACKENDS}"; then
24150          DB_BACKENDS="sqlite3"
24151      else
24152          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24153      fi
24154   else
24155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24156 $as_echo "no" >&6; }
24157   fi
24158
24159 else
24160
24161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162 $as_echo "no" >&6; }
24163
24164 fi
24165
24166
24167
24168
24169
24170
24171
24172 #BA_CHECK_INGRES_DB
24173
24174 #BA_CHECK_DBI_DB
24175
24176 #BA_CHECK_DBI_DRIVER
24177
24178 if test "x${db_backends}" = "x" ; then
24179    echo " "
24180    echo " "
24181    echo "You have not specified either --enable-client-only or one of the"
24182    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24183    echo "This is not permitted. Please reconfigure."
24184    echo " "
24185    echo "Aborting the configuration ..."
24186    echo " "
24187    echo " "
24188    exit 1
24189 fi
24190
24191 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24192    1)
24193       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24194       if test x$use_libtool = xno; then
24195          SHARED_CATALOG_TARGETS=""
24196       else
24197          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24198       fi
24199       ;;
24200    *)
24201                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24202
24203                         if test x$use_libtool = xno; then
24204          echo " "
24205          echo " "
24206          echo "You have specified two or more of the"
24207          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24208          echo "This is not permitted when not using libtool Please reconfigure."
24209          echo " "
24210          echo "Aborting the configuration ..."
24211          echo " "
24212          echo " "
24213          exit 1
24214       fi
24215
24216       SHARED_CATALOG_TARGETS=""
24217       for db_type in ${DB_BACKENDS}
24218       do
24219          if test -z "${SHARED_CATALOG_TARGETS}"; then
24220             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24221          else
24222             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24223          fi
24224       done
24225       ;;
24226 esac
24227
24228 if test x$use_libtool = xyes; then
24229    DB_LIBS=""
24230 fi
24231
24232
24233
24234
24235
24236
24237 support_batch_insert=yes
24238 # Check whether --enable-batch-insert was given.
24239 if test "${enable_batch_insert+set}" = set; then :
24240   enableval=$enable_batch_insert;
24241        if test x$enableval = xno; then
24242           support_batch_insert=no
24243        fi
24244
24245
24246 fi
24247
24248
24249 if test x$support_batch_insert = xyes; then
24250
24251 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24252
24253 fi
24254
24255 if test ! -z "$MYSQL_LIB"; then
24256       saved_LIBS="${LIBS}"
24257    LIBS="${saved_LIBS} ${MYSQL_LFLAGS}"
24258
24259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24260 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24261 if test "${ac_cv_lib_mysqlclient_r_mysql_thread_safe+set}" = set; then :
24262   $as_echo_n "(cached) " >&6
24263 else
24264   ac_check_lib_save_LIBS=$LIBS
24265 LIBS="-lmysqlclient_r  $LIBS"
24266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24267 /* end confdefs.h.  */
24268
24269 /* Override any GCC internal prototype to avoid an error.
24270    Use char because int might match the return type of a GCC
24271    builtin and then its argument prototype would still apply.  */
24272 #ifdef __cplusplus
24273 extern "C"
24274 #endif
24275 char mysql_thread_safe ();
24276 int
24277 main ()
24278 {
24279 return mysql_thread_safe ();
24280   ;
24281   return 0;
24282 }
24283 _ACEOF
24284 if ac_fn_c_try_link "$LINENO"; then :
24285   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24286 else
24287   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24288 fi
24289 rm -f core conftest.err conftest.$ac_objext \
24290     conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24292 fi
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24294 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24295 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = x""yes; then :
24296
24297 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24298
24299 fi
24300
24301
24302       LIBS="${saved_LIBS}"
24303 fi
24304
24305 if test ! -z "SQLITE_LIB"; then
24306       saved_LIBS="${LIBS}"
24307    LIBS="${saved_LIBS} ${SQLITE_LFLAGS}"
24308
24309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24310 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24311 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24312   $as_echo_n "(cached) " >&6
24313 else
24314   ac_check_lib_save_LIBS=$LIBS
24315 LIBS="-lsqlite3  $LIBS"
24316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h.  */
24318
24319 /* Override any GCC internal prototype to avoid an error.
24320    Use char because int might match the return type of a GCC
24321    builtin and then its argument prototype would still apply.  */
24322 #ifdef __cplusplus
24323 extern "C"
24324 #endif
24325 char sqlite3_threadsafe ();
24326 int
24327 main ()
24328 {
24329 return sqlite3_threadsafe ();
24330   ;
24331   return 0;
24332 }
24333 _ACEOF
24334 if ac_fn_c_try_link "$LINENO"; then :
24335   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24336 else
24337   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24338 fi
24339 rm -f core conftest.err conftest.$ac_objext \
24340     conftest$ac_exeext conftest.$ac_ext
24341 LIBS=$ac_check_lib_save_LIBS
24342 fi
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24344 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24345 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24346
24347 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24348
24349 fi
24350
24351
24352       LIBS="${saved_LIBS}"
24353 fi
24354
24355 if test ! -z "$POSTGRESQL_LIB"; then
24356       saved_LIBS="${LIBS}"
24357    LIBS="${saved_LIBS} ${POSTGRESQL_LFLAGS}"
24358
24359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24360 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24361 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24362   $as_echo_n "(cached) " >&6
24363 else
24364   ac_check_lib_save_LIBS=$LIBS
24365 LIBS="-lpq  $LIBS"
24366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24367 /* end confdefs.h.  */
24368
24369 /* Override any GCC internal prototype to avoid an error.
24370    Use char because int might match the return type of a GCC
24371    builtin and then its argument prototype would still apply.  */
24372 #ifdef __cplusplus
24373 extern "C"
24374 #endif
24375 char PQisthreadsafe ();
24376 int
24377 main ()
24378 {
24379 return PQisthreadsafe ();
24380   ;
24381   return 0;
24382 }
24383 _ACEOF
24384 if ac_fn_c_try_link "$LINENO"; then :
24385   ac_cv_lib_pq_PQisthreadsafe=yes
24386 else
24387   ac_cv_lib_pq_PQisthreadsafe=no
24388 fi
24389 rm -f core conftest.err conftest.$ac_objext \
24390     conftest$ac_exeext conftest.$ac_ext
24391 LIBS=$ac_check_lib_save_LIBS
24392 fi
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24394 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24395 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24396
24397 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24398
24399 fi
24400
24401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24402 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24403 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24404   $as_echo_n "(cached) " >&6
24405 else
24406   ac_check_lib_save_LIBS=$LIBS
24407 LIBS="-lpq  $LIBS"
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h.  */
24410
24411 /* Override any GCC internal prototype to avoid an error.
24412    Use char because int might match the return type of a GCC
24413    builtin and then its argument prototype would still apply.  */
24414 #ifdef __cplusplus
24415 extern "C"
24416 #endif
24417 char PQputCopyData ();
24418 int
24419 main ()
24420 {
24421 return PQputCopyData ();
24422   ;
24423   return 0;
24424 }
24425 _ACEOF
24426 if ac_fn_c_try_link "$LINENO"; then :
24427   ac_cv_lib_pq_PQputCopyData=yes
24428 else
24429   ac_cv_lib_pq_PQputCopyData=no
24430 fi
24431 rm -f core conftest.err conftest.$ac_objext \
24432     conftest$ac_exeext conftest.$ac_ext
24433 LIBS=$ac_check_lib_save_LIBS
24434 fi
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24436 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24437 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24438
24439 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24440
24441 fi
24442
24443    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24444       if test $support_batch_insert = yes ; then
24445
24446 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24447
24448       fi
24449    fi
24450
24451    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24452    then
24453       echo "WARNING: Your PostgreSQL client library is too old to detect "
24454       echo "if it was compiled with --enable-thread-safety, consider to "
24455       echo "upgrade it in order to avoid problems with Batch insert mode"
24456       echo
24457    fi
24458
24459       LIBS="${saved_LIBS}"
24460 fi
24461
24462 if test ! -z "$DBI_LIBS"; then
24463             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24464
24465             if test $DB_PROG = postgresql; then
24466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24467 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24468 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24469   $as_echo_n "(cached) " >&6
24470 else
24471   ac_check_lib_save_LIBS=$LIBS
24472 LIBS="-lpq  $LIBS"
24473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h.  */
24475
24476 /* Override any GCC internal prototype to avoid an error.
24477    Use char because int might match the return type of a GCC
24478    builtin and then its argument prototype would still apply.  */
24479 #ifdef __cplusplus
24480 extern "C"
24481 #endif
24482 char PQisthreadsafe ();
24483 int
24484 main ()
24485 {
24486 return PQisthreadsafe ();
24487   ;
24488   return 0;
24489 }
24490 _ACEOF
24491 if ac_fn_c_try_link "$LINENO"; then :
24492   ac_cv_lib_pq_PQisthreadsafe=yes
24493 else
24494   ac_cv_lib_pq_PQisthreadsafe=no
24495 fi
24496 rm -f core conftest.err conftest.$ac_objext \
24497     conftest$ac_exeext conftest.$ac_ext
24498 LIBS=$ac_check_lib_save_LIBS
24499 fi
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24501 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24502 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24503   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24504
24505 fi
24506
24507       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24508 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24509 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24510   $as_echo_n "(cached) " >&6
24511 else
24512   ac_check_lib_save_LIBS=$LIBS
24513 LIBS="-lpq  $LIBS"
24514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h.  */
24516
24517 /* Override any GCC internal prototype to avoid an error.
24518    Use char because int might match the return type of a GCC
24519    builtin and then its argument prototype would still apply.  */
24520 #ifdef __cplusplus
24521 extern "C"
24522 #endif
24523 char PQputCopyData ();
24524 int
24525 main ()
24526 {
24527 return PQputCopyData ();
24528   ;
24529   return 0;
24530 }
24531 _ACEOF
24532 if ac_fn_c_try_link "$LINENO"; then :
24533   ac_cv_lib_pq_PQputCopyData=yes
24534 else
24535   ac_cv_lib_pq_PQputCopyData=no
24536 fi
24537 rm -f core conftest.err conftest.$ac_objext \
24538     conftest$ac_exeext conftest.$ac_ext
24539 LIBS=$ac_check_lib_save_LIBS
24540 fi
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24542 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24543 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24544   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24545
24546 fi
24547
24548       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24549       pkg=$?
24550       if test $pkg = 0; then
24551          if test $support_batch_insert = yes ; then
24552
24553 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24554
24555          fi
24556       fi
24557    fi
24558 else
24559             uncomment_dbi="#"
24560 fi
24561
24562
24563
24564 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24565
24566
24567 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24568    if test -z "$CCOPTS"; then
24569       CCOPTS='-g -O2 -Wall'
24570    fi
24571    CFLAGS="$CCOPTS"
24572 fi
24573
24574
24575
24576 largefile_support="no"
24577
24578    # Check whether --enable-largefile was given.
24579 if test "${enable_largefile+set}" = set; then :
24580   enableval=$enable_largefile;
24581 fi
24582
24583    if test "$enable_largefile" != no; then
24584      if test -n "$ac_tool_prefix"; then
24585   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24586 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24588 $as_echo_n "checking for $ac_word... " >&6; }
24589 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24590   $as_echo_n "(cached) " >&6
24591 else
24592   if test -n "$GETCONF"; then
24593   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24594 else
24595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24596 for as_dir in $PATH
24597 do
24598   IFS=$as_save_IFS
24599   test -z "$as_dir" && as_dir=.
24600     for ac_exec_ext in '' $ac_executable_extensions; do
24601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24602     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24604     break 2
24605   fi
24606 done
24607   done
24608 IFS=$as_save_IFS
24609
24610 fi
24611 fi
24612 GETCONF=$ac_cv_prog_GETCONF
24613 if test -n "$GETCONF"; then
24614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24615 $as_echo "$GETCONF" >&6; }
24616 else
24617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24618 $as_echo "no" >&6; }
24619 fi
24620
24621
24622 fi
24623 if test -z "$ac_cv_prog_GETCONF"; then
24624   ac_ct_GETCONF=$GETCONF
24625   # Extract the first word of "getconf", so it can be a program name with args.
24626 set dummy getconf; ac_word=$2
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24628 $as_echo_n "checking for $ac_word... " >&6; }
24629 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24630   $as_echo_n "(cached) " >&6
24631 else
24632   if test -n "$ac_ct_GETCONF"; then
24633   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24634 else
24635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24636 for as_dir in $PATH
24637 do
24638   IFS=$as_save_IFS
24639   test -z "$as_dir" && as_dir=.
24640     for ac_exec_ext in '' $ac_executable_extensions; do
24641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24642     ac_cv_prog_ac_ct_GETCONF="getconf"
24643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24644     break 2
24645   fi
24646 done
24647   done
24648 IFS=$as_save_IFS
24649
24650 fi
24651 fi
24652 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24653 if test -n "$ac_ct_GETCONF"; then
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24655 $as_echo "$ac_ct_GETCONF" >&6; }
24656 else
24657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24658 $as_echo "no" >&6; }
24659 fi
24660
24661   if test "x$ac_ct_GETCONF" = x; then
24662     GETCONF=""
24663   else
24664     case $cross_compiling:$ac_tool_warned in
24665 yes:)
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24668 ac_tool_warned=yes ;;
24669 esac
24670     GETCONF=$ac_ct_GETCONF
24671   fi
24672 else
24673   GETCONF="$ac_cv_prog_GETCONF"
24674 fi
24675
24676      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24677 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24678 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24679   $as_echo_n "(cached) " >&6
24680 else
24681   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24682         ac_cv_sys_largefile_CFLAGS=no
24683         case "$host_os" in
24684            # IRIX 6.2 and later require cc -n32.
24685            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24686              if test "$GCC" != yes; then
24687                ac_cv_sys_largefile_CFLAGS=-n32
24688              fi
24689              ac_save_CC="$CC"
24690              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24691              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692 /* end confdefs.h.  */
24693
24694 int
24695 main ()
24696 {
24697
24698   ;
24699   return 0;
24700 }
24701 _ACEOF
24702 if ac_fn_c_try_link "$LINENO"; then :
24703
24704 else
24705   ac_cv_sys_largefile_CFLAGS=no
24706 fi
24707 rm -f core conftest.err conftest.$ac_objext \
24708     conftest$ac_exeext conftest.$ac_ext
24709              CC="$ac_save_CC"
24710            esac
24711       }
24712 fi
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24714 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24715      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24716 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24717 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24718   $as_echo_n "(cached) " >&6
24719 else
24720   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24721         ac_cv_sys_largefile_LDFLAGS=no
24722
24723       }
24724 fi
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24726 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24727      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24728 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24729 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24730   $as_echo_n "(cached) " >&6
24731 else
24732   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24733         ac_cv_sys_largefile_LIBS=no
24734
24735       }
24736 fi
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24738 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24739
24740      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24741        case "$ac_flag" in
24742        no) ;;
24743        -D_FILE_OFFSET_BITS=*) ;;
24744        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24745        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24746        -D?* | -I?*)
24747          case "$ac_flag" in
24748    no) ;;
24749    ?*)
24750      case "$CPPFLAGS" in
24751      '') CPPFLAGS="$ac_flag" ;;
24752      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24753      esac ;;
24754    esac ;;
24755        *)
24756          case "$ac_flag" in
24757    no) ;;
24758    ?*)
24759      case "$CFLAGS" in
24760      '') CFLAGS="$ac_flag" ;;
24761      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24762      esac ;;
24763    esac ;;
24764        esac
24765      done
24766      case "$ac_cv_sys_largefile_LDFLAGS" in
24767    no) ;;
24768    ?*)
24769      case "$LDFLAGS" in
24770      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24771      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24772      esac ;;
24773    esac
24774      case "$ac_cv_sys_largefile_LIBS" in
24775    no) ;;
24776    ?*)
24777      case "$LIBS" in
24778      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24779      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24780      esac ;;
24781    esac
24782      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24783 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24784 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24785   $as_echo_n "(cached) " >&6
24786 else
24787   ac_cv_sys_file_offset_bits=no
24788       ac_cv_sys_file_offset_bits=64
24789       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24790         case "$ac_flag" in
24791         -D_FILE_OFFSET_BITS)
24792           ac_cv_sys_file_offset_bits=1 ;;
24793         -D_FILE_OFFSET_BITS=*)
24794           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24795         esac
24796       done
24797
24798 fi
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24801    if test "$ac_cv_sys_file_offset_bits" != no; then
24802
24803 cat >>confdefs.h <<_ACEOF
24804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24805 _ACEOF
24806
24807    fi
24808      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24809 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24810 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24811   $as_echo_n "(cached) " >&6
24812 else
24813   ac_cv_sys_largefile_source=no
24814       ac_cv_sys_largefile_source=1
24815       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24816         case "$ac_flag" in
24817         -D_LARGEFILE_SOURCE)
24818           ac_cv_sys_largefile_source=1 ;;
24819         -D_LARGEFILE_SOURCE=*)
24820           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24821         esac
24822       done
24823
24824 fi
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24826 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24827    if test "$ac_cv_sys_largefile_source" != no; then
24828
24829 cat >>confdefs.h <<_ACEOF
24830 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24831 _ACEOF
24832
24833    fi
24834      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24835 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24836 if test "${ac_cv_sys_large_files+set}" = set; then :
24837   $as_echo_n "(cached) " >&6
24838 else
24839   ac_cv_sys_large_files=no
24840       ac_cv_sys_large_files=1
24841       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24842         case "$ac_flag" in
24843         -D_LARGE_FILES)
24844           ac_cv_sys_large_files=1 ;;
24845         -D_LARGE_FILES=*)
24846           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24847         esac
24848       done
24849
24850 fi
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24852 $as_echo "$ac_cv_sys_large_files" >&6; }
24853    if test "$ac_cv_sys_large_files" != no; then
24854
24855 cat >>confdefs.h <<_ACEOF
24856 #define _LARGE_FILES $ac_cv_sys_large_files
24857 _ACEOF
24858
24859    fi
24860    fi
24861
24862
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24864 $as_echo_n "checking for X... " >&6; }
24865
24866
24867 # Check whether --with-x was given.
24868 if test "${with_x+set}" = set; then :
24869   withval=$with_x;
24870 fi
24871
24872 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24873 if test "x$with_x" = xno; then
24874   # The user explicitly disabled X.
24875   have_x=disabled
24876 else
24877   case $x_includes,$x_libraries in #(
24878     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24879     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24880   $as_echo_n "(cached) " >&6
24881 else
24882   # One or both of the vars are not set, and there is no cached value.
24883 ac_x_includes=no ac_x_libraries=no
24884 rm -f -r conftest.dir
24885 if mkdir conftest.dir; then
24886   cd conftest.dir
24887   cat >Imakefile <<'_ACEOF'
24888 incroot:
24889         @echo incroot='${INCROOT}'
24890 usrlibdir:
24891         @echo usrlibdir='${USRLIBDIR}'
24892 libdir:
24893         @echo libdir='${LIBDIR}'
24894 _ACEOF
24895   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24896     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24897     for ac_var in incroot usrlibdir libdir; do
24898       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24899     done
24900     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24901     for ac_extension in a so sl dylib la dll; do
24902       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24903          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24904         ac_im_usrlibdir=$ac_im_libdir; break
24905       fi
24906     done
24907     # Screen out bogus values from the imake configuration.  They are
24908     # bogus both because they are the default anyway, and because
24909     # using them would break gcc on systems where it needs fixed includes.
24910     case $ac_im_incroot in
24911         /usr/include) ac_x_includes= ;;
24912         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24913     esac
24914     case $ac_im_usrlibdir in
24915         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24916         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24917     esac
24918   fi
24919   cd ..
24920   rm -f -r conftest.dir
24921 fi
24922
24923 # Standard set of common directories for X headers.
24924 # Check X11 before X11Rn because it is often a symlink to the current release.
24925 ac_x_header_dirs='
24926 /usr/X11/include
24927 /usr/X11R7/include
24928 /usr/X11R6/include
24929 /usr/X11R5/include
24930 /usr/X11R4/include
24931
24932 /usr/include/X11
24933 /usr/include/X11R7
24934 /usr/include/X11R6
24935 /usr/include/X11R5
24936 /usr/include/X11R4
24937
24938 /usr/local/X11/include
24939 /usr/local/X11R7/include
24940 /usr/local/X11R6/include
24941 /usr/local/X11R5/include
24942 /usr/local/X11R4/include
24943
24944 /usr/local/include/X11
24945 /usr/local/include/X11R7
24946 /usr/local/include/X11R6
24947 /usr/local/include/X11R5
24948 /usr/local/include/X11R4
24949
24950 /usr/X386/include
24951 /usr/x386/include
24952 /usr/XFree86/include/X11
24953
24954 /usr/include
24955 /usr/local/include
24956 /usr/unsupported/include
24957 /usr/athena/include
24958 /usr/local/x11r5/include
24959 /usr/lpp/Xamples/include
24960
24961 /usr/openwin/include
24962 /usr/openwin/share/include'
24963
24964 if test "$ac_x_includes" = no; then
24965   # Guess where to find include files, by looking for Xlib.h.
24966   # First, try using that file with no special directory specified.
24967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h.  */
24969 #include <X11/Xlib.h>
24970 _ACEOF
24971 if ac_fn_c_try_cpp "$LINENO"; then :
24972   # We can compile using X headers with no special include directory.
24973 ac_x_includes=
24974 else
24975   for ac_dir in $ac_x_header_dirs; do
24976   if test -r "$ac_dir/X11/Xlib.h"; then
24977     ac_x_includes=$ac_dir
24978     break
24979   fi
24980 done
24981 fi
24982 rm -f conftest.err conftest.$ac_ext
24983 fi # $ac_x_includes = no
24984
24985 if test "$ac_x_libraries" = no; then
24986   # Check for the libraries.
24987   # See if we find them without any special options.
24988   # Don't add to $LIBS permanently.
24989   ac_save_LIBS=$LIBS
24990   LIBS="-lX11 $LIBS"
24991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h.  */
24993 #include <X11/Xlib.h>
24994 int
24995 main ()
24996 {
24997 XrmInitialize ()
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 if ac_fn_c_try_link "$LINENO"; then :
25003   LIBS=$ac_save_LIBS
25004 # We can link X programs with no special library path.
25005 ac_x_libraries=
25006 else
25007   LIBS=$ac_save_LIBS
25008 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25009 do
25010   # Don't even attempt the hair of trying to link an X program!
25011   for ac_extension in a so sl dylib la dll; do
25012     if test -r "$ac_dir/libX11.$ac_extension"; then
25013       ac_x_libraries=$ac_dir
25014       break 2
25015     fi
25016   done
25017 done
25018 fi
25019 rm -f core conftest.err conftest.$ac_objext \
25020     conftest$ac_exeext conftest.$ac_ext
25021 fi # $ac_x_libraries = no
25022
25023 case $ac_x_includes,$ac_x_libraries in #(
25024   no,* | *,no | *\'*)
25025     # Didn't find X, or a directory has "'" in its name.
25026     ac_cv_have_x="have_x=no";; #(
25027   *)
25028     # Record where we found X for the cache.
25029     ac_cv_have_x="have_x=yes\
25030         ac_x_includes='$ac_x_includes'\
25031         ac_x_libraries='$ac_x_libraries'"
25032 esac
25033 fi
25034 ;; #(
25035     *) have_x=yes;;
25036   esac
25037   eval "$ac_cv_have_x"
25038 fi # $with_x != no
25039
25040 if test "$have_x" != yes; then
25041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25042 $as_echo "$have_x" >&6; }
25043   no_x=yes
25044 else
25045   # If each of the values was on the command line, it overrides each guess.
25046   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25047   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25048   # Update the cache value to reflect the command line values.
25049   ac_cv_have_x="have_x=yes\
25050         ac_x_includes='$x_includes'\
25051         ac_x_libraries='$x_libraries'"
25052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25053 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25054 fi
25055
25056 if test "$no_x" = yes; then
25057   # Not all programs may use this symbol, but it does not hurt to define it.
25058
25059 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25060
25061   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25062 else
25063   if test -n "$x_includes"; then
25064     X_CFLAGS="$X_CFLAGS -I$x_includes"
25065   fi
25066
25067   # It would also be nice to do this for all -L options, not just this one.
25068   if test -n "$x_libraries"; then
25069     X_LIBS="$X_LIBS -L$x_libraries"
25070     # For Solaris; some versions of Sun CC require a space after -R and
25071     # others require no space.  Words are not sufficient . . . .
25072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25073 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25074     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25075     ac_xsave_c_werror_flag=$ac_c_werror_flag
25076     ac_c_werror_flag=yes
25077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25078 /* end confdefs.h.  */
25079
25080 int
25081 main ()
25082 {
25083
25084   ;
25085   return 0;
25086 }
25087 _ACEOF
25088 if ac_fn_c_try_link "$LINENO"; then :
25089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25090 $as_echo "no" >&6; }
25091        X_LIBS="$X_LIBS -R$x_libraries"
25092 else
25093   LIBS="$ac_xsave_LIBS -R $x_libraries"
25094        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25095 /* end confdefs.h.  */
25096
25097 int
25098 main ()
25099 {
25100
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 if ac_fn_c_try_link "$LINENO"; then :
25106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25107 $as_echo "yes" >&6; }
25108           X_LIBS="$X_LIBS -R $x_libraries"
25109 else
25110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25111 $as_echo "neither works" >&6; }
25112 fi
25113 rm -f core conftest.err conftest.$ac_objext \
25114     conftest$ac_exeext conftest.$ac_ext
25115 fi
25116 rm -f core conftest.err conftest.$ac_objext \
25117     conftest$ac_exeext conftest.$ac_ext
25118     ac_c_werror_flag=$ac_xsave_c_werror_flag
25119     LIBS=$ac_xsave_LIBS
25120   fi
25121
25122   # Check for system-dependent libraries X programs must link with.
25123   # Do this before checking for the system-independent R6 libraries
25124   # (-lICE), since we may need -lsocket or whatever for X linking.
25125
25126   if test "$ISC" = yes; then
25127     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25128   else
25129     # Martyn Johnson says this is needed for Ultrix, if the X
25130     # libraries were built with DECnet support.  And Karl Berry says
25131     # the Alpha needs dnet_stub (dnet does not exist).
25132     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134 /* end confdefs.h.  */
25135
25136 /* Override any GCC internal prototype to avoid an error.
25137    Use char because int might match the return type of a GCC
25138    builtin and then its argument prototype would still apply.  */
25139 #ifdef __cplusplus
25140 extern "C"
25141 #endif
25142 char XOpenDisplay ();
25143 int
25144 main ()
25145 {
25146 return XOpenDisplay ();
25147   ;
25148   return 0;
25149 }
25150 _ACEOF
25151 if ac_fn_c_try_link "$LINENO"; then :
25152
25153 else
25154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25155 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25156 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25157   $as_echo_n "(cached) " >&6
25158 else
25159   ac_check_lib_save_LIBS=$LIBS
25160 LIBS="-ldnet  $LIBS"
25161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h.  */
25163
25164 /* Override any GCC internal prototype to avoid an error.
25165    Use char because int might match the return type of a GCC
25166    builtin and then its argument prototype would still apply.  */
25167 #ifdef __cplusplus
25168 extern "C"
25169 #endif
25170 char dnet_ntoa ();
25171 int
25172 main ()
25173 {
25174 return dnet_ntoa ();
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 if ac_fn_c_try_link "$LINENO"; then :
25180   ac_cv_lib_dnet_dnet_ntoa=yes
25181 else
25182   ac_cv_lib_dnet_dnet_ntoa=no
25183 fi
25184 rm -f core conftest.err conftest.$ac_objext \
25185     conftest$ac_exeext conftest.$ac_ext
25186 LIBS=$ac_check_lib_save_LIBS
25187 fi
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25189 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25190 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25191   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25192 fi
25193
25194     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25196 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25197 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25198   $as_echo_n "(cached) " >&6
25199 else
25200   ac_check_lib_save_LIBS=$LIBS
25201 LIBS="-ldnet_stub  $LIBS"
25202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h.  */
25204
25205 /* Override any GCC internal prototype to avoid an error.
25206    Use char because int might match the return type of a GCC
25207    builtin and then its argument prototype would still apply.  */
25208 #ifdef __cplusplus
25209 extern "C"
25210 #endif
25211 char dnet_ntoa ();
25212 int
25213 main ()
25214 {
25215 return dnet_ntoa ();
25216   ;
25217   return 0;
25218 }
25219 _ACEOF
25220 if ac_fn_c_try_link "$LINENO"; then :
25221   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25222 else
25223   ac_cv_lib_dnet_stub_dnet_ntoa=no
25224 fi
25225 rm -f core conftest.err conftest.$ac_objext \
25226     conftest$ac_exeext conftest.$ac_ext
25227 LIBS=$ac_check_lib_save_LIBS
25228 fi
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25230 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25231 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25232   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25233 fi
25234
25235     fi
25236 fi
25237 rm -f core conftest.err conftest.$ac_objext \
25238     conftest$ac_exeext conftest.$ac_ext
25239     LIBS="$ac_xsave_LIBS"
25240
25241     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25242     # to get the SysV transport functions.
25243     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25244     # needs -lnsl.
25245     # The nsl library prevents programs from opening the X display
25246     # on Irix 5.2, according to T.E. Dickey.
25247     # The functions gethostbyname, getservbyname, and inet_addr are
25248     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25249     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25250 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25251
25252 fi
25253
25254     if test $ac_cv_func_gethostbyname = no; then
25255       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25256 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25257 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25258   $as_echo_n "(cached) " >&6
25259 else
25260   ac_check_lib_save_LIBS=$LIBS
25261 LIBS="-lnsl  $LIBS"
25262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25263 /* end confdefs.h.  */
25264
25265 /* Override any GCC internal prototype to avoid an error.
25266    Use char because int might match the return type of a GCC
25267    builtin and then its argument prototype would still apply.  */
25268 #ifdef __cplusplus
25269 extern "C"
25270 #endif
25271 char gethostbyname ();
25272 int
25273 main ()
25274 {
25275 return gethostbyname ();
25276   ;
25277   return 0;
25278 }
25279 _ACEOF
25280 if ac_fn_c_try_link "$LINENO"; then :
25281   ac_cv_lib_nsl_gethostbyname=yes
25282 else
25283   ac_cv_lib_nsl_gethostbyname=no
25284 fi
25285 rm -f core conftest.err conftest.$ac_objext \
25286     conftest$ac_exeext conftest.$ac_ext
25287 LIBS=$ac_check_lib_save_LIBS
25288 fi
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25290 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25291 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25292   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25293 fi
25294
25295       if test $ac_cv_lib_nsl_gethostbyname = no; then
25296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25297 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25298 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25299   $as_echo_n "(cached) " >&6
25300 else
25301   ac_check_lib_save_LIBS=$LIBS
25302 LIBS="-lbsd  $LIBS"
25303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25304 /* end confdefs.h.  */
25305
25306 /* Override any GCC internal prototype to avoid an error.
25307    Use char because int might match the return type of a GCC
25308    builtin and then its argument prototype would still apply.  */
25309 #ifdef __cplusplus
25310 extern "C"
25311 #endif
25312 char gethostbyname ();
25313 int
25314 main ()
25315 {
25316 return gethostbyname ();
25317   ;
25318   return 0;
25319 }
25320 _ACEOF
25321 if ac_fn_c_try_link "$LINENO"; then :
25322   ac_cv_lib_bsd_gethostbyname=yes
25323 else
25324   ac_cv_lib_bsd_gethostbyname=no
25325 fi
25326 rm -f core conftest.err conftest.$ac_objext \
25327     conftest$ac_exeext conftest.$ac_ext
25328 LIBS=$ac_check_lib_save_LIBS
25329 fi
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25331 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25332 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25333   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25334 fi
25335
25336       fi
25337     fi
25338
25339     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25340     # socket/setsockopt and other routines are undefined under SCO ODT
25341     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25342     # on later versions), says Simon Leinen: it contains gethostby*
25343     # variants that don't use the name server (or something).  -lsocket
25344     # must be given before -lnsl if both are needed.  We assume that
25345     # if connect needs -lnsl, so does gethostbyname.
25346     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25347 if test "x$ac_cv_func_connect" = x""yes; then :
25348
25349 fi
25350
25351     if test $ac_cv_func_connect = no; then
25352       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25353 $as_echo_n "checking for connect in -lsocket... " >&6; }
25354 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25355   $as_echo_n "(cached) " >&6
25356 else
25357   ac_check_lib_save_LIBS=$LIBS
25358 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25360 /* end confdefs.h.  */
25361
25362 /* Override any GCC internal prototype to avoid an error.
25363    Use char because int might match the return type of a GCC
25364    builtin and then its argument prototype would still apply.  */
25365 #ifdef __cplusplus
25366 extern "C"
25367 #endif
25368 char connect ();
25369 int
25370 main ()
25371 {
25372 return connect ();
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 if ac_fn_c_try_link "$LINENO"; then :
25378   ac_cv_lib_socket_connect=yes
25379 else
25380   ac_cv_lib_socket_connect=no
25381 fi
25382 rm -f core conftest.err conftest.$ac_objext \
25383     conftest$ac_exeext conftest.$ac_ext
25384 LIBS=$ac_check_lib_save_LIBS
25385 fi
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25387 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25388 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25389   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25390 fi
25391
25392     fi
25393
25394     # Guillermo Gomez says -lposix is necessary on A/UX.
25395     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25396 if test "x$ac_cv_func_remove" = x""yes; then :
25397
25398 fi
25399
25400     if test $ac_cv_func_remove = no; then
25401       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25402 $as_echo_n "checking for remove in -lposix... " >&6; }
25403 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25404   $as_echo_n "(cached) " >&6
25405 else
25406   ac_check_lib_save_LIBS=$LIBS
25407 LIBS="-lposix  $LIBS"
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h.  */
25410
25411 /* Override any GCC internal prototype to avoid an error.
25412    Use char because int might match the return type of a GCC
25413    builtin and then its argument prototype would still apply.  */
25414 #ifdef __cplusplus
25415 extern "C"
25416 #endif
25417 char remove ();
25418 int
25419 main ()
25420 {
25421 return remove ();
25422   ;
25423   return 0;
25424 }
25425 _ACEOF
25426 if ac_fn_c_try_link "$LINENO"; then :
25427   ac_cv_lib_posix_remove=yes
25428 else
25429   ac_cv_lib_posix_remove=no
25430 fi
25431 rm -f core conftest.err conftest.$ac_objext \
25432     conftest$ac_exeext conftest.$ac_ext
25433 LIBS=$ac_check_lib_save_LIBS
25434 fi
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25436 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25437 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25438   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25439 fi
25440
25441     fi
25442
25443     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25444     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25445 if test "x$ac_cv_func_shmat" = x""yes; then :
25446
25447 fi
25448
25449     if test $ac_cv_func_shmat = no; then
25450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25451 $as_echo_n "checking for shmat in -lipc... " >&6; }
25452 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25453   $as_echo_n "(cached) " >&6
25454 else
25455   ac_check_lib_save_LIBS=$LIBS
25456 LIBS="-lipc  $LIBS"
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458 /* end confdefs.h.  */
25459
25460 /* Override any GCC internal prototype to avoid an error.
25461    Use char because int might match the return type of a GCC
25462    builtin and then its argument prototype would still apply.  */
25463 #ifdef __cplusplus
25464 extern "C"
25465 #endif
25466 char shmat ();
25467 int
25468 main ()
25469 {
25470 return shmat ();
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 if ac_fn_c_try_link "$LINENO"; then :
25476   ac_cv_lib_ipc_shmat=yes
25477 else
25478   ac_cv_lib_ipc_shmat=no
25479 fi
25480 rm -f core conftest.err conftest.$ac_objext \
25481     conftest$ac_exeext conftest.$ac_ext
25482 LIBS=$ac_check_lib_save_LIBS
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25485 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25486 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25487   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25488 fi
25489
25490     fi
25491   fi
25492
25493   # Check for libraries that X11R6 Xt/Xaw programs need.
25494   ac_save_LDFLAGS=$LDFLAGS
25495   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25496   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25497   # check for ICE first), but we must link in the order -lSM -lICE or
25498   # we get undefined symbols.  So assume we have SM if we have ICE.
25499   # These have to be linked with before -lX11, unlike the other
25500   # libraries we check for below, so use a different variable.
25501   # John Interrante, Karl Berry
25502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25503 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25504 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25505   $as_echo_n "(cached) " >&6
25506 else
25507   ac_check_lib_save_LIBS=$LIBS
25508 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h.  */
25511
25512 /* Override any GCC internal prototype to avoid an error.
25513    Use char because int might match the return type of a GCC
25514    builtin and then its argument prototype would still apply.  */
25515 #ifdef __cplusplus
25516 extern "C"
25517 #endif
25518 char IceConnectionNumber ();
25519 int
25520 main ()
25521 {
25522 return IceConnectionNumber ();
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 if ac_fn_c_try_link "$LINENO"; then :
25528   ac_cv_lib_ICE_IceConnectionNumber=yes
25529 else
25530   ac_cv_lib_ICE_IceConnectionNumber=no
25531 fi
25532 rm -f core conftest.err conftest.$ac_objext \
25533     conftest$ac_exeext conftest.$ac_ext
25534 LIBS=$ac_check_lib_save_LIBS
25535 fi
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25537 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25538 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25539   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25540 fi
25541
25542   LDFLAGS=$ac_save_LDFLAGS
25543
25544 fi
25545
25546
25547 for ac_header in \
25548    assert.h \
25549    fcntl.h \
25550    grp.h \
25551    pwd.h \
25552    libc.h \
25553    limits.h \
25554    stdarg.h \
25555    stdlib.h \
25556    stdint.h \
25557    string.h \
25558    strings.h \
25559    termios.h \
25560    termcap.h \
25561    term.h \
25562    unistd.h \
25563    sys/bitypes.h \
25564    sys/byteorder.h \
25565    sys/ioctl.h \
25566    sys/select.h \
25567    sys/socket.h \
25568    sys/sockio.h \
25569    sys/stat.h \
25570    sys/time.h \
25571    sys/types.h \
25572    arpa/nameser.h \
25573    mtio.h \
25574    sys/mtio.h \
25575    sys/tape.h \
25576    regex.h \
25577
25578 do :
25579   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25580 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25581 eval as_val=\$$as_ac_Header
25582    if test "x$as_val" = x""yes; then :
25583   cat >>confdefs.h <<_ACEOF
25584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25585 _ACEOF
25586
25587 fi
25588
25589 done
25590
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25592 $as_echo_n "checking for ANSI C header files... " >&6; }
25593 if test "${ac_cv_header_stdc+set}" = set; then :
25594   $as_echo_n "(cached) " >&6
25595 else
25596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h.  */
25598 #include <stdlib.h>
25599 #include <stdarg.h>
25600 #include <string.h>
25601 #include <float.h>
25602
25603 int
25604 main ()
25605 {
25606
25607   ;
25608   return 0;
25609 }
25610 _ACEOF
25611 if ac_fn_c_try_compile "$LINENO"; then :
25612   ac_cv_header_stdc=yes
25613 else
25614   ac_cv_header_stdc=no
25615 fi
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617
25618 if test $ac_cv_header_stdc = yes; then
25619   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h.  */
25622 #include <string.h>
25623
25624 _ACEOF
25625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25626   $EGREP "memchr" >/dev/null 2>&1; then :
25627
25628 else
25629   ac_cv_header_stdc=no
25630 fi
25631 rm -f conftest*
25632
25633 fi
25634
25635 if test $ac_cv_header_stdc = yes; then
25636   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638 /* end confdefs.h.  */
25639 #include <stdlib.h>
25640
25641 _ACEOF
25642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25643   $EGREP "free" >/dev/null 2>&1; then :
25644
25645 else
25646   ac_cv_header_stdc=no
25647 fi
25648 rm -f conftest*
25649
25650 fi
25651
25652 if test $ac_cv_header_stdc = yes; then
25653   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25654   if test "$cross_compiling" = yes; then :
25655   :
25656 else
25657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25658 /* end confdefs.h.  */
25659 #include <ctype.h>
25660 #include <stdlib.h>
25661 #if ((' ' & 0x0FF) == 0x020)
25662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25664 #else
25665 # define ISLOWER(c) \
25666                    (('a' <= (c) && (c) <= 'i') \
25667                      || ('j' <= (c) && (c) <= 'r') \
25668                      || ('s' <= (c) && (c) <= 'z'))
25669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25670 #endif
25671
25672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25673 int
25674 main ()
25675 {
25676   int i;
25677   for (i = 0; i < 256; i++)
25678     if (XOR (islower (i), ISLOWER (i))
25679         || toupper (i) != TOUPPER (i))
25680       return 2;
25681   return 0;
25682 }
25683 _ACEOF
25684 if ac_fn_c_try_run "$LINENO"; then :
25685
25686 else
25687   ac_cv_header_stdc=no
25688 fi
25689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25690   conftest.$ac_objext conftest.beam conftest.$ac_ext
25691 fi
25692
25693 fi
25694 fi
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25696 $as_echo "$ac_cv_header_stdc" >&6; }
25697 if test $ac_cv_header_stdc = yes; then
25698
25699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25700
25701 fi
25702
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25704 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25705 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25706   $as_echo_n "(cached) " >&6
25707 else
25708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h.  */
25710 #include <sys/types.h>
25711 int
25712 main ()
25713 {
25714 return makedev(0, 0);
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 if ac_fn_c_try_link "$LINENO"; then :
25720   ac_cv_header_sys_types_h_makedev=yes
25721 else
25722   ac_cv_header_sys_types_h_makedev=no
25723 fi
25724 rm -f core conftest.err conftest.$ac_objext \
25725     conftest$ac_exeext conftest.$ac_ext
25726
25727 fi
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25729 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25730
25731 if test $ac_cv_header_sys_types_h_makedev = no; then
25732 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25733 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25734
25735 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25736
25737 fi
25738
25739
25740
25741   if test $ac_cv_header_sys_mkdev_h = no; then
25742     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25743 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25744
25745 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25746
25747 fi
25748
25749
25750   fi
25751 fi
25752
25753 ac_header_dirent=no
25754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25755   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25757 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25759   $as_echo_n "(cached) " >&6
25760 else
25761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h.  */
25763 #include <sys/types.h>
25764 #include <$ac_hdr>
25765
25766 int
25767 main ()
25768 {
25769 if ((DIR *) 0)
25770 return 0;
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 if ac_fn_c_try_compile "$LINENO"; then :
25776   eval "$as_ac_Header=yes"
25777 else
25778   eval "$as_ac_Header=no"
25779 fi
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25781 fi
25782 eval ac_res=\$$as_ac_Header
25783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25784 $as_echo "$ac_res" >&6; }
25785 eval as_val=\$$as_ac_Header
25786    if test "x$as_val" = x""yes; then :
25787   cat >>confdefs.h <<_ACEOF
25788 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25789 _ACEOF
25790
25791 ac_header_dirent=$ac_hdr; break
25792 fi
25793
25794 done
25795 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25796 if test $ac_header_dirent = dirent.h; then
25797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25798 $as_echo_n "checking for library containing opendir... " >&6; }
25799 if test "${ac_cv_search_opendir+set}" = set; then :
25800   $as_echo_n "(cached) " >&6
25801 else
25802   ac_func_search_save_LIBS=$LIBS
25803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25804 /* end confdefs.h.  */
25805
25806 /* Override any GCC internal prototype to avoid an error.
25807    Use char because int might match the return type of a GCC
25808    builtin and then its argument prototype would still apply.  */
25809 #ifdef __cplusplus
25810 extern "C"
25811 #endif
25812 char opendir ();
25813 int
25814 main ()
25815 {
25816 return opendir ();
25817   ;
25818   return 0;
25819 }
25820 _ACEOF
25821 for ac_lib in '' dir; do
25822   if test -z "$ac_lib"; then
25823     ac_res="none required"
25824   else
25825     ac_res=-l$ac_lib
25826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25827   fi
25828   if ac_fn_c_try_link "$LINENO"; then :
25829   ac_cv_search_opendir=$ac_res
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext \
25832     conftest$ac_exeext
25833   if test "${ac_cv_search_opendir+set}" = set; then :
25834   break
25835 fi
25836 done
25837 if test "${ac_cv_search_opendir+set}" = set; then :
25838
25839 else
25840   ac_cv_search_opendir=no
25841 fi
25842 rm conftest.$ac_ext
25843 LIBS=$ac_func_search_save_LIBS
25844 fi
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25846 $as_echo "$ac_cv_search_opendir" >&6; }
25847 ac_res=$ac_cv_search_opendir
25848 if test "$ac_res" != no; then :
25849   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25850
25851 fi
25852
25853 else
25854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25855 $as_echo_n "checking for library containing opendir... " >&6; }
25856 if test "${ac_cv_search_opendir+set}" = set; then :
25857   $as_echo_n "(cached) " >&6
25858 else
25859   ac_func_search_save_LIBS=$LIBS
25860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25861 /* end confdefs.h.  */
25862
25863 /* Override any GCC internal prototype to avoid an error.
25864    Use char because int might match the return type of a GCC
25865    builtin and then its argument prototype would still apply.  */
25866 #ifdef __cplusplus
25867 extern "C"
25868 #endif
25869 char opendir ();
25870 int
25871 main ()
25872 {
25873 return opendir ();
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 for ac_lib in '' x; do
25879   if test -z "$ac_lib"; then
25880     ac_res="none required"
25881   else
25882     ac_res=-l$ac_lib
25883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25884   fi
25885   if ac_fn_c_try_link "$LINENO"; then :
25886   ac_cv_search_opendir=$ac_res
25887 fi
25888 rm -f core conftest.err conftest.$ac_objext \
25889     conftest$ac_exeext
25890   if test "${ac_cv_search_opendir+set}" = set; then :
25891   break
25892 fi
25893 done
25894 if test "${ac_cv_search_opendir+set}" = set; then :
25895
25896 else
25897   ac_cv_search_opendir=no
25898 fi
25899 rm conftest.$ac_ext
25900 LIBS=$ac_func_search_save_LIBS
25901 fi
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25903 $as_echo "$ac_cv_search_opendir" >&6; }
25904 ac_res=$ac_cv_search_opendir
25905 if test "$ac_res" != no; then :
25906   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25907
25908 fi
25909
25910 fi
25911
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25913 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25914 if test "${ac_cv_header_stat_broken+set}" = set; then :
25915   $as_echo_n "(cached) " >&6
25916 else
25917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h.  */
25919 #include <sys/types.h>
25920 #include <sys/stat.h>
25921
25922 #if defined S_ISBLK && defined S_IFDIR
25923 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25924 #endif
25925
25926 #if defined S_ISBLK && defined S_IFCHR
25927 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25928 #endif
25929
25930 #if defined S_ISLNK && defined S_IFREG
25931 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25932 #endif
25933
25934 #if defined S_ISSOCK && defined S_IFREG
25935 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25936 #endif
25937
25938 _ACEOF
25939 if ac_fn_c_try_compile "$LINENO"; then :
25940   ac_cv_header_stat_broken=no
25941 else
25942   ac_cv_header_stat_broken=yes
25943 fi
25944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25945 fi
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25947 $as_echo "$ac_cv_header_stat_broken" >&6; }
25948 if test $ac_cv_header_stat_broken = yes; then
25949
25950 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25951
25952 fi
25953
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25955 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25956 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25957   $as_echo_n "(cached) " >&6
25958 else
25959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25960 /* end confdefs.h.  */
25961 #include <sys/types.h>
25962 #include <sys/wait.h>
25963 #ifndef WEXITSTATUS
25964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25965 #endif
25966 #ifndef WIFEXITED
25967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25968 #endif
25969
25970 int
25971 main ()
25972 {
25973   int s;
25974   wait (&s);
25975   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 if ac_fn_c_try_compile "$LINENO"; then :
25981   ac_cv_header_sys_wait_h=yes
25982 else
25983   ac_cv_header_sys_wait_h=no
25984 fi
25985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25986 fi
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25988 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25989 if test $ac_cv_header_sys_wait_h = yes; then
25990
25991 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25992
25993 fi
25994
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25996 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25997 if test "${ac_cv_header_time+set}" = set; then :
25998   $as_echo_n "(cached) " >&6
25999 else
26000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26001 /* end confdefs.h.  */
26002 #include <sys/types.h>
26003 #include <sys/time.h>
26004 #include <time.h>
26005
26006 int
26007 main ()
26008 {
26009 if ((struct tm *) 0)
26010 return 0;
26011   ;
26012   return 0;
26013 }
26014 _ACEOF
26015 if ac_fn_c_try_compile "$LINENO"; then :
26016   ac_cv_header_time=yes
26017 else
26018   ac_cv_header_time=no
26019 fi
26020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 fi
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26023 $as_echo "$ac_cv_header_time" >&6; }
26024 if test $ac_cv_header_time = yes; then
26025
26026 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26027
26028 fi
26029
26030 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26031 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
26032
26033 cat >>confdefs.h <<_ACEOF
26034 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26035 _ACEOF
26036
26037
26038 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26039
26040 fi
26041
26042
26043 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26044 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26045
26046 cat >>confdefs.h <<_ACEOF
26047 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26048 _ACEOF
26049
26050
26051 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26052
26053 else
26054   case " $LIBOBJS " in
26055   *" fileblocks.$ac_objext "* ) ;;
26056   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26057  ;;
26058 esac
26059
26060 fi
26061
26062
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26064 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26065 if test "${ac_cv_struct_tm+set}" = set; then :
26066   $as_echo_n "(cached) " >&6
26067 else
26068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26069 /* end confdefs.h.  */
26070 #include <sys/types.h>
26071 #include <time.h>
26072
26073 int
26074 main ()
26075 {
26076 struct tm tm;
26077                                      int *p = &tm.tm_sec;
26078                                      return !p;
26079   ;
26080   return 0;
26081 }
26082 _ACEOF
26083 if ac_fn_c_try_compile "$LINENO"; then :
26084   ac_cv_struct_tm=time.h
26085 else
26086   ac_cv_struct_tm=sys/time.h
26087 fi
26088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26089 fi
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26091 $as_echo "$ac_cv_struct_tm" >&6; }
26092 if test $ac_cv_struct_tm = sys/time.h; then
26093
26094 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26095
26096 fi
26097
26098 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26099 #include <$ac_cv_struct_tm>
26100
26101 "
26102 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26103
26104 cat >>confdefs.h <<_ACEOF
26105 #define HAVE_STRUCT_TM_TM_ZONE 1
26106 _ACEOF
26107
26108
26109 fi
26110
26111 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26112
26113 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26114
26115 else
26116   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26117 "
26118 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26119   ac_have_decl=1
26120 else
26121   ac_have_decl=0
26122 fi
26123
26124 cat >>confdefs.h <<_ACEOF
26125 #define HAVE_DECL_TZNAME $ac_have_decl
26126 _ACEOF
26127
26128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26129 $as_echo_n "checking for tzname... " >&6; }
26130 if test "${ac_cv_var_tzname+set}" = set; then :
26131   $as_echo_n "(cached) " >&6
26132 else
26133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134 /* end confdefs.h.  */
26135 #include <time.h>
26136 #if !HAVE_DECL_TZNAME
26137 extern char *tzname[];
26138 #endif
26139
26140 int
26141 main ()
26142 {
26143 return tzname[0][0];
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 if ac_fn_c_try_link "$LINENO"; then :
26149   ac_cv_var_tzname=yes
26150 else
26151   ac_cv_var_tzname=no
26152 fi
26153 rm -f core conftest.err conftest.$ac_objext \
26154     conftest$ac_exeext conftest.$ac_ext
26155 fi
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26157 $as_echo "$ac_cv_var_tzname" >&6; }
26158   if test $ac_cv_var_tzname = yes; then
26159
26160 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26161
26162   fi
26163 fi
26164
26165
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26167 $as_echo_n "checking for utime.h... " >&6; }
26168 if test "${ba_cv_header_utime_h+set}" = set; then :
26169   $as_echo_n "(cached) " >&6
26170 else
26171
26172        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h.  */
26174
26175               #include <sys/types.h>
26176               #include <utime.h>
26177
26178 int
26179 main ()
26180 {
26181
26182               struct utimbuf foo
26183
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 if ac_fn_c_try_compile "$LINENO"; then :
26189
26190               ba_cv_header_utime_h=yes
26191
26192 else
26193
26194               ba_cv_header_utime_h=no
26195
26196
26197 fi
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199
26200
26201 fi
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26203 $as_echo "$ba_cv_header_utime_h" >&6; }
26204 test $ba_cv_header_utime_h = yes &&
26205 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26206
26207
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26209 $as_echo_n "checking for socklen_t... " >&6; }
26210 if test "${ba_cv_header_socklen_t+set}" = set; then :
26211   $as_echo_n "(cached) " >&6
26212 else
26213
26214        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215 /* end confdefs.h.  */
26216
26217               #include <sys/types.h>
26218               #include <sys/socket.h>
26219
26220 int
26221 main ()
26222 {
26223
26224               socklen_t x
26225
26226   ;
26227   return 0;
26228 }
26229 _ACEOF
26230 if ac_fn_c_try_compile "$LINENO"; then :
26231
26232              ba_cv_header_socklen_t=yes
26233
26234 else
26235
26236              ba_cv_header_socklen_t=no
26237
26238
26239 fi
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241
26242
26243 fi
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26245 $as_echo "$ba_cv_header_socklen_t" >&6; }
26246 test $ba_cv_header_socklen_t = yes &&
26247 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26248
26249
26250 ac_ext=cpp
26251 ac_cpp='$CXXCPP $CPPFLAGS'
26252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26257 $as_echo_n "checking for ioctl_req_t... " >&6; }
26258 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26259   $as_echo_n "(cached) " >&6
26260 else
26261
26262        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26263 /* end confdefs.h.  */
26264
26265               #include <unistd.h>
26266               #include <sys/types.h>
26267               #include <sys/ioctl.h>
26268
26269 int
26270 main ()
26271 {
26272
26273               int (*d_ioctl)(int fd, unsigned long int request, ...);
26274               d_ioctl = ::ioctl;
26275
26276   ;
26277   return 0;
26278 }
26279 _ACEOF
26280 if ac_fn_cxx_try_compile "$LINENO"; then :
26281
26282              ba_cv_header_ioctl_req_t=yes
26283
26284 else
26285
26286              ba_cv_header_ioctl_req_t=no
26287
26288
26289 fi
26290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26291
26292
26293 fi
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26295 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26296 test $ba_cv_header_ioctl_req_t = yes &&
26297 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26298
26299
26300 ac_ext=c
26301 ac_cpp='$CPP $CPPFLAGS'
26302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26305
26306
26307 ac_ext=cpp
26308 ac_cpp='$CXXCPP $CPPFLAGS'
26309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26312
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26314 $as_echo_n "checking for typeof... " >&6; }
26315 if test "${ba_cv_have_typeof+set}" = set; then :
26316   $as_echo_n "(cached) " >&6
26317 else
26318
26319        if test "$cross_compiling" = yes; then :
26320
26321               ba_cv_have_typeof=no
26322
26323
26324 else
26325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26326 /* end confdefs.h.  */
26327
26328               main(){char *a = 0; a = (typeof a)a;}
26329
26330 _ACEOF
26331 if ac_fn_cxx_try_run "$LINENO"; then :
26332
26333               ba_cv_have_typeof=yes
26334
26335 else
26336
26337               ba_cv_have_typeof=no
26338
26339 fi
26340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26341   conftest.$ac_objext conftest.beam conftest.$ac_ext
26342 fi
26343
26344
26345
26346 fi
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26348 $as_echo "$ba_cv_have_typeof" >&6; }
26349 test $ba_cv_have_typeof = yes &&
26350 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26351
26352 ac_ext=c
26353 ac_cpp='$CPP $CPPFLAGS'
26354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26357
26358
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26360 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26361 if test "${ac_cv_c_const+set}" = set; then :
26362   $as_echo_n "(cached) " >&6
26363 else
26364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26365 /* end confdefs.h.  */
26366
26367 int
26368 main ()
26369 {
26370 /* FIXME: Include the comments suggested by Paul. */
26371 #ifndef __cplusplus
26372   /* Ultrix mips cc rejects this.  */
26373   typedef int charset[2];
26374   const charset cs;
26375   /* SunOS 4.1.1 cc rejects this.  */
26376   char const *const *pcpcc;
26377   char **ppc;
26378   /* NEC SVR4.0.2 mips cc rejects this.  */
26379   struct point {int x, y;};
26380   static struct point const zero = {0,0};
26381   /* AIX XL C 1.02.0.0 rejects this.
26382      It does not let you subtract one const X* pointer from another in
26383      an arm of an if-expression whose if-part is not a constant
26384      expression */
26385   const char *g = "string";
26386   pcpcc = &g + (g ? g-g : 0);
26387   /* HPUX 7.0 cc rejects these. */
26388   ++pcpcc;
26389   ppc = (char**) pcpcc;
26390   pcpcc = (char const *const *) ppc;
26391   { /* SCO 3.2v4 cc rejects this.  */
26392     char *t;
26393     char const *s = 0 ? (char *) 0 : (char const *) 0;
26394
26395     *t++ = 0;
26396     if (s) return 0;
26397   }
26398   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26399     int x[] = {25, 17};
26400     const int *foo = &x[0];
26401     ++foo;
26402   }
26403   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26404     typedef const int *iptr;
26405     iptr p = 0;
26406     ++p;
26407   }
26408   { /* AIX XL C 1.02.0.0 rejects this saying
26409        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26410     struct s { int j; const int *ap[3]; };
26411     struct s *b; b->j = 5;
26412   }
26413   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26414     const int foo = 10;
26415     if (!foo) return 0;
26416   }
26417   return !cs[0] && !zero.x;
26418 #endif
26419
26420   ;
26421   return 0;
26422 }
26423 _ACEOF
26424 if ac_fn_c_try_compile "$LINENO"; then :
26425   ac_cv_c_const=yes
26426 else
26427   ac_cv_c_const=no
26428 fi
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 fi
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26432 $as_echo "$ac_cv_c_const" >&6; }
26433 if test $ac_cv_c_const = no; then
26434
26435 $as_echo "#define const /**/" >>confdefs.h
26436
26437 fi
26438
26439
26440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26441 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26442 if test "${ac_cv_c_bigendian+set}" = set; then :
26443   $as_echo_n "(cached) " >&6
26444 else
26445   ac_cv_c_bigendian=unknown
26446     # See if we're dealing with a universal compiler.
26447     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h.  */
26449 #ifndef __APPLE_CC__
26450                not a universal capable compiler
26451              #endif
26452              typedef int dummy;
26453
26454 _ACEOF
26455 if ac_fn_c_try_compile "$LINENO"; then :
26456
26457         # Check for potential -arch flags.  It is not universal unless
26458         # there are at least two -arch flags with different values.
26459         ac_arch=
26460         ac_prev=
26461         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26462          if test -n "$ac_prev"; then
26463            case $ac_word in
26464              i?86 | x86_64 | ppc | ppc64)
26465                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26466                  ac_arch=$ac_word
26467                else
26468                  ac_cv_c_bigendian=universal
26469                  break
26470                fi
26471                ;;
26472            esac
26473            ac_prev=
26474          elif test "x$ac_word" = "x-arch"; then
26475            ac_prev=arch
26476          fi
26477        done
26478 fi
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26480     if test $ac_cv_c_bigendian = unknown; then
26481       # See if sys/param.h defines the BYTE_ORDER macro.
26482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26483 /* end confdefs.h.  */
26484 #include <sys/types.h>
26485              #include <sys/param.h>
26486
26487 int
26488 main ()
26489 {
26490 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26491                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26492                      && LITTLE_ENDIAN)
26493               bogus endian macros
26494              #endif
26495
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 if ac_fn_c_try_compile "$LINENO"; then :
26501   # It does; now see whether it defined to BIG_ENDIAN or not.
26502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h.  */
26504 #include <sys/types.h>
26505                 #include <sys/param.h>
26506
26507 int
26508 main ()
26509 {
26510 #if BYTE_ORDER != BIG_ENDIAN
26511                  not big endian
26512                 #endif
26513
26514   ;
26515   return 0;
26516 }
26517 _ACEOF
26518 if ac_fn_c_try_compile "$LINENO"; then :
26519   ac_cv_c_bigendian=yes
26520 else
26521   ac_cv_c_bigendian=no
26522 fi
26523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524 fi
26525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526     fi
26527     if test $ac_cv_c_bigendian = unknown; then
26528       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h.  */
26531 #include <limits.h>
26532
26533 int
26534 main ()
26535 {
26536 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26537               bogus endian macros
26538              #endif
26539
26540   ;
26541   return 0;
26542 }
26543 _ACEOF
26544 if ac_fn_c_try_compile "$LINENO"; then :
26545   # It does; now see whether it defined to _BIG_ENDIAN or not.
26546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26547 /* end confdefs.h.  */
26548 #include <limits.h>
26549
26550 int
26551 main ()
26552 {
26553 #ifndef _BIG_ENDIAN
26554                  not big endian
26555                 #endif
26556
26557   ;
26558   return 0;
26559 }
26560 _ACEOF
26561 if ac_fn_c_try_compile "$LINENO"; then :
26562   ac_cv_c_bigendian=yes
26563 else
26564   ac_cv_c_bigendian=no
26565 fi
26566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26567 fi
26568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26569     fi
26570     if test $ac_cv_c_bigendian = unknown; then
26571       # Compile a test program.
26572       if test "$cross_compiling" = yes; then :
26573   # Try to guess by grepping values from an object file.
26574          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h.  */
26576 short int ascii_mm[] =
26577                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26578                 short int ascii_ii[] =
26579                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26580                 int use_ascii (int i) {
26581                   return ascii_mm[i] + ascii_ii[i];
26582                 }
26583                 short int ebcdic_ii[] =
26584                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26585                 short int ebcdic_mm[] =
26586                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26587                 int use_ebcdic (int i) {
26588                   return ebcdic_mm[i] + ebcdic_ii[i];
26589                 }
26590                 extern int foo;
26591
26592 int
26593 main ()
26594 {
26595 return use_ascii (foo) == use_ebcdic (foo);
26596   ;
26597   return 0;
26598 }
26599 _ACEOF
26600 if ac_fn_c_try_compile "$LINENO"; then :
26601   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26602               ac_cv_c_bigendian=yes
26603             fi
26604             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26605               if test "$ac_cv_c_bigendian" = unknown; then
26606                 ac_cv_c_bigendian=no
26607               else
26608                 # finding both strings is unlikely to happen, but who knows?
26609                 ac_cv_c_bigendian=unknown
26610               fi
26611             fi
26612 fi
26613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26614 else
26615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26616 /* end confdefs.h.  */
26617 $ac_includes_default
26618 int
26619 main ()
26620 {
26621
26622              /* Are we little or big endian?  From Harbison&Steele.  */
26623              union
26624              {
26625                long int l;
26626                char c[sizeof (long int)];
26627              } u;
26628              u.l = 1;
26629              return u.c[sizeof (long int) - 1] == 1;
26630
26631   ;
26632   return 0;
26633 }
26634 _ACEOF
26635 if ac_fn_c_try_run "$LINENO"; then :
26636   ac_cv_c_bigendian=no
26637 else
26638   ac_cv_c_bigendian=yes
26639 fi
26640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26641   conftest.$ac_objext conftest.beam conftest.$ac_ext
26642 fi
26643
26644     fi
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26647 $as_echo "$ac_cv_c_bigendian" >&6; }
26648  case $ac_cv_c_bigendian in #(
26649    yes)
26650
26651 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26652 ;; #(
26653    no)
26654
26655 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26656  ;; #(
26657    universal)
26658
26659 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26660
26661      ;; #(
26662    *)
26663      as_fn_error "unknown endianness
26664  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26665  esac
26666
26667
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26669 $as_echo_n "checking how to get filesystem type... " >&6; }
26670 fstype=no
26671 # The order of these tests is important.
26672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26673 /* end confdefs.h.  */
26674
26675        #include <sys/statvfs.h>
26676        #include <sys/fstyp.h>
26677
26678 _ACEOF
26679 if ac_fn_c_try_cpp "$LINENO"; then :
26680   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26681  fstype=SVR4
26682
26683 fi
26684 rm -f conftest.err conftest.$ac_ext
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/fstyp.h>
26691
26692 _ACEOF
26693 if ac_fn_c_try_cpp "$LINENO"; then :
26694   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26695  fstype=SVR3
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 <sys/statfs.h>
26705           #include <sys/vmount.h>
26706
26707 _ACEOF
26708 if ac_fn_c_try_cpp "$LINENO"; then :
26709   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26710  fstype=AIX
26711
26712 fi
26713 rm -f conftest.err conftest.$ac_ext
26714 fi
26715 if test $fstype = no; then
26716    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h.  */
26718
26719           #include <mntent.h>
26720
26721 _ACEOF
26722 if ac_fn_c_try_cpp "$LINENO"; then :
26723   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26724  fstype=4.3BSD
26725
26726 fi
26727 rm -f conftest.err conftest.$ac_ext
26728 fi
26729 if test $fstype = no; then
26730    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h.  */
26732 #include <sys/mount.h>
26733
26734 _ACEOF
26735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26736   $EGREP "f_type;" >/dev/null 2>&1; then :
26737   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26738  fstype=4.4BSD/OSF1
26739 fi
26740 rm -f conftest*
26741
26742 fi
26743 if test $fstype = no; then
26744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745 /* end confdefs.h.  */
26746
26747           #include <sys/mount.h>
26748           #include <sys/fs_types.h>
26749
26750 _ACEOF
26751 if ac_fn_c_try_cpp "$LINENO"; then :
26752   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26753  fstype=Ultrix
26754
26755 fi
26756 rm -f conftest.err conftest.$ac_ext
26757 fi
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26759 $as_echo "$fstype" >&6; }
26760
26761 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26762 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26763
26764 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26765
26766 fi
26767
26768
26769
26770 ac_ext=cpp
26771 ac_cpp='$CXXCPP $CPPFLAGS'
26772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26775
26776 for ac_func in backtrace
26777 do :
26778   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26779 if test "x$ac_cv_func_backtrace" = x""yes; then :
26780   cat >>confdefs.h <<_ACEOF
26781 #define HAVE_BACKTRACE 1
26782 _ACEOF
26783
26784 fi
26785 done
26786
26787 ac_ext=c
26788 ac_cpp='$CPP $CPPFLAGS'
26789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26792
26793
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26795 $as_echo_n "checking return type of signal handlers... " >&6; }
26796 if test "${ac_cv_type_signal+set}" = set; then :
26797   $as_echo_n "(cached) " >&6
26798 else
26799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26800 /* end confdefs.h.  */
26801 #include <sys/types.h>
26802 #include <signal.h>
26803
26804 int
26805 main ()
26806 {
26807 return *(signal (0, 0)) (0) == 1;
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 if ac_fn_c_try_compile "$LINENO"; then :
26813   ac_cv_type_signal=int
26814 else
26815   ac_cv_type_signal=void
26816 fi
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26818 fi
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26820 $as_echo "$ac_cv_type_signal" >&6; }
26821
26822 cat >>confdefs.h <<_ACEOF
26823 #define RETSIGTYPE $ac_cv_type_signal
26824 _ACEOF
26825
26826
26827
26828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26829 $as_echo_n "checking for type of signal functions... " >&6; }
26830   if test "${bash_cv_signal_vintage+set}" = set; then :
26831   $as_echo_n "(cached) " >&6
26832 else
26833
26834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h.  */
26836 #include <signal.h>
26837 int
26838 main ()
26839 {
26840
26841       sigset_t ss;
26842       struct sigaction sa;
26843       sigemptyset(&ss); sigsuspend(&ss);
26844       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26845       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26846
26847   ;
26848   return 0;
26849 }
26850 _ACEOF
26851 if ac_fn_c_try_link "$LINENO"; then :
26852   bash_cv_signal_vintage="posix"
26853 else
26854
26855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26856 /* end confdefs.h.  */
26857 #include <signal.h>
26858 int
26859 main ()
26860 {
26861
26862           int mask = sigmask(SIGINT);
26863           sigsetmask(mask); sigblock(mask); sigpause(mask);
26864
26865   ;
26866   return 0;
26867 }
26868 _ACEOF
26869 if ac_fn_c_try_link "$LINENO"; then :
26870   bash_cv_signal_vintage="4.2bsd"
26871 else
26872
26873         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26874 /* end confdefs.h.  */
26875
26876           #include <signal.h>
26877           RETSIGTYPE foo() { }
26878 int
26879 main ()
26880 {
26881
26882                   int mask = sigmask(SIGINT);
26883                   sigset(SIGINT, foo); sigrelse(SIGINT);
26884                   sighold(SIGINT); sigpause(SIGINT);
26885
26886   ;
26887   return 0;
26888 }
26889 _ACEOF
26890 if ac_fn_c_try_link "$LINENO"; then :
26891   bash_cv_signal_vintage="svr3"
26892 else
26893   bash_cv_signal_vintage="v7"
26894
26895 fi
26896 rm -f core conftest.err conftest.$ac_objext \
26897     conftest$ac_exeext conftest.$ac_ext
26898
26899 fi
26900 rm -f core conftest.err conftest.$ac_objext \
26901     conftest$ac_exeext conftest.$ac_ext
26902
26903 fi
26904 rm -f core conftest.err conftest.$ac_objext \
26905     conftest$ac_exeext conftest.$ac_ext
26906
26907 fi
26908
26909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26910 $as_echo "$bash_cv_signal_vintage" >&6; }
26911   if test "$bash_cv_signal_vintage" = "posix"; then
26912     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26913
26914   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26915     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26916
26917   elif test "$bash_cv_signal_vintage" = "svr3"; then
26918     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26919
26920   fi
26921
26922 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26923 if test "x$ac_cv_type_mode_t" = x""yes; then :
26924
26925 else
26926
26927 cat >>confdefs.h <<_ACEOF
26928 #define mode_t int
26929 _ACEOF
26930
26931 fi
26932
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26934 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26935 if test "${ac_cv_type_uid_t+set}" = set; then :
26936   $as_echo_n "(cached) " >&6
26937 else
26938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26939 /* end confdefs.h.  */
26940 #include <sys/types.h>
26941
26942 _ACEOF
26943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26944   $EGREP "uid_t" >/dev/null 2>&1; then :
26945   ac_cv_type_uid_t=yes
26946 else
26947   ac_cv_type_uid_t=no
26948 fi
26949 rm -f conftest*
26950
26951 fi
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26953 $as_echo "$ac_cv_type_uid_t" >&6; }
26954 if test $ac_cv_type_uid_t = no; then
26955
26956 $as_echo "#define uid_t int" >>confdefs.h
26957
26958
26959 $as_echo "#define gid_t int" >>confdefs.h
26960
26961 fi
26962
26963 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26964 if test "x$ac_cv_type_size_t" = x""yes; then :
26965
26966 else
26967
26968 cat >>confdefs.h <<_ACEOF
26969 #define size_t unsigned int
26970 _ACEOF
26971
26972 fi
26973
26974 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26975 if test "x$ac_cv_type_pid_t" = x""yes; then :
26976
26977 else
26978
26979 cat >>confdefs.h <<_ACEOF
26980 #define pid_t int
26981 _ACEOF
26982
26983 fi
26984
26985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26986 if test "x$ac_cv_type_off_t" = x""yes; then :
26987
26988 else
26989
26990 cat >>confdefs.h <<_ACEOF
26991 #define off_t long int
26992 _ACEOF
26993
26994 fi
26995
26996
26997   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26998 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26999
27000 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27001
27002 else
27003   for ac_type in 'int' 'long int' 'long long int'; do
27004        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27005 /* end confdefs.h.  */
27006 $ac_includes_default
27007 int
27008 main ()
27009 {
27010 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27011 test_array [0] = 0
27012
27013   ;
27014   return 0;
27015 }
27016 _ACEOF
27017 if ac_fn_c_try_compile "$LINENO"; then :
27018
27019 cat >>confdefs.h <<_ACEOF
27020 #define intptr_t $ac_type
27021 _ACEOF
27022
27023           ac_type=
27024 fi
27025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27026        test -z "$ac_type" && break
27027      done
27028 fi
27029
27030
27031
27032   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27033 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
27034
27035 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27036
27037 else
27038   for ac_type in 'unsigned int' 'unsigned long int' \
27039         'unsigned long long int'; do
27040        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h.  */
27042 $ac_includes_default
27043 int
27044 main ()
27045 {
27046 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27047 test_array [0] = 0
27048
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 if ac_fn_c_try_compile "$LINENO"; then :
27054
27055 cat >>confdefs.h <<_ACEOF
27056 #define uintptr_t $ac_type
27057 _ACEOF
27058
27059           ac_type=
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062        test -z "$ac_type" && break
27063      done
27064 fi
27065
27066
27067 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27068 if test "x$ac_cv_type_ino_t" = x""yes; then :
27069
27070 else
27071
27072 cat >>confdefs.h <<_ACEOF
27073 #define ino_t unsigned long
27074 _ACEOF
27075
27076 fi
27077
27078 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27079 if test "x$ac_cv_type_dev_t" = x""yes; then :
27080
27081 else
27082
27083 cat >>confdefs.h <<_ACEOF
27084 #define dev_t unsigned long
27085 _ACEOF
27086
27087 fi
27088
27089 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27090 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27091
27092 else
27093
27094 cat >>confdefs.h <<_ACEOF
27095 #define daddr_t long
27096 _ACEOF
27097
27098 fi
27099
27100 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27101 if test "x$ac_cv_type_major_t" = x""yes; then :
27102
27103 else
27104
27105 cat >>confdefs.h <<_ACEOF
27106 #define major_t int
27107 _ACEOF
27108
27109 fi
27110
27111 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27112 if test "x$ac_cv_type_minor_t" = x""yes; then :
27113
27114 else
27115
27116 cat >>confdefs.h <<_ACEOF
27117 #define minor_t int
27118 _ACEOF
27119
27120 fi
27121
27122 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27123 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27124
27125 else
27126
27127 cat >>confdefs.h <<_ACEOF
27128 #define ssize_t int
27129 _ACEOF
27130
27131 fi
27132
27133 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27134 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27135
27136 cat >>confdefs.h <<_ACEOF
27137 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27138 _ACEOF
27139
27140
27141 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27142
27143 else
27144   case " $LIBOBJS " in
27145   *" fileblocks.$ac_objext "* ) ;;
27146   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27147  ;;
27148 esac
27149
27150 fi
27151
27152
27153 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27154 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27155
27156 cat >>confdefs.h <<_ACEOF
27157 #define HAVE_STRUCT_STAT_ST_RDEV 1
27158 _ACEOF
27159
27160
27161 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27162
27163 fi
27164
27165
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27167 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27168 if test "${ac_cv_struct_tm+set}" = set; then :
27169   $as_echo_n "(cached) " >&6
27170 else
27171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h.  */
27173 #include <sys/types.h>
27174 #include <time.h>
27175
27176 int
27177 main ()
27178 {
27179 struct tm tm;
27180                                      int *p = &tm.tm_sec;
27181                                      return !p;
27182   ;
27183   return 0;
27184 }
27185 _ACEOF
27186 if ac_fn_c_try_compile "$LINENO"; then :
27187   ac_cv_struct_tm=time.h
27188 else
27189   ac_cv_struct_tm=sys/time.h
27190 fi
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 fi
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27194 $as_echo "$ac_cv_struct_tm" >&6; }
27195 if test $ac_cv_struct_tm = sys/time.h; then
27196
27197 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27198
27199 fi
27200
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27202 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27203 if test "${ac_cv_c_const+set}" = set; then :
27204   $as_echo_n "(cached) " >&6
27205 else
27206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h.  */
27208
27209 int
27210 main ()
27211 {
27212 /* FIXME: Include the comments suggested by Paul. */
27213 #ifndef __cplusplus
27214   /* Ultrix mips cc rejects this.  */
27215   typedef int charset[2];
27216   const charset cs;
27217   /* SunOS 4.1.1 cc rejects this.  */
27218   char const *const *pcpcc;
27219   char **ppc;
27220   /* NEC SVR4.0.2 mips cc rejects this.  */
27221   struct point {int x, y;};
27222   static struct point const zero = {0,0};
27223   /* AIX XL C 1.02.0.0 rejects this.
27224      It does not let you subtract one const X* pointer from another in
27225      an arm of an if-expression whose if-part is not a constant
27226      expression */
27227   const char *g = "string";
27228   pcpcc = &g + (g ? g-g : 0);
27229   /* HPUX 7.0 cc rejects these. */
27230   ++pcpcc;
27231   ppc = (char**) pcpcc;
27232   pcpcc = (char const *const *) ppc;
27233   { /* SCO 3.2v4 cc rejects this.  */
27234     char *t;
27235     char const *s = 0 ? (char *) 0 : (char const *) 0;
27236
27237     *t++ = 0;
27238     if (s) return 0;
27239   }
27240   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27241     int x[] = {25, 17};
27242     const int *foo = &x[0];
27243     ++foo;
27244   }
27245   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27246     typedef const int *iptr;
27247     iptr p = 0;
27248     ++p;
27249   }
27250   { /* AIX XL C 1.02.0.0 rejects this saying
27251        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27252     struct s { int j; const int *ap[3]; };
27253     struct s *b; b->j = 5;
27254   }
27255   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27256     const int foo = 10;
27257     if (!foo) return 0;
27258   }
27259   return !cs[0] && !zero.x;
27260 #endif
27261
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 if ac_fn_c_try_compile "$LINENO"; then :
27267   ac_cv_c_const=yes
27268 else
27269   ac_cv_c_const=no
27270 fi
27271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272 fi
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27274 $as_echo "$ac_cv_c_const" >&6; }
27275 if test $ac_cv_c_const = no; then
27276
27277 $as_echo "#define const /**/" >>confdefs.h
27278
27279 fi
27280
27281
27282 # The cast to long int works around a bug in the HP C Compiler
27283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27285 # This bug is HP SR number 8606223364.
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27287 $as_echo_n "checking size of char... " >&6; }
27288 if test "${ac_cv_sizeof_char+set}" = set; then :
27289   $as_echo_n "(cached) " >&6
27290 else
27291   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27292
27293 else
27294   if test "$ac_cv_type_char" = yes; then
27295      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27297 { as_fn_set_status 77
27298 as_fn_error "cannot compute sizeof (char)
27299 See \`config.log' for more details." "$LINENO" 5; }; }
27300    else
27301      ac_cv_sizeof_char=0
27302    fi
27303 fi
27304
27305 fi
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27307 $as_echo "$ac_cv_sizeof_char" >&6; }
27308
27309
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define SIZEOF_CHAR $ac_cv_sizeof_char
27313 _ACEOF
27314
27315
27316 # The cast to long int works around a bug in the HP C Compiler
27317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27319 # This bug is HP SR number 8606223364.
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27321 $as_echo_n "checking size of short int... " >&6; }
27322 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27323   $as_echo_n "(cached) " >&6
27324 else
27325   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27326
27327 else
27328   if test "$ac_cv_type_short_int" = yes; then
27329      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27331 { as_fn_set_status 77
27332 as_fn_error "cannot compute sizeof (short int)
27333 See \`config.log' for more details." "$LINENO" 5; }; }
27334    else
27335      ac_cv_sizeof_short_int=0
27336    fi
27337 fi
27338
27339 fi
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27341 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27342
27343
27344
27345 cat >>confdefs.h <<_ACEOF
27346 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27347 _ACEOF
27348
27349
27350 # The cast to long int works around a bug in the HP C Compiler
27351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27353 # This bug is HP SR number 8606223364.
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27355 $as_echo_n "checking size of int... " >&6; }
27356 if test "${ac_cv_sizeof_int+set}" = set; then :
27357   $as_echo_n "(cached) " >&6
27358 else
27359   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27360
27361 else
27362   if test "$ac_cv_type_int" = yes; then
27363      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27365 { as_fn_set_status 77
27366 as_fn_error "cannot compute sizeof (int)
27367 See \`config.log' for more details." "$LINENO" 5; }; }
27368    else
27369      ac_cv_sizeof_int=0
27370    fi
27371 fi
27372
27373 fi
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27375 $as_echo "$ac_cv_sizeof_int" >&6; }
27376
27377
27378
27379 cat >>confdefs.h <<_ACEOF
27380 #define SIZEOF_INT $ac_cv_sizeof_int
27381 _ACEOF
27382
27383
27384 # The cast to long int works around a bug in the HP C Compiler
27385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27387 # This bug is HP SR number 8606223364.
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27389 $as_echo_n "checking size of long int... " >&6; }
27390 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27391   $as_echo_n "(cached) " >&6
27392 else
27393   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27394
27395 else
27396   if test "$ac_cv_type_long_int" = yes; then
27397      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27399 { as_fn_set_status 77
27400 as_fn_error "cannot compute sizeof (long int)
27401 See \`config.log' for more details." "$LINENO" 5; }; }
27402    else
27403      ac_cv_sizeof_long_int=0
27404    fi
27405 fi
27406
27407 fi
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27409 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27410
27411
27412
27413 cat >>confdefs.h <<_ACEOF
27414 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27415 _ACEOF
27416
27417
27418 # The cast to long int works around a bug in the HP C Compiler
27419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27421 # This bug is HP SR number 8606223364.
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27423 $as_echo_n "checking size of long long int... " >&6; }
27424 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27425   $as_echo_n "(cached) " >&6
27426 else
27427   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27428
27429 else
27430   if test "$ac_cv_type_long_long_int" = yes; then
27431      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27433 { as_fn_set_status 77
27434 as_fn_error "cannot compute sizeof (long long int)
27435 See \`config.log' for more details." "$LINENO" 5; }; }
27436    else
27437      ac_cv_sizeof_long_long_int=0
27438    fi
27439 fi
27440
27441 fi
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27443 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27444
27445
27446
27447 cat >>confdefs.h <<_ACEOF
27448 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27449 _ACEOF
27450
27451
27452 # The cast to long int works around a bug in the HP C Compiler
27453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27455 # This bug is HP SR number 8606223364.
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27457 $as_echo_n "checking size of int *... " >&6; }
27458 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27459   $as_echo_n "(cached) " >&6
27460 else
27461   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27462
27463 else
27464   if test "$ac_cv_type_int_p" = yes; then
27465      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27467 { as_fn_set_status 77
27468 as_fn_error "cannot compute sizeof (int *)
27469 See \`config.log' for more details." "$LINENO" 5; }; }
27470    else
27471      ac_cv_sizeof_int_p=0
27472    fi
27473 fi
27474
27475 fi
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27477 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27478
27479
27480
27481 cat >>confdefs.h <<_ACEOF
27482 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27483 _ACEOF
27484
27485
27486
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27488 $as_echo_n "checking for u_int type... " >&6; }
27489 if test "${ac_cv_have_u_int+set}" = set; then :
27490   $as_echo_n "(cached) " >&6
27491 else
27492
27493        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27494 /* end confdefs.h.  */
27495
27496               #include <sys/types.h>
27497
27498 int
27499 main ()
27500 {
27501
27502               u_int a; a = 1;
27503
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 if ac_fn_c_try_compile "$LINENO"; then :
27509
27510               ac_cv_have_u_int="yes"
27511
27512 else
27513
27514               ac_cv_have_u_int="no"
27515
27516
27517 fi
27518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27519
27520
27521 fi
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27523 $as_echo "$ac_cv_have_u_int" >&6; }
27524 if test "x$ac_cv_have_u_int" = "xyes" ; then
27525    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27526
27527    have_u_int=1
27528 fi
27529
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27531 $as_echo_n "checking for intmax_t type... " >&6; }
27532 if test "${ac_cv_have_intmax_t+set}" = set; then :
27533   $as_echo_n "(cached) " >&6
27534 else
27535
27536        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27537 /* end confdefs.h.  */
27538
27539               #include <sys/types.h>
27540
27541 int
27542 main ()
27543 {
27544
27545               intmax_t a; a = 1;
27546
27547   ;
27548   return 0;
27549 }
27550 _ACEOF
27551 if ac_fn_c_try_compile "$LINENO"; then :
27552
27553               ac_cv_have_intmax_t="yes"
27554
27555 else
27556
27557               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27558 /* end confdefs.h.  */
27559
27560                      #include <stdint.h>
27561
27562 int
27563 main ()
27564 {
27565
27566                      intmax_t a; a = 1;
27567
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 if ac_fn_c_try_compile "$LINENO"; then :
27573
27574                      ac_cv_have_intmax_t="yes"
27575
27576 else
27577
27578                      ac_cv_have_intmax_t="no"
27579
27580
27581 fi
27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583
27584
27585 fi
27586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27587
27588
27589 fi
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27591 $as_echo "$ac_cv_have_intmax_t" >&6; }
27592 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27593    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27594
27595    have_intmax_t=1
27596 fi
27597
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27599 $as_echo_n "checking for u_intmax_t type... " >&6; }
27600 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27601   $as_echo_n "(cached) " >&6
27602 else
27603
27604        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27605 /* end confdefs.h.  */
27606
27607               #include <sys/types.h>
27608
27609 int
27610 main ()
27611 {
27612
27613               u_intmax_t a; a = 1;
27614
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 if ac_fn_c_try_compile "$LINENO"; then :
27620
27621               ac_cv_have_u_intmax_t="yes"
27622
27623 else
27624
27625               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27626 /* end confdefs.h.  */
27627
27628                      #include <stdint.h>
27629
27630 int
27631 main ()
27632 {
27633
27634                     u_intmax_t a; a = 1;
27635
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 if ac_fn_c_try_compile "$LINENO"; then :
27641
27642                     ac_cv_have_u_intmax_t="yes"
27643
27644 else
27645
27646                     ac_cv_have_u_intmax_t="no"
27647
27648
27649 fi
27650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27651
27652
27653 fi
27654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655
27656
27657 fi
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27659 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27660 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27661    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27662
27663    have_u_intmax_t=1
27664 fi
27665
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27667 $as_echo_n "checking for intXX_t types... " >&6; }
27668 if test "${ac_cv_have_intxx_t+set}" = set; then :
27669   $as_echo_n "(cached) " >&6
27670 else
27671
27672        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27673 /* end confdefs.h.  */
27674
27675               #include <sys/types.h>
27676
27677 int
27678 main ()
27679 {
27680
27681               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27682
27683   ;
27684   return 0;
27685 }
27686 _ACEOF
27687 if ac_fn_c_try_compile "$LINENO"; then :
27688
27689               ac_cv_have_intxx_t="yes"
27690
27691 else
27692
27693               ac_cv_have_intxx_t="no"
27694
27695
27696 fi
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27698
27699
27700 fi
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27702 $as_echo "$ac_cv_have_intxx_t" >&6; }
27703 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27704    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27705
27706    have_intxx_t=1
27707 fi
27708
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27710 $as_echo_n "checking for int64_t type... " >&6; }
27711 if test "${ac_cv_have_int64_t+set}" = set; then :
27712   $as_echo_n "(cached) " >&6
27713 else
27714
27715        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27716 /* end confdefs.h.  */
27717
27718               #include <sys/types.h>
27719
27720 int
27721 main ()
27722 {
27723
27724               int64_t a; a = 1;
27725
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 if ac_fn_c_try_compile "$LINENO"; then :
27731
27732               ac_cv_have_int64_t="yes"
27733
27734 else
27735
27736               ac_cv_have_int64_t="no"
27737
27738
27739 fi
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741
27742
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27745 $as_echo "$ac_cv_have_int64_t" >&6; }
27746 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27747    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27748
27749    have_int64_t=1
27750 fi
27751
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27753 $as_echo_n "checking for u_intXX_t types... " >&6; }
27754 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27755   $as_echo_n "(cached) " >&6
27756 else
27757
27758        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27759 /* end confdefs.h.  */
27760
27761               #include <sys/types.h>
27762
27763 int
27764 main ()
27765 {
27766
27767               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27768
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 if ac_fn_c_try_compile "$LINENO"; then :
27774
27775              ac_cv_have_u_intxx_t="yes"
27776
27777 else
27778
27779              ac_cv_have_u_intxx_t="no"
27780
27781
27782 fi
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27784
27785
27786 fi
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27788 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27789 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27790    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27791
27792    have_u_intxx_t=1
27793 fi
27794
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27796 $as_echo_n "checking for u_int64_t types... " >&6; }
27797 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27798   $as_echo_n "(cached) " >&6
27799 else
27800
27801        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27802 /* end confdefs.h.  */
27803
27804               #include <sys/types.h>
27805
27806 int
27807 main ()
27808 {
27809
27810               u_int64_t a; a = 1;
27811
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 if ac_fn_c_try_compile "$LINENO"; then :
27817
27818              ac_cv_have_u_int64_t="yes"
27819
27820 else
27821
27822              ac_cv_have_u_int64_t="no"
27823
27824
27825 fi
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827
27828
27829 fi
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27831 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27832 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27833    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27834
27835    have_u_int64_t=1
27836 fi
27837
27838 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27839     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27840 then
27841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27842 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27843    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844 /* end confdefs.h.  */
27845
27846           #include <sys/bitypes.h>
27847
27848 int
27849 main ()
27850 {
27851
27852           int8_t a; int16_t b; int32_t c;
27853           u_int8_t e; u_int16_t f; u_int32_t g;
27854           a = b = c = e = f = g = 1;
27855
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 if ac_fn_c_try_compile "$LINENO"; then :
27861
27862           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27863
27864           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27865
27866           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27867
27868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27869 $as_echo "yes" >&6; }
27870
27871 else
27872
27873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27874 $as_echo "no" >&6; }
27875
27876
27877 fi
27878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 fi
27880
27881 if test -z "$have_u_intxx_t" ; then
27882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27883 $as_echo_n "checking for uintXX_t types... " >&6; }
27884 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27885   $as_echo_n "(cached) " >&6
27886 else
27887
27888           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27889 /* end confdefs.h.  */
27890
27891                  #include <sys/types.h>
27892
27893 int
27894 main ()
27895 {
27896
27897                  uint8_t a; uint16_t b;
27898                  uint32_t c; a = b = c = 1;
27899
27900   ;
27901   return 0;
27902 }
27903 _ACEOF
27904 if ac_fn_c_try_compile "$LINENO"; then :
27905
27906                 ac_cv_have_uintxx_t="yes"
27907
27908 else
27909
27910                 ac_cv_have_uintxx_t="no"
27911
27912
27913 fi
27914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915
27916
27917 fi
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27919 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27920    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27921       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27922
27923    fi
27924 fi
27925
27926 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27927     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27928 then
27929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27930 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27932 /* end confdefs.h.  */
27933
27934           #include <sys/bitypes.h>
27935
27936 int
27937 main ()
27938 {
27939
27940           int64_t a; u_int64_t b;
27941           a = b = 1;
27942
27943   ;
27944   return 0;
27945 }
27946 _ACEOF
27947 if ac_fn_c_try_compile "$LINENO"; then :
27948
27949           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27950
27951           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27952
27953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27954 $as_echo "yes" >&6; }
27955
27956 else
27957
27958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27959 $as_echo "no" >&6; }
27960
27961
27962 fi
27963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27964 fi
27965
27966 if (test -z "$have_uintxx_t" && \
27967     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27968 then
27969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27970 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h.  */
27973
27974           #include <sys/bitypes.h>
27975
27976 int
27977 main ()
27978 {
27979
27980           uint8_t a; uint16_t b;
27981           uint32_t c; a = b = c = 1;
27982
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 if ac_fn_c_try_compile "$LINENO"; then :
27988
27989           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27990
27991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27992 $as_echo "yes" >&6; }
27993
27994 else
27995
27996           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27997 $as_echo "no" >&6; }
27998
27999
28000 fi
28001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28002 fi
28003
28004 for ac_func in \
28005    fork \
28006    getcwd \
28007    gethostname \
28008    getpid \
28009    gettimeofday \
28010    setpgid \
28011    setpgrp \
28012    setsid \
28013    signal \
28014    strerror \
28015    strncmp \
28016    strncpy \
28017    vfprintf \
28018
28019 do :
28020   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28022 eval as_val=\$$as_ac_var
28023    if test "x$as_val" = x""yes; then :
28024   cat >>confdefs.h <<_ACEOF
28025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28026 _ACEOF
28027
28028 else
28029   echo 'configure: cannot find needed function.'; exit 1
28030
28031 fi
28032 done
28033
28034
28035 for ac_func in getpagesize
28036 do :
28037   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28038 if test "x$ac_cv_func_getpagesize" = x""yes; then :
28039   cat >>confdefs.h <<_ACEOF
28040 #define HAVE_GETPAGESIZE 1
28041 _ACEOF
28042
28043 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28044
28045 fi
28046 done
28047
28048 for ac_func in malloc_trim
28049 do :
28050   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28051 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28052   cat >>confdefs.h <<_ACEOF
28053 #define HAVE_MALLOC_TRIM 1
28054 _ACEOF
28055
28056 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28057
28058 fi
28059 done
28060
28061
28062 for ac_func in fchdir
28063 do :
28064   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28065 if test "x$ac_cv_func_fchdir" = x""yes; then :
28066   cat >>confdefs.h <<_ACEOF
28067 #define HAVE_FCHDIR 1
28068 _ACEOF
28069  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28070
28071 fi
28072 done
28073
28074 for ac_func in strtoll
28075 do :
28076   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28077 if test "x$ac_cv_func_strtoll" = x""yes; then :
28078   cat >>confdefs.h <<_ACEOF
28079 #define HAVE_STRTOLL 1
28080 _ACEOF
28081  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28082
28083 fi
28084 done
28085
28086 for ac_func in posix_fadvise
28087 do :
28088   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28089 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28090   cat >>confdefs.h <<_ACEOF
28091 #define HAVE_POSIX_FADVISE 1
28092 _ACEOF
28093
28094 fi
28095 done
28096
28097 for ac_func in fdatasync
28098 do :
28099   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28100 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28101   cat >>confdefs.h <<_ACEOF
28102 #define HAVE_FDATASYNC 1
28103 _ACEOF
28104
28105 fi
28106 done
28107
28108
28109 for ac_func in chflags
28110 do :
28111   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28112 if test "x$ac_cv_func_chflags" = x""yes; then :
28113   cat >>confdefs.h <<_ACEOF
28114 #define HAVE_CHFLAGS 1
28115 _ACEOF
28116
28117 fi
28118 done
28119
28120
28121 for ac_func in snprintf vsnprintf gethostid fseeko
28122 do :
28123   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28125 eval as_val=\$$as_ac_var
28126    if test "x$as_val" = x""yes; then :
28127   cat >>confdefs.h <<_ACEOF
28128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28129 _ACEOF
28130
28131 fi
28132 done
28133
28134
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28136 $as_echo_n "checking for va_copy... " >&6; }
28137 if test "${ba_cv_va_copy+set}" = set; then :
28138   $as_echo_n "(cached) " >&6
28139 else
28140
28141        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28142 /* end confdefs.h.  */
28143
28144               #include <stdarg.h>
28145               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28146               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28147
28148 int
28149 main ()
28150 {
28151
28152               call_use_va_copy(1,2,3)
28153
28154   ;
28155   return 0;
28156 }
28157 _ACEOF
28158 if ac_fn_c_try_link "$LINENO"; then :
28159
28160               ba_cv_va_copy=yes,
28161
28162 else
28163
28164               ba_cv_va_copy=no
28165
28166
28167 fi
28168 rm -f core conftest.err conftest.$ac_objext \
28169     conftest$ac_exeext conftest.$ac_ext
28170
28171
28172 fi
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28174 $as_echo "$ba_cv_va_copy" >&6; }
28175 test $ba_cv_va_copy = yes &&
28176 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28177
28178
28179 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28180 do :
28181   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28183 eval as_val=\$$as_ac_var
28184    if test "x$as_val" = x""yes; then :
28185   cat >>confdefs.h <<_ACEOF
28186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28187 _ACEOF
28188
28189 fi
28190 done
28191
28192
28193 # If resolver functions are not in libc check for -lnsl or -lresolv.
28194 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28195 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28197 $as_echo "using libc's resolver" >&6; }
28198 else
28199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28200 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28201 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28202   $as_echo_n "(cached) " >&6
28203 else
28204   ac_check_lib_save_LIBS=$LIBS
28205 LIBS="-lnsl  $LIBS"
28206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28207 /* end confdefs.h.  */
28208
28209 /* Override any GCC internal prototype to avoid an error.
28210    Use char because int might match the return type of a GCC
28211    builtin and then its argument prototype would still apply.  */
28212 #ifdef __cplusplus
28213 extern "C"
28214 #endif
28215 char gethostbyname_r ();
28216 int
28217 main ()
28218 {
28219 return gethostbyname_r ();
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 if ac_fn_c_try_link "$LINENO"; then :
28225   ac_cv_lib_nsl_gethostbyname_r=yes
28226 else
28227   ac_cv_lib_nsl_gethostbyname_r=no
28228 fi
28229 rm -f core conftest.err conftest.$ac_objext \
28230     conftest$ac_exeext conftest.$ac_ext
28231 LIBS=$ac_check_lib_save_LIBS
28232 fi
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28234 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28235 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28236   cat >>confdefs.h <<_ACEOF
28237 #define HAVE_LIBNSL 1
28238 _ACEOF
28239
28240   LIBS="-lnsl $LIBS"
28241
28242 fi
28243
28244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28245 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28246 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28247   $as_echo_n "(cached) " >&6
28248 else
28249   ac_check_lib_save_LIBS=$LIBS
28250 LIBS="-lresolv  $LIBS"
28251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28252 /* end confdefs.h.  */
28253
28254 /* Override any GCC internal prototype to avoid an error.
28255    Use char because int might match the return type of a GCC
28256    builtin and then its argument prototype would still apply.  */
28257 #ifdef __cplusplus
28258 extern "C"
28259 #endif
28260 char gethostbyname_r ();
28261 int
28262 main ()
28263 {
28264 return gethostbyname_r ();
28265   ;
28266   return 0;
28267 }
28268 _ACEOF
28269 if ac_fn_c_try_link "$LINENO"; then :
28270   ac_cv_lib_resolv_gethostbyname_r=yes
28271 else
28272   ac_cv_lib_resolv_gethostbyname_r=no
28273 fi
28274 rm -f core conftest.err conftest.$ac_objext \
28275     conftest$ac_exeext conftest.$ac_ext
28276 LIBS=$ac_check_lib_save_LIBS
28277 fi
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28279 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28280 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28281   cat >>confdefs.h <<_ACEOF
28282 #define HAVE_LIBRESOLV 1
28283 _ACEOF
28284
28285   LIBS="-lresolv $LIBS"
28286
28287 fi
28288
28289 fi
28290
28291
28292 for ac_func in inet_pton
28293 do :
28294   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28295 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28296   cat >>confdefs.h <<_ACEOF
28297 #define HAVE_INET_PTON 1
28298 _ACEOF
28299  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28300
28301 fi
28302 done
28303
28304 for ac_func in inet_ntop
28305 do :
28306   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28307 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28308   cat >>confdefs.h <<_ACEOF
28309 #define HAVE_INET_NTOP 1
28310 _ACEOF
28311  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28312
28313 fi
28314 done
28315
28316 for ac_func in gethostbyname2
28317 do :
28318   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28319 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28320   cat >>confdefs.h <<_ACEOF
28321 #define HAVE_GETHOSTBYNAME2 1
28322 _ACEOF
28323  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28324
28325 fi
28326 done
28327
28328
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28330 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28331 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28332   $as_echo_n "(cached) " >&6
28333 else
28334
28335        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28336 /* end confdefs.h.  */
28337
28338               #include <sys/socket.h>
28339
28340 int
28341 main ()
28342 {
28343
28344               struct sockaddr s; s.sa_len;
28345
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 if ac_fn_c_try_compile "$LINENO"; then :
28351
28352              ac_cv_struct_sockaddr_sa_len=yes
28353
28354 else
28355   ac_cv_struct_sockaddr_sa_len=no
28356
28357
28358 fi
28359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360
28361
28362 fi
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28364 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28365
28366 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28367
28368 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28369
28370 fi
28371
28372 for ac_func in strftime
28373 do :
28374   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28375 if test "x$ac_cv_func_strftime" = x""yes; then :
28376   cat >>confdefs.h <<_ACEOF
28377 #define HAVE_STRFTIME 1
28378 _ACEOF
28379
28380 else
28381   # strftime is in -lintl on SCO UNIX.
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28383 $as_echo_n "checking for strftime in -lintl... " >&6; }
28384 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28385   $as_echo_n "(cached) " >&6
28386 else
28387   ac_check_lib_save_LIBS=$LIBS
28388 LIBS="-lintl  $LIBS"
28389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h.  */
28391
28392 /* Override any GCC internal prototype to avoid an error.
28393    Use char because int might match the return type of a GCC
28394    builtin and then its argument prototype would still apply.  */
28395 #ifdef __cplusplus
28396 extern "C"
28397 #endif
28398 char strftime ();
28399 int
28400 main ()
28401 {
28402 return strftime ();
28403   ;
28404   return 0;
28405 }
28406 _ACEOF
28407 if ac_fn_c_try_link "$LINENO"; then :
28408   ac_cv_lib_intl_strftime=yes
28409 else
28410   ac_cv_lib_intl_strftime=no
28411 fi
28412 rm -f core conftest.err conftest.$ac_objext \
28413     conftest$ac_exeext conftest.$ac_ext
28414 LIBS=$ac_check_lib_save_LIBS
28415 fi
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28417 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28418 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28419   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28420
28421 LIBS="-lintl $LIBS"
28422 fi
28423
28424 fi
28425 done
28426
28427 for ac_func in vprintf
28428 do :
28429   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28430 if test "x$ac_cv_func_vprintf" = x""yes; then :
28431   cat >>confdefs.h <<_ACEOF
28432 #define HAVE_VPRINTF 1
28433 _ACEOF
28434
28435 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28436 if test "x$ac_cv_func__doprnt" = x""yes; then :
28437
28438 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28439
28440 fi
28441
28442 fi
28443 done
28444
28445
28446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28447 # for constant arguments.  Useless!
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28449 $as_echo_n "checking for working alloca.h... " >&6; }
28450 if test "${ac_cv_working_alloca_h+set}" = set; then :
28451   $as_echo_n "(cached) " >&6
28452 else
28453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28454 /* end confdefs.h.  */
28455 #include <alloca.h>
28456 int
28457 main ()
28458 {
28459 char *p = (char *) alloca (2 * sizeof (int));
28460                           if (p) return 0;
28461   ;
28462   return 0;
28463 }
28464 _ACEOF
28465 if ac_fn_c_try_link "$LINENO"; then :
28466   ac_cv_working_alloca_h=yes
28467 else
28468   ac_cv_working_alloca_h=no
28469 fi
28470 rm -f core conftest.err conftest.$ac_objext \
28471     conftest$ac_exeext conftest.$ac_ext
28472 fi
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28474 $as_echo "$ac_cv_working_alloca_h" >&6; }
28475 if test $ac_cv_working_alloca_h = yes; then
28476
28477 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28478
28479 fi
28480
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28482 $as_echo_n "checking for alloca... " >&6; }
28483 if test "${ac_cv_func_alloca_works+set}" = set; then :
28484   $as_echo_n "(cached) " >&6
28485 else
28486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28487 /* end confdefs.h.  */
28488 #ifdef __GNUC__
28489 # define alloca __builtin_alloca
28490 #else
28491 # ifdef _MSC_VER
28492 #  include <malloc.h>
28493 #  define alloca _alloca
28494 # else
28495 #  ifdef HAVE_ALLOCA_H
28496 #   include <alloca.h>
28497 #  else
28498 #   ifdef _AIX
28499  #pragma alloca
28500 #   else
28501 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28502 char *alloca ();
28503 #    endif
28504 #   endif
28505 #  endif
28506 # endif
28507 #endif
28508
28509 int
28510 main ()
28511 {
28512 char *p = (char *) alloca (1);
28513                                     if (p) return 0;
28514   ;
28515   return 0;
28516 }
28517 _ACEOF
28518 if ac_fn_c_try_link "$LINENO"; then :
28519   ac_cv_func_alloca_works=yes
28520 else
28521   ac_cv_func_alloca_works=no
28522 fi
28523 rm -f core conftest.err conftest.$ac_objext \
28524     conftest$ac_exeext conftest.$ac_ext
28525 fi
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28527 $as_echo "$ac_cv_func_alloca_works" >&6; }
28528
28529 if test $ac_cv_func_alloca_works = yes; then
28530
28531 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28532
28533 else
28534   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28535 # that cause trouble.  Some versions do not even contain alloca or
28536 # contain a buggy version.  If you still want to use their alloca,
28537 # use ar to extract alloca.o from them instead of compiling alloca.c.
28538
28539 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28540
28541 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28542
28543
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28545 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28546 if test "${ac_cv_os_cray+set}" = set; then :
28547   $as_echo_n "(cached) " >&6
28548 else
28549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28550 /* end confdefs.h.  */
28551 #if defined CRAY && ! defined CRAY2
28552 webecray
28553 #else
28554 wenotbecray
28555 #endif
28556
28557 _ACEOF
28558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28559   $EGREP "webecray" >/dev/null 2>&1; then :
28560   ac_cv_os_cray=yes
28561 else
28562   ac_cv_os_cray=no
28563 fi
28564 rm -f conftest*
28565
28566 fi
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28568 $as_echo "$ac_cv_os_cray" >&6; }
28569 if test $ac_cv_os_cray = yes; then
28570   for ac_func in _getb67 GETB67 getb67; do
28571     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28572 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28573 eval as_val=\$$as_ac_var
28574    if test "x$as_val" = x""yes; then :
28575
28576 cat >>confdefs.h <<_ACEOF
28577 #define CRAY_STACKSEG_END $ac_func
28578 _ACEOF
28579
28580     break
28581 fi
28582
28583   done
28584 fi
28585
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28587 $as_echo_n "checking stack direction for C alloca... " >&6; }
28588 if test "${ac_cv_c_stack_direction+set}" = set; then :
28589   $as_echo_n "(cached) " >&6
28590 else
28591   if test "$cross_compiling" = yes; then :
28592   ac_cv_c_stack_direction=0
28593 else
28594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28595 /* end confdefs.h.  */
28596 $ac_includes_default
28597 int
28598 find_stack_direction ()
28599 {
28600   static char *addr = 0;
28601   auto char dummy;
28602   if (addr == 0)
28603     {
28604       addr = &dummy;
28605       return find_stack_direction ();
28606     }
28607   else
28608     return (&dummy > addr) ? 1 : -1;
28609 }
28610
28611 int
28612 main ()
28613 {
28614   return find_stack_direction () < 0;
28615 }
28616 _ACEOF
28617 if ac_fn_c_try_run "$LINENO"; then :
28618   ac_cv_c_stack_direction=1
28619 else
28620   ac_cv_c_stack_direction=-1
28621 fi
28622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28623   conftest.$ac_objext conftest.beam conftest.$ac_ext
28624 fi
28625
28626 fi
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28628 $as_echo "$ac_cv_c_stack_direction" >&6; }
28629 cat >>confdefs.h <<_ACEOF
28630 #define STACK_DIRECTION $ac_cv_c_stack_direction
28631 _ACEOF
28632
28633
28634 fi
28635
28636 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28637 # -lseq on Dynix/PTX, -lgen on Unixware.
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28639 $as_echo_n "checking for library containing getmntent... " >&6; }
28640 if test "${ac_cv_search_getmntent+set}" = set; then :
28641   $as_echo_n "(cached) " >&6
28642 else
28643   ac_func_search_save_LIBS=$LIBS
28644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28645 /* end confdefs.h.  */
28646
28647 /* Override any GCC internal prototype to avoid an error.
28648    Use char because int might match the return type of a GCC
28649    builtin and then its argument prototype would still apply.  */
28650 #ifdef __cplusplus
28651 extern "C"
28652 #endif
28653 char getmntent ();
28654 int
28655 main ()
28656 {
28657 return getmntent ();
28658   ;
28659   return 0;
28660 }
28661 _ACEOF
28662 for ac_lib in '' sun seq gen; do
28663   if test -z "$ac_lib"; then
28664     ac_res="none required"
28665   else
28666     ac_res=-l$ac_lib
28667     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28668   fi
28669   if ac_fn_c_try_link "$LINENO"; then :
28670   ac_cv_search_getmntent=$ac_res
28671 fi
28672 rm -f core conftest.err conftest.$ac_objext \
28673     conftest$ac_exeext
28674   if test "${ac_cv_search_getmntent+set}" = set; then :
28675   break
28676 fi
28677 done
28678 if test "${ac_cv_search_getmntent+set}" = set; then :
28679
28680 else
28681   ac_cv_search_getmntent=no
28682 fi
28683 rm conftest.$ac_ext
28684 LIBS=$ac_func_search_save_LIBS
28685 fi
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28687 $as_echo "$ac_cv_search_getmntent" >&6; }
28688 ac_res=$ac_cv_search_getmntent
28689 if test "$ac_res" != no; then :
28690   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28691   ac_cv_func_getmntent=yes
28692
28693 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28694
28695 else
28696   ac_cv_func_getmntent=no
28697 fi
28698
28699
28700 for ac_func in getmntinfo
28701 do :
28702   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28703 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28704   cat >>confdefs.h <<_ACEOF
28705 #define HAVE_GETMNTINFO 1
28706 _ACEOF
28707  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28708
28709 fi
28710 done
28711
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28713 $as_echo_n "checking whether closedir returns void... " >&6; }
28714 if test "${ac_cv_func_closedir_void+set}" = set; then :
28715   $as_echo_n "(cached) " >&6
28716 else
28717   if test "$cross_compiling" = yes; then :
28718   ac_cv_func_closedir_void=yes
28719 else
28720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h.  */
28722 $ac_includes_default
28723 #include <$ac_header_dirent>
28724 #ifndef __cplusplus
28725 int closedir ();
28726 #endif
28727
28728 int
28729 main ()
28730 {
28731 return closedir (opendir (".")) != 0;
28732   ;
28733   return 0;
28734 }
28735 _ACEOF
28736 if ac_fn_c_try_run "$LINENO"; then :
28737   ac_cv_func_closedir_void=no
28738 else
28739   ac_cv_func_closedir_void=yes
28740 fi
28741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28742   conftest.$ac_objext conftest.beam conftest.$ac_ext
28743 fi
28744
28745 fi
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28747 $as_echo "$ac_cv_func_closedir_void" >&6; }
28748 if test $ac_cv_func_closedir_void = yes; then
28749
28750 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28751
28752 fi
28753
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28755 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28756 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28757   $as_echo_n "(cached) " >&6
28758 else
28759   if test "$cross_compiling" = yes; then :
28760   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28761 else
28762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28763 /* end confdefs.h.  */
28764 $ac_includes_default
28765 int
28766 main ()
28767 {
28768 /* If this system has a BSD-style setpgrp which takes arguments,
28769   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28770   exit successfully. */
28771   return setpgrp (1,1) != -1;
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 if ac_fn_c_try_run "$LINENO"; then :
28777   ac_cv_func_setpgrp_void=no
28778 else
28779   ac_cv_func_setpgrp_void=yes
28780 fi
28781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28782   conftest.$ac_objext conftest.beam conftest.$ac_ext
28783 fi
28784
28785 fi
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28787 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28788 if test $ac_cv_func_setpgrp_void = yes; then
28789
28790 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28791
28792 fi
28793             # AC_FUNC_FNMATCH    dnl use local version
28794
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28796 $as_echo_n "checking for gettext in -lintl... " >&6; }
28797 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28798   $as_echo_n "(cached) " >&6
28799 else
28800   ac_check_lib_save_LIBS=$LIBS
28801 LIBS="-lintl  $LIBS"
28802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28803 /* end confdefs.h.  */
28804
28805 /* Override any GCC internal prototype to avoid an error.
28806    Use char because int might match the return type of a GCC
28807    builtin and then its argument prototype would still apply.  */
28808 #ifdef __cplusplus
28809 extern "C"
28810 #endif
28811 char gettext ();
28812 int
28813 main ()
28814 {
28815 return gettext ();
28816   ;
28817   return 0;
28818 }
28819 _ACEOF
28820 if ac_fn_c_try_link "$LINENO"; then :
28821   ac_cv_lib_intl_gettext=yes
28822 else
28823   ac_cv_lib_intl_gettext=no
28824 fi
28825 rm -f core conftest.err conftest.$ac_objext \
28826     conftest$ac_exeext conftest.$ac_ext
28827 LIBS=$ac_check_lib_save_LIBS
28828 fi
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28830 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28831 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28832   LIBS="$LIBS -lintl"
28833 fi
28834
28835
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28837 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28838 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28839   $as_echo_n "(cached) " >&6
28840 else
28841   ac_check_lib_save_LIBS=$LIBS
28842 LIBS="-lsun  $LIBS"
28843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h.  */
28845
28846 /* Override any GCC internal prototype to avoid an error.
28847    Use char because int might match the return type of a GCC
28848    builtin and then its argument prototype would still apply.  */
28849 #ifdef __cplusplus
28850 extern "C"
28851 #endif
28852 char getpwnam ();
28853 int
28854 main ()
28855 {
28856 return getpwnam ();
28857   ;
28858   return 0;
28859 }
28860 _ACEOF
28861 if ac_fn_c_try_link "$LINENO"; then :
28862   ac_cv_lib_sun_getpwnam=yes
28863 else
28864   ac_cv_lib_sun_getpwnam=no
28865 fi
28866 rm -f core conftest.err conftest.$ac_objext \
28867     conftest$ac_exeext conftest.$ac_ext
28868 LIBS=$ac_check_lib_save_LIBS
28869 fi
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28871 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28872 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28873   cat >>confdefs.h <<_ACEOF
28874 #define HAVE_LIBSUN 1
28875 _ACEOF
28876
28877   LIBS="-lsun $LIBS"
28878
28879 fi
28880
28881
28882 for ac_header in zlib.h
28883 do :
28884   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28885 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28886   cat >>confdefs.h <<_ACEOF
28887 #define HAVE_ZLIB_H 1
28888 _ACEOF
28889
28890 fi
28891
28892 done
28893
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28895 $as_echo_n "checking for deflate in -lz... " >&6; }
28896 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28897   $as_echo_n "(cached) " >&6
28898 else
28899   ac_check_lib_save_LIBS=$LIBS
28900 LIBS="-lz  $LIBS"
28901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28902 /* end confdefs.h.  */
28903
28904 /* Override any GCC internal prototype to avoid an error.
28905    Use char because int might match the return type of a GCC
28906    builtin and then its argument prototype would still apply.  */
28907 #ifdef __cplusplus
28908 extern "C"
28909 #endif
28910 char deflate ();
28911 int
28912 main ()
28913 {
28914 return deflate ();
28915   ;
28916   return 0;
28917 }
28918 _ACEOF
28919 if ac_fn_c_try_link "$LINENO"; then :
28920   ac_cv_lib_z_deflate=yes
28921 else
28922   ac_cv_lib_z_deflate=no
28923 fi
28924 rm -f core conftest.err conftest.$ac_objext \
28925     conftest$ac_exeext conftest.$ac_ext
28926 LIBS=$ac_check_lib_save_LIBS
28927 fi
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28929 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28930 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28931   ZLIBS="-lz"
28932 fi
28933
28934 have_zlib=no
28935 if test x$ZLIBS = x-lz; then
28936    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28937
28938    have_zlib=yes
28939 fi
28940
28941
28942 for ac_header in lzo/lzoconf.h
28943 do :
28944   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28945 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28946   cat >>confdefs.h <<_ACEOF
28947 #define HAVE_LZO_LZOCONF_H 1
28948 _ACEOF
28949
28950 fi
28951
28952 done
28953
28954 for ac_header in lzo/lzo1x.h
28955 do :
28956   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28957 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28958   cat >>confdefs.h <<_ACEOF
28959 #define HAVE_LZO_LZO1X_H 1
28960 _ACEOF
28961
28962 fi
28963
28964 done
28965
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28967 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28968 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28969   $as_echo_n "(cached) " >&6
28970 else
28971   ac_check_lib_save_LIBS=$LIBS
28972 LIBS="-llzo2  $LIBS"
28973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974 /* end confdefs.h.  */
28975
28976 /* Override any GCC internal prototype to avoid an error.
28977    Use char because int might match the return type of a GCC
28978    builtin and then its argument prototype would still apply.  */
28979 #ifdef __cplusplus
28980 extern "C"
28981 #endif
28982 char lzo1x_1_compress ();
28983 int
28984 main ()
28985 {
28986 return lzo1x_1_compress ();
28987   ;
28988   return 0;
28989 }
28990 _ACEOF
28991 if ac_fn_c_try_link "$LINENO"; then :
28992   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28993 else
28994   ac_cv_lib_lzo2_lzo1x_1_compress=no
28995 fi
28996 rm -f core conftest.err conftest.$ac_objext \
28997     conftest$ac_exeext conftest.$ac_ext
28998 LIBS=$ac_check_lib_save_LIBS
28999 fi
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29001 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29002 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
29003   LZOLIBS="-llzo2"
29004 fi
29005
29006 have_lzo=no
29007 if test x$LZOLIBS = x-llzo2; then
29008    $as_echo "#define HAVE_LZO 1" >>confdefs.h
29009
29010    have_lzo=yes
29011 fi
29012
29013
29014 support_acl=auto
29015 # Check whether --enable-acl was given.
29016 if test "${enable_acl+set}" = set; then :
29017   enableval=$enable_acl;
29018        if test x$enableval = xyes; then
29019           support_acl=yes
29020        elif test x$enableval = xno; then
29021           support_acl=no
29022        fi
29023
29024
29025 fi
29026
29027
29028 have_acl=no
29029 have_extended_acl=no
29030 if test x$support_acl = xyes -o x$support_acl = xauto; then
29031    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29032 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
29033
29034 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29035
29036 fi
29037
29038
29039
29040             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29041 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
29042
29043           have_acl=yes
29044
29045
29046 fi
29047
29048
29049             if test $have_acl = no; then
29050       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29051 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29052 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29053   $as_echo_n "(cached) " >&6
29054 else
29055   ac_check_lib_save_LIBS=$LIBS
29056 LIBS="-lacl  $LIBS"
29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h.  */
29059
29060 /* Override any GCC internal prototype to avoid an error.
29061    Use char because int might match the return type of a GCC
29062    builtin and then its argument prototype would still apply.  */
29063 #ifdef __cplusplus
29064 extern "C"
29065 #endif
29066 char acl_get_file ();
29067 int
29068 main ()
29069 {
29070 return acl_get_file ();
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 if ac_fn_c_try_link "$LINENO"; then :
29076   ac_cv_lib_acl_acl_get_file=yes
29077 else
29078   ac_cv_lib_acl_acl_get_file=no
29079 fi
29080 rm -f core conftest.err conftest.$ac_objext \
29081     conftest$ac_exeext conftest.$ac_ext
29082 LIBS=$ac_check_lib_save_LIBS
29083 fi
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29085 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29086 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29087
29088              have_acl=yes
29089              FDLIBS="-lacl $FDLIBS"
29090
29091
29092 fi
29093
29094    fi
29095
29096                if test $have_acl = no -a \
29097            x${HAVE_OSF1_OS_TRUE} = x; then
29098       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29099 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29100 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29101   $as_echo_n "(cached) " >&6
29102 else
29103   ac_check_lib_save_LIBS=$LIBS
29104 LIBS="-lpacl  $LIBS"
29105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29106 /* end confdefs.h.  */
29107
29108 /* Override any GCC internal prototype to avoid an error.
29109    Use char because int might match the return type of a GCC
29110    builtin and then its argument prototype would still apply.  */
29111 #ifdef __cplusplus
29112 extern "C"
29113 #endif
29114 char acl_get_file ();
29115 int
29116 main ()
29117 {
29118 return acl_get_file ();
29119   ;
29120   return 0;
29121 }
29122 _ACEOF
29123 if ac_fn_c_try_link "$LINENO"; then :
29124   ac_cv_lib_pacl_acl_get_file=yes
29125 else
29126   ac_cv_lib_pacl_acl_get_file=no
29127 fi
29128 rm -f core conftest.err conftest.$ac_objext \
29129     conftest$ac_exeext conftest.$ac_ext
29130 LIBS=$ac_check_lib_save_LIBS
29131 fi
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29133 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29134 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29135
29136              have_acl=yes
29137              FDLIBS="-lpacl $FDLIBS"
29138
29139
29140 fi
29141
29142
29143       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29144 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29145       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29146       if test $? = 0; then
29147
29148 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29149
29150          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151 $as_echo "yes" >&6; }
29152       else
29153          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29154 $as_echo "no" >&6; }
29155       fi
29156    fi
29157
29158             if test $have_acl = yes -a \
29159            x${HAVE_DARWIN_OS_TRUE} = x; then
29160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29161 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29162       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29163       if test $? = 0; then
29164
29165 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29166
29167          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29168 $as_echo "yes" >&6; }
29169       else
29170          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29171 $as_echo "no" >&6; }
29172       fi
29173    fi
29174
29175             if test $have_acl = yes -a \
29176            x${HAVE_FREEBSD_OS_TRUE} = x; then
29177       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29178 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29179       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29180       if test $? = 0; then
29181
29182 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29183
29184          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29185 $as_echo "yes" >&6; }
29186       else
29187          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29188 $as_echo "no" >&6; }
29189       fi
29190    fi
29191
29192             if test $have_acl = no -a \
29193            x${HAVE_SUN_OS_TRUE} = x; then
29194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29195 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29196 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29197   $as_echo_n "(cached) " >&6
29198 else
29199   ac_check_lib_save_LIBS=$LIBS
29200 LIBS="-lsec  $LIBS"
29201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29202 /* end confdefs.h.  */
29203
29204 /* Override any GCC internal prototype to avoid an error.
29205    Use char because int might match the return type of a GCC
29206    builtin and then its argument prototype would still apply.  */
29207 #ifdef __cplusplus
29208 extern "C"
29209 #endif
29210 char acltotext ();
29211 int
29212 main ()
29213 {
29214 return acltotext ();
29215   ;
29216   return 0;
29217 }
29218 _ACEOF
29219 if ac_fn_c_try_link "$LINENO"; then :
29220   ac_cv_lib_sec_acltotext=yes
29221 else
29222   ac_cv_lib_sec_acltotext=no
29223 fi
29224 rm -f core conftest.err conftest.$ac_objext \
29225     conftest$ac_exeext conftest.$ac_ext
29226 LIBS=$ac_check_lib_save_LIBS
29227 fi
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29229 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29230 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29231
29232              have_acl=yes
29233              FDLIBS="-lsec $FDLIBS"
29234
29235              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29236 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29237 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29238   $as_echo_n "(cached) " >&6
29239 else
29240   ac_check_lib_save_LIBS=$LIBS
29241 LIBS="-lsec  $LIBS"
29242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29243 /* end confdefs.h.  */
29244
29245 /* Override any GCC internal prototype to avoid an error.
29246    Use char because int might match the return type of a GCC
29247    builtin and then its argument prototype would still apply.  */
29248 #ifdef __cplusplus
29249 extern "C"
29250 #endif
29251 char acl_totext ();
29252 int
29253 main ()
29254 {
29255 return acl_totext ();
29256   ;
29257   return 0;
29258 }
29259 _ACEOF
29260 if ac_fn_c_try_link "$LINENO"; then :
29261   ac_cv_lib_sec_acl_totext=yes
29262 else
29263   ac_cv_lib_sec_acl_totext=no
29264 fi
29265 rm -f core conftest.err conftest.$ac_objext \
29266     conftest$ac_exeext conftest.$ac_ext
29267 LIBS=$ac_check_lib_save_LIBS
29268 fi
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29270 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29271 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29272
29273                     have_extended_acl=yes
29274
29275
29276 fi
29277
29278
29279
29280 fi
29281
29282    fi
29283
29284             if test $have_acl = no -a \
29285            x${HAVE_AIX_OS_TRUE} = x; then
29286       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29287 if test "x$ac_cv_func_acl_get" = x""yes; then :
29288
29289              have_acl=yes
29290
29291              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29292 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29293
29294                     have_extended_acl=yes
29295
29296
29297 fi
29298
29299
29300
29301 fi
29302
29303    fi
29304
29305    if test x$support_acl = xyes -a $have_acl != yes; then
29306       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
29307   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29308    else
29309       if test $have_acl = yes; then
29310
29311 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29312
29313       fi
29314
29315       if test $have_extended_acl = yes; then
29316
29317 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29318
29319       fi
29320    fi
29321 fi
29322
29323 support_xattr=auto
29324 # Check whether --enable-xattr was given.
29325 if test "${enable_xattr+set}" = set; then :
29326   enableval=$enable_xattr;
29327        if test x$enableval = xyes; then
29328           support_xattr=yes
29329        elif test x$enableval = xno; then
29330           support_xattr=no
29331        fi
29332
29333
29334 fi
29335
29336
29337 have_xattr=no
29338 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29339                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29340            x${HAVE_NETBSD_OS_TRUE} = x -o \
29341            x${HAVE_OPENBSD_OS_TRUE} = x; then
29342       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29343 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29344
29345 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29346
29347 fi
29348
29349
29350       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29351 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29352
29353 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29354
29355 fi
29356
29357
29358       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29359 do :
29360   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29362 eval as_val=\$$as_ac_var
29363    if test "x$as_val" = x""yes; then :
29364   cat >>confdefs.h <<_ACEOF
29365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29366 _ACEOF
29367
29368              have_xattr=yes
29369
29370 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29371
29372
29373 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29374
29375
29376 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29377
29378
29379
29380 fi
29381 done
29382
29383
29384       if test $have_xattr = no; then
29385          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29386 do :
29387   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29389 eval as_val=\$$as_ac_var
29390    if test "x$as_val" = x""yes; then :
29391   cat >>confdefs.h <<_ACEOF
29392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29393 _ACEOF
29394
29395                 have_xattr=yes
29396
29397 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29398
29399
29400 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29401
29402
29403 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29404
29405
29406
29407 fi
29408 done
29409
29410       fi
29411
29412       if test $have_xattr = yes; then
29413          have_extattr_string_in_libc=no
29414          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29415 do :
29416   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29418 eval as_val=\$$as_ac_var
29419    if test "x$as_val" = x""yes; then :
29420   cat >>confdefs.h <<_ACEOF
29421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29422 _ACEOF
29423
29424                 have_extattr_string_in_libc=yes
29425
29426 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29427
29428
29429 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29430
29431
29432
29433 fi
29434 done
29435
29436
29437                                  if test $have_extattr_string_in_libc = no; then
29438             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29439 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29440 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29441   $as_echo_n "(cached) " >&6
29442 else
29443   ac_check_lib_save_LIBS=$LIBS
29444 LIBS="-lutil  $LIBS"
29445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29446 /* end confdefs.h.  */
29447
29448 /* Override any GCC internal prototype to avoid an error.
29449    Use char because int might match the return type of a GCC
29450    builtin and then its argument prototype would still apply.  */
29451 #ifdef __cplusplus
29452 extern "C"
29453 #endif
29454 char extattr_namespace_to_string extattr_string_to_namespace ();
29455 int
29456 main ()
29457 {
29458 return extattr_namespace_to_string extattr_string_to_namespace ();
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 if ac_fn_c_try_link "$LINENO"; then :
29464   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29465 else
29466   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29467 fi
29468 rm -f core conftest.err conftest.$ac_objext \
29469     conftest$ac_exeext conftest.$ac_ext
29470 LIBS=$ac_check_lib_save_LIBS
29471 fi
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29473 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29474 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29475
29476
29477 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29478
29479
29480 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29481
29482                    FDLIBS="-lutil $FDLIBS"
29483
29484
29485 fi
29486
29487          fi
29488       fi
29489    fi
29490
29491                if test $have_xattr = no -a \
29492            x${HAVE_AIX_OS_TRUE} = x; then
29493       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29494 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29495
29496 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29497
29498 fi
29499
29500
29501       for ac_func in llistea lgetea lsetea
29502 do :
29503   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29505 eval as_val=\$$as_ac_var
29506    if test "x$as_val" = x""yes; then :
29507   cat >>confdefs.h <<_ACEOF
29508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29509 _ACEOF
29510
29511              have_xattr=yes
29512
29513 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29514
29515
29516 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29517
29518
29519 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29520
29521
29522
29523 fi
29524 done
29525
29526
29527       if test $have_xattr = no; then
29528          for ac_func in listea getea setea
29529 do :
29530   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29532 eval as_val=\$$as_ac_var
29533    if test "x$as_val" = x""yes; then :
29534   cat >>confdefs.h <<_ACEOF
29535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29536 _ACEOF
29537
29538                 have_xattr=yes
29539
29540 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29541
29542
29543 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29544
29545
29546 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29547
29548
29549
29550 fi
29551 done
29552
29553       fi
29554    fi
29555
29556                if test $have_xattr = no -a \
29557            x${HAVE_OSF1_OS_TRUE} = x; then
29558       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29559 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29560
29561 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29562
29563 fi
29564
29565
29566       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29567 do :
29568   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29570 eval as_val=\$$as_ac_var
29571    if test "x$as_val" = x""yes; then :
29572   cat >>confdefs.h <<_ACEOF
29573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29574 _ACEOF
29575
29576              have_xattr=yes
29577
29578 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29579
29580
29581 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29582
29583
29584 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29585
29586
29587 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29588
29589
29590 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29591
29592
29593
29594 fi
29595 done
29596
29597    fi
29598
29599                if test $have_xattr = no -a \
29600            x${HAVE_SUN_OS_TRUE} = x; then
29601       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29602 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29603
29604 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29605
29606 fi
29607
29608
29609       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29610 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29611
29612 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29613
29614 fi
29615
29616
29617       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29618 if test "x$ac_cv_header_attr_h" = x""yes; then :
29619
29620 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29621
29622 fi
29623
29624
29625
29626       for ac_func in openat fstatat unlinkat fchownat futimesat
29627 do :
29628   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29630 eval as_val=\$$as_ac_var
29631    if test "x$as_val" = x""yes; then :
29632   cat >>confdefs.h <<_ACEOF
29633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29634 _ACEOF
29635
29636              have_xattr=yes
29637
29638 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29639
29640
29641 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29642
29643
29644 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29645
29646
29647 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29648
29649
29650 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29651
29652
29653
29654 fi
29655 done
29656
29657
29658       if test $have_xattr = yes; then
29659          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29660 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29661 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29662   $as_echo_n "(cached) " >&6
29663 else
29664   ac_check_lib_save_LIBS=$LIBS
29665 LIBS="-lnvpair  $LIBS"
29666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29667 /* end confdefs.h.  */
29668
29669 /* Override any GCC internal prototype to avoid an error.
29670    Use char because int might match the return type of a GCC
29671    builtin and then its argument prototype would still apply.  */
29672 #ifdef __cplusplus
29673 extern "C"
29674 #endif
29675 char nvlist_next_nvpair ();
29676 int
29677 main ()
29678 {
29679 return nvlist_next_nvpair ();
29680   ;
29681   return 0;
29682 }
29683 _ACEOF
29684 if ac_fn_c_try_link "$LINENO"; then :
29685   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29686 else
29687   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29688 fi
29689 rm -f core conftest.err conftest.$ac_objext \
29690     conftest$ac_exeext conftest.$ac_ext
29691 LIBS=$ac_check_lib_save_LIBS
29692 fi
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29694 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29695 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29696
29697
29698 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29699
29700                 FDLIBS="-lnvpair $FDLIBS"
29701
29702
29703 fi
29704
29705       fi
29706    fi
29707
29708             if test $have_xattr = no; then
29709       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29710 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29711
29712 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29713
29714 fi
29715
29716
29717       for ac_func in llistxattr lgetxattr lsetxattr
29718 do :
29719   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29721 eval as_val=\$$as_ac_var
29722    if test "x$as_val" = x""yes; then :
29723   cat >>confdefs.h <<_ACEOF
29724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29725 _ACEOF
29726
29727              have_xattr=yes
29728
29729 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29730
29731
29732 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29733
29734
29735 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29736
29737
29738
29739 fi
29740 done
29741
29742
29743       if test $have_xattr = no; then
29744          for ac_func in listxattr getxattr setxattr
29745 do :
29746   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29748 eval as_val=\$$as_ac_var
29749    if test "x$as_val" = x""yes; then :
29750   cat >>confdefs.h <<_ACEOF
29751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29752 _ACEOF
29753
29754                 have_xattr=yes
29755
29756 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29757
29758
29759 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29760
29761
29762 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29763
29764
29765
29766 fi
29767 done
29768
29769       fi
29770    fi
29771
29772    if test x$support_xattr = xyes -a $have_xattr != yes; then
29773       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29774   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29775    else
29776       if test $have_xattr = yes; then
29777
29778 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29779
29780       fi
29781    fi
29782 fi
29783
29784 PTHREAD_LIB=""
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29786 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29787 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29788   $as_echo_n "(cached) " >&6
29789 else
29790   ac_check_lib_save_LIBS=$LIBS
29791 LIBS="-lpthread  $LIBS"
29792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29793 /* end confdefs.h.  */
29794
29795 /* Override any GCC internal prototype to avoid an error.
29796    Use char because int might match the return type of a GCC
29797    builtin and then its argument prototype would still apply.  */
29798 #ifdef __cplusplus
29799 extern "C"
29800 #endif
29801 char pthread_create ();
29802 int
29803 main ()
29804 {
29805 return pthread_create ();
29806   ;
29807   return 0;
29808 }
29809 _ACEOF
29810 if ac_fn_c_try_link "$LINENO"; then :
29811   ac_cv_lib_pthread_pthread_create=yes
29812 else
29813   ac_cv_lib_pthread_pthread_create=no
29814 fi
29815 rm -f core conftest.err conftest.$ac_objext \
29816     conftest$ac_exeext conftest.$ac_ext
29817 LIBS=$ac_check_lib_save_LIBS
29818 fi
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29820 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29821 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29822   PTHREAD_LIB="-lpthread"
29823 else
29824
29825        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29826 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29827 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29828   $as_echo_n "(cached) " >&6
29829 else
29830   ac_check_lib_save_LIBS=$LIBS
29831 LIBS="-lpthreads  $LIBS"
29832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29833 /* end confdefs.h.  */
29834
29835 /* Override any GCC internal prototype to avoid an error.
29836    Use char because int might match the return type of a GCC
29837    builtin and then its argument prototype would still apply.  */
29838 #ifdef __cplusplus
29839 extern "C"
29840 #endif
29841 char pthread_create ();
29842 int
29843 main ()
29844 {
29845 return pthread_create ();
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 if ac_fn_c_try_link "$LINENO"; then :
29851   ac_cv_lib_pthreads_pthread_create=yes
29852 else
29853   ac_cv_lib_pthreads_pthread_create=no
29854 fi
29855 rm -f core conftest.err conftest.$ac_objext \
29856     conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29858 fi
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29860 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29861 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29862   PTHREAD_LIB="-lpthreads"
29863 else
29864
29865               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29866 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29867 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29868   $as_echo_n "(cached) " >&6
29869 else
29870   ac_check_lib_save_LIBS=$LIBS
29871 LIBS="-lc_r  $LIBS"
29872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29873 /* end confdefs.h.  */
29874
29875 /* Override any GCC internal prototype to avoid an error.
29876    Use char because int might match the return type of a GCC
29877    builtin and then its argument prototype would still apply.  */
29878 #ifdef __cplusplus
29879 extern "C"
29880 #endif
29881 char pthread_create ();
29882 int
29883 main ()
29884 {
29885 return pthread_create ();
29886   ;
29887   return 0;
29888 }
29889 _ACEOF
29890 if ac_fn_c_try_link "$LINENO"; then :
29891   ac_cv_lib_c_r_pthread_create=yes
29892 else
29893   ac_cv_lib_c_r_pthread_create=no
29894 fi
29895 rm -f core conftest.err conftest.$ac_objext \
29896     conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29898 fi
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29900 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29901 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29902   PTHREAD_LIB="-lc_r"
29903 else
29904
29905                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29906 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29907
29908 fi
29909
29910
29911
29912 fi
29913
29914
29915
29916 fi
29917
29918
29919
29920 fi
29921
29922
29923 for ac_header in sys/prctl.h sys/capability.h
29924 do :
29925   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29927 eval as_val=\$$as_ac_Header
29928    if test "x$as_val" = x""yes; then :
29929   cat >>confdefs.h <<_ACEOF
29930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29931 _ACEOF
29932
29933 fi
29934
29935 done
29936
29937 for ac_func in prctl setreuid
29938 do :
29939   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29941 eval as_val=\$$as_ac_var
29942    if test "x$as_val" = x""yes; then :
29943   cat >>confdefs.h <<_ACEOF
29944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29945 _ACEOF
29946
29947 fi
29948 done
29949
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29951 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29952 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29953   $as_echo_n "(cached) " >&6
29954 else
29955   ac_check_lib_save_LIBS=$LIBS
29956 LIBS="-lcap  $LIBS"
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h.  */
29959
29960 /* Override any GCC internal prototype to avoid an error.
29961    Use char because int might match the return type of a GCC
29962    builtin and then its argument prototype would still apply.  */
29963 #ifdef __cplusplus
29964 extern "C"
29965 #endif
29966 char cap_set_proc ();
29967 int
29968 main ()
29969 {
29970 return cap_set_proc ();
29971   ;
29972   return 0;
29973 }
29974 _ACEOF
29975 if ac_fn_c_try_link "$LINENO"; then :
29976   ac_cv_lib_cap_cap_set_proc=yes
29977 else
29978   ac_cv_lib_cap_cap_set_proc=no
29979 fi
29980 rm -f core conftest.err conftest.$ac_objext \
29981     conftest$ac_exeext conftest.$ac_ext
29982 LIBS=$ac_check_lib_save_LIBS
29983 fi
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29985 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29986 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29987   CAP_LIBS="-lcap"
29988 else
29989   CAP_LIBS=
29990 fi
29991
29992 if test x$CAP_LIBS = x-lcap; then
29993
29994 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29995
29996 fi
29997
29998
29999
30000 $as_echo "#define FDLIBS 1" >>confdefs.h
30001
30002
30003 CFLAGS=${CFLAGS--O}
30004
30005 if test x$have_gcc = xyes ; then
30006    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30007    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30008 fi
30009 LDFLAGS=${LDFLAGS--O}
30010 CPPFLAGS="$CPPFLAGS"
30011 CFLAGS="$CFLAGS"
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027 OBJLIST=
30028
30029
30030 lld="lld"
30031 llu="llu"
30032
30033 WCFLAGS=
30034 WLDFLAGS=
30035
30036 PFILES="platforms/Makefile"
30037 PSCMD="ps -e"
30038 WIN32=
30039 MACOSX=
30040 COMPRESS_MANPAGES=yes
30041
30042 hostname=`uname -n | cut -d '.' -f 1`
30043 if test x${hostname} = x ; then
30044    hostname="localhost"
30045 fi
30046 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30047 if test ! $? = 0; then
30048   hostname="localhost"
30049 fi
30050
30051 case "$DISTNAME" in
30052 aix)
30053    DISTVER=`uname -r`
30054    PSCMD="ps -e -o pid,comm"
30055    PFILES="${PFILES} \
30056       platforms/aix/Makefile"
30057    TAPEDRIVE="/dev/rmt0.1"
30058   ;;
30059 alpha)
30060    DISTVER=`uname -r`
30061    PTHREAD_LIB="-lpthread -lexc"
30062    if test "${CC}" = "gcc" ; then
30063       lld="lld"
30064       llu="llu"
30065    else
30066       lld="ld"
30067       llu="lu"
30068    fi
30069    TAPEDRIVE="/dev/nrmt0"
30070   ;;
30071 bsdi)
30072    DISTVER=`uname -a |awk '{print $3}'`
30073    TAPEDRIVE="/dev/nrmt0"
30074    PTHREAD_LIB="-pthread"
30075    CFLAGS="${CFLAGS} -pthread"
30076    PSCMD="ps -ax -o pid,command"
30077    lld="qd"
30078    llu="qu"
30079    PFILES="${PFILES} \
30080        platforms/bsdi/Makefile \
30081        platforms/bsdi/bacula-fd \
30082        platforms/bsdi/bacula-sd \
30083        platforms/bsdi/bacula-dir"
30084    largefile_support="yes"
30085   ;;
30086 cygwin)
30087    DISTVER=`uname -a |awk '{print $3}'`
30088    TAPEDRIVE="/dev/nrst0"
30089    WIN32=win32
30090    WCFLAGS="-mwindows"
30091    WLDFLAGS="-mwindows"
30092   ;;
30093 darwin)
30094    DISTVER=`uname -r`
30095    TAPEDRIVE="/dev/nst0"
30096    PSCMD="ps -e -o pid,command"
30097    MACOSX=macosx
30098    PFILES="${PFILES} \
30099       platforms/darwin/Makefile"
30100   ;;
30101 osx)
30102    DISTVER=`uname -r`
30103    TAPEDRIVE="/dev/nst0"
30104    PSCMD="ps -e -o pid,command"
30105    MACOSX=macosx
30106    PFILES="${PFILES} \
30107       platforms/osx/Makefile"
30108   ;;
30109 debian)
30110    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30111       DISTNAME="ubuntu"
30112    fi
30113    DISTVER=`cat /etc/debian_version`
30114    if test -f /etc/lsb-release ; then
30115       . /etc/lsb-release
30116       if test "x$DISTRIB_ID" != "x" ; then
30117          DISTNAME=$DISTRIB_ID
30118       fi
30119       if test "x$DISTRIB_RELEASE" != "x" ; then
30120          DISTVER=$DISTRIB_RELEASE
30121       fi
30122    fi
30123    if test "$DISTNAME" = "Ubuntu" ; then
30124       DISTNAME="ubuntu"
30125    fi
30126    TAPEDRIVE="/dev/nst0"
30127    PSCMD="ps -e -o pid,command"
30128    if test "$DISTNAME" = "ubuntu" ; then
30129       PFILES="${PFILES} \
30130          platforms/ubuntu/Makefile \
30131          platforms/ubuntu/bacula-fd \
30132          platforms/ubuntu/bacula-sd \
30133          platforms/ubuntu/bacula-dir"
30134    else
30135       PFILES="${PFILES} \
30136          platforms/debian/Makefile \
30137          platforms/debian/bacula-fd \
30138          platforms/debian/bacula-sd \
30139          platforms/debian/bacula-dir"
30140    fi
30141   ;;
30142 freebsd)
30143    DISTVER=`uname -a |awk '{print $3}'`
30144    VER=`echo $DISTVER | cut -c 1`
30145    if test x$VER = x4 ; then
30146       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30147       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30148    fi
30149    lld="qd"
30150    llu="qu"
30151    TAPEDRIVE="/dev/nrsa0"
30152    PSCMD="ps -ax -o pid,command"
30153    PFILES="${PFILES} \
30154        platforms/freebsd/Makefile \
30155        platforms/freebsd/bacula-fd \
30156        platforms/freebsd/bacula-sd \
30157        platforms/freebsd/bacula-dir"
30158    largefile_support="yes"
30159   ;;
30160 hpux)
30161    PSCMD="UNIX95=1; ps -e -o pid,comm"
30162    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30163    DISTVER=`uname -r`
30164    TAPEDRIVE="/dev/rmt/0hnb"
30165    PTHREAD_LIB="-lpthread"
30166    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30167
30168   ;;
30169 irix)
30170    DISTVER=`uname -r`
30171    TAPEDRIVE="/dev/rmt/0cbn"
30172    PSCMD="ps -e -o pid,comm"
30173    PFILES="${PFILES} \
30174        platforms/irix/Makefile \
30175        platforms/irix/bacula-fd \
30176        platforms/irix/bacula-sd \
30177        platforms/irix/bacula-dir"
30178   ;;
30179 netbsd)
30180    DISTVER=`uname -a |awk '{print $3}'`
30181    lld="qd"
30182    llu="qu"
30183    TAPEDRIVE="/dev/nrst0"
30184    PSCMD="ps -ax -o pid,command"
30185    PTHREAD_LIB="-pthread"
30186    CFLAGS="${CFLAGS} -pthread"
30187   ;;
30188 openbsd)
30189    DISTVER=`uname -a |awk '{print $3}'`
30190    lld="qd"
30191    llu="qu"
30192    TAPEDRIVE="/dev/nrst0"
30193    PSCMD="ps -ax -o pid,command"
30194    PTHREAD_LIB="-pthread"
30195    CFLAGS="${CFLAGS} -pthread"
30196    PFILES="${PFILES} \
30197        platforms/openbsd/Makefile \
30198        platforms/openbsd/bacula-fd \
30199        platforms/openbsd/bacula-sd \
30200        platforms/openbsd/bacula-dir"
30201   ;;
30202 redhat)
30203    if test -f /etc/whitebox-release ; then
30204       f=/etc/whitebox-release
30205    else
30206       f=/etc/redhat-release
30207    fi
30208    if test `cat $f | grep release |\
30209          cut -f 3 -d ' '`x = "Enterprise"x ; then
30210       DISTVER="Enterprise "`cat $f | grep release |\
30211           cut -f 6 -d ' '`
30212    else
30213        DISTVER=`cat /etc/redhat-release | grep release |\
30214            cut -f 5 -d ' '`
30215    fi
30216    TAPEDRIVE="/dev/nst0"
30217    PSCMD="ps -e -o pid,command"
30218    PFILES="${PFILES} \
30219        platforms/redhat/Makefile \
30220        platforms/redhat/bacula-fd \
30221        platforms/redhat/bacula-sd \
30222        platforms/redhat/bacula-dir
30223        "
30224   ;;
30225 mandrake)
30226    DISTVER=`cat /etc/mandrake-release | grep release |\
30227       cut -f 5 -d ' '`
30228    TAPEDRIVE="/dev/nst0"
30229    PSCMD="ps -e -o pid,command"
30230    PFILES="${PFILES} \
30231        platforms/mandrake/Makefile \
30232        platforms/mandrake/bacula-fd \
30233        platforms/mandrake/bacula-sd \
30234        platforms/mandrake/bacula-dir \
30235        "
30236   ;;
30237 gentoo)
30238    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30239    TAPEDRIVE="/dev/nst0"
30240    PSCMD="ps -e -o pid,command"
30241    PFILES="${PFILES} \
30242        platforms/gentoo/Makefile \
30243     platforms/gentoo/bacula-init \
30244        platforms/gentoo/bacula-fd \
30245        platforms/gentoo/bacula-sd \
30246        platforms/gentoo/bacula-dir"
30247   ;;
30248 slackware)
30249    DISTVER=`cat /etc/slackware-version`
30250    TAPEDRIVE="/dev/nst0"
30251    PSCMD="ps -e -o pid,command"
30252    PFILES="${PFILES} \
30253        platforms/slackware/Makefile \
30254        platforms/slackware/rc.bacula-fd \
30255        platforms/slackware/rc.bacula-sd \
30256        platforms/slackware/rc.bacula-dir\
30257        platforms/slackware/functions.bacula"
30258   ;;
30259 solaris)
30260    DISTVER=`uname -r`
30261    TAPEDRIVE="/dev/rmt/0cbn"
30262    PSCMD="ps -e -o pid,comm"
30263    PFILES="${PFILES} \
30264        platforms/solaris/Makefile \
30265        platforms/solaris/bacula-fd \
30266        platforms/solaris/bacula-sd \
30267        platforms/solaris/bacula-dir"
30268    COMPRESS_MANPAGES=
30269    case ${DISTVER} in
30270    5.5|5.6)
30271       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30272
30273       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30274
30275       ;;
30276    5.7|5.8)
30277       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30278
30279       ;;
30280    *)
30281       ;;
30282    esac
30283    LIBS="$LIBS -lresolv -lrt"
30284   ;;
30285 suse)
30286    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30287        cut -f 3 -d ' '`
30288    TAPEDRIVE="/dev/nst0"
30289    PSCMD="ps -e -o pid,command"
30290    PFILES="${PFILES} \
30291        platforms/suse/Makefile \
30292        platforms/suse/bacula-fd \
30293        platforms/suse/bacula-sd \
30294        platforms/suse/bacula-dir \
30295        platforms/suse/bacula"
30296   ;;
30297 suse5)
30298    DISTNAME=suse
30299    DISTVER=5.x
30300    TAPEDRIVE="/dev/nst0"
30301    PSCMD="ps -e -o pid,command"
30302    PFILES="${PFILES} \
30303        platforms/suse/Makefile \
30304        platforms/suse/bacula-fd \
30305        platforms/suse/bacula-sd \
30306        platforms/suse/bacula-dir"
30307   ;;
30308 unknown)
30309    DISTVER=unknown
30310    TAPEDRIVE="/dev/nst0"
30311   ;;
30312 *)
30313   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30314   ;;
30315 esac
30316
30317
30318
30319 LIBS="$PTHREAD_LIB $LIBS"
30320
30321 cat >>confdefs.h <<_ACEOF
30322 #define lld "$lld"
30323 _ACEOF
30324
30325 cat >>confdefs.h <<_ACEOF
30326 #define llu "$llu"
30327 _ACEOF
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337 MCOMMON=./autoconf/Make.common
30338
30339
30340 if test "x${subsysdir}" = "x${sbindir}" ; then
30341    echo " "
30342    echo " "
30343    echo "You have set both --sbindir and --with-subsys-dir"
30344    echo "  equal to: ${subsysdir} "
30345    echo "This is not permitted. Please reconfigure."
30346    echo " "
30347    echo "Aborting configuration ..."
30348    echo " "
30349    echo " "
30350    exit 1
30351 fi
30352
30353 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"
30354
30355 ac_config_commands="$ac_config_commands default"
30356
30357 cat >confcache <<\_ACEOF
30358 # This file is a shell script that caches the results of configure
30359 # tests run on this system so they can be shared between configure
30360 # scripts and configure runs, see configure's option --config-cache.
30361 # It is not useful on other systems.  If it contains results you don't
30362 # want to keep, you may remove or edit it.
30363 #
30364 # config.status only pays attention to the cache file if you give it
30365 # the --recheck option to rerun configure.
30366 #
30367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30369 # following values.
30370
30371 _ACEOF
30372
30373 # The following way of writing the cache mishandles newlines in values,
30374 # but we know of no workaround that is simple, portable, and efficient.
30375 # So, we kill variables containing newlines.
30376 # Ultrix sh set writes to stderr and can't be redirected directly,
30377 # and sets the high bit in the cache file unless we assign to the vars.
30378 (
30379   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30380     eval ac_val=\$$ac_var
30381     case $ac_val in #(
30382     *${as_nl}*)
30383       case $ac_var in #(
30384       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30386       esac
30387       case $ac_var in #(
30388       _ | IFS | as_nl) ;; #(
30389       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30390       *) { eval $ac_var=; unset $ac_var;} ;;
30391       esac ;;
30392     esac
30393   done
30394
30395   (set) 2>&1 |
30396     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30397     *${as_nl}ac_space=\ *)
30398       # `set' does not quote correctly, so add quotes: double-quote
30399       # substitution turns \\\\ into \\, and sed turns \\ into \.
30400       sed -n \
30401         "s/'/'\\\\''/g;
30402           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30403       ;; #(
30404     *)
30405       # `set' quotes correctly as required by POSIX, so do not add quotes.
30406       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30407       ;;
30408     esac |
30409     sort
30410 ) |
30411   sed '
30412      /^ac_cv_env_/b end
30413      t clear
30414      :clear
30415      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30416      t end
30417      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30418      :end' >>confcache
30419 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30420   if test -w "$cache_file"; then
30421     test "x$cache_file" != "x/dev/null" &&
30422       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30423 $as_echo "$as_me: updating cache $cache_file" >&6;}
30424     cat confcache >$cache_file
30425   else
30426     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30427 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30428   fi
30429 fi
30430 rm -f confcache
30431
30432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30433 # Let make expand exec_prefix.
30434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30435
30436 DEFS=-DHAVE_CONFIG_H
30437
30438 ac_libobjs=
30439 ac_ltlibobjs=
30440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30441   # 1. Remove the extension, and $U if already installed.
30442   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30443   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30444   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30445   #    will be set to the directory where LIBOBJS objects are built.
30446   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30447   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30448 done
30449 LIBOBJS=$ac_libobjs
30450
30451 LTLIBOBJS=$ac_ltlibobjs
30452
30453
30454
30455
30456 : ${CONFIG_STATUS=./config.status}
30457 ac_write_fail=0
30458 ac_clean_files_save=$ac_clean_files
30459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30461 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30462 as_write_fail=0
30463 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30464 #! $SHELL
30465 # Generated by $as_me.
30466 # Run this file to recreate the current configuration.
30467 # Compiler output produced by configure, useful for debugging
30468 # configure, is in config.log if it exists.
30469
30470 debug=false
30471 ac_cs_recheck=false
30472 ac_cs_silent=false
30473
30474 SHELL=\${CONFIG_SHELL-$SHELL}
30475 export SHELL
30476 _ASEOF
30477 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30478 ## -------------------- ##
30479 ## M4sh Initialization. ##
30480 ## -------------------- ##
30481
30482 # Be more Bourne compatible
30483 DUALCASE=1; export DUALCASE # for MKS sh
30484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30485   emulate sh
30486   NULLCMD=:
30487   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30488   # is contrary to our usage.  Disable this feature.
30489   alias -g '${1+"$@"}'='"$@"'
30490   setopt NO_GLOB_SUBST
30491 else
30492   case `(set -o) 2>/dev/null` in #(
30493   *posix*) :
30494     set -o posix ;; #(
30495   *) :
30496      ;;
30497 esac
30498 fi
30499
30500
30501 as_nl='
30502 '
30503 export as_nl
30504 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30505 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30506 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30508 # Prefer a ksh shell builtin over an external printf program on Solaris,
30509 # but without wasting forks for bash or zsh.
30510 if test -z "$BASH_VERSION$ZSH_VERSION" \
30511     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30512   as_echo='print -r --'
30513   as_echo_n='print -rn --'
30514 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30515   as_echo='printf %s\n'
30516   as_echo_n='printf %s'
30517 else
30518   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30519     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30520     as_echo_n='/usr/ucb/echo -n'
30521   else
30522     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30523     as_echo_n_body='eval
30524       arg=$1;
30525       case $arg in #(
30526       *"$as_nl"*)
30527         expr "X$arg" : "X\\(.*\\)$as_nl";
30528         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30529       esac;
30530       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30531     '
30532     export as_echo_n_body
30533     as_echo_n='sh -c $as_echo_n_body as_echo'
30534   fi
30535   export as_echo_body
30536   as_echo='sh -c $as_echo_body as_echo'
30537 fi
30538
30539 # The user is always right.
30540 if test "${PATH_SEPARATOR+set}" != set; then
30541   PATH_SEPARATOR=:
30542   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30543     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30544       PATH_SEPARATOR=';'
30545   }
30546 fi
30547
30548
30549 # IFS
30550 # We need space, tab and new line, in precisely that order.  Quoting is
30551 # there to prevent editors from complaining about space-tab.
30552 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30553 # splitting by setting IFS to empty value.)
30554 IFS=" ""        $as_nl"
30555
30556 # Find who we are.  Look in the path if we contain no directory separator.
30557 case $0 in #((
30558   *[\\/]* ) as_myself=$0 ;;
30559   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30560 for as_dir in $PATH
30561 do
30562   IFS=$as_save_IFS
30563   test -z "$as_dir" && as_dir=.
30564     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30565   done
30566 IFS=$as_save_IFS
30567
30568      ;;
30569 esac
30570 # We did not find ourselves, most probably we were run as `sh COMMAND'
30571 # in which case we are not to be found in the path.
30572 if test "x$as_myself" = x; then
30573   as_myself=$0
30574 fi
30575 if test ! -f "$as_myself"; then
30576   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30577   exit 1
30578 fi
30579
30580 # Unset variables that we do not need and which cause bugs (e.g. in
30581 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30582 # suppresses any "Segmentation fault" message there.  '((' could
30583 # trigger a bug in pdksh 5.2.14.
30584 for as_var in BASH_ENV ENV MAIL MAILPATH
30585 do eval test x\${$as_var+set} = xset \
30586   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30587 done
30588 PS1='$ '
30589 PS2='> '
30590 PS4='+ '
30591
30592 # NLS nuisances.
30593 LC_ALL=C
30594 export LC_ALL
30595 LANGUAGE=C
30596 export LANGUAGE
30597
30598 # CDPATH.
30599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30600
30601
30602 # as_fn_error ERROR [LINENO LOG_FD]
30603 # ---------------------------------
30604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30606 # script with status $?, using 1 if that was 0.
30607 as_fn_error ()
30608 {
30609   as_status=$?; test $as_status -eq 0 && as_status=1
30610   if test "$3"; then
30611     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30612     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30613   fi
30614   $as_echo "$as_me: error: $1" >&2
30615   as_fn_exit $as_status
30616 } # as_fn_error
30617
30618
30619 # as_fn_set_status STATUS
30620 # -----------------------
30621 # Set $? to STATUS, without forking.
30622 as_fn_set_status ()
30623 {
30624   return $1
30625 } # as_fn_set_status
30626
30627 # as_fn_exit STATUS
30628 # -----------------
30629 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30630 as_fn_exit ()
30631 {
30632   set +e
30633   as_fn_set_status $1
30634   exit $1
30635 } # as_fn_exit
30636
30637 # as_fn_unset VAR
30638 # ---------------
30639 # Portably unset VAR.
30640 as_fn_unset ()
30641 {
30642   { eval $1=; unset $1;}
30643 }
30644 as_unset=as_fn_unset
30645 # as_fn_append VAR VALUE
30646 # ----------------------
30647 # Append the text in VALUE to the end of the definition contained in VAR. Take
30648 # advantage of any shell optimizations that allow amortized linear growth over
30649 # repeated appends, instead of the typical quadratic growth present in naive
30650 # implementations.
30651 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30652   eval 'as_fn_append ()
30653   {
30654     eval $1+=\$2
30655   }'
30656 else
30657   as_fn_append ()
30658   {
30659     eval $1=\$$1\$2
30660   }
30661 fi # as_fn_append
30662
30663 # as_fn_arith ARG...
30664 # ------------------
30665 # Perform arithmetic evaluation on the ARGs, and store the result in the
30666 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30667 # must be portable across $(()) and expr.
30668 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30669   eval 'as_fn_arith ()
30670   {
30671     as_val=$(( $* ))
30672   }'
30673 else
30674   as_fn_arith ()
30675   {
30676     as_val=`expr "$@" || test $? -eq 1`
30677   }
30678 fi # as_fn_arith
30679
30680
30681 if expr a : '\(a\)' >/dev/null 2>&1 &&
30682    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30683   as_expr=expr
30684 else
30685   as_expr=false
30686 fi
30687
30688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30689   as_basename=basename
30690 else
30691   as_basename=false
30692 fi
30693
30694 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30695   as_dirname=dirname
30696 else
30697   as_dirname=false
30698 fi
30699
30700 as_me=`$as_basename -- "$0" ||
30701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30702          X"$0" : 'X\(//\)$' \| \
30703          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30704 $as_echo X/"$0" |
30705     sed '/^.*\/\([^/][^/]*\)\/*$/{
30706             s//\1/
30707             q
30708           }
30709           /^X\/\(\/\/\)$/{
30710             s//\1/
30711             q
30712           }
30713           /^X\/\(\/\).*/{
30714             s//\1/
30715             q
30716           }
30717           s/.*/./; q'`
30718
30719 # Avoid depending upon Character Ranges.
30720 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30721 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30722 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30723 as_cr_digits='0123456789'
30724 as_cr_alnum=$as_cr_Letters$as_cr_digits
30725
30726 ECHO_C= ECHO_N= ECHO_T=
30727 case `echo -n x` in #(((((
30728 -n*)
30729   case `echo 'xy\c'` in
30730   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30731   xy)  ECHO_C='\c';;
30732   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30733        ECHO_T=' ';;
30734   esac;;
30735 *)
30736   ECHO_N='-n';;
30737 esac
30738
30739 rm -f conf$$ conf$$.exe conf$$.file
30740 if test -d conf$$.dir; then
30741   rm -f conf$$.dir/conf$$.file
30742 else
30743   rm -f conf$$.dir
30744   mkdir conf$$.dir 2>/dev/null
30745 fi
30746 if (echo >conf$$.file) 2>/dev/null; then
30747   if ln -s conf$$.file conf$$ 2>/dev/null; then
30748     as_ln_s='ln -s'
30749     # ... but there are two gotchas:
30750     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30751     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30752     # In both cases, we have to default to `cp -p'.
30753     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30754       as_ln_s='cp -p'
30755   elif ln conf$$.file conf$$ 2>/dev/null; then
30756     as_ln_s=ln
30757   else
30758     as_ln_s='cp -p'
30759   fi
30760 else
30761   as_ln_s='cp -p'
30762 fi
30763 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30764 rmdir conf$$.dir 2>/dev/null
30765
30766
30767 # as_fn_mkdir_p
30768 # -------------
30769 # Create "$as_dir" as a directory, including parents if necessary.
30770 as_fn_mkdir_p ()
30771 {
30772
30773   case $as_dir in #(
30774   -*) as_dir=./$as_dir;;
30775   esac
30776   test -d "$as_dir" || eval $as_mkdir_p || {
30777     as_dirs=
30778     while :; do
30779       case $as_dir in #(
30780       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30781       *) as_qdir=$as_dir;;
30782       esac
30783       as_dirs="'$as_qdir' $as_dirs"
30784       as_dir=`$as_dirname -- "$as_dir" ||
30785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30786          X"$as_dir" : 'X\(//\)[^/]' \| \
30787          X"$as_dir" : 'X\(//\)$' \| \
30788          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30789 $as_echo X"$as_dir" |
30790     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30791             s//\1/
30792             q
30793           }
30794           /^X\(\/\/\)[^/].*/{
30795             s//\1/
30796             q
30797           }
30798           /^X\(\/\/\)$/{
30799             s//\1/
30800             q
30801           }
30802           /^X\(\/\).*/{
30803             s//\1/
30804             q
30805           }
30806           s/.*/./; q'`
30807       test -d "$as_dir" && break
30808     done
30809     test -z "$as_dirs" || eval "mkdir $as_dirs"
30810   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30811
30812
30813 } # as_fn_mkdir_p
30814 if mkdir -p . 2>/dev/null; then
30815   as_mkdir_p='mkdir -p "$as_dir"'
30816 else
30817   test -d ./-p && rmdir ./-p
30818   as_mkdir_p=false
30819 fi
30820
30821 if test -x / >/dev/null 2>&1; then
30822   as_test_x='test -x'
30823 else
30824   if ls -dL / >/dev/null 2>&1; then
30825     as_ls_L_option=L
30826   else
30827     as_ls_L_option=
30828   fi
30829   as_test_x='
30830     eval sh -c '\''
30831       if test -d "$1"; then
30832         test -d "$1/.";
30833       else
30834         case $1 in #(
30835         -*)set "./$1";;
30836         esac;
30837         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30838         ???[sx]*):;;*)false;;esac;fi
30839     '\'' sh
30840   '
30841 fi
30842 as_executable_p=$as_test_x
30843
30844 # Sed expression to map a string onto a valid CPP name.
30845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30846
30847 # Sed expression to map a string onto a valid variable name.
30848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30849
30850
30851 exec 6>&1
30852 ## ----------------------------------- ##
30853 ## Main body of $CONFIG_STATUS script. ##
30854 ## ----------------------------------- ##
30855 _ASEOF
30856 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30857
30858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30859 # Save the log message, to keep $0 and so on meaningful, and to
30860 # report actual input values of CONFIG_FILES etc. instead of their
30861 # values after options handling.
30862 ac_log="
30863 This file was extended by bacula $as_me 5.2.0, which was
30864 generated by GNU Autoconf 2.65.  Invocation command line was
30865
30866   CONFIG_FILES    = $CONFIG_FILES
30867   CONFIG_HEADERS  = $CONFIG_HEADERS
30868   CONFIG_LINKS    = $CONFIG_LINKS
30869   CONFIG_COMMANDS = $CONFIG_COMMANDS
30870   $ $0 $@
30871
30872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30873 "
30874
30875 _ACEOF
30876
30877 case $ac_config_files in *"
30878 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30879 esac
30880
30881 case $ac_config_headers in *"
30882 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30883 esac
30884
30885
30886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30887 # Files that config.status was made for.
30888 config_files="$ac_config_files"
30889 config_headers="$ac_config_headers"
30890 config_commands="$ac_config_commands"
30891
30892 _ACEOF
30893
30894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30895 ac_cs_usage="\
30896 \`$as_me' instantiates files and other configuration actions
30897 from templates according to the current configuration.  Unless the files
30898 and actions are specified as TAGs, all are instantiated by default.
30899
30900 Usage: $0 [OPTION]... [TAG]...
30901
30902   -h, --help       print this help, then exit
30903   -V, --version    print version number and configuration settings, then exit
30904       --config     print configuration, then exit
30905   -q, --quiet, --silent
30906                    do not print progress messages
30907   -d, --debug      don't remove temporary files
30908       --recheck    update $as_me by reconfiguring in the same conditions
30909       --file=FILE[:TEMPLATE]
30910                    instantiate the configuration file FILE
30911       --header=FILE[:TEMPLATE]
30912                    instantiate the configuration header FILE
30913
30914 Configuration files:
30915 $config_files
30916
30917 Configuration headers:
30918 $config_headers
30919
30920 Configuration commands:
30921 $config_commands
30922
30923 Report bugs to the package provider."
30924
30925 _ACEOF
30926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30927 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30928 ac_cs_version="\\
30929 bacula config.status 5.2.0
30930 configured by $0, generated by GNU Autoconf 2.65,
30931   with options \\"\$ac_cs_config\\"
30932
30933 Copyright (C) 2009 Free Software Foundation, Inc.
30934 This config.status script is free software; the Free Software Foundation
30935 gives unlimited permission to copy, distribute and modify it."
30936
30937 ac_pwd='$ac_pwd'
30938 srcdir='$srcdir'
30939 INSTALL='$INSTALL'
30940 AWK='$AWK'
30941 test -n "\$AWK" || AWK=awk
30942 _ACEOF
30943
30944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30945 # The default lists apply if the user does not specify any file.
30946 ac_need_defaults=:
30947 while test $# != 0
30948 do
30949   case $1 in
30950   --*=*)
30951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30952     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30953     ac_shift=:
30954     ;;
30955   *)
30956     ac_option=$1
30957     ac_optarg=$2
30958     ac_shift=shift
30959     ;;
30960   esac
30961
30962   case $ac_option in
30963   # Handling of the options.
30964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30965     ac_cs_recheck=: ;;
30966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30967     $as_echo "$ac_cs_version"; exit ;;
30968   --config | --confi | --conf | --con | --co | --c )
30969     $as_echo "$ac_cs_config"; exit ;;
30970   --debug | --debu | --deb | --de | --d | -d )
30971     debug=: ;;
30972   --file | --fil | --fi | --f )
30973     $ac_shift
30974     case $ac_optarg in
30975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30976     esac
30977     as_fn_append CONFIG_FILES " '$ac_optarg'"
30978     ac_need_defaults=false;;
30979   --header | --heade | --head | --hea )
30980     $ac_shift
30981     case $ac_optarg in
30982     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30983     esac
30984     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30985     ac_need_defaults=false;;
30986   --he | --h)
30987     # Conflict between --help and --header
30988     as_fn_error "ambiguous option: \`$1'
30989 Try \`$0 --help' for more information.";;
30990   --help | --hel | -h )
30991     $as_echo "$ac_cs_usage"; exit ;;
30992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30993   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30994     ac_cs_silent=: ;;
30995
30996   # This is an error.
30997   -*) as_fn_error "unrecognized option: \`$1'
30998 Try \`$0 --help' for more information." ;;
30999
31000   *) as_fn_append ac_config_targets " $1"
31001      ac_need_defaults=false ;;
31002
31003   esac
31004   shift
31005 done
31006
31007 ac_configure_extra_args=
31008
31009 if $ac_cs_silent; then
31010   exec 6>/dev/null
31011   ac_configure_extra_args="$ac_configure_extra_args --silent"
31012 fi
31013
31014 _ACEOF
31015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31016 if \$ac_cs_recheck; then
31017   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31018   shift
31019   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31020   CONFIG_SHELL='$SHELL'
31021   export CONFIG_SHELL
31022   exec "\$@"
31023 fi
31024
31025 _ACEOF
31026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31027 exec 5>>config.log
31028 {
31029   echo
31030   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31031 ## Running $as_me. ##
31032 _ASBOX
31033   $as_echo "$ac_log"
31034 } >&5
31035
31036 _ACEOF
31037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31038 #
31039 # INIT-COMMANDS
31040 #
31041
31042
31043 # The HP-UX ksh and POSIX shell print the target directory to stdout
31044 # if CDPATH is set.
31045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31046
31047 sed_quote_subst='$sed_quote_subst'
31048 double_quote_subst='$double_quote_subst'
31049 delay_variable_subst='$delay_variable_subst'
31050 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31051 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31052 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31053 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31054 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31055 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31056 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31057 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31058 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31059 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31060 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31061 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31062 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31063 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31064 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31065 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31066 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31067 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31068 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31069 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31070 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31071 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31072 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31073 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31074 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31075 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31076 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31077 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31078 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31079 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31080 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31081 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31082 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31083 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31084 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31085 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31086 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31087 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31088 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31089 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31090 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31091 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31092 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31093 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31094 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31095 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31096 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31097 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31098 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31099 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31100 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31101 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31102 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31103 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31104 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31105 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"`'
31106 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31107 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31108 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31109 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31110 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31111 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31112 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31113 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31114 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31115 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31116 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31117 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31118 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31119 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31120 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31121 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31122 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31123 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31124 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31125 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31126 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31127 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31128 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31129 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31130 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31131 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31132 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31133 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31134 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31135 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31136 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31137 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31138 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31139 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31140 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31141 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31142 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31143 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31144 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31145 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31146 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31147 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31148 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31149 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31150 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31151 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31152 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31153 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31154 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31155 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31156 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31157 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31158 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31159 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31160 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31161 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31162 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31163 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31164 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31165 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31166 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31167 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31168 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31169 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31170 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31171 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31172 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31173 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31174 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31175 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31176 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31177 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31178 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31179 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31180 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31181 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31182 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31183 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31184 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31185 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31186 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31187 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31188 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31189 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31190 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31191 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31192 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31193 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31194 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31195 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31196 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31197 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31198 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31199 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31200 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31201 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31202 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31203 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31204 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31205 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31206 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31207 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31208 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31209 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31210 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31211 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31212 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31213 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31214 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31215 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31216 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31217 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31218 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31219 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31220 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31221 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31222 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31223 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31224 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31225 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31226 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31227 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31228 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31229 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31230 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31231 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31232 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31233 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31234 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31235
31236 LTCC='$LTCC'
31237 LTCFLAGS='$LTCFLAGS'
31238 compiler='$compiler_DEFAULT'
31239
31240 # A function that is used when there is no print builtin or printf.
31241 func_fallback_echo ()
31242 {
31243   eval 'cat <<_LTECHO_EOF
31244 \$1
31245 _LTECHO_EOF'
31246 }
31247
31248 # Quote evaled strings.
31249 for var in SHELL \
31250 ECHO \
31251 SED \
31252 GREP \
31253 EGREP \
31254 FGREP \
31255 LD \
31256 NM \
31257 LN_S \
31258 lt_SP2NL \
31259 lt_NL2SP \
31260 reload_flag \
31261 OBJDUMP \
31262 deplibs_check_method \
31263 file_magic_cmd \
31264 file_magic_glob \
31265 want_nocaseglob \
31266 DLLTOOL \
31267 sharedlib_from_linklib_cmd \
31268 AR \
31269 AR_FLAGS \
31270 archiver_list_spec \
31271 STRIP \
31272 RANLIB \
31273 CC \
31274 CFLAGS \
31275 compiler \
31276 lt_cv_sys_global_symbol_pipe \
31277 lt_cv_sys_global_symbol_to_cdecl \
31278 lt_cv_sys_global_symbol_to_c_name_address \
31279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31280 nm_file_list_spec \
31281 lt_prog_compiler_no_builtin_flag \
31282 lt_prog_compiler_pic \
31283 lt_prog_compiler_wl \
31284 lt_prog_compiler_static \
31285 lt_cv_prog_compiler_c_o \
31286 need_locks \
31287 MANIFEST_TOOL \
31288 DSYMUTIL \
31289 NMEDIT \
31290 LIPO \
31291 OTOOL \
31292 OTOOL64 \
31293 shrext_cmds \
31294 export_dynamic_flag_spec \
31295 whole_archive_flag_spec \
31296 compiler_needs_object \
31297 with_gnu_ld \
31298 allow_undefined_flag \
31299 no_undefined_flag \
31300 hardcode_libdir_flag_spec \
31301 hardcode_libdir_flag_spec_ld \
31302 hardcode_libdir_separator \
31303 exclude_expsyms \
31304 include_expsyms \
31305 file_list_spec \
31306 variables_saved_for_relink \
31307 libname_spec \
31308 library_names_spec \
31309 soname_spec \
31310 install_override_mode \
31311 finish_eval \
31312 old_striplib \
31313 striplib \
31314 compiler_lib_search_dirs \
31315 predep_objects \
31316 postdep_objects \
31317 predeps \
31318 postdeps \
31319 compiler_lib_search_path \
31320 LD_CXX \
31321 reload_flag_CXX \
31322 compiler_CXX \
31323 lt_prog_compiler_no_builtin_flag_CXX \
31324 lt_prog_compiler_pic_CXX \
31325 lt_prog_compiler_wl_CXX \
31326 lt_prog_compiler_static_CXX \
31327 lt_cv_prog_compiler_c_o_CXX \
31328 export_dynamic_flag_spec_CXX \
31329 whole_archive_flag_spec_CXX \
31330 compiler_needs_object_CXX \
31331 with_gnu_ld_CXX \
31332 allow_undefined_flag_CXX \
31333 no_undefined_flag_CXX \
31334 hardcode_libdir_flag_spec_CXX \
31335 hardcode_libdir_flag_spec_ld_CXX \
31336 hardcode_libdir_separator_CXX \
31337 exclude_expsyms_CXX \
31338 include_expsyms_CXX \
31339 file_list_spec_CXX \
31340 compiler_lib_search_dirs_CXX \
31341 predep_objects_CXX \
31342 postdep_objects_CXX \
31343 predeps_CXX \
31344 postdeps_CXX \
31345 compiler_lib_search_path_CXX; do
31346     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31347     *[\\\\\\\`\\"\\\$]*)
31348       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31349       ;;
31350     *)
31351       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31352       ;;
31353     esac
31354 done
31355
31356 # Double-quote double-evaled strings.
31357 for var in reload_cmds \
31358 old_postinstall_cmds \
31359 old_postuninstall_cmds \
31360 old_archive_cmds \
31361 extract_expsyms_cmds \
31362 old_archive_from_new_cmds \
31363 old_archive_from_expsyms_cmds \
31364 archive_cmds \
31365 archive_expsym_cmds \
31366 module_cmds \
31367 module_expsym_cmds \
31368 export_symbols_cmds \
31369 prelink_cmds \
31370 postlink_cmds \
31371 postinstall_cmds \
31372 postuninstall_cmds \
31373 finish_cmds \
31374 sys_lib_search_path_spec \
31375 sys_lib_dlsearch_path_spec \
31376 reload_cmds_CXX \
31377 old_archive_cmds_CXX \
31378 old_archive_from_new_cmds_CXX \
31379 old_archive_from_expsyms_cmds_CXX \
31380 archive_cmds_CXX \
31381 archive_expsym_cmds_CXX \
31382 module_cmds_CXX \
31383 module_expsym_cmds_CXX \
31384 export_symbols_cmds_CXX \
31385 prelink_cmds_CXX \
31386 postlink_cmds_CXX; do
31387     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31388     *[\\\\\\\`\\"\\\$]*)
31389       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31390       ;;
31391     *)
31392       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31393       ;;
31394     esac
31395 done
31396
31397 ac_aux_dir='$ac_aux_dir'
31398 xsi_shell='$xsi_shell'
31399 lt_shell_append='$lt_shell_append'
31400
31401 # See if we are running on zsh, and set the options which allow our
31402 # commands through without removal of \ escapes INIT.
31403 if test -n "\${ZSH_VERSION+set}" ; then
31404    setopt NO_GLOB_SUBST
31405 fi
31406
31407
31408     PACKAGE='$PACKAGE'
31409     VERSION='$VERSION'
31410     TIMESTAMP='$TIMESTAMP'
31411     RM='$RM'
31412     ofile='$ofile'
31413
31414
31415
31416
31417
31418 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31419     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31420     # from automake.
31421     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31422     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31423     LINGUAS="${LINGUAS-%UNSET%}"
31424
31425
31426 _ACEOF
31427
31428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31429
31430 # Handling of arguments.
31431 for ac_config_target in $ac_config_targets
31432 do
31433   case $ac_config_target in
31434     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31435     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31436     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31437     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31438     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31439     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31440     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31441     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31442     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31443     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31444     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31445     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31446     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31447     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31448     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31449     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31450     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31451     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31452     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31453     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31454     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31455     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31456     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31457     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31458     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31459     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31460     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31461     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31462     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31463     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31464     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31465     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31466     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31467     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31468     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31469     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31470     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31471     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31472     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31473     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31474     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31475     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31476     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31477     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31478     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31479     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31480     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31481     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31482     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31483     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31484     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31485     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31486     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31487     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31488     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31489     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31490     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31491     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31492     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31493     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31494     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31495     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31496     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31497     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31498     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31499     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31500     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31501     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31502     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31503     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31504     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31505     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31506     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31507     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31508     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31509     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31510     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31511     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31512     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31513     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31514     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31515     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31516     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31517     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31518     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31519     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31520     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31521     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31522     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31523     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31524     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31525     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31526     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31527     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31528     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31529     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31530     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31531     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31532     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31533     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31534     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31535     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31536     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31537     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31538     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31539     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31540     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31541     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31542     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31543
31544   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31545   esac
31546 done
31547
31548
31549 # If the user did not use the arguments to specify the items to instantiate,
31550 # then the envvar interface is used.  Set only those that are not.
31551 # We use the long form for the default assignment because of an extremely
31552 # bizarre bug on SunOS 4.1.3.
31553 if $ac_need_defaults; then
31554   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31555   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31556   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31557 fi
31558
31559 # Have a temporary directory for convenience.  Make it in the build tree
31560 # simply because there is no reason against having it here, and in addition,
31561 # creating and moving files from /tmp can sometimes cause problems.
31562 # Hook for its removal unless debugging.
31563 # Note that there is a small window in which the directory will not be cleaned:
31564 # after its creation but before its name has been assigned to `$tmp'.
31565 $debug ||
31566 {
31567   tmp=
31568   trap 'exit_status=$?
31569   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31570 ' 0
31571   trap 'as_fn_exit 1' 1 2 13 15
31572 }
31573 # Create a (secure) tmp directory for tmp files.
31574
31575 {
31576   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31577   test -n "$tmp" && test -d "$tmp"
31578 }  ||
31579 {
31580   tmp=./conf$$-$RANDOM
31581   (umask 077 && mkdir "$tmp")
31582 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31583
31584 # Set up the scripts for CONFIG_FILES section.
31585 # No need to generate them if there are no CONFIG_FILES.
31586 # This happens for instance with `./config.status config.h'.
31587 if test -n "$CONFIG_FILES"; then
31588
31589 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31590   ac_cs_awk_getline=:
31591   ac_cs_awk_pipe_init=
31592   ac_cs_awk_read_file='
31593       while ((getline aline < (F[key])) > 0)
31594         print(aline)
31595       close(F[key])'
31596   ac_cs_awk_pipe_fini=
31597 else
31598   ac_cs_awk_getline=false
31599   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31600   ac_cs_awk_read_file='
31601       print "|#_!!_#|"
31602       print "cat " F[key] " &&"
31603       '$ac_cs_awk_pipe_init
31604   # The final `:' finishes the AND list.
31605   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31606 fi
31607 ac_cr=`echo X | tr X '\015'`
31608 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31609 # But we know of no other shell where ac_cr would be empty at this
31610 # point, so we can use a bashism as a fallback.
31611 if test "x$ac_cr" = x; then
31612   eval ac_cr=\$\'\\r\'
31613 fi
31614 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31616   ac_cs_awk_cr='\r'
31617 else
31618   ac_cs_awk_cr=$ac_cr
31619 fi
31620
31621 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31622 _ACEOF
31623
31624 # Create commands to substitute file output variables.
31625 {
31626   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31627   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31628   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31629   echo "_ACAWK" &&
31630   echo "_ACEOF"
31631 } >conf$$files.sh &&
31632 . ./conf$$files.sh ||
31633   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31634 rm -f conf$$files.sh
31635
31636 {
31637   echo "cat >conf$$subs.awk <<_ACEOF" &&
31638   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31639   echo "_ACEOF"
31640 } >conf$$subs.sh ||
31641   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31643 ac_delim='%!_!# '
31644 for ac_last_try in false false false false false :; do
31645   . ./conf$$subs.sh ||
31646     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31647
31648   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31649   if test $ac_delim_n = $ac_delim_num; then
31650     break
31651   elif $ac_last_try; then
31652     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31653   else
31654     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31655   fi
31656 done
31657 rm -f conf$$subs.sh
31658
31659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31660 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31661 _ACEOF
31662 sed -n '
31663 h
31664 s/^/S["/; s/!.*/"]=/
31665 p
31666 g
31667 s/^[^!]*!//
31668 :repl
31669 t repl
31670 s/'"$ac_delim"'$//
31671 t delim
31672 :nl
31673 h
31674 s/\(.\{148\}\)..*/\1/
31675 t more1
31676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31677 p
31678 n
31679 b repl
31680 :more1
31681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31682 p
31683 g
31684 s/.\{148\}//
31685 t nl
31686 :delim
31687 h
31688 s/\(.\{148\}\)..*/\1/
31689 t more2
31690 s/["\\]/\\&/g; s/^/"/; s/$/"/
31691 p
31692 b
31693 :more2
31694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31695 p
31696 g
31697 s/.\{148\}//
31698 t delim
31699 ' <conf$$subs.awk | sed '
31700 /^[^""]/{
31701   N
31702   s/\n//
31703 }
31704 ' >>$CONFIG_STATUS || ac_write_fail=1
31705 rm -f conf$$subs.awk
31706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31707 _ACAWK
31708 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31709   for (key in S) S_is_set[key] = 1
31710   FS = "\a"
31711   \$ac_cs_awk_pipe_init
31712 }
31713 {
31714   line = $ 0
31715   nfields = split(line, field, "@")
31716   substed = 0
31717   len = length(field[1])
31718   for (i = 2; i < nfields; i++) {
31719     key = field[i]
31720     keylen = length(key)
31721     if (S_is_set[key]) {
31722       value = S[key]
31723       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31724       len += length(value) + length(field[++i])
31725       substed = 1
31726     } else
31727       len += 1 + keylen
31728   }
31729   if (nfields == 3 && !substed) {
31730     key = field[2]
31731     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31732       \$ac_cs_awk_read_file
31733       next
31734     }
31735   }
31736   print line
31737 }
31738 \$ac_cs_awk_pipe_fini
31739 _ACAWK
31740 _ACEOF
31741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31743   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31744 else
31745   cat
31746 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31747   || as_fn_error "could not setup config files machinery" "$LINENO" 5
31748 _ACEOF
31749
31750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31752 # trailing colons and then remove the whole line if VPATH becomes empty
31753 # (actually we leave an empty line to preserve line numbers).
31754 if test "x$srcdir" = x.; then
31755   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31756 s/:*\$(srcdir):*/:/
31757 s/:*\${srcdir}:*/:/
31758 s/:*@srcdir@:*/:/
31759 s/^\([^=]*=[     ]*\):*/\1/
31760 s/:*$//
31761 s/^[^=]*=[       ]*$//
31762 }'
31763 fi
31764
31765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31766 fi # test -n "$CONFIG_FILES"
31767
31768 # Set up the scripts for CONFIG_HEADERS section.
31769 # No need to generate them if there are no CONFIG_HEADERS.
31770 # This happens for instance with `./config.status Makefile'.
31771 if test -n "$CONFIG_HEADERS"; then
31772 cat >"$tmp/defines.awk" <<\_ACAWK ||
31773 BEGIN {
31774 _ACEOF
31775
31776 # Transform confdefs.h into an awk script `defines.awk', embedded as
31777 # here-document in config.status, that substitutes the proper values into
31778 # config.h.in to produce config.h.
31779
31780 # Create a delimiter string that does not exist in confdefs.h, to ease
31781 # handling of long lines.
31782 ac_delim='%!_!# '
31783 for ac_last_try in false false :; do
31784   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31785   if test -z "$ac_t"; then
31786     break
31787   elif $ac_last_try; then
31788     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31789   else
31790     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31791   fi
31792 done
31793
31794 # For the awk script, D is an array of macro values keyed by name,
31795 # likewise P contains macro parameters if any.  Preserve backslash
31796 # newline sequences.
31797
31798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31799 sed -n '
31800 s/.\{148\}/&'"$ac_delim"'/g
31801 t rset
31802 :rset
31803 s/^[     ]*#[    ]*define[       ][      ]*/ /
31804 t def
31805 d
31806 :def
31807 s/\\$//
31808 t bsnl
31809 s/["\\]/\\&/g
31810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31811 D["\1"]=" \3"/p
31812 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31813 d
31814 :bsnl
31815 s/["\\]/\\&/g
31816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31817 D["\1"]=" \3\\\\\\n"\\/p
31818 t cont
31819 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31820 t cont
31821 d
31822 :cont
31823 n
31824 s/.\{148\}/&'"$ac_delim"'/g
31825 t clear
31826 :clear
31827 s/\\$//
31828 t bsnlc
31829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31830 d
31831 :bsnlc
31832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31833 b cont
31834 ' <confdefs.h | sed '
31835 s/'"$ac_delim"'/"\\\
31836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31837
31838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31839   for (key in D) D_is_set[key] = 1
31840   FS = "\a"
31841 }
31842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31843   line = \$ 0
31844   split(line, arg, " ")
31845   if (arg[1] == "#") {
31846     defundef = arg[2]
31847     mac1 = arg[3]
31848   } else {
31849     defundef = substr(arg[1], 2)
31850     mac1 = arg[2]
31851   }
31852   split(mac1, mac2, "(") #)
31853   macro = mac2[1]
31854   prefix = substr(line, 1, index(line, defundef) - 1)
31855   if (D_is_set[macro]) {
31856     # Preserve the white space surrounding the "#".
31857     print prefix "define", macro P[macro] D[macro]
31858     next
31859   } else {
31860     # Replace #undef with comments.  This is necessary, for example,
31861     # in the case of _POSIX_SOURCE, which is predefined and required
31862     # on some systems where configure will not decide to define it.
31863     if (defundef == "undef") {
31864       print "/*", prefix defundef, macro, "*/"
31865       next
31866     }
31867   }
31868 }
31869 { print }
31870 _ACAWK
31871 _ACEOF
31872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31873   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31874 fi # test -n "$CONFIG_HEADERS"
31875
31876
31877 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31878 shift
31879 for ac_tag
31880 do
31881   case $ac_tag in
31882   :[FHLC]) ac_mode=$ac_tag; continue;;
31883   esac
31884   case $ac_mode$ac_tag in
31885   :[FHL]*:*);;
31886   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31887   :[FH]-) ac_tag=-:-;;
31888   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31889   esac
31890   ac_save_IFS=$IFS
31891   IFS=:
31892   set x $ac_tag
31893   IFS=$ac_save_IFS
31894   shift
31895   ac_file=$1
31896   shift
31897
31898   case $ac_mode in
31899   :L) ac_source=$1;;
31900   :[FH])
31901     ac_file_inputs=
31902     for ac_f
31903     do
31904       case $ac_f in
31905       -) ac_f="$tmp/stdin";;
31906       *) # Look for the file first in the build tree, then in the source tree
31907          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31908          # because $ac_f cannot contain `:'.
31909          test -f "$ac_f" ||
31910            case $ac_f in
31911            [\\/$]*) false;;
31912            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31913            esac ||
31914            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31915       esac
31916       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31917       as_fn_append ac_file_inputs " '$ac_f'"
31918     done
31919
31920     # Let's still pretend it is `configure' which instantiates (i.e., don't
31921     # use $as_me), people would be surprised to read:
31922     #    /* config.h.  Generated by config.status.  */
31923     configure_input='Generated from '`
31924           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31925         `' by configure.'
31926     if test x"$ac_file" != x-; then
31927       configure_input="$ac_file.  $configure_input"
31928       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31929 $as_echo "$as_me: creating $ac_file" >&6;}
31930     fi
31931     # Neutralize special characters interpreted by sed in replacement strings.
31932     case $configure_input in #(
31933     *\&* | *\|* | *\\* )
31934        ac_sed_conf_input=`$as_echo "$configure_input" |
31935        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31936     *) ac_sed_conf_input=$configure_input;;
31937     esac
31938
31939     case $ac_tag in
31940     *:-:* | *:-) cat >"$tmp/stdin" \
31941       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31942     esac
31943     ;;
31944   esac
31945
31946   ac_dir=`$as_dirname -- "$ac_file" ||
31947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31948          X"$ac_file" : 'X\(//\)[^/]' \| \
31949          X"$ac_file" : 'X\(//\)$' \| \
31950          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31951 $as_echo X"$ac_file" |
31952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31953             s//\1/
31954             q
31955           }
31956           /^X\(\/\/\)[^/].*/{
31957             s//\1/
31958             q
31959           }
31960           /^X\(\/\/\)$/{
31961             s//\1/
31962             q
31963           }
31964           /^X\(\/\).*/{
31965             s//\1/
31966             q
31967           }
31968           s/.*/./; q'`
31969   as_dir="$ac_dir"; as_fn_mkdir_p
31970   ac_builddir=.
31971
31972 case "$ac_dir" in
31973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31974 *)
31975   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31976   # A ".." for each directory in $ac_dir_suffix.
31977   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31978   case $ac_top_builddir_sub in
31979   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31980   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31981   esac ;;
31982 esac
31983 ac_abs_top_builddir=$ac_pwd
31984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31985 # for backward compatibility:
31986 ac_top_builddir=$ac_top_build_prefix
31987
31988 case $srcdir in
31989   .)  # We are building in place.
31990     ac_srcdir=.
31991     ac_top_srcdir=$ac_top_builddir_sub
31992     ac_abs_top_srcdir=$ac_pwd ;;
31993   [\\/]* | ?:[\\/]* )  # Absolute name.
31994     ac_srcdir=$srcdir$ac_dir_suffix;
31995     ac_top_srcdir=$srcdir
31996     ac_abs_top_srcdir=$srcdir ;;
31997   *) # Relative name.
31998     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31999     ac_top_srcdir=$ac_top_build_prefix$srcdir
32000     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32001 esac
32002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32003
32004
32005   case $ac_mode in
32006   :F)
32007   #
32008   # CONFIG_FILE
32009   #
32010
32011   case $INSTALL in
32012   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32013   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32014   esac
32015 _ACEOF
32016
32017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32018 # If the template does not know about datarootdir, expand it.
32019 # FIXME: This hack should be removed a few years after 2.60.
32020 ac_datarootdir_hack=; ac_datarootdir_seen=
32021 ac_sed_dataroot='
32022 /datarootdir/ {
32023   p
32024   q
32025 }
32026 /@datadir@/p
32027 /@docdir@/p
32028 /@infodir@/p
32029 /@localedir@/p
32030 /@mandir@/p'
32031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32032 *datarootdir*) ac_datarootdir_seen=yes;;
32033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32034   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32035 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32036 _ACEOF
32037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32038   ac_datarootdir_hack='
32039   s&@datadir@&$datadir&g
32040   s&@docdir@&$docdir&g
32041   s&@infodir@&$infodir&g
32042   s&@localedir@&$localedir&g
32043   s&@mandir@&$mandir&g
32044   s&\\\${datarootdir}&$datarootdir&g' ;;
32045 esac
32046 _ACEOF
32047
32048 # Neutralize VPATH when `$srcdir' = `.'.
32049 # Shell code in configure.ac might set extrasub.
32050 # FIXME: do we really want to maintain this feature?
32051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32052 ac_sed_extra="$ac_vpsub
32053 $extrasub
32054 _ACEOF
32055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32056 :t
32057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32058 s|@configure_input@|$ac_sed_conf_input|;t t
32059 s&@top_builddir@&$ac_top_builddir_sub&;t t
32060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32061 s&@srcdir@&$ac_srcdir&;t t
32062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32063 s&@top_srcdir@&$ac_top_srcdir&;t t
32064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32065 s&@builddir@&$ac_builddir&;t t
32066 s&@abs_builddir@&$ac_abs_builddir&;t t
32067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32068 s&@INSTALL@&$ac_INSTALL&;t t
32069 $ac_datarootdir_hack
32070 "
32071 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32072 if $ac_cs_awk_getline; then
32073   $AWK -f "$tmp/subs.awk"
32074 else
32075   $AWK -f "$tmp/subs.awk" | $SHELL
32076 fi >$tmp/out \
32077   || as_fn_error "could not create $ac_file" "$LINENO" 5
32078
32079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32080   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32081   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32083 which seems to be undefined.  Please make sure it is defined." >&5
32084 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32085 which seems to be undefined.  Please make sure it is defined." >&2;}
32086
32087   rm -f "$tmp/stdin"
32088   case $ac_file in
32089   -) cat "$tmp/out" && rm -f "$tmp/out";;
32090   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32091   esac \
32092   || as_fn_error "could not create $ac_file" "$LINENO" 5
32093  ;;
32094   :H)
32095   #
32096   # CONFIG_HEADER
32097   #
32098   if test x"$ac_file" != x-; then
32099     {
32100       $as_echo "/* $configure_input  */" \
32101       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32102     } >"$tmp/config.h" \
32103       || as_fn_error "could not create $ac_file" "$LINENO" 5
32104     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32105       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32106 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32107     else
32108       rm -f "$ac_file"
32109       mv "$tmp/config.h" "$ac_file" \
32110         || as_fn_error "could not create $ac_file" "$LINENO" 5
32111     fi
32112   else
32113     $as_echo "/* $configure_input  */" \
32114       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32115       || as_fn_error "could not create -" "$LINENO" 5
32116   fi
32117  ;;
32118
32119   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32120 $as_echo "$as_me: executing $ac_file commands" >&6;}
32121  ;;
32122   esac
32123
32124
32125   case $ac_file$ac_mode in
32126     "libtool":C)
32127
32128     # See if we are running on zsh, and set the options which allow our
32129     # commands through without removal of \ escapes.
32130     if test -n "${ZSH_VERSION+set}" ; then
32131       setopt NO_GLOB_SUBST
32132     fi
32133
32134     cfgfile="${ofile}T"
32135     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32136     $RM "$cfgfile"
32137
32138     cat <<_LT_EOF >> "$cfgfile"
32139 #! $SHELL
32140
32141 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32142 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32143 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32145 #
32146 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32147 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32148 #                 Inc.
32149 #   Written by Gordon Matzigkeit, 1996
32150 #
32151 #   This file is part of GNU Libtool.
32152 #
32153 # GNU Libtool is free software; you can redistribute it and/or
32154 # modify it under the terms of the GNU General Public License as
32155 # published by the Free Software Foundation; either version 2 of
32156 # the License, or (at your option) any later version.
32157 #
32158 # As a special exception to the GNU General Public License,
32159 # if you distribute this file as part of a program or library that
32160 # is built using GNU Libtool, you may include this file under the
32161 # same distribution terms that you use for the rest of that program.
32162 #
32163 # GNU Libtool is distributed in the hope that it will be useful,
32164 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32166 # GNU General Public License for more details.
32167 #
32168 # You should have received a copy of the GNU General Public License
32169 # along with GNU Libtool; see the file COPYING.  If not, a copy
32170 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32171 # obtained by writing to the Free Software Foundation, Inc.,
32172 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32173
32174
32175 # The names of the tagged configurations supported by this script.
32176 available_tags="CXX "
32177
32178 # ### BEGIN LIBTOOL CONFIG
32179
32180 # Which release of libtool.m4 was used?
32181 macro_version=$macro_version
32182 macro_revision=$macro_revision
32183
32184 # Whether or not to build shared libraries.
32185 build_libtool_libs=$enable_shared
32186
32187 # Whether or not to build static libraries.
32188 build_old_libs=$enable_static
32189
32190 # What type of objects to build.
32191 pic_mode=$pic_mode
32192
32193 # Whether or not to optimize for fast installation.
32194 fast_install=$enable_fast_install
32195
32196 # Shell to use when invoking shell scripts.
32197 SHELL=$lt_SHELL
32198
32199 # An echo program that protects backslashes.
32200 ECHO=$lt_ECHO
32201
32202 # The host system.
32203 host_alias=$host_alias
32204 host=$host
32205 host_os=$host_os
32206
32207 # The build system.
32208 build_alias=$build_alias
32209 build=$build
32210 build_os=$build_os
32211
32212 # A sed program that does not truncate output.
32213 SED=$lt_SED
32214
32215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32216 Xsed="\$SED -e 1s/^X//"
32217
32218 # A grep program that handles long lines.
32219 GREP=$lt_GREP
32220
32221 # An ERE matcher.
32222 EGREP=$lt_EGREP
32223
32224 # A literal string matcher.
32225 FGREP=$lt_FGREP
32226
32227 # A BSD- or MS-compatible name lister.
32228 NM=$lt_NM
32229
32230 # Whether we need soft or hard links.
32231 LN_S=$lt_LN_S
32232
32233 # What is the maximum length of a command?
32234 max_cmd_len=$max_cmd_len
32235
32236 # Object file suffix (normally "o").
32237 objext=$ac_objext
32238
32239 # Executable file suffix (normally "").
32240 exeext=$exeext
32241
32242 # whether the shell understands "unset".
32243 lt_unset=$lt_unset
32244
32245 # turn spaces into newlines.
32246 SP2NL=$lt_lt_SP2NL
32247
32248 # turn newlines into spaces.
32249 NL2SP=$lt_lt_NL2SP
32250
32251 # convert \$build file names to \$host format.
32252 to_host_file_cmd=$lt_cv_to_host_file_cmd
32253
32254 # convert \$build files to toolchain format.
32255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32256
32257 # An object symbol dumper.
32258 OBJDUMP=$lt_OBJDUMP
32259
32260 # Method to check whether dependent libraries are shared objects.
32261 deplibs_check_method=$lt_deplibs_check_method
32262
32263 # Command to use when deplibs_check_method = "file_magic".
32264 file_magic_cmd=$lt_file_magic_cmd
32265
32266 # How to find potential files when deplibs_check_method = "file_magic".
32267 file_magic_glob=$lt_file_magic_glob
32268
32269 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32270 want_nocaseglob=$lt_want_nocaseglob
32271
32272 # DLL creation program.
32273 DLLTOOL=$lt_DLLTOOL
32274
32275 # Command to associate shared and link libraries.
32276 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32277
32278 # The archiver.
32279 AR=$lt_AR
32280
32281 # Flags to create an archive.
32282 AR_FLAGS=$lt_AR_FLAGS
32283
32284 # How to feed a file listing to the archiver.
32285 archiver_list_spec=$lt_archiver_list_spec
32286
32287 # A symbol stripping program.
32288 STRIP=$lt_STRIP
32289
32290 # Commands used to install an old-style archive.
32291 RANLIB=$lt_RANLIB
32292 old_postinstall_cmds=$lt_old_postinstall_cmds
32293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32294
32295 # Whether to use a lock for old archive extraction.
32296 lock_old_archive_extraction=$lock_old_archive_extraction
32297
32298 # A C compiler.
32299 LTCC=$lt_CC
32300
32301 # LTCC compiler flags.
32302 LTCFLAGS=$lt_CFLAGS
32303
32304 # Take the output of nm and produce a listing of raw symbols and C names.
32305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32306
32307 # Transform the output of nm in a proper C declaration.
32308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32309
32310 # Transform the output of nm in a C name address pair.
32311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32312
32313 # Transform the output of nm in a C name address pair when lib prefix is needed.
32314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32315
32316 # Specify filename containing input files for \$NM.
32317 nm_file_list_spec=$lt_nm_file_list_spec
32318
32319 # The root where to search for dependent libraries,and in which our libraries should be installed.
32320 lt_sysroot=$lt_sysroot
32321
32322 # The name of the directory that contains temporary libtool files.
32323 objdir=$objdir
32324
32325 # Used to examine libraries when file_magic_cmd begins with "file".
32326 MAGIC_CMD=$MAGIC_CMD
32327
32328 # Must we lock files when doing compilation?
32329 need_locks=$lt_need_locks
32330
32331 # Manifest tool.
32332 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32333
32334 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32335 DSYMUTIL=$lt_DSYMUTIL
32336
32337 # Tool to change global to local symbols on Mac OS X.
32338 NMEDIT=$lt_NMEDIT
32339
32340 # Tool to manipulate fat objects and archives on Mac OS X.
32341 LIPO=$lt_LIPO
32342
32343 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32344 OTOOL=$lt_OTOOL
32345
32346 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32347 OTOOL64=$lt_OTOOL64
32348
32349 # Old archive suffix (normally "a").
32350 libext=$libext
32351
32352 # Shared library suffix (normally ".so").
32353 shrext_cmds=$lt_shrext_cmds
32354
32355 # The commands to extract the exported symbol list from a shared archive.
32356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32357
32358 # Variables whose values should be saved in libtool wrapper scripts and
32359 # restored at link time.
32360 variables_saved_for_relink=$lt_variables_saved_for_relink
32361
32362 # Do we need the "lib" prefix for modules?
32363 need_lib_prefix=$need_lib_prefix
32364
32365 # Do we need a version for libraries?
32366 need_version=$need_version
32367
32368 # Library versioning type.
32369 version_type=$version_type
32370
32371 # Shared library runtime path variable.
32372 runpath_var=$runpath_var
32373
32374 # Shared library path variable.
32375 shlibpath_var=$shlibpath_var
32376
32377 # Is shlibpath searched before the hard-coded library search path?
32378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32379
32380 # Format of library name prefix.
32381 libname_spec=$lt_libname_spec
32382
32383 # List of archive names.  First name is the real one, the rest are links.
32384 # The last name is the one that the linker finds with -lNAME
32385 library_names_spec=$lt_library_names_spec
32386
32387 # The coded name of the library, if different from the real name.
32388 soname_spec=$lt_soname_spec
32389
32390 # Permission mode override for installation of shared libraries.
32391 install_override_mode=$lt_install_override_mode
32392
32393 # Command to use after installation of a shared archive.
32394 postinstall_cmds=$lt_postinstall_cmds
32395
32396 # Command to use after uninstallation of a shared archive.
32397 postuninstall_cmds=$lt_postuninstall_cmds
32398
32399 # Commands used to finish a libtool library installation in a directory.
32400 finish_cmds=$lt_finish_cmds
32401
32402 # As "finish_cmds", except a single script fragment to be evaled but
32403 # not shown.
32404 finish_eval=$lt_finish_eval
32405
32406 # Whether we should hardcode library paths into libraries.
32407 hardcode_into_libs=$hardcode_into_libs
32408
32409 # Compile-time system search path for libraries.
32410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32411
32412 # Run-time system search path for libraries.
32413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32414
32415 # Whether dlopen is supported.
32416 dlopen_support=$enable_dlopen
32417
32418 # Whether dlopen of programs is supported.
32419 dlopen_self=$enable_dlopen_self
32420
32421 # Whether dlopen of statically linked programs is supported.
32422 dlopen_self_static=$enable_dlopen_self_static
32423
32424 # Commands to strip libraries.
32425 old_striplib=$lt_old_striplib
32426 striplib=$lt_striplib
32427
32428
32429 # The linker used to build libraries.
32430 LD=$lt_LD
32431
32432 # How to create reloadable object files.
32433 reload_flag=$lt_reload_flag
32434 reload_cmds=$lt_reload_cmds
32435
32436 # Commands used to build an old-style archive.
32437 old_archive_cmds=$lt_old_archive_cmds
32438
32439 # A language specific compiler.
32440 CC=$lt_compiler
32441
32442 # Is the compiler the GNU compiler?
32443 with_gcc=$GCC
32444
32445 # Compiler flag to turn off builtin functions.
32446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32447
32448 # Additional compiler flags for building library objects.
32449 pic_flag=$lt_lt_prog_compiler_pic
32450
32451 # How to pass a linker flag through the compiler.
32452 wl=$lt_lt_prog_compiler_wl
32453
32454 # Compiler flag to prevent dynamic linking.
32455 link_static_flag=$lt_lt_prog_compiler_static
32456
32457 # Does compiler simultaneously support -c and -o options?
32458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32459
32460 # Whether or not to add -lc for building shared libraries.
32461 build_libtool_need_lc=$archive_cmds_need_lc
32462
32463 # Whether or not to disallow shared libs when runtime libs are static.
32464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32465
32466 # Compiler flag to allow reflexive dlopens.
32467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32468
32469 # Compiler flag to generate shared objects directly from archives.
32470 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32471
32472 # Whether the compiler copes with passing no objects directly.
32473 compiler_needs_object=$lt_compiler_needs_object
32474
32475 # Create an old-style archive from a shared archive.
32476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32477
32478 # Create a temporary old-style archive to link instead of a shared archive.
32479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32480
32481 # Commands used to build a shared archive.
32482 archive_cmds=$lt_archive_cmds
32483 archive_expsym_cmds=$lt_archive_expsym_cmds
32484
32485 # Commands used to build a loadable module if different from building
32486 # a shared archive.
32487 module_cmds=$lt_module_cmds
32488 module_expsym_cmds=$lt_module_expsym_cmds
32489
32490 # Whether we are building with GNU ld or not.
32491 with_gnu_ld=$lt_with_gnu_ld
32492
32493 # Flag that allows shared libraries with undefined symbols to be built.
32494 allow_undefined_flag=$lt_allow_undefined_flag
32495
32496 # Flag that enforces no undefined symbols.
32497 no_undefined_flag=$lt_no_undefined_flag
32498
32499 # Flag to hardcode \$libdir into a binary during linking.
32500 # This must work even if \$libdir does not exist
32501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32502
32503 # If ld is used when linking, flag to hardcode \$libdir into a binary
32504 # during linking.  This must work even if \$libdir does not exist.
32505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32506
32507 # Whether we need a single "-rpath" flag with a separated argument.
32508 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32509
32510 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32511 # DIR into the resulting binary.
32512 hardcode_direct=$hardcode_direct
32513
32514 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32515 # DIR into the resulting binary and the resulting library dependency is
32516 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32517 # library is relocated.
32518 hardcode_direct_absolute=$hardcode_direct_absolute
32519
32520 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32521 # into the resulting binary.
32522 hardcode_minus_L=$hardcode_minus_L
32523
32524 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32525 # into the resulting binary.
32526 hardcode_shlibpath_var=$hardcode_shlibpath_var
32527
32528 # Set to "yes" if building a shared library automatically hardcodes DIR
32529 # into the library and all subsequent libraries and executables linked
32530 # against it.
32531 hardcode_automatic=$hardcode_automatic
32532
32533 # Set to yes if linker adds runtime paths of dependent libraries
32534 # to runtime path list.
32535 inherit_rpath=$inherit_rpath
32536
32537 # Whether libtool must link a program against all its dependency libraries.
32538 link_all_deplibs=$link_all_deplibs
32539
32540 # Set to "yes" if exported symbols are required.
32541 always_export_symbols=$always_export_symbols
32542
32543 # The commands to list exported symbols.
32544 export_symbols_cmds=$lt_export_symbols_cmds
32545
32546 # Symbols that should not be listed in the preloaded symbols.
32547 exclude_expsyms=$lt_exclude_expsyms
32548
32549 # Symbols that must always be exported.
32550 include_expsyms=$lt_include_expsyms
32551
32552 # Commands necessary for linking programs (against libraries) with templates.
32553 prelink_cmds=$lt_prelink_cmds
32554
32555 # Commands necessary for finishing linking programs.
32556 postlink_cmds=$lt_postlink_cmds
32557
32558 # Specify filename containing input files.
32559 file_list_spec=$lt_file_list_spec
32560
32561 # How to hardcode a shared library path into an executable.
32562 hardcode_action=$hardcode_action
32563
32564 # The directories searched by this compiler when creating a shared library.
32565 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32566
32567 # Dependencies to place before and after the objects being linked to
32568 # create a shared library.
32569 predep_objects=$lt_predep_objects
32570 postdep_objects=$lt_postdep_objects
32571 predeps=$lt_predeps
32572 postdeps=$lt_postdeps
32573
32574 # The library search path used internally by the compiler when linking
32575 # a shared library.
32576 compiler_lib_search_path=$lt_compiler_lib_search_path
32577
32578 # ### END LIBTOOL CONFIG
32579
32580 _LT_EOF
32581
32582   case $host_os in
32583   aix3*)
32584     cat <<\_LT_EOF >> "$cfgfile"
32585 # AIX sometimes has problems with the GCC collect2 program.  For some
32586 # reason, if we set the COLLECT_NAMES environment variable, the problems
32587 # vanish in a puff of smoke.
32588 if test "X${COLLECT_NAMES+set}" != Xset; then
32589   COLLECT_NAMES=
32590   export COLLECT_NAMES
32591 fi
32592 _LT_EOF
32593     ;;
32594   esac
32595
32596
32597 ltmain="$ac_aux_dir/ltmain.sh"
32598
32599
32600   # We use sed instead of cat because bash on DJGPP gets confused if
32601   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32602   # text mode, it properly converts lines to CR/LF.  This bash problem
32603   # is reportedly fixed, but why not run on old versions too?
32604   sed '$q' "$ltmain" >> "$cfgfile" \
32605      || (rm -f "$cfgfile"; exit 1)
32606
32607   if test x"$xsi_shell" = xyes; then
32608   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32609 func_dirname ()\
32610 {\
32611 \    case ${1} in\
32612 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32613 \      *  ) func_dirname_result="${3}" ;;\
32614 \    esac\
32615 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32616   && mv -f "$cfgfile.tmp" "$cfgfile" \
32617     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32618 test 0 -eq $? || _lt_function_replace_fail=:
32619
32620
32621   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32622 func_basename ()\
32623 {\
32624 \    func_basename_result="${1##*/}"\
32625 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32626   && mv -f "$cfgfile.tmp" "$cfgfile" \
32627     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32628 test 0 -eq $? || _lt_function_replace_fail=:
32629
32630
32631   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32632 func_dirname_and_basename ()\
32633 {\
32634 \    case ${1} in\
32635 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32636 \      *  ) func_dirname_result="${3}" ;;\
32637 \    esac\
32638 \    func_basename_result="${1##*/}"\
32639 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32640   && mv -f "$cfgfile.tmp" "$cfgfile" \
32641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32642 test 0 -eq $? || _lt_function_replace_fail=:
32643
32644
32645   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32646 func_stripname ()\
32647 {\
32648 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32649 \    # positional parameters, so assign one to ordinary parameter first.\
32650 \    func_stripname_result=${3}\
32651 \    func_stripname_result=${func_stripname_result#"${1}"}\
32652 \    func_stripname_result=${func_stripname_result%"${2}"}\
32653 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32654   && mv -f "$cfgfile.tmp" "$cfgfile" \
32655     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32656 test 0 -eq $? || _lt_function_replace_fail=:
32657
32658
32659   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32660 func_split_long_opt ()\
32661 {\
32662 \    func_split_long_opt_name=${1%%=*}\
32663 \    func_split_long_opt_arg=${1#*=}\
32664 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32665   && mv -f "$cfgfile.tmp" "$cfgfile" \
32666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32667 test 0 -eq $? || _lt_function_replace_fail=:
32668
32669
32670   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32671 func_split_short_opt ()\
32672 {\
32673 \    func_split_short_opt_arg=${1#??}\
32674 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32675 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32676   && mv -f "$cfgfile.tmp" "$cfgfile" \
32677     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32678 test 0 -eq $? || _lt_function_replace_fail=:
32679
32680
32681   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32682 func_lo2o ()\
32683 {\
32684 \    case ${1} in\
32685 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32686 \      *)    func_lo2o_result=${1} ;;\
32687 \    esac\
32688 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32689   && mv -f "$cfgfile.tmp" "$cfgfile" \
32690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32691 test 0 -eq $? || _lt_function_replace_fail=:
32692
32693
32694   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32695 func_xform ()\
32696 {\
32697     func_xform_result=${1%.*}.lo\
32698 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32699   && mv -f "$cfgfile.tmp" "$cfgfile" \
32700     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32701 test 0 -eq $? || _lt_function_replace_fail=:
32702
32703
32704   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32705 func_arith ()\
32706 {\
32707     func_arith_result=$(( $* ))\
32708 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32709   && mv -f "$cfgfile.tmp" "$cfgfile" \
32710     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32711 test 0 -eq $? || _lt_function_replace_fail=:
32712
32713
32714   sed -e '/^func_len ()$/,/^} # func_len /c\
32715 func_len ()\
32716 {\
32717     func_len_result=${#1}\
32718 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32719   && mv -f "$cfgfile.tmp" "$cfgfile" \
32720     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32721 test 0 -eq $? || _lt_function_replace_fail=:
32722
32723 fi
32724
32725 if test x"$lt_shell_append" = xyes; then
32726   sed -e '/^func_append ()$/,/^} # func_append /c\
32727 func_append ()\
32728 {\
32729     eval "${1}+=\\${2}"\
32730 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32731   && mv -f "$cfgfile.tmp" "$cfgfile" \
32732     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32733 test 0 -eq $? || _lt_function_replace_fail=:
32734
32735
32736   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32737 func_append_quoted ()\
32738 {\
32739 \    func_quote_for_eval "${2}"\
32740 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32741 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32742   && mv -f "$cfgfile.tmp" "$cfgfile" \
32743     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32744 test 0 -eq $? || _lt_function_replace_fail=:
32745
32746
32747   # Save a `func_append' function call where possible by direct use of '+='
32748   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32749     && mv -f "$cfgfile.tmp" "$cfgfile" \
32750       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32751   test 0 -eq $? || _lt_function_replace_fail=:
32752 else
32753   # Save a `func_append' function call even when '+=' is not available
32754   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32755     && mv -f "$cfgfile.tmp" "$cfgfile" \
32756       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32757   test 0 -eq $? || _lt_function_replace_fail=:
32758 fi
32759
32760 if test x"$_lt_function_replace_fail" = x":"; then
32761   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32762 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32763 fi
32764
32765
32766    mv -f "$cfgfile" "$ofile" ||
32767     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32768   chmod +x "$ofile"
32769
32770
32771     cat <<_LT_EOF >> "$ofile"
32772
32773 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32774
32775 # The linker used to build libraries.
32776 LD=$lt_LD_CXX
32777
32778 # How to create reloadable object files.
32779 reload_flag=$lt_reload_flag_CXX
32780 reload_cmds=$lt_reload_cmds_CXX
32781
32782 # Commands used to build an old-style archive.
32783 old_archive_cmds=$lt_old_archive_cmds_CXX
32784
32785 # A language specific compiler.
32786 CC=$lt_compiler_CXX
32787
32788 # Is the compiler the GNU compiler?
32789 with_gcc=$GCC_CXX
32790
32791 # Compiler flag to turn off builtin functions.
32792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32793
32794 # Additional compiler flags for building library objects.
32795 pic_flag=$lt_lt_prog_compiler_pic_CXX
32796
32797 # How to pass a linker flag through the compiler.
32798 wl=$lt_lt_prog_compiler_wl_CXX
32799
32800 # Compiler flag to prevent dynamic linking.
32801 link_static_flag=$lt_lt_prog_compiler_static_CXX
32802
32803 # Does compiler simultaneously support -c and -o options?
32804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32805
32806 # Whether or not to add -lc for building shared libraries.
32807 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32808
32809 # Whether or not to disallow shared libs when runtime libs are static.
32810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32811
32812 # Compiler flag to allow reflexive dlopens.
32813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32814
32815 # Compiler flag to generate shared objects directly from archives.
32816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32817
32818 # Whether the compiler copes with passing no objects directly.
32819 compiler_needs_object=$lt_compiler_needs_object_CXX
32820
32821 # Create an old-style archive from a shared archive.
32822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32823
32824 # Create a temporary old-style archive to link instead of a shared archive.
32825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32826
32827 # Commands used to build a shared archive.
32828 archive_cmds=$lt_archive_cmds_CXX
32829 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32830
32831 # Commands used to build a loadable module if different from building
32832 # a shared archive.
32833 module_cmds=$lt_module_cmds_CXX
32834 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32835
32836 # Whether we are building with GNU ld or not.
32837 with_gnu_ld=$lt_with_gnu_ld_CXX
32838
32839 # Flag that allows shared libraries with undefined symbols to be built.
32840 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32841
32842 # Flag that enforces no undefined symbols.
32843 no_undefined_flag=$lt_no_undefined_flag_CXX
32844
32845 # Flag to hardcode \$libdir into a binary during linking.
32846 # This must work even if \$libdir does not exist
32847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32848
32849 # If ld is used when linking, flag to hardcode \$libdir into a binary
32850 # during linking.  This must work even if \$libdir does not exist.
32851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32852
32853 # Whether we need a single "-rpath" flag with a separated argument.
32854 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32855
32856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32857 # DIR into the resulting binary.
32858 hardcode_direct=$hardcode_direct_CXX
32859
32860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32861 # DIR into the resulting binary and the resulting library dependency is
32862 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32863 # library is relocated.
32864 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32865
32866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32867 # into the resulting binary.
32868 hardcode_minus_L=$hardcode_minus_L_CXX
32869
32870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32871 # into the resulting binary.
32872 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32873
32874 # Set to "yes" if building a shared library automatically hardcodes DIR
32875 # into the library and all subsequent libraries and executables linked
32876 # against it.
32877 hardcode_automatic=$hardcode_automatic_CXX
32878
32879 # Set to yes if linker adds runtime paths of dependent libraries
32880 # to runtime path list.
32881 inherit_rpath=$inherit_rpath_CXX
32882
32883 # Whether libtool must link a program against all its dependency libraries.
32884 link_all_deplibs=$link_all_deplibs_CXX
32885
32886 # Set to "yes" if exported symbols are required.
32887 always_export_symbols=$always_export_symbols_CXX
32888
32889 # The commands to list exported symbols.
32890 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32891
32892 # Symbols that should not be listed in the preloaded symbols.
32893 exclude_expsyms=$lt_exclude_expsyms_CXX
32894
32895 # Symbols that must always be exported.
32896 include_expsyms=$lt_include_expsyms_CXX
32897
32898 # Commands necessary for linking programs (against libraries) with templates.
32899 prelink_cmds=$lt_prelink_cmds_CXX
32900
32901 # Commands necessary for finishing linking programs.
32902 postlink_cmds=$lt_postlink_cmds_CXX
32903
32904 # Specify filename containing input files.
32905 file_list_spec=$lt_file_list_spec_CXX
32906
32907 # How to hardcode a shared library path into an executable.
32908 hardcode_action=$hardcode_action_CXX
32909
32910 # The directories searched by this compiler when creating a shared library.
32911 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32912
32913 # Dependencies to place before and after the objects being linked to
32914 # create a shared library.
32915 predep_objects=$lt_predep_objects_CXX
32916 postdep_objects=$lt_postdep_objects_CXX
32917 predeps=$lt_predeps_CXX
32918 postdeps=$lt_postdeps_CXX
32919
32920 # The library search path used internally by the compiler when linking
32921 # a shared library.
32922 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32923
32924 # ### END LIBTOOL TAG CONFIG: CXX
32925 _LT_EOF
32926
32927  ;;
32928     "default-1":C)
32929     for ac_file in $CONFIG_FILES; do
32930       # Support "outfile[:infile[:infile...]]"
32931       case "$ac_file" in
32932         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32933       esac
32934       # PO directories have a Makefile.in generated from Makefile.in.in.
32935       case "$ac_file" in */Makefile.in)
32936         # Adjust a relative srcdir.
32937         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32938         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32939         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32940         # In autoconf-2.13 it is called $ac_given_srcdir.
32941         # In autoconf-2.50 it is called $srcdir.
32942         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32943         case "$ac_given_srcdir" in
32944           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32945           /*) top_srcdir="$ac_given_srcdir" ;;
32946           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32947         esac
32948         # Treat a directory as a PO directory if and only if it has a
32949         # POTFILES.in file. This allows packages to have multiple PO
32950         # directories under different names or in different locations.
32951         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32952           rm -f "$ac_dir/POTFILES"
32953           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32954           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32955           POMAKEFILEDEPS="POTFILES.in"
32956           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32957           # on $ac_dir but don't depend on user-specified configuration
32958           # parameters.
32959           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32960             # The LINGUAS file contains the set of available languages.
32961             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32962               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32963             fi
32964             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32965             # Hide the ALL_LINGUAS assigment from automake.
32966             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32967             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32968           else
32969             # The set of available languages was given in configure.in.
32970             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32971           fi
32972           # Compute POFILES
32973           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32974           # Compute UPDATEPOFILES
32975           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32976           # Compute DUMMYPOFILES
32977           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32978           # Compute GMOFILES
32979           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32980           case "$ac_given_srcdir" in
32981             .) srcdirpre= ;;
32982             *) srcdirpre='$(srcdir)/' ;;
32983           esac
32984           POFILES=
32985           UPDATEPOFILES=
32986           DUMMYPOFILES=
32987           GMOFILES=
32988           for lang in $ALL_LINGUAS; do
32989             POFILES="$POFILES $srcdirpre$lang.po"
32990             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32991             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32992             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32993           done
32994           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32995           # environment variable.
32996           INST_LINGUAS=
32997           if test -n "$ALL_LINGUAS"; then
32998             for presentlang in $ALL_LINGUAS; do
32999               useit=no
33000               if test "%UNSET%" != "$LINGUAS"; then
33001                 desiredlanguages="$LINGUAS"
33002               else
33003                 desiredlanguages="$ALL_LINGUAS"
33004               fi
33005               for desiredlang in $desiredlanguages; do
33006                 # Use the presentlang catalog if desiredlang is
33007                 #   a. equal to presentlang, or
33008                 #   b. a variant of presentlang (because in this case,
33009                 #      presentlang can be used as a fallback for messages
33010                 #      which are not translated in the desiredlang catalog).
33011                 case "$desiredlang" in
33012                   "$presentlang"*) useit=yes;;
33013                 esac
33014               done
33015               if test $useit = yes; then
33016                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33017               fi
33018             done
33019           fi
33020           CATALOGS=
33021           if test -n "$INST_LINGUAS"; then
33022             for lang in $INST_LINGUAS; do
33023               CATALOGS="$CATALOGS $lang.gmo"
33024             done
33025           fi
33026           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33027           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"
33028           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33029             if test -f "$f"; then
33030               case "$f" in
33031                 *.orig | *.bak | *~) ;;
33032                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33033               esac
33034             fi
33035           done
33036         fi
33037         ;;
33038       esac
33039     done ;;
33040     "default":C)
33041  ;;
33042
33043   esac
33044 done # for ac_tag
33045
33046
33047 as_fn_exit 0
33048 _ACEOF
33049 ac_clean_files=$ac_clean_files_save
33050
33051 test $ac_write_fail = 0 ||
33052   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33053
33054
33055 # configure is writing to config.log, and then calls config.status.
33056 # config.status does its own redirection, appending to config.log.
33057 # Unfortunately, on DOS this fails, as config.log is still kept open
33058 # by configure, so config.status won't be able to write to it; its
33059 # output is simply discarded.  So we exec the FD to /dev/null,
33060 # effectively closing config.log, so it can be properly (re)opened and
33061 # appended to by config.status.  When coming back to configure, we
33062 # need to make the FD available again.
33063 if test "$no_create" != yes; then
33064   ac_cs_success=:
33065   ac_config_status_args=
33066   test "$silent" = yes &&
33067     ac_config_status_args="$ac_config_status_args --quiet"
33068   exec 5>/dev/null
33069   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33070   exec 5>>config.log
33071   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33072   # would make configure fail if this is the last instruction.
33073   $ac_cs_success || as_fn_exit $?
33074 fi
33075 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33076   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33077 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33078 fi
33079
33080
33081 if test "${support_bat}" = "yes" ; then
33082    if test "x$QMAKE" = "xnone"; then
33083       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33084    fi
33085
33086    cd src/qt-console
33087    echo "Creating bat Makefile"
33088    touch bat
33089    chmod 755 bat
33090    rm -f Makefile
33091    $QMAKE
33092    ${MAKE:-make} clean
33093    cd ${BUILD_DIR}
33094 fi
33095
33096 if test X"$GCC" = "Xyes" ; then
33097   echo "Doing make of dependencies"
33098   ${MAKE:-make} depend
33099 fi
33100
33101 cd src/qt-console
33102 chmod 755 install_conf_file build-depkgs-qt-console
33103 cd ${BUILD_DIR}
33104
33105 cd scripts
33106 chmod 755 bacula btraceback mtx-changer
33107 chmod 755 dvd-handler dvd-simulator
33108 chmod 755 bconsole mtx-changer devel_bacula logrotate
33109 cd ..
33110
33111 c=updatedb
33112 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33113 chmod 755 $c/update_postgresql_tables_10_to_11
33114 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33115 chmod 755 $c/update_postgresql_tables_11_to_12
33116
33117
33118 c=src/cats
33119
33120 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33121 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33122
33123 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33124 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33125
33126 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33127 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33128
33129 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33130 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33131
33132 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33133 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33134
33135
33136 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33137 chmod 755 $c/sqlite
33138 chmod 755 $c/mysql
33139
33140 chmod 755 $c/install-default-backend
33141
33142 chmod 755 src/win32/build-depkgs-mingw32
33143
33144 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33145    largefile_support="yes"
33146 fi
33147
33148 if test X"$GCC" = "Xyes" ; then
33149                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33150    if test "x${CCVERSION}" = "x" ; then
33151       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33152    fi
33153    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33154    if test x"${CXXVERSION}" = x ; then
33155       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33156    fi
33157 fi
33158
33159 # clean up any old junk
33160 echo " "
33161 echo "Cleaning up"
33162 echo " "
33163 ${MAKE:-make} clean
33164
33165 echo "
33166 Configuration on `date`:
33167
33168    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33169    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33170    Source code location:     ${srcdir}
33171    Install binaries:         ${sbindir}
33172    Install libraries:        ${libdir}
33173    Install config files:     ${sysconfdir}
33174    Scripts directory:        ${scriptdir}
33175    Archive directory:        ${archivedir}
33176    Working directory:        ${working_dir}
33177    PID directory:            ${piddir}
33178    Subsys directory:         ${subsysdir}
33179    Man directory:            ${mandir}
33180    Data directory:           ${datarootdir}
33181    Plugin directory:         ${plugindir}
33182    C Compiler:               ${CC} ${CCVERSION}
33183    C++ Compiler:             ${CXX} ${CXXVERSION}
33184    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33185    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33186    Libraries:                ${LIBS}
33187    Statically Linked Tools:  ${support_static_tools}
33188    Statically Linked FD:     ${support_static_fd}
33189    Statically Linked SD:     ${support_static_sd}
33190    Statically Linked DIR:    ${support_static_dir}
33191    Statically Linked CONS:   ${support_static_cons}
33192    Database backends:        ${db_backends}
33193    Database port:            ${db_port}
33194    Database name:            ${db_name}
33195    Database user:            ${db_user}
33196
33197    Job Output Email:         ${job_email}
33198    Traceback Email:          ${dump_email}
33199    SMTP Host Address:        ${smtp_host}
33200
33201    Director Port:            ${dir_port}
33202    File daemon Port:         ${fd_port}
33203    Storage daemon Port:      ${sd_port}
33204
33205    Director User:            ${dir_user}
33206    Director Group:           ${dir_group}
33207    Storage Daemon User:      ${sd_user}
33208    Storage DaemonGroup:      ${sd_group}
33209    File Daemon User:         ${fd_user}
33210    File Daemon Group:        ${fd_group}
33211
33212    Large file support:      $largefile_support
33213    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33214    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33215    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33216    TLS support:             ${support_tls}
33217    Encryption support:      ${support_crypto}
33218    ZLIB support:            ${have_zlib}
33219    LZO support:             ${have_lzo}
33220    enable-smartalloc:       ${support_smartalloc}
33221    enable-lockmgr:          ${support_lockmgr}
33222    bat support:             ${support_bat}
33223    enable-gnome:            ${support_gnome} ${gnome_version}
33224    enable-bwx-console:      ${support_wx_console} ${wx_version}
33225    enable-tray-monitor:     ${support_tray_monitor}
33226    client-only:             ${build_client_only}
33227    build-dird:              ${build_dird}
33228    build-stored:            ${build_stored}
33229    Plugin support:          ${have_plugins}
33230    ACL support:             ${have_acl}
33231    XATTR support:           ${have_xattr}
33232    Python support:          ${support_python} ${PYTHON_LIBS}
33233    Batch insert enabled:    ${support_batch_insert}
33234
33235   " > config.out
33236
33237 # create a small shell script useful for support with
33238 # configure options and config.out info
33239 cat > scripts/bacula_config << EOF
33240 #!/bin/sh
33241 cat << __EOC__
33242 $ $0 $ac_configure_args
33243 EOF
33244 cat config.out >> scripts/bacula_config
33245 echo __EOC__ >> scripts/bacula_config
33246 chmod 755 scripts/bacula_config
33247
33248 cat config.out